/* =====================================================================
   AEVO-Training.de – Globales Stylesheet
   Designsystem: Navy + Limette, heller freundlicher Look
   ===================================================================== */

:root {
  /* Farben */
  --navy:         #0d2240;   /* Haupttext, dunkle Flächen */
  --navy-deep:    #0a1b33;   /* Hero-Verlauf rechts, dunkle Boxen */
  --lime:         #9acd1f;   /* Akzent: Buttons, Highlights, Haken */
  --lime-dark:    #7fae16;   /* Hover auf Limette */
  --lime-text:    #5e7d12;   /* Grün für Text auf hellem Grund (WCAG AA) */
  --blue-icon:    #2f6df0;   /* Icon-Blau, Links */
  --blue-icon-bg: #e8f0ff;   /* hellblaue Icon-Kacheln */

  --text:         #0d2240;   /* Fließtext dunkel */
  --text-soft:    #4a5870;   /* gedämpfter Text auf Weiß */
  --text-muted:   #6b7890;   /* noch leiser, Captions */

  --bg:           #ffffff;   /* Seitenhintergrund */
  --bg-soft:      #f3f6fb;   /* helle Abschnitte */
  --bg-card:      #ffffff;   /* Karten */
  --border:       #e2e8f2;   /* Kartenränder, Trennlinien */

  /* auf Navy lesbar gehalten (Kontrast geprüft) */
  --on-navy:      #eef3fa;
  --on-navy-soft: #aebfd6;

  /* Maße */
  --max-w:   1240px;
  --pad-x:   clamp(1.1rem, 5vw, 3rem);
  --nav-h:   78px;
  --r:       14px;
  --r-lg:    20px;
  --r-pill:  999px;

  --shadow:    0 8px 30px rgba(13,34,64,.07);
  --shadow-lg: 0 18px 50px rgba(13,34,64,.12);

  --f-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --f-body:    'Inter', system-ui, sans-serif;

  --t: .22s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-icon); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--navy);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.01em;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-soft { background: var(--bg-soft); }

/* Eyebrow-Label über Überschriften */
.eyebrow {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lime-text);
  margin-bottom: .7rem;
}

.lead { font-size: 1.12rem; color: var(--text-soft); max-width: 60ch; }

/* ---------- Skip-Link (Barrierefreiheit) ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: .7rem 1.2rem;
  border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; }

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--f-display); font-weight: 700; font-size: .95rem;
  padding: .85rem 1.5rem; border-radius: var(--r-pill);
  border: 2px solid transparent; cursor: pointer; transition: var(--t);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--lime); color: var(--navy); }
.btn-primary:hover { background: var(--lime-dark); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.02rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* =====================================================================
   Header / Navigation
   ===================================================================== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { height: var(--nav-h); display: flex; align-items: center; }
.nav-inner {
  width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo:hover { text-decoration: none; }
.nav-logo img { height: 46px; width: auto; display: block; }
.nav-menu { display: flex; align-items: center; gap: 1.6rem; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-links a {
  font-family: var(--f-display); font-weight: 600; font-size: .96rem;
  color: var(--navy); text-decoration: none; padding: .3rem 0; position: relative;
}
.nav-links a:hover { color: var(--blue-icon); }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 3px; background: var(--lime); border-radius: 3px;
}
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--t); }

@media (max-width: 1000px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: 1rem var(--pad-x) 2rem; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg); transform: translateY(-130%); transition: transform .3s ease;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links a { display: block; padding: .9rem .2rem; }
  .nav-links a.active::after { display: none; }
  .nav-cta-wrap { margin-top: 1rem; }
  .nav-cta-wrap .btn { width: 100%; justify-content: center; }
}

/* =====================================================================
   Hero (Startseite)
   ===================================================================== */
.hero { position: relative; background: var(--bg-soft); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: 2rem; min-height: 540px;
}
.hero-text { padding: clamp(2.5rem, 5vw, 4.5rem) 0; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); margin-bottom: 1.2rem; }
.hero h1 .accent { color: var(--lime-text); }
.hero-sub { font-size: 1.18rem; color: var(--text-soft); max-width: 46ch; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem; }
.hero-checks span {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; color: var(--navy);
}
.check-dot {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(154,205,31,.18);
  display: inline-grid; place-items: center; flex-shrink: 0;
}
.check-dot svg { width: 13px; height: 13px; stroke: var(--lime-dark); }

.hero-visual { position: relative; align-self: stretch; }
.hero-visual::before {
  content: ""; position: absolute; top: 0; right: -10vw; bottom: 0; width: 80%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: 0 0 0 180px; z-index: 0;
}
.hero-img-wrap { position: relative; z-index: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.hero-img-wrap img { max-height: 540px; object-fit: contain; }
.hero-badge {
  position: absolute; z-index: 3; top: 32%; right: 4%;
  width: 132px; height: 132px; border-radius: 50%;
  background: var(--navy-deep); border: 2px solid rgba(154,205,31,.4);
  display: grid; place-items: center; text-align: center; color: var(--on-navy);
}
.hero-badge .big { font-family: var(--f-display); font-weight: 800; font-size: 2.4rem; color: var(--lime); line-height: 1; }
.hero-badge .small { font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy-soft); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { display: none; }
  .hero-text { padding: 2.5rem 0 3rem; }
}

/* =====================================================================
   Feature-Karten (4er Grid)
   ===================================================================== */
.cards-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
  margin-top: -3.5rem; position: relative; z-index: 5;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.8rem 1.5rem; box-shadow: var(--shadow);
  transition: var(--t); display: flex; flex-direction: column;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--blue-icon-bg);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.feature-icon svg { width: 26px; height: 26px; stroke: var(--blue-icon); fill: none; }
.feature-card h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.feature-card p { font-size: .96rem; color: var(--text-soft); margin-bottom: 1.1rem; flex-grow: 1; }
.feature-card .card-link {
  font-family: var(--f-display); font-weight: 700; font-size: .92rem;
  color: var(--blue-icon); display: inline-flex; align-items: center; gap: .4rem;
}

@media (max-width: 1000px) { .cards-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cards-row { grid-template-columns: 1fr; margin-top: -2rem; } }

/* =====================================================================
   Allgemeine Section-Köpfe
   ===================================================================== */
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 3rem; }
.section-head .eyebrow { text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.section-head p { color: var(--text-soft); margin-top: .9rem; }

/* ---------- Zwei-Spalten Info (Warum-Block) ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center;
  background: var(--bg-soft); border-radius: var(--r-lg); padding: clamp(1.8rem, 4vw, 3rem);
}
.split h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 1.3rem; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: .85rem; }
.check-list li { display: flex; align-items: flex-start; gap: .7rem; font-weight: 500; }
.check-list li svg { width: 20px; height: 20px; stroke: var(--lime-dark); flex-shrink: 0; margin-top: 3px; }
.stat-box {
  background: var(--navy); color: var(--on-navy); border-radius: var(--r-lg);
  padding: 2rem; align-self: stretch; display: flex; flex-direction: column; justify-content: center;
}
.stat-box .num { font-family: var(--f-display); font-weight: 800; font-size: 3rem; color: var(--lime); line-height: 1; }
.stat-box .num small { font-size: 1.4rem; }
.stat-box p { margin-top: .6rem; color: var(--on-navy); }
.stat-box hr { border: 0; border-top: 1px solid rgba(255,255,255,.18); margin: 1.3rem 0; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* =====================================================================
   Verzeichnis: Bundesländer- & Städte-Grid
   ===================================================================== */
.dir-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem;
}
.dir-card {
  position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.3rem 1.4rem; transition: var(--t);
  display: flex; flex-direction: column; gap: .35rem;
}
.dir-card:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-2px); }
.dir-card h3 { font-size: 1.12rem; }
.dir-card .dir-link { position: absolute; inset: 0; text-indent: -9999px; }
/* Zähler-Badge – trägt echte Info: wie viele Anbieter */
.count-badge {
  display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start;
  font-family: var(--f-display); font-weight: 700; font-size: .8rem;
  padding: .25rem .65rem; border-radius: var(--r-pill);
}
.count-badge.has { background: rgba(154,205,31,.16); color: var(--navy); }
.count-badge.empty { background: #fff3e0; color: #a05a00; }
.dir-card .meta { font-size: .9rem; color: var(--text-muted); }

/* =====================================================================
   Anbieter-Liste (Stadtseite)
   ===================================================================== */
.provider-list { display: flex; flex-direction: column; gap: 1.2rem; }
.provider-card {
  display: grid; grid-template-columns: 1fr auto; gap: 1.2rem; align-items: center;
  background: #fff; border: 1px solid var(--border); border-left: 5px solid var(--lime);
  border-radius: var(--r); padding: 1.4rem 1.6rem; box-shadow: var(--shadow);
}
.provider-card.premium { border-left-color: var(--blue-icon); background: linear-gradient(180deg,#fff, #f7faff); }
.provider-tag {
  font-family: var(--f-display); font-weight: 700; font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue-icon); margin-bottom: .3rem;
}
.provider-card h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.provider-card .p-meta { font-size: .92rem; color: var(--text-soft); margin-bottom: .6rem; }
.provider-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.pill {
  font-size: .78rem; font-weight: 600; padding: .25rem .65rem; border-radius: var(--r-pill);
  background: var(--bg-soft); color: var(--text-soft); border: 1px solid var(--border);
}
@media (max-width: 640px) { .provider-card { grid-template-columns: 1fr; } }

/* ---------- Leerer Zustand: "kein Anbieter, trag dich ein" ---------- */
.empty-state {
  text-align: center; background: var(--bg-soft); border: 2px dashed var(--border);
  border-radius: var(--r-lg); padding: clamp(2rem, 5vw, 3.5rem);
}
.empty-state .ic {
  width: 64px; height: 64px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; margin: 0 auto 1.2rem; box-shadow: var(--shadow);
}
.empty-state .ic svg { width: 30px; height: 30px; stroke: var(--lime-dark); fill: none; }
.empty-state h3 { font-size: 1.5rem; margin-bottom: .7rem; }
.empty-state p { color: var(--text-soft); max-width: 52ch; margin: 0 auto 1.6rem; }

/* =====================================================================
   Profil-Seite eines Anbieters
   ===================================================================== */
.profile-hero { background: var(--navy); color: var(--on-navy); padding: 2.5rem 0; }
.profile-hero .crumb { font-size: .85rem; color: var(--on-navy-soft); margin-bottom: 1rem; }
.profile-hero .crumb a { color: var(--on-navy-soft); }
.profile-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.profile-hero .p-loc { color: var(--on-navy-soft); margin-top: .5rem; font-size: 1.05rem; }
.profile-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }
.profile-main h2 { font-size: 1.45rem; margin: 2rem 0 .9rem; }
.profile-main h2:first-child { margin-top: 0; }
.profile-main p { margin-bottom: 1rem; color: var(--text); }
.kurs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: .9rem; }
.kurs-item { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r); padding: 1rem 1.1rem; }
.kurs-item b { display: block; color: var(--navy); font-family: var(--f-display); }
.kurs-item span { font-size: .88rem; color: var(--text-muted); }
.profile-aside { position: sticky; top: calc(var(--nav-h) + 1.5rem); display: flex; flex-direction: column; gap: 1.2rem; }
.aside-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow); }
.aside-card h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.contact-row { display: flex; align-items: center; gap: .65rem; margin-bottom: .8rem; font-size: .95rem; }
.contact-row svg { width: 18px; height: 18px; stroke: var(--blue-icon); flex-shrink: 0; }
@media (max-width: 860px) { .profile-layout { grid-template-columns: 1fr; } .profile-aside { position: static; } }

/* =====================================================================
   Formular (Eintrag-Seite)
   ===================================================================== */
.form-wrap { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.form-row { margin-bottom: 1.3rem; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
label { display: block; font-family: var(--f-display); font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: .4rem; }
input, textarea, select {
  width: 100%; font-family: var(--f-body); font-size: 1rem; color: var(--text);
  padding: .8rem 1rem; border: 1.5px solid var(--border); border-radius: var(--r);
  background: #fff; transition: var(--t);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue-icon); box-shadow: 0 0 0 3px rgba(47,109,240,.12); }
textarea { resize: vertical; min-height: 130px; }
.check-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: .6rem; }
.check-opt { display: flex; align-items: center; gap: .55rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r); padding: .7rem .9rem; cursor: pointer; }
.check-opt input { width: auto; }
.form-hint { font-size: .85rem; color: var(--text-muted); margin-top: .4rem; }
@media (max-width: 560px) { .form-row.two { grid-template-columns: 1fr; } }

/* =====================================================================
   CTA-Band
   ===================================================================== */
.cta-band { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: #fff; border-radius: var(--r-lg); padding: clamp(2.2rem, 5vw, 3.5rem); text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin-bottom: .8rem; }
.cta-band p { color: var(--on-navy); max-width: 50ch; margin: 0 auto 1.8rem; }
.cta-band .hero-ctas { justify-content: center; }

/* =====================================================================
   Footer
   ===================================================================== */
.footer { background: var(--navy-deep); color: var(--on-navy-soft); padding: 3.5rem 0 1.8rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4, .footer .foot-head { color: #fff; font-size: .95rem; font-weight: 700; letter-spacing: .04em; margin: 0 0 1rem; font-family: var(--f-display); }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer a { color: var(--on-navy-soft); font-size: .92rem; }
.footer a:hover { color: #fff; }
.footer-logo { display: inline-block; background: #fff; padding: 12px 16px; border-radius: 12px; }
.footer-logo img { height: 44px; width: auto; display: block; }
.footer-desc { margin-top: 1rem; font-size: .92rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }
.footer-bottom a { text-decoration: underline; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Breadcrumb (Unterseiten)
   ===================================================================== */
.crumb-bar { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: .8rem 0; }
.crumb-bar .container { font-size: .88rem; color: var(--text-muted); }
.crumb-bar a { color: var(--text-soft); }

/* ---------- Prosa-Bereiche (SEO-Text auf Unterseiten) ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.2rem 0 .9rem; }
.prose h3 { font-size: 1.2rem; margin: 1.6rem 0 .6rem; }
.prose p { margin-bottom: 1.1rem; color: var(--text); }
.prose ul { margin: 0 0 1.1rem 1.2rem; }
.prose li { margin-bottom: .4rem; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 1.1rem 0; font-family: var(--f-display); font-weight: 700; font-size: 1.08rem; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-q .pm { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--lime-dark); border-radius: 2px; }
.faq-q .pm::before { top: 10px; left: 0; right: 0; height: 2px; }
.faq-q .pm::after { left: 10px; top: 0; bottom: 0; width: 2px; transition: var(--t); }
.faq-q[aria-expanded="true"] .pm::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding-bottom: 1.1rem; color: var(--text-soft); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   Test-App
   ===================================================================== */
.test-shell { max-width: 760px; margin: 0 auto; }

/* Auswahl-Kacheln */
.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1rem; }
.mode-card {
  text-align: left; background: #fff; border: 1.5px solid var(--border); border-radius: var(--r-lg);
  padding: 1.5rem; cursor: pointer; transition: var(--t); font-family: inherit; width: 100%;
}
.mode-card:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-2px); }
.mode-card .mc-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-icon-bg); display: grid; place-items: center; margin-bottom: 1rem; }
.mode-card .mc-ic svg { width: 24px; height: 24px; stroke: var(--blue-icon); fill: none; }
.mode-card h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.mode-card p { font-size: .9rem; color: var(--text-soft); margin: 0; }
.mode-card .mc-num { font-family: var(--f-display); font-weight: 800; font-size: 2rem; color: var(--navy); line-height: 1; margin-bottom: .5rem; }

.hf-pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.hf-pill {
  font-family: var(--f-display); font-weight: 600; font-size: .9rem; padding: .6rem 1.1rem;
  border-radius: var(--r-pill); border: 1.5px solid var(--border); background: #fff; cursor: pointer; transition: var(--t);
}
.hf-pill:hover { border-color: var(--navy); }
.hf-pill.sel { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Quiz-Fortschritt */
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.quiz-count { font-family: var(--f-display); font-weight: 700; color: var(--text-soft); font-size: .95rem; }
.quiz-bar { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; flex-grow: 1; max-width: 300px; }
.quiz-bar i { display: block; height: 100%; background: var(--lime); transition: width .3s ease; }

.quiz-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(1.5rem,4vw,2.5rem); box-shadow: var(--shadow); }
.quiz-hf-tag { font-family: var(--f-display); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-icon); margin-bottom: .7rem; }
.quiz-frage { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.2rem,2.6vw,1.55rem); color: var(--navy); margin-bottom: 1.5rem; line-height: 1.25; }

.answers { display: flex; flex-direction: column; gap: .7rem; }
.answer {
  text-align: left; background: #fff; border: 1.5px solid var(--border); border-radius: var(--r);
  padding: 1rem 1.2rem; cursor: pointer; font-family: inherit; font-size: 1rem; color: var(--text);
  transition: var(--t); display: flex; align-items: center; gap: .8rem; width: 100%;
}
.answer:hover:not(:disabled) { border-color: var(--navy); background: var(--bg-soft); }
.answer .ltr { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: .85rem; flex-shrink: 0; transition: var(--t); }
.answer.correct { border-color: var(--lime-dark); background: rgba(154,205,31,.12); }
.answer.correct .ltr { background: var(--lime); color: var(--navy); }
.answer.wrong { border-color: #e05656; background: rgba(224,86,86,.08); }
.answer.wrong .ltr { background: #e05656; color: #fff; }
.answer:disabled { cursor: default; }

.feedback { margin-top: 1.3rem; padding: 1.1rem 1.3rem; border-radius: var(--r); background: var(--bg-soft); border-left: 4px solid var(--blue-icon); font-size: .95rem; color: var(--text-soft); display: none; }
.feedback.show { display: block; }
.feedback b { color: var(--navy); font-family: var(--f-display); }
.quiz-actions { margin-top: 1.5rem; display: flex; justify-content: flex-end; }

/* Ergebnis */
.result-score { text-align: center; margin-bottom: 2.5rem; }
.result-ring { width: 160px; height: 160px; margin: 0 auto 1.2rem; position: relative; }
.result-ring svg { transform: rotate(-90deg); }
.result-ring .pct { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 2.4rem; color: var(--navy); }
.result-verdict { font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; margin-bottom: .4rem; }
.result-verdict.pass { color: var(--lime-text); }
.result-verdict.fail { color: #d35050; }
.hf-result { display: flex; flex-direction: column; gap: .9rem; margin: 2rem 0; }
.hf-row { display: grid; grid-template-columns: 1fr auto; gap: .5rem .9rem; align-items: center; }
.hf-row .hf-name { font-weight: 600; font-size: .92rem; }
.hf-row .hf-val { font-family: var(--f-display); font-weight: 700; color: var(--navy); font-size: .92rem; }
.hf-row .hf-track { grid-column: 1 / -1; height: 7px; background: var(--border); border-radius: 99px; overflow: hidden; }
.hf-row .hf-track i { display: block; height: 100%; border-radius: 99px; }

/* =====================================================================
   Lernkarten
   ===================================================================== */
.lk-shell { max-width: 720px; margin: 0 auto; }

/* Kategorie-Auswahl */
.lk-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap: 1rem; }
.lk-cat {
  text-align: left; background: #fff; border: 1.5px solid var(--border); border-radius: var(--r-lg);
  padding: 1.4rem; cursor: pointer; transition: var(--t); font-family: inherit; width: 100%;
  display: flex; align-items: center; gap: 1rem;
}
.lk-cat:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-2px); }
.lk-cat .lk-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-icon-bg); display: grid; place-items: center; flex-shrink: 0; }
.lk-cat .lk-ic svg { width: 22px; height: 22px; stroke: var(--blue-icon); fill: none; }
.lk-cat h3 { font-size: 1.08rem; margin-bottom: .15rem; }
.lk-cat p { font-size: .85rem; color: var(--text-soft); margin: 0; }
.lk-cat .lk-badge { margin-left: auto; font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; color: var(--navy); }

/* Karten-Lernansicht */
.lk-progress { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.lk-progress .lk-num { font-family: var(--f-display); font-weight: 700; color: var(--text-soft); font-size: .95rem; }
.lk-progress .lk-bar { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; flex-grow: 1; max-width: 320px; }
.lk-progress .lk-bar i { display: block; height: 100%; background: var(--lime); transition: width .3s ease; }

/* 3D Flip-Card */
.flip { perspective: 1600px; margin-bottom: 1.5rem; }
.flip-inner {
  position: relative; width: 100%; min-height: 300px; transition: transform .5s; transform-style: preserve-3d; cursor: pointer;
}
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--r-lg); padding: 2.2rem; display: flex; flex-direction: column; justify-content: center;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.flip-front { background: #fff; }
.flip-back { background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: var(--on-navy); transform: rotateY(180deg); }
.flip-tag { font-family: var(--f-display); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.flip-front .flip-tag { color: var(--blue-icon); }
.flip-back .flip-tag { color: var(--lime); }
.flip-q { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.25rem,2.8vw,1.6rem); color: var(--navy); line-height: 1.3; }
.flip-a { font-size: 1.05rem; line-height: 1.6; color: var(--on-navy); }
.flip-back .flip-a { color: #eef3fa; }
.flip-hint { position: absolute; bottom: 1.1rem; left: 0; right: 0; text-align: center; font-size: .8rem; color: var(--text-muted); }
.flip-back .flip-hint { color: var(--on-navy-soft); }

/* Favoriten-Stern auf der Karte */
.lk-fav { position: absolute; top: 1.1rem; right: 1.1rem; background: none; border: 0; cursor: pointer; padding: 4px; z-index: 3; }
.lk-fav svg { width: 26px; height: 26px; fill: none; stroke: var(--text-muted); stroke-width: 2; transition: var(--t); }
.lk-fav.on svg { fill: var(--lime); stroke: var(--lime-dark); }
.flip-back .lk-fav svg { stroke: var(--on-navy-soft); }
.flip-back .lk-fav.on svg { fill: var(--lime); stroke: var(--lime); }

/* Bewertungs-Buttons */
.lk-rate { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lk-rate button { font-family: var(--f-display); font-weight: 700; font-size: 1rem; padding: 1rem; border-radius: var(--r); border: 2px solid; cursor: pointer; transition: var(--t); }
.lk-no { background: rgba(224,86,86,.08); border-color: #e9a0a0; color: #c23b3b; }
.lk-no:hover { background: rgba(224,86,86,.16); }
.lk-yes { background: rgba(154,205,31,.14); border-color: var(--lime); color: var(--lime-text); }
.lk-yes:hover { background: rgba(154,205,31,.24); }

.lk-done { text-align: center; padding: 1rem 0; }
.lk-done .lk-big { font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; color: var(--lime-text); }

/* =====================================================================
   Ratgeber
   ===================================================================== */
.rg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.4rem; }
.rg-card {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; transition: var(--t); display: flex; flex-direction: column;
}
.rg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--navy); }
.rg-card .rg-cat { font-family: var(--f-display); font-weight: 700; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-icon); }
.rg-card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex-grow: 1; }
.rg-card h3, .rg-card .rg-card-title { font-size: 1.18rem; line-height: 1.25; font-weight: 700; font-family: var(--f-display); color: var(--navy); margin: 0; }
.rg-card p { font-size: .93rem; color: var(--text-soft); flex-grow: 1; margin: 0; }
.rg-card .rg-meta { font-size: .82rem; color: var(--text-muted); margin-top: .4rem; }
.rg-card .rg-link { position: absolute; inset: 0; text-indent: -9999px; }

/* Artikel */
.art-hero { background: var(--navy); color: var(--on-navy); padding: 2.8rem 0; }
.art-hero .container { max-width: 800px; }
.art-crumb { font-size: .85rem; color: var(--on-navy-soft); margin-bottom: 1rem; }
.art-crumb a { color: var(--on-navy-soft); }
.art-cat { font-family: var(--f-display); font-weight: 700; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); margin-bottom: .7rem; }
.art-hero h1 { color: #fff; font-size: clamp(1.8rem,4.2vw,2.7rem); line-height: 1.15; }
.art-lead { color: var(--on-navy); font-size: 1.12rem; margin-top: 1rem; }
.art-meta { color: var(--on-navy-soft); font-size: .88rem; margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; }

.art-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
.art-body { max-width: none; }
.art-body h2 { font-size: clamp(1.4rem,2.8vw,1.85rem); margin: 2.2rem 0 .9rem; }
.art-body h3 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
.art-body p { margin-bottom: 1.1rem; }
.art-body ul, .art-body ol { margin: 0 0 1.2rem 1.3rem; }
.art-body li { margin-bottom: .5rem; }
.art-body strong { color: var(--navy); }
.art-callout { background: var(--bg-soft); border-left: 4px solid var(--lime); border-radius: var(--r); padding: 1.2rem 1.4rem; margin: 1.5rem 0; }
.art-callout p { margin: 0; }
.art-callout b { font-family: var(--f-display); color: var(--navy); }

.art-aside { position: sticky; top: calc(var(--nav-h) + 1.5rem); display: flex; flex-direction: column; gap: 1.2rem; }
.art-aside .aside-card h3 { font-size: 1.05rem; margin-bottom: .9rem; }
.art-aside ul { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.art-aside ul a { font-size: .92rem; font-weight: 500; }
@media (max-width: 860px) { .art-layout { grid-template-columns: 1fr; } .art-aside { position: static; } }

/* Autor-Box */
.author-box { display: flex; gap: 1rem; align-items: center; background: var(--bg-soft); border-radius: var(--r-lg); padding: 1.3rem 1.5rem; margin: 2.5rem 0 0; }
.author-box .av { width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: var(--lime); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; flex-shrink: 0; }
.author-box .au-name { font-family: var(--f-display); font-weight: 700; color: var(--navy); }
.author-box .au-role { font-size: .85rem; color: var(--text-muted); }

/* =====================================================================
   Lern-Hubs
   ===================================================================== */
.hub-hero { background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: var(--on-navy); padding: clamp(2.5rem,6vw,4rem) 0; }
.hub-hero .container { max-width: 820px; }
.hub-hero h1 { color: #fff; font-size: clamp(1.9rem,4.5vw,2.8rem); line-height: 1.12; }
.hub-hero .eyebrow { color: var(--lime); }
.hub-hero p { color: var(--on-navy); font-size: 1.12rem; margin-top: 1rem; }

/* Schrittkarten / Lernpfad */
.steps { display: grid; gap: 1.2rem; counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.5rem 1.7rem;
}
.step .step-no {
  counter-increment: step; width: 42px; height: 42px; border-radius: 50%; background: var(--navy);
  color: var(--lime); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 1.1rem;
}
.step .step-no::before { content: counter(step); }
.step h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.step p { margin: 0 0 .7rem; color: var(--text-soft); font-size: .95rem; }

/* Feld-Kacheln */
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 1.3rem; }
.field-card {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.6rem; transition: var(--t); display: flex; flex-direction: column; gap: .5rem;
}
.field-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--navy); }
.field-card .fc-no { font-family: var(--f-display); font-weight: 800; font-size: 2.4rem; color: var(--lime-text); line-height: 1; }
.field-card h3 { font-size: 1.1rem; }
.field-card p { font-size: .92rem; color: var(--text-soft); margin: 0; flex-grow: 1; }
.field-card .fc-link { position: absolute; inset: 0; text-indent: -9999px; }

/* Glossar */
.glossary { max-width: 800px; margin: 0 auto; }
.gloss-az { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 2rem; }
.gloss-az a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: var(--bg-soft); font-family: var(--f-display); font-weight: 700; font-size: .9rem; }
.gloss-az a:hover { background: var(--navy); color: #fff; }
.gloss-term { border-bottom: 1px solid var(--border); padding: 1.3rem 0; scroll-margin-top: calc(var(--nav-h) + 1rem); }
.gloss-term dt { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; color: var(--navy); margin-bottom: .4rem; }
.gloss-term dd { margin: 0; color: var(--text-soft); }
.gloss-letter { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; color: var(--lime-text); margin: 2rem 0 .5rem; scroll-margin-top: calc(var(--nav-h) + 1rem); }

/* Detail-Seite Handlungsfeld */
.hf-detail { max-width: 800px; margin: 0 auto; }
.hf-detail h2 { font-size: clamp(1.4rem,2.8vw,1.8rem); margin: 2rem 0 .8rem; }
.hf-detail ul { margin: 0 0 1.2rem 1.3rem; }
.hf-detail li { margin-bottom: .5rem; }
.hf-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hf-nav a { font-weight: 600; font-size: .95rem; }

/* =====================================================================
   Cookie-/Consent-Banner (Web-Analyse Opt-in)
   ===================================================================== */
.cc-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 520px; margin: 0 auto;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: 0 12px 40px rgba(13,34,64,.18); padding: 1.3rem 1.5rem; z-index: 9999; }
.cc-banner .cc-title { font-family: var(--f-display); font-weight: 800; color: var(--navy); font-size: 1.05rem; margin: 0 0 .4rem; }
.cc-banner p { color: var(--text-soft); font-size: .9rem; line-height: 1.5; margin: 0 0 1rem; }
.cc-banner p a { color: var(--navy); text-decoration: underline; }
.cc-row { display: flex; gap: .7rem; }
.cc-btn { flex: 1; font-family: var(--f-display); font-weight: 700; font-size: .92rem;
  padding: .7rem 1rem; border-radius: 10px; cursor: pointer; border: 1.5px solid var(--navy); transition: var(--t); }
.cc-accept { background: var(--lime); border-color: var(--lime); color: var(--navy); }
.cc-accept:hover { background: var(--lime-dark); border-color: var(--lime-dark); }
.cc-decline { background: #fff; color: var(--navy); }
.cc-decline:hover { background: var(--bg-soft); }
.dir-card-title { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; color: var(--navy); margin: 0; }
.field-card .fc-title { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; color: var(--navy); margin: 0; }
