/* BEZ – Basis für alle Seiten (Startseite, Schülerbereich, Verwaltung, Impressum, Datenschutz, 404).
   Aufbau in EINER Datei, damit der Browser vor dem ersten Bild nur eine CSS-Anfrage braucht
   (früher Kette base.css → tokens.css → fonts.css = zwei zusätzliche Netzwerk-Runden auf dem Handy):
     1. Schriften (@font-face, lokal, Google Fonts unter SIL OFL)
     2. Design-Tokens (verbindlich: Farben, Schrift, Abstände, Formen, Schatten, Bewegung)
     3. Reset, Typografie, gemeinsame Bausteine (Buttons, Felder, Karten, Hinweise, Dialoge)
   Seiten-CSS (site.css, schueler.css, admin.css) ergänzt nur, überschreibt nicht. */

/* ===================================================================== 1. Schriften */

/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/Manrope-normal-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/Manrope-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/Manrope-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/Manrope-normal-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;
}

/* Palotschka Ӏ ӏ (Tschetschenisch, ~1 KB statt ~100 KB für ganz Kyrillisch-Erweitert) */
@font-face {
  font-family: 'Noto Serif Display';
  font-style: italic;
  font-weight: 400 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/NotoSerifDisplay-italic-palotschka.woff2') format('woff2');
  unicode-range: U+04C0, U+04CF;
}

/* cyrillic-ext ohne Palotschka (lädt nur, wenn solche Zeichen wirklich vorkommen) */
@font-face {
  font-family: 'Noto Serif Display';
  font-style: italic;
  font-weight: 400 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/NotoSerifDisplay-italic-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-04BF, U+04C1-04CE, U+04D0-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
  font-family: 'Noto Serif Display';
  font-style: italic;
  font-weight: 400 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/NotoSerifDisplay-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext */
@font-face {
  font-family: 'Noto Serif Display';
  font-style: italic;
  font-weight: 400 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/NotoSerifDisplay-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Noto Serif Display';
  font-style: italic;
  font-weight: 400 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/NotoSerifDisplay-italic-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;
}

/* Palotschka Ӏ ӏ (Tschetschenisch, ~1 KB statt ~100 KB für ganz Kyrillisch-Erweitert) */
@font-face {
  font-family: 'Noto Serif Display';
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/NotoSerifDisplay-normal-palotschka.woff2') format('woff2');
  unicode-range: U+04C0, U+04CF;
}

/* cyrillic-ext ohne Palotschka (lädt nur, wenn solche Zeichen wirklich vorkommen) */
@font-face {
  font-family: 'Noto Serif Display';
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/NotoSerifDisplay-normal-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-04BF, U+04C1-04CE, U+04D0-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
  font-family: 'Noto Serif Display';
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/NotoSerifDisplay-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext */
@font-face {
  font-family: 'Noto Serif Display';
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/NotoSerifDisplay-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Noto Serif Display';
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/NotoSerifDisplay-normal-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;
}

/* ===================================================================== 2. Design-Tokens */
/* BEZ – Design-Tokens (verbindlich für alle Seiten)
   Helle Grundfläche, Nachtblau als Träger, alte tschetschenische Ornamentik als Struktur. */
:root {
  /* Flächen (warmes Elfenbein passend zum Creme-Grund des Vereinslogos) */
  --c-papier: #F8F6F1;      /* Seitenhintergrund */
  --c-weiss: #FFFFFF;       /* Karten */
  --c-nebel: #F0EEE8;       /* ruhige Felder, Tabellenkopf */
  --c-himmel: #DCE3F0;      /* helle Blautönung, Hover, Auswahl */

  /* Blau */
  --c-nacht: #0A1A3D;       /* dunkelstes Nachtblau: dunkle Sektionen, große Überschriften */
  --c-tinte: #12285A;       /* Hauptfarbe: Buttons, Kopfzeilen */
  --c-lapis: #2350A8;       /* Links, Fokus, aktive Zustände */
  --c-azur: #6E93D8;        /* Akzent auf dunklem Grund */
  --c-silber: #C9D3E3;      /* feine Linien auf dunklem Grund */

  /* Akzente */
  --c-gold: #9C7B4B;        /* Antik-Gold aus dem Vereinslogo: feine Linien, Ornament-Details, Trenner (nie für Fließtext) */
  --c-gold-dunkel: #6E5530; /* Gold-Text auf hellem Gold */
  --c-logo-schwarz: #181818;/* Schwarz des Vereinslogos */
  --c-granat: #B3362B;      /* ungelesen-Zähler, Löschen, Fehler */
  --c-gruen: #1F7A55;       /* Erfolg */
  --c-gruen-hell: #E3F3EB;
  --c-granat-hell: #F8E6E4;
  --c-gold-hell: #F3ECDF;

  /* Text */
  --c-text: #14213D;
  --c-text-2: #4A5878;
  --c-text-3: #7A87A3;
  --c-text-hell: #F3F6FC;   /* Text auf Nachtblau */
  --c-text-hell-2: #B9C6E0;

  /* Linien */
  --c-linie: rgba(10, 26, 61, .10);
  --c-linie-2: rgba(10, 26, 61, .18);
  --c-linie-hell: rgba(255, 255, 255, .14);

  /* Schrift */
  --f-display: 'Noto Serif Display', 'Iowan Old Style', 'Times New Roman', serif;
  --f-text: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --t-hero: clamp(3rem, 7.4vw, 7.8rem);
  --t-h1: clamp(2.5rem, 5.2vw, 4.75rem);
  --t-h2: clamp(2rem, 3.8vw, 3.5rem);
  --t-h3: clamp(1.35rem, 1.8vw, 1.65rem);
  --t-gross: clamp(1.125rem, 1.4vw, 1.3rem);
  --t-text: 1.0625rem;
  --t-klein: .9rem;
  --t-mini: .78rem;

  /* Abstände */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 7rem; --s-10: 10rem;
  --rand: clamp(1rem, 4vw, 3rem);          /* seitlicher Seitenrand */
  --breite: 1240px;                         /* Inhaltsbreite */
  --breite-schmal: 760px;

  /* Formen */
  --r-s: 8px; --r-m: 14px; --r-l: 22px; --r-xl: 32px;
  --r-bogen: 999px 999px 20px 20px;         /* Rundbogen wie ein Turmfenster (für Video-Fenster) */

  /* Schatten (bläulich, nie grau-schwarz) */
  --sh-1: 0 1px 2px rgba(10, 26, 61, .06), 0 2px 10px rgba(10, 26, 61, .05);
  --sh-2: 0 14px 34px -14px rgba(10, 26, 61, .28);
  --sh-3: 0 40px 90px -30px rgba(10, 26, 61, .45);
  --sh-fokus: 0 0 0 3px rgba(35, 80, 168, .28);

  /* Bewegung */
  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-inout: cubic-bezier(.65, 0, .35, 1);
  --d-schnell: .18s; --d-mittel: .35s; --d-lang: .8s;

  color-scheme: light;
}

/* ===================================================================== 3. Basis */
/* BEZ – Basis: Reset, Typografie, gemeinsame Bausteine (Buttons, Felder, Karten, Hinweise, Dialoge).
   Gilt für Startseite, Schülerbereich und Verwaltung. Seiten-CSS ergänzt nur, überschreibt nicht. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-papier);
  color: var(--c-text);
  font: 500 var(--t-text)/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--c-lapis); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-tinte); }
:focus-visible { outline: 2px solid var(--c-lapis); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--c-tinte); color: #fff; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { margin: 0; color: var(--c-nacht); font-family: var(--f-display); font-weight: 600; line-height: 1.05; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -.005em; }
h4 { font-family: var(--f-text); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 var(--s-4); text-wrap: pretty; }
em.akzent, .akzent { font-style: italic; font-weight: 400; color: var(--c-lapis); }
small { font-size: var(--t-klein); }
.cyr { font-family: var(--f-display); font-style: italic; font-weight: 400; } /* tschetschenische Wörter in Kyrillisch */

.container { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.container-schmal { width: min(100% - 2 * var(--rand), var(--breite-schmal)); margin-inline: auto; }
.nur-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.ueberzeile { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 var(--s-4); font: 700 var(--t-mini)/1 var(--f-text); letter-spacing: .16em; text-transform: uppercase; color: var(--c-lapis); }
.ueberzeile::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.einleitung { font-size: var(--t-gross); line-height: 1.55; color: var(--c-text-2); max-width: 62ch; }

/* Icons (Lucide über icons.js) */
.ico { flex: none; width: 1.25em; height: 1.25em; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--c-tinte); --b-fg: #fff; --b-rand: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.35rem;
  border: 1px solid var(--b-rand); border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg);
  font: 700 .97rem/1.1 var(--f-text); letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none;
  transition: transform var(--d-schnell) var(--e-out), background-color var(--d-schnell), box-shadow var(--d-mittel) var(--e-out), color var(--d-schnell);
}
.btn:hover { color: var(--b-fg); transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled], .btn.laedt { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .ico { width: 1.15em; height: 1.15em; }
.btn-primaer { --b-bg: var(--c-tinte); }
.btn-primaer:hover { --b-bg: var(--c-nacht); }
.btn-zweit { --b-bg: var(--c-weiss); --b-fg: var(--c-tinte); --b-rand: var(--c-linie-2); }
.btn-zweit:hover { --b-bg: var(--c-nebel); --b-fg: var(--c-nacht); }
.btn-hell { --b-bg: #fff; --b-fg: var(--c-nacht); }          /* auf Nachtblau */
.btn-rand-hell { --b-bg: transparent; --b-fg: #fff; --b-rand: rgba(255,255,255,.35); }
.btn-rand-hell:hover { --b-bg: rgba(255,255,255,.08); }
.btn-gefahr { --b-bg: var(--c-weiss); --b-fg: var(--c-granat); --b-rand: rgba(179,54,43,.35); }
.btn-gefahr:hover { --b-bg: var(--c-granat); --b-fg: #fff; }
.btn-text { --b-bg: transparent; --b-fg: var(--c-lapis); min-height: 40px; padding: .5rem .75rem; }
.btn-text:hover { --b-bg: var(--c-nebel); box-shadow: none; transform: none; }
.btn-gross { min-height: 56px; padding: 1rem 1.75rem; font-size: 1.05rem; }
.btn-klein { min-height: 38px; padding: .5rem .95rem; font-size: .88rem; }
.btn-rund { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
.btn-block { width: 100%; }

/* ---------- Formulare ---------- */
.feld { display: grid; gap: .4rem; margin-bottom: var(--s-4); }
.feld > label, .feld-titel { font-weight: 700; font-size: .92rem; color: var(--c-nacht); }
.feld-hilfe { font-size: var(--t-klein); color: var(--c-text-3); margin: 0; }
.feld-fehler { font-size: var(--t-klein); color: var(--c-granat); margin: 0; font-weight: 600; }
.eingabe, input.eingabe, select.eingabe, textarea.eingabe {
  width: 100%; min-height: 50px; padding: .75rem 1rem;
  background: var(--c-weiss); border: 1px solid var(--c-linie-2); border-radius: var(--r-m);
  font-size: 1rem; font-weight: 500; color: var(--c-text);
  transition: border-color var(--d-schnell), box-shadow var(--d-schnell);
}
textarea.eingabe { min-height: 140px; resize: vertical; line-height: 1.55; }
.eingabe::placeholder { color: var(--c-text-3); }
.eingabe:hover { border-color: rgba(10, 26, 61, .32); }
.eingabe:focus { outline: none; border-color: var(--c-lapis); box-shadow: var(--sh-fokus); }
.eingabe[aria-invalid="true"] { border-color: var(--c-granat); }
select.eingabe { appearance: none; padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312285A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; }
.code-eingabe { font: 700 1.5rem/1 ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .22em; text-align: center; text-transform: uppercase; }

/* Auswahl-Kacheln (Kurse, Gruppen) */
.wahl-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.wahl { position: relative; display: block; cursor: pointer; }
.wahl input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.wahl span { display: flex; align-items: center; gap: .55rem; min-height: 50px; padding: .7rem .95rem; border: 1px solid var(--c-linie-2); border-radius: var(--r-m); background: var(--c-weiss); font-weight: 600; transition: all var(--d-schnell); }
.wahl input:checked + span { border-color: var(--c-tinte); background: var(--c-tinte); color: #fff; box-shadow: var(--sh-2); }
.wahl input:focus-visible + span { box-shadow: var(--sh-fokus); }

.schalter { display: inline-flex; align-items: center; gap: .7rem; cursor: pointer; font-weight: 600; }
.schalter input { appearance: none; width: 46px; height: 28px; border-radius: 999px; background: var(--c-himmel); position: relative; cursor: pointer; transition: background var(--d-schnell); flex: none; margin: 0; }
.schalter input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform var(--d-mittel) var(--e-out); }
.schalter input:checked { background: var(--c-tinte); }
.schalter input:checked::after { transform: translateX(18px); }
.schalter input:focus-visible { box-shadow: var(--sh-fokus); }

/* ---------- Karten & Flächen ---------- */
.karte { background: var(--c-weiss); border: 1px solid var(--c-linie); border-radius: var(--r-l); box-shadow: var(--sh-1); padding: clamp(1.1rem, 2.4vw, 1.75rem); }
.karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-4); }
.karte-kopf h2, .karte-kopf h3 { font-size: 1.3rem; }
.flaeche-nacht { background: var(--c-nacht); color: var(--c-text-hell); }
.flaeche-nacht h1, .flaeche-nacht h2, .flaeche-nacht h3 { color: #fff; }
.flaeche-nacht .einleitung { color: var(--c-text-hell-2); }
.flaeche-nacht .ueberzeile { color: var(--c-azur); }

/* ---------- Plaketten ---------- */
.plakette { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .65rem; border-radius: 999px; font: 700 .76rem/1.2 var(--f-text); letter-spacing: .02em; background: var(--c-nebel); color: var(--c-tinte); white-space: nowrap; }
.plakette .ico { width: 1em; height: 1em; }
.plakette-blau { background: var(--c-tinte); color: #fff; }
.plakette-gruen { background: var(--c-gruen-hell); color: var(--c-gruen); }
.plakette-rot { background: var(--c-granat-hell); color: var(--c-granat); }
.plakette-gold { background: var(--c-gold-hell); color: var(--c-gold-dunkel); }
.zaehler { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--c-granat); color: #fff; font: 800 .72rem/1 var(--f-text); }

/* ---------- Hinweise ---------- */
.hinweis { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: var(--r-m); background: var(--c-nebel); color: var(--c-text); font-size: .95rem; }
.hinweis .ico { margin-top: .15rem; color: var(--c-lapis); }
.hinweis-ok { background: var(--c-gruen-hell); } .hinweis-ok .ico { color: var(--c-gruen); }
.hinweis-fehler { background: var(--c-granat-hell); } .hinweis-fehler .ico { color: var(--c-granat); }
.hinweis-gold { background: var(--c-gold-hell); } .hinweis-gold .ico { color: #8A6A22; }

/* Toasts (unten rechts, auf dem Handy unten mittig) */
.toast-bereich { position: fixed; z-index: 1000; right: 1rem; bottom: 1rem; display: grid; gap: .5rem; width: min(380px, calc(100vw - 2rem)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; border-radius: var(--r-m); background: var(--c-nacht); color: #fff; box-shadow: var(--sh-3); font-weight: 600; font-size: .95rem; animation: toast-rein .45s var(--e-out); }
.toast.ok .ico { color: #7FD6AE; } .toast.fehler .ico { color: #FF9C91; }
@keyframes toast-rein { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* Cookie-Hinweis (assets/js/cookie-hinweis.js): nur Information, unten links – Toasts bleiben unten rechts.
   Unter Kopfzeile (100) und Menü (90), damit beide ihn überdecken; Schülerbereich verschiebt ihn über Tab-/Seitenleiste. */
.cookie-hinweis {
  position: fixed; z-index: 85; left: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  width: min(452px, calc(100vw - 2rem));
  display: flex; align-items: flex-start; gap: .85rem;
  padding: 1rem 1.1rem 1.05rem 1rem;
  border: 1px solid var(--c-linie); border-radius: var(--r-m);
  background: var(--c-weiss); color: var(--c-text); box-shadow: var(--sh-3);
  font-size: var(--t-klein); line-height: 1.5;
  opacity: 0; transform: translateY(14px);
  transition: opacity var(--d-mittel) var(--e-out), transform var(--d-mittel) var(--e-out);
}
.cookie-hinweis.sichtbar { opacity: 1; transform: none; }
.cookie-symbol { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c-himmel); color: var(--c-tinte); }
.cookie-symbol .ico { width: 18px; height: 18px; }
.cookie-inhalt { min-width: 0; }
.cookie-titel { margin: 0 0 .15rem; color: var(--c-nacht); font-weight: 700; font-size: .95rem; line-height: 1.35; }
.cookie-text { margin: 0; color: var(--c-text-2); }
.cookie-aktionen { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .75rem; }
.cookie-aktionen .btn { min-height: 44px; padding: .55rem 1.2rem; font-size: .9rem; }
.cookie-mehr { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-lapis); font-weight: 700; font-size: .9rem; text-underline-offset: .2em; }
@media (max-width: 700px) {
  .cookie-hinweis { left: 12px; right: 12px; width: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: .9rem .95rem .95rem .9rem; gap: .75rem; }
  .cookie-aktionen .btn { flex: 1 1 auto; }
}
@media print { .cookie-hinweis { display: none; } }

/* Dialog (natives <dialog>) */
dialog.dialog { width: min(560px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: var(--r-xl); background: var(--c-weiss); color: var(--c-text); box-shadow: var(--sh-3); }
dialog.dialog::backdrop { background: rgba(10, 26, 61, .45); backdrop-filter: blur(4px); }
dialog.dialog[open] { animation: dialog-rein .4s var(--e-out); }
.dialog-kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--c-linie); }
.dialog-kopf h2 { font-size: 1.45rem; }
.dialog-inhalt { padding: 1.5rem; overflow: auto; }
.dialog-fuss { display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; padding: 1rem 1.5rem 1.25rem; border-top: 1px solid var(--c-linie); }
@keyframes dialog-rein { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* Leerzustand */
.leer { display: grid; justify-items: center; gap: .6rem; padding: var(--s-7) var(--s-5); text-align: center; color: var(--c-text-2); }
.leer .ico { width: 40px; height: 40px; color: var(--c-azur); }
.leer strong { color: var(--c-nacht); font-size: 1.05rem; }

/* Lade-Platzhalter */
.skelett { border-radius: var(--r-s); background: linear-gradient(90deg, var(--c-nebel) 25%, #F7F9FD 50%, var(--c-nebel) 75%); background-size: 200% 100%; animation: skelett 1.3s linear infinite; }
@keyframes skelett { to { background-position: -200% 0; } }

/* Tabellen */
.tabelle-wrap { overflow-x: auto; border: 1px solid var(--c-linie); border-radius: var(--r-l); background: var(--c-weiss); }
table.tabelle { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tabelle th { text-align: left; padding: .8rem 1rem; background: var(--c-nebel); color: var(--c-text-2); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.tabelle td { padding: .85rem 1rem; border-top: 1px solid var(--c-linie); vertical-align: middle; }
.tabelle tr:hover td { background: #FAFBFE; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
