/* TEAM A.S. GmbH – statische Website. Kein JavaScript, keine externen Ressourcen.
   Layout: neutrales Hellgrau, anthrazitfarbene Bänder mit Punktraster (Bühne, Seitenkopf, Fuß),
   Logo-Limette als einziger Akzent, Geist für Text, Geist Mono für Fakten und Labels. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f4f4f2;
  --surface: #ffffff;
  --surface-2: #ebebe8;
  --ink: #161615;
  --muted: #5d5d59;
  --line: #dcdcd8;
  --dark: #171716;
  --dark-2: #222220;
  --on-dark: #f2f2ef;
  --on-dark-muted: #a6a6a0;
  --dark-line: rgba(255, 255, 255, 0.14);
  --dot: rgba(255, 255, 255, 0.13);
  --lime: #cfd502;
  --on-lime: #161615;
  --screen: #1e1d1b;
  --focus: #161615;
  --logo-bg: transparent;
  --logo-pad: 0;
  --radius: 14px;
  --radius-s: 10px;
  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --sans: "Geist", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121211; --surface: #1b1b1a; --surface-2: #232321;
    --ink: #ededea; --muted: #a6a6a0; --line: #2f2f2c;
    --dark: #0b0b0a; --dark-2: #191918;
    --focus: #cfd502; --logo-bg: #f4f4f2; --logo-pad: 6px 10px;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121211; --surface: #1b1b1a; --surface-2: #232321;
  --ink: #ededea; --muted: #a6a6a0; --line: #2f2f2c;
  --dark: #0b0b0a; --dark-2: #191918;
  --focus: #cfd502; --logo-bg: #f4f4f2; --logo-pad: 6px 10px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  font-feature-settings: "ss01"; overflow-wrap: break-word;
}
img, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { margin: 0 0 0.6em; font-weight: 500; text-wrap: balance; -webkit-hyphens: auto; hyphens: auto; }
h1 { font-size: clamp(2.1rem, 6.4vw, 4.2rem); line-height: 1.04; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); line-height: 1.1; letter-spacing: -0.035em; }
h3 { font-size: 1.18rem; line-height: 1.3; letter-spacing: -0.015em; font-weight: 550; }
p { margin: 0 0 1.1em; }
p, li { max-width: 68ch; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
strong { font-weight: 600; }

a { color: var(--ink); text-decoration-color: var(--lime); text-decoration-thickness: 0.14em; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 0.32em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.mono { font-family: var(--mono); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--bg); padding: 0.7rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; color: var(--bg); }

/* ---------- Kopf ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; flex-wrap: wrap; padding-block: 0.75rem; }
.logo { display: inline-block; line-height: 0; border-radius: 8px; background: var(--logo-bg); padding: var(--logo-pad); }
.logo img { width: 142px; height: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.15rem; }
.nav a {
  display: block; padding: 0.45rem 0.8rem; border-radius: 999px; color: var(--ink); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; transition: background-color 0.2s ease;
}
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--lime); color: var(--on-lime); }

/* ---------- Dunkle Bänder mit Punktraster ---------- */
.hero, .page-head, .site-footer { position: relative; isolation: isolate; background: var(--dark); color: var(--on-dark); }
.hero::before, .page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 90% at 70% 40%, #000 30%, transparent 85%);
}
.hero :focus-visible, .page-head :focus-visible, .site-footer :focus-visible { outline-color: var(--lime); }
.hero a, .page-head a, .site-footer a { color: var(--on-dark); }

/* Bühne */
.hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2rem, 5vw, 3.5rem); overflow: hidden; }
.hero > .wrap:first-child { display: grid; gap: 2.5rem 3rem; align-items: center; }
@media (min-width: 62rem) {
  .hero > .wrap:first-child { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .hero h1 { font-size: clamp(2.6rem, 4.3vw, 4.1rem); }
}
.chip {
  display: inline-flex; align-items: center; gap: 0.55rem; margin: 0 0 1.6rem;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--on-dark-muted); border: 1px solid var(--dark-line); border-radius: 999px; padding: 0.35rem 0.8rem;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(207, 213, 2, 0.18); animation: pulse 2.4s ease-in-out infinite; }
.hero h1 { color: var(--on-dark); margin-bottom: 0.5em; }
.hl { color: var(--on-dark-muted); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--on-dark-muted); max-width: 42ch; margin: 0; }
.hero-copy { animation: rise 0.7s ease-out both; }
.hero-media { animation: rise 0.8s 0.15s ease-out both; }

/* Schaubild Bühne */
.schematic svg { width: 100%; height: auto; display: block; overflow: visible; }
.schematic .edge { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.5; }
.schematic .flow { fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 14; animation: dash 1.8s linear infinite; }
.schematic .f2 { animation-duration: 2.3s; } .schematic .f3 { animation-duration: 2.7s; } .schematic .f4 { animation-duration: 2.1s; }
.schematic .ring { fill: none; stroke: rgba(207, 213, 2, 0.45); stroke-width: 1.2; stroke-dasharray: 3 7; transform-box: fill-box; transform-origin: center; animation: spin 40s linear infinite; }
.schematic .core { fill: var(--lime); }
.schematic .core-t { fill: var(--on-lime); font-family: var(--mono); font-size: 22px; font-weight: 600; letter-spacing: 0.04em; }
.schematic .node rect { fill: rgba(255, 255, 255, 0.04); stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; }
.schematic .node text { fill: var(--on-dark); font-family: var(--mono); font-size: 13.5px; }
.schematic .dot { fill: var(--lime); animation: pulse 2.4s ease-in-out infinite; }
.schematic .d2 { animation-delay: 1.2s; }

/* Kennzahlen */
.stats { list-style: none; padding: 0; margin: clamp(2.5rem, 6vw, 4rem) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); border-top: 1px solid var(--dark-line); }
.stats li { max-width: none; padding: 1.2rem 1.2rem 0.4rem 0; }
.stats li + li { border-left: 1px solid var(--dark-line); padding-left: 1.2rem; }
.stats b { display: block; font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.03em; line-height: 1.1; color: var(--on-dark); }
.stats span { display: block; margin-top: 0.35rem; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-muted); }
@media (max-width: 40rem) { .stats li + li { border-left: 0; padding-left: 0; } .stats li { border-bottom: 1px solid var(--dark-line); padding-bottom: 1rem; } }

/* Seitenkopf */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.path { font-family: var(--mono); font-size: 0.8rem; color: var(--on-dark-muted); margin: 0 0 1.4rem; }
.path::before { content: "› "; color: var(--lime); }
.page-head h1 { color: var(--on-dark); margin: 0; animation: rise 0.6s ease-out both; }
.page-head p:not(.path) { color: var(--on-dark-muted); font-size: 1.2rem; line-height: 1.5; margin: 1.2rem 0 0; max-width: 52ch; }
.page-head .sub { color: var(--on-dark) !important; font-weight: 500; }

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section.soft { background: var(--surface); }
.section + .section:not(.soft), .section.soft + .section { border-top: 1px solid var(--line); }
.split { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); }
  .split > h2, .split > .side { position: sticky; top: 6.5rem; align-self: start; }
}
.eyebrow {
  display: flex; align-items: center; gap: 0.5rem; margin: 0 0 1rem;
  font-family: var(--mono); font-size: 0.76rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--lime); border-radius: 2px; }
.big { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.45; letter-spacing: -0.015em; }

/* 30-%-Anzeige */
.figure-30 { font-size: clamp(4.5rem, 11vw, 8rem); font-weight: 450; line-height: 1; letter-spacing: -0.06em; margin: 1rem 0 0; }
.figure-30 span {
  display: block; position: relative; height: 14px; max-width: 17rem; margin-top: 1rem;
  background: repeating-linear-gradient(90deg, var(--surface-2) 0 calc(10% - 4px), transparent calc(10% - 4px) 10%);
}
.figure-30 span::after {
  content: ""; position: absolute; inset: 0 70% 0 0;
  background: repeating-linear-gradient(90deg, var(--lime) 0 calc(33.333% - 4px), transparent calc(33.333% - 4px) 33.333%);
  transform-origin: left; animation: grow 1.2s 0.3s steps(3, end) both;
}

/* Schritte als Ablauf */
.steps { list-style: none; padding: 0; margin: 2.5rem 0; display: grid; gap: 1rem; }
@media (min-width: 52rem) {
  .steps { grid-template-columns: repeat(3, 1fr); padding-top: 2.4rem; position: relative; }
  .steps::before { content: ""; position: absolute; left: 1.5rem; right: 1.5rem; top: 0.55rem; height: 2px; background: var(--line); }
  .steps::after { content: ""; position: absolute; left: 1.5rem; right: 1.5rem; top: 0.55rem; height: 2px; background: var(--lime); transform-origin: left; animation: grow 1.4s 0.3s ease-out both; }
  .steps li::before { content: ""; position: absolute; left: 1.5rem; top: -2.4rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px var(--bg); }
  .section.soft .steps li::before { box-shadow: 0 0 0 5px var(--surface); }
}
.steps li { position: relative; max-width: none; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.section:not(.soft) .steps li { background: var(--surface); }
.steps .k { display: block; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.8rem; }
.steps strong { display: block; font-size: 1.25rem; font-weight: 550; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 0.5rem; }

/* Karten */
.lead-row { display: grid; gap: 1.5rem 3rem; align-items: end; margin-bottom: 2rem; }
.lead-row h2 { margin: 0; }
@media (min-width: 56rem) { .lead-row { grid-template-columns: 1fr minmax(0, 24rem); } }
.media-frame { background: var(--screen); border-radius: var(--radius); padding: 0.45rem; }
.media-frame video { width: 100%; border-radius: var(--radius-s); background: var(--screen); aspect-ratio: 16 / 9; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); }
.card {
  position: relative; max-width: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
  transition: border-color 0.25s ease, transform 0.25s ease; -webkit-hyphens: auto; hyphens: auto;
}
.section.soft .card { background: var(--bg); }
.card::after { content: ""; position: absolute; left: 1.6rem; top: 0; width: 2.2rem; height: 3px; background: var(--lime); border-radius: 0 0 3px 3px; transform: scaleX(0.35); transform-origin: left; transition: transform 0.3s ease; }
.card:hover { border-color: var(--ink); transform: translateY(-3px); }
.card:hover::after { transform: scaleX(1); }
.card h3 { margin-bottom: 0.5rem; }
.card p { margin: 0; color: var(--muted); }
.card .price { color: var(--ink); font-family: var(--mono); font-size: 1rem; font-weight: 500; margin: 0 0 0.8rem; }

/* Schaltflächen */
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.6rem 0; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 3rem; padding: 0.7rem 1.3rem;
  border-radius: 999px; text-decoration: none; border: 1px solid var(--lime);
  font-family: var(--mono); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--lime); color: var(--on-lime); transition: transform 0.2s ease, background-color 0.2s ease;
}
.btn::after { content: "→"; font-family: var(--sans); transition: transform 0.2s ease; }
.btn:hover { color: var(--on-lime); transform: translateY(-2px); }
.btn:hover::after { transform: translateX(3px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { color: var(--ink); background: var(--surface-2); }

/* Zitate */
.voices { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 0.6rem; }
.voices li {
  max-width: none; font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.4; letter-spacing: -0.01em;
  padding: 0.9rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--lime); border-radius: 0 var(--radius-s) var(--radius-s) 0;
}

/* Über mich */
.about { display: grid; gap: 2rem 3.5rem; align-items: start; }
@media (min-width: 56rem) { .about { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.portrait { border-radius: var(--radius); width: 100%; filter: saturate(0.9); }
.roles { font-family: var(--mono); font-size: 0.85rem; line-height: 1.7; color: var(--muted); }
h3.eyebrow { font-size: 0.76rem; font-weight: 500; letter-spacing: 0.1em; }
.arrows { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.arrows li { max-width: none; padding: 0.6rem 0 0.6rem 1.8rem; position: relative; border-bottom: 1px solid var(--line); }
.arrows li::before { content: "→"; position: absolute; left: 0.1rem; color: var(--muted); }
.checks { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.checks li { padding-left: 2rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.25em; width: 1.25rem; height: 1.25rem; border-radius: 5px; background: var(--lime); }
.checks li::after { content: ""; position: absolute; left: 0.44rem; top: 0.4em; width: 0.34rem; height: 0.66rem; border: solid var(--on-lime); border-width: 0 2px 2px 0; transform: rotate(40deg); }
.plain { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.plain li { max-width: none; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }

/* Preis */
.pricebox { position: relative; isolation: isolate; overflow: hidden; background: var(--dark); color: var(--on-dark); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.4rem); margin: 1.5rem 0 2rem; }
.pricebox::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--dot) 1px, transparent 1.4px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }
.pricebox .label { display: flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; color: var(--lime); margin: 0; }
.pricebox .label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.pricebox .amount { font-size: clamp(2.8rem, 8vw, 4.6rem); font-weight: 450; line-height: 1.05; letter-spacing: -0.05em; margin: 0.4rem 0 0.8rem; }
.pricebox p:last-child { margin: 0; color: var(--on-dark-muted); }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.3rem 3.5rem 1.3rem 0; position: relative; font-size: clamp(1.1rem, 1.8vw, 1.3rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 0.6rem; top: 50%; width: 1rem; height: 2px; background: var(--ink); transition: transform 0.25s ease, background-color 0.25s ease; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover::before, .faq summary:hover::after { background: var(--muted); }
.faq .answer { padding: 0 0 1.5rem; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq > .actions { margin-top: 2rem; }

/* ISMS-Zyklus */
.cycle { margin: 0.5rem 0 1.4rem; max-width: 34rem; }
.cycle svg { width: 100%; height: auto; display: block; }
.cycle .arc { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 5; }
.cycle .ah { fill: var(--muted); }
.cycle .pill rect { fill: var(--surface); stroke: var(--line); }
.cycle .pill text { fill: var(--ink); font-family: var(--mono); font-size: 14px; }
.cycle .mid { fill: var(--ink); font-family: var(--mono); font-size: 22px; font-weight: 600; }

/* Referenzen */
.refs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.refs section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.refs h3 { display: flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.76rem; font-weight: 500; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.9rem; }
.refs h3::before { content: ""; width: 8px; height: 8px; background: var(--lime); border-radius: 2px; }
.refs ul { list-style: none; padding: 0; margin: 0; }
.refs li { padding: 0.45rem 0; border-top: 1px solid var(--line); -webkit-hyphens: auto; hyphens: auto; }
.refs li:first-child { border-top: 0; }

/* Bücher */
.book { display: grid; gap: 1rem 2.5rem; align-items: start; margin-top: 2rem; }
@media (min-width: 48rem) { .book { grid-template-columns: 18rem minmax(0, 1fr); } }
.book img { background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius); width: 100%; }

/* Kontakt, Rechtstexte */
address { font-style: normal; font-size: 1.15rem; line-height: 1.75; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.4rem); max-width: 34rem; }
.legal h2 { font-size: 1.55rem; margin-top: 2.2em; }
.legal h3 { margin-top: 1.8em; }
.legal > :first-child { margin-top: 0; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.4em; }

/* ---------- Fuß ---------- */
.site-footer { color: var(--on-dark-muted); padding-block: 3.5rem 2.5rem; }
.site-footer .wrap { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 48rem) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer strong { color: var(--on-dark); font-weight: 500; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 0.15rem 0; }
.site-footer p { margin: 0; }
.site-facts {
  grid-column: 1 / -1; margin-top: 1.5rem !important; padding-top: 1.5rem; border-top: 1px solid var(--dark-line);
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--on-dark-muted);
}
.site-facts::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 0.6rem; border-radius: 50%; background: var(--lime); vertical-align: 0.1em; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Bewegung ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dash { to { stroke-dashoffset: -32; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 40rem) {
  .site-header { position: static; }
  .logo img { width: 122px; }
  .nav a { padding: 0.4rem 0.6rem; font-size: 0.86rem; }
}

@media print {
  .site-header, .site-footer, .skip, video, .actions, .schematic { display: none; }
  body { background: #ffffff; color: #000000; }
  .hero, .page-head { background: #ffffff; color: #000000; }
  .hero h1, .page-head h1 { color: #000000; }
}

/* ---------- Menü für schmale Bildschirme (ohne JavaScript) ---------- */
.mnav { display: none; }
@media (max-width: 52rem) {
  .site-header { position: relative; }
  .site-header .wrap { flex-wrap: nowrap; }
  .nav { display: none; }
  .mnav { display: block; }
  .mnav summary {
    list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.6rem;
    min-height: 2.75rem; padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--line);
    font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink);
  }
  .mnav summary::-webkit-details-marker { display: none; }
  .mnav[open] summary { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
  .mnav .ico { position: relative; width: 16px; height: 10px; }
  .mnav .ico::before, .mnav .ico::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s ease, top 0.2s ease; }
  .mnav .ico::before { top: 0; }
  .mnav .ico::after { top: 8px; }
  .mnav[open] .ico::before { top: 4px; transform: rotate(45deg); }
  .mnav[open] .ico::after { top: 4px; transform: rotate(-45deg); }
  .mnav nav {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 60;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    padding: 0.5rem var(--gutter) 1rem;
  }
  .mnav ul { list-style: none; margin: 0; padding: 0; }
  .mnav li { max-width: none; border-bottom: 1px solid var(--line); }
  .mnav li:last-child { border-bottom: 0; }
  .mnav a { display: flex; align-items: center; justify-content: space-between; padding: 0.95rem 0.2rem; font-size: 1.1rem; font-weight: 500; color: var(--ink); text-decoration: none; }
  .mnav a::after { content: "→"; color: var(--muted); }
  .mnav a[aria-current="page"] { font-weight: 600; }
  .mnav a[aria-current="page"]::after { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--lime); }
}

/* ---------- Größere Schrift auf Smartphones ---------- */
@media (max-width: 40rem) {
  body { font-size: 1.1875rem; line-height: 1.6; }
  h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); }
  h2 { font-size: 1.85rem; }
  h3 { font-size: 1.3rem; }
  .lead, .page-head p:not(.path) { font-size: 1.25rem; }
  .big { font-size: 1.3rem; }
  .eyebrow, h3.eyebrow, .steps .k, .pricebox .label, .refs h3, .chip, .path { font-size: 0.85rem; }
  .stats span { font-size: 0.82rem; }
  .stats b { font-size: 2rem; }
  .roles { font-size: 0.95rem; }
  .card .price { font-size: 1.1rem; }
  .btn { font-size: 0.9rem; min-height: 3.2rem; }
  .faq summary { font-size: 1.25rem; }
  .voices li { font-size: 1.2rem; }
  .site-footer { font-size: 1.05rem; }
  .site-facts { font-size: 0.85rem; }
}

/* ---------- Sprechstunde ---------- */
.howto { padding-left: 1.3em; display: grid; gap: 0.5rem; }
.howto li::marker { font-family: var(--mono); color: var(--muted); }
.note { color: var(--muted); font-size: 0.95rem; margin-top: 1.5rem; }
.day + .day { margin-top: 2.2rem; }
.day h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom: 0.9rem; }
.slots { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); }
.slots li { max-width: none; }
.slot {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.2rem;
  border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface);
  font-family: var(--mono); font-size: 1.05rem; font-weight: 500; color: var(--ink); text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.slot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.slot:hover { background: var(--lime); border-color: var(--lime); color: var(--on-lime); transform: translateY(-2px); }
.slot:hover::before { background: var(--on-lime); }
