/* Gemeinsamer Kopf und Fuß aller Seiten (Tokens, Basis, Header mit Mega-Menü, Mobile-Menü, Footer).
   Quelle: header.html – HTML wird mit Werkzeuge/layout-sync.ps1 in alle Seiten übernommen. */
/* ---------- Design-Tokens (Platzhalter, später aus dem Apple-Design-Review ableiten) ---------- */
:root {
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Satoshi", var(--font-body);

  --bg: #fafbfc;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --nav-pill: rgb(23 23 23 / .05);
  --m-desc: #737373;
  --m-haupt: #0a0a0a;
  --text: #171717;      /* 17.9:1 auf #fff */
  --text-2: #525252;    /*  7.8:1 auf #fff */
  --text-3: #6b6b6b;    /*  5.3:1 auf #fff */
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  --primary: #0a0a0a;
  --primary-hover: #262626;
  --on-primary: #ffffff;
  --btn-ring: #e5e5e5;           /* Hover-Glow um Buttons wie bei dub.co */
  --btn-border-hover: #a3a3a3;
  --btn-muted: #fafafa;
  --focus: #2563eb;
  --brand: #004e7a;     /* Blau aus dem EasyClass-Logo */
  --header-bg: rgba(250, 251, 252, 0.8);
  --shadow-panel: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); /* wie dub.co (Tailwind shadow-md) */

  --violet: #7c3aed;
  --green: #16a34a;
  --orange: #ea580c;
  --blue: #2563eb;
  --pink: #db2777;

  --header-h: 64px;
  --radius-panel: 20px;
  --radius-card: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --feder: linear(0, .168 8%, .436 16%, .693 24.5%, .871 33%, .975 41.5%, 1.021 49%, 1.032 58%, 1.021 74%, 1.008 91%, 1); /* Federkurve, von dub.co gemessen */
}

@media (prefers-color-scheme: dark) and (max-width: 0) {
  :root {
    --bg: #0a0a0a;
    --surface: #141414;
    --surface-2: #1c1c1c;
    --nav-pill: rgb(255 255 255 / .1);
    --m-desc: #a3a3a3;
    --m-haupt: #fafafa;
    --text: #fafafa;
    --text-2: #a3a3a3;   /* 7.6:1 auf #141414 */
    --text-3: #8f8f8f;   /* 5.9:1 auf #141414 */
    --border: #262626;
    --border-strong: #3a3a3a;
    --primary: #fafafa;
    --primary-hover: #e5e5e5;
    --on-primary: #0a0a0a;
    --btn-ring: rgba(255, 255, 255, 0.1);
    --btn-border-hover: #525252;
    --btn-muted: #171717;
    --focus: #60a5fa;
    --brand: #3d9bd1;   /* aufgehellt, damit die Balken auf Schwarz sichtbar bleiben */
    --header-bg: rgba(10, 10, 10, 0.75);
    --violet: #a78bfa;
    --green: #4ade80;
    --orange: #fb923c;
    --blue: #60a5fa;
    --pink: #f472b6;
  }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
svg { display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  transition: background-color .15s cubic-bezier(.4, 0, .2, 1), border-color .15s cubic-bezier(.4, 0, .2, 1), box-shadow .15s cubic-bezier(.4, 0, .2, 1);
}
/* Hover-Glow wie bei dub.co: 4px heller Ring außen um den Button */
.btn:hover { box-shadow: 0 0 0 4px var(--btn-ring), 0 1px 2px rgba(0, 0, 0, .05); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { border-color: var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: var(--btn-border-hover); }
/* VORLAGE Glanz-Button (Stil des blauen Buttons im Cloudflare-Dashboard, ausgelesen 01.11.2026):
   Verlauf von oben heller nach unten Grundfarbe, 1px Lichtkante innen oben, 1px dunklerer Ring, feiner Schatten.
   Farbe über --btn-farbe, Textfarbe über --btn-text. Varianten: .btn-glanz (Cloudflare-Blau), .btn-glanz--whatsapp.
   Ansicht aller Varianten: Design/Vorlagen/button-glanz.html im Projektordner. */
.btn-glanz {
  --btn-farbe: oklch(57.72% .2324 260);   /* Cloudflare-Blau, ≈ #056dff */
  --btn-text: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 1px 12px 2px;
  border: 0; border-radius: 8px;
  font-size: 14px; font-weight: 500; line-height: 21px; letter-spacing: -.01em; white-space: nowrap;
  color: var(--btn-text);
  background: linear-gradient(to bottom, color-mix(in oklch, var(--btn-farbe), white 15%), var(--btn-farbe));
  box-shadow:
    inset 0 1px 0 color-mix(in oklch, var(--btn-farbe), white 30%),
    0 0 0 1px color-mix(in oklch, var(--btn-farbe), black 10%),
    0 1px 2px rgba(0, 0, 0, .05);
  cursor: pointer;
  transition: background .15s;
}
.btn-glanz:hover { background: linear-gradient(to bottom, color-mix(in oklch, var(--btn-farbe), white 30%), var(--btn-farbe)); }
.btn-glanz:focus-visible { outline: 2px solid color-mix(in oklch, var(--btn-farbe), black 10%); outline-offset: 2px; }
.btn-glanz svg { width: 16px; height: 16px; }
/* WhatsApp-Grün (#25D366) mit weißer Schrift */
.btn-glanz--whatsapp { --btn-farbe: #25d366; --btn-text: #fff; }
/* „Anmelden“ im Header ist im Original zurückhaltender: nur leicht grauer Hintergrund, kein Ring */
.header-actions .btn-ghost:hover { border-color: var(--border); background: var(--btn-muted); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .2s, border-color .2s;
}
.site-header.is-scrolled,
.site-header.menu-open,
.site-header.mobile-open {
  background: var(--header-bg);
  border-bottom-color: var(--border);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}
@media (prefers-reduced-transparency: reduce) {
  .site-header.is-scrolled, .site-header.menu-open, .site-header.mobile-open {
    background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none;
  }
}

.header-inner {
  position: relative; /* Bezugspunkt für die Mega-Menüs */
  max-width: 1200px; height: 100%;
  margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}

.logo { display: inline-flex; align-items: center; justify-self: start; color: var(--text); }
.logo-svg { height: 24px; width: auto; }
.logo-svg .lt { fill: currentColor; }
.logo-svg .lb { fill: none; stroke: var(--brand); stroke-width: 75.47px; stroke-linecap: round; animation: logo-draw .666s linear forwards; }
.logo-svg .lb1 { stroke-dasharray: 112 114; stroke-dashoffset: 113; animation-delay: .22s; }
.logo-svg .lb2 { stroke-dasharray: 156 158; stroke-dashoffset: 157; animation-delay: .28s; }
.logo-svg .lb3 { stroke-dasharray: 112 114; stroke-dashoffset: 113; animation-delay: .33s; }
@keyframes logo-draw { to { stroke-dashoffset: 0; } }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }

/* Desktop-Navigation */
.nav-desktop { height: 100%; }
.nav-list { list-style: none; margin: 0; padding: 0; height: 100%; display: flex; align-items: stretch; gap: 2px; }
.nav-item { display: flex; align-items: center; } /* bewusst nicht positioniert: Panel richtet sich an .header-inner aus */
.nav-trigger, .nav-link {
  position: relative; /* liegt über der Fläche .nav-pill */
  display: inline-flex; align-items: center; gap: 4px;
  height: 32px; padding: 0 12px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500; color: color-mix(in srgb, var(--text) 85%, transparent);
  transition: color .15s;
}
.nav-trigger:hover, .nav-link:hover, .nav-item[data-open="true"] .nav-trigger { color: var(--text); }
/* Hover-Fläche wie bei dub.co: eine einzige Fläche gleitet federnd zum offenen Menüpunkt (Kurve von dub.co gemessen) */
.nav-pill {
  position: absolute; top: 0; left: 0;
  height: 32px; border-radius: 8px;
  background: var(--nav-pill);
  opacity: 0; pointer-events: none;
  transition: transform .4s var(--feder), width .4s var(--feder);
}
.nav-pill.no-anim { transition: none; }
.chev { width: 14px; height: 14px; color: var(--text-3); transition: transform .2s var(--ease); }
.nav-item[data-open="true"] .chev { transform: rotate(180deg); }

/* Mega-Menü wie bei dub.co: eine gemeinsame Box (Viewport) bleibt stehen und animiert ihre Höhe,
   die Inhalte gleiten je nach Richtung links/rechts hinein und hinaus. */
/* Box und Inhalts-Ebenen teilen sich dieselbe Höhe (--mega-h), damit der Inhalt beim Wachsen
   der Box mit ihr aufgeht statt unten herauszuragen. */
.mega-viewport, .mega {
  position: absolute; left: 16px; right: 16px; top: calc(100% + 6px);
  height: var(--mega-h, 0);
  border-radius: var(--radius-panel);
  transform-origin: top center;
  visibility: hidden;
  transition: height .25s var(--ease);
}
.header-inner.no-size-anim .mega-viewport, .header-inner.no-size-anim .mega { transition: none; }
.mega-viewport {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-panel);
  pointer-events: none;
}
.mega-viewport[data-state="open"] { visibility: visible; animation: menu-in .2s ease; } /* Dauer und Kurve wie bei dub.co gemessen */
.mega-viewport[data-state="closing"] { visibility: visible; animation: menu-out .2s ease forwards; }

.mega { z-index: 1; overflow: hidden; pointer-events: none; }
.nav-item[data-open="true"] .mega { z-index: 2; visibility: visible; pointer-events: auto; } /* neuer Inhalt liegt über dem ausblendenden */
.mega[data-motion] { visibility: visible; }
.mega[data-motion="open"] { animation: menu-in .2s ease; }
.mega[data-motion="close"] { animation: menu-out .2s ease forwards; }
.mega-content { padding: 13px; } /* 12px + 1px Rahmen des Viewports */
.mega[data-motion="from-end"] .mega-content { animation: enter-from-right .22s var(--ease); }
.mega[data-motion="from-start"] .mega-content { animation: enter-from-left .22s var(--ease); }
.mega[data-motion="to-start"] .mega-content { animation: exit-to-left .22s var(--ease) forwards; }
.mega[data-motion="to-end"] .mega-content { animation: exit-to-right .22s var(--ease) forwards; }

@keyframes menu-in { from { opacity: 0; transform: rotateX(-30deg) scale(.9); } }
@keyframes menu-out { to { opacity: 0; transform: rotateX(-10deg) scale(.95); } }
@keyframes enter-from-right { from { opacity: 0; transform: translateX(200px); } }
@keyframes enter-from-left { from { opacity: 0; transform: translateX(-200px); } }
@keyframes exit-to-left { to { opacity: 0; transform: translateX(-200px); } }
@keyframes exit-to-right { to { opacity: 0; transform: translateX(200px); } }

/* Karten (Mechanik 1) */
.grid-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.mega .card {
  --tone: var(--violet);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background-color: color-mix(in srgb, var(--surface-2) 50%, var(--surface));
  transition: background-color .15s;
}
/* Farbschein wie bei dub.co: von unten in der Kachelfarbe, beim Hover doppelt so stark */
.mega .card--tall::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 100%, var(--tone), transparent);
  opacity: .07;
  transition: opacity .15s;
}
.mega .card--tall:hover::after { opacity: .15; }
.mega .card--wide:hover { background-color: var(--surface-2); }
.mega .card--tall { grid-column: span 2; height: 252px; }
.mega .card--wide { grid-column: span 3; height: 92px; flex-direction: row; align-items: center; gap: 16px; }
.card-text { display: flex; flex-direction: column; min-width: 0; }
.ico {
  width: 24px; height: 24px; flex: none;
  display: grid; place-items: center;
  border-radius: 7px;
  background: color-mix(in srgb, var(--tone) 16%, transparent);
  color: var(--tone);
}
.ico svg { width: 14px; height: 14px; }
.mega .card--tall .ico { margin-bottom: 12px; }
.card-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.card-desc { font-size: 13px; line-height: 1.45; color: var(--text-2); margin-top: 2px; }

.mega .viz {
  margin-top: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
  transition: transform .3s var(--ease);
}
.mega .card:hover .viz { transform: translateY(-4px); }

.mega .rows { display: flex; flex-direction: column; gap: 6px; }
.mega .row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); font-size: 11px; }
.mega .av { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 600; color: #fff; background: var(--c); flex: none; }
.mega .row .nm { flex: 1; min-width: 0; font-weight: 500; display: flex; flex-direction: column; line-height: 1.3; }
.mega .row .nm small { font-weight: 400; color: var(--text-3); font-size: 10px; }
.mega .row .num { font-weight: 600; }
.mega .pill { padding: 1px 7px; border-radius: 99px; font-size: 10px; font-weight: 500; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); white-space: nowrap; }

.mega .chart { width: 100%; height: 96px; color: var(--tone); }
.mega .chart-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); margin-bottom: 4px; }
.mega .chart-meta strong { color: var(--text); font-weight: 600; font-size: 13px; }

.mega .chips { margin-left: auto; display: flex; gap: 6px; flex: none; }
.mega .chip { height: 40px; padding: 0 10px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); transition: transform .3s var(--ease); }
.mega .card:hover .chip:nth-child(odd) { transform: translateY(-3px); }
.mega .card:hover .chip:nth-child(even) { transform: translateY(3px); }
.mega .code {
  margin: 0 0 0 auto; flex: none;
  padding: 10px 12px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text-2);
}
.mega .code .k { color: var(--violet); }
.mega .code .s { color: var(--green); }

/* Spalten (Mechanik 2) */
.grid-cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.col { padding: 4px; }
.col + .col { border-left: 1px solid var(--border); }
.col-label { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 8px 12px; }
.grid-cols--2 { grid-template-columns: repeat(2, 1fr); }
.mega .card--kurs { margin: 0 4px 8px; height: auto; min-height: 252px; }
.mega .card--kurs .kurs-zeilen { margin-top: 12px; }
.kurs-teile-label { padding: 4px 12px 6px; font-size: 12px; color: var(--text-3); }
.mega .kurs-cta { position: absolute; z-index: 1; top: 18px; right: 16px; font-size: 13px; font-weight: 500; color: var(--tone); }
.mega .card--kurs:hover .kurs-cta { text-decoration: underline; text-underline-offset: 3px; }/* Aktuelles Semester beim Intensivkurs (Desktop-Kachel und Handy-Menü) */
.kurs-semester { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 5px; font-family: var(--font-body); font-size: 11px; font-weight: 600; line-height: 18px; letter-spacing: 0; vertical-align: 1px; white-space: nowrap; color: var(--tone, var(--green)); background: color-mix(in srgb, var(--tone, var(--green)) 12%, transparent); }
.kurs-semester--oben { align-self: flex-start; margin: 0 0 12px; font-size: 12px; line-height: 24px; padding: 0 8px; border-radius: 7px; } /* TEST: statt Raketen-Icon in der Desktop-Kachel */
.mega .kurs-zeilen { display: grid; gap: 6px; -webkit-mask-image: none; mask-image: none; }
.kurs-zeile { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; font-weight: 500; }
.kurs-zeile svg { width: 15px; height: 15px; flex: none; color: var(--tone); }
.sdk svg { width: 13px; height: 13px; }
.list-link { display: flex; gap: 12px; align-items: center; padding: 8px; margin: 0 4px; border-radius: 8px; transition: background-color .15s; }
.list-link:hover, .sdk-link:hover { background: color-mix(in srgb, var(--surface-2) 50%, var(--surface)); } /* hell wie #fafafa bei dub.co */
.list-link .card-title { font-family: var(--font-body); font-weight: 500; font-size: 14px; letter-spacing: 0; }
.list-link .card-desc { margin-top: 0; color: var(--text-3); }
/* Icon-Kachel: quadratisch, dünner Rahmen, gefülltes Glyph; deckend, damit sie sich beim Hover nicht mitfärbt */
.tile {
  width: 37px; height: 37px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-2);
}
.tile svg { width: 16px; height: 16px; }
.sdk-link { display: flex; align-items: center; gap: 10px; padding: 4px 8px; margin: 0 4px 2px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: background-color .15s; }
.sdk {
  width: 25px; height: 25px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font: 600 9px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text-2);
}

/* ---------- Mobile ---------- */
.menu-toggle {
  display: none;
  width: 44px; height: 44px; margin-right: -10px;
  border-radius: 10px;
  place-items: center;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface);
  padding: 8px 20px 32px;
}
.site-header.mobile-open { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Untermenüs federn auf wie bei dub.co (ca. 0,3 s), wo der Browser das kann; sonst wie bisher sofort */
@supports (interpolate-size: allow-keywords) {
  .mobile-menu { interpolate-size: allow-keywords; }
  .mobile-menu details::details-content { block-size: 0; overflow: hidden; transition: block-size .3s var(--feder), content-visibility .3s allow-discrete; }
  .mobile-menu details[open]::details-content { block-size: auto; }
}
.mobile-menu details { border-bottom: 1px solid var(--border); }
.mobile-menu summary, .m-link {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 48px; font-size: 16px; font-weight: 600; color: var(--m-haupt); /* wie bei dub.co gemessen */
  list-style: none; cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.mobile-menu summary { border-bottom: 0; animation: m-auseinander .3s linear(0, .03 6%, .225 12%, .47 18%, .69 23%, .86 29%, .96 34%, 1.02 40%, 1.045 51%, 1.025 62%, 1.006 73%, 1); }
/* Beim Öffnen rücken die Menüpunkte auseinander: Zeilen wachsen federnd auf volle Höhe (Kurve von dub.co gemessen) */
@keyframes m-auseinander { from { min-height: 24px; } }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary .chev { width: 18px; height: 18px; }
.mobile-menu details[open] summary .chev { transform: rotate(180deg); }
/* Unterpunkte: Maße, Schrift und Farben wie im Handy-Menü von dub.co gemessen */
.m-sub { list-style: none; margin: 0; padding: 16px 0; display: grid; gap: 16px; }
.m-sub a { display: flex; gap: 12px; align-items: center; }
.m-sub .card-text { flex: 1; }
.m-sub .card-title { font-family: var(--font-body); font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: 0; color: var(--text); }
.m-sub .card-desc { margin: 0; font-size: 14px; line-height: 20px; color: var(--m-desc); }
/* TEST: Intensivkurs im grünen Container wie die Desktop-Kachel */
.m-sub a:has(.kurs-semester) { position: relative; overflow: hidden; padding: 12px; border: 1px solid color-mix(in srgb, var(--green) 25%, var(--border)); border-radius: var(--radius-card); background-color: color-mix(in srgb, var(--surface-2) 50%, var(--surface)); }
.m-sub a:has(.kurs-semester)::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 100%, var(--green), transparent); opacity: .15; }
.m-sub .col-label { padding: 8px 0 0; }
.m-sub .col-label:first-child { padding-top: 0; }
/* Icon-Kachel wie bei dub.co: 40px mit feinem Verlauf, Icon 20px ohne eigene Fläche; Zeilen ohne Beschreibung 32px mit 16px-Icon */
.m-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 8px; background: linear-gradient(to top, var(--surface-2), transparent); }
.m-ico > span { display: grid; place-items: center; color: var(--m-zeichen); }
.m-ico svg { width: 20px; height: 20px; }
.m-sub a:not(:has(.card-desc)) .m-ico { width: 32px; height: 32px; }
.m-sub a:not(:has(.card-desc)) .m-ico svg { width: 16px; height: 16px; }
.m-ico--violet { --m-zeichen: #7c3aed; }
.m-ico--green { --m-zeichen: #16a34a; }
.m-ico--orange { --m-zeichen: #ea580c; }
.m-ico--blue { --m-zeichen: #2563eb; }
.m-ico--pink { --m-zeichen: #db2777; }
.m-ico--neutral { --m-zeichen: #404040; } /* wie bei dub.co */.m-actions { display: grid; gap: 10px; margin-top: 24px; }
.m-actions .btn { height: 48px; font-size: 16px; }

@media (max-width: 1023px) {
  .nav-desktop, .mega-viewport, .header-actions .btn-primary { display: none; }
  /* Wie auf easyclass.at: Menü links, Logo mittig (gleiche Höhe wie dort), Anmelden rechts */
  .header-inner { padding: 0 16px; }
  .header-actions { display: contents; }
  .menu-toggle { display: grid; grid-column: 1; grid-row: 1; justify-self: start; margin: 0 0 0 -10px; }
  .logo { grid-column: 2; grid-row: 1; justify-self: center; }
  .header-actions .btn-ghost { grid-column: 3; grid-row: 1; justify-self: end; }
  .logo-svg { height: 20px; }
}
@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}

/* Bewegung reduzieren: Das Menü (Kippen beim Öffnen/Schließen, seitliches Gleiten beim Wechsel)
   bleibt bewusst aktiv (Wunsch, wie bei dub.co). */
@media (prefers-reduced-motion: reduce) {
  .mega .card:hover .viz, .mega .card:hover .chip:nth-child(n) { transform: none; }
  .logo-svg .lb { animation: none; stroke-dashoffset: 0; }
}


/* ---------- Footer (Aufbau wie dub.co) ---------- */
.site-footer { border-top: 1px solid var(--border); background: #f5f5f7; }
@media (prefers-color-scheme: dark) and (max-width: 0) { .site-footer { background: var(--surface); } }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 64px 24px 32px; }
/* Logo-Spalte links schmal halten, damit die Linknamen der 4 Spalten nicht umbrechen */
.footer-top { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.footer-brand .logo-svg { height: 26px; }
.footer-brand .logo-svg .lb { animation: none; stroke-dashoffset: 0; }
.footer-brand p { margin: 16px 0 0; max-width: 280px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.footer-cols { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 24px; }
.footer-col h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--text); }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 28px; font-size: 14px; color: var(--text-2); transition: color .2s ease-in, transform .2s ease-in; }
.footer-col a:hover { color: var(--text); transform: translateX(3px); } /* leichtes Einrücken wie auf easyclass.at */
.footer-col ul + h3, .footer-col p + h3 { margin-top: 32px; } /* Untergruppen wie „Downloads“, „Rating“ */
.tag-neu { margin-left: 6px; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--orange); }
.footer-badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); font-size: 13px; font-weight: 500; color: var(--text);
}
.rating .stars { color: #f5b301; letter-spacing: 1px; }
/* Nachhaltigkeit: dunkleres Grün, ohne Rahmen und Hintergrund, mit Blatt */
.eco { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #15803d; }
.eco svg { width: 16px; height: 16px; flex: none; }
@media (prefers-color-scheme: dark) and (max-width: 0) { .eco { color: #4ade80; } }
/* Zahlungs-Icons wie auf easyclass.at: 3 pro Reihe, dünner Rahmen */
.footer-col .pay { display: grid; grid-template-columns: repeat(3, 58px); gap: 8px; }
.pay li { display: block; }
.pay img { display: block; width: 58px; height: 36px; border: 1px solid var(--border); border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.footer-contact { margin: 48px 0 0; padding-bottom: 16px; font-size: 13px; color: var(--text-3); }
.footer-contact a { color: #0051a1; }
.footer-contact a:hover { text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); }
.country { display: inline-flex; align-items: center; gap: 6px; }
/* Österreich-Flagge rot-weiß-rot, 20 × 14 px wie im Original */
.flag-at { width: 20px; height: 14px; background: linear-gradient(#ed2939 0 33.33%, #fff 33.33% 66.67%, #ed2939 66.67%); }
@media (prefers-color-scheme: dark) and (max-width: 0) { .footer-contact a { color: #60a5fa; } }
@media (max-width: 1023px) {
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 639px) {
  .footer-inner { padding: 48px 16px 24px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  /* Footer-Links mobil enger (28px wie am Desktop statt 44px), sonst wirken die Listen zu luftig */
  .footer-col a, .footer-bottom a { min-height: 28px; }
  .footer-col h3 { margin-bottom: 4px; }
  .footer-col ul { gap: 0; }
}
/* schmale Handys: eine Spalte, damit lange Linknamen und die drei Zahlungs-Icons Platz haben */
@media (max-width: 479px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Einwilligung (Cookie-Banner, assets/consent.js) – Karte unten, Akzeptieren und Ablehnen gleichwertig ---------- */
.consent { position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: center; pointer-events: none; }
.consent[hidden] { display: none; }
.consent-box { pointer-events: auto; width: 100%; max-width: 640px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: 0 12px 40px rgba(0, 0, 0, .14); }
.consent-box h2 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.consent-box p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.consent-box p + p { margin-top: 8px; }
.consent-box p strong { color: var(--text); font-weight: 600; }
.consent-optionen { display: grid; gap: 4px; margin: 14px 0 0; padding: 4px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.consent-optionen[hidden] { display: none; }
.consent-optionen label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; font-size: 14px; }
.consent-optionen input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--primary); }
.consent-optionen strong { display: block; font-weight: 600; }
.consent-optionen small { display: block; color: var(--text-3); font-size: 13px; }
.consent-aktionen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.consent-aktionen .btn[hidden] { display: none; }
.consent-links { margin-top: 12px !important; font-size: 13px !important; }
.consent-links a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 479px) {
  .consent { left: 8px; right: 8px; bottom: 8px; }
  .consent-box { padding: 16px; }
  .consent-aktionen .btn { flex: 1 1 calc(50% - 4px); }
}
@media print { .consent { display: none; } }

/* ---------- Vimeo auf öffentlichen Seiten: Vorschaubild, Player erst nach Klick (assets/consent.js) ---------- */
.vimeo-klick { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-card); overflow: hidden; background: #0b0f14; border: 1px solid var(--border); }
.vimeo-klick iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vimeo-klick-start { position: absolute; inset: 0; width: 100%; display: grid; place-items: center; color: #f7f8f8; text-align: left;
  background: radial-gradient(80% 120% at 20% 0%, #1b3a52 0%, #0f1a24 55%, #0b0f14 100%); }
.vimeo-klick-play { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #ffffff1a; box-shadow: inset 0 0 0 1px #ffffff33; transition: transform .2s, background-color .2s; }
.vimeo-klick-play svg { width: 18px; height: 18px; margin-left: 3px; fill: currentColor; }
.vimeo-klick-start:hover .vimeo-klick-play { transform: scale(1.06); background: #ffffff26; }
.vimeo-klick-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vimeo-klick-bild ~ * { z-index: 1; }
.vimeo-klick-bild ~ .vimeo-klick-play { position: relative; }
.vimeo-klick:has(.vimeo-klick-bild) .vimeo-klick-start::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0b0f1499 0%, #0b0f1400 30%, #0b0f1400 62%, #0b0f14cc 100%); }
.vimeo-klick:has(.vimeo-klick-bild) .vimeo-klick-play { background: #0b0f14c4; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.vimeo-klick-titel { position: absolute; left: 16px; top: 14px; right: 16px; font-size: 14px; font-weight: 600; }
/* Mit Vorschaubild steht der Titel schon im Bild – kein zusätzlicher Text darüber (Name bleibt für Screenreader im aria-label) */
.vimeo-klick:has(.vimeo-klick-bild) .vimeo-klick-titel { display: none; }
