/* Layout: dark systems-console look. Hero with emblem, then a Debug > Sculpt > Perform sequence, ruled service list. */
:root {
  --bg: #0B0D0C;
  --surface: #111513;
  --line: #232A26;
  --fg: #F4F7F5;
  --muted: #9AA6A0;
  --accent: #2BFF6A;
  --accent-ink: #04140A;
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-2: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --step-3: clamp(2.5rem, 1.6rem + 4vw, 4.75rem);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  padding-block: 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  background: var(--bg); z-index: 20;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1120px; margin-inline: auto; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
.mono { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mono b { color: var(--accent); font-weight: 500; }

/* Header */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 15;
  background: var(--bg); border-bottom: 1px solid var(--line);
  margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
  padding-inline: max(16px, env(safe-area-inset-left, 0px));
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-display); font-weight: 800; letter-spacing: 0.06em; font-size: 0.95rem; }
.brand svg { width: 38px; height: 22px; flex: none; }
.brand span em { font-style: normal; color: var(--accent); }
nav { display: flex; gap: 22px; align-items: center; }
nav a { text-decoration: none; font-size: 0.95rem; color: var(--muted); }
nav a:hover { color: var(--fg); }
nav a.cta { color: var(--accent-ink); background: var(--accent); padding: 8px 16px; border-radius: 999px; font-weight: 600; }
nav a.cta:hover { background: var(--fg); }
@media (max-width: 900px) { #mainnav a:not(.cta) { display: none; } }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 7vw, 96px); }
.hero h1 { font-size: var(--step-3); font-weight: 800; display: flex; flex-direction: column; margin-top: 18px; }
.hero h1 span:last-child { color: var(--accent); }
.hero h1 i { font-style: normal; color: var(--muted); font-weight: 500; }
.lead { margin-top: 24px; max-width: 34em; font-size: var(--step-1); line-height: 1.45; color: var(--fg); }
.lead small { display: block; margin-top: 12px; font-size: var(--step-0); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; text-decoration: none; font-weight: 600; border: 1px solid var(--line); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { background: var(--fg); border-color: var(--fg); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.emblem { width: 100%; max-width: 480px; margin-inline: auto; aspect-ratio: 1; }
.emblem svg { display: block; width: 100%; height: 100%; border-radius: 50%; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); } .emblem { order: -1; max-width: 300px; } }

/* Sections */
section { padding-block: clamp(48px, 8vw, 104px); border-top: 1px solid var(--line); }
.head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 52px); }
.head h2 { font-size: var(--step-2); font-weight: 700; max-width: 18em; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 5vw, 72px); }
.about .text { display: grid; gap: 18px; max-width: 38em; }
.about .text p:first-child { font-size: var(--step-1); line-height: 1.45; }
.about .text p { color: var(--muted); }
.about .text p:first-child { color: var(--fg); }
.spec { align-self: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 0; }
.spec div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.spec div:last-child { border-bottom: 0; }
.spec dt { margin: 0; }
.spec dd { margin: 0; }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } }

/* Method */
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li { display: grid; grid-template-columns: 5.5em minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(12px, 3vw, 40px); align-items: baseline; padding-block: 28px; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps h3 { font-size: var(--step-2); font-weight: 800; }
.steps li:last-child h3 { color: var(--accent); }
.steps .verb { color: var(--accent); }
.steps p { color: var(--muted); }
.steps p strong { color: var(--fg); font-weight: 600; }
@media (max-width: 720px) { .steps li { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
.note { margin-top: 28px; font-size: var(--step-1); font-family: var(--font-display); font-weight: 500; max-width: 26em; }
.note b { color: var(--accent); font-weight: 700; }

/* Services */
.services { list-style: none; margin: 0; padding: 0; }
.services li { display: grid; grid-template-columns: 7em minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(12px, 3vw, 40px); align-items: baseline; padding-block: 26px; border-top: 1px solid var(--line); transition: background .2s; }
.services li:last-child { border-bottom: 1px solid var(--line); }
.services li:hover .mono { color: var(--accent); }
.services h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
.services p { color: var(--muted); }
@media (max-width: 720px) { .services li { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* Rechtliches einklappbar */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: var(--step-0); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--font-mono); font-size: 1.3em; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--accent); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.faq details p { margin: 12px 0 0; color: var(--muted); max-width: 46em; line-height: 1.6; }
.hero-sub { margin-top: 8px; opacity: .8; }
.legal details { border-top: 1px solid var(--line); padding-top: 16px; }
.legal summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--font-display); font-size: var(--step-1); font-weight: 700; letter-spacing: -0.02em; }
.legal summary::-webkit-details-marker { display: none; }
.legal summary::after { content: "+"; color: var(--accent); font-family: var(--font-mono); font-weight: 500; }
.legal details[open] summary::after { content: "\2212"; }
.legal details[open] > summary { margin-bottom: 8px; }
.legal summary:hover { color: var(--accent); }
.legal summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
/* Slogan */
.foot-right { display: grid; gap: 10px; justify-items: end; }
.foot-slogan { font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; text-transform: uppercase; color: var(--fg); }
.foot-slogan i { font-style: normal; color: var(--muted); padding-inline: 0.15em; }
.foot-slogan b { color: var(--accent); font-weight: 800; }
@media (max-width: 560px) { .foot-right { justify-items: start; } }

/* Qualifikationen */
.certs { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(16px, 3vw, 32px); align-items: start; }
.cert-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3vw, 28px); }
.cert-card h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; margin: 8px 0 18px; }
.cert-card .issuer { color: var(--muted); margin: -8px 0 18px; }
.cert-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.cert-list li { display: flex; gap: 12px; align-items: baseline; padding-block: 12px; border-top: 1px solid var(--line); }
.cert-list li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); transform: translateY(-1px); }
.cert-card.hyrox { border-color: var(--accent); }
.cert-card.hyrox .title { font-family: var(--font-display); font-size: var(--step-1); font-weight: 700; line-height: 1.25; }
.cert-card.hyrox .title span { color: var(--accent); }
@media (max-width: 860px) { .certs { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .cert-list { grid-template-columns: minmax(0, 1fr); } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.contact h2 { font-size: var(--step-3); font-weight: 800; }
.contact h2 span { color: var(--accent); }
.contact .box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 16px; }
.contact .box p { color: var(--muted); }
.contact .rows { display: grid; }
.contact .rows div { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }

.contact .rows a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact .rows a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* Race log */
.log { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); max-width: 860px; }
.log figure { margin: 0; display: grid; gap: 12px; min-width: 0; }
.log img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: var(--surface); }
.log figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 560px) { .log { grid-template-columns: minmax(0, 1fr); max-width: 420px; } }

/* Replace your existing .vgrid and .video styles with this: */
.videos-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 0;
}
.vgrid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 16px;
    padding: 10px 40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.vgrid::-webkit-scrollbar { display: none; }

.video {
    flex: 0 0 280px; /* Good width for Shorts */
    scroll-snap-align: start;
    position: relative;
    aspect-ratio: 9 / 16; /* Shorts are vertical */
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface);
}
/* NEW: Style for the YouTube thumbnail */
.video .thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* This perfectly crops the 16:9 thumbnail to fill the 9:16 box */
    z-index: 0;
}
.video button {
    all: unset; 
    box-sizing: border-box; 
    cursor: pointer; 
    position: absolute; 
    inset: 0;
    display: grid; 
    align-content: end; 
    gap: 6px; 
    padding: 18px;
    z-index: 1; /* Ensures the button sits ON TOP of the thumbnail */
}
.video button:hover .play { background: var(--fg); }
.video button:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.video .play {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    width: 56px; 
    height: 56px; 
    border-radius: 50%; 
    background: var(--accent);
    color: var(--accent-ink); 
    display: grid; 
    place-items: center; 
    transition: background .2s;
}
.video .play svg { width: 24px; height: 24px; margin-left: 3px; }
.video .vt { 
    font-family: var(--font-display); 
    font-weight: 700; 
    font-size: var(--step-1); 
    line-height: 1.15; 
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8); /* Makes text readable over any image */
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }

/* Arrow Buttons */
.scroll-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: var(--surface); border: 1px solid var(--line);
    color: var(--fg); width: 44px; height: 44px; border-radius: 50%;
    font-size: 28px; line-height: 1; display: grid; place-items: center;
    cursor: pointer; z-index: 2; transition: all 0.2s;
}
.scroll-btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.scroll-btn.left { left: 0; }
.scroll-btn.right { right: 0; }

@media (max-width: 768px) {
    .video { flex: 0 0 75vw; }
    .vgrid { padding: 10px 20px; }
    .scroll-btn { width: 36px; height: 36px; font-size: 22px; }
    .scroll-btn.left { left: 4px; }
    .scroll-btn.right { right: 4px; }
}

/* Contact form */
form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 0.9rem; font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; width: 100%; min-width: 0;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .two { grid-template-columns: minmax(0, 1fr); } }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; font-size: 0.9rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.consent a { color: var(--fg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button.btn { font: inherit; font-weight: 600; cursor: pointer; justify-self: start; }
button.btn:disabled { opacity: .6; cursor: progress; }
.status { min-height: 1.5em; font-size: 0.95rem; }
.status.ok { color: var(--accent); }
.status.err { color: #FF8A7A; }
.contact .form { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; min-width: 0; }
.contact .left { display: grid; gap: 28px; min-width: 0; }
.contact .left p { color: var(--muted); max-width: 30em; }

/* Legal */
.legal { padding-block: clamp(40px, 6vw, 72px); }
.legal .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .legal .cols { grid-template-columns: minmax(0, 1fr); } }
.legal h2 { font-size: var(--step-1); margin-bottom: 16px; }
.legal h3 { font-size: 1rem; font-family: var(--font-body); letter-spacing: 0; margin: 20px 0 6px; font-weight: 600; }
.legal p, .legal address { font-size: 0.92rem; color: var(--muted); font-style: normal; line-height: 1.6; }
.legal p + p { margin-top: 8px; }
.legal a { color: var(--fg); overflow-wrap: anywhere; }
mark.todo { background: transparent; color: #FFC857; outline: 1px dashed #FFC857; outline-offset: 2px; }

footer { border-top: 1px solid var(--line); padding-block: 28px calc(28px + 8px); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer nav { gap: 18px; }
footer nav a { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
/* ===== Atmosphere: soft green glow + engineering grid instead of flat black ===== */
html { background: var(--bg); }
body { background: transparent; }
.atmo { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.atmo-photo { position: absolute; z-index: -1; inset: 0; background: url("img/hintergrund.jpg") center / cover no-repeat; opacity: .38; }
.atmo::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent 4%, rgba(11,13,12,.5) 22%, rgba(11,13,12,.5) 78%, transparent 96%),
    radial-gradient(55rem 38rem at 88% -8%, rgba(43,255,106,.16), transparent 62%),
    radial-gradient(45rem 36rem at -12% 38%, rgba(43,255,106,.08), transparent 62%),
    radial-gradient(40rem 30rem at 105% 92%, rgba(110,190,255,.06), transparent 62%);
}
.atmo::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(244,247,245,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,247,245,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 70% 0%, #000 0%, transparent 80%);
          mask-image: radial-gradient(ellipse 90% 70% at 70% 0%, #000 0%, transparent 80%);
}
.top { background: rgba(11,13,12,.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
section { border-top-color: rgba(35,42,38,.7); }
.spec, .cert-card, .contact .box, .contact .form { background: rgba(17,21,19,.82); }

/* Hero emblem: glow + slowly turning ring */
.emblem { position: relative; isolation: isolate; }
.emblem::before { content: ""; position: absolute; inset: -10%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(43,255,106,.24), transparent 64%); }
.emblem::after { content: ""; position: absolute; inset: -3.5%; border-radius: 50%;
  border: 1px dashed rgba(43,255,106,.5); animation: turn 80s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.facts li { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: rgba(17,21,19,.6); }
.facts li b { color: var(--accent); font-weight: 500; }

/* About: portrait */
.about .text { align-content: start; }
section[id] { scroll-margin-top: 72px; }
.brand span { white-space: nowrap; }
@media (max-width: 420px) { .brand { font-size: .8rem; gap: 8px; letter-spacing: .04em; } .brand svg { width: 32px; } }
.about .side { display: grid; gap: 16px; align-self: start; min-width: 0; }
.portrait { margin: 0; position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; max-width: 420px; }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.portrait figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(11,13,12,.82); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* Für wen: persona cards with avatars */
.personas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.persona { background: rgba(17,21,19,.82); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 12px; align-content: start; transition: border-color .2s, transform .2s; }
.persona:hover { border-color: rgba(43,255,106,.55); transform: translateY(-3px); }
.ava { position: relative; width: 88px; height: 88px; }
.ava svg.face { width: 88px; height: 88px; display: block; }
.ava .badge { position: absolute; right: -4px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent);
  color: var(--accent-ink); display: grid; place-items: center; border: 3px solid var(--surface); }
.ava .badge svg { width: 15px; height: 15px; }
.scene { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.scene img { display: block; width: 100%; height: auto; aspect-ratio: 560 / 326; object-fit: cover; transition: transform .5s; }
.persona:hover .scene img { transform: scale(1.04); }
.scene .badge { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent);
  color: var(--accent-ink); display: grid; place-items: center; }
.scene .badge svg { width: 16px; height: 16px; aspect-ratio: auto; }
.persona:hover .scene { border-color: rgba(43,255,106,.4); }
.persona h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
.persona p { color: var(--muted); }
.persona .mono { font-size: .72rem; }

/* Services hover */
.services li { padding-inline: 14px; margin-inline: -14px; border-radius: 4px; }
.services li:hover { background: linear-gradient(90deg, rgba(43,255,106,.07), transparent 75%); }

/* Videos */
.videos { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.videos h3 { font-size: var(--step-1); font-weight: 700; }
.video .poster { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, rgba(43,255,106,.22), transparent 58%), linear-gradient(160deg, #18201B, #0B0D0C 70%); }
.video .poster svg { width: 46%; opacity: .5; transform: translateY(-38%); }
.video button > .vt, .video button > .mono { position: relative; z-index: 1; }
.video .poster .num { position: absolute; top: 14px; left: 16px; font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); letter-spacing: .08em; }
.vgrid { flex: 1 1 auto; width: 100%; min-width: 0; }
/* Videos: two at a time, arrows step through them */
.videos-wrapper { max-width: 700px; }
.vgrid { scroll-padding-inline: 40px; }
.vgrid .video { flex: 0 0 calc(50% - 8px); }
@media (min-width: 561px) { .videos-wrapper { max-width: 796px; padding-inline: 48px; } .vgrid { padding: 10px 0; scroll-padding-inline: 0; } }
@media (max-width: 560px) { .vgrid .video { flex: 0 0 82%; } .vgrid { scroll-padding-inline: 20px; } }
.scroll-btn:disabled { opacity: .3; cursor: default; pointer-events: none; }
.video.has-thumb button > .vt, .video.has-thumb button > .mono { display: none; }
.video .shade { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), transparent 30%, transparent 55%, rgba(0,0,0,.8)); }
.log { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
@media (max-width: 860px) { .log { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .log { grid-template-columns: minmax(0, 1fr); max-width: 420px; } }
.channel { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  background: rgba(17,21,19,.82); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; }
.channel p { color: var(--muted); }

/* Contact: start steps */
.start { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: st; }
.start li { counter-increment: st; display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: 12px; align-items: baseline; }
.start li::before { content: "0" counter(st); font-family: var(--font-mono); color: var(--accent); font-size: var(--step--1); }
.start li span { color: var(--muted); }
.start li strong { color: var(--fg); font-weight: 600; }

/* Mobile menu */
.burger { all: unset; display: none; cursor: pointer; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  place-items: center; box-sizing: border-box; }
.burger span { display: block; grid-area: 1 / 1; width: 18px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .2s; }
.burger:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.top .wrap > .right { display: flex; align-items: center; gap: 10px; }
@media (max-width: 900px) {
  .burger { display: grid; }
  .burger span:first-child { transform: translateY(-3.5px); }
  .burger span:last-child { transform: translateY(3.5px); }
  .burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
  #mainnav.open { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11,13,12,.97); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  #mainnav.open a:not(.cta) { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--fg); }
  #mainnav.open a.cta { margin-top: 14px; text-align: center; }
}

/* Mobile sticky action bar */
.mbar { display: none; }
@media (max-width: 720px) {
  .mbar { display: flex; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 14;
    transition: transform .25s, opacity .25s; }
  .mbar.hide { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .mbar .btn { flex: 1; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
  .mbar .wa { flex: none; width: 52px; padding: 0; justify-content: center; background: rgba(17,21,19,.95); color: var(--fg); }
  footer { padding-bottom: 96px; }
}
.wa-ico { width: 20px; height: 20px; }

/* Gentle reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .emblem::after { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .persona:hover { transform: none; }
}
body { margin: 0; }
[hidden] { display: none !important; }

/* ===== Multi-page additions ===== */

/* Smooth cross-fade between pages (modern browsers; others just load normally) */
@view-transition { navigation: auto; }
.top { view-transition-name: top; }
.atmo { view-transition-name: atmo; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }

/* Tabs: the current page is marked */
#mainnav a { position: relative; transition: color .2s; }
#mainnav a:not(.cta)[aria-current="page"] { color: var(--fg); }
#mainnav a:not(.cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -21px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform .25s;
}
#mainnav a:not(.cta):hover::after { transform: scaleX(.4); }
#mainnav a:not(.cta)[aria-current="page"]::after { transform: scaleX(1); }
#mainnav a.cta[aria-current="page"] { box-shadow: 0 0 0 3px rgba(43,255,106,.25); }
@media (max-width: 900px) {
  #mainnav a:not(.cta)::after { display: none; }
  #mainnav.open a:not(.cta) { display: flex !important; justify-content: space-between; align-items: center; }
  #mainnav.open a[aria-current="page"]:not(.cta) { color: var(--accent); }
  #mainnav.open a[aria-current="page"]:not(.cta)::before { content: "●"; order: 2; font-size: .7em; }
  #mainnav.open { animation: menu-in .2s ease; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }

/* First block of a sub page: the page title */
section.page-first { border-top: 0; padding-top: clamp(36px, 6vw, 80px); }
.head h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem); font-weight: 800; max-width: 16em; }
.contact h1 { font-size: var(--step-3); font-weight: 800; }
.contact h1 span { color: var(--accent); }

/* Home: tiles to the sub pages */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile { position: relative; display: grid; gap: 10px; align-content: start; text-decoration: none;
  background: rgba(17,21,19,.82); border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 20px;
  transition: border-color .2s, transform .2s; }
.tile:hover { border-color: rgba(43,255,106,.55); transform: translateY(-3px); }
.tile-img { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); margin-bottom: 6px; }
.tile-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile:hover .tile-img img { transform: scale(1.05); }
.tile-faq { display: grid !important; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(43,255,106,.22), transparent 60%), linear-gradient(160deg, #18201B, #0B0D0C 70%); }
.tile-faq span { font-family: var(--font-display); font-weight: 800; font-size: 5rem; color: var(--accent); line-height: 1; }
.tile-title { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.01em; padding-right: 1.6em; }
.tile-go { position: absolute; right: 16px; bottom: 18px; color: var(--accent); font-size: 1.2rem; transition: transform .2s; }
.tile:hover .tile-go { transform: translateX(4px); }

/* Call-to-action band at the end of sub pages */
.cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 40px;
  background: linear-gradient(120deg, rgba(43,255,106,.10), rgba(17,21,19,.85) 55%); border: 1px solid rgba(43,255,106,.35);
  border-radius: 20px; padding: clamp(24px, 4vw, 44px); }
.cta-inner > div:first-child { display: grid; gap: 12px; max-width: 34em; }
.cta-inner h2 { font-size: var(--step-2); font-weight: 800; }
.cta-inner h2 span { color: var(--accent); }
.cta-inner p:not(.mono) { color: var(--muted); }
.cta-inner .actions { margin-top: 0; }

/* Legal pages */
.legal-body { max-width: 46em; }
.legal-body h3:first-child { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .tile:hover { transform: none; }
}
@media (max-width: 900px) { #mainnav.open { background: var(--bg); box-shadow: 0 20px 40px rgba(0,0,0,.6); } }

/* CoreHybrid Restore */
.restore .hl { color: var(--accent); }
.restore-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.restore-text { display: grid; gap: 18px; max-width: 40em; }
.restore-text p { color: var(--muted); }
.restore-text p strong { color: var(--fg); font-weight: 600; }
.restore-text .restore-lead { color: var(--fg); font-size: var(--step-1); line-height: 1.45; }
.restore-text h3.mono { margin-top: 10px; font-weight: 500; }
.restore-gains { list-style: none; margin: 0; padding: 0; }
.restore-gains li { position: relative; padding: 14px 0 14px 28px; border-top: 1px solid var(--line); color: var(--muted); }
.restore-gains li:last-child { border-bottom: 1px solid var(--line); }
.restore-gains li::before { content: ""; position: absolute; left: 4px; top: 1.45em; width: 10px; height: 2px; background: var(--accent); }
.restore-gains strong { color: var(--fg); font-weight: 600; }
.restore-check { gap: 4px; border-color: rgba(43,255,106,.35); background: linear-gradient(160deg, rgba(43,255,106,.06), rgba(17,21,19,.9) 55%); }
.restore-check dl { margin: 6px 0 0; }
.restore-check dl div { grid-template-columns: 3em minmax(0, 1fr); align-items: baseline; }
.restore-check dt b, .restore-check dt { color: var(--accent); }
.restore-check dd { font-family: var(--font-display); font-weight: 600; }
.restore-out { margin-top: 10px; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.restore-out b { color: var(--accent); font-family: var(--font-mono); font-weight: 500; }
a.inline { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a.inline:hover { color: var(--accent); }
@media (max-width: 860px) { .restore-grid { grid-template-columns: minmax(0, 1fr); } }
.restore-text .restore-cause { border-left: 2px solid var(--accent); padding-left: 16px; color: var(--fg); }
.restore-text .restore-cause strong { color: var(--accent); }

/* Restore video (Leistungen) */
.restore-video { margin: clamp(40px, 6vw, 64px) 0 0; display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.restore-video figcaption { display: grid; gap: 12px; }
.restore-video figcaption .mono b { color: var(--accent); }
.restore-video h3 { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.1; }
.restore-video figcaption p:last-child { color: var(--muted); }
.restore-video video { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; border-radius: 14px; border: 1px solid rgba(43,255,106,.35); background: #000; }
@media (max-width: 860px) { .restore-video { grid-template-columns: minmax(0, 1fr); } }
