@font-face { font-family: 'Instrument Serif'; src: url(/instrument-serif-400.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(/instrument-400.woff2) format('woff2'); font-display: swap; }

:root {
  --w: #fff; --ink: #1d1d1f; --t2: #5a5a5f; --t3: #6e6e73; --linie: #e3e3e8; --gr: #1e3a30; --gr-hell: #3a6b57;
  --serif: 'Instrument Serif', Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --w: #17171a; --ink: #f2f2f5; --t2: #a4a4ad; --t3: #95959e; --linie: #2e2e35; --gr: #5da37f; --gr-hell: #f2f2f5; color-scheme: dark; }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--w); color: var(--ink); font: 17px/1.6 'Instrument Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.seite { min-height: 100svh; display: flex; flex-direction: column; max-width: 72rem; margin: 0 auto; padding: 1.5rem clamp(1.25rem, 4vw, 3rem); }

/* Kopf und Fuss */
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.marke { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 15px; color: var(--ink); text-decoration: none; }
.zeichen { width: 26px; height: 23px; fill: var(--gr); }
.fuss { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-top: 2rem; font-size: 13px; color: var(--t3); }
.fuss nav { display: flex; gap: 1.5rem; }

/* Links: die Linie zieht von links ein, wie auf der richtigen Seite. */
.link { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat, linear-gradient(var(--linie), var(--linie)) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .35s cubic-bezier(.2,.6,.2,1), color .2s; }
.link:hover, .link:focus-visible { background-size: 100% 1px, 100% 1px; color: var(--gr); }
.link:focus-visible { outline: 2px solid var(--gr); outline-offset: 3px; border-radius: 2px; }

/* Startseite: ein Bildschirm, der Flieger in der Luft. */
.buehne { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 2rem 0; }
.szene { width: min(100%, 30rem); height: auto; overflow: visible; fill: none; stroke: var(--gr); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; margin: 0 0 1.5rem -.5rem; }
.spur { stroke-dasharray: 3 6; }
.zug { stroke-width: 1.1; opacity: .55; }
.wolke path { stroke-width: 1.2; }
h1 { font: 400 clamp(3rem, 9.5vw, 6.5rem)/1.02 var(--serif); letter-spacing: -.022em; margin: 0; }
h1 span { display: inline-block; }
.lead { font-size: clamp(1.0625rem, 2.2vw, 1.375rem); line-height: 1.45; color: var(--t2); margin: 1.5rem 0 0; max-width: 36rem; }
.en { font-size: 14px; color: var(--t3); margin: .75rem 0 0; }

/* Impressum, Datenschutz: eine ruhige Textspalte. */
.spalte { flex: 1; max-width: 40rem; padding: clamp(3rem, 10vh, 6rem) 0 3rem; }
.text h1 { font-size: clamp(2.5rem, 7vw, 4rem); }
.spalte .vorspann { color: var(--t2); margin: 1.25rem 0 3rem; }
.spalte h2 { font: 400 1.6rem/1.2 var(--serif); margin: 2.5rem 0 .5rem; }
.spalte p { color: var(--t2); margin: 0 0 1rem; }
dl { margin: 0; display: grid; gap: 1.5rem; }
dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--t3); margin-bottom: .2rem; }
dd { margin: 0; }
.zurueck { font-size: 14px; color: var(--t2); }

/* Bewegung. Erst zeichnet sich alles ein, dann bleibt es in der Luft: der Flieger wiegt sich,
   die Spur stroemt hinter ihm weg, die Wolken ziehen vorbei. */
@media (prefers-reduced-motion: no-preference) {
  .szene [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; animation: zeichnen 1.1s cubic-bezier(.3,.6,.2,1) forwards; }
  .flieger path:nth-child(2) { animation-delay: .15s; }
  .flieger path:nth-child(3) { animation-delay: .3s; }
  .wolke--1 path { animation-delay: .5s; }
  .wolke--2 path { animation-delay: .7s; }
  .wolke--3 path { animation-delay: .85s; }
  @keyframes zeichnen { to { stroke-dashoffset: 0; } }

  .spur { opacity: 0; animation: einblenden .8s .6s ease forwards, stroemen 1.6s linear infinite; }
  @keyframes einblenden { to { opacity: 1; } }
  @keyframes stroemen { to { stroke-dashoffset: -18; } }

  .flug { transform-box: view-box; transform-origin: 60% 40%; animation: wiegen 5.5s ease-in-out infinite; }
  @keyframes wiegen {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    30% { transform: translate(4px, -9px) rotate(-1.6deg); }
    65% { transform: translate(-2px, 5px) rotate(1.1deg); }
  }
  .zug { animation: sausen 1.4s 1s ease-in-out infinite both; }
  @keyframes sausen { 0%, 100% { opacity: .55; transform: none; } 50% { opacity: .1; transform: translateX(6px); } }

  .wolke { animation: ziehen 14s ease-in-out infinite alternate; }
  .wolke--2 { animation-duration: 18s; animation-direction: alternate-reverse; }
  .wolke--3 { animation-duration: 11s; }
  @keyframes ziehen { from { transform: translateX(14px); } to { transform: translateX(-22px); } }


  .start h1 span, .start .lead, .start .en { opacity: 0; transform: translateY(14px); animation: auftauchen .9s cubic-bezier(.2,.6,.2,1) forwards; }
  .start h1 span:nth-child(1) { animation-delay: .15s; }
  .start h1 span:nth-child(2) { animation-delay: .3s; }
  .start .lead { animation-delay: .5s; }
  .start .en { animation-delay: .65s; }
  .text .spalte > * { opacity: 0; transform: translateY(10px); animation: auftauchen .7s cubic-bezier(.2,.6,.2,1) forwards; }
  .text .spalte > :nth-child(2) { animation-delay: .08s; }
  .text .spalte > :nth-child(n+3) { animation-delay: .16s; }
  @keyframes auftauchen { to { opacity: 1; transform: none; } }
}
