/* =========================================================================
   My Glanzwucht – Design-System v2 „Frisch poliert"
   Ein Stylesheet für alles: öffentliche Website, App-Oberfläche, Druck.

   Farbwelt „Sauberkeit": viel Weiß und eishelle Flächen, frisches Aqua
   und kühles Hellblau als Akzent, sattes Tiefblau nur als Kontrast
   (Text, Fußzeile, Dunkelflächen), Chrom-/Silber-Verläufe als Glanzkanten.
   Dunkelmodus: polierter Lack bei Nacht – tiefes Blauschwarz mit
   Aqua-Reflexen, keine grauen Zwischentöne.

   Bewegung: Scroll-Reveal, driftende Lichtkugeln (.lights), wandernde
   Glanzstreifen, zählende Kennzahlen – ruhig, wertig, nie zappelig.
   Alle Bewegung respektiert prefers-reduced-motion.
   ========================================================================= */

/* ---------------------------------------------------------------- Token */

:root {
  /* Tiefblau (ehemals Navy – Namen bleiben für Kompatibilität) */
  --navy-900: #081c36;
  --navy-800: #0b2444;
  --navy-700: #123056;
  --navy-600: #1b4076;

  /* Frisches Aqua */
  --brand: #0eb5d4;
  --brand-strong: #0d7a94;      /* Aqua als Textfarbe auf hellem Grund (AA) */
  --brand-bright: #53e0f5;
  --brand-ink: #04222b;         /* Text auf Aquaflächen */
  --brand-soft: #ddf4fa;
  --gloss: linear-gradient(135deg, #7ceafc 0%, #2bd0e8 45%, #0898b5 100%);
  --chrome: linear-gradient(120deg, #ffffff 0%, #e6eef6 35%, #c6d5e3 50%, #f2f8fc 65%, #d8e4ef 100%);

  /* Flächen & Linien – klar, hell, hygienisch */
  --bg: #f3f9fc;
  --surface: #ffffff;
  --surface-2: #f5fafd;
  --line: #dbe8f1;
  --line-strong: #bfd3e1;

  /* Text: sattes Tiefblau statt Grau */
  --text: #0c2340;
  --text-soft: #33506d;
  --text-mute: #52677e;

  /* Semantik (AA-geprüft auf ihren Hintergründen) */
  --green: #15803d;
  --green-bg: #dcf3e6;
  --amber: #b45309;
  --amber-bg: #fdeed2;
  --red: #b91c1c;
  --red-bg: #fde3e3;
  --blue: #1d4ed8;
  --blue-bg: #dfe9fd;
  --grey-bg: #e7f0f7;

  /* Illustrationen (currentColor) */
  --illu-ink: #0b2444;

  /* Geometrie & Schatten – Schatten leicht blau, nie schmutzig-grau */
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(12, 35, 64, .06), 0 1px 3px rgba(12, 35, 64, .04);
  --shadow: 0 8px 22px rgba(12, 35, 64, .09);
  --shadow-lg: 0 24px 58px rgba(12, 35, 64, .16);
  --shadow-glow: 0 8px 26px rgba(14, 181, 212, .3);

  /* Layout */
  --sidebar-w: 262px;
  --topbar-h: 62px;
  --nav-h: 74px;
  --nav-h-stuck: 58px;
  --wrap: 1160px;

  /* Bewegung */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --reveal-dur: .8s;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;

  color-scheme: light;
}

/* Dunkelmodus: polierter Lack bei Nacht */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #050d1c;
    --surface: #0a1628;
    --surface-2: #0e1d33;
    --line: #1b3050;
    --line-strong: #2b4670;
    --text: #e9f2fb;
    --text-soft: #b0c6db;
    --text-mute: #83a0bb;
    --grey-bg: #12263e;
    --green: #4ade80;
    --green-bg: #0d2c1c;
    --amber: #f0b35c;
    --amber-bg: #33230b;
    --red: #f87171;
    --red-bg: #3a1414;
    --blue: #8fb0f9;
    --blue-bg: #142450;
    --brand-strong: #56dff2;
    --brand-soft: #082e3b;
    --chrome: linear-gradient(120deg, #9fb6cc 0%, #55708c 40%, #cfe0ef 55%, #64809c 70%, #8ea9c2 100%);
    --illu-ink: #a9c9e4;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow: 0 10px 26px rgba(0, 0, 0, .45);
    --shadow-lg: 0 26px 64px rgba(0, 0, 0, .6);
    --shadow-glow: 0 8px 30px rgba(14, 181, 212, .24);
  }
}

/* ---------------------------------------------------------------- Basis */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Sanfter Seiteneinstieg */
@keyframes page-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
body { animation: page-in .45s var(--ease-out) both; }

a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.22; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.22rem; }
h3 { font-size: 1.03rem; }
p { margin: 0 0 .8rem; }

img { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }

::selection { background: rgba(14, 181, 212, .28); }

/* Sichtbarer Fokus überall */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

.muted { color: var(--text-mute); }
.soft { color: var(--text-soft); }
.small { font-size: .84rem; }
.tiny { font-size: .76rem; }
.bold { font-weight: 650; }
.mono { font-family: var(--mono); font-size: .88em; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.uppercase { text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; font-weight: 650; }
.mt0 { margin-top: 0; } .mt1 { margin-top: .5rem; } .mt2 { margin-top: 1rem; } .mt3 { margin-top: 1.6rem; }
.mb0 { margin-bottom: 0; } .mb1 { margin-bottom: .5rem; } .mb2 { margin-bottom: 1rem; } .mb3 { margin-bottom: 1.6rem; }
.hidden { display: none !important; }

/* ---------------------------------------------------------------- App-Grundraster */

.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background:
    radial-gradient(340px 240px at 0% 0%, rgba(14, 181, 212, .16), transparent 65%),
    linear-gradient(200deg, var(--navy-800), var(--navy-900));
  color: #c3d4e8;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 40;
}

.sidebar__brand {
  display: flex; align-items: center; gap: .65rem;
  padding: 1.05rem 1.1rem;
  color: #fff; font-weight: 700; letter-spacing: -.02em;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.sidebar__brand:hover { text-decoration: none; }
.sidebar__logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--gloss);
  display: grid; place-items: center;
  font-weight: 800; color: var(--brand-ink); font-size: .95rem;
  box-shadow: 0 4px 14px rgba(14, 181, 212, .45);
}
.sidebar__brand small { display: block; font-weight: 500; font-size: .68rem; color: #8aa5c4; letter-spacing: .04em; }

.sidebar__group { padding: .9rem .7rem 0; }
.sidebar__group h4 {
  font-size: .67rem; text-transform: uppercase; letter-spacing: .1em;
  color: #6487ad; margin: 0 .45rem .35rem; font-weight: 700;
}
.sidebar a.navlink {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .6rem; border-radius: 9px;
  color: #bdd0e5; font-size: .89rem; font-weight: 500;
  margin-bottom: 1px;
  transition: background .16s var(--ease-soft), color .16s var(--ease-soft), transform .16s var(--ease-soft);
}
.sidebar a.navlink:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; transform: translateX(2px); }
.sidebar a.navlink.is-active {
  background: var(--gloss);
  color: var(--brand-ink);
  font-weight: 650;
  box-shadow: 0 3px 12px rgba(14, 181, 212, .4);
}
.sidebar a.navlink svg { width: 17px; height: 17px; flex: 0 0 17px; opacity: .9; }
.navlink__badge {
  margin-left: auto; background: rgba(255, 255, 255, .16); color: #fff;
  border-radius: 20px; padding: 0 .4rem; font-size: .7rem; font-weight: 700;
}
.navlink.is-active .navlink__badge { background: rgba(0, 0, 0, .25); color: #fff; }
.sidebar__foot { margin-top: auto; padding: .9rem; font-size: .74rem; color: #6487ad; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: var(--topbar-h);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: .8rem;
  padding: 0 1.2rem;
  position: sticky; top: 0; z-index: 30;
}
.topbar__title { font-weight: 650; font-size: 1rem; }
.topbar__title small { display: block; font-weight: 400; font-size: .76rem; color: var(--text-mute); }
.topbar__spacer { flex: 1; }
.topbar__search { position: relative; }
.topbar__search input {
  width: 250px; padding: .45rem .7rem .45rem 2rem; font-size: .87rem;
  border: 1px solid var(--line); border-radius: 20px; background: var(--surface-2); color: var(--text);
  transition: width .25s var(--ease-soft), border-color .18s;
}
.topbar__search input:focus { width: 300px; }
.topbar__search svg { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-mute); }

.burger { display: none; background: none; border: 0; padding: .35rem; cursor: pointer; color: var(--text); }

.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gloss); color: var(--brand-ink);
  display: grid; place-items: center; font-size: .78rem; font-weight: 700;
  flex: 0 0 34px;
}
.avatar--sm { width: 26px; height: 26px; flex: 0 0 26px; font-size: .66rem; }
.avatar--lg { width: 60px; height: 60px; flex: 0 0 60px; font-size: 1.2rem; }

.content { padding: 1.4rem; max-width: 1500px; width: 100%; }

.page-head { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.page-head h1 { margin: 0; }
.page-head p { margin: .15rem 0 0; color: var(--text-mute); font-size: .89rem; }
.page-head__actions { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Bausteine */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.1rem;
  transition: box-shadow .25s var(--ease-soft), border-color .25s var(--ease-soft);
}
.card:hover { box-shadow: var(--shadow); }
.card__head {
  padding: .85rem 1.1rem; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
}
.card__head h2, .card__head h3 { margin: 0; font-size: 1rem; }
.card__head .spacer { flex: 1; }
.card__body { padding: 1.1rem; }
.card__body--tight { padding: .6rem 1.1rem; }
.card__foot { padding: .8rem 1.1rem; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }

.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--sidebar { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* Kacheln auf dem Dashboard */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.05rem; box-shadow: var(--shadow-sm);
  display: block; color: inherit; position: relative; overflow: hidden;
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), border-color .22s var(--ease-out);
}
a.tile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.tile__icon {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-strong); margin-bottom: .6rem;
}
.tile__icon svg { width: 19px; height: 19px; }
.tile__label { font-size: .78rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: .05em; font-weight: 650; }
.tile__value { font-size: 1.65rem; font-weight: 700; letter-spacing: -.02em; margin-top: .1rem; font-variant-numeric: tabular-nums; }
.tile__hint { font-size: .8rem; color: var(--text-soft); margin-top: .2rem; }
.tile--brand { background: var(--gloss); border: 0; color: var(--brand-ink); }
.tile--brand .tile__label, .tile--brand .tile__hint { color: rgba(4, 34, 43, .75); }
.tile--brand .tile__icon { background: rgba(255, 255, 255, .4); color: var(--brand-ink); }
.tile--brand .tile__value { color: var(--brand-ink); }

/* ---------------------------------------------------------------- Tabellen */

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .89rem; }
table.table th {
  text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-mute); font-weight: 700; padding: .55rem .8rem;
  border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2);
}
table.table td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.table tbody tr:last-child td { border-bottom: 0; }
table.table tbody tr { transition: background .15s var(--ease-soft); }
table.table tbody tr:hover { background: var(--surface-2); }
table.table td.num, table.table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.table .row-link { color: inherit; font-weight: 600; }
table.table--compact td, table.table--compact th { padding: .4rem .6rem; }

.empty { padding: 2.4rem 1rem; text-align: center; color: var(--text-mute); }
.empty svg { width: 34px; height: 34px; opacity: .35; margin-bottom: .5rem; }
.empty h3 { color: var(--text-soft); }

/* ---------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .52rem .95rem; border-radius: 10px; font-size: .87rem; font-weight: 600;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  cursor: pointer; white-space: nowrap; line-height: 1.3;
  transition: background .18s var(--ease-soft), border-color .18s var(--ease-soft),
              transform .18s var(--ease-out), box-shadow .18s var(--ease-out), color .18s;
}
.btn:hover { text-decoration: none; background: var(--surface-2); border-color: var(--text-mute); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--gloss); border-color: transparent; color: var(--brand-ink); box-shadow: 0 2px 10px rgba(14, 181, 212, .35); }
.btn--primary:hover { background: var(--gloss); border-color: transparent; color: var(--brand-ink); filter: brightness(1.06); box-shadow: var(--shadow-glow); }
.btn--dark { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.btn--dark:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.btn--danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn--danger:hover { background: #991b1b; border-color: #991b1b; color: #fff; }
.btn--ghost { background: transparent; border-color: transparent; color: var(--text-soft); box-shadow: none; }
.btn--ghost:hover { background: var(--grey-bg); box-shadow: none; }
.btn--sm { padding: .3rem .6rem; font-size: .79rem; border-radius: 7px; }
.btn--sm svg { width: 14px; height: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------- Formulare */

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: .28rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field > label, .label { font-size: .79rem; font-weight: 650; color: var(--text-soft); }
.field .hint { font-size: .75rem; color: var(--text-mute); }

input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="date"], input[type="time"], input[type="tel"], input[type="search"], input[type="url"],
select, textarea {
  width: 100%; padding: .5rem .68rem; font: inherit; font-size: .89rem;
  border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--surface); color: var(--text);
  transition: border-color .18s var(--ease-soft), box-shadow .18s var(--ease-soft);
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 181, 212, .22);
}
input[readonly], input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--text-mute); }
input.num { text-align: right; font-variant-numeric: tabular-nums; }

.check { display: flex; align-items: center; gap: .45rem; font-size: .87rem; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }

.filterbar {
  display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end;
  padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--surface-2);
  border-radius: var(--radius) var(--radius) 0 0;
}
.filterbar .field { min-width: 145px; }

.inline-form { display: inline; }

/* ---------------------------------------------------------------- Etiketten */

.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .13rem .5rem; border-radius: 20px; font-size: .74rem; font-weight: 650;
  background: var(--grey-bg); color: var(--text-soft); white-space: nowrap;
}
.badge--green { background: var(--green-bg); color: var(--green); }
.badge--amber { background: var(--amber-bg); color: var(--amber); }
.badge--red { background: var(--red-bg); color: var(--red); }
.badge--blue { background: var(--blue-bg); color: var(--blue); }
.badge--dark { background: var(--navy-700); color: #d6e6f7; }
.badge--brand { background: var(--brand-soft); color: var(--brand-strong); }
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.plate {
  display: inline-block; font-family: var(--mono); font-weight: 700; letter-spacing: .04em;
  background: #fff; color: #111; border: 2px solid #111; border-left: 9px solid #1e40af;
  border-radius: 5px; padding: .08rem .4rem .08rem .3rem; font-size: .8rem;
}

.ampel { display: inline-flex; align-items: center; gap: .35rem; font-weight: 650; font-size: .8rem; }
.ampel__light { width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(12, 35, 64, .06); }
.ampel--green .ampel__light { background: var(--green); box-shadow: 0 0 8px rgba(21, 128, 61, .5); }
.ampel--amber .ampel__light { background: var(--amber); box-shadow: 0 0 8px rgba(180, 83, 9, .5); }
.ampel--red .ampel__light { background: var(--red); box-shadow: 0 0 8px rgba(185, 28, 28, .5); }

/* ---------------------------------------------------------------- Meldungen */

.flash-stack { position: fixed; top: 12px; right: 12px; z-index: 90; display: flex; flex-direction: column; gap: .5rem; max-width: 380px; }
.flash {
  display: flex; gap: .6rem; align-items: flex-start;
  padding: .7rem .9rem; border-radius: 10px; box-shadow: var(--shadow-lg);
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); font-size: .87rem;
  animation: flash-in .35s var(--ease-out);
}
.flash--ok { border-left-color: var(--green); }
.flash--error { border-left-color: var(--red); }
.flash--info { border-left-color: var(--blue); }
.flash button { background: none; border: 0; cursor: pointer; color: var(--text-mute); font-size: 1.1rem; line-height: 1; padding: 0; }
@keyframes flash-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

.note {
  padding: .75rem .9rem; border-radius: 10px; font-size: .87rem;
  background: var(--brand-soft); color: var(--text); border: 1px solid rgba(14, 181, 212, .35);
}
.note--warn { background: var(--amber-bg); border-color: rgba(180, 83, 9, .3); }
.note--danger { background: var(--red-bg); border-color: rgba(185, 28, 28, .3); }
.note--plain { background: var(--surface-2); border-color: var(--line); }

/* ---------------------------------------------------------------- Workflow */

.workflow { display: flex; align-items: center; gap: .2rem; flex-wrap: wrap; }
.workflow__step {
  display: flex; align-items: center; gap: .4rem;
  padding: .32rem .75rem; border-radius: 20px; font-size: .8rem; font-weight: 650;
  background: var(--grey-bg); color: var(--text-mute);
  transition: background .2s, color .2s;
}
.workflow__step.is-done { background: var(--green-bg); color: var(--green); }
.workflow__step.is-current { background: var(--gloss); color: var(--brand-ink); box-shadow: 0 3px 10px rgba(14, 181, 212, .35); }
.workflow__arrow { color: var(--text-mute); font-size: .8rem; }

.board { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: .9rem; align-items: start; }
.board__col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); min-height: 120px; }
.board__head {
  padding: .6rem .8rem; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: .45rem; font-weight: 650; font-size: .84rem;
}
.board__count { margin-left: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 0 .45rem; font-size: .74rem; }
.board__list { padding: .55rem; display: flex; flex-direction: column; gap: .5rem; }
.board-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: .6rem .7rem; display: block; color: inherit; box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease-out), border-color .18s, box-shadow .18s;
}
.board-card:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.board-card__top { display: flex; align-items: center; gap: .4rem; font-size: .76rem; color: var(--text-mute); }
.board-card__title { font-weight: 650; font-size: .88rem; margin: .2rem 0 .1rem; }
.board-card__meta { font-size: .78rem; color: var(--text-soft); display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------- Diverses */

.tabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--line); margin-bottom: 1.1rem; overflow-x: auto; }
.tabs a {
  padding: .55rem .9rem; font-size: .87rem; font-weight: 600; color: var(--text-soft);
  border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color .18s, border-color .18s;
}
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.is-active { color: var(--brand-strong); border-bottom-color: var(--brand); }

.deflist { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: .45rem .9rem; font-size: .88rem; }
.deflist dt { color: var(--text-mute); }
.deflist dd { margin: 0; font-weight: 550; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 .9rem 1.3rem; border-left: 2px solid var(--line); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: .35rem;
  width: 10px; height: 10px; border-radius: 50%; background: var(--brand); border: 2px solid var(--surface);
}
.timeline time { font-size: .76rem; color: var(--text-mute); display: block; }

.progress { height: 7px; border-radius: 20px; background: var(--grey-bg); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--gloss); border-radius: 20px; transition: width .6s var(--ease-out); }

.bars { display: flex; flex-direction: column; gap: .55rem; }
.bar__label { display: flex; justify-content: space-between; font-size: .81rem; margin-bottom: .18rem; }

.chart { display: flex; align-items: flex-end; gap: .35rem; height: 160px; padding-top: .5rem; }
.chart__bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .3rem; height: 100%; }
.chart__fill { width: 100%; background: var(--gloss); border-radius: 6px 6px 0 0; min-height: 3px; transition: height .5s var(--ease-out); }
.chart__cap { font-size: .68rem; color: var(--text-mute); white-space: nowrap; }

.pagination { display: flex; gap: .3rem; align-items: center; justify-content: center; padding: .8rem; }
.pagination a, .pagination span {
  padding: .3rem .6rem; border-radius: 7px; font-size: .84rem;
  border: 1px solid var(--line); color: var(--text-soft); background: var(--surface);
  transition: border-color .15s, color .15s;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand-strong); text-decoration: none; }
.pagination .is-active { background: var(--gloss); border-color: transparent; color: var(--brand-ink); font-weight: 650; }

.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip {
  padding: .25rem .65rem; border-radius: 20px; font-size: .8rem; font-weight: 600;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-soft);
  transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { text-decoration: none; border-color: var(--brand); color: var(--brand-strong); }
.chip.is-active { background: var(--gloss); border-color: transparent; color: var(--brand-ink); }

.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -8px; border: 2px solid var(--surface); }
.avatar-stack .avatar:first-child { margin-left: 0; }

dialog {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
  max-width: 560px; width: calc(100% - 2rem);
}
dialog[open] { animation: dialog-in .3s var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
dialog::backdrop { background: rgba(5, 13, 28, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

.signature-pad {
  border: 2px dashed var(--line-strong); border-radius: 10px; background: var(--surface-2);
  width: 100%; height: 190px; touch-action: none; display: block;
}

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .65rem; }
.photo-grid figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-2); transition: transform .2s var(--ease-out), box-shadow .2s; }
.photo-grid figure:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.photo-grid img { width: 100%; height: 100px; object-fit: cover; display: block; }
.photo-grid figcaption { padding: .3rem .45rem; font-size: .74rem; color: var(--text-mute); }

.map {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2) repeating-linear-gradient(45deg, rgba(140, 170, 200, .08) 0 12px, transparent 12px 24px);
  position: relative; height: 320px;
}
.map__pin {
  position: absolute; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
}
.map__dot {
  width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--brand); color: var(--brand-ink); display: grid; place-items: center;
  font-size: .7rem; font-weight: 700; box-shadow: var(--shadow);
}
.map__dot span { transform: rotate(45deg); }
.map__label { font-size: .68rem; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 0 .25rem; white-space: nowrap; }

.kv-list { list-style: none; margin: 0; padding: 0; }
.kv-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.kv-list li:last-child { border-bottom: 0; }

.stat-row { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.stat { min-width: 120px; }
.stat__value { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat__label { font-size: .77rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: .05em; font-weight: 650; }

/* ---------------------------------------------------------------- Chat / KI */

.chat { display: flex; flex-direction: column; gap: .7rem; max-height: 520px; overflow-y: auto; padding: .3rem; }
.msg { max-width: 78%; padding: .6rem .85rem; border-radius: 14px; font-size: .89rem; white-space: pre-wrap; animation: msg-in .3s var(--ease-out); }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg--user { align-self: flex-end; background: var(--navy-700); color: #eef5fc; border-bottom-right-radius: 4px; }
.msg--ai { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }

/* =========================================================================
   ÖFFENTLICHE WEBSITE
   ========================================================================= */

/* ------------------------------------------------------------ Navigation */

.nav-bar {
  position: sticky; top: 0; z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease-soft), border-color .3s var(--ease-soft),
              box-shadow .3s var(--ease-soft);
}
.nav-bar.is-stuck {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(12, 35, 64, .07);
}

.nav-bar__inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 0 1.2rem;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 1.6rem;
  transition: height .3s var(--ease-soft);
}
.nav-bar.is-stuck .nav-bar__inner { height: var(--nav-h-stuck); }

.nav-logo {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 800; font-size: 1.06rem; letter-spacing: -.02em;
  color: var(--text); white-space: nowrap;
}
.nav-logo:hover { text-decoration: none; }
/* Kleines Glanz-Emblem: Wassertropfen auf Chrom, rein aus CSS */
.nav-logo::before {
  content: "";
  width: 30px; height: 30px; flex: 0 0 30px;
  border-radius: 50% 50% 50% 12px;
  background:
    radial-gradient(120% 90% at 28% 18%, rgba(255, 255, 255, .95), transparent 42%),
    var(--gloss);
  box-shadow: 0 3px 12px rgba(14, 181, 212, .45), inset 0 0 0 1px rgba(255, 255, 255, .5);
}

.nav-links { display: flex; align-items: center; gap: .2rem; margin: 0 auto; }
.nav-links a {
  position: relative;
  padding: .5rem .8rem; border-radius: 9px;
  color: var(--text-soft); font-weight: 550; font-size: .92rem;
  transition: color .18s var(--ease-soft), background .18s var(--ease-soft);
}
.nav-links a:hover { color: var(--text); background: color-mix(in srgb, var(--brand) 9%, transparent); text-decoration: none; }
/* wachsender Aqua-Unterstrich */
.nav-links a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem;
  height: 2px; border-radius: 2px; background: var(--brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--text); font-weight: 650; }

.nav-actions { display: flex; align-items: center; gap: .55rem; margin-left: auto; }

/* Burger: zwei Balken, wird zum X */
.nav-toggle {
  display: none;
  position: relative; z-index: 75;
  width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; padding: 0;
}
.nav-toggle::before, .nav-toggle::after {
  content: ""; position: absolute; left: 11px; right: 11px; height: 2px;
  border-radius: 2px; background: var(--text);
  transition: transform .3s var(--ease-out), top .3s var(--ease-out);
}
.nav-toggle::before { top: 16px; }
.nav-toggle::after { top: 24px; }
body.menu-open .nav-toggle::before { top: 20px; transform: rotate(45deg); }
body.menu-open .nav-toggle::after { top: 20px; transform: rotate(-45deg); }

/* ------------------------------------------- Fliegende Lichter (.lights) */

/* Weiche Lichtkugeln / Wassertropfen-Reflexe, die langsam über den
   Hintergrund driften. Immer hinter dem Inhalt, nie anklickbar. */
.lights {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.lights__orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%,
    rgba(255, 255, 255, .9) 0%,
    rgba(124, 234, 252, .4) 38%,
    rgba(43, 208, 232, .12) 62%,
    transparent 72%);
  opacity: .3;
  will-change: transform;
  animation: orb-drift-a 32s ease-in-out infinite alternate;
}

@keyframes orb-drift-a {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  30%  { transform: translate3d(9vw, -7vh, 0) scale(1.12); }
  62%  { transform: translate3d(-5vw, 6vh, 0) scale(.94); }
  100% { transform: translate3d(6vw, -3vh, 0) scale(1.06); }
}
@keyframes orb-drift-b {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  35%  { transform: translate3d(-8vw, 5vh, 0) scale(1.08); }
  70%  { transform: translate3d(5vw, -6vh, 0) scale(.9); }
  100% { transform: translate3d(-4vw, 4vh, 0) scale(1.1); }
}

/* Größe, Farbe, Startposition, Tempo – jede Kugel anders.
   Negative Verzögerungen: alles ist beim Laden schon „mittendrin". */
.lights__orb:nth-child(1)  { width: 190px; height: 190px; top: 8%;  left: 6%;   animation-duration: 38s; animation-delay: -6s; }
.lights__orb:nth-child(2)  { width: 90px;  height: 90px;  top: 22%; left: 78%;  animation-duration: 26s; animation-delay: -14s; animation-name: orb-drift-b; opacity: .38; }
.lights__orb:nth-child(3)  { width: 260px; height: 260px; top: 58%; left: 68%;  animation-duration: 45s; animation-delay: -22s; opacity: .2; }
.lights__orb:nth-child(4)  { width: 60px;  height: 60px;  top: 68%; left: 14%;  animation-duration: 21s; animation-delay: -4s;  animation-name: orb-drift-b; opacity: .45; }
.lights__orb:nth-child(5)  { width: 140px; height: 140px; top: 36%; left: 42%;  animation-duration: 34s; animation-delay: -18s; opacity: .24; }
.lights__orb:nth-child(6)  { width: 44px;  height: 44px;  top: 12%; left: 52%;  animation-duration: 23s; animation-delay: -9s;  animation-name: orb-drift-b; opacity: .5; }
.lights__orb:nth-child(7)  { width: 110px; height: 110px; top: 80%; left: 44%;  animation-duration: 29s; animation-delay: -12s; opacity: .3; }
.lights__orb:nth-child(8)  { width: 75px;  height: 75px;  top: 45%; left: 88%;  animation-duration: 25s; animation-delay: -20s; animation-name: orb-drift-b; opacity: .4; }
.lights__orb:nth-child(9)  { width: 220px; height: 220px; top: -6%; left: 30%;  animation-duration: 42s; animation-delay: -30s; opacity: .18; }
.lights__orb:nth-child(10) { width: 52px;  height: 52px;  top: 60%; left: 30%;  animation-duration: 20s; animation-delay: -2s;  animation-name: orb-drift-b; opacity: .48; }

/* Kühle Eisblau-Variante für jede dritte Kugel */
.lights__orb:nth-child(3n) {
  background: radial-gradient(circle at 32% 28%,
    rgba(255, 255, 255, .85) 0%,
    rgba(147, 197, 253, .35) 40%,
    rgba(96, 165, 250, .1) 62%,
    transparent 72%);
}

/* --------------------------------------------------------------- Hero */

/* Hell: frisch gewaschen unter Studiolicht. Dunkel: Lack bei Nacht. */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 82% -12%, rgba(43, 208, 232, .18), transparent 60%),
    radial-gradient(760px 420px at 4% 108%, rgba(147, 197, 253, .22), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #e9f6fb 100%);
  color: var(--text);
  overflow: hidden;
}
@media (prefers-color-scheme: dark) {
  .hero {
    background:
      radial-gradient(1100px 520px at 82% -12%, rgba(14, 181, 212, .2), transparent 60%),
      radial-gradient(760px 420px at 4% 108%, rgba(29, 78, 216, .22), transparent 60%),
      linear-gradient(180deg, #071528 0%, #050d1c 100%);
  }
}

/* Sehr langsam wandernder Lichtschein über den ganzen Hero */
.hero::before {
  content: ""; position: absolute; inset: -40% -20%;
  background: linear-gradient(115deg,
    transparent 32%,
    rgba(255, 255, 255, .1) 44%,
    rgba(255, 255, 255, .28) 50%,
    rgba(255, 255, 255, .1) 56%,
    transparent 68%);
  animation: light-sweep 14s var(--ease-soft) infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes light-sweep {
  0%   { transform: translateX(-45%); }
  60%  { transform: translateX(45%); }
  100% { transform: translateX(45%); }
}

/* Zusätzlicher weicher Lichtschein (eigenes Element im Markup) */
.hero__glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(560px 340px at 72% 28%, rgba(124, 234, 252, .32), transparent 65%),
    radial-gradient(440px 300px at 26% 78%, rgba(147, 197, 253, .26), transparent 65%);
  filter: blur(8px);
  animation: hero-glow-drift 18s ease-in-out infinite alternate;
}
@keyframes hero-glow-drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); opacity: .8; }
  to   { transform: translate3d(3%, 3%, 0) scale(1.08); opacity: 1; }
}

.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--wrap); margin: 0 auto;
  padding: 5rem 1.2rem 4.6rem;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem;
  align-items: center;
  min-height: min(78vh, 720px);
}

.hero__content { max-width: 36rem; }

.hero__badge {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-bottom: 1.1rem;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  border: 1px solid var(--line-strong);
  padding: .3rem .8rem; border-radius: 20px;
  font-size: .78rem; font-weight: 650; letter-spacing: .02em;
  color: var(--brand-strong);
  box-shadow: var(--shadow-sm);
}
.hero__badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px rgba(43, 208, 232, .9);
  animation: badge-pulse 2.6s ease-in-out infinite;
}
@keyframes badge-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.hero__title {
  font-size: clamp(2.1rem, 5.2vw, 3.35rem);
  line-height: 1.06; letter-spacing: -.03em; font-weight: 800;
  margin-bottom: 1rem; color: var(--text);
}
/* Aqua-Wasserglanz für hervorgehobene Wörter im Titel */
.hero__title em, .hero__title strong {
  font-style: normal;
  background: linear-gradient(100deg, #0d7a94 10%, #12b7d8 40%, #56dff2 55%, #0d7a94 85%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: aqua-pan 7s ease-in-out infinite alternate;
}
@media (prefers-color-scheme: dark) {
  .hero__title em, .hero__title strong {
    background-image: linear-gradient(100deg, #56dff2 10%, #9beefb 45%, #2bd0e8 75%, #7ceafc 100%);
    -webkit-background-clip: text; background-clip: text;
  }
}
@keyframes aqua-pan { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.hero__lead { font-size: 1.1rem; line-height: 1.65; color: var(--text-soft); max-width: 32rem; margin-bottom: 1.6rem; }

.hero__actions { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.hero__actions .btn { padding: .68rem 1.35rem; font-size: .93rem; border-radius: 12px; }

/* Rechte Bühne: frisch polierte Fläche mit Chrom-Kante – reine CSS-Grafik */
.hero__visual {
  position: relative; min-height: 320px;
  display: grid; place-items: center;
}
.hero__visual::before {
  /* Lichtkegel von oben */
  content: ""; position: absolute; inset: -8% 6% 14%;
  background: radial-gradient(58% 46% at 50% 16%, rgba(255, 255, 255, .55), transparent 70%);
  filter: blur(4px);
}
.hero__visual::after {
  /* nasse, spiegelnde Fläche mit wanderndem Glanz */
  content: ""; position: absolute; left: 3%; right: 3%; top: 14%; bottom: 16%;
  border-radius: 24px;
  background:
    linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .55) 50%, transparent 58%),
    radial-gradient(130% 100% at 30% 0%, rgba(255, 255, 255, .8), transparent 45%),
    linear-gradient(165deg, #f4fafd 0%, #d3ecf6 48%, #b8dff0 100%);
  background-size: 260% 100%, 100% 100%, 100% 100%;
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow:
    0 34px 60px -24px rgba(12, 35, 64, .35),
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -1px 0 rgba(140, 190, 220, .5);
  animation: visual-shine 9s ease-in-out infinite;
}
@media (prefers-color-scheme: dark) {
  .hero__visual::before { background: radial-gradient(58% 46% at 50% 16%, rgba(124, 234, 252, .18), transparent 70%); }
  .hero__visual::after {
    background:
      linear-gradient(115deg, transparent 42%, rgba(190, 240, 252, .2) 50%, transparent 58%),
      radial-gradient(130% 100% at 30% 0%, rgba(124, 234, 252, .14), transparent 45%),
      linear-gradient(165deg, #0d2036 0%, #081a2e 55%, #0c2440 100%);
    background-size: 260% 100%, 100% 100%, 100% 100%;
    border-color: rgba(124, 234, 252, .18);
    box-shadow:
      0 34px 60px -22px rgba(0, 0, 0, .7),
      inset 0 1px 0 rgba(124, 234, 252, .22);
  }
}
@keyframes visual-shine {
  0%, 20%   { background-position: 215% 0, 0 0, 0 0; }
  62%, 100% { background-position: -115% 0, 0 0, 0 0; }
}
/* Inhalt (Karte, Illustration) liegt über der Bühne */
.hero__visual > * { position: relative; z-index: 2; }

/* Scroll-Hinweis */
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.1rem; z-index: 3;
  transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 14px;
  border: 2px solid var(--line-strong);
  color: transparent; overflow: hidden; font-size: 0;
}
.hero__scroll::after {
  content: ""; position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px; border-radius: 3px; margin-left: -2px;
  background: var(--brand);
  animation: scroll-drop 2.2s var(--ease-soft) infinite;
}
@keyframes scroll-drop {
  0%   { transform: translateY(0); opacity: 0; }
  25%  { opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* Alte Hero-Unterklassen (Bestandsseiten) */
.hero h1 { font-size: 2.9rem; line-height: 1.08; letter-spacing: -.03em; margin-bottom: .9rem; }
.hero p.lead { font-size: 1.08rem; color: var(--text-soft); max-width: 33rem; }
.hero__card {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border: 1px solid var(--line);
  border-radius: 18px; padding: 1.3rem;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.hero__stats { display: flex; gap: 1.6rem; margin-top: 2rem; flex-wrap: wrap; }
.hero__stat b { display: block; font-size: 1.5rem; letter-spacing: -.02em; }
.hero__stat span { font-size: .8rem; color: var(--text-mute); }

/* ------------------------------------------------------------ Abschnitte */

.section { max-width: var(--wrap); margin: 0 auto; padding: 4.4rem 1.2rem; position: relative; }

.section--tint {
  max-width: none;
  background:
    radial-gradient(900px 420px at 88% 0%, rgba(124, 234, 252, .1), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--tint > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }

/* Tiefblauer Kontrast-Abschnitt: Lack bei Nacht */
.section--dark {
  max-width: none;
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 480px at 14% -6%, rgba(14, 181, 212, .16), transparent 60%),
    radial-gradient(720px 420px at 96% 104%, rgba(29, 78, 216, .2), transparent 60%),
    linear-gradient(175deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #e6f0fa;
}
.section--dark > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.section--dark > .lights { max-width: none; margin: 0; z-index: 0; }
.section--dark .section__title { color: #fbfdff; }
.section--dark .section__lead { color: #aac4dd; }
.section--dark .eyebrow { color: var(--brand-bright); }

.section__head { max-width: 42rem; margin-bottom: 2.4rem; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .eyebrow::before { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: block;
  color: var(--brand-strong); font-weight: 700; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .14em;
  margin-bottom: .55rem;
}
/* kleine Chrom-Glanzkante vor dem Vorspann */
.eyebrow::before {
  content: ""; display: block; width: 36px; height: 3px; border-radius: 3px;
  background: var(--gloss); margin-bottom: .55rem;
  box-shadow: 0 1px 4px rgba(14, 181, 212, .4);
}

.section__title { font-size: clamp(1.6rem, 3.4vw, 2.15rem); letter-spacing: -.025em; margin-bottom: .6rem; }
.section__lead { font-size: 1.02rem; color: var(--text-soft); line-height: 1.65; margin: 0; }

/* Alte Abschnitts-Klassen (Bestandsseiten) */
.section__head h2 { font-size: 1.95rem; letter-spacing: -.02em; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: none; }
.section--alt > .section { padding-left: 1.2rem; padding-right: 1.2rem; }

/* --------------------------------------------------------------- Karten */

.cards { display: grid; gap: 1.2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card-tile {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  color: inherit;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
}
/* Chrom-Glanzkante, die beim Hover aufleuchtet */
.card-tile::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--gloss);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-out);
  z-index: 1;
}
/* Lichtstreifen, der beim Hover einmal über die Karte gleitet */
.card-tile::after {
  content: ""; position: absolute; top: -30%; bottom: -30%;
  left: -75%; width: 50%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .0) 30%, rgba(255, 255, 255, .35) 50%, transparent 100%);
  transform: skewX(-18deg);
  transition: left .9s var(--ease-soft);
  pointer-events: none;
}
.card-tile:hover, a.card-tile:hover {
  text-decoration: none;
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
}
.card-tile:hover::before { transform: scaleX(1); }
.card-tile:hover::after { left: 135%; }

.card-tile__icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-strong);
  margin-bottom: .95rem;
  box-shadow: inset 0 0 0 1px rgba(14, 181, 212, .3);
  transition: transform .3s var(--ease-out), background .3s, color .3s;
}
.card-tile__icon svg { width: 22px; height: 22px; }
.card-tile:hover .card-tile__icon {
  background: var(--gloss); color: var(--brand-ink);
  transform: scale(1.06) rotate(-3deg);
}
.card-tile__title { font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: .35rem; }
.card-tile__text { font-size: .91rem; color: var(--text-soft); line-height: 1.6; margin: 0 0 .9rem; }

.card-tile__link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .88rem; font-weight: 650; color: var(--brand-strong);
}
.card-tile__link::after { content: "→"; transition: transform .25s var(--ease-out); }
.card-tile:hover .card-tile__link::after { transform: translateX(4px); }

/* Karten in dunklen Abschnitten */
.section--dark .card-tile {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(124, 234, 252, .16);
  color: #e6f0fa;
}
.section--dark .card-tile__text { color: #aac4dd; }
.section--dark .card-tile__link { color: var(--brand-bright); }
.section--dark .card-tile__icon { background: rgba(14, 181, 212, .16); color: var(--brand-bright); }

/* --------------------------------------------------------------- Ablauf */

.steps {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}
.steps__line {
  position: absolute; left: 6%; right: 6%; top: 26px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent);
  z-index: 0;
}
/* Aqua-Fortschrittslinie darüber, füllt sich beim Erscheinen */
.steps__line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--gloss); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.4s var(--ease-out) .3s;
}
.reveal.is-in .steps__line::after,
.steps.is-in .steps__line::after,
.is-in .steps__line::after { transform: scaleX(1); }

.step { position: relative; z-index: 1; text-align: center; padding: 0 .4rem; }
.step__num {
  width: 52px; height: 52px; margin: 0 auto .8rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand);
  color: var(--brand-strong);
  font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 0 0 6px var(--bg), var(--shadow-sm);
  transition: background .3s var(--ease-soft), color .3s, transform .3s var(--ease-out), box-shadow .3s;
}
.step:hover .step__num {
  background: var(--gloss); color: var(--brand-ink);
  transform: scale(1.1);
  box-shadow: 0 0 0 6px var(--bg), var(--shadow-glow);
}
.step__title { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.step__text { font-size: .88rem; color: var(--text-soft); line-height: 1.6; margin: 0; }

.section--tint .step__num { box-shadow: 0 0 0 6px var(--surface), var(--shadow-sm); }
.section--tint .step:hover .step__num { box-shadow: 0 0 0 6px var(--surface), var(--shadow-glow); }

/* ------------------------------------------------------------ Zweispalter */

.split {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split--reverse .split__body { order: 1; }

/* Nasse Glasfläche mit Chrom-Kante und langsamem Glanz */
.split__media {
  position: relative;
  border-radius: 20px;
  min-height: 300px;
  overflow: hidden;
  display: grid; place-items: center;
  padding: 1.6rem;
  background:
    linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .5) 50%, transparent 60%),
    radial-gradient(120% 90% at 22% 8%, rgba(255, 255, 255, .9), transparent 55%),
    radial-gradient(110% 90% at 85% 92%, rgba(124, 234, 252, .35), transparent 60%),
    linear-gradient(165deg, #f2f9fd 0%, #d8eef7 55%, #c2e4f2 100%);
  background-size: 260% 100%, 100% 100%, 100% 100%, 100% 100%;
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .9);
  animation: split-sheen 11s ease-in-out infinite;
}
@media (prefers-color-scheme: dark) {
  .split__media {
    background:
      linear-gradient(115deg, transparent 40%, rgba(190, 240, 252, .14) 50%, transparent 60%),
      radial-gradient(120% 90% at 22% 8%, rgba(124, 234, 252, .12), transparent 55%),
      radial-gradient(110% 90% at 85% 92%, rgba(29, 78, 216, .2), transparent 60%),
      linear-gradient(165deg, #0d2036 0%, #081a2e 55%, #0c2440 100%);
    background-size: 260% 100%, 100% 100%, 100% 100%, 100% 100%;
    border-color: rgba(124, 234, 252, .16);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(124, 234, 252, .18);
  }
}
@keyframes split-sheen {
  0%, 25%   { background-position: 225% 0, 0 0, 0 0, 0 0; }
  70%, 100% { background-position: -125% 0, 0 0, 0 0, 0 0; }
}
.split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split__media > * { position: relative; }

.split__body .eyebrow { margin-bottom: .55rem; }
.split__body h2, .split__body h3 { font-size: clamp(1.45rem, 3vw, 1.9rem); letter-spacing: -.02em; }
.split__body p { color: var(--text-soft); line-height: 1.68; }
.split__body ul { padding-left: 1.2rem; color: var(--text-soft); }
.split__body li { margin-bottom: .4rem; }
.split__body li::marker { color: var(--brand); }

/* ---------------------------------------------------------- Illustrationen */

/* Freigestellte SVGs (Fahrzeuge, Werkzeug, Tropfen), transparenter
   Hintergrund, Farbanpassung über currentColor. */
.illu {
  display: block;
  max-width: 100%;
  height: auto;
  color: var(--illu-ink);
}
.illu--float { animation: float-bob 7s ease-in-out infinite; }
/* Weicher Bodenschatten unter dem Fahrzeug – folgt der Silhouette */
.illu--shadow { filter: drop-shadow(0 22px 16px rgba(12, 35, 64, .22)); }
@media (prefers-color-scheme: dark) {
  .illu--shadow { filter: drop-shadow(0 22px 18px rgba(0, 0, 0, .6)); }
}

.split__media .illu,
.split__media img.illu {
  width: min(84%, 440px);
  height: auto;
  object-fit: contain;
  margin: auto;
}
.hero__visual .illu { width: min(88%, 480px); margin: auto; }
.section--dark .illu, .cta-band__inner .illu, .auth-panel__side .illu { color: #bfe0f2; }

/* ------------------------------------------------------------ Zahlenband */

.stat-band {
  position: relative; overflow: hidden;
  background:
    linear-gradient(100deg, transparent 30%, rgba(190, 240, 252, .08) 50%, transparent 70%),
    radial-gradient(800px 320px at 50% -40%, rgba(14, 181, 212, .24), transparent 70%),
    linear-gradient(170deg, var(--navy-800), var(--navy-900));
  background-size: 300% 100%, 100% 100%, 100% 100%;
  color: #eef6fd;
  border-radius: 20px;
  border: 1px solid rgba(124, 234, 252, .16);
  padding: 2.6rem 2rem;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
  box-shadow: var(--shadow-lg);
  animation: band-sheen 15s ease-in-out infinite;
}
@keyframes band-sheen {
  0%, 30%   { background-position: 255% 0, 0 0, 0 0; }
  75%, 100% { background-position: -155% 0, 0 0, 0 0; }
}
.stat-band__item { text-align: center; position: relative; }
.stat-band__item + .stat-band__item::before {
  content: ""; position: absolute; left: -0.8rem; top: 15%; bottom: 15%;
  width: 1px; background: rgba(124, 234, 252, .2);
}
.stat-band__value {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #9beefb, #2bd0e8 55%, #bfe9ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat-band__label { font-size: .84rem; color: #a9c4dc; margin-top: .25rem; letter-spacing: .02em; }

/* --------------------------------------------------------------- Stimmen */

.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.quote {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.7rem 1.4rem 1.3rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quote::before {
  content: "„";
  position: absolute; top: .1rem; left: 1.05rem;
  font-size: 3.4rem; line-height: 1; font-weight: 800;
  background: var(--gloss);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  opacity: .9;
}
.quote__text { font-size: .95rem; line-height: 1.65; color: var(--text-soft); margin: .8rem 0 1rem; font-style: italic; }
.quote__author {
  margin-top: auto;
  display: flex; align-items: center; gap: .55rem;
  font-size: .85rem; font-weight: 650; color: var(--text);
}
.quote__author::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--gloss);
}

/* ------------------------------------------------------------------ FAQ */

.faq { max-width: 46rem; margin: 0 auto; display: flex; flex-direction: column; gap: .7rem; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .25s var(--ease-soft), box-shadow .25s var(--ease-soft);
}
.faq__item:hover { border-color: var(--line-strong); }
.faq__item[open] { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: var(--shadow-sm); }

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 3.2rem 1rem 1.2rem;
  font-weight: 650; font-size: .97rem;
  position: relative;
  transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--brand-strong); }
/* Plus, das sich zum Minus dreht */
.faq__item summary::before,
.faq__item summary::after {
  content: ""; position: absolute; right: 1.2rem; top: 50%;
  width: 14px; height: 2px; border-radius: 2px;
  background: var(--brand);
  transition: transform .35s var(--ease-out);
}
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::before { transform: rotate(180deg); }
.faq__item[open] summary::after { transform: rotate(180deg); }

.faq__answer {
  padding: 0 1.2rem 1.1rem;
  font-size: .91rem; color: var(--text-soft); line-height: 1.65;
}
.faq__item[open] .faq__answer { animation: faq-open .4s var(--ease-out); }
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------------- Abschluss-Aufruf */

.cta-band {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.2rem 4.4rem;
}
.cta-band__inner {
  position: relative; overflow: hidden;
  border-radius: 24px;
  padding: clamp(2.4rem, 6vw, 4rem) clamp(1.4rem, 5vw, 3.5rem);
  text-align: center;
  background:
    radial-gradient(700px 340px at 50% -30%, rgba(14, 181, 212, .34), transparent 65%),
    radial-gradient(520px 320px at 92% 108%, rgba(29, 78, 216, .26), transparent 60%),
    linear-gradient(165deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #f0f7fd;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(124, 234, 252, .22);
}
/* wandernder Glanz über das ganze Band */
.cta-band__inner::before {
  content: ""; position: absolute; inset: -30%;
  background: linear-gradient(115deg, transparent 40%, rgba(190, 240, 252, .12) 50%, transparent 60%);
  animation: light-sweep 10s var(--ease-soft) infinite;
  pointer-events: none;
}
.cta-band__inner > * { position: relative; z-index: 1; }
.cta-band__inner > .lights { position: absolute; z-index: 0; }
.cta-band__inner h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: -.025em; color: #fbfdff; }
.cta-band__inner p { color: #aac4dd; max-width: 34rem; margin: 0 auto 1.5rem; font-size: 1.02rem; }
.cta-band__inner .btn-row, .cta-band__inner .hero__actions { justify-content: center; }
.cta-band__inner .btn { padding: .68rem 1.4rem; font-size: .93rem; border-radius: 12px; }
.cta-band__inner .btn:not(.btn--primary) {
  background: rgba(255, 255, 255, .07); border-color: rgba(190, 240, 252, .35); color: #eef6fd;
}
.cta-band__inner .btn:not(.btn--primary):hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* --------------------------------------------------------------- Fußzeile */

.footer {
  position: relative;
  background:
    radial-gradient(700px 320px at 85% 0%, rgba(14, 181, 212, .1), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: #9db8d2;
}
/* Chrom-Glanzkante als oberer Abschluss */
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--chrome);
  opacity: .7;
}
.footer a { color: #9db8d2; transition: color .18s; }
.footer a:hover { color: #fff; text-decoration: none; }

.footer__grid {
  max-width: var(--wrap); margin: 0 auto;
  padding: 3rem 1.2rem 2rem;
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
}
.footer__brand { font-size: .9rem; line-height: 1.6; }
.footer__brand .nav-logo { color: #fff; margin-bottom: .7rem; }
.footer__brand p { color: #8aa5c0; }

.footer__col h4 {
  color: #7ceafc; font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: .7rem;
}
.footer__col a { display: block; font-size: .89rem; padding: .18rem 0; }

.footer__bottom {
  border-top: 1px solid rgba(157, 184, 210, .18);
  padding: 1rem 1.2rem;
  font-size: .78rem; text-align: center; color: #7f9ab5;
}

/* Alte Website-Klassen (Bestandsseiten) */
.site-header {
  position: sticky; top: 0; z-index: 40;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-nav { max-width: var(--wrap); margin: 0 auto; padding: .8rem 1.2rem; display: flex; align-items: center; gap: 1.2rem; }
.site-nav a.site-link { color: var(--text-soft); font-weight: 550; font-size: .9rem; }
.site-nav a.site-link:hover { color: var(--brand-strong); text-decoration: none; }
.site-nav .spacer { flex: 1; }

.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature__icon { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; margin-bottom: .7rem; }
.feature__icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 1rem; }
.feature p { font-size: .89rem; color: var(--text-soft); margin: 0; }

.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card--featured { border: 2px solid var(--brand); box-shadow: var(--shadow-glow); position: relative; }
.price-card--featured::before {
  content: "Beliebt"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--gloss); color: var(--brand-ink); font-size: .7rem; font-weight: 700; padding: .15rem .7rem; border-radius: 20px;
}
.price-card__price { font-size: 2rem; font-weight: 750; letter-spacing: -.03em; margin: .3rem 0; font-variant-numeric: tabular-nums; }
.price-card ul { list-style: none; margin: .8rem 0 1.2rem; padding: 0; font-size: .89rem; display: flex; flex-direction: column; gap: .4rem; }
.price-card li { display: flex; gap: .45rem; align-items: flex-start; color: var(--text-soft); }
.price-card li svg { width: 15px; height: 15px; color: var(--green); flex: 0 0 15px; margin-top: .18rem; }
.price-card .btn { margin-top: auto; }

.site-footer { background: var(--navy-900); color: #9db8d2; margin-top: 0; }
.site-footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 2.6rem 1.2rem 1.6rem; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 1.8rem; }
.site-footer h4 { color: #7ceafc; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: #9db8d2; font-size: .87rem; display: block; padding: .15rem 0; }
.site-footer a:hover { color: #fff; }
.site-footer__bar { border-top: 1px solid rgba(157, 184, 210, .18); padding: .9rem 1.2rem; font-size: .78rem; text-align: center; }

/* ---------------------------------------------------- Formularseiten (Auth) */

.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem) 1rem;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(124, 234, 252, .18), transparent 60%),
    radial-gradient(700px 420px at 0% 110%, rgba(147, 197, 253, .16), transparent 60%),
    var(--bg);
}

.auth-panel {
  width: 100%; max-width: 900px;
  display: grid; grid-template-columns: 1.05fr .95fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.auth-panel__form { padding: clamp(1.6rem, 4vw, 2.8rem); display: flex; flex-direction: column; justify-content: center; }

.auth-panel__side {
  position: relative; overflow: hidden;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  display: flex; flex-direction: column; justify-content: flex-end;
  background:
    radial-gradient(520px 360px at 76% 18%, rgba(14, 181, 212, .32), transparent 60%),
    radial-gradient(440px 320px at 12% 92%, rgba(29, 78, 216, .28), transparent 60%),
    linear-gradient(165deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #e6f0fa;
}
.auth-panel__side::before {
  content: ""; position: absolute; inset: -30%;
  background: linear-gradient(115deg, transparent 42%, rgba(190, 240, 252, .1) 50%, transparent 58%);
  animation: light-sweep 13s var(--ease-soft) infinite;
  pointer-events: none;
}
.auth-panel__side > * { position: relative; }
.auth-panel__side h3, .auth-panel__side h2 { color: #fbfdff; }
.auth-panel__side p { color: #aac4dd; font-size: .93rem; }

.auth-title { font-size: 1.55rem; letter-spacing: -.02em; margin-bottom: .3rem; }
.auth-sub { color: var(--text-mute); font-size: .92rem; margin-bottom: 1.4rem; }
.auth-switch { margin-top: 1.3rem; font-size: .88rem; color: var(--text-mute); text-align: center; }
.auth-switch a { font-weight: 650; }

/* Alte Auth-Klassen (Bestandsseiten) */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--navy-900); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 70% 20%, rgba(14, 181, 212, .3), transparent 60%); }
.auth-side > * { position: relative; z-index: 1; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .card__body { padding: 1.5rem; }

/* Auswahl-Kärtchen mit Radio */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }

.choice {
  position: relative; display: block;
  padding: 1rem 1.05rem;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .2s var(--ease-soft), box-shadow .2s var(--ease-soft),
              transform .2s var(--ease-out), background .2s;
}
.choice:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.choice input[type="radio"], .choice input[type="checkbox"] {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
/* Auswahl-Punkt oben rechts */
.choice::after {
  content: ""; position: absolute; top: .8rem; right: .8rem;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line-strong);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.choice.is-active,
.choice:has(input:checked) {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand-soft) 55%, var(--surface));
  box-shadow: var(--shadow-glow);
}
.choice.is-active::after,
.choice:has(input:checked)::after {
  border-color: var(--brand);
  background: var(--gloss);
  box-shadow: inset 0 0 0 3px var(--surface);
}
.choice:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ------------------------------------------------------------ Terminbuchung */

.booking { max-width: 760px; margin: 0 auto; }

.booking__progress {
  display: flex; align-items: flex-start;
  margin-bottom: 2rem;
  counter-reset: bstep;
}
.booking__step {
  flex: 1; position: relative;
  text-align: center;
  font-size: .82rem; font-weight: 600; color: var(--text-mute);
  padding-top: 42px;
  counter-increment: bstep;
  transition: color .25s;
}
/* Kreis mit Nummer */
.booking__step::before {
  content: counter(bstep);
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--line-strong);
  color: var(--text-mute); font-weight: 750; font-size: .86rem;
  transition: background .3s var(--ease-soft), border-color .3s, color .3s, box-shadow .3s, transform .3s var(--ease-out);
  z-index: 1;
}
/* Verbindungslinie */
.booking__step + .booking__step::after {
  content: ""; position: absolute; top: 16px; right: 50%;
  width: 100%; height: 2px;
  background: var(--line);
  z-index: 0;
  margin-right: 17px;
}
.booking__step.is-active { color: var(--text); }
.booking__step.is-active::before {
  background: var(--gloss); border-color: transparent; color: var(--brand-ink);
  box-shadow: var(--shadow-glow);
  transform: translateX(-50%) scale(1.1);
}

/* Tagesauswahl */
.daypick {
  display: flex; gap: .55rem;
  overflow-x: auto; padding: .3rem .1rem .6rem;
  scroll-snap-type: x proximity;
}
.daypick__day {
  flex: 0 0 auto; min-width: 74px;
  scroll-snap-align: start;
  text-align: center;
  padding: .65rem .6rem;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: .82rem; font-weight: 600; color: var(--text-soft);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease-out), box-shadow .2s;
}
.daypick__day:hover { border-color: var(--brand); transform: translateY(-2px); text-decoration: none; box-shadow: var(--shadow-sm); }
.daypick__day.is-active {
  background: var(--gloss); border-color: transparent; color: var(--brand-ink);
  box-shadow: var(--shadow-glow);
}
.daypick__day b, .daypick__day strong { display: block; font-size: 1.15rem; letter-spacing: -.02em; }

/* Zeitfenster */
.slot-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: .55rem;
  margin-top: 1rem;
}
.slot {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .55rem .4rem;
  border-radius: 10px;
  font-size: .88rem; font-weight: 650; font-variant-numeric: tabular-nums;
  border: 1.5px solid var(--line);
  background: var(--surface); color: var(--text-soft);
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s, transform .18s var(--ease-out), box-shadow .18s;
}
.slot.is-free:hover { border-color: var(--brand); color: var(--brand-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); text-decoration: none; }
.slot.is-taken {
  text-decoration: line-through;
  opacity: .45; cursor: not-allowed;
  background: var(--grey-bg); border-color: transparent;
}
.slot.is-selected {
  background: var(--gloss); border-color: transparent; color: var(--brand-ink);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

/* =========================================================================
   BEWEGUNG
   ========================================================================= */

/* Scroll-Reveal: versteckt nur, wenn motion.js aktiv ist (html.js-motion).
   Ohne JS oder bei reduzierter Bewegung bleibt alles sofort sichtbar. */

.js-motion .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--reveal-dur) var(--ease-out),
              transform var(--reveal-dur) var(--ease-out);
  will-change: opacity, transform;
}
.js-motion .reveal--up    { transform: translateY(34px); }
.js-motion .reveal--left  { transform: translateX(-36px); }
.js-motion .reveal--right { transform: translateX(36px); }
.js-motion .reveal--zoom  { transform: scale(.92); }

.js-motion .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Versetztes Erscheinen: motion.js vergibt zusätzlich feine Verzögerungen */
.js-motion .stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.js-motion .stagger.is-in > * { opacity: 1; transform: none; }
/* Fallback-Staffelung, falls JS keine Delays setzt */
.js-motion .stagger.is-in > :nth-child(2) { transition-delay: .08s; }
.js-motion .stagger.is-in > :nth-child(3) { transition-delay: .16s; }
.js-motion .stagger.is-in > :nth-child(4) { transition-delay: .24s; }
.js-motion .stagger.is-in > :nth-child(5) { transition-delay: .32s; }
.js-motion .stagger.is-in > :nth-child(6) { transition-delay: .4s; }
.js-motion .stagger.is-in > :nth-child(7) { transition-delay: .48s; }
.js-motion .stagger.is-in > :nth-child(8) { transition-delay: .56s; }

/* Sanftes Schweben */
.float { animation: float-bob 6s ease-in-out infinite; }
@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Glanz-Streifen, der über das Element wandert */
.shine { position: relative; overflow: hidden; }
.shine::after {
  content: ""; position: absolute; top: -20%; bottom: -20%;
  left: -70%; width: 55%;
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(255, 255, 255, .06) 35%,
    rgba(255, 255, 255, .42) 50%,
    rgba(255, 255, 255, .06) 65%,
    transparent 100%);
  transform: skewX(-18deg);
  animation: shine-sweep 5.5s var(--ease-soft) infinite;
  pointer-events: none;
}
@keyframes shine-sweep {
  0%        { left: -70%; }
  45%, 100% { left: 140%; }
}

/* Zählende Kennzahlen */
[data-count] { font-variant-numeric: tabular-nums; }

/* =========================================================================
   RESPONSIV
   ========================================================================= */

@media (max-width: 1200px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%);
    transition: transform .28s var(--ease-out); box-shadow: var(--shadow-lg);
  }
  body.nav-open .sidebar { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(5, 13, 28, .55); z-index: 35; }
  .burger { display: inline-flex; }
  .grid--2, .grid--3, .grid--sidebar { grid-template-columns: minmax(0, 1fr); }
  .form-grid, .form-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .hero__inner { grid-template-columns: 1fr; min-height: 0; padding-top: 3.4rem; padding-bottom: 4rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero__visual { min-height: 250px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .site-footer__inner { grid-template-columns: repeat(2, 1fr); }
  .topbar__search input { width: 160px; }
  .topbar__search input:focus { width: 190px; }

  .cards, .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 1.2rem; }
  .steps__line { display: none; }
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split--reverse .split__body { order: 0; }
  .split__media { min-height: 220px; }
  .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 16px; }
  .stat-band__item:nth-child(odd)::before { display: none; }
  .auth-panel { grid-template-columns: 1fr; max-width: 520px; }
  .auth-panel__side { display: none; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Overlay-Navigation unter 900px */
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }

  .nav-links {
    position: fixed; inset: 0; z-index: 70;
    margin: 0;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: .4rem;
    background:
      radial-gradient(620px 420px at 80% 8%, rgba(124, 234, 252, .16), transparent 60%),
      color-mix(in srgb, var(--bg) 93%, transparent);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .3s var(--ease-soft), transform .3s var(--ease-out), visibility 0s linear .3s;
  }
  body.menu-open .nav-links {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .3s var(--ease-soft), transform .3s var(--ease-out), visibility 0s;
  }
  .nav-links a { font-size: 1.3rem; font-weight: 650; padding: .7rem 1.4rem; color: var(--text); }
  .nav-links a::after { left: 1.4rem; right: 1.4rem; bottom: .45rem; }
  /* Menüpunkte gleiten nacheinander herein */
  body.menu-open .nav-links a { animation: menu-item-in .45s var(--ease-out) both; }
  body.menu-open .nav-links a:nth-child(1) { animation-delay: .05s; }
  body.menu-open .nav-links a:nth-child(2) { animation-delay: .1s; }
  body.menu-open .nav-links a:nth-child(3) { animation-delay: .15s; }
  body.menu-open .nav-links a:nth-child(4) { animation-delay: .2s; }
  body.menu-open .nav-links a:nth-child(5) { animation-delay: .25s; }
  body.menu-open .nav-links a:nth-child(6) { animation-delay: .3s; }
  body.menu-open .nav-links a:nth-child(7) { animation-delay: .35s; }
  body.menu-open { overflow: hidden; }

  .nav-actions .btn:not(.btn--primary) { display: none; }
}
@keyframes menu-item-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .content { padding: 1rem .8rem; }
  .grid--4, .board { grid-template-columns: minmax(0, 1fr); }
  .topbar__search { display: none; }
  .page-head__actions { width: 100%; }
  .site-footer__inner { grid-template-columns: 1fr; }

  .section { padding: 3rem 1rem; }
  .cards, .cards--3, .cards--4, .quotes { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step { text-align: left; display: grid; grid-template-columns: 52px 1fr; gap: .3rem .9rem; }
  .step__num { margin: 0; grid-row: 1 / 3; }
  .stat-band { grid-template-columns: 1fr 1fr; padding: 1.8rem 1.2rem; gap: 1.2rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .booking__step { font-size: .72rem; }
  .hero__scroll { display: none; }
  .cta-band { padding-bottom: 3rem; }
  /* Weniger gleichzeitige Lichter auf kleinen Geräten */
  .lights__orb:nth-child(n+6) { display: none; }
}

/* =========================================================================
   REDUZIERTE BEWEGUNG – alles steht, Inhalte sofort sichtbar
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .js-motion .reveal,
  .stagger > *, .js-motion .stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .float, .illu--float,
  .lights__orb,
  .hero__glow, .hero::before, .hero__visual::after,
  .shine::after, .card-tile::after,
  .split__media, .stat-band,
  .cta-band__inner::before, .auth-panel__side::before,
  .hero__scroll::after, .hero__badge::before,
  .hero__title em, .hero__title strong {
    animation: none !important;
  }
  body { animation: none !important; }
}

/* =========================================================================
   DRUCK
   ========================================================================= */

@media print {
  .sidebar, .topbar, .page-head__actions, .btn, .filterbar, .flash-stack, .tabs,
  .site-header, .site-footer, .nav-bar, .footer, .cta-band, .hero__scroll,
  .hero__glow, .nav-toggle, .lights { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; animation: none; }
  .card { border: 1px solid #ccc; box-shadow: none; break-inside: avoid; }
  .content { padding: 0; max-width: none; }
  a { color: #000; text-decoration: none; }
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; }
  .hero, .section--dark, .stat-band, .auth-panel__side { background: #fff !important; color: #000 !important; box-shadow: none; }
}
