/* ==========================================================================
   CruxIT. – Website
   Mobile-first. Keine externen Ressourcen. Keine Inline-Styles (CSP: style-src 'self').
   ========================================================================== */

/* --- Schriften (lokal, SIL Open Font License, siehe assets/fonts/OFL.txt) --- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Design-Tokens --- */
:root {
  --bg: #060f12;
  --bg-2: #081519;
  --surface: #0d1c20;
  --surface-2: #11252a;
  --petrol: #0b2f35;
  --line: rgba(160, 230, 225, 0.12);
  --line-strong: rgba(160, 230, 225, 0.22);

  --text: #f4f8f8;
  --text-muted: #a9bcbe;
  --text-dim: #7f9497;

  --accent: #19d3c5;          /* App-Akzentfarbe (lib/core/theme/app_theme.dart) */
  --accent-bright: #3af0df;   /* Verlauf App-Icon */
  --accent-deep: #0e8a80;
  --accent-ink: #002a26;      /* Text auf Akzentflächen */
  --accent-glow: rgba(25, 211, 197, 0.35);

  --font: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --maxw: 1200px;
  --header-h: 68px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--accent-bright); }

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: var(--accent-ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  border-radius: var(--radius-s);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--accent-ink); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Markenschreibweise: „IT.“ immer in Akzentfarbe */
.it { color: var(--accent); }

/* --- Wortmarke / Logo --- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand:hover { color: var(--text); }
.brand__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 6px 18px -6px var(--accent-glow);
}

/* --- Badges / Status --- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(13, 28, 32, 0.55);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.status__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  flex: none;
}
.status__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -12px var(--accent-glow);
}
.btn--primary:hover {
  background: var(--accent-bright);
  color: var(--accent-ink);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -12px var(--accent-glow);
}
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(13, 28, 32, 0.4);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open,
.site-header--solid {
  background: rgba(6, 15, 18, 0.82);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(13, 28, 32, 0.5);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle__bar {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle__bar:nth-child(1) { top: 15px; }
.nav-toggle__bar:nth-child(2) { top: 21px; }
.nav-toggle__bar:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.site-nav__link {
  display: inline-block;
  padding: 0.6rem 0.9rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
}
.site-nav__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.site-nav__link[aria-current="page"] { color: var(--text); }
.site-nav__status { margin-left: 0.75rem; }

/* Mobile Navigation (nur mit JS; ohne JS bleibt die Liste sichtbar) */
@media (max-width: 859px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 1rem var(--gutter) 2rem;
    background: rgba(6, 15, 18, 0.97);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s 0.25s;
  }
  .js .site-header.is-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
  }
  .js .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav__link {
    display: block;
    padding: 1rem 0.25rem;
    font-size: 1.1rem;
    color: var(--text);
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav__status { margin: 1.25rem 0 0; }

  /* Ohne JS: kompakte, umbrechende Navigation */
  html:not(.js) .site-header { position: absolute; height: auto; padding-block: 0.75rem; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; }
  html:not(.js) .site-nav__list { flex-wrap: wrap; }
  html:not(.js) .site-nav__status { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 2rem) 0 clamp(3rem, 8vh, 5rem);
  overflow: hidden;
  background: var(--bg);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 22%;
}
/* Lesbarkeit: dunkler Verlauf über dem Motiv */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 15, 18, 0.55) 0%, rgba(6, 15, 18, 0) 22%),
    linear-gradient(0deg, var(--bg) 4%, rgba(6, 15, 18, 0.92) 38%, rgba(6, 15, 18, 0.35) 64%, rgba(6, 15, 18, 0) 82%);
}

/* feine Konturlinien + Lichtakzent */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -20%;
  bottom: -30%;
  width: 90vmax;
  height: 90vmax;
  background: radial-gradient(closest-side, rgba(25, 211, 197, 0.12), transparent 70%);
  pointer-events: none;
}

.hero__content { position: relative; }

.hero__title {
  margin-top: 1.5rem;
  font-size: clamp(3.25rem, 15vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.hero__slogan {
  margin-top: 1.1rem;
  font-size: clamp(1.15rem, 4.6vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.hero__rule {
  width: 56px;
  height: 3px;
  margin: 1.75rem 0;
  border: 0;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}
.hero__lead {
  font-size: clamp(1.1rem, 3.6vw, 1.35rem);
  font-weight: 600;
}
.hero__text {
  max-width: 34rem;
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 1rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.scroll-hint {
  display: none;
}

@media (min-width: 900px) {
  .hero { align-items: center; padding-bottom: 4rem; }
  .hero__media {
    left: auto;
    width: 62%;
  }
  .hero__media img { object-position: 50% 40%; }
  .hero__media::after {
    background:
      linear-gradient(90deg, var(--bg) 0%, rgba(6, 15, 18, 0.7) 22%, rgba(6, 15, 18, 0) 55%),
      linear-gradient(0deg, var(--bg) 0%, rgba(6, 15, 18, 0) 22%),
      linear-gradient(180deg, rgba(6, 15, 18, 0.6) 0%, rgba(6, 15, 18, 0) 18%);
  }
  .hero__content { max-width: 40rem; }
  .hero__text { font-size: 1.05rem; }

  .scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 1.5rem;
    display: grid;
    place-items: center;
    width: 36px;
    height: 56px;
    margin-left: -18px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--text-muted);
  }
  .scroll-hint::after {
    content: "";
    width: 4px;
    height: 10px;
    border-radius: 2px;
    background: var(--accent);
    animation: scroll-dot 2s var(--ease) infinite;
  }
  .scroll-hint:hover { border-color: var(--accent); }
}
@keyframes scroll-dot {
  0% { transform: translateY(-8px); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

@media (min-width: 1400px) {
  .hero__media { width: 58%; }
}

/* ==========================================================================
   Sektionen allgemein
   ========================================================================== */
.section {
  position: relative;
  padding-block: clamp(4.5rem, 12vw, 8rem);
}
.section--alt { background: var(--bg-2); }

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.section__eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
/* Markenname behält seine Schreibweise auch in Versalien-Kontexten */
.brandword { text-transform: none; letter-spacing: 0.04em; }
.section__title {
  margin-top: 1rem;
  font-size: clamp(2rem, 6.5vw, 3.4rem);
}
.section__intro {
  max-width: 40rem;
  margin-top: 1.1rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.6vw, 1.12rem);
}
.section__head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }

/* ==========================================================================
   Features
   ========================================================================== */
.features {
  display: grid;
  gap: 1rem;
  list-style: none;
}
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 1100px) { .features { grid-template-columns: repeat(4, 1fr); } }

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem 1.5rem 1.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(25, 211, 197, 0.045), rgba(25, 211, 197, 0) 45%),
    var(--surface);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(58, 240, 223, 0.55), transparent);
  opacity: 0.6;
}
.feature:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -30px rgba(25, 211, 197, 0.35);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(25, 211, 197, 0.07);
  color: var(--accent);
}
.feature__icon svg { width: 26px; height: 26px; }
.feature__title { font-size: 1.35rem; }
.feature__text { color: var(--text-muted); font-size: 0.97rem; }

.features__note {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  max-width: 46rem;
  margin-top: 2rem;
  color: var(--text-dim);
  font-size: 0.88rem;
}
.features__note svg { width: 18px; height: 18px; margin-top: 0.2rem; flex: none; color: var(--accent); }

/* ==========================================================================
   Coming soon
   ========================================================================== */
.launch {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3rem, 9vw, 6rem) clamp(1.5rem, 6vw, 5rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(25, 211, 197, 0.20), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(11, 47, 53, 0.9), transparent 70%),
    linear-gradient(160deg, #0b2328, #071216);
  text-align: center;
}
.launch__lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  color: var(--accent);
  opacity: 0.16;
  pointer-events: none;
}
.launch__title {
  max-width: 18ch;
  margin: 1rem auto 0;
  font-size: clamp(2.1rem, 7vw, 4rem);
}
.launch__text {
  max-width: 36rem;
  margin: 1.25rem auto 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.8vw, 1.15rem);
}
.launch__status {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2.5rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: rgba(6, 15, 18, 0.55);
  box-shadow: 0 0 0 6px rgba(25, 211, 197, 0.06), 0 0 40px -10px var(--accent-glow);
  font-size: clamp(0.9rem, 2.6vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.22em;
}
.launch__hint {
  margin-top: 1.5rem;
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* ==========================================================================
   Über CruxIT.
   ========================================================================== */
.about {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 900px) { .about { grid-template-columns: 1.1fr 1fr; } }

.about__text p + p { margin-top: 1.1rem; }
.about__text p { color: var(--text-muted); font-size: clamp(1rem, 2.6vw, 1.1rem); }
.about__text .about__claim {
  color: var(--text);
  font-size: clamp(1.2rem, 3.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.45;
}

.pillars { display: grid; gap: 0.85rem; list-style: none; }
.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1.1rem;
  align-items: center;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.pillar__num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}
.pillar__title { font-size: 1.08rem; }
.pillar__text { color: var(--text-muted); font-size: 0.93rem; line-height: 1.5; }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact {
  display: grid;
  gap: 2rem;
  align-items: end;
  padding: clamp(2rem, 6vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.contact .section__title { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.05rem, 3.4vw, 1.3rem);
  font-weight: 600;
  word-break: break-word;
}
.contact__mail svg { width: 22px; height: 22px; flex: none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding-block: 3.5rem 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.site-footer__top {
  display: grid;
  gap: 2rem;
}
@media (min-width: 760px) {
  .site-footer__top { grid-template-columns: 1fr auto; align-items: center; }
}
.site-footer__slogan {
  margin-top: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}
.footer-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
}
.footer-nav__list a {
  display: inline-block;
  padding-block: 0.5rem;
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
}
.footer-nav__list a:hover,
.footer-nav__list a[aria-current="page"] { color: var(--text); }
.site-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ==========================================================================
   Rechtstexte (Impressum, Datenschutz)
   ========================================================================== */
.legal {
  padding: calc(var(--header-h) + clamp(2.5rem, 8vw, 5rem)) 0 clamp(4rem, 10vw, 7rem);
  background:
    radial-gradient(60% 40% at 85% 0%, rgba(25, 211, 197, 0.10), transparent 70%),
    var(--bg);
}
.legal__inner { max-width: 48rem; }
.legal__title { margin-top: 1rem; font-size: clamp(2.2rem, 7vw, 3.4rem); }
.legal__meta { margin-top: 0.75rem; color: var(--text-dim); font-size: 0.9rem; }
.legal__body { margin-top: 2.5rem; color: var(--text-muted); }
.legal__body h2 {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: clamp(1.3rem, 4vw, 1.6rem);
}
.legal__body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal__body h3 { margin-top: 1.75rem; color: var(--text); font-size: 1.08rem; }
.legal__body p,
.legal__body ul,
.legal__body address { margin-top: 0.9rem; }
.legal__body address { font-style: normal; }
.legal__body ul { padding-left: 1.25rem; }
.legal__body li + li { margin-top: 0.4rem; }
.legal__body strong { color: var(--text); font-weight: 600; }
.legal__toc {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.legal__toc ol { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.legal__toc a { text-decoration: none; }
.legal__toc a:hover { text-decoration: underline; }
.legal__toc-title { color: var(--text); font-weight: 600; }
.legal dl { margin: 0.9rem 0 0; }
.legal dt { margin-top: 0.9rem; color: var(--text); font-weight: 600; }
.legal dd { margin: 0.15rem 0 0; }

/* ==========================================================================
   Entwicklungsfassung: offene Pflichtangaben
   Alles mit [data-todo] muss vor Veröffentlichung ersetzt werden
   (Prüfung: tools/check-release.ps1).
   ========================================================================== */
[data-todo] {
  padding: 0.05em 0.4em;
  border: 1px dashed #ffb020;
  border-radius: 6px;
  background: rgba(255, 176, 32, 0.12);
  color: #ffd27a;
  font-style: normal;
  font-weight: 600;
}
.dev-notice {
  display: block;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  line-height: 1.5;
}

/* ==========================================================================
   404
   ========================================================================== */
.notfound {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
  text-align: center;
}
.notfound__code {
  color: var(--accent);
  font-size: clamp(4rem, 20vw, 9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.notfound p { margin-top: 1rem; color: var(--text-muted); }
.notfound .notfound__code { margin-top: 0; color: var(--accent); }
.notfound .btn { margin-top: 2rem; }

/* ==========================================================================
   Dezente Einblend-Animation (nur mit JS und ohne reduzierte Bewegung)
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal--d1 { transition-delay: 0.08s; }
.js .reveal--d2 { transition-delay: 0.16s; }
.js .reveal--d3 { transition-delay: 0.24s; }

.hero__content > * {
  animation: rise 0.9s var(--ease) both;
}
.hero__content > :nth-child(2) { animation-delay: 0.08s; }
.hero__content > :nth-child(3) { animation-delay: 0.16s; }
.hero__content > :nth-child(4) { animation-delay: 0.22s; }
.hero__content > :nth-child(5) { animation-delay: 0.28s; }
.hero__content > :nth-child(6) { animation-delay: 0.34s; }
.hero__content > :nth-child(7) { animation-delay: 0.4s; }
.hero__media img { animation: settle 1.6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .scroll-hint, .hero__media { display: none; }
  body { background: #fff; color: #000; }
}
