.segel { --sg-hell: #f7f0e2; --sg-de: rgba(236, 226, 204, .86); --sg-gold: #d4b673; position: relative; color: var(--sg-hell); background: #060c11; }
.segel .sg-bild { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.sg-reise { position: relative; height: 820vh; margin-top: calc(-1 * var(--kopf)); }
.sg-buehne { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }

.sg-kopf {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: calc(var(--kopf) + 2vh) var(--rand) 32vh; z-index: 2;
  transition: opacity 1.2s var(--ease), transform 1.6s var(--ease), filter 1.2s var(--ease);
}
.sg-kopf.weg { opacity: 0; transform: translateY(-4vh); filter: blur(4px); pointer-events: none; }
.sg-oben { color: rgba(241, 230, 204, .72); letter-spacing: .32em; margin: 0 0 1.2em; }
.sg-titel { display: flex; flex-direction: column; align-items: center; margin: 0; font-weight: 300; color: #f6ecd6; text-shadow: 0 2px 40px rgba(0, 0, 0, .45); }
.sg-titel [lang="ru"] { font-size: clamp(4rem, 13vw, 9.5rem); line-height: .9; letter-spacing: .01em; }
.sg-titel .sg-titel-de { font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-style: italic; color: var(--sg-gold); margin-top: .7em; font-weight: 400; }
.sg-quelle { margin: 1.6em 0 0; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(246, 238, 219, .92); text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 0 14px rgba(4, 10, 16, .75); }
.sg-hinweis { position: absolute; left: 0; right: 0; bottom: 6vh; margin: 0; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(241, 230, 204, .6); display: grid; gap: 6px; justify-items: center; }
.sg-hinweis span { font-size: 1rem; animation: sg-schweben 3s ease-in-out infinite; }
@keyframes sg-schweben { 50% { transform: translateY(6px); } }

.sg-gedicht {
  position: absolute; z-index: 2; left: clamp(24px, 8vw, 132px); top: calc(var(--kopf) + 8vh); width: min(38rem, 52vw);
  display: grid; pointer-events: none;
}
.sg-gedicht::before {
  content: ''; position: absolute; inset: -18% -22% -14% -30%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 72% 66% at 42% 48%, rgba(4, 10, 16, .66), rgba(4, 10, 16, .55) 70%, rgba(4, 10, 16, 0) 100%);
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.sg-buehne:has(.sg-strophe.ist) .sg-gedicht::before { opacity: 1; }
.sg-strophe { grid-area: 1 / 1; margin: 0; }
.sg-nr {
  display: block; font-family: var(--f-titel); font-size: .95rem; letter-spacing: .3em; color: var(--sg-gold); margin-bottom: .9em;
  opacity: 0; transition: opacity 1s var(--ease);
}
.sg-strophe.ist .sg-nr { opacity: 1; }
.sg-zeile {
  margin: 0 0 .62em; opacity: 0; transform: translateY(.5em); filter: blur(6px);
  transition: opacity 1.3s var(--ease), transform 1.6s var(--ease), filter 1.3s var(--ease);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 0 24px rgba(0, 0, 0, .45);
}
.sg-zeile.da { opacity: 1; transform: none; filter: none; }
.sg-strophe.vorbei .sg-zeile { transform: translateY(-.4em); }
.sg-ru { display: block; font-family: var(--f-titel); font-size: clamp(1.55rem, 2.75vw, 2.5rem); line-height: 1.12; color: var(--sg-hell); font-weight: 500; }
.sg-de { display: block; font-family: var(--f-text); font-style: italic; font-size: clamp(1.05rem, 1.5vw, 1.32rem); line-height: 1.35; color: var(--sg-de); margin-top: .15em; }

.sg-marken { position: absolute; z-index: 2; right: clamp(14px, 2.4vw, 32px); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-family: var(--f-titel); font-size: .8rem; letter-spacing: .14em; text-align: right; }
.sg-marken li { color: rgba(241, 230, 204, .32); transition: color .8s, transform .8s var(--ease); }
.sg-marken li::after { content: ''; display: inline-block; width: 14px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 8px; transition: width .8s var(--ease); }
.sg-marken li.ist { color: var(--sg-gold); }
.sg-marken li.ist::after { width: 26px; }
.sg-marken { transition: opacity 1.2s; }
.sg-buehne.am-ende .sg-marken, .sg-buehne.am-anfang .sg-marken { opacity: 0; }

.sg-ende {
  position: relative; padding: clamp(72px, 12vh, 140px) var(--rand) clamp(80px, 12vh, 130px); text-align: center;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(212, 182, 115, .16), rgba(212, 182, 115, 0) 70%), linear-gradient(#060c11, #0b1419 60%, #0f1a1c);
  color: #efe5cf;
}
.sg-ende-innen { max-width: 40rem; margin: 0 auto; }
.sg-ende .kimm { width: min(320px, 70%); color: var(--sg-gold); margin: 0 auto 1.6em; display: block; }
.sg-ende-titel { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 300; color: #f4ead2; margin-bottom: 1.4em; }
.sg-ende-titel [lang="de"] { font-style: italic; color: var(--sg-gold); }
.sg-cinque { margin: 0 auto 2.6em; padding: 1.6em 0 0; border-top: 1px solid rgba(212, 182, 115, .28); }
.sg-cinque figcaption { display: grid; gap: .5em; margin-bottom: 1.1em; }
.sg-cinque .kapit-klein { color: rgba(241, 230, 204, .62); }
.sg-cinque-titel { font-family: var(--f-titel); font-size: 1.35rem; font-style: italic; color: var(--sg-gold); }
.sg-cinque-text { font-family: var(--f-titel); font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; color: rgba(244, 234, 210, .9); }
.sg-cinque-text p { margin: 0 0 .9em; }
.sg-cinque-hinweis { font-size: .9rem; color: rgba(241, 230, 204, .6); font-style: italic; }
.sg-knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; }
.sg-knoepfe .knopf.voll, :root[data-abend="an"] .sg-knoepfe .knopf.voll { background: #8d2f3c; border-color: #8d2f3c; color: #fbf3e4; }
.sg-knoepfe .knopf.voll:hover, :root[data-abend="an"] .sg-knoepfe .knopf.voll:hover { background: #a43a46; border-color: #a43a46; color: #fff; }
.sg-knopf-hell { border-color: rgba(241, 230, 204, .5); color: #efe5cf; }
.sg-knopf-hell:hover { background: #efe5cf; color: #10181b; }
.sg-ende :focus-visible, .sg-kopf :focus-visible { outline-color: var(--sg-gold); }

body:has(.segel) .kopf.auf-meer.nachtgrund { background: rgba(6, 12, 17, .92); }

.sg-still .sg-tafel { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; }
.sg-still .sg-tafel-titel { margin-top: calc(-1 * var(--kopf)); }
.sg-still .sg-kopf { position: absolute; }
.sg-still .sg-gedicht::before { opacity: 1; }
.sg-still .sg-zeile, .sg-still .sg-nr { opacity: 1; transform: none; filter: none; transition: none; }

@media (max-width: 760px) {
  .sg-gedicht { left: 0; right: 0; width: auto; padding: 0 22px; top: calc(var(--kopf) + 3.5vh); text-align: center; }
  .sg-gedicht::before { inset: -10% -6% -12% -6%; background: radial-gradient(ellipse 80% 66% at 50% 46%, rgba(4, 10, 16, .68), rgba(4, 10, 16, .56) 70%, rgba(4, 10, 16, 0) 100%); }
  .sg-ru { font-size: clamp(1.4rem, 6.2vw, 1.75rem); }
  .sg-de { font-size: 1rem; }
  .sg-zeile { margin-bottom: .5em; }
  .sg-marken { top: auto; bottom: 18px; right: 50%; transform: translateX(50%); display: flex; gap: 18px; }
  .sg-marken li::after { display: none; }
  .sg-quelle { font-size: .8rem; letter-spacing: .1em; }
  .sg-hinweis { font-size: .78rem; letter-spacing: .14em; padding: 0 24px; bottom: 8vh; }
}
@media (max-height: 560px) and (min-width: 761px) {
  .sg-ru { font-size: 1.5rem; }
  .sg-de { font-size: .95rem; }
}
:root[data-gross="an"] .sg-ru { font-size: clamp(1.65rem, 3vw, 2.75rem); }

@media (prefers-reduced-motion: reduce) {
  .sg-kopf, .sg-zeile, .sg-nr, .sg-marken li, .sg-gedicht::before { transition: none; }
  .sg-hinweis span { animation: none; }
}
:root[data-ruhig="an"] .sg-hinweis span { animation: none; }
@media print { .segel .sg-bild, .sg-marken, .sg-hinweis { display: none; } .sg-reise { height: auto; } .sg-buehne { position: static; height: auto; } .sg-zeile { opacity: 1; filter: none; transform: none; } }
