/* ELOGX.COM – Neuentwurf im Apple-Designstil */
@view-transition { navigation: auto; }

:root {
  color-scheme: dark;
  --bg: #000;
  --surface: #161617;
  --surface-2: #1d1d1f;
  --line: rgba(255,255,255,.12);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --faint: #6e6e73;
  --accent: #ff6b5a;          /* ELOGX-Koralle, aufgehellt für Kontrast */
  --accent-strong: #ea6556;
  --link: #2997ff;
  --radius: 28px;
  --radius-s: 18px;
  --max: 1080px;
  --wide: 1360px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.28,.11,.32,1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Inter, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.47 var(--font); letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--text); color: #000; padding: 10px 16px; border-radius: 980px; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Globale Navigation ---------- */
.gnav {
  position: sticky; top: 0; z-index: 100; height: 48px;
  background: rgba(22,22,23,.72);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.gnav-inner { max-width: var(--max); margin: 0 auto; height: 100%; padding: 0 var(--gutter); display: flex; align-items: center; gap: 28px; }
.gnav-logo { display: flex; align-items: center; flex: none; }
.gnav-logo img { height: 15px; width: auto; opacity: .9; transition: opacity .2s; }
.gnav-logo:hover img { opacity: 1; }
.gnav-links { display: flex; gap: 0; margin: 0 0 0 auto; padding: 0; list-style: none; }
.gnav-links a { display: block; padding: 0 12px; line-height: 48px; font-size: 12px; letter-spacing: -.01em; color: rgba(245,245,247,.8); transition: color .2s; }
.gnav-links a:hover, .gnav-links a[aria-current="true"] { color: #fff; text-decoration: none; }
.gnav-cta { flex: none; font-size: 12px; color: #fff; background: var(--accent-strong); padding: 4px 12px; border-radius: 980px; }
.gnav-cta:hover { text-decoration: none; background: var(--accent); }
.gnav-burger { display: none; margin-left: auto; width: 44px; height: 48px; background: none; border: 0; color: var(--text); cursor: pointer; }
.gnav-burger span { display: block; width: 17px; height: 1.5px; margin: 5px auto; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.gnav[data-open="true"] .gnav-burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
.gnav[data-open="true"] .gnav-burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 833px) {
  .gnav-burger { display: block; }
  .gnav-cta { display: none; }
  .gnav-links {
    position: fixed; inset: 48px 0 auto 0; height: calc(100dvh - 48px);
    flex-direction: column; padding: 24px 40px; background: rgba(0,0,0,.96);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .gnav[data-open="true"] .gnav-links { opacity: 1; visibility: visible; transform: none; }
  .gnav-links a { font-size: 28px; font-weight: 600; line-height: 1.2; padding: 10px 0; color: var(--text); }
}

/* ---------- Abschnitts-Navigation (Sub-Nav) ---------- */
.subnav { position: sticky; top: 48px; z-index: 90; height: 52px; background: rgba(0,0,0,.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.subnav-inner { max-width: var(--max); margin: 0 auto; height: 100%; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.subnav-title { font-size: 21px; font-weight: 600; letter-spacing: .011em; white-space: nowrap; }
.subnav-links { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; font-size: 12px; }
.subnav-links a { color: var(--muted); white-space: nowrap; }
.subnav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 833px) { .subnav { display: none; } }

/* ---------- Typo-Bausteine ---------- */
.eyebrow { font-size: 17px; font-weight: 600; color: var(--accent); letter-spacing: -.01em; margin-bottom: 10px; }
.headline-xl { font-size: clamp(48px, 9vw, 96px); line-height: 1.04; letter-spacing: -.015em; font-weight: 700; }
.headline-l { font-size: clamp(36px, 6vw, 64px); line-height: 1.06; font-weight: 700; }
.headline-m { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; }
.headline-s { font-size: 24px; line-height: 1.17; }
.lead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; color: var(--muted); font-weight: 500; letter-spacing: .005em; }
.lead strong, .copy strong { color: var(--text); font-weight: 600; }
.copy { font-size: 17px; color: var(--muted); }
.gradient-text { background: linear-gradient(90deg, #ff8a5c 0%, #ff5a6e 45%, #c56cf0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.section { padding: clamp(80px, 12vw, 160px) 0; }
.section + .section { border-top: 1px solid rgba(255,255,255,.06); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.center .lead { max-width: 760px; margin-inline: auto; }
.stack > * + * { margin-top: 20px; }

.btn { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; padding: 12px 22px; border-radius: 980px; border: 0; cursor: pointer; font-family: inherit; letter-spacing: -.01em; transition: background .2s, transform .2s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { color: var(--link); background: transparent; padding-inline: 4px; }
.btn-ghost::after { content: "›"; font-size: 1.2em; line-height: 1; transition: transform .2s; }
.btn-ghost:hover::after { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: center; margin-top: 32px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(48px, 8vw, 96px); text-align: center; overflow: clip; }
.hero-copy { position: relative; z-index: 2; }
.hero .lead { margin-top: 18px; }
.hero-stage { position: relative; margin: clamp(48px, 7vw, 80px) auto 0; max-width: var(--wide); padding: 0 var(--gutter); }
.hero-frame {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #0a0a0a;
  box-shadow: 0 40px 120px -20px rgba(234,101,86,.25);
  transform-origin: center top;
}
.hero-frame video, .hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.55)); pointer-events: none; }
.hero-glow { position: absolute; inset: -20% 10% auto; height: 70%; background: radial-gradient(closest-side, rgba(234,101,86,.28), transparent); filter: blur(40px); z-index: 0; pointer-events: none; }
.video-control {
  position: absolute; right: 18px; bottom: 18px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(66,66,69,.72); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: grid; place-items: center;
}
.video-control:hover { background: rgba(90,90,94,.85); }
.video-control svg { width: 16px; height: 16px; }
.hero-caption { position: absolute; left: 28px; bottom: 22px; z-index: 3; font-size: 14px; color: rgba(255,255,255,.8); text-align: left; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-frame { animation: frame-grow linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
    @keyframes frame-grow { from { transform: scale(.86); border-radius: 44px; } to { transform: scale(1); border-radius: var(--radius); } }
  }
}

/* ---------- Statement ---------- */
.statement { font-size: clamp(30px, 4.6vw, 56px); line-height: 1.12; font-weight: 600; letter-spacing: -.01em; max-width: 980px; margin: 0 auto; }
.statement span { color: var(--faint); transition: color .6s var(--ease); }
.statement span.on { color: var(--text); }

/* ---------- Kennzahlen ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 72px; }
.stat { border-top: 1px solid var(--line); padding-top: 22px; }
.stat-num { font-size: clamp(40px, 5vw, 64px); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.stat-label { margin-top: 10px; color: var(--muted); font-size: 15px; }
@media (max-width: 833px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; } }

/* ---------- Bento-Grid ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 64px; }
.tile {
  position: relative; container-type: inline-size; background: var(--surface); border-radius: var(--radius); overflow: hidden;
  padding: 36px; min-height: 360px; display: flex; flex-direction: column; isolation: isolate;
  transition: transform .5s var(--ease);
}
a.tile { color: inherit; }
a.tile:hover { text-decoration: none; transform: scale(1.012); }
.tile-media { position: absolute; inset: 0; z-index: -1; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
a.tile:hover .tile-media img { transform: scale(1.04); }
.tile-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.1) 55%, rgba(0,0,0,.65) 100%); }
.tile h3 { font-size: clamp(24px, 7cqi, 40px); line-height: 1.1; }
.tile p { margin-top: 10px; color: var(--muted); font-size: 17px; max-width: 34ch; }
.tile .tile-more { margin-top: auto; padding-top: 24px; color: var(--link); font-size: 17px; }
.tile .tile-more::after { content: " ›"; }
.tile-s { min-height: 300px; }
.tile-icon { width: 44px; height: 44px; color: var(--accent); margin-bottom: auto; padding-bottom: 28px; box-sizing: content-box; }
.t-6 { grid-column: span 6; min-height: 520px; }
.t-4 { grid-column: span 4; }
.t-3 { grid-column: span 3; }
.t-2 { grid-column: span 2; }
.tile-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { font-size: 13px; padding: 6px 12px; border-radius: 980px; background: rgba(255,255,255,.08); color: var(--text); border: 1px solid rgba(255,255,255,.08); }
@media (max-width: 1023px) { .t-4, .t-3, .t-2 { grid-column: span 3; } .t-6 { min-height: 440px; } }
@media (max-width: 640px) { .bento { gap: 14px; } .t-4, .t-3, .t-2, .t-6 { grid-column: span 6; } .tile { padding: 28px; min-height: 320px; } .tile-s { min-height: 240px; } }

/* ---------- Feature-Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-media.tall img { aspect-ratio: 4 / 5; }
@media (max-width: 833px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }

.feature-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.feature-list li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.feature-list svg { width: 28px; height: 28px; color: var(--accent); margin-top: 2px; }
.feature-list b { display: block; color: var(--text); font-weight: 600; }
.feature-list span { color: var(--muted); }

/* ---------- Signalfluss-Diagramm ---------- */
.flow { margin-top: 72px; background: var(--surface); border-radius: var(--radius); padding: clamp(28px, 4vw, 56px); }
.flow-title { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 28px; }
.flow-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 14px; }
.flow-node { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 22px; text-align: center; }
.flow-node b { display: block; font-size: 19px; }
.flow-node span { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }
.flow-node.hl { border-color: rgba(255,107,90,.55); box-shadow: 0 0 0 4px rgba(234,101,86,.12); }
.flow-arrow { color: var(--accent); font-size: 22px; text-align: center; }
.flow-arrow small { display: block; font-size: 11px; color: var(--faint); letter-spacing: .02em; }
@media (max-width: 833px) { .flow-row { grid-template-columns: 1fr; } .flow-arrow { transform: rotate(90deg); padding: 4px 0; } .flow-arrow small { transform: rotate(-90deg); } }

/* ---------- Schritte ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; counter-reset: step; }
.step { background: var(--surface); border-radius: var(--radius-s); padding: 28px; counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(234,101,86,.16); color: var(--accent); font-weight: 700; margin-bottom: 18px; }
.step h3 { font-size: 19px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; }
@media (max-width: 1023px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Segment-Control & Panels ---------- */
.segmented { display: inline-flex; padding: 4px; background: var(--surface-2); border-radius: 980px; gap: 2px; margin: 40px auto 0; position: relative; }
.segmented button { font: inherit; font-size: 15px; color: var(--muted); background: transparent; border: 0; padding: 9px 20px; border-radius: 980px; cursor: pointer; transition: color .2s, background .3s var(--ease); }
.segmented button[aria-selected="true"] { color: #000; background: var(--text); }
.segmented button:hover:not([aria-selected="true"]) { color: var(--text); }
.panel[hidden] { display: none; }
.panel { animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.usecase { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; margin-top: 48px; background: var(--surface); border-radius: var(--radius); padding: clamp(28px, 4vw, 56px); align-items: center; }
.usecase .copy + .copy { margin-top: 14px; }
.usecase img { border-radius: var(--radius-s); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 833px) { .usecase { grid-template-columns: 1fr; } }

/* ---------- Technik ---------- */
.gear { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; margin-top: 48px; align-items: start; }
.gear-list { list-style: none; padding: 0; margin: 0; }
.gear-list li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 17px; }
.gear-list li small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius-s); }
.rail::-webkit-scrollbar { display: none; }
.rail img { scroll-snap-align: start; width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius-s); background: var(--surface); }
.rail-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.rail-nav button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 18px; }
.rail-nav button:hover { background: #2c2c2e; }
@media (max-width: 833px) { .gear { grid-template-columns: 1fr; } }

/* ---------- Downloads ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.card { background: var(--surface); border-radius: var(--radius-s); padding: 28px; display: flex; flex-direction: column; gap: 10px; color: var(--text); transition: background .2s, transform .3s var(--ease); }
.card:hover { background: var(--surface-2); text-decoration: none; transform: translateY(-2px); }
.card svg { width: 30px; height: 30px; color: var(--accent); }
.card b { font-size: 17px; font-weight: 600; }
.card span { color: var(--muted); font-size: 14px; margin-top: auto; }
@media (max-width: 1023px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cards { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 48px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-size: 19px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 300; color: var(--muted); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); }
.faq details::details-content { transition: height .4s var(--ease), content-visibility .4s allow-discrete; height: 0; overflow: clip; }
.faq details[open]::details-content { height: auto; }
:root { interpolate-size: allow-keywords; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-direct { display: grid; gap: 14px; margin-top: 36px; }
.contact-direct a { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: var(--radius-s); padding: 18px 20px; color: var(--text); }
.contact-direct a:hover { background: var(--surface-2); text-decoration: none; }
.contact-direct svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.contact-direct small { display: block; color: var(--muted); font-size: 13px; }
.form { background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.form .segmented { margin: 0 0 28px; display: flex; flex-wrap: wrap; border-radius: 16px; }
.form .segmented button { flex: 1 1 auto; border-radius: 12px; font-size: 14px; padding: 9px 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } .contact { grid-template-columns: 1fr; } }
@media (max-width: 833px) { .contact { grid-template-columns: 1fr; } }
.field { position: relative; margin-bottom: 14px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 17px; color: var(--text); background: var(--bg);
  border: 1px solid #424245; border-radius: 12px; padding: 24px 16px 8px; min-height: 56px; transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field label { position: absolute; left: 17px; top: 17px; font-size: 17px; color: var(--muted); pointer-events: none; transition: all .18s var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px rgba(41,151,255,.25); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field.static label { top: 8px; font-size: 12px; }
.field input[type="date"] { color-scheme: dark; }
.field input:user-invalid { border-color: #ff453a; }
.field input:user-invalid + label { color: #ff6961; }
.field input[type="file"] { padding-top: 28px; font-size: 14px; color: var(--muted); }
.field input[type="file"]::file-selector-button { font: inherit; font-size: 14px; background: var(--surface-2); color: var(--text); border: 0; border-radius: 980px; padding: 6px 14px; margin-right: 12px; cursor: pointer; }
.hint { font-size: 13px; color: var(--faint); margin: -4px 0 14px 4px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 18px 0 24px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent-strong); margin-top: 1px; flex: none; }
.form-status { margin-top: 16px; font-size: 15px; min-height: 1.4em; }
.form-status.ok { color: #30d158; }
.form-status.err { color: #ff6961; }
.form .btn { width: 100%; justify-content: center; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 10px 0 12px; }

/* ---------- Footer ---------- */
.footer { background: var(--surface); color: var(--muted); font-size: 12px; padding: 40px 0 24px; margin-top: 0; }
.footer .wrap > p { padding-bottom: 16px; border-bottom: 1px solid #424245; line-height: 1.5; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 24px 0; }
.footer h4 { font-size: 12px; color: var(--text); margin-bottom: 10px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #424245; padding-top: 16px; }
.footer-bottom nav { display: flex; gap: 0; flex-wrap: wrap; }
.footer-bottom nav a { padding: 0 10px; border-left: 1px solid #424245; }
.footer-bottom nav a:first-child { padding-left: 0; border-left: 0; }
@media (max-width: 833px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Rechtstexte ---------- */
.legal-hero { padding: clamp(64px, 10vw, 120px) 0 32px; }
.legal { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter) 120px; color: var(--muted); }
.legal h1 { display: none; }
.legal h2 { color: var(--text); font-size: 28px; margin: 56px 0 16px; }
.legal h3 { color: var(--text); font-size: 21px; margin: 36px 0 12px; }
.legal p, .legal li { margin: 0 0 14px; }
.legal strong { color: var(--text); }
.legal ul { padding-left: 20px; }
.legal a { word-break: break-word; }
.legal .block { background: var(--surface); border-radius: var(--radius-s); padding: 28px; margin-bottom: 20px; }
.legal .block h2 { margin-top: 0; font-size: 21px; }

/* ---------- Scroll-Einblendungen ---------- */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 560px) {
  .segmented button { padding: 9px 14px; font-size: 14px; }
  .hero-caption { display: none; }
}
.legal .block p:last-child { margin-bottom: 0; }

/* ---------- Bewegter Header (Motion-Hero) ---------- */
.mh-stage { position: relative; height: 190vh; --p: 0; --mx: 0; --my: 0; --mh-ease: cubic-bezier(.16,1,.3,1); }
.mh { position: sticky; top: 48px; height: calc(100vh - 48px); height: calc(100svh - 48px); min-height: 560px; overflow: hidden; color: var(--text); }
.mh-frame { position: absolute; inset: 0; margin: calc(var(--p) * 28px); border-radius: calc(var(--p) * 36px); overflow: hidden; background: #0a0a0a; isolation: isolate; clip-path: inset(0 round calc(var(--p) * 36px));
  transform: scale(calc(1 - var(--p) * .06)); transform-origin: 50% 40%; box-shadow: 0 0 0 1px rgba(255,255,255,calc(var(--p) * .12)); }
.mh-media { position: absolute; inset: 0; animation: mh-settle 1.8s var(--mh-ease) both; }
.mh-media video { position: absolute; inset: -3%; width: 106%; height: 106%; max-width: none; object-fit: cover; filter: saturate(.9) contrast(1.05);
  transform: translate3d(calc(var(--mx) * -14px), calc(var(--my) * -10px + var(--p) * 18px), 0) scale(calc(1 + var(--p) * .06)); }
.mh-scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 20%), linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 38%, rgba(0,0,0,.08) 70%), radial-gradient(120% 80% at 20% 100%, rgba(0,0,0,.55), transparent 60%); }
.mh-tint { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 85% 95%, rgba(255,107,90,.22), transparent 70%); mix-blend-mode: screen; }
.mh-grain { position: absolute; inset: -50%; pointer-events: none; opacity: .12; mix-blend-mode: overlay; animation: mh-grain 1.2s steps(6) infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.mh-sweep { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.08) 50%, transparent 60%); transform: translateX(-100%); animation: mh-sweep 2.4s var(--mh-ease) .3s 1 both; }
@keyframes mh-settle { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes mh-grain { 0%,100% { transform: none; } 20% { transform: translate(-4%,3%); } 40% { transform: translate(3%,-2%); } 60% { transform: translate(-2%,-4%); } 80% { transform: translate(4%,2%); } }
@keyframes mh-sweep { to { transform: translateX(100%); } }
@keyframes mh-blur { from { opacity: 0; transform: translateY(var(--rise, 28px)); filter: blur(12px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes mh-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.mh-in-blur { animation: mh-blur 1.1s var(--mh-ease) var(--d, 0ms) both; }
.mh-in-fade { animation: mh-rise 1s var(--mh-ease) var(--d, 0ms) both; }

.mh-hud { position: absolute; z-index: 3; top: 24px; right: var(--gutter); display: flex; gap: 10px; font: 500 12px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; opacity: calc(1 - var(--p) * 2.2); }
.mh-rec, .mh-tc { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 980px; background: rgba(0,0,0,.42); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.mh-tc { color: var(--muted); font-variant-numeric: tabular-nums; }
.mh-rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: mh-pulse 1.6s ease-out infinite; }
@keyframes mh-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,107,90,.65); } 100% { box-shadow: 0 0 0 10px rgba(255,107,90,0); } }

.mh-content { position: absolute; z-index: 2; inset: auto 0 0 0; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter) clamp(112px, 15vh, 146px);
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 40px; transform: translateY(calc(var(--p) * -80px)); opacity: calc(1 - var(--p) * 1.6); }
.mh-eyebrow { display: inline-flex; gap: 10px; margin: 0 0 22px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(245,245,247,.72); }
.mh-eyebrow b { color: var(--accent); font-weight: 600; }
.mh-h1 { margin: 0; font-size: clamp(46px, 8.2vw, 120px); line-height: .94; letter-spacing: -.045em; font-weight: 700; }
.mh-line { display: block; }
.mh-slot { display: inline-grid; vertical-align: bottom; overflow: hidden; height: 1.02em; padding-bottom: .06em; }
.mh-w { grid-area: 1/1; display: block; background: linear-gradient(92deg, #fff 0%, #ffd1cb 35%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(105%); opacity: 0; filter: blur(8px); transition: transform .9s var(--mh-ease), opacity .6s var(--mh-ease), filter .7s var(--mh-ease); }
.mh-w.is-on { transform: none; opacity: 1; filter: blur(0); }
.mh-w.is-out { transform: translateY(-105%); opacity: 0; filter: blur(8px); }
.mh-lede { max-width: 34ch; margin: 26px 0 0; font-size: clamp(17px, 1.5vw, 21px); color: rgba(245,245,247,.72); }
.mh-lede strong { color: var(--text); font-weight: 600; }
.mh-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.mh-btn { height: 52px; padding: 0 26px; font-weight: 600; gap: 10px; }
.mh-btn.btn-primary { box-shadow: 0 10px 30px rgba(255,107,90,.32); }
.mh-btn svg { width: 16px; height: 16px; transition: transform .35s var(--mh-ease); }
.mh-btn:hover svg { transform: translateX(3px); }
.mh-btn-glass { color: var(--text); background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.mh-btn-glass:hover { background: rgba(255,255,255,.16); }

.mh-card { width: 290px; padding: 18px; border-radius: 24px; background: rgba(28,28,30,.5); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.08), 0 20px 60px rgba(0,0,0,.4); }
.mh-card-h { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }
.mh-card-h b { color: var(--text); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 14px; font-variant-numeric: tabular-nums; }
.mh-meters { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 14px 0 12px; height: 84px; }
.mh-meter { position: relative; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.06); }
.mh-meter i { position: absolute; inset: auto 0 0 0; height: var(--lv, 30%); background: linear-gradient(0deg, #34c759 0%, #34c759 60%, #ffd60a 78%, var(--accent) 100%); background-size: 100% 84px; background-position: bottom; transition: height .08s linear; }
.mh-meter::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(0,0,0,.55) 5px 6px); }
.mh-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.mh-row + .mh-row { margin-top: 6px; }
.mh-row span:last-child { color: var(--text); font-variant-numeric: tabular-nums; }

.mh-wave { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 96px; pointer-events: none; opacity: calc(1 - var(--p) * 1.4); }
.mh-wave canvas { width: 100%; height: 100%; display: block; }
.mh-ctrl { position: absolute; z-index: 4; left: var(--gutter); bottom: 28px; display: flex; align-items: center; gap: 12px; opacity: calc(1 - var(--p) * 2); }
.mh-pp { position: static; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; color: var(--text); background: rgba(0,0,0,.45); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); display: grid; place-items: center; transition: transform .3s var(--mh-ease); }
.mh-pp:hover { transform: scale(1.06); }
.mh-pp svg { width: 14px; height: 14px; display: block; }
.mh-pp svg[hidden] { display: none; }
.mh-hint { font-size: 12px; color: var(--faint); letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.mh-hint i { display: block; width: 1px; height: 28px; background: linear-gradient(var(--text), transparent); transform-origin: top; animation: mh-drip 2.2s var(--mh-ease) infinite; }
@keyframes mh-drip { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.mh-after { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; padding: 0 24px; }
.mh-after p { position: relative; margin: 0; max-width: 18ch; font-size: clamp(34px, 5.6vw, 80px); line-height: 1.02; letter-spacing: -.04em; font-weight: 700;
  opacity: clamp(0, calc((var(--p) - .45) * 3), 1); transform: translateY(calc((1 - var(--p)) * 40px)); filter: blur(calc((1 - clamp(0, calc((var(--p) - .45) * 2.4), 1)) * 10px)); }
.mh-after p span { color: var(--accent); }
.mh-dim { position: absolute; inset: 0; background: rgba(0,0,0,calc(var(--p) * .55)); }

@media (max-width: 980px) { .mh-card { display: none; } .mh-content { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .mh-hud { top: 16px; right: 20px; }
  .mh-eyebrow { font-size: 11px; letter-spacing: .1em; }
  .mh-h1 { font-size: clamp(44px, 13.4vw, 64px); }
  .mh-content { padding-bottom: 128px; }
  .mh-lede { font-size: 17px; margin-top: 20px; }
  .mh-ctas { margin-top: 26px; }
  .mh-btn { height: 50px; padding: 0 22px; }
  .mh-media video { object-position: 58% 50%; }
  .mh-hint { display: none; }
  .mh-wave { height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .mh-stage { height: auto; }
  .mh { position: relative; top: 0; }
  .mh-sweep, .mh-grain { display: none; }
  .mh-w { transition: none; }
}
