:root {
  /* Grundtöne */
  /* Palette „Petrol und Messing“ (12. Fassung): ruhiges Tiefpetrol als Marke,
     Messing als Signatur der Kapsel am Bein des Botenvogels, warmer Papiergrund */
  --canvas: #F3F1EC;
  --surface: rgba(255, 255, 255, .82);
  --surface-solid: #FFFFFF;
  --chrome: #F8F7F3;
  --tint-lo: #E9E7E0;
  --tint: #DEE8E7;
  --tint-hi: #E9F1F0;
  --ink: #142128;
  --ink-rgb: 20, 33, 40;
  --ink-2: #1F3640;
  --soft: #55636A;
  --soft-2: #6A767C;
  --line: rgba(var(--ink-rgb), .11);
  /* Markenfarbe und Begleiter */
  --accent: #1C5B6B;
  --accent-rgb: 28, 91, 107;
  --accent-2: #A8742A;
  --accent-light: #8CC0C8;
  --accent-soft: rgba(var(--accent-rgb), .08);
  --accent-ink: #FFFFFF;
  --brass: #A8742A;
  --glow-rgb: 64, 158, 160;
  --glow2-rgb: 201, 138, 46;
  --cta: #1A5463;
  /* Zustände */
  --ok: #1A7F48;
  --ok-rgb: 26, 127, 72;
  --ok-light: #86DCA9;
  --danger: #C23A25;
  --danger-rgb: 194, 58, 37;
  --display: "Segoe UI Variable Display", "SF Pro Display", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --text: "Segoe UI Variable Text", "Segoe UI", -apple-system, "SF Pro Text", Roboto, Arial, sans-serif;
  --mono: "Cascadia Mono", "SF Mono", Consolas, ui-monospace, monospace;
  --gutter: clamp(18px, 5vw, 80px);
  --bar: 72px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(var(--ink-rgb), .05), 0 12px 40px -12px rgba(var(--ink-rgb), .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar); background: var(--canvas); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 400 clamp(1rem, .96rem + .2vw, 1.12rem)/1.62 var(--text); overflow-x: clip; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

main, .bar { position: relative; z-index: 1; }

/* Leiste: schwebende Kapsel */
.bar {
  position: fixed; top: 14px; left: 50%; z-index: 10; transform: translateX(-50%);
  width: min(calc(100% - 28px), 64rem); height: 52px; padding: 0 8px 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .9); border-radius: 999px;
  box-shadow: 0 1px 2px rgba(var(--ink-rgb), .06), 0 8px 24px -10px rgba(var(--ink-rgb), .18);
}
.mark { display: inline-flex; align-items: center; gap: 9px; font: 600 1.08rem var(--display); letter-spacing: -.01em; text-decoration: none; }
.mark svg { width: 28px; height: 28px; margin: -4px 0 -4px -4px; fill: var(--accent); }
/* Bildmarke: der Botenvogel, der Flügel als hellere Faltfläche */
.wing { opacity: .72; }
@keyframes flap { to { transform: scaleY(-.6); } }
.bar-links { display: flex; gap: clamp(14px, 2vw, 28px); font-size: .9rem; color: var(--soft); }
.bar-links a { text-decoration: none; padding: 8px 0; transition: color .15s linear; }
.bar-links a:hover { color: var(--ink); }
.bar-cta {
  font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  color: #fff; background: var(--ink); padding: 0 16px; height: 36px; border-radius: 999px;
  display: inline-flex; align-items: center; transition: background-color .15s linear;
}
.bar-cta:hover { background: var(--accent); }

/* Abschnitte: gleiche Breite, klarer Rhythmus, weiße Bänder im Wechsel */
.wrap { width: 100%; max-width: 76rem; margin-inline: auto; }
.sect { padding: clamp(88px, 11vw, 148px) var(--gutter); }
.band { background: var(--surface-solid); border-block: 1px solid var(--line); }
.sect-head { max-width: 44rem; margin-bottom: clamp(36px, 5vw, 64px); }
.sect-head .lead { margin-top: 1.2rem; color: var(--soft); }

h1, h2, h3 { font-family: var(--display); }
h1 { font-size: clamp(2.6rem, 5.2vw, 4.9rem); font-weight: 350; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.6vw, 3.3rem); font-weight: 350; line-height: 1.08; letter-spacing: -.028em; text-wrap: balance; }
h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.25; letter-spacing: -.006em; }
.lead { font-size: 1.16em; line-height: 1.5; color: var(--ink); text-wrap: pretty; }

/* Zweispaltig: Überschrift links, Inhalt rechts */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1.3em clamp(32px, 6vw, 96px); align-items: start; }
.block-head { position: sticky; top: calc(var(--bar) + 48px); }
.block-head .lead { margin-top: 1.2rem; color: var(--soft); }

/* Einblendung: Überschriften schärfen sich beim ersten Sichtbarwerden */
.js [data-reveal] { opacity: 0; filter: blur(14px); transform: translateY(.35em); transition: opacity .9s ease-out, filter 1.1s ease-out, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-in { opacity: 1; filter: none; transform: none; }

/* Hero: Text links, rechts Mailprogramm und Empfänger-Browser auf einer Farbfläche */
.hero {
  position: relative; padding: calc(var(--bar) + clamp(48px, 9vh, 104px)) var(--gutter) clamp(48px, 7vw, 88px);
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(var(--accent-rgb), .14), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(var(--glow-rgb), .08), transparent 70%);
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 1.6rem;
  padding: 6px 14px 6px 8px; border-radius: 999px; font-size: .86rem; color: var(--soft);
  background: rgba(255, 255, 255, .75); border: 1px solid var(--line);
}
.chip b { font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 2px 9px; border-radius: 999px; }
.hero-sub { margin-top: 1.5rem; max-width: 32rem; font-size: 1.18em; line-height: 1.5; color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.2rem; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.facts li { display: flex; gap: 12px; align-items: flex-start; padding: 22px 20px 0 0; }
.facts li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.facts svg { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.facts span { display: flex; flex-direction: column; font-size: .86rem; line-height: 1.4; color: var(--soft); }
.facts b { font-size: .95rem; color: var(--ink); }

.btn {
  appearance: none; border: 1px solid var(--accent); border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; min-height: 50px; padding: 0 24px;
  background: var(--accent); color: var(--accent-ink);
  font: 600 1rem var(--text); text-decoration: none; white-space: nowrap;
  box-shadow: 0 8px 22px -10px rgba(var(--accent-rgb), .7);
  transition: transform .15s ease-out, background-color .15s linear, color .15s linear, box-shadow .15s linear, border-color .15s linear;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(var(--accent-rgb), .8); }
.btn:active { transform: none; }
.btn-ghost { background: rgba(255, 255, 255, .8); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn-light { background: #fff; color: var(--accent); border-color: #fff; box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .45); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); box-shadow: none; }
.btn-outline:hover { border-color: #fff; box-shadow: none; }
.btn-small { min-height: 44px; padding: 0 16px; font-size: .92rem; }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(var(--danger-rgb), .5); box-shadow: none; }
.btn-danger:hover { background: var(--danger); color: #fff; box-shadow: none; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }

/* Fensterleiste für Mailprogramm, Browser und Demo */
.win-bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--chrome); font-size: .78rem; color: var(--soft); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(var(--ink-rgb), .13); }
.win-bar span { margin-left: 10px; }
.win-bar .url { flex: 1; display: inline-flex; align-items: center; gap: 6px; max-width: 18rem; margin-inline: auto; padding: 3px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.win-bar svg { width: 12px; height: 12px; fill: none; stroke: var(--ok); stroke-width: 2.2; stroke-linecap: round; }

/* Komposition im Hero */
.seal {
  position: relative; height: 500px; margin: 0; border-radius: 28px; overflow: visible;
  background:
    radial-gradient(55% 55% at 22% 18%, rgba(var(--accent-rgb), .32), transparent 70%),
    radial-gradient(45% 50% at 88% 34%, rgba(var(--glow-rgb), .24), transparent 70%),
    radial-gradient(60% 55% at 62% 96%, rgba(var(--glow2-rgb), .26), transparent 70%),
    var(--tint);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
}
.seal::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
}
.compose, .seal-mail { position: absolute; overflow: hidden; background: var(--surface-solid); border: 1px solid rgba(var(--ink-rgb), .08); border-radius: 14px; box-shadow: 0 2px 4px rgba(var(--ink-rgb), .04), 0 24px 60px -18px rgba(var(--ink-rgb), .35); }
.compose { left: 6%; top: 8%; width: 66%; }
.compose-tools { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.compose-send { padding: 5px 14px; border-radius: 7px; font-size: .78rem; font-weight: 600; color: #fff; background: var(--ink); }
.toggle { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 5px; border-radius: 999px; font-size: .76rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); }
.toggle i { position: relative; width: 26px; height: 15px; border-radius: 999px; background: var(--accent); }
.toggle i::after { content: ""; position: absolute; right: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.compose-fields { padding: 4px 14px; font-size: .8rem; }
.compose-fields > div { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.compose-fields dt { width: 3.6rem; color: var(--soft); }
.compose-body { padding: 12px 14px 4px; font-size: .86rem; line-height: 1.5; color: var(--ink); }
.attach { display: inline-flex; align-items: center; gap: 6px; margin: 8px 14px 16px; padding: 4px 10px; border-radius: 8px; font-size: .76rem; background: rgba(var(--ink-rgb), .05); }
.attach svg { width: 13px; height: 13px; fill: none; stroke: var(--soft); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.seal-mail { right: 4%; bottom: 7%; width: 64%; z-index: 2; }
.reader { padding: 16px 18px 14px; }
.seal-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--soft); }
.seal-head span:last-child { color: var(--ink); font-weight: 600; }
.seal-body { min-height: 4.8em; font: 400 .86rem/1.6 var(--mono); color: var(--accent); overflow-wrap: anywhere; word-break: break-all; }
.seal-body.is-open { font: 400 .98rem/1.5 var(--text); color: var(--ink); word-break: normal; }
.seal-body mark { color: inherit; background: rgba(var(--ok-rgb), .13); border-radius: 3px; padding: 0 2px; }
.seal-hole { display: inline-block; width: 8ch; height: 1.15em; margin: 0 2px; vertical-align: -.22em; border: 1px dashed var(--danger); border-radius: 3px; background: rgba(var(--danger-rgb), .08); }
.seal-hole.is-filled { width: auto; height: auto; white-space: nowrap; vertical-align: baseline; border: 1px solid var(--ok); background: rgba(var(--ok-rgb), .1); color: var(--ok); }
.seal-status { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .8rem; color: var(--soft); transition: color .3s linear; }
.seal-status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transition: background-color .3s linear; }
.seal-status[data-tone="ok"] { color: var(--ok); }
.seal-status[data-tone="ok"]::before { background: var(--ok); }

.seal-piece {
  position: absolute; right: 3%; top: 6%; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; background: var(--surface-solid); border: 1.5px solid var(--accent); border-radius: 14px; box-shadow: var(--shadow);
  animation: drift 3.2s ease-in-out infinite;
}
.seal-piece .bird { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); }
.seal-piece svg { width: 28px; height: 28px; fill: var(--accent); }
.is-flying .seal-piece .wing { transform-box: view-box; transform-origin: 14.6px 13.3px; animation: flap .26s ease-in-out infinite alternate; }
.seal-piece span { display: flex; flex-direction: column; line-height: 1.3; }
.seal-piece b { font-size: .76rem; }
.seal-piece code { font: 400 .82rem var(--mono); color: var(--accent); }
.seal-piece.is-docked { opacity: 0; }
.is-flying .seal-piece { animation: none; }
@keyframes drift { 50% { translate: 0 -6px; } }

.otp {
  position: absolute; left: 3%; bottom: 12%; z-index: 3; display: flex; flex-direction: column; gap: 6px;
  padding: 10px 12px; background: var(--surface-solid); border-radius: 12px; box-shadow: var(--shadow); font-size: .72rem; font-weight: 600; color: var(--soft);
  opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .3s linear, transform .4s cubic-bezier(.3, 1.6, .5, 1);
}
.otp.is-on { opacity: 1; transform: none; }
.otp-digits { display: flex; gap: 4px; }
.otp-digits b { display: grid; place-items: center; width: 22px; height: 28px; border-radius: 6px; border: 1px solid var(--line); font: 600 .9rem var(--mono); color: var(--ink); }
.otp-digits b:not(:empty) { border-color: var(--accent); }
.otp.is-ok .otp-digits b { border-color: var(--ok); color: var(--ok); }

/* Weg einer E-Mail */
.route { position: relative; }
.route.is-live { height: 560vh; }
.route-stage {
  display: grid; grid-template-rows: auto auto auto; align-content: center; gap: clamp(24px, 4.5vh, 52px);
  padding: calc(var(--bar) + 40px) var(--gutter) 40px;
}
.is-live .route-stage { position: sticky; top: 0; height: 100vh; height: 100svh; }
.route-head { max-width: 44rem; }
.route-head h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
.route-caption { margin-top: 1rem; min-height: 3em; font-size: 1.16em; line-height: 1.45; color: var(--soft); text-wrap: pretty; }

.route-track { position: relative; padding-top: 34px; }
.route-track ol { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
/* Leitung: grau die ganze Strecke, darüber fließen Daten auf dem zurückgelegten Teil */
.route-track ol::before, .route-track ol::after {
  content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 3px; border-radius: 3px; background: var(--line);
}
.route-track { --flow: var(--danger); }
.is-secure .route-track { --flow: var(--accent); }
.route-track ol::after {
  background: repeating-linear-gradient(90deg, var(--flow) 0 10px, transparent 10px 16px);
  clip-path: inset(0 calc((1 - var(--prog, 1)) * 100%) 0 0);
  animation: flow-x .5s linear infinite paused;
}
.is-moving .route-track ol::after { animation-play-state: running; }
@keyframes flow-x { to { background-position: 16px 0; } }
@keyframes flow-y { to { background-position: 0 16px; } }

.station { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.node {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-solid); border: 1.5px solid var(--line); box-shadow: var(--shadow);
  transition: border-color .3s linear, box-shadow .3s linear, transform .4s cubic-bezier(.3, 1.6, .5, 1);
}
.node svg { width: 24px; height: 24px; fill: none; stroke: var(--soft); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s linear; }
/* Wer mitliest, bekommt ein Auge, beim Geheimtext ein Schloss */
.eye {
  position: absolute; top: -6px; right: -8px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--danger) no-repeat center / 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6.5 10-6.5S22 12 22 12s-3.5 6.5-10 6.5S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='2.6'/%3E%3C/svg%3E");
  border: 2px solid var(--canvas); transform: scale(0); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.is-secure .eye {
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}
.is-reached .eye { transform: scale(1); }
.is-reached .node { border-color: var(--danger); box-shadow: 0 0 0 6px rgba(var(--danger-rgb), .08), var(--shadow); }
.is-reached .node svg { stroke: var(--danger); }
.is-secure .is-reached .node { border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft), var(--shadow); }
.is-secure .is-reached .node svg { stroke: var(--accent); }
.is-active .node { transform: scale(1.16); }
.is-active .node::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--flow);
  animation: ping 1.4s cubic-bezier(.2, .7, .2, 1) infinite;
}
@keyframes ping { from { transform: scale(1); opacity: .7; } to { transform: scale(1.9); opacity: 0; } }

.station h3 { margin-top: 14px; font-size: 1rem; }
.station-where { margin-top: 2px; font-size: .84rem; color: var(--soft); }
.station-say, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Nur in der kompakten Ansicht: Kurzname der Station, großer Zähler, Hinweis zum Antippen */
.station-short, .tally, .route-hint { display: none; }
.copies { display: flex; gap: 5px; margin-top: 12px; min-height: 14px; }
.copies i {
  width: 18px; height: 13px; border-radius: 2px; border: 1.5px solid var(--danger); background: var(--surface-solid);
  background-image: linear-gradient(var(--danger), var(--danger)), linear-gradient(var(--danger), var(--danger));
  background-size: 8px 1.5px, 5px 1.5px; background-position: 2px 3px, 2px 6.5px; background-repeat: no-repeat;
  transition: opacity .25s linear, transform .5s cubic-bezier(.3, 1.6, .5, 1), background-color .3s linear, border-color .3s linear;
}
.is-live .copies i { opacity: 0; transform: translateY(-26px) scale(.4) rotate(-20deg); }
.is-live .is-reached .copies i { opacity: 1; transform: none; }
.is-live .is-reached .copies i:nth-child(2) { transition-delay: .1s; }
.is-live .is-reached .copies i:nth-child(3) { transition-delay: .2s; }
.is-secure .copies i { border-color: var(--accent); background-color: var(--accent); background-image: radial-gradient(circle, rgba(255, 255, 255, .85) 1px, transparent 1.4px); background-size: 4px 4px; background-position: 0 0; }

/* Der Brief reitet über der Leitung von Knoten zu Knoten */
.token { display: none; }
.is-live .token { display: block; position: absolute; left: 0; top: 0; z-index: 3; width: 0; height: 0; pointer-events: none; transition: transform .12s linear; }
.letter {
  position: absolute; left: -38px; top: -92px; width: 76px; height: 52px; padding: 7px 8px; border-radius: 6px;
  background: #fff; border: 1.5px solid var(--ink); box-shadow: 0 14px 24px -12px rgba(var(--ink-rgb), .55);
  transition: background-color .4s linear, border-color .4s linear;
}
.is-moving .letter { animation: bob 1.3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-2.5deg); } }
.letter-text { display: flex; flex-direction: column; gap: 2px; font: 700 7.5px/1.15 var(--mono); color: var(--ink); white-space: nowrap; overflow: hidden; }
.letter-text span:nth-child(3) { align-self: flex-start; padding: 0 2px; border-radius: 2px; color: var(--danger); background: rgba(var(--danger-rgb), .14); }
/* Mit Nuntavi trägt der Botenvogel den Brief */
.carrier { display: none; }
.is-secure .carrier { display: block; position: absolute; left: 16px; top: -124px; z-index: 1; width: 54px; height: 54px; fill: var(--ink); filter: drop-shadow(0 6px 8px rgba(var(--ink-rgb), .25)); }
.is-secure.is-moving .carrier { animation: bob 1.3s ease-in-out infinite; }
.is-secure.is-moving .carrier .wing { transform-box: view-box; transform-origin: 14.6px 13.3px; animation: flap .26s ease-in-out infinite alternate; }
.is-open .carrier { fill: var(--ok); filter: none; }
.stamp { position: absolute; right: 6px; top: 6px; width: 10px; height: 12px; border: 1px dashed var(--soft); border-radius: 1px; }
.is-secure .letter { background: var(--accent); border-color: var(--accent); }
.is-secure .letter-text, .is-secure .letter-text span:nth-child(3) { color: #fff; background: none; }
.is-secure .stamp { border-color: rgba(255, 255, 255, .6); }
.is-open .letter { background: #fff; border-color: var(--ok); }
.is-open .letter-text, .is-open .letter-text span:nth-child(3) { color: var(--ink); }
.is-open .stamp { border: 0; background: var(--ok); border-radius: 50%; width: 11px; height: 11px; }

/* Das fehlende Stück auf dem Weg zum Dienst und zurück */
.shard {
  position: absolute; left: 0; top: 0; z-index: 4; width: 26px; height: 14px; margin: -7px 0 0 -13px; pointer-events: none;
  border-radius: 3px; border: 1.5px dashed var(--danger); background: rgba(255, 236, 232, .95);
  box-shadow: 0 8px 16px -6px rgba(var(--danger-rgb), .6);
}

.vault {
  position: absolute; right: 0; top: -150px; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 16px; background: var(--surface-solid); border: 1.5px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(10px) scale(.94); transition: opacity .4s linear, transform .5s cubic-bezier(.3, 1.6, .5, 1), border-color .3s linear;
}
.vault.is-on { opacity: 1; transform: none; border-color: var(--accent); }
.vault-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); transition: background-color .3s linear; }
.vault-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vault-text { display: flex; flex-direction: column; line-height: 1.3; }
.vault-text b { font-size: .88rem; }
.vault-text span { font-size: .78rem; color: var(--soft); }
.is-open .vault { border-color: var(--ok); }
.is-open .vault-icon { background: rgba(var(--ok-rgb), .12); }
.is-open .vault-icon svg { stroke: var(--ok); }

.beam { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.beam line { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 7; opacity: 0; transition: opacity .4s linear; animation: beam .7s linear infinite; }
.beam.is-on line { opacity: .65; }
.is-open .beam line { stroke: var(--ok); }
@keyframes beam { to { stroke-dashoffset: -10; } }

.peek {
  width: 100%; max-width: 46rem; justify-self: center; padding: 18px 22px 20px;
  background: var(--surface); border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.peek-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.peek-where { font-size: .86rem; color: var(--soft); }
.peek-where b { color: var(--ink); font-weight: 600; }
.mode { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(var(--ink-rgb), .06); }
.mode button {
  appearance: none; border: 0; cursor: pointer; min-height: 34px; padding: 0 14px; border-radius: 999px;
  background: transparent; color: var(--soft); font: 600 .84rem var(--text); transition: background-color .2s linear, color .2s linear;
}
.mode button[aria-pressed="true"] { background: var(--surface-solid); color: var(--ink); box-shadow: 0 1px 3px rgba(var(--ink-rgb), .15); }
.is-secure .mode button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.peek-mail { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .88rem; }
.peek-mail > div { display: flex; gap: 12px; }
.peek-mail dt { width: 4.5rem; color: var(--soft); }
.peek-flag { display: none; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: .76rem; color: var(--danger); background: rgba(var(--danger-rgb), .08); }
.is-secure .peek-flag { display: inline; }
.peek-body { position: relative; overflow: hidden; margin-top: 10px; min-height: 3em; font-size: 1.06rem; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.peek-body mark {
  color: inherit; padding: 0 2px; border-radius: 3px; background: no-repeat left / 0 100%;
  background-image: linear-gradient(rgba(var(--danger-rgb), .2), rgba(var(--danger-rgb), .2));
  transition: background-size .45s ease-out .3s;
}
.peek-body.is-scanning mark, .route:not(.is-live) .peek-body mark { background-size: 100% 100%; }
/* Scan: ein roter Lesestrahl fährt über den Text */
.peek-body.is-scanning::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 0, rgba(var(--danger-rgb), .22) 45%, rgba(var(--danger-rgb), .35) 50%, transparent 56%);
  transform: translateX(-100%); animation: sweep .9s ease-out forwards;
}
@keyframes sweep { to { transform: translateX(100%); } }
.is-secure .peek-body { font: 400 .86rem/1.6 var(--mono); color: var(--accent); }
.is-secure .peek-body.is-ok { font: 400 1.06rem/1.5 var(--text); color: var(--ink); padding-left: 12px; box-shadow: inset 3px 0 0 var(--ok); }
.is-secure .peek-body.is-ok mark { background-image: none; }
.peek-file {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 10px; border-radius: 8px;
  font-size: .82rem; color: var(--ink); background: rgba(var(--ink-rgb), .05);
}
.peek-file svg { width: 14px; height: 14px; fill: none; stroke: var(--soft); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.is-secure:not(.is-open) .peek-file { font-family: var(--mono); color: var(--accent); background: var(--accent-soft); }
.peek-count { margin-top: 10px; font-size: .86rem; color: var(--soft); }
.peek-count b { display: inline-block; font: 600 1.1rem var(--display); color: var(--danger); margin-right: 2px; }
.is-secure .peek-count b { color: var(--ok); }

/* Eingabefelder */
textarea {
  width: 100%; min-height: 9.5em; resize: vertical; border: 0; background: transparent; padding: 0;
  color: var(--ink); caret-color: var(--accent); font: 400 1.14rem/1.5 var(--text);
}
textarea:focus { outline: 0; }

/* Verfahren: drei Karten, jede mit einer kleinen Oberfläche */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { display: flex; flex-direction: column; padding: 12px 12px 26px; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 2px rgba(var(--ink-rgb), .04); }
.steps li > :not(.art) { margin-inline: 14px; }
.step-no { display: grid; place-items: center; width: 30px; height: 30px; margin-top: 22px; border-radius: 50%; font-size: .86rem; font-weight: 600; color: #fff; background: var(--accent); }
.steps h3 { margin-top: 14px; }
.steps p { margin-top: 6px; font-size: .95rem; line-height: 1.55; color: var(--soft); }
.art { position: relative; height: 172px; overflow: hidden; border-radius: 12px; background: linear-gradient(160deg, var(--tint-hi), var(--tint)); }
.art > * { position: relative; }
.art-write { padding: 18px 18px 0; }
.art-write::before, .art-read::before { content: ""; position: absolute; inset: 18px 18px -10px; border-radius: 10px; background: #fff; box-shadow: 0 10px 30px -12px rgba(var(--ink-rgb), .3); }
.mini-bar { display: flex; gap: 4px; padding: 10px 12px 0; }
.mini-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(var(--ink-rgb), .14); }
.mini-tools { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.mini-send { padding: 3px 10px; border-radius: 6px; font-size: .7rem; font-weight: 600; color: #fff; background: var(--ink); }
.mini-tools .toggle { font-size: .7rem; }
.mini-line { height: 7px; margin: 6px 12px 0; border-radius: 4px; background: rgba(var(--ink-rgb), .09); }
.mini-line.short { width: 55%; }
.mini-file { display: inline-flex; align-items: center; gap: 5px; margin: 12px 12px 0; padding: 3px 8px; border-radius: 6px; font-size: .68rem; background: rgba(var(--ink-rgb), .05); }
.mini-file svg { width: 11px; height: 11px; fill: none; stroke: var(--soft); stroke-width: 2; }
.art-cut { display: grid; place-items: center; align-content: center; gap: 18px; padding: 18px; }
.art-cut code { max-width: 15rem; padding: 10px 12px; border-radius: 10px; background: #fff; font: 400 .74rem/1.5 var(--mono); color: var(--accent); word-break: break-all; box-shadow: 0 10px 30px -12px rgba(var(--ink-rgb), .3); }
.art-cut .gap { display: inline-block; width: 6ch; height: 1.1em; margin: 0 2px; vertical-align: -.22em; border: 1px dashed var(--danger); border-radius: 3px; background: rgba(var(--danger-rgb), .08); }
.cut-piece { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 10px; background: #fff; border: 1.5px solid var(--accent); font-size: .72rem; font-weight: 600; transform: translateX(34px) rotate(-3deg); box-shadow: var(--shadow); }
.cut-piece svg { width: 22px; height: 22px; padding: 4px; border-radius: 6px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.art-read { padding: 18px 18px 0; }
.art-read > p { margin-inline: 14px; }
.mini-url { display: flex; align-items: center; gap: 5px; margin-top: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: .68rem; color: var(--soft); }
.mini-url svg { width: 10px; height: 10px; fill: none; stroke: var(--ok); stroke-width: 2.4; }
.mini-label { margin-top: 12px; font-size: .7rem; font-weight: 600; color: var(--soft); }
.mini-otp { display: flex; gap: 4px; margin-top: 6px; }
.mini-otp b { display: grid; place-items: center; width: 22px; height: 28px; border-radius: 6px; border: 1px solid var(--ok); font: 600 .84rem var(--mono); color: var(--ok); }
.mini-ok { margin-top: 10px; font-size: .7rem; font-weight: 600; color: var(--ok); }

/* Kontrolle: Protokoll links, Funktionen rechts */
.control { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; }
.log { position: sticky; top: calc(var(--bar) + 40px); padding: 20px; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: 0 30px 60px -30px rgba(var(--ink-rgb), .6); }
.log-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.log-head span:first-child { display: flex; flex-direction: column; font-size: .8rem; color: rgba(255, 255, 255, .6); }
.log-head b { font-size: 1rem; color: #fff; }
.pill { padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; color: var(--ok-light); background: rgba(var(--ok-rgb), .25); }
.log-list { position: relative; padding: 8px 0; }
.log-list::before { content: ""; position: absolute; left: 5px; top: 22px; bottom: 22px; width: 1px; background: rgba(255, 255, 255, .15); }
.log-list li { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 0; font-size: .88rem; }
.log-list i { flex: none; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--ink); background: var(--accent-light); box-shadow: 0 0 0 1px var(--accent-light); }
.log-list span { flex: 1; }
.log-list time { font: 400 .78rem var(--mono); color: rgba(255, 255, 255, .5); }
.log-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; color: rgba(255, 255, 255, .7); }
.log-foot > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.log-foot svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.log-head u { text-decoration: underline wavy rgba(255, 140, 120, .9); text-underline-offset: 3px; }
.log-head small { margin-top: 6px; font-size: .72rem; color: rgba(255, 170, 150, .9); }
.pill.is-off { color: #ffb8aa; background: rgba(var(--danger-rgb), .3); }
.log-list i.is-stop { background: #ff8c78; box-shadow: 0 0 0 1px #ff8c78; }
.log-foot > span:first-child { color: var(--ok-light); }
.control-side { display: grid; gap: 12px; }
.more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; padding: 6px 22px; }
.more > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.more > div:nth-last-child(-n+2) { border-bottom: 0; }
.more dt { font: 600 .96rem var(--display); }
.more dd { margin-top: 3px; font-size: .88rem; line-height: 1.5; color: var(--soft); }
.log-note { margin-top: 14px; font-size: .72rem; color: rgba(255, 255, 255, .4); }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.features > div { padding: 22px 22px 24px; background: var(--canvas); border: 1px solid var(--line); border-radius: 16px; }
.features dt { display: flex; flex-direction: column; gap: 14px; font: 600 1.04rem var(--display); }
.features svg { width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: #fff; border: 1px solid var(--line); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.features dd { margin-top: 6px; font-size: .93rem; line-height: 1.55; color: var(--soft); }

/* Klartext */
.limits { display: grid; gap: 12px; }
.limits li { position: relative; padding: 20px 22px 20px 58px; border-radius: 16px; background: var(--surface-solid); border: 1px solid var(--line); color: var(--soft); line-height: 1.55; }
.limits li::before { content: "!"; position: absolute; left: 20px; top: 19px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); }
.limits b { color: var(--ink); }

/* Testphase (13. Fassung): drei Karten, Weg in vier Schritten */
.pilot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pilot article { position: relative; padding: 26px 24px 28px; border-radius: 16px; background: var(--canvas); border: 1px solid var(--line); }
.pilot-hi { background: var(--surface-solid); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.pilot-icon svg { display: block; width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pilot h3 { margin: 16px 0 12px; }
.pilot ul { display: grid; gap: 9px; }
.pilot li { position: relative; padding-left: 24px; font-size: .93rem; line-height: 1.5; color: var(--soft); }
.pilot li::before { content: ""; position: absolute; left: 0; top: .32em; width: 14px; height: 14px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 10px no-repeat; }
.path { counter-reset: path; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.path li { counter-increment: path; display: flex; flex-direction: column; gap: 4px; padding: 22px 20px 0 0; font-size: .88rem; line-height: 1.45; color: var(--soft); }
.path li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.path li::before { content: counter(path); width: 28px; height: 28px; margin-bottom: 8px; border-radius: 50%; display: grid; place-items: center; font: 600 .82rem var(--text); color: var(--brass); border: 1.5px solid var(--brass); }
.path b { font-size: .98rem; color: var(--ink); }
.path + .fn { margin-top: clamp(28px, 3vw, 40px); }

/* Zugangsanfrage: Farbpanel mit Formular, öffnet das Mailprogramm (mailto), kein Server */
.cta.cta-form { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: start; text-align: left; }
.cta.cta-form .lead { margin: 1.2rem 0 0; }
.cta.cta-form .cta-bird { right: auto; left: -4%; top: auto; bottom: -8%; }
.cta-note { margin-top: 1.4rem; max-width: 26rem; font-size: .86rem; line-height: 1.55; color: rgba(255, 255, 255, .72); }
.cta-note a { color: #fff; text-underline-offset: 3px; overflow-wrap: anywhere; }
.request { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: clamp(20px, 3vw, 30px); border-radius: 18px; background: var(--surface-solid); color: var(--ink); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .5); }
.field { display: grid; gap: 6px; min-width: 0; }
.field-wide, .request-foot { grid-column: 1 / -1; }
.field label { font-size: .84rem; font-weight: 600; }
.field small { font-weight: 400; color: var(--soft-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid rgba(var(--ink-rgb), .2); border-radius: 10px;
  background: var(--canvas); color: var(--ink); font: inherit; font-size: .95rem;
  transition: border-color .15s linear, box-shadow .15s linear;
}
.field textarea { padding: 10px 12px; resize: vertical; min-height: 88px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
.field [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(var(--danger-rgb), .12); }
.request-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 4px; }
.request-status { font-size: .86rem; line-height: 1.45; color: var(--soft); }
.request-status:empty { display: none; }
.request-status.is-ok { color: var(--ok); }
.request-status.is-bad { flex-basis: 100%; padding: 10px 14px; border-radius: 10px; border-left: 3px solid var(--danger); background: rgba(var(--danger-rgb), .07); color: var(--danger); font-weight: 600; }
/* Nach dem Senden: Bestätigung ersetzt die Felder, die Karte behält ihre Höhe */
.request.is-done > :not(.request-done) { display: none; }
.request-done { grid-column: 1 / -1; display: grid; justify-items: center; align-content: center; gap: 10px; padding: 28px 8px; text-align: center; outline: none; }
.request-done[hidden] { display: none; }
.done-icon { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 8px; border-radius: 50%; background: rgba(var(--ok-rgb), .12); box-shadow: 0 0 0 10px rgba(var(--ok-rgb), .05); }
.done-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: tick .5s .15s ease-out forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.request-done h3 { font: 600 clamp(1.25rem, 2.2vw, 1.5rem)/1.3 var(--display); letter-spacing: -.01em; }
.request-done p { max-width: 24rem; color: var(--soft); line-height: 1.55; }
.request-done b { color: var(--ink); overflow-wrap: anywhere; }
.request-done .btn { margin-top: 12px; }
.request .btn:disabled { opacity: .6; cursor: progress; }
/* Honeypot gegen Bots: für Menschen unsichtbar, auch für Screenreader (aria-hidden) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Rechtliche Seiten (Impressum, Datenschutz) */
.legal { max-width: 46rem; }
.legal h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.legal .lead { margin-top: 1.2rem; color: var(--soft); }
.legal h2 { margin: 2.6rem 0 .8rem; font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; }
.legal p, .legal ul { margin-top: .7rem; color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 1.3em; }
.legal li + li { margin-top: .35rem; }
.legal address { font-style: normal; }
.legal a { color: var(--accent); text-underline-offset: 3px; }
.todo { padding: 0 .3em; border-radius: 4px; background: rgba(var(--glow2-rgb), .22); color: var(--ink); }
.draft { margin-top: 1.6rem; padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(var(--glow2-rgb), .6); background: rgba(var(--glow2-rgb), .1); font-size: .9rem; color: var(--ink-2); }
.legal-page .sect { padding-top: calc(var(--bar) + clamp(56px, 8vw, 96px)); }

/* Abschluss: Farbpanel */
.closing { padding-bottom: clamp(64px, 8vw, 104px); }
.cta {
  position: relative; overflow: hidden; padding: clamp(44px, 7vw, 96px) clamp(24px, 6vw, 88px); border-radius: 28px; color: #fff; text-align: center;
  background:
    radial-gradient(60% 80% at 10% 0%, rgba(var(--glow-rgb), .55), transparent 60%),
    radial-gradient(55% 70% at 100% 100%, rgba(var(--glow2-rgb), .38), transparent 60%),
    var(--cta);
}
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 36px 36px; -webkit-mask-image: radial-gradient(60% 70% at 50% 50%, #000, transparent); mask-image: radial-gradient(60% 70% at 50% 50%, #000, transparent);
}
.cta > * { position: relative; }
.cta .cta-bird { position: absolute; right: -3%; top: 6%; width: clamp(150px, 26vw, 340px); fill: #fff; opacity: .13; transform: rotate(-6deg); animation: glide 7s ease-in-out infinite; pointer-events: none; }
.cta-bird svg { display: block; width: 100%; }
@keyframes glide { 50% { translate: -14px -10px; } }
.cta .lead { max-width: 36rem; margin: 1.2rem auto 0; color: rgba(255, 255, 255, .82); }
.cta .actions { justify-content: center; }

/* Footer */
.site-foot { padding: 56px var(--gutter) 40px; background: var(--surface-solid); border-top: 1px solid var(--line); font-size: .9rem; color: var(--soft); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; }
.foot-brand p { margin-top: 10px; max-width: 18rem; }
.site-foot h3 { margin-bottom: 10px; font: 600 .82rem var(--text); color: var(--ink); }
.site-foot nav a { display: block; padding: 3px 0; text-decoration: none; }
.site-foot nav a:hover { color: var(--ink); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .78rem; }

/* Der Name: der Botenvogel zum Losschicken */
.etym { margin-bottom: .5rem; font: 300 clamp(3rem, 8vw, 6.6rem)/1 var(--display); letter-spacing: -.03em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(var(--accent-rgb), .32); }
.etym b { font-weight: 300; color: var(--accent); -webkit-text-stroke: 0; }
.etym i { font-style: normal; font-weight: 200; }
.flight { padding: clamp(12px, 1.6vw, 18px); border-radius: 20px; background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow); }
.fl-scene {
  position: relative; height: clamp(330px, 34vw, 400px); overflow: hidden; border-radius: 14px;
  background:
    radial-gradient(50% 60% at 18% 12%, rgba(var(--accent-rgb), .13), transparent 70%),
    radial-gradient(45% 55% at 86% 20%, rgba(var(--glow-rgb), .12), transparent 70%),
    linear-gradient(180deg, var(--tint-hi), var(--chrome) 78%, var(--tint-lo));
}
.fl-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.fl-path path { fill: none; stroke: rgba(var(--ink-rgb), .2); stroke-width: 2; stroke-dasharray: 3 8; stroke-linecap: round; }
.fl-path .fl-done { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 0 99999; }
.is-revoked .fl-path .fl-done { stroke: var(--danger); }
.fl-node { position: absolute; top: calc(100% - 124px); z-index: 1; display: flex; flex-direction: column; align-items: center; width: 10rem; text-align: center; }
.fl-from { left: 1%; }
.fl-mid { left: 50%; transform: translateX(-50%); }
.fl-to { right: 1%; }
.fl-dot {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface-solid); border: 1.5px solid var(--line); box-shadow: var(--shadow);
  transition: border-color .3s linear, box-shadow .3s linear;
}
.fl-dot svg { width: 22px; height: 22px; fill: none; stroke: var(--soft); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s linear; }
.fl-node b { margin-top: 10px; font-size: .95rem; line-height: 1.3; }
.fl-node small { font-size: .8rem; line-height: 1.35; color: var(--soft); }
.is-peeked .fl-mid .fl-dot { border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft), var(--shadow); }
.is-peeked .fl-mid .fl-dot svg { stroke: var(--accent); }
.is-landed .fl-to .fl-dot { border-color: var(--ok); box-shadow: 0 0 0 6px rgba(var(--ok-rgb), .1), var(--shadow); }
.is-landed .fl-to .fl-dot svg { stroke: var(--ok); }
.is-revoked .fl-to .fl-dot { border-color: var(--danger); box-shadow: 0 0 0 6px rgba(var(--danger-rgb), .08), var(--shadow); }
.is-revoked .fl-to .fl-dot svg { stroke: var(--danger); }
.fl-peek {
  position: absolute; bottom: calc(100% + 12px); left: 50%; display: flex; flex-direction: column; gap: 3px; width: max-content; max-width: 15rem;
  padding: 9px 12px; border-radius: 10px; background: var(--surface-solid); box-shadow: var(--shadow); text-align: left;
  opacity: 0; transform: translate(-50%, 8px) scale(.94); transition: opacity .3s linear, transform .45s cubic-bezier(.3, 1.6, .5, 1);
}
.fl-peek::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: inherit; transform: rotate(45deg); }
.fl-peek span { font-size: .72rem; font-weight: 600; color: var(--soft); }
.fl-peek code { font: 400 .8rem/1.4 var(--mono); color: var(--accent); overflow-wrap: anywhere; word-break: break-all; }
.is-peeked .fl-peek { opacity: 1; transform: translate(-50%, 0); }
.fl-card {
  position: absolute; top: 16px; right: 16px; z-index: 2; width: min(20rem, calc(100% - 32px)); padding: 14px 16px;
  border-radius: 12px; background: var(--surface-solid); box-shadow: 0 2px 4px rgba(var(--ink-rgb), .04), 0 24px 60px -18px rgba(var(--ink-rgb), .35);
  opacity: 0; transform: translateY(-8px) scale(.97); transition: opacity .3s linear, transform .45s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none;
}
.is-landed .fl-card, .is-revoked .fl-card { opacity: 1; transform: none; }
.fl-otp { display: flex; flex-direction: column; gap: 6px; font-size: .72rem; font-weight: 600; color: var(--soft); }
.fl-card.is-ok .otp-digits b { border-color: var(--ok); color: var(--ok); }
.fl-msg { margin-top: 12px; min-height: 3.2em; font: 400 .8rem/1.55 var(--mono); color: var(--accent); overflow-wrap: anywhere; word-break: break-all; }
.fl-msg.is-open { padding-left: 10px; box-shadow: inset 3px 0 0 var(--ok); font: 400 .95rem/1.45 var(--text); color: var(--ink); word-break: normal; }
.is-revoked .fl-msg { color: var(--danger); }
.fl-bird { position: absolute; left: 0; top: 0; z-index: 3; width: 64px; height: 64px; margin: -40px 0 0 -32px; pointer-events: none; will-change: transform; }
.fl-flip { position: relative; display: block; width: 100%; height: 100%; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.fl-flip > svg { display: block; width: 100%; height: 100%; fill: var(--accent); filter: drop-shadow(0 10px 10px rgba(var(--accent-rgb), .25)); }
.is-flying .fl-flip .wing { transform-box: view-box; transform-origin: 14.6px 13.3px; animation: flap .26s ease-in-out infinite alternate; }
.is-back .fl-flip { transform: scaleX(-1); }
.fl-capsule { position: absolute; left: 25px; top: 40px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--brass); box-shadow: 0 6px 10px -4px rgba(var(--glow2-rgb), .6); transition: background-color .3s linear; }
.fl-capsule svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fl-capsule.is-open { background: var(--ok); }
.fl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 14px; }
.fl-status { flex: 1 1 22rem; min-height: 3.2em; padding: 10px 14px; border-radius: 10px; border-left: 3px solid var(--line); background: var(--canvas); font-size: .92rem; line-height: 1.45; color: var(--soft); }
.fl-status[data-tone="ok"] { color: var(--ok); border-left-color: var(--ok); background: rgba(var(--ok-rgb), .07); }
.fl-status[data-tone="bad"] { color: var(--danger); border-left-color: var(--danger); background: rgba(var(--danger-rgb), .06); }
.fl-status[data-tone="info"] { color: var(--accent); border-left-color: var(--accent); background: var(--accent-soft); }
.fl-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lessons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.lessons li { padding: 24px 24px 22px; border-radius: 18px; background: var(--surface-solid); border: 1px solid var(--line); }
.ls-no { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 16px; border-radius: 50%; font-size: .86rem; font-weight: 600; color: #fff; background: var(--accent); }
.lessons li > p:not(.tag) { margin-top: 6px; font-size: .95rem; line-height: 1.55; color: var(--soft); }
.tag { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .88rem; line-height: 1.5; color: var(--ink); }
.tag b { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: var(--accent); background: var(--accent-soft); }
.fn { max-width: 46rem; margin-top: 18px; font-size: .82rem; line-height: 1.55; color: var(--soft); }

/* Moderne Details: Einblenden, Hover, aktive Leiste */
h1 em { font-style: normal; background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-note { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 1.4rem; font-size: .84rem; color: var(--soft); }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 10px no-repeat; }
.seal { animation: mesh 14s ease-in-out infinite alternate; background-size: 140% 140%, 140% 140%, 140% 140%, auto; }
@keyframes mesh { to { background-position: 30% 20%, 70% 60%, 40% 80%, 0 0; } }
.bar-links a { position: relative; }
.bar-links a.is-here { color: var(--ink); }
.bar-links a.is-here::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }
.rise { opacity: 0; transform: translateY(18px); transition: opacity .6s ease-out, transform .7s cubic-bezier(.2, .7, .2, 1), box-shadow .2s linear, border-color .2s linear; transition-delay: calc(var(--i, 0) * 70ms); }
.rise.is-up { opacity: 1; transform: none; }
.steps li, .features > div, .pilot article, .limits li, .lessons li { transition: transform .25s ease-out, box-shadow .25s ease-out, border-color .2s linear; }
.steps li:hover, .features > div:hover, .pilot article:hover, .steps li.is-up:hover, .features > div.is-up:hover, .pilot article.is-up:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb), .3); box-shadow: 0 2px 4px rgba(var(--ink-rgb), .04), 0 20px 40px -20px rgba(var(--ink-rgb), .3); }
.rise.is-up:hover { transition-delay: 0s; }

@media (max-width: 1100px) {
  .vault { position: relative; top: auto; right: auto; width: max-content; margin: 18px auto 0; }
  .bar-links { display: none; }
  .pilot { grid-template-columns: minmax(0, 1fr); max-width: 40rem; }
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path li:nth-child(3) { border-left: 0; padding-left: 0; }
  .split, .control, .hero-in, .cta.cta-form { grid-template-columns: minmax(0, 1fr); }
  .block-head, .log { position: static; }
  .steps, .lessons { grid-template-columns: minmax(0, 1fr); max-width: 40rem; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .seal { max-width: 40rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* Kompakte Ansicht (Handy, sehr flaches Fenster): keine gepinnte Scrollstrecke.
   Die Fahrt läuft von selbst ab; main.js schaltet mit derselben Bedingung um. */
@media (max-width: 720px), (max-height: 540px) {
  .route.is-live { height: auto; }
  .is-live .route-stage { position: static; height: auto; }
  .route-stage { align-content: start; gap: 22px; padding-top: clamp(72px, 11vw, 148px); padding-bottom: clamp(64px, 11vw, 148px); }
  .route-track { padding-top: 100px; }
  .beam { display: none; }
  .route-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; margin-top: 14px; }
  .tally { display: flex; align-items: center; gap: 10px; font-size: .8rem; line-height: 1.2; color: var(--soft); }
  .tally b { min-width: 1.1ch; font: 600 2.3rem/1 var(--display); font-variant-numeric: tabular-nums; color: var(--danger); transition: color .3s linear; }
  .tally span { max-width: 4.6em; }
  .is-secure .tally b { color: var(--ok); }
  .vault { position: relative; top: auto; right: auto; width: auto; min-width: 0; margin: 0; }
  .peek-count { display: none; }
  .mode { order: -1; display: flex; width: 100%; }
  .mode button { flex: 1; min-height: 42px; }
  .station { cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .route-hint { display: block; margin-top: -8px; text-align: center; font-size: .8rem; color: var(--soft-2); }
}

@media (max-width: 720px) {
  .route-stage { gap: 18px; padding-top: 72px; padding-bottom: 64px; }
  .route-head h2 { font-size: 1.9rem; }
  .route-caption { margin-top: .6rem; min-height: 5.8em; font-size: 1rem; }
  .route-track { margin-top: -20px; padding-top: 96px; }
  .route-track ol { gap: 0; }
  .route-track ol::before, .route-track ol::after { top: 18.5px; }
  .node { width: 40px; height: 40px; }
  .node svg { width: 19px; height: 19px; }
  .eye { width: 20px; height: 20px; top: -5px; right: -7px; background-size: 11px; }
  .station h3 { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .station-short { display: block; margin-top: 10px; font: 600 clamp(.66rem, 3vw, .78rem)/1.2 var(--text); white-space: nowrap; }
  .station-where { display: none; }
  .copies { gap: 3px; margin-top: 8px; min-height: 10px; }
  .copies i { width: 14px; height: 10px; background-size: 6px 1.5px, 4px 1.5px; background-position: 1.5px 1.5px, 1.5px 4.5px; }
  .is-secure .copies i { background-size: 4px 4px; background-position: 0 0; }
  /* Brief und Vogel etwas kleiner, der Vogel sitzt mittig über dem Brief statt rechts daneben */
  .letter { top: -84px; scale: .84; transform-origin: 50% 100%; }
  .is-secure .carrier { left: -8px; top: -116px; scale: .84; transform-origin: 50% 100%; }
  .vault { gap: 8px; padding: 8px 12px 8px 8px; }
  .vault-icon { flex: none; width: 32px; height: 32px; }
  .vault-text b { font-size: .84rem; }
  .vault-text span { font-size: .74rem; }
  .peek { padding: 14px 16px 16px; }
  .peek-mail, .peek-file { display: none; }
  .peek-body { min-height: 4.5em; font-size: 1rem; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .more { grid-template-columns: minmax(0, 1fr); padding: 6px 4px; }
  .more > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .fl-scene { height: 360px; }
  .fl-node { top: calc(100% - 116px); width: 6.6rem; }
  .fl-from { left: 0; }
  .fl-to { right: 0; }
  .fl-dot { width: 42px; height: 42px; }
  .fl-dot svg { width: 19px; height: 19px; }
  .fl-node b { margin-top: 6px; font-size: .84rem; }
  .fl-node small { font-size: .7rem; }
  .fl-peek { max-width: 11rem; }
  .fl-card { top: 12px; right: 12px; width: calc(100% - 24px); }
  .fl-bird { width: 52px; height: 52px; margin: -32px 0 0 -26px; }
  .fl-capsule { left: 20px; top: 32px; width: 17px; height: 17px; }
  .fl-actions, .fl-actions .btn { flex: 1; justify-content: center; }
  .etym { font-size: 2.9rem; }
  .seal { height: auto; padding: 64px 14px 14px; }
  .compose, .otp { display: none; }
  .seal-mail { position: relative; right: auto; bottom: auto; width: 100%; }
  .seal-piece { top: 12px; right: 12px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts li, .facts li + li { padding: 16px 0 0; border-left: 0; }
}

@media (max-width: 640px) {
  :root { --bar: 64px; }
  .bar { top: 10px; width: calc(100% - 20px); }
  .hero { padding-top: 108px; }
  h1 { font-size: 2.6rem; }
  .path, .request { grid-template-columns: minmax(0, 1fr); }
  .path li, .path li + li { padding: 18px 0 0; border-left: 0; }
  .request-foot .btn { width: 100%; white-space: normal; text-align: center; }
  .btn { justify-content: center; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .cta { border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .done-icon svg { animation: none; stroke-dashoffset: 0; }
  .btn { transition: none; }
  .js [data-reveal] { opacity: 1; filter: none; transform: none; transition: none; }
  .seal-piece, .seal, .cta .cta-bird, .wing { animation: none !important; }
  .fl-flip, .fl-peek, .fl-card { transition: none; }
  .rise { opacity: 1; transform: none; }
  .route *, .route *::before, .route *::after { transition: none !important; animation: none !important; }
}
