/* ═════════ LUMI — gemeinsame Styles aller Seiten ═════════
   Seitenspezifisches CSS steht inline im <head> der jeweiligen Seite. */

/* ───────── Fonts ───────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ───────── Tokens (Brand Guide LUMI) ───────── */
:root {
  /* Brand */
  --digital-wave: #2D69FF;   /* Flächen */
  --deep-core: #27488A;
  --soft-cell: #AFA857;
  --white-matter: #F3F6FF;

  /* Semantik — ein Blau für alles, wie ein Blueprint */
  --color-primary: var(--digital-wave);
  --color-accent: var(--soft-cell);
  --color-bg: var(--white-matter);
  --color-surface: #FFFFFF;
  --color-text: var(--deep-core);   /* Brand Guide: Deep Core für Headlines & Text — 8,2:1 auf White Matter */
  --color-action: #2559E6;          /* Digital Wave +10 Dark — Aktionen, Kennzahlen, Labels (5,3:1) */
  --color-muted: #5A6E96;     /* Fließtext klein — 4,7:1 */
  --color-muted-lg: #6B7DA3;  /* nur Großtext ≥ 24px — 3,8:1 */
  --color-line: rgba(37, 89, 230, 0.5);
  --color-line-strong: rgba(37, 89, 230, 0.45);
  --color-line-soft: rgba(37, 89, 230, 0.18);
  --on-blue-line: rgba(255, 255, 255, 0.4);

  --font-display: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --section-padding: clamp(5rem, 11vw, 10rem);
  --container-max: 1400px;
  --container-padding: clamp(1rem, 3vw, 2.75rem);

  /* Eckiges System: keine Rundungen — einzige Ausnahme ist der Hero (--hero-r) */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-pill: 0;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--color-action);   /* Überschriften blau; auf dunklen Flächen per Section auf Weiß */
  text-wrap: balance;
}
h2 { line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.2em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.mute { color: var(--color-muted-lg); }

:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.on-blue :focus-visible { outline-color: #fff; }

.container {
  width: 100%;
  max-width: calc(var(--container-max) + 2 * var(--container-padding));
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.875rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

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

/* Label — klein, Versalien, langer Strich davor */
.label {
  display: flex; align-items: center; gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-action);
  margin-bottom: 1.25rem;
}
.label::before { content: ""; flex-shrink: 0; width: 2rem; height: 1px; background: currentColor; }
.on-blue .label { color: #fff; }

.h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.2; }
.statement {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.035em;
  max-width: 22ch;
  text-wrap: balance;
}
.body-muted { color: var(--color-muted); }

/* ───────── Pills ───────── */
.pill {
  --pill-bg: var(--color-action);
  --pill-fg: #fff;
  --pill-bd: var(--color-action);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--pill-bd);
  border-radius: var(--radius-pill);
  background: var(--pill-bg);
  color: var(--pill-fg);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s, transform 0.2s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.pill:hover { --pill-bg: var(--digital-wave); --pill-bd: var(--digital-wave); }
.pill:active { transform: scale(0.97); }
.pill--light { --pill-bg: #fff; --pill-fg: var(--color-action); --pill-bd: #fff; }
.pill--light:hover { --pill-bg: var(--white-matter); --pill-bd: var(--white-matter); }
.pill--ghost-light { --pill-bg: transparent; --pill-fg: #fff; --pill-bd: var(--on-blue-line); }
.pill--ghost-light:hover { --pill-bg: rgba(255, 255, 255, 0.12); --pill-bd: #fff; }
/* Soft Cell (Brand Guide) als Signal nur für das Testfall-Angebot — Text Deep Core dunkel, 5,4:1 */
.pill--accent { --pill-bg: var(--soft-cell); --pill-fg: #16294F; --pill-bd: var(--soft-cell); }
.pill--accent:hover { --pill-bg: #C2BC72; --pill-bd: #C2BC72; }
.pill--ghost { --pill-bg: transparent; --pill-fg: var(--color-action); --pill-bd: var(--color-line-strong); }
.pill--ghost:hover { --pill-bg: var(--color-action); --pill-fg: #fff; --pill-bd: var(--color-action); }

/* ───────── Header — transparent über dem Hero ───────── */
.site-header { position: absolute; inset: 0 0 auto 0; height: var(--header-h); z-index: 50; color: #fff; }
.site-header :focus-visible { outline-color: #fff; }
.header-inner { display: flex; align-items: center; height: 100%; }
.header-bar {
  flex: 1;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem;
  padding: 0.3125rem 0.3125rem 0.3125rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}
.brand { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: 68px; height: auto; }
.main-nav ul { display: flex; gap: 0.125rem; }
.main-nav a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  padding-inline: clamp(0.75rem, 1.2vw, 1.125rem);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 0.5rem; }
/* Ausnahme vom eckigen System: Menüleiste, Menü-Hover und Kontakt-CTA bleiben Pills */
/* Ausnahme vom eckigen System: Menüleiste und alle Buttons sind Pills */
.header-bar, .main-nav a, .pill { border-radius: 999px; }
.header-cta {
  --pill-bd: rgba(255, 255, 255, 0.85);
  padding-inline: 1.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 0; background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px;
  background: #fff;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 19px; }
.nav-toggle span:nth-child(2) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .header-bar { position: relative; grid-template-columns: 1fr auto; padding-left: 1.25rem; }
  .nav-toggle { display: block; }
  /* Panel exakt so breit wie die Menüleiste darüber, mit runden Ecken passend zur Pill */
  .main-nav {
    position: absolute;
    inset: calc(100% + 0.5rem) -1px auto -1px;
    padding: 0.5rem 1.5rem 1rem;
    border-radius: 1.75rem;
    background: var(--color-surface);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0s linear 0.25s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li + li a { border-top: 1px solid var(--color-line); }
  .main-nav a { width: 100%; min-height: 56px; padding-inline: 0; border-radius: 0; font-size: 1.0625rem; font-weight: 500; color: var(--color-text); background: none; }
  .main-nav a:hover { color: var(--digital-wave); background: none; }
  .main-nav :focus-visible { outline-color: var(--color-text); }
}
@media (max-width: 420px) {
  .header-cta { padding-inline: 1.125rem; }
}

/* ───────── Footer ───────── */
/* Footer vollflächig in Digital Wave, Inhalt im 1400er-Raster wie der Rest der Seite — Text in vollem Weiß (4,6:1) */
.site-footer { background: var(--digital-wave); color: #fff; }
.footer-card {
  max-width: calc(var(--container-max) + 2 * var(--container-padding));
  margin-inline: auto;
  padding: clamp(3.5rem, 6vw, 5rem) var(--container-padding) 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 4vw, 3rem);
}
.footer-logo { width: 110px; height: auto; margin-bottom: 1.5rem; }
.footer-about { max-width: 24rem; font-size: 1rem; line-height: 1.6; color: #fff; }
.footer-claim { margin-top: 1.5rem; font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: #fff; }
.site-footer h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: #fff; margin: 0.25rem 0 1.25rem; }
.site-footer ul a {
  display: inline-flex; align-items: center;
  min-height: 36px;
  font-size: 0.9375rem;
  color: #fff; text-decoration: none;
  transition: color 0.2s;
}
.site-footer ul a:hover { color: #fff; text-decoration: underline; }
/* Kontakt-Spalte: Adresse, Telefon, E-Mail (NAP) */
.footer-contact { font-style: normal; font-size: 0.9375rem; line-height: 2.4; color: #fff; }
.footer-contact a { color: #fff; text-decoration: none; padding-block: 0.6rem; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-block: 1.25rem;
  border-top: 1px solid var(--on-blue-line);
  font-size: 0.875rem;
  color: #fff;
}
.footer-social { display: flex; gap: 0.5rem; margin-top: 1.75rem; }
.site-footer .footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; min-height: 44px;
  border: 1px solid var(--on-blue-line);
  border-radius: 50%;
  color: #fff;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s;
}
.site-footer .footer-social a:hover { background: #fff; border-color: #fff; color: var(--digital-wave); text-decoration: none; }
.footer-bottom nav { display: flex; gap: 1.75rem; }
.footer-bottom a { color: #fff; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.footer-bottom a:hover, .footer-bottom a[aria-current="page"] { color: #fff; text-decoration: underline; }
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
/* Mobil: Marke volle Breite, darunter Kontakt | Icons, dann Leistungen.
   Navigation entfällt — dieselben Links stehen im Burger-Menü */
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "logo     logo"
      "about    about"
      "claim    claim"
      "contact  social"
      "services services";
    gap: 0 2.5rem;
  }
  .footer-brand { display: contents; }
  .footer-logo { grid-area: logo; }
  .footer-about { grid-area: about; }
  .footer-claim { grid-area: claim; }
  .footer-social { grid-area: social; align-self: start; margin-top: 2.5rem; }
  .footer-bottom { row-gap: 0; margin-top: 3rem; padding-block: 0.75rem 1rem; }
  .footer-col-contact { grid-area: contact; margin-top: 2.5rem; }
  .footer-col-services { grid-area: services; margin-top: 2.5rem; }
  .footer-col-nav { display: none; }
}

/* ───────── Motion ───────── */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ═════════ Rechtsseiten (Impressum, Datenschutz) ═════════ */
/* ───────── Seitenkopf — Digital Wave mit Blueprint-Raster, unten gerade Kante ───────── */
.page-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(3.5rem, 11vw, 8rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  background: var(--digital-wave);
  color: #fff;
}
.page-head::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(to bottom, #000 10%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 10%, transparent 95%);
}
.page-head h1 {
  color: #fff;
  font-size: clamp(2.75rem, 8vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.page-head .lead { margin-top: 1.5rem; max-width: 34rem; font-size: 1.0625rem; color: #fff; }
.page-head .container > * { animation: rise 0.8s var(--ease-out) both; }
.page-head .container > :nth-child(2) { animation-delay: 0.08s; }
.page-head .container > :nth-child(3) { animation-delay: 0.16s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ───────── Rechtstext — Zeilen im Raster: Titel links, Inhalt rechts ───────── */
.legal { padding-block: clamp(4rem, 8vw, 7rem); }
.legal-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 1.25rem clamp(2rem, 6vw, 6rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);   /* minimalistisch: Abstand statt Trennlinien */
  scroll-margin-top: 1.5rem;
}
.legal-row:first-child { padding-top: 0; }
/* Rubriken links als kleine Versalien, ohne Linie und Nummern */
.legal-row h2 {
  display: flex; align-items: baseline; gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-action);
}

.prose { max-width: 46rem; font-size: 1.0625rem; line-height: 1.7; }
.prose > * + * { margin-top: 1rem; }
.prose h3 {
  margin-top: 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.prose h3:first-child { margin-top: 0; }
.prose address { font-style: normal; }
.prose strong { font-weight: 600; }
.prose a { color: var(--color-action); text-decoration-thickness: 1px; }
.prose a:hover { color: var(--digital-wave); text-decoration-thickness: 2px; }
.prose ul li { position: relative; padding-left: 1.5rem; }
.prose ul li + li { margin-top: 0.5rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 0.75rem; height: 1px; background: currentColor; }
.prose .meta { color: var(--color-muted); font-size: 0.9375rem; }

/* Telefon, E-Mail, USt-ID wie normaler Fließtext: „Telefon: …“ */
.data-list { display: grid; gap: 0; }
.data-list div { display: flex; flex-wrap: wrap; column-gap: 0.35em; }
.data-list dt, .data-list dd { margin: 0; font: inherit; letter-spacing: inherit; text-transform: none; color: inherit; padding: 0; }
.data-list dt::after { content: ":"; }
.data-list a { color: inherit; }

/* Inhaltsverzeichnis — als weiße Karte hervorgehoben, einspaltig */
.legal-row.toc {
  padding: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: clamp(1rem, 3vw, 2rem);
  border-radius: 1.5rem;
  background: var(--color-surface);
}
.toc a:hover { color: var(--color-action); text-decoration: underline; text-underline-offset: 0.2em; }
/* einspaltige Liste; erste Zeile auf Höhe von „INHALT“ (Tap-Höhe 44px ausgleichen) */
.toc ol { display: grid; gap: 0; max-width: 46rem; margin-top: -0.6rem; }
.toc a {
  display: flex; align-items: center; gap: 1rem;
  min-height: 44px;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

/* Platzhalter — vor Livegang ersetzen */
mark.todo { background: #FFF1A8; color: #16294F; padding: 0 0.25em; }

/* Lange Rechtstexte: Unterabschnitte nur über Abstand getrennt, Titel-Spalte bleibt beim Lesen stehen */
.prose h3:not(:first-child) { margin-top: 2.75rem; }
.prose h4 { margin-top: 1.75rem; font-family: var(--font-display); font-size: 1rem; font-weight: 600; line-height: 1.4; letter-spacing: -0.005em; color: var(--color-action); }
.prose h4 + p { margin-top: 0.5rem; }
.prose a { overflow-wrap: anywhere; }
.notice { padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: 1.5rem; background: var(--color-surface); font-size: 0.9375rem; letter-spacing: 0.01em; }
.notice > * + * { margin-top: 1rem; }
@media (min-width: 761px) {
  .legal-aside { align-self: start; position: sticky; top: 2rem; }
}

@media (max-width: 760px) {
  .legal-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .page-head .container > * { animation: none; }
}

/* 404 */
.nf-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.prose .pill { color: var(--pill-fg); text-decoration: none; }

/* Danke-Seite: nummerierte Schritte */
.next-steps { list-style: none; padding: 0; counter-reset: step; }
.prose .next-steps li { position: relative; padding-left: 2.5rem; }
.prose .next-steps li + li { margin-top: 1.25rem; }
.prose .next-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0.1em;
  width: 1.75rem; height: 1.75rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--color-action); color: #fff;
  font-family: var(--font-display); font-size: 0.8125rem; font-weight: 500;
}
