/* translAPE — Leitsystem.
   Farben aus dem Logo gemessen (logo.jpg, Fassung vom 18.11.2026):
   Indigo #11024A bis #4415CE · Tuerkis #25E7E8 · Gelb #FEC219 · Fell #895445 / #FEE09F
   Rollen: Indigo = Halle und Schildtafel, Gelb = eigene Sprache und Ausgang,
   Tuerkis = Uebersetzung und Links, Fellton = geschuetzte Glossarbegriffe. */

:root {
  --hall: #0A0230;
  --hall-2: #120547;
  --hall-3: #1D0A66;
  --panel: #2A0A8F;
  --panel-hi: #3913B4;
  --indigo-hi: #6038EA; /* abgeleitet: hellere Stufe des Logo-Indigo #4415CE fuer Kanten und Linien */
  --line: #231069;
  --line-hi: #3D2599;
  --rule: rgba(255, 255, 255, 0.16);
  --teal: #25E7E8;
  --teal-hi: #8CF0F5;
  --yellow: #FEC219;
  --yellow-hi: #FFDA63;
  --ink: #0E0142;
  --fur: #C98A6B;
  --fur-hi: #FEE09F;
  --bad: #F0907F;
  --text: #F3F1FD;
  --text-mid: #BBB5E8;
  --text-dim: #9A94D2;
  --f-sign: "Encode Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", Consolas, monospace;
  --shell: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --top-h: 62px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='M4 12h14M12.5 5.5L19 12l-6.5 6.5'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='square'%3E%3Cpath d='M4.5 12.5l5 5L19.5 7'/%3E%3C/svg%3E");
  --i-menu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E");
  --i-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  --i-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='square'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  --i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='square'%3E%3Cpath d='M12 11v7M12 6.2v.6'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 20px); scrollbar-color: var(--line-hi) var(--hall); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--hall);
  color: var(--text);
  font-family: var(--f-sign);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--yellow);
}
::selection { background: var(--yellow); color: var(--ink); }

.shell { max-width: calc(var(--shell) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc a:hover, .legal a:hover, .go:hover { color: var(--teal-hi); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--yellow); color: var(--ink); padding: 10px 18px;
  border-radius: 0 0 6px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Piktogramme: eine Strichstaerke, als Maske, Farbe vom Text */
.ico { display: inline-block; width: 1em; height: 1em; flex: none; background: currentColor;
       -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat; }
.ico.up { transform: rotate(-90deg); }
.ico.upright { transform: rotate(-45deg); }
.ico.upleft { transform: rotate(-135deg); }
.ico.down { transform: rotate(90deg); }

/* Typografie */
h1, h2, h3 { margin: 0; font-family: var(--f-sign); text-wrap: balance; }
h1 { font-stretch: 80%; font-weight: 750; font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-stretch: 84%; font-weight: 700; font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.08; letter-spacing: -0.015em; }
h3 { font-stretch: 90%; font-weight: 650; font-size: 1.14rem; line-height: 1.25; }
p { margin: 0; }
.lede { font-size: clamp(1.06rem, 1.5vw, 1.2rem); color: var(--text-mid); line-height: 1.55; max-width: 60ch; }
.tiny { color: var(--text-dim); font-size: 14px; line-height: 1.5; }
.measure { max-width: 66ch; }
code, .code, .cmd { font-family: var(--f-mono); font-variant-ligatures: none; }
code { font-size: 0.86em; background: var(--hall-3); padding: 2px 6px; border-radius: 4px; color: var(--teal-hi); }
.code { display: inline-block; font-size: 13.5px; color: var(--ink); background: var(--teal);
        border-radius: 4px; padding: 3px 9px; font-weight: 500; white-space: nowrap; }

/* Sprachkuerzel wie Gate-Tafeln */
.lc { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5em;
      font-stretch: 80%; font-weight: 750; font-size: 0.72em; line-height: 1; letter-spacing: 0.06em;
      padding: 0.36em 0.3em 0.32em; border: 1.5px solid currentColor; border-radius: 3px; color: var(--teal); flex: none; }

/* Weiterfuehrende Links mit Pfeil */
.go { display: inline-flex; align-items: center; gap: 0.45em; font-weight: 600; text-decoration: none; }
.go::after { content: ""; width: 1em; height: 1em; flex: none; background: currentColor;
             -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat;
             transition: transform 0.25s var(--ease); }
.go:hover::after { transform: translateX(4px); }
.go.ext::after { transform: rotate(-45deg); }
.go.ext:hover::after { transform: rotate(-45deg) translateX(4px); }
.go.dn::after { transform: rotate(90deg); }
.go.dn:hover::after { transform: rotate(90deg) translateX(4px); }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 40; background: var(--hall); border-bottom: 1px solid var(--line); }
.top-in { max-width: calc(var(--shell) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
          min-height: var(--top-h); display: flex; align-items: center; gap: 6px; }
.brand { display: flex; align-items: center; gap: 10px; font-stretch: 88%; font-weight: 750; font-size: 21px;
         letter-spacing: -0.01em; color: var(--text); text-decoration: none; margin-right: 22px; }
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 50%; display: block; }
.brand em { font-style: normal; color: var(--yellow); }
.menu { display: contents; }
.menu a.link { font-size: 15.5px; font-weight: 550; color: var(--text-mid); text-decoration: none;
               padding: 0 12px; height: var(--top-h); display: flex; align-items: center;
               box-shadow: inset 0 -3px 0 transparent; transition: color 0.2s, box-shadow 0.2s; }
.menu a.link:hover { color: var(--text); }
.menu a.link[aria-current="page"] { color: var(--yellow); box-shadow: inset 0 -3px 0 var(--yellow); }
.langpick { margin-left: auto; order: 3; display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line-hi); border-radius: 6px; }
.langpick button { background: none; border: 0; cursor: pointer; padding: 6px 9px; border-radius: 3px;
                   font-family: var(--f-sign); font-stretch: 80%; font-weight: 700; font-size: 13px; letter-spacing: 0.06em;
                   color: var(--text-dim); display: flex; align-items: center; min-height: 30px; }
.langpick button:hover { color: var(--text); }
.langpick .flag { height: 11px; width: auto; margin-right: 6px; border-radius: 1px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4); }
.langpick button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }
.menu .btn { order: 4; margin-left: 10px; }
.menu-btn { display: none; order: 5; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn .ico { width: 24px; height: 24px; -webkit-mask-image: var(--i-menu); mask-image: var(--i-menu); }
.top.open .menu-btn .ico { -webkit-mask-image: var(--i-close); mask-image: var(--i-close); }

/* Knoepfe */
.btn { display: inline-flex; align-items: center; gap: 0.55em; background: var(--yellow); color: var(--ink);
       border: 0; font-family: var(--f-sign); font-stretch: 88%; font-weight: 700; font-size: 15px; line-height: 1.2;
       text-decoration: none; padding: 10px 16px; border-radius: 5px; cursor: pointer;
       transition: background 0.2s, transform 0.2s var(--ease); }
.btn:hover { background: var(--yellow-hi); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.navy { background: var(--ink); color: var(--yellow-hi); }
.btn.navy:hover { background: var(--panel); color: var(--yellow-hi); }
.btn.line { background: none; color: var(--yellow); box-shadow: inset 0 0 0 2px var(--yellow); }
.btn.line:hover { background: var(--yellow); color: var(--ink); }
.btn.wide { display: flex; justify-content: center; }
.btn.big { font-size: 1.12rem; padding: 15px 22px; }

/* Schildtafel */
.sign { position: relative; background: linear-gradient(180deg, var(--panel-hi), var(--panel) 46%);
        border-radius: 12px; padding: clamp(22px, 4vw, 48px);
        box-shadow: inset 0 0 0 1px var(--indigo-hi), 0 34px 60px -38px rgba(0, 0, 0, 0.85); }
.sign::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 7px; pointer-events: none; }

/* Einstieg */
.hero { margin-top: clamp(18px, 3vw, 34px); }
.hero-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.sign-main { white-space: pre-line; color: var(--yellow); font-size: clamp(2.5rem, 8.2vw, 5.9rem); line-height: 0.98;
             font-stretch: 78%; font-weight: 780; letter-spacing: -0.012em; margin: 0.1em 0 0; text-wrap: wrap; }
.hero-title { display: flex; align-items: baseline; gap: 0.9em; font-size: clamp(1.04rem, 2.1vw, 1.5rem); }
.hero .lc.own { color: var(--yellow); font-size: 0.72em; transform: translateY(-0.5em); }
.roundel { width: clamp(84px, 13vw, 164px); height: auto; aspect-ratio: 1; border-radius: 50%; flex: none;
           box-shadow: 0 0 0 3px var(--text), 0 14px 30px -14px rgba(0, 0, 0, 0.8); }
.sign-rows { list-style: none; margin: clamp(22px, 3.4vw, 40px) 0 0; padding: 0; }
.sign-rows li { display: flex; align-items: baseline; gap: 0.9em; padding: 0.62em 0; border-top: 1px solid var(--rule);
                font-stretch: 86%; font-weight: 520; font-size: clamp(1.04rem, 2.1vw, 1.5rem); line-height: 1.25; color: var(--text); }
.sign-rows .lc { transform: translateY(-0.1em); }
.sign-rows .s { display: inline-block; }
html[lang="en"] .sign-rows [data-row="en"], html[lang="de"] .sign-rows [data-row="de"] { display: none; }
.sign-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: end;
             border-top: 3px solid var(--text); margin-top: 0; padding-top: 28px; }
.sign-foot .lede { color: var(--text); }
.sign-foot .tiny { color: var(--text-mid); margin-top: 10px; }
.exits { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.exits .go { color: var(--text); font-size: 15.5px; }
.sign .exits .go:hover { color: var(--teal-hi); }

@keyframes flap-in { from { transform: perspective(900px) rotateX(-88deg); opacity: 0.3; } to { transform: perspective(900px) rotateX(0deg); opacity: 1; } }
@keyframes flap-out { from { transform: perspective(900px) rotateX(0deg); opacity: 1; } to { transform: perspective(900px) rotateX(88deg); opacity: 0.3; } }
.flip .sign-main, .flip .sign-rows li { transform-origin: 50% 0; animation: flap-in 0.5s var(--ease) both; backface-visibility: hidden; }
.flip-out .sign-main, .flip-out .sign-rows li { transform-origin: 50% 100%; animation: flap-out 0.18s ease-in both; }
.flip .sign-rows li:nth-child(1) { animation-delay: 0.05s; }
.flip .sign-rows li:nth-child(2) { animation-delay: 0.1s; }
.flip .sign-rows li:nth-child(3) { animation-delay: 0.15s; }
.flip .sign-rows li:nth-child(4) { animation-delay: 0.2s; }
.flip .sign-rows li:nth-child(5) { animation-delay: 0.25s; }

/* Abschnitte */
.band { padding: clamp(72px, 10vw, 128px) 0 0; }
.band > h2 + .lede { margin-top: 16px; }
.band-body { margin-top: clamp(28px, 4vw, 44px); }

/* Kanal-Vorschau mit Erlaeuterungen */
.live { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.chat { background: var(--hall-2); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px 20px; }
.chat-head { font-family: var(--f-mono); font-size: 13px; color: var(--text-dim); padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.msg { display: flex; gap: 12px; margin-bottom: 6px; }
.av { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
      font-stretch: 85%; font-size: 14px; font-weight: 700; }
.msg-name { font-size: 14px; font-weight: 650; line-height: 1.3; }
.msg-text { font-size: 16.5px; line-height: 1.45; }
.tr { margin: 2px 0 18px 46px; display: flex; flex-direction: column; gap: 5px; }
.tr div { display: flex; align-items: baseline; gap: 10px; font-size: 15px; line-height: 1.4; color: var(--text-mid); }
.tr .lc { font-size: 11px; transform: translateY(-1px); }
.skip { margin: 2px 0 0 46px; font-size: 14px; color: var(--text-dim); }
.demo-note { margin-top: 12px; font-size: 14px; color: var(--text-dim); }
.kept { background: rgba(137, 84, 69, 0.55); color: #FEE09F; padding: 0 5px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--fur); }
.wrong { color: var(--bad); text-decoration: line-through; text-decoration-thickness: 1.5px; }

.points { margin: 0; }
.points > div { padding: 18px 0 20px; border-top: 1px solid var(--line-hi); }
.points > div:last-child { border-bottom: 1px solid var(--line-hi); }
.points dt { font-stretch: 90%; font-weight: 650; font-size: 1.14rem; }
.points dd { margin: 6px 0 0; color: var(--text-mid); font-size: 15.5px; }

/* Strecke: drei Halte */
.route { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); counter-reset: halt; }
.route li { position: relative; padding-top: 58px; counter-increment: halt; }
.route li::before { content: ""; position: absolute; top: 19px; left: 0; right: calc(-1 * clamp(20px, 3vw, 40px)); height: 4px; background: var(--indigo-hi); }
.route li:last-child::before { right: 0; background: linear-gradient(90deg, var(--indigo-hi) 60%, transparent); }
.route li::after { content: counter(halt); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%;
                   background: var(--hall); border: 4px solid var(--yellow); color: var(--yellow);
                   display: flex; align-items: center; justify-content: center; font-stretch: 80%; font-weight: 780; font-size: 19px; line-height: 1; }
.route h3 { font-size: 1.28rem; }
.route p { margin-top: 8px; color: var(--text-mid); font-size: 15.5px; max-width: 34ch; }

/* Glossar: Vergleich */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.compare .chat-head { font-family: var(--f-sign); font-stretch: 88%; font-weight: 650; font-size: 14px; letter-spacing: 0.02em; color: var(--text-mid); }
.compare .tr { margin-bottom: 0; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); margin-top: clamp(28px, 4vw, 40px); }
.facts > div { border-top: 1px solid var(--line-hi); padding-top: 16px; }
.facts p { margin-top: 6px; color: var(--text-mid); font-size: 15.5px; }
.asides { margin-top: 26px; display: grid; gap: 10px; max-width: 78ch; }

/* Wegweiser: drei Betriebsarten */
.directory { padding-bottom: clamp(14px, 2vw, 24px); }
.directory h2 { padding-bottom: clamp(18px, 3vw, 28px); }
.dir-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 8px clamp(16px, 2.6vw, 30px); align-items: start;
           padding: 22px 0; border-top: 1px solid var(--rule); }
.dir-row:first-of-type { border-top: 3px solid var(--text); }
.dir-arrow { width: 56px; height: 56px; border-radius: 6px; background: var(--text); color: var(--panel); display: flex; align-items: center; justify-content: center; }
.dir-arrow .ico { width: 34px; height: 34px; }
.dir-row h3 { font-size: clamp(1.25rem, 2.3vw, 1.6rem); font-stretch: 84%; font-weight: 700; }
.dir-row p { margin-top: 6px; color: #D5D0F4; font-size: 15.5px; max-width: 62ch; }
.dir-row .code { margin-top: 4px; font-size: 14.5px; }
.dir-row .go { margin-top: 10px; font-size: 15px; color: var(--teal-hi); }
.directory .tiny { color: #C6C0EE; border-top: 1px solid var(--rule); padding-top: 16px; }

/* Ausgang */
.exit-band { margin-top: clamp(72px, 10vw, 128px); background: var(--yellow); color: var(--ink); border-radius: 12px;
             padding: 52px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: end;
             box-shadow: 0 34px 60px -38px rgba(0, 0, 0, 0.85); position: relative; }
.exit-band::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(14, 1, 66, 0.3); border-radius: 7px; pointer-events: none; }
.exit-band h2 { font-size: clamp(2rem, 5vw, 3.6rem); font-stretch: 78%; font-weight: 780; line-height: 1; }
.exit-band p { margin-top: 14px; font-weight: 550; color: #1C1140; max-width: 46ch; }
.exit-band .exits .go { color: var(--ink); }
.exit-band .exits .go:hover { color: #3913B4; }
.exit-band ::selection, .btn ::selection { background: var(--ink); color: var(--yellow); }

/* Preise */
.page-head { padding-top: clamp(40px, 7vw, 84px); }
.page-head .lede { margin-top: 16px; }
.plans { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px; margin-top: clamp(28px, 4vw, 44px); align-items: start; }
.plan { background: var(--hall-2); border: 1px solid var(--line-hi); border-radius: 12px; padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; }
.plan.featured { position: relative; border: 0; background: linear-gradient(180deg, var(--panel-hi), var(--panel) 46%);
                 box-shadow: inset 0 0 0 2px var(--yellow), 0 34px 60px -38px rgba(0, 0, 0, 0.85); }
.plan .tier { font-stretch: 84%; font-weight: 700; font-size: 1.35rem; display: flex; align-items: center; gap: 12px; }
.plan.featured .tier { color: var(--yellow); }
.tag { font-stretch: 80%; font-weight: 750; font-size: 12px; letter-spacing: 0.08em; background: var(--yellow); color: var(--ink); padding: 4px 8px 3px; border-radius: 3px; line-height: 1; }
.price { font-stretch: 76%; font-weight: 780; font-size: clamp(3rem, 7vw, 4.6rem); letter-spacing: -0.02em; line-height: 1; margin: 14px 0 0; font-variant-numeric: tabular-nums lining-nums; }
.price small { font-stretch: 90%; font-weight: 500; font-size: 1.05rem; color: var(--text-mid); letter-spacing: 0; }
.plan > .tiny { margin-top: 8px; }
.plan.featured > .tiny { color: #C6C0EE; }
.feat { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; }
.feat li { font-size: 16px; font-weight: 550; display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--rule); }
.plan:not(.featured) .feat li { border-top-color: var(--line-hi); }
.feat .chk { width: 20px; height: 20px; margin-top: 3px; flex: none; background: var(--teal); font-size: 0; color: transparent;
             -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat; }
.plan.featured .feat .chk { background: var(--yellow); }
.feat .sub { display: block; font-size: 14px; font-weight: 400; color: var(--text-dim); margin-top: 2px; }
.plan.featured .feat .sub { color: #C6C0EE; }
.plan .btn { margin-top: 22px; }
.plan .btn + .tiny { margin-top: 12px; text-align: center; color: #C6C0EE; }

.usage { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(28px, 5vw, 64px); align-items: start; }
.usage h2 + p { margin-top: 14px; color: var(--text-mid); }
.usage .tiny { grid-column: 1 / -1; max-width: 86ch; }
.bars { border-top: 3px solid var(--text); }
.bar-row { display: grid; grid-template-columns: 7.5em 1fr 4.2em; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-hi); }
.bar-row span:first-child { font-weight: 600; font-stretch: 90%; }
.track { background: var(--hall-3); border-radius: 2px; height: 14px; overflow: hidden; }
.fill { height: 100%; background: var(--teal); }
.bar-row span:last-child { font-stretch: 80%; font-weight: 750; font-size: 1.35rem; text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.bars-cap { font-size: 14px; color: var(--text-dim); padding-top: 10px; }

.faq { margin-top: clamp(56px, 8vw, 96px); }
.faq .qa { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6px clamp(28px, 5vw, 64px); }
.faq h2 { margin-bottom: clamp(22px, 3vw, 32px); }

table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15.5px; }
th, td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line-hi); vertical-align: top; }
th { font-stretch: 84%; font-weight: 700; font-size: 13px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-dim); border-bottom: 3px solid var(--text); }
td { color: var(--text-mid); }
td strong { color: var(--text); font-weight: 650; }
.tblwrap { overflow-x: auto; }

/* Rechtstexte */
.legal { max-width: 72ch; padding: clamp(40px, 7vw, 84px) 0 0; }
.legal h2 { font-size: 1.45rem; margin: 44px 0 0; }
.legal h3 { font-size: 1.1rem; margin: 28px 0 0; }
.legal p { color: var(--text-mid); margin-top: 12px; }
.legal ul { color: var(--text-mid); padding-left: 20px; margin: 12px 0 0; display: flex; flex-direction: column; gap: 7px; }
.legal .updated { font-size: 14px; color: var(--text-dim); margin-top: 12px; }
.legal .todo { background: var(--hall-2); border: 1px dashed var(--yellow); border-radius: 6px; padding: 14px 18px; color: var(--yellow-hi); font-size: 15px; margin-top: 14px; }
.legal .todo strong { color: var(--yellow); }

/* Dokumentation */
.docwrap { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding: clamp(32px, 5vw, 56px) 0 0; align-items: start; }
.docnav { position: sticky; top: calc(var(--top-h) + 24px); max-height: calc(100vh - var(--top-h) - 48px); overflow-y: auto; scrollbar-width: thin; }
.docnav-btn { display: none; }
.docnav .grp { font-stretch: 84%; font-weight: 700; font-size: 13px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-dim);
               margin: 22px 0 6px; padding-bottom: 7px; border-bottom: 1px solid var(--line-hi); }
.docnav .grp:first-child { margin-top: 0; }
.docnav a { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--text-mid); text-decoration: none; padding: 5px 0; min-height: 32px; }
.docnav a::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--yellow); opacity: 0;
                    -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat;
                    margin-left: -22px; transition: opacity 0.2s, margin 0.25s var(--ease); }
.docnav a:hover { color: var(--text); }
.docnav a[aria-current="location"] { color: var(--yellow); font-weight: 650; }
.docnav a[aria-current="location"]::before { opacity: 1; margin-left: 0; }

.doc { min-width: 0; max-width: 74ch; }
.doc > [data-lang-block] > .lede { margin-top: 16px; }
.doc section { padding-top: clamp(44px, 6vw, 64px); scroll-margin-top: calc(var(--top-h) + 4px); }
.doc h2 { font-size: clamp(1.5rem, 2.8vw, 1.9rem); padding-bottom: 12px; border-bottom: 3px solid var(--text); }
.doc h3 { margin: 30px 0 0; }
.doc p { color: var(--text-mid); margin-top: 13px; }
.doc ul, .doc ol { color: var(--text-mid); padding-left: 22px; margin: 13px 0 0; display: flex; flex-direction: column; gap: 9px; }
.doc li strong, .doc p strong { color: var(--text); font-weight: 650; }
.doc pre { background: var(--hall-2); border: 1px solid var(--line-hi); border-radius: 6px; padding: 15px 18px; overflow-x: auto; margin: 16px 0 0; }
.doc pre code { background: none; padding: 0; color: var(--teal-hi); font-size: 14.5px; }
.doc .cmd, .cmd { font-size: 0.88em; color: var(--teal-hi); white-space: nowrap; }

.note { position: relative; background: var(--hall-3); border-radius: 6px; padding: 16px 20px 16px 58px; margin-top: 20px; }
.note::before { content: ""; position: absolute; left: 16px; top: 16px; width: 26px; height: 26px; border-radius: 4px; background: var(--teal); }
.note::after { content: ""; position: absolute; left: 19px; top: 19px; width: 20px; height: 20px; background: var(--ink);
               -webkit-mask: var(--i-info) center / contain no-repeat; mask: var(--i-info) center / contain no-repeat; }
.note p, .doc .note p { margin: 0; font-size: 15.5px; color: #D5D0F4; }
.note p + p, .doc .note p + p { margin-top: 8px; }
.note.warn::before { background: var(--yellow); }
.note strong { color: var(--text); }

.qa { border-top: 1px solid var(--line-hi); padding: 18px 0; }
.qa:last-child { border-bottom: 1px solid var(--line-hi); }
.qa h3, .doc .qa h3 { margin: 0; font-size: 1.08rem; }
.qa p, .doc .qa p { margin-top: 7px; color: var(--text-mid); font-size: 15.5px; }
.faq .qa p { margin-top: 0; }

/* Fusszeile */
.foot { border-top: 1px solid var(--line); margin-top: clamp(72px, 10vw, 128px); padding: 30px 0 44px; }
.foot-in { display: flex; gap: 6px 26px; flex-wrap: wrap; align-items: center; }
.foot a { font-size: 15px; font-weight: 500; color: var(--text-mid); text-decoration: none; padding: 6px 0; }
.foot a:hover { color: var(--text); }
.foot .brand { font-size: 18px; margin: 0 0 0 auto; }

[data-lang-block] { display: none; }
[data-lang-block].on { display: block; }

/* Schmale Bildschirme */
@media (max-width: 900px) {
  .live, .usage, .plans { grid-template-columns: minmax(0, 1fr); }
  .sign-foot, .exit-band { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .exit-band { padding: 28px; }
  .sign-foot { padding-top: 22px; }
  .faq .qa { grid-template-columns: minmax(0, 1fr); }
  .faq .qa p { margin-top: 4px; }

  .docwrap { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  .docnav { top: var(--top-h); z-index: 30; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); max-height: none; overflow: visible;
            background: var(--hall-2); border-bottom: 1px solid var(--line-hi); }
  .docnav-btn { display: flex; width: 100%; min-height: 48px; align-items: center; gap: 10px; background: none; border: 0; padding: 0; cursor: pointer;
                font-family: var(--f-sign); font-size: 15.5px; color: var(--text); text-align: left; }
  .docnav-btn .lbl { color: var(--text-dim); font-stretch: 84%; font-weight: 700; font-size: 13px; letter-spacing: 0.07em; text-transform: uppercase; flex: none; }
  .docnav-btn .cur { font-weight: 650; color: var(--yellow); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
  .docnav-btn .ico { -webkit-mask-image: var(--i-chev); mask-image: var(--i-chev); width: 20px; height: 20px; transition: transform 0.25s var(--ease); }
  .docnav.open .docnav-btn .ico { transform: rotate(180deg); }
  .docnav-list { display: none; max-height: calc(100vh - var(--top-h) - 60px); max-height: calc(100dvh - var(--top-h) - 60px); overflow-y: auto; padding: 6px 0 18px 22px; overscroll-behavior: contain; }
  .docnav.open .docnav-list { display: block; }
  .docnav a { min-height: 42px; font-size: 16px; }
  .doc { padding-top: 32px; }
  .doc section { scroll-margin-top: calc(var(--top-h) + 52px); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .brand { margin-right: 0; }
  .menu-btn { display: flex; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
          background: var(--hall-2); border-bottom: 1px solid var(--line-hi); padding: 6px var(--gutter) 22px;
          box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.8); }
  .top.open .menu { display: flex; }
  .menu a.link { height: auto; min-height: 54px; padding: 0; font-size: 1.3rem; font-stretch: 84%; font-weight: 700; color: var(--text);
                 border-bottom: 1px solid var(--line-hi); box-shadow: none; justify-content: space-between; }
  .menu a.link::after { content: ""; width: 22px; height: 22px; background: currentColor;
                        -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat; }
  .menu a.link[aria-current="page"] { box-shadow: none; }
  .menu .btn { margin: 18px 0 0; justify-content: center; font-size: 1.08rem; padding: 14px 18px; }

  .hero-head { display: block; }
  .hero-title { display: block; }
  .hero .lc.own { font-size: 0.8rem; transform: none; }
  .roundel { position: absolute; top: 16px; right: 16px; width: 62px; box-shadow: 0 0 0 2px var(--text); }
  .sign-main { font-size: clamp(2.1rem, 10.6vw, 4rem); margin-top: 0.5em; }
  .route { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .route li { padding: 0 0 30px 62px; min-height: 72px; }
  .route li::before { top: 0; bottom: 0; left: 19px; right: auto; width: 4px; height: auto; }
  .route li:last-child::before { right: auto; bottom: 0; background: linear-gradient(180deg, var(--indigo-hi) 30%, transparent); }
  .route li:last-child { padding-bottom: 0; }
  .route h3 { padding-top: 7px; }
  .route p { max-width: none; }
  .compare, .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div { padding-bottom: 18px; }
  .dir-row { grid-template-columns: 44px minmax(0, 1fr); }
  .dir-arrow { width: 44px; height: 44px; }
  .dir-arrow .ico { width: 26px; height: 26px; }
  .dir-row .code { grid-column: 2; justify-self: start; margin-top: 0; }
  .bar-row { grid-template-columns: 6.2em 1fr 3.2em; gap: 12px; }
  .foot .brand { margin-left: 0; flex-basis: 100%; order: -1; padding-bottom: 6px; }
  .btn.big { width: 100%; justify-content: center; }
  .exits { align-items: stretch; }
  .exits .go { justify-content: flex-start; min-height: 40px; }
}

@media (max-width: 360px) {
  .langpick .flag { display: none; }
  .brand { font-size: 19px; gap: 8px; }
}

@media (min-width: 761px) and (max-width: 940px) {
  .sign-main { font-size: 6.7vw; }
}

/* Fokusring: auf gelben Flaechen waere Gelb unsichtbar */
.btn:focus-visible, .langpick button:focus-visible { outline-color: var(--text); }
.exit-band :focus-visible { outline-color: var(--ink); }
