/* ==========================================================================
   Stadtlandfluss – Stylesheet
   ========================================================================== */
@font-face { font-family: 'Fraunces'; src: url('../assets/fonts/fraunces.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../assets/fonts/manrope.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../assets/fonts/jetbrainsmono.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }

:root {
  --paper: #f5f0e5;
  --paper-2: #ece4d3;
  --panel: rgba(250, 247, 240, 0.9);
  --ink: #1d2a30;
  --ink-2: #4b5b61;
  --ink-3: #7b878b;
  --line: rgba(29, 42, 48, 0.16);
  /* Logofarben: Flächen */
  --stadt-fill: #808285;
  --land-fill: #6fae2c;
  --fluss-fill: #4290c9;
  /* Textvarianten mit ausreichendem Kontrast */
  --stadt: #636669;
  --land: #437d1b;
  --fluss: #2c70a8;
  --accent: var(--fluss);
  --contour: #9b6a3c;
  --shadow: 0 18px 50px -22px rgba(29, 42, 48, 0.45), 0 2px 8px rgba(29, 42, 48, 0.06);
  --r: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --night: 0;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #182227; --paper-2: #1f2b31; --panel: rgba(22, 31, 36, 0.9);
    --ink: #eef0ea; --ink-2: #b9c3c2; --ink-3: #8b9897; --line: rgba(238, 240, 234, 0.16);
    --stadt: #b9bcc0; --land: #93cf62; --fluss: #78b8e8; --contour: #d5a676;
    --stadt-fill: #9a9da1; --land-fill: #7fbe3c; --fluss-fill: #5aa2d8;
    --shadow: 0 18px 50px -22px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #182227; --paper-2: #1f2b31; --panel: rgba(22, 31, 36, 0.9);
  --ink: #eef0ea; --ink-2: #b9c3c2; --ink-3: #8b9897; --line: rgba(238, 240, 234, 0.16);
  --stadt: #b9bcc0; --land: #93cf62; --fluss: #78b8e8; --contour: #d5a676;
  --stadt-fill: #9a9da1; --land-fill: #7fbe3c; --fluss-fill: #5aa2d8;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.reduced { scroll-behavior: auto; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--f-body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.c-stadt { --c: var(--stadt); } .c-land { --c: var(--land); } .c-fluss { --c: var(--fluss); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--fluss); outline-offset: 3px; border-radius: 6px; }

/* ---------- Bühne (3D) --------------------------------------------------- */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.stage canvas { width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.world-ready .stage canvas { opacity: 1; }
.stage::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--paper) 55%, transparent) 0%, transparent 55%),
    linear-gradient(to bottom, color-mix(in srgb, var(--paper) 35%, transparent), transparent 18%);
}
.stage-fallback {
  position: absolute; inset: 0; display: none;
  background-color: var(--paper-2);
  background-image:
    repeating-radial-gradient(circle at 30% 40%, transparent 0 22px, color-mix(in srgb, var(--contour) 35%, transparent) 22px 23px),
    repeating-radial-gradient(circle at 75% 70%, transparent 0 28px, color-mix(in srgb, var(--contour) 25%, transparent) 28px 29px);
}
.no-webgl .stage-fallback { display: block; }
.no-webgl .stage canvas, .no-webgl .hud { display: none; }
#pin-labels { position: absolute; inset: 0; pointer-events: none; }
.pin-label {
  position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap;
  font: 600 11.5px/1 var(--f-body); letter-spacing: 0.01em;
  color: #fff; background: var(--c, var(--ink)); padding: 5px 9px; border-radius: 99px;
  box-shadow: 0 4px 14px -4px rgba(0,0,0,.4); will-change: transform, opacity;
}
.pin-label::after { content: ''; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; background: inherit; transform: translateX(-50%) rotate(45deg); z-index: -1; }
.pin-big { font: 600 15px/1 var(--f-display); padding: 7px 13px; }
.pin-link { pointer-events: auto; transition: filter .2s, box-shadow .2s; }
.pin-link.is-hover { filter: brightness(1.15); box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 6px 18px -4px rgba(0,0,0,.5); }
html.pin-hover, html.pin-hover body, html.pin-hover main { cursor: pointer; }
.pin-fluss { --c: #2c70a8; } .pin-land { --c: #437d1b; } .pin-stadt { --c: #63666a; } .pin-hq { --c: #2b2f33; }
.pin-nature { --c: #3f8a2e; font: 600 11px/1 var(--f-body); border: 1.5px solid #fff; padding-left: 20px; }
.pin-nature::before { content: ''; position: absolute; left: 7px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 0 60% 0 60%; background: #c8f59c; }
.pin-dev { --c: #2b2f33; font: 600 11px/1 var(--f-mono); letter-spacing: .02em; border: 1.5px solid #fff; }
.pin-dev.pin-small { font-size: 10px; padding: 4px 7px; background: rgba(43,47,51,.82); }

/* ---------- Kopfzeile ---------------------------------------------------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter);
}
.topbar::before {
  content: ''; position: absolute; inset: 8px calc(var(--gutter) - 10px); z-index: -1;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 4px 0; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-mark { width: 50px !important; height: 28px !important; overflow: visible; }
.brand-mark path { fill: none; stroke-width: 7.5; stroke-linecap: round; }
.bm-stadt { stroke: var(--stadt-fill); } .bm-land { stroke: var(--land-fill); } .bm-fluss { stroke: var(--fluss-fill); }
.brand:hover .brand-mark { animation: spin-logo 1.2s cubic-bezier(.5,0,.3,1); }
@keyframes spin-logo { to { transform: rotate(360deg); } }
.brand-word { font: 650 20px/1 var(--f-display); letter-spacing: 0.005em; }
.brand-word b { font-weight: inherit; }
.bw-stadt { color: var(--stadt); } .bw-land { color: var(--land); } .bw-fluss { color: var(--fluss); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 10px; color: var(--ink-2); transition: color .2s, background .2s;
}
.nav a:hover, .nav a.is-active { color: var(--ink); background: color-mix(in srgb, var(--c, var(--ink)) 10%, transparent); }
.nav a.c-fluss, .nav a.c-land, .nav a.c-stadt { color: var(--c); }
.nav a.is-active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--c, var(--ink)); }
.nav .nav-cta { background: var(--ink); color: var(--paper); margin-left: 6px; }
.nav .nav-cta:hover, .nav .nav-cta.is-active { background: var(--accent); color: #fff; }
.nav .nav-cta.is-active::after { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s; }
.nav-toggle span:first-child { top: 17px; } .nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Allgemeine Bausteine ---------------------------------------- */
main { position: relative; z-index: 2; }
.cam { position: absolute; width: 0; height: 0; } /* bleibt an seiner statischen Position → messbar */
.debug-cam main, .debug-cam .footer { visibility: hidden; }
.cam-gap { height: 80vh; }
.eyebrow, .sheetno {
  font: 600 12px/1.3 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
}
.sheetno { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sheetno::before { content: ''; width: 18px; height: 1px; background: currentColor; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 13px 22px; border-radius: 12px; border: 1.5px solid var(--ink); transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 10px 24px -12px rgba(29,42,48,.6); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: var(--panel); color: var(--ink); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-lg { font-size: 18px; padding: 16px 28px; }

.panel {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(22px, 3.2vw, 40px); box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(1.15); -webkit-backdrop-filter: blur(12px) saturate(1.15);
}
/* Passmarken wie auf einem Kartenblatt */
.panel::before, .panel::after, .chapter-title::before, .chapter-title::after, .contact::before, .contact::after {
  content: ''; position: absolute; width: 14px; height: 14px; border: 0 solid var(--ink); opacity: .55; pointer-events: none;
}
.panel::before, .chapter-title::before, .contact::before { top: 8px; left: 8px; border-top-width: 1.5px; border-left-width: 1.5px; }
.panel::after, .chapter-title::after, .contact::after { bottom: 8px; right: 8px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.panel-head h2 { font-size: clamp(32px, 4.4vw, 52px); }
.panel-lead { margin-top: 14px; font-size: 18px; color: var(--ink-2); max-width: 62ch; }
.panel-foot { margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--line); color: var(--ink-2); font-size: 15.5px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reduced .reveal { opacity: 1; transform: none; transition: none; }

/* ---------- Hero -------------------------------------------------------- */
.hero {
  min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: 120px var(--gutter) 140px; position: relative;
}
.hero-copy { max-width: 760px; }
.hero-title { font-size: clamp(44px, 6.6vw, 100px); line-height: 1; margin: 14px 0 22px; font-weight: 700; letter-spacing: -0.035em; white-space: nowrap; }
.hero-title .w { display: inline-block; position: relative; }
.w-stadt { color: var(--stadt); } .w-land { color: var(--land); } .w-fluss { color: var(--fluss); }
.hero-title .w::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.08em; border-radius: 1em;
  background: currentColor; opacity: .18; transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.in .hero-title .w::after { transform: scaleX(1); }
.in .hero-title .w-land::after { transition-delay: .2s; } .in .hero-title .w-fluss::after { transition-delay: .4s; }
.w { text-shadow: 0 2px 0 var(--paper), 0 0 22px color-mix(in srgb, var(--paper) 80%, transparent); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink); max-width: 34em; font-weight: 500;
  background: color-mix(in srgb, var(--paper) 70%, transparent); border-radius: 10px; padding: 6px 10px; margin-left: -10px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.eyebrow { background: color-mix(in srgb, var(--paper) 75%, transparent); display: inline-block; padding: 4px 8px; border-radius: 6px; margin-left: -8px; }

/* Spielblatt */
.sheet {
  justify-self: end; width: min(100%, 560px); position: relative;
  background:
    repeating-linear-gradient(to bottom, transparent 0 31px, color-mix(in srgb, var(--fluss) 16%, transparent) 31px 32px),
    var(--panel);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 20px 22px 18px; transform: rotate(1.2deg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.sheet::before { content: ''; position: absolute; top: 0; bottom: 0; left: 54px; width: 1.5px; background: color-mix(in srgb, var(--land-fill) 60%, transparent); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sheet-head h2 { font-size: 26px; font-style: italic; font-weight: 500; padding-left: 44px; }
.dice {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: 700 14px/1 var(--f-body); color: var(--paper);
  background: var(--ink); border: 0; border-radius: 10px; padding: 10px 14px; transition: background .2s, transform .2s;
}
.dice:hover { background: var(--accent); transform: translateY(-1px); }
.dice svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.dice svg circle { fill: currentColor; stroke: none; }
.dice.rolling svg { animation: roll .5s linear infinite; }
@keyframes roll { to { transform: rotate(360deg); } }
.sheet-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.sheet-table th { font: 700 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; text-align: left; padding: 8px 6px; color: var(--c, var(--ink-2)); border-bottom: 1.5px solid var(--ink); }
.sheet-table th:first-child { width: 44px; } .sheet-table th:last-child { width: 46px; text-align: right; }
.sheet-table td { padding: 8px 6px; vertical-align: top; line-height: 1.3; border-bottom: 1px dashed var(--line); font-family: 'Fraunces', serif; font-style: italic; font-size: 15px; color: var(--ink); overflow-wrap: break-word; hyphens: manual; }
.sheet-table td.bst span {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--accent); color: var(--accent); font: 700 16px/1 var(--f-mono); font-style: normal;
}
.sheet-table td.pts { text-align: right; font: 700 14px/1.3 var(--f-mono); color: var(--accent); font-style: normal; }
.sheet-table tr.enter td { animation: write .7s both cubic-bezier(.2,.7,.2,1); }
.sheet-table tr.enter td:nth-child(2) { animation-delay: .08s; } .sheet-table tr.enter td:nth-child(3) { animation-delay: .2s; }
.sheet-table tr.enter td:nth-child(4) { animation-delay: .32s; } .sheet-table tr.enter td:nth-child(5) { animation-delay: .45s; }
@keyframes write { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.rolling-hint { color: var(--ink-3) !important; }
.sheet-table tfoot td { border: 0; border-top: 1.5px solid var(--ink); font: 700 13px/1 var(--f-mono); font-style: normal; text-transform: uppercase; padding-top: 10px; }
.sheet-table tfoot td:last-child { text-align: right; color: var(--accent); font-size: 18px; }
#sheet-total.bump { animation: bump .5s; display: table-cell; }
@keyframes bump { 40% { transform: scale(1.35); } }
.sheet-note { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); padding-left: 44px; }

.news {
  display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; margin-top: 26px; max-width: 600px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 14.5px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.news p { flex: 1 1 260px; }
.news-tag { font: 700 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; background: var(--accent); color: #fff; padding: 6px 8px; border-radius: 6px; }
.news a { font-weight: 700; color: var(--accent); text-decoration: none; white-space: nowrap; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 112px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px;
  font: 600 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink);
  background: color-mix(in srgb, var(--paper) 65%, transparent); padding: 8px 10px; border-radius: 10px;
}
.mouse { width: 22px; height: 34px; border: 2px solid var(--ink); border-radius: 12px; position: relative; }
.mouse::after { content: ''; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }
.reduced .mouse::after { animation: none; }

/* ---------- Kapitel ------------------------------------------------------ */
.chapter { position: relative; padding: 22vh var(--gutter); }
.chapter + .chapter { margin-top: 18vh; }
.panel-wide { max-width: 1180px; margin: 0 auto; }
.panel-right { max-width: 760px; margin-left: auto; }
.panel-left { max-width: 760px; margin-right: auto; }
.chapter-title {
  position: relative; max-width: 560px; margin-bottom: 70vh;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 32px 30px; box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.chapter-title-right { margin-left: auto; }
.chapter-title p { margin-top: 14px; font-size: 18px; color: var(--ink-2); }
.big-word { font-size: clamp(72px, 11vw, 150px); line-height: .9; color: var(--c); font-weight: 700; letter-spacing: -0.04em; }
.big-word span { color: var(--ink); }
.c-land.big-word { font-style: italic; font-weight: 500; }
.wave, .hills, .skyline { width: 100%; height: 26px; margin-top: 10px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.wave { stroke: var(--fluss); stroke-dasharray: 18 10; animation: flow 1.8s linear infinite; }
.hills { stroke: var(--land); }
.skyline { stroke: var(--stadt); stroke-width: 2.4; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.reduced .wave { animation: none; }
.in .hills, .in .skyline { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.4s .3s forwards ease-out; }
.reduced .in .hills, .reduced .in .skyline { animation: none; stroke-dashoffset: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Leistungs-Karten */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.card {
  position: relative; padding: 22px 22px 24px; border-radius: 12px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 70%, transparent); transition: transform .3s, box-shadow .3s, border-color .3s;
  overflow: hidden;
}
.card::after { content: ''; position: absolute; inset: auto -40% -60% auto; width: 160px; height: 160px; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 9px, color-mix(in srgb, var(--contour) 22%, transparent) 9px 10px); opacity: .0; transition: opacity .4s; }
.card:hover { transform: translateY(-4px) rotate(-.3deg); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.card:hover::after { opacity: 1; }
.card h3 { font-size: 21px; margin: 14px 0 8px; }
.card p { font-size: 15.5px; color: var(--ink-2); }
.card-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); position: relative; }
.card-ico::before { content: ''; position: absolute; inset: 9px; background: var(--ink); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ico-analyse::before { background: var(--land); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 17c3-6 6-6 9-2s6 3 9-4'/%3E%3Cpath d='M3 21c3-4 6-4 9-1s6 2 9-3'/%3E%3Cpath d='M3 12c3-7 7-8 10-4'/%3E%3C/svg%3E"); }
.ico-web::before { background: var(--stadt); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M2 8h20'/%3E%3Cpath d='M12 18s-4-3.5-4-6a4 4 0 0 1 8 0c0 2.5-4 6-4 6z'/%3E%3C/svg%3E"); }
.ico-tools::before { background: var(--ink); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.5 2.5-2.5-.5-.5-2.5z'/%3E%3C/svg%3E"); }
.ico-data::before { background: var(--fluss); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='5' cy='6' r='1.6'/%3E%3Ccircle cx='10' cy='4' r='1.6'/%3E%3Ccircle cx='15' cy='7' r='1.6'/%3E%3Ccircle cx='20' cy='5' r='1.6'/%3E%3Ccircle cx='7' cy='11' r='1.6'/%3E%3Ccircle cx='12' cy='10' r='1.6'/%3E%3Ccircle cx='18' cy='12' r='1.6'/%3E%3Ccircle cx='4' cy='16' r='1.6'/%3E%3Ccircle cx='10' cy='16' r='1.6'/%3E%3Ccircle cx='16' cy='17' r='1.6'/%3E%3Ccircle cx='21' cy='18' r='1.6'/%3E%3Ccircle cx='7' cy='21' r='1.6'/%3E%3Ccircle cx='13' cy='21' r='1.6'/%3E%3C/svg%3E"); }
.ico-devops::before { background: var(--stadt); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 2l9 5v10l-9 5-9-5V7z'/%3E%3Cpath d='M12 22V12M3 7l9 5 9-5'/%3E%3C/svg%3E"); }
.ico-field::before { background: var(--land); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='6' y='2' width='12' height='20' rx='2'/%3E%3Cpath d='M9 7l2 2 4-4M9 14h6M9 17h4'/%3E%3C/svg%3E"); }

/* Projektkarten */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.project {
  padding: 18px 18px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 72%, transparent); border-top: 3px solid var(--sec, var(--ink));
  transition: transform .3s, box-shadow .3s;
}
.project:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.chapter-fluss { --sec: var(--fluss); } .chapter-land { --sec: var(--land); } .chapter-stadt { --sec: var(--stadt); }
.project-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; font: 600 11.5px/1.3 var(--f-mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.project-meta .year { color: var(--sec); }
.project h3 { font-size: 19px; margin: 8px 0 6px; }
.project p { font-size: 14.8px; color: var(--ink-2); }
.tags { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font: 600 11.5px/1 var(--f-mono); padding: 5px 8px; border-radius: 6px; background: var(--paper-2); color: var(--ink-2); }
.more { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 12px; }
.more summary { cursor: pointer; font-weight: 700; color: var(--sec); list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: '+'; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid currentColor; font: 700 15px/1 var(--f-mono); transition: transform .3s; }
.more[open] summary::before { transform: rotate(45deg); }
.more-list { margin: 12px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; display: grid; gap: 6px; }
.more-list li::marker { color: var(--sec); }
.more-list b { color: var(--ink); }

/* Zeitachse */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 18px; }
.chip {
  font: 700 13px/1 var(--f-body); padding: 9px 14px; border-radius: 99px; cursor: pointer;
  border: 1.5px solid var(--c, var(--ink)); color: var(--c, var(--ink)); background: transparent; transition: background .2s, color .2s;
}
.chip.is-on, .chip:hover { background: var(--c, var(--ink)); color: var(--paper); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-height: 62vh; overflow: auto; padding-right: 8px; scrollbar-width: thin;
  mask-image: linear-gradient(to bottom, #000 90%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 90%, transparent); }
.timeline::before { content: ''; position: absolute; left: 62px; top: 6px; bottom: 0; border-left: 2px dashed color-mix(in srgb, var(--accent) 60%, transparent); }
.tl-year { display: grid; grid-template-columns: 80px 1fr; gap: 10px; padding: 10px 0; }
.tl-y { font: 700 18px/1.4 var(--f-mono); color: var(--ink); position: relative; }
.tl-y::after { content: ''; position: absolute; left: 56px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--accent); }
.tl-items { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tl-item { font-size: 14px; padding: 6px 11px; border-radius: 8px; background: color-mix(in srgb, var(--c) 11%, var(--paper)); border-left: 3px solid var(--c); transition: opacity .3s, filter .3s; }
.t-fluss { --c: var(--fluss); } .t-land { --c: var(--land); } .t-stadt { --c: var(--stadt); }
.tl-item.is-dim { opacity: .22; filter: grayscale(1); }

/* Legende */
.legend-list { margin: 22px 0 0; display: grid; gap: 16px; }
.legend-list > div { display: grid; grid-template-columns: 230px 1fr; gap: 16px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.legend-list dt { font-weight: 700; display: flex; align-items: center; gap: 10px; }
.legend-list dd { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.sym { width: 22px; height: 16px; flex: none; border-radius: 3px; }
.sym-code { background: var(--stadt); }
.sym-gis { background: repeating-linear-gradient(45deg, var(--land) 0 3px, transparent 3px 6px); border: 1.5px solid var(--land); }
.sym-db { background: var(--fluss); border-radius: 50%; width: 16px; margin: 0 3px; }
.sym-ops { border: 2px dashed var(--ink); background: transparent; }
.sym-std { background: linear-gradient(var(--contour), var(--contour)) center / 100% 2px no-repeat, linear-gradient(var(--contour), var(--contour)) center 3px / 100% 1px no-repeat; }

/* Kunden */
.clients { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.clients > li { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 70%, transparent); }
.clients b { font-family: var(--f-display); font-size: 18px; display: block; }
.clients span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.clients > li:nth-child(-n+3) { grid-column: span 2; }
.depts { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px 18px; margin-top: 10px; }
.depts-single { grid-template-columns: 1fr; }
.dept h3 { font: 700 12px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--accent); margin: 0 0 6px; }
.dept ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.clients .dept li { padding: 0 0 0 14px; border: 0; background: none; border-radius: 0; position: relative; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.clients .dept li::before { content: ''; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--land-fill); }

/* Büro */
.person { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; margin: 26px 0; }
.avatar { position: relative; width: 96px; height: 96px; padding: 4px; border-radius: 50%;
  background: conic-gradient(from -30deg, var(--stadt-fill) 0 33%, var(--land-fill) 0 66%, var(--fluss-fill) 0); }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid var(--paper); }
.person h3 { font-size: 26px; }
.role { font: 600 12.5px/1.4 var(--f-mono); color: var(--accent); margin: 6px 0 8px; text-transform: uppercase; letter-spacing: .04em; }
.person p:last-child { color: var(--ink-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; padding: 14px; border-radius: 10px; background: color-mix(in srgb, var(--paper) 70%, transparent); border: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font: 700 12px/1 var(--f-mono); color: var(--accent); display: block; margin-bottom: 8px; }
.steps b { display: block; font-family: var(--f-display); font-size: 18px; }
.steps span { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.45; }

/* Kontakt */
.chapter-contact { padding-bottom: 18vh; }
.contact {
  position: relative; max-width: 920px; margin: 0 auto; text-align: center; padding: clamp(28px, 5vw, 60px);
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.contact h2 { font-size: clamp(30px, 4.4vw, 54px); max-width: 18ch; margin: 0 auto; }
.contact > p { margin: 16px auto 0; color: var(--ink-2); font-size: 18px; max-width: 52ch; }
.contact-grid { display: grid; grid-template-columns: repeat(3, auto); gap: 12px; margin: 32px 0; text-align: left; }
.contact-item { display: block; padding: 18px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; background: color-mix(in srgb, var(--paper) 70%, transparent); transition: transform .2s, border-color .2s; }
a.contact-item:hover { transform: translateY(-3px); border-color: var(--accent); }
.ci-label { display: block; font: 600 11.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 8px; }
.ci-value { font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }

/* Fusszeile */
.footer { position: relative; z-index: 2; padding: 0 var(--gutter) 24px; }
.footer-inner {
  max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; font-size: 14px; color: var(--ink-2);
  backdrop-filter: blur(8px);
}
.footer summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.legal { margin-top: 10px; max-width: 70ch; display: grid; gap: 8px; }
.motion-toggle { font: 600 13px/1 var(--f-body); background: none; border: 1.5px solid var(--line); color: var(--ink-2); padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.motion-toggle:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- HUD (Kartenrahmen) ----------------------------------------- */
.hud { position: fixed; z-index: 1; right: var(--gutter); bottom: 22px; display: flex; align-items: flex-end; gap: 10px; pointer-events: none;
  opacity: 0; transition: opacity 1s 1.5s; }
.world-ready .hud { opacity: 1; }
.hud-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hud-coords { padding: 10px 12px; font: 600 12px/1.55 var(--f-mono); min-width: 168px; }
.hud-row { display: flex; gap: 8px; align-items: baseline; }
.hud-row span { color: var(--accent); width: 12px; }
.hud-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.hud-row i { font-style: normal; color: var(--ink-3); font-size: 10.5px; }
.hud-compass { width: 58px; height: 58px; padding: 6px; }
.hud-compass svg { width: 100%; height: 100%; overflow: visible; }
.hud-compass circle { fill: none; stroke: var(--line); stroke-width: 1.5; }
.hud-compass .n { fill: var(--accent); } .hud-compass .s { fill: var(--ink-3); }
.hud-compass text { font: 700 6px var(--f-mono); fill: var(--ink); text-anchor: middle; }
.hud-map { padding: 6px; position: relative; }
.hud-map canvas { width: 132px; height: 132px; border-radius: 8px; image-rendering: auto; }
.hud-scale { position: absolute; left: 12px; bottom: 10px; display: flex; align-items: center; gap: 4px; font: 600 9.5px/1 var(--f-mono); color: #1d2a30; background: rgba(255,255,255,.7); padding: 2px 4px; border-radius: 4px; }
.hud-scale span { width: 20px; height: 4px; border: 1px solid #1d2a30; border-top: 0; }

/* ---------- Responsive -------------------------------------------------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav { position: fixed; inset: 76px 12px auto 12px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .25s, transform .25s; }
  .nav a { padding: 12px 14px; font-size: 17px; }
  .nav .nav-cta { margin: 6px 0 0; text-align: center; }
  .nav-open .nav { opacity: 1; pointer-events: auto; transform: none; }
  .nav-toggle { display: block; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 110px; padding-bottom: 60px; align-content: center; }
  .sheet { justify-self: stretch; transform: none; width: 100%; }
  .scroll-hint { display: none; }
  .hud-map { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .chapter { padding: 14vh var(--gutter); }
  .chapter-title { margin-bottom: 55vh; padding: 22px; }
  .cards, .projects, .clients, .contact-grid { grid-template-columns: 1fr; }
  .clients > li:nth-child(-n+3) { grid-column: auto; }
  .depts { grid-template-columns: 1fr; }
  .legend-list > div { grid-template-columns: 1fr; gap: 6px; }
  .person { grid-template-columns: 72px 1fr; }
  .avatar { width: 72px; height: 72px; }
  .steps { grid-template-columns: 1fr; }
  .timeline::before { left: 50px; }
  .tl-year { grid-template-columns: 64px 1fr; }
  .tl-y { font-size: 15px; }
  .tl-y::after { left: 44px; }
  .hud { right: auto; left: 50%; transform: translateX(-50%); bottom: 10px; }
  .hud-compass { display: none; }
  .hud-coords { display: flex; gap: 12px; min-width: 0; font-size: 10.5px; padding: 6px 10px; }
  .hud-row i { display: none; }
  .sheet-table td { font-size: 13.5px; }
  .sheet-table th:first-child { width: 38px; }
  .sheet::before { left: 48px; }
  .sheet-head h2, .sheet-note { padding-left: 36px; }
  .footer { padding-bottom: 70px; }
}
@media (max-width: 420px) {
  .brand-word { font-size: 17px; }
  .hero-title { font-size: 44px; }
  .sheet { padding: 16px 12px; }
  .sheet-head h2 { font-size: 21px; }
}

/* ---------- DevOps-Fabrik (Stadt) -------------------------------------- */
.devops { margin-bottom: 22px; padding: 20px 20px 18px; border-radius: 12px; border: 1.5px solid var(--line);
  background: linear-gradient(135deg, color-mix(in srgb, var(--fluss-fill) 10%, var(--paper)), color-mix(in srgb, var(--paper) 80%, transparent)); }
.devops-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.devops-head h3 { font-size: 24px; }
.devops-badge { font: 700 10.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: #fff; background: var(--land); padding: 5px 8px; border-radius: 99px; position: relative; padding-left: 18px; }
.devops-badge::before { content: ''; position: absolute; left: 7px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #c8f59c; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.devops > p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }
.pipeline { list-style: none; margin: 18px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; position: relative; counter-reset: st; }
.pipeline::before { content: ''; position: absolute; left: 6%; right: 6%; top: 22px; border-top: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent); }
.pipeline::after { content: ''; position: absolute; top: 15px; left: 4%; width: 16px; height: 14px; border-radius: 3px; background: var(--fluss-fill); box-shadow: 0 0 0 2px var(--paper);
  animation: packet 6s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes packet { 0% { left: 4%; background: var(--fluss-fill); } 45% { background: var(--land-fill); } 92% { left: calc(96% - 16px); opacity: 1; } 100% { left: calc(96% - 16px); opacity: 0; } }
.pipeline li { position: relative; text-align: center; padding-top: 46px; counter-increment: st; }
.pipeline li::before { content: counter(st); position: absolute; left: 50%; top: 4px; transform: translateX(-50%); width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; font: 700 13px/1 var(--f-mono); color: var(--ink); background: var(--paper); border: 2px solid var(--ink);
  animation: stage 6s infinite; }
.pipeline li:nth-child(1)::before { animation-delay: 0s; } .pipeline li:nth-child(2)::before { animation-delay: 1s; }
.pipeline li:nth-child(3)::before { animation-delay: 2s; } .pipeline li:nth-child(4)::before { animation-delay: 3s; }
.pipeline li:nth-child(5)::before { animation-delay: 4s; } .pipeline li:nth-child(6)::before { animation-delay: 5s; }
@keyframes stage { 0%, 12% { background: var(--land-fill); color: #fff; border-color: var(--land); transform: translateX(-50%) scale(1.12); } 22%, 100% { background: var(--paper); color: var(--ink); border-color: var(--ink); transform: translateX(-50%) scale(1); } }
.pipeline b { display: block; font-size: 13.5px; line-height: 1.2; }
.pipeline small { display: block; font-size: 11.5px; color: var(--ink-3); line-height: 1.3; margin-top: 2px; }
.devops-facts { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.devops-facts b { color: var(--ink); margin-right: 6px; }
.reduced .pipeline::after, .reduced .pipeline li::before, .reduced .devops-badge::before { animation: none; }
@media (max-width: 720px) {
  .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .pipeline::before, .pipeline::after { display: none; }
}

/* ---------- Rundflug-Steuerung ------------------------------------------ */
.autopilot {
  position: fixed; z-index: 40; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px;
  background: var(--ink); color: var(--paper); border-radius: 99px; box-shadow: var(--shadow);
  animation: ap-in .35s cubic-bezier(.2,.8,.2,1);
}
.autopilot[hidden] { display: none; }
@keyframes ap-in { from { opacity: 0; transform: translate(-50%, 12px); } }
.ap-status { font: 600 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; margin-right: 4px; display: inline-flex; align-items: center; gap: 8px; }
.ap-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--land-fill); animation: blink 1.4s infinite; }
.autopilot.is-paused .ap-status::before { background: #f2b134; animation: none; }
.ap-btn {
  display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border: 0; border-radius: 99px; cursor: pointer;
  background: color-mix(in srgb, var(--paper) 14%, transparent); color: var(--paper); font: 700 13px/1 var(--f-mono);
}
.ap-btn:hover { background: var(--fluss-fill); color: #fff; }
.ap-btn svg { width: 18px; height: 18px; fill: currentColor; }
.ap-btn .i-play { display: none; }
.autopilot.is-paused .ap-btn .i-play { display: block; }
.autopilot.is-paused .ap-btn .i-pause { display: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ap-speed { display: inline-flex; align-items: center; gap: 6px; padding: 0 4px; }
.ap-speed output { font: 700 12px/1 var(--f-mono); min-width: 40px; text-align: left; font-variant-numeric: tabular-nums; padding: 5px 6px; border-radius: 6px; background: #11161a; color: #c8f59c; letter-spacing: .02em; }
/* Tierskala: Schnecke – Bach mit Libelle – Wanderfalke */
.ap-critter { --spd: 3; display: flex; align-items: center; gap: 4px; }
.cr-end { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: transform .2s, background .2s; }
.cr-end:hover { background: color-mix(in srgb, var(--paper) 14%, transparent); transform: scale(1.12); }
.cr-end svg { width: 26px; height: 20px; overflow: visible; }
.sn-body { fill: none; stroke: #f2c98a; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sn-eye { fill: #f2c98a; }
.sn-shell { fill: #c98a4a; stroke: #f2c98a; stroke-width: 1; }
.sn-spiral { fill: none; stroke: #6b4426; stroke-width: 1; stroke-linecap: round; }
.cr-fast svg { width: 32px; height: 24px; }
.fk-wing { fill: #6f8091; stroke: #e9eef2; stroke-width: .6; stroke-linejoin: round; }
.fk-tip { fill: #2f3a44; }
.fk-tail { fill: #6f8091; stroke: #e9eef2; stroke-width: .6; stroke-linejoin: round; }
.fk-bars { stroke: #2f3a44; stroke-width: .8; }
.fk-body { fill: #5d6b78; stroke: #e9eef2; stroke-width: .6; }
.fk-head { fill: #2f3a44; stroke: #e9eef2; stroke-width: .6; }
.fk-cheek { fill: #f4f1ea; }
.fk-beak { fill: #f2b134; stroke: #2f3a44; stroke-width: .3; }
.fk-eyering { fill: #f2b134; }
.fk-eye { fill: #11161a; }
.fk-lines { stroke: #eef0ea; stroke-width: 1; stroke-linecap: round; opacity: .55; }
.ap-critter.is-slow .cr-slow svg { animation: snail-crawl 1.6s ease-in-out infinite; }
.ap-critter.is-fast .cr-fast svg { animation: falcon-dive .9s ease-in-out infinite; }
@keyframes snail-crawl { 50% { transform: translateX(-2px) scaleX(1.05); } }
@keyframes falcon-dive { 50% { transform: translate(2px, 1px) rotate(4deg); } }
.cr-track { position: relative; width: 116px; height: 34px; cursor: pointer; touch-action: none; }
.cr-river { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: 12px; transform: translateY(-50%); overflow: visible; }
.rv-bed { fill: none; stroke: #2c70a8; stroke-width: 5; stroke-linecap: round; opacity: .55; }
.rv-flow { fill: none; stroke: #9fd3ef; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 5 7;
  animation: rv-flow calc(2.6s / var(--spd)) linear infinite; }
@keyframes rv-flow { to { stroke-dashoffset: -24; } }
.cr-thumb { position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%) rotate(90deg);
  transition: left .35s cubic-bezier(.3,1.4,.5,1); pointer-events: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.ap-critter.is-dragging .cr-thumb { transition: none; }
.cr-thumb svg { width: 100%; height: 100%; overflow: visible; animation: df-hover 1.8s ease-in-out infinite; }
@keyframes df-hover { 50% { transform: translateX(-1.5px); } }
.df-wings ellipse { fill: rgba(228, 244, 252, .75); stroke: #9fd3ef; stroke-width: .6; }
.df-wings { transform-origin: 15px 13px; animation: df-flap calc(.5s / var(--spd)) ease-in-out infinite alternate; }
.df-wings-back { animation-delay: calc(-.25s / var(--spd)); }
@keyframes df-flap { to { transform: scaleX(.55); } }
.df-tail { stroke: #4290c9; stroke-width: 2.4; stroke-linecap: round; }
.df-thorax { fill: #6fae2c; }
.df-eye { fill: #3fb6a8; }
.ap-critter:has(input:focus-visible) .cr-track { outline: 2px solid var(--fluss-fill); outline-offset: 3px; border-radius: 8px; }
.reduced .rv-flow, .reduced .df-wings, .reduced .cr-thumb svg, .reduced .cr-end svg { animation: none; }
@media (max-width: 420px) { .cr-track { width: 84px; } .ap-status { display: none; } }
.autopilot-on .scroll-hint { opacity: 0; }
@media (max-width: 720px) { .autopilot { bottom: 52px; } }

.nowrap { white-space: nowrap; }

/* Animationen reduziert: alle CSS-Bewegungen aus */
.reduced *, .reduced *::before, .reduced *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
