/* ============================================================
   Europakarte.org Theme — handgeschriebenes CSS (kein Tailwind-Build)
   Stil: clean, modern, EU-Blau Akzent, mobile-first
   ============================================================ */

:root {
  --eu-blue: #003399;
  --eu-blue-dark: #002266;
  --eu-blue-light: #2657c4;
  --eu-gold: #FFCC00;
  --eu-gold-dark: #d4a800;

  --text: #1a1f2e;
  --text-muted: #5a6478;
  --text-light: #8893a8;
  --bg: #fdfcfa;
  --bg-elev: #ffffff;
  --bg-soft: #f5f3ee;
  --border: #e4e6eb;
  --border-strong: #c8cdd6;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,.10), 0 8px 10px -6px rgba(0,0,0,.08);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-serif: Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", "Roboto Mono", Consolas, monospace;

  --container: 1180px;
  --container-narrow: 880px;
}

/* ========== Reset / Base ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  margin: 1.6em 0 .6em;
  color: var(--text);
}
h1 { font-size: clamp(1.85rem, 1.5rem + 1.5vw, 2.6rem); margin-top: 0; }
h2 { font-size: clamp(1.4rem, 1.2rem + .9vw, 1.85rem); border-bottom: 2px solid var(--border); padding-bottom: .3em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: .8em 0 1em; }
a { color: var(--eu-blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--eu-blue-dark); text-decoration-thickness: 2.2px; }
img { max-width: 100%; height: auto; }
ul, ol { padding-left: 1.5em; }
li { margin: .25em 0; }
code { font-family: var(--font-mono); font-size: .9em; background: var(--bg-soft); padding: .1em .3em; border-radius: 3px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
small { font-size: .85em; color: var(--text-muted); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 0; left: 0;
  transform: translateY(-110%);
  background: var(--eu-blue); color: #fff;
  padding: 8px 16px; z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
  transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ========== Header ========== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header__brand {
  display: inline-flex; align-items: center; gap: .5rem;
  text-decoration: none; color: var(--eu-blue);
  font-weight: 700; font-size: 1.15rem;
  white-space: nowrap;
}
.site-header__brand:hover { color: var(--eu-blue-dark); }
.site-header__brand-icon { display: inline-flex; }
.site-header__brand-name { letter-spacing: -.01em; }
.site-header__brand-tld { color: var(--eu-gold-dark); font-weight: 800; }

.site-nav { display: none; align-items: center; gap: .2rem; }
.site-nav__link {
  padding: .5rem .75rem; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 500;
  transition: background .15s, color .15s;
}
.site-nav__link:hover { background: var(--bg-soft); color: var(--eu-blue); }
.site-nav__link[aria-current="page"] { color: var(--eu-blue); background: rgba(0,51,153,.08); }

.site-header__burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); cursor: pointer;
}

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .site-header__burger { display: none; }
}

/* ========== Mega Menu ========== */
.mega-menu { position: relative; }
.mega-menu__trigger {
  list-style: none; padding: .5rem .75rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: .3rem;
  border-radius: var(--radius-sm); font-size: .95rem; font-weight: 500;
  color: var(--text);
}
.mega-menu__trigger::-webkit-details-marker { display: none; }
.mega-menu__trigger:hover { background: var(--bg-soft); color: var(--eu-blue); }
.mega-menu[open] .mega-menu__trigger { background: var(--bg-soft); color: var(--eu-blue); }
.mega-menu__panel {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 1.25rem; min-width: 560px; max-width: min(960px, 92vw); z-index: 50;
}
.mega-menu__intro { font-size: .85rem; color: var(--text-muted); margin-bottom: .8rem; }
.mega-menu__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.mega-menu__col-title { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: .5rem; }
.mega-menu__list { list-style: none; padding: 0; margin: 0; }
.mega-menu__list li { margin: 0; }
.mega-menu__list a {
  display: block; padding: .4rem .5rem; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text);
}
.mega-menu__list a:hover { background: var(--bg-soft); }
.mega-menu__item-label { display: block; font-weight: 500; font-size: .9rem; }
.mega-menu__item-desc { display: block; font-size: .78rem; color: var(--text-muted); margin-top: .1rem; }

/* ========== Mobile Drawer ========== */
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw); background: var(--bg-elev);
  z-index: 100; transform: translateX(100%);
  transition: transform .25s ease;
  display: flex; flex-direction: column;
  padding: 1rem 1.25rem; overflow-y: auto;
  box-shadow: -8px 0 24px rgba(0,0,0,.15);
}
.mobile-drawer[data-open] { transform: translateX(0); }
.mobile-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.mobile-drawer__close {
  background: transparent; border: 1px solid var(--border); cursor: pointer;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
}
.mobile-drawer__nav a {
  display: block; padding: .65rem .5rem; color: var(--text); text-decoration: none;
  border-radius: var(--radius-sm); font-weight: 500;
}
.mobile-drawer__nav a:hover { background: var(--bg-soft); }
.mobile-drawer__group { margin-top: .5rem; border-top: 1px solid var(--border); padding-top: .5rem; }
.mobile-drawer__group summary {
  list-style: none; cursor: pointer; padding: .65rem .5rem; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-drawer__group summary::-webkit-details-marker { display: none; }
.mobile-drawer__group-content { padding-left: .5rem; }
.mobile-drawer__col-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin: .75rem 0 .25rem; }

.mobile-drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 99;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.mobile-drawer-backdrop[data-open] { opacity: 1; pointer-events: auto; }

@media (min-width: 768px) {
  .mobile-drawer, .mobile-drawer-backdrop { display: none !important; }
}

/* ========== Main / Article ========== */
main { min-height: 60vh; }
.content-article {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}
.home-page { max-width: var(--container); }

.article-hero { margin-bottom: 1.5rem; }
.article-hero h1 { margin-bottom: .25rem; }
.article-hero__sub { font-size: 1.1rem; color: var(--text-muted); margin: 0; }

.breadcrumb {
  font-size: .85rem; color: var(--text-muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--eu-blue); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: 600; }

.prose-body img { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.prose-body table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .95rem; }
.prose-body table th, .prose-body table td { padding: .55rem .7rem; border-bottom: 1px solid var(--border); text-align: left; }
.prose-body table th { background: var(--bg-soft); font-weight: 700; }
.prose-body table tr:hover td { background: rgba(0,51,153,.04); }
.table-scroll { overflow-x: auto; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: .55rem .7rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.data-table th { background: var(--bg-soft); font-weight: 700; }
.data-table caption { font-style: italic; color: var(--text-muted); padding: .5rem 0; }
.data-table-missing, .data-table-empty { color: var(--text-muted); font-style: italic; padding: 1rem; background: var(--bg-soft); border-radius: var(--radius-sm); }

.data-table th.sortable {
  cursor: pointer;
  user-select: none;
  padding-right: 1.6rem;
  position: relative;
  white-space: nowrap;
}
.data-table th.sortable:hover { background: rgba(0,51,153,.08); }
.data-table th.sortable:focus-visible { outline: 2px solid var(--accent, #0039a6); outline-offset: -2px; }
.data-table th.sortable::after {
  content: "\2195"; /* ↕ neutral */
  position: absolute;
  right: .5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: .85em;
  opacity: .4;
  line-height: 1;
}
.data-table th.sortable[aria-sort="ascending"]::after  { content: "\25B2"; opacity: 1; font-size: .7em; } /* ▲ */
.data-table th.sortable[aria-sort="descending"]::after { content: "\25BC"; opacity: 1; font-size: .7em; } /* ▼ */

/* Aktive Zeile (aktuelle Land/Hauptstadt-Page wird in der Tabelle fett hervorgehoben) */
.data-table tbody tr.active td { font-weight: 700; background: rgba(255,204,0,.18); }
.data-table tbody tr.active a { color: var(--eu-blue-dark); }

/* ========== Footer ========== */
.site-footer {
  background: #11193d;
  color: rgba(255,255,255,.85);
  padding: 2.5rem 1rem 1.5rem;
  margin-top: 4rem;
}
.site-footer__inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
.site-footer__brand-name { font-size: 1.3rem; font-weight: 700; color: #fff; }
.site-footer__brand-tld { color: var(--eu-gold); }
.site-footer__tagline { color: rgba(255,255,255,.65); font-size: .9rem; margin-top: .5rem; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.site-footer__col-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--eu-gold); margin: 0 0 .65rem; border: 0; padding: 0; }
.site-footer__col-list { list-style: none; padding: 0; margin: 0; }
.site-footer__col-list li { margin: .25rem 0; }
.site-footer__col-list a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .92rem; }
.site-footer__col-list a:hover { color: #fff; text-decoration: underline; }
.site-footer__legal {
  max-width: var(--container); margin: 1.5rem auto 0; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .82rem; color: rgba(255,255,255,.55);
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between;
}
.site-footer__legal-links { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-left: auto; }
.site-footer__legal a { color: rgba(255,255,255,.7); text-decoration: none; }
.site-footer__legal a:hover { color: #fff; text-decoration: underline; }
.site-footer__legal-sep { opacity: .4; }

@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: 1.2fr 3fr; }
}

/* ========== Ad-Slot ========== */
.ad-slot {
  display: block; max-width: 100%; overflow: hidden;
  margin: 1.5rem auto; text-align: center;
}

/* ============================================================
   WLAN-Page
   ============================================================ */
.wlan-map-section { margin: 1.5rem 0; }
.wlan-map-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 900px) {
  .wlan-map-grid {
    grid-template-columns: minmax(320px, 420px) 1fr;
  }
}
/* Auf der reinen "Bundesländer-Übersicht" (16 Items, 2-Col-Grid):
   die Liste wird kompakt → Grid umstellen, Karte größer */
.wlan-page:not(.wlan-bundesland-page):not(.wlan-ort-page) .wlan-map-grid {
  align-items: start;
}
.wlan-bdl-list, .wlan-orte-list {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
}
.wlan-bdl-list { min-height: 0; }   /* BL-Liste: 2-spaltiges Grid, kein min-height */
.wlan-orte-list { min-height: 540px; } /* Ort-Liste: lang, scrollable */
.wlan-bdl-list h2, .wlan-orte-list h2 {
  margin: 0 0 .5rem;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: .4rem;
}
.bdl-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 .65rem;
}
.orte-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  max-height: 480px;
}
.bdl-list li, .orte-list li { margin: 0; border-bottom: 1px solid var(--border); }
.bdl-list li:last-child, .orte-list li:last-child { border-bottom: 0; }
.bdl-list__link, .orte-list__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: .55rem .65rem; text-decoration: none; color: var(--text);
  border-radius: var(--radius-sm); font-size: .92rem;
  gap: .5rem;
}
.bdl-list__link:hover, .orte-list__link:hover { background: var(--bg-soft); color: var(--eu-blue); }
.orte-list__name { font-weight: 500; }
.orte-list__count {
  font-size: .8rem; color: var(--text-muted); background: var(--bg-soft);
  padding: .15rem .5rem; border-radius: 999px; flex: 0 0 auto;
}
.wlan-orte-empty {
  color: var(--text-muted);
  padding: 1rem 0;
  font-size: .92rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1 1 auto;
}
.wlan-orte-filter {
  width: 100%;
  padding: .45rem .65rem;
  margin-bottom: .5rem;
  font-size: .9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
}
.wlan-orte-filter:focus { outline: 2px solid var(--eu-blue); outline-offset: 1px; }
.wlan-orte-empty__hint {
  background: var(--bg-soft);
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  line-height: 1.5;
}
.wlan-map-wrapper {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 540px;
}
.wlan-map-wrapper .germany-map-block { flex: 1 1 auto; display: flex; flex-direction: column; }
.wlan-map-wrapper .germany-map-svg-wrapper {
  flex: 1 1 auto;
  border: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wlan-map-wrapper .germany-map-svg,
.wlan-map-wrapper .germany-map-preview {
  max-height: 500px;
  width: auto;
  max-width: 100%;
}
.wlan-bundesland-info {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border-left: 4px solid var(--eu-blue);
}
.wlan-bundesland-info h3 {
  margin: 0 0 .5rem; font-size: 1rem;
}
.wlan-bundesland-info p { margin: .25rem 0; font-size: .92rem; }

.cta-link {
  display: inline-block;
  padding: .65rem 1.1rem;
  background: var(--eu-blue);
  color: #fff !important;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  font-weight: 600;
  margin: .5rem 0 1rem;
  transition: background .15s;
}
.cta-link:hover { background: var(--eu-blue-dark); }
.cta-link--ghost {
  background: transparent;
  color: var(--eu-blue) !important;
  border: 1px solid var(--eu-blue);
}
.cta-link--ghost:hover { background: var(--eu-blue); color: #fff !important; }

/* ============================================================
   wlan_ort: Karten-Layout (Karte + Meta nebeneinander, dann body)
   ============================================================ */
.wlan-ort-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
@media (min-width: 900px) {
  .wlan-ort-top { grid-template-columns: 1fr 320px; }
}
.wlan-ort-map-box,
.wlan-ort-meta {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.wlan-ort-map-box__title,
.wlan-ort-meta__title {
  margin: 0 0 .75rem;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: .35rem;
}
.wlan-ort-map-inner {
  /* Map ist ein <div class="germany-map-block"> → Höhe steuern */
}
.wlan-ort-map-inner .germany-map-svg-wrapper {
  padding: 0;
  border: 0;
}
.wlan-ort-map-inner .germany-map-svg,
.wlan-ort-map-inner .germany-map-preview {
  max-height: 420px;
}
.wlan-ort-meta__list {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .35rem .9rem;
  font-size: .92rem;
}
.wlan-ort-meta__list dt {
  color: var(--text-muted);
  font-weight: 500;
}
.wlan-ort-meta__list dd {
  margin: 0;
  font-weight: 600;
}
.wlan-ort-meta .cta-link {
  margin-top: 1rem;
  width: 100%;
  text-align: center;
}

/* ============================================================
   Hotspot-Tabelle mit Filter + Pagination
   (Tabelle ist im Body, .wlan-hotspots-table)
   ============================================================ */
.wlan-hotspots-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 .75rem;
}
.wlan-hotspots-toolbar__count {
  font-size: .85rem;
  color: var(--text-muted);
}
.wlan-hotspots-toolbar__count strong { color: var(--text); }
.wlan-hotspots-filter {
  flex: 1 1 220px;
  max-width: 320px;
  padding: .5rem .75rem;
  font-size: .92rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  color: var(--text);
}
.wlan-hotspots-filter:focus {
  outline: 2px solid var(--eu-blue);
  outline-offset: 1px;
}
.wlan-hotspots-table { font-size: .9rem; }
.wlan-hotspots-table th { white-space: nowrap; }
.wlan-hotspots-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  margin: 1rem 0 .5rem;
  flex-wrap: wrap;
}
.wlan-hotspots-pagination button {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  cursor: pointer;
  transition: background .15s;
}
.wlan-hotspots-pagination button:hover:not([disabled]) {
  background: var(--bg-soft);
  border-color: var(--eu-blue);
  color: var(--eu-blue);
}
.wlan-hotspots-pagination button[disabled] {
  opacity: .4;
  cursor: not-allowed;
}
.wlan-hotspots-pagination button.is-current {
  background: var(--eu-blue);
  color: #fff;
  border-color: var(--eu-blue);
}
.wlan-hotspots-pagination__info {
  font-size: .85rem;
  color: var(--text-muted);
  padding: 0 .5rem;
}

/* ============================================================
   Legacy-GeneratePress-Klassen (aus migriertem Body-HTML)
   Wir interpretieren die alten Klassen als Grid-Items:
     <div class="center"> umschließt N <div class="img_250"> ...
     Jede img_250 hat: <div class="img_title">…</div><a><img></a>
   ============================================================ */
.prose-body .center {
  text-align: center;
  margin: 1.5rem 0;
}
/* Wenn .center mehrere img_250-Children enthält: Grid */
.prose-body .center:has(.img_250) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  text-align: left;
}
.prose-body .img_250 {
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.prose-body .img_250:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.prose-body .img_250 .img_title {
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .5rem;
  color: var(--text);
  line-height: 1.3;
  min-height: 2.2em;
}
.prose-body .img_250 a {
  display: block;
  margin: 0 auto;
  text-decoration: none;
}
.prose-body .img_250 img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* Solitäre Bilder (img_full / img_730 / img_480) */
.prose-body .img_full,
.prose-body .img_730,
.prose-body .img_480 {
  display: block;
  margin: 1.25rem auto;
  text-align: center;
  max-width: 100%;
}
.prose-body .img_full img,
.prose-body .img_730 img,
.prose-body .img_480 img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.prose-body .img_full .img_title,
.prose-body .img_730 .img_title,
.prose-body .img_480 .img_title {
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .5rem;
}

/* Tabellen-Wrapper aus altem WP-Theme: table-responsive */
.prose-body .table-responsive {
  overflow-x: auto;
  margin: 1rem 0;
}

/* ============================================================
   Germany Map (SVG)
   ============================================================ */
.germany-map-block {
  display: flex; flex-direction: column; gap: .5rem;
}
.germany-map-svg-wrapper {
  position: relative; background: var(--bg-elev); border-radius: var(--radius);
  padding: .5rem; border: 1px solid var(--border);
}
.germany-map-svg { display: block; width: 100%; height: auto; max-height: 580px; }
.germany-map-preview { display: block; width: 100%; height: auto; max-height: 580px; }
.germany-region {
  fill: #e2e6ec;
  stroke: #fff;
  stroke-width: 1;
  cursor: pointer;
  transition: fill .18s ease;
}
.germany-region:hover { fill: #4a78d8; }
.germany-region.active { fill: var(--eu-blue); }
.germany-region.no-link { cursor: default; }

.germany-map-tooltip {
  position: absolute; z-index: 10; pointer-events: none;
  background: #11193d; color: #fff; padding: .35rem .65rem; border-radius: var(--radius-sm);
  font-size: .85rem; font-weight: 500; box-shadow: var(--shadow-md);
  opacity: 0; transform: translate(0, -2px); transition: opacity .15s;
  white-space: nowrap;
}
.germany-map-tooltip.visible { opacity: 1; transform: translate(0, 0); }

.germany-pin-group .germany-pin-pulse {
  fill: var(--eu-gold);
  fill-opacity: .35;
  animation: germany-pin-pulse 1.8s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes germany-pin-pulse {
  0%   { r: 4;  fill-opacity: .55; }
  100% { r: 14; fill-opacity: 0;   }
}
.germany-pin-group .germany-pin-dot {
  fill: var(--eu-blue);
  stroke: #fff; stroke-width: 1.2;
}
.germany-pin-group .germany-pin-label {
  fill: var(--text);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
  pointer-events: none;
}

/* ============================================================
   Google-Maps-Embed mit DSGVO-konformem Opt-in
   ============================================================ */
.gmap-embed {
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.gmap-embed__consent {
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-elev) 100%);
  text-align: center;
}
.gmap-embed__consent-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: .75rem;
}
.gmap-embed__consent h2 {
  margin: 0 0 .75rem;
  font-size: 1.25rem;
  color: var(--eu-blue);
}
.gmap-embed__consent p {
  margin: 0 auto 1rem;
  max-width: 52ch;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.55;
}
.gmap-embed__consent-remember {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: .25rem 0 1.25rem;
  font-size: .9rem;
  color: var(--text-muted);
  cursor: pointer;
}
.gmap-embed__consent-remember input { cursor: pointer; }
.gmap-embed__consent-accept {
  display: inline-block;
  padding: .7rem 1.4rem;
  background: var(--eu-blue);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
}
.gmap-embed__consent-accept:hover,
.gmap-embed__consent-accept:focus-visible {
  background: var(--eu-blue-dark);
  outline: none;
}
.gmap-embed [hidden] { display: none !important; }
.gmap-embed__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.gmap-embed__label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
}
.gmap-embed__select {
  flex: 1 1 220px;
  min-width: 0;
  padding: .45rem .6rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  font: inherit;
  color: var(--text);
}
.gmap-embed__select:focus-visible {
  outline: 2px solid var(--eu-blue);
  outline-offset: 1px;
  border-color: var(--eu-blue);
}
.gmap-embed__iframe {
  display: block;
  width: 100%;
  height: 550px;
  border: 0;
}
.gmap-embed__revoke {
  margin: 0;
  padding: .5rem 1rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  text-align: right;
  font-size: .85rem;
}
.gmap-embed__revoke-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
.gmap-embed__revoke-btn:hover { color: var(--eu-blue); }
@media (max-width: 560px) {
  .gmap-embed__iframe { height: 420px; }
  .gmap-embed__controls { flex-direction: column; align-items: stretch; }
  .gmap-embed__label { text-align: left; }
}

/* ============================================================
   Quiz-Modul: Hub + Quiz-Play
   ============================================================ */

/* ---------- Hero (Hub & Play) ---------- */
.quiz-hero {
  text-align: center;
  padding: 2.2rem 1rem 1.4rem;
  margin: 0 0 2rem;
  position: relative;
}
.quiz-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 240px at 50% 0, rgba(0,51,153,.10), transparent 70%),
    radial-gradient(600px 180px at 80% 80%, rgba(255,204,0,.15), transparent 75%);
  z-index: -1;
  border-radius: var(--radius-lg);
}
.quiz-hero h1 { margin: .35em 0 .15em; }
.quiz-hero__sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto;
}
.quiz-hero__badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .8rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  color: var(--eu-blue);
  background: rgba(0,51,153,.08);
  border: 1px solid rgba(0,51,153,.15);
  border-radius: 999px;
  margin-bottom: .3rem;
}

/* ---------- Quiz-Hub Grid ---------- */
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.quiz-card {
  --quiz-accent: var(--eu-blue);
  position: relative;
  display: flex; flex-direction: column;
  gap: .75rem;
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
  isolation: isolate;
}
.quiz-card::before {
  content: '';
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 4px;
  background: var(--quiz-accent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.quiz-card::after {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 140px; height: 140px;
  background: var(--quiz-accent);
  opacity: .06;
  border-radius: 50%;
  z-index: -1;
  transition: transform .25s ease, opacity .25s ease;
}
.quiz-card:hover {
  transform: translateY(-3px);
  border-color: var(--quiz-accent);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.quiz-card:hover::after { transform: scale(1.4); opacity: .12; }
.quiz-card:focus-visible {
  outline: 3px solid var(--quiz-accent);
  outline-offset: 3px;
}
.quiz-card__icon {
  display: inline-flex;
  width: 52px; height: 52px;
  align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--quiz-accent) 12%, transparent);
  color: var(--quiz-accent);
  border-radius: 14px;
}
.quiz-card__body { flex: 1; }
.quiz-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 .25em;
  color: var(--text);
  border: 0; padding: 0;
}
.quiz-card__desc {
  margin: 0 0 .9em;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.5;
}
.quiz-card__cta {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .95rem;
  color: var(--quiz-accent);
}
.quiz-card:hover .quiz-card__cta svg { transform: translateX(3px); }
.quiz-card__cta svg { transition: transform .18s ease; }
.quiz-card__best {
  position: absolute;
  top: .85rem; right: .85rem;
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .15rem .5rem;
  font-size: .72rem; font-weight: 700;
  color: #b15c00;
  background: rgba(255,204,0,.22);
  border: 1px solid rgba(255,204,0,.45);
  border-radius: 999px;
}

/* ---------- Hub: Features-List ---------- */
.quiz-features { margin: 2rem 0; }
.feature-list {
  list-style: none; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .75rem;
}
.feature-list li {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  margin: 0;
  font-size: .95rem;
  line-height: 1.55;
}
.feature-list strong { color: var(--eu-blue); display: block; margin-bottom: .15em; }
.feature-list kbd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .8em;
  padding: .05em .4em;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
}

/* ---------- Quiz-App (Play) ---------- */
.quiz-app {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  margin: 1.5rem 0 2rem;
  min-height: 420px;
}
.quiz-noscript {
  background: #fff3cd;
  border: 1px solid #f1c40f;
  color: #856404;
  padding: 1rem;
  border-radius: var(--radius);
}

/* ---------- Quiz: Start screen ---------- */
.quiz-stage--start {
  text-align: center;
  padding: 2rem 1rem;
}
.quiz-stage--start h2 {
  border: 0; padding: 0;
  margin: 0 0 .4em;
  font-size: 1.5rem;
}
.quiz-stage__intro {
  color: var(--text-muted);
  margin: 0 auto 1.5rem;
  max-width: 50ch;
}
.quiz-best-display {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .8rem;
  font-size: .85rem; font-weight: 600;
  background: rgba(255,204,0,.15);
  border: 1px solid rgba(255,204,0,.4);
  color: #8a5a00;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* ---------- Quiz: HUD (oben in Play) ---------- */
.quiz-hud {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: .8rem;
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}
.quiz-hud__stats {
  display: flex; gap: 1rem; flex-wrap: wrap;
  font-size: .9rem; color: var(--text-muted);
}
.quiz-hud__stat {
  display: inline-flex; align-items: center; gap: .3rem;
}
.quiz-hud__stat strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.quiz-hud__streak {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .85rem; font-weight: 700;
  background: rgba(0,51,153,.08);
  color: var(--eu-blue);
  border: 1px solid rgba(0,51,153,.15);
  transition: transform .18s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.quiz-hud__streak[data-hot="true"] {
  background: linear-gradient(135deg, #ff7a18, #ff3d00);
  color: #fff;
  border-color: transparent;
  animation: quiz-streak-pulse 1.4s ease-in-out infinite;
}
@keyframes quiz-streak-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,82,0,.5); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(255,82,0,0); }
}
.quiz-progress {
  flex: 1 1 100%;
  height: 6px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
}
.quiz-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--eu-blue), var(--eu-blue-light));
  border-radius: 999px;
  transition: width .35s cubic-bezier(.4,.2,.2,1);
}

/* ---------- Quiz: Question ---------- */
.quiz-question {
  animation: quiz-fade-in .35s ease-out;
}
@keyframes quiz-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.quiz-question__index {
  font-size: .8rem; font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .4rem;
}
.quiz-question__prompt {
  font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem);
  font-weight: 700;
  margin: 0 0 1.2rem;
  line-height: 1.35;
  color: var(--text);
}
.quiz-question__media {
  display: flex;
  justify-content: center;
  margin: 0 0 1.5rem;
}
.quiz-question__media img {
  max-width: 240px;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  border: 1px solid var(--border);
  background: #fff;
}

/* ---------- Quiz: Options ---------- */
.quiz-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: .65rem;
}
@media (min-width: 640px) {
  .quiz-options { grid-template-columns: 1fr 1fr; }
}
.quiz-option {
  position: relative;
  display: flex; align-items: center; gap: .8rem;
  text-align: left;
  padding: .95rem 1.1rem;
  background: var(--bg-elev);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-size: 1rem; font-weight: 500;
  color: var(--text);
  transition: transform .12s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.quiz-option:hover:not(:disabled) {
  border-color: var(--eu-blue-light);
  background: rgba(0,51,153,.04);
  transform: translateY(-1px);
}
.quiz-option:focus-visible {
  outline: 3px solid var(--eu-blue);
  outline-offset: 2px;
}
.quiz-option__key {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: .85rem; font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}
.quiz-option__text { flex: 1; }
.quiz-option__icon {
  display: none;
  width: 24px; height: 24px;
  flex-shrink: 0;
}
.quiz-option[data-state] .quiz-option__icon { display: inline-flex; }
.quiz-option[data-state="correct"] {
  border-color: #2da44e;
  background: #effaf1;
  color: #14532d;
  animation: quiz-correct-pop .35s ease;
}
.quiz-option[data-state="correct"] .quiz-option__icon { color: #2da44e; }
.quiz-option[data-state="correct"] .quiz-option__key { background: #2da44e; color: #fff; border-color: #2da44e; }
.quiz-option[data-state="wrong"] {
  border-color: #cf222e;
  background: #fef3f2;
  color: #7f1d1d;
  animation: quiz-shake .4s ease;
}
.quiz-option[data-state="wrong"] .quiz-option__icon { color: #cf222e; }
.quiz-option[data-state="wrong"] .quiz-option__key { background: #cf222e; color: #fff; border-color: #cf222e; }
.quiz-option:disabled { cursor: not-allowed; }
.quiz-option:disabled:not([data-state]) { opacity: .55; }
@keyframes quiz-correct-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}
@keyframes quiz-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* ---------- Quiz: Footer (Next-Button) ---------- */
.quiz-footer {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  min-height: 48px;
}
.quiz-feedback {
  font-size: .95rem;
  font-weight: 600;
  display: none;
}
.quiz-feedback[data-show="true"] { display: inline-flex; align-items: center; gap: .4rem; }
.quiz-feedback[data-kind="correct"] { color: #2da44e; }
.quiz-feedback[data-kind="wrong"]   { color: #cf222e; }
.quiz-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .7rem 1.4rem;
  border: 0;
  background: var(--eu-blue);
  color: #fff;
  font: inherit;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .15s, transform .12s, box-shadow .15s;
}
.quiz-btn:hover { background: var(--eu-blue-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.quiz-btn:focus-visible { outline: 3px solid var(--eu-gold); outline-offset: 2px; }
.quiz-btn--ghost {
  background: transparent;
  color: var(--eu-blue);
  border: 1.5px solid var(--eu-blue);
  box-shadow: none;
}
.quiz-btn--ghost:hover {
  background: rgba(0,51,153,.06);
  color: var(--eu-blue-dark);
}
.quiz-btn--lg { font-size: 1.05rem; padding: .85rem 1.7rem; }
.quiz-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Quiz: Result screen ---------- */
.quiz-stage--result {
  text-align: center;
  padding: 1.5rem 1rem;
  animation: quiz-fade-in .45s ease-out;
}
.quiz-result__title {
  font-size: 1.6rem;
  margin: 0 0 .3em;
  border: 0; padding: 0;
}
.quiz-result__sub { color: var(--text-muted); margin: 0 0 1.5rem; }
.quiz-stars {
  display: inline-flex; gap: .35rem;
  margin: 0 0 1rem;
}
.quiz-stars svg {
  width: 44px; height: 44px;
  color: var(--bg-soft);
  fill: var(--bg-soft);
  transition: color .3s, fill .3s, transform .3s;
}
.quiz-stars[data-stars="1"] svg:nth-child(1),
.quiz-stars[data-stars="2"] svg:nth-child(-n+2),
.quiz-stars[data-stars="3"] svg {
  color: #f5b400;
  fill: #f5b400;
  animation: quiz-star-pop .55s cubic-bezier(.34,1.56,.64,1) backwards;
}
.quiz-stars[data-stars="1"] svg:nth-child(1) { animation-delay: .1s; }
.quiz-stars[data-stars="2"] svg:nth-child(1) { animation-delay: .1s; }
.quiz-stars[data-stars="2"] svg:nth-child(2) { animation-delay: .3s; }
.quiz-stars[data-stars="3"] svg:nth-child(1) { animation-delay: .1s; }
.quiz-stars[data-stars="3"] svg:nth-child(2) { animation-delay: .3s; }
.quiz-stars[data-stars="3"] svg:nth-child(3) { animation-delay: .5s; }
@keyframes quiz-star-pop {
  from { transform: scale(.2) rotate(-20deg); opacity: 0; }
  60%  { transform: scale(1.15) rotate(8deg); opacity: 1; }
  to   { transform: scale(1) rotate(0); opacity: 1; }
}
.quiz-result__score {
  font-size: 3rem;
  font-weight: 800;
  margin: 0;
  color: var(--eu-blue);
  font-variant-numeric: tabular-nums;
}
.quiz-result__score small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
  margin-top: -.3em;
}
.quiz-result__breakdown {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: center;
  margin: 1.4rem 0 1.6rem;
  font-size: .95rem;
}
.quiz-result__breakdown-item {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .8rem;
  background: var(--bg-soft);
  border-radius: 999px;
}
.quiz-result__breakdown-item strong { font-variant-numeric: tabular-nums; }
.quiz-result__new-best {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .75rem;
  background: rgba(255,204,0,.2);
  color: #8a5a00;
  border: 1px solid rgba(255,204,0,.5);
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: 1rem;
  animation: quiz-fade-in .5s .6s backwards;
}
.quiz-result__actions {
  display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center;
}

/* ---------- Other quizzes pill list ---------- */
.quiz-other { margin: 2rem 0 1rem; }
.quiz-other__list { display: flex; flex-wrap: wrap; gap: .5rem; }
.quiz-other__pill {
  display: inline-flex; align-items: center;
  padding: .45rem .85rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-size: .9rem; font-weight: 500;
  transition: background .15s, color .15s, border-color .15s;
}
.quiz-other__pill:hover {
  background: var(--eu-blue);
  border-color: var(--eu-blue);
  color: #fff;
  text-decoration: none;
}
.quiz-other__pill--ghost {
  background: transparent;
  border-style: dashed;
}

/* ============================================================
   FAQ — Schema.org FAQPage Markup
   Struktur: h2.faq-heading + div.faq > details.faq-item > summary + div[itemprop="acceptedAnswer"] > div[itemprop="text"]
   ============================================================ */
.faq {
  display: flex; flex-direction: column;
  gap: .55rem;
  margin: 1.2rem 0 2rem;
  counter-reset: faqcounter;
}

.faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  overflow: hidden;
  counter-increment: faqcounter;
}
.faq-item:hover:not([open]) {
  border-color: var(--border-strong);
  background: var(--bg-soft);
}
.faq-item[open] {
  border-color: var(--eu-blue-light);
  box-shadow: var(--shadow-sm);
}

/* Native marker (▶) wegblenden — auch in Safari */
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1rem 1.1rem;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--text);
  user-select: none;
  position: relative;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::marker { content: ''; }
.faq-item > summary:hover { color: var(--eu-blue); }
.faq-item > summary:focus-visible {
  outline: 3px solid var(--eu-blue);
  outline-offset: -3px;
  border-radius: var(--radius);
}

/* Custom Plus/Minus-Icon */
.faq-item > summary::before {
  content: '';
  flex-shrink: 0;
  width: 26px; height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat,
    rgba(0,51,153,.08);
  color: var(--eu-blue);
  transition: transform .25s ease, background-color .2s ease;
}
.faq-item[open] > summary::before {
  transform: rotate(135deg);
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat,
    var(--eu-blue);
  color: #fff;
}

/* Antwort-Container (das ist der erste div in details — Schema.org Wrapper) */
.faq-item > div[itemprop="acceptedAnswer"] {
  padding: 0 1.1rem 1.1rem calc(1.1rem + 26px + .9rem);
  color: var(--text-muted);
  font-size: .98rem;
  line-height: 1.65;
  animation: faq-open .25s ease-out;
}
.faq-item > div[itemprop="acceptedAnswer"] > div[itemprop="text"] {
  border-left: 3px solid var(--eu-blue-light);
  padding-left: .9rem;
  margin-top: -.2rem;
}
.faq-item > div[itemprop="acceptedAnswer"] a {
  color: var(--eu-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-item > div[itemprop="acceptedAnswer"] a:hover {
  color: var(--eu-blue-dark);
  text-decoration-thickness: 2px;
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .faq-item > summary {
    padding: .85rem .9rem;
    font-size: .98rem;
    gap: .7rem;
  }
  .faq-item > summary::before { width: 22px; height: 22px; }
  .faq-item > div[itemprop="acceptedAnswer"] {
    padding: 0 .9rem 1rem calc(.9rem + 22px + .7rem);
    font-size: .94rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-item > summary::before,
  .faq-item > div[itemprop="acceptedAnswer"] {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Home-Quiz-Teaser (Section auf der Startseite) ---------- */
.home-quiz {
  margin: 2.5rem 0 2rem;
  padding: 1.75rem 1.5rem 2rem;
  background:
    radial-gradient(700px 220px at 0% 0%, rgba(0,51,153,.08), transparent 65%),
    radial-gradient(500px 200px at 100% 100%, rgba(255,204,0,.14), transparent 70%),
    var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.home-quiz__head { text-align: center; margin-bottom: 1.4rem; }
.home-quiz__badge {
  display: inline-flex; align-items: center;
  padding: .25rem .75rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .03em;
  color: var(--eu-blue);
  background: rgba(0,51,153,.1);
  border: 1px solid rgba(0,51,153,.18);
  border-radius: 999px;
  margin-bottom: .5rem;
  text-transform: uppercase;
}
.home-quiz__head h2 {
  border: 0; padding: 0;
  margin: .1em 0 .35em;
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.8rem);
}
.home-quiz__intro {
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto;
  font-size: 1rem;
}
.home-quiz__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: .8rem;
  margin: 0 0 1.2rem;
}
.home-quiz__card {
  --quiz-accent: var(--eu-blue);
  position: relative;
  display: flex; flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  padding: 1rem .9rem 1rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  overflow: hidden;
}
.home-quiz__card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--quiz-accent);
}
.home-quiz__card:hover {
  transform: translateY(-2px);
  border-color: var(--quiz-accent);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.home-quiz__card:focus-visible {
  outline: 3px solid var(--quiz-accent);
  outline-offset: 2px;
}
.home-quiz__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: color-mix(in srgb, var(--quiz-accent) 12%, transparent);
  color: var(--quiz-accent);
  border-radius: 10px;
  margin-bottom: .25rem;
}
.home-quiz__title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--text);
}
.home-quiz__meta {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.home-quiz__cta { text-align: center; margin: 0; }
.home-quiz__cta-link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem 1.2rem;
  background: var(--eu-blue);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius);
  transition: background .15s, transform .12s, box-shadow .15s;
  box-shadow: var(--shadow-sm);
}
.home-quiz__cta-link:hover {
  background: var(--eu-blue-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.home-quiz__cta-link svg { transition: transform .15s; }
.home-quiz__cta-link:hover svg { transform: translateX(3px); }

@media (max-width: 560px) {
  .home-quiz { padding: 1.25rem 1rem 1.5rem; }
  .home-quiz__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Responsive Tweaks ---------- */
@media (max-width: 560px) {
  .quiz-app { padding: 1rem; }
  .quiz-hero { padding: 1.4rem .5rem 1rem; }
  .quiz-question__prompt { font-size: 1.1rem; }
  .quiz-result__score { font-size: 2.4rem; }
  .quiz-stars svg { width: 36px; height: 36px; }
  .quiz-hud__stats { font-size: .82rem; gap: .7rem; }
  .quiz-footer { flex-direction: column-reverse; align-items: stretch; }
  .quiz-footer .quiz-btn { width: 100%; justify-content: center; }
  .quiz-feedback { text-align: center; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-question,
  .quiz-stage--result,
  .quiz-result__new-best,
  .quiz-option[data-state="correct"],
  .quiz-option[data-state="wrong"],
  .quiz-stars svg,
  .quiz-hud__streak[data-hot="true"] {
    animation: none !important;
  }
  .quiz-progress__bar { transition: none; }
}
