:root { --navy: #12284a; --sky: #e8f1fb; --gold: #f2b200; --ink: #1b2430; --line: #cfd9e6; --bad: #b3261e; --ok: #1d6b3a; --field: #6b7a8f; --ink-soft: #445; --surface: #f6f9fc; --surface-2: #f3f6fa; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: #fff; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1rem; }
.band { background: var(--navy); color: #fff; }
.band a { color: #fff; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem 1.5rem; padding-top: .4rem; padding-bottom: .4rem; }
.brand { font-weight: 700; font-size: 1.2rem; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; }
.brand img { height: 30px; width: auto; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.1rem; }
nav a { display: inline-block; text-decoration: none; padding: .75rem 0; min-height: 44px; border-bottom: 3px solid transparent; }
nav a[aria-current="page"], nav a:hover { border-bottom-color: var(--gold); }
nav li.cta { margin-left: .3rem; }
nav li.cta a { background: var(--gold); color: #1b1b1b; border-radius: 8px; padding: .5rem .9rem; min-height: 0; border-bottom: 0; font-weight: 600; }
nav li.cta a:hover, nav li.cta a[aria-current="page"] { background: #ffc933; }
.menu-toggle { display: none; background: transparent; color: #fff; border: 1px solid #fff; min-height: 44px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
.band :focus-visible { outline-color: #fff; box-shadow: none; }
main { padding-top: 1.5rem; padding-bottom: 3rem; min-height: 60vh; }
.foot { margin-top: 2rem; padding: 1rem 0; }
.small { font-size: .85rem; opacity: .85; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: .5rem; top: .5rem; background: #fff; color: #12284a; font-weight: 700; padding: .5rem .8rem; z-index: 9; }
h1, h2, h3, .brand { font-family: "Manrope Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1 { font-size: 1.9rem; line-height: 1.2; color: var(--navy); font-weight: 800; letter-spacing: -.01em; }
h2 { color: var(--navy); margin-top: 2rem; font-size: 1.45rem; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
h1:not(#detail h1)::after, .hero h1::after { content: ''; display: block; width: 64px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold), transparent); margin-top: .5rem; }
.hero { background: linear-gradient(rgba(232, 241, 251, .84), rgba(232, 241, 251, .72)), url(/himmel.jpg) center / cover, var(--sky); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; }
.btn, button { background: var(--gold); color: #1b1b1b; border: 0; border-radius: 8px; padding: .65rem 1.1rem; min-height: 44px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
button.secondary, .btn.secondary { background: #fff; border: 1px solid var(--navy); color: var(--navy); }
button:disabled { opacity: .5; cursor: default; }
form { display: grid; gap: .9rem; }
label { display: grid; gap: .25rem; font-weight: 600; font-size: .95rem; }
label small { font-weight: 400; color: #556; }
input, select, textarea { font: inherit; font-size: 16px; min-height: 44px; padding: .55rem .6rem; border: 1px solid var(--field); border-radius: 8px; width: 100%; background: #fff; }
textarea { min-height: 7rem; resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: .7rem .9rem; }
.checks { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; min-height: 44px; align-content: center; }
.check input { width: auto; min-height: 0; margin-top: .3rem; }
label.inline { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; min-height: 44px; }
label.inline input[type=checkbox] { width: 1.5rem; height: 1.5rem; min-height: 0; margin-top: .1rem; flex: none; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .7rem; margin-bottom: 1rem; align-items: end; background: #f6f9fc; border: 1px solid var(--line); border-radius: 12px; padding: .9rem; }
.filters button[type=reset] { justify-self: start; }
.cards { display: grid; gap: .9rem; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; position: relative; background: #fff; }
.cards > .card:hover { border-color: var(--navy); box-shadow: 0 2px 10px rgba(18, 40, 74, .12); }
.card h3 { margin: 0 0 .4rem; color: var(--navy); font-size: 1.15rem; }
.card:has(> button.star) > h3 { padding-right: 6.5rem; }
.cards > .card > h3 a::after { content: ''; position: absolute; inset: 0; }
.cards > .card > button.star { position: absolute; top: .7rem; right: .7rem; margin: 0; padding: .25rem .6rem; min-height: 36px; font-size: .85rem; z-index: 1; }
.cards > .card > p { margin: .25rem 0; }
.tag { display: inline-block; background: var(--sky); border-radius: 99px; padding: .15rem .65rem; font-size: .8rem; margin: 0 .3rem .3rem 0; }
.tag.kind { background: var(--navy); color: #fff; }
.tag.source { background: #fff; border: 1px dashed var(--navy); color: var(--navy); }
.tag.hot { background: #fff1c2; border: 1px solid var(--gold); }
.meta { color: #445; font-size: .92rem; }
.msg { padding: .7rem .9rem; border-radius: 8px; margin: .8rem 0; }
.msg.err { background: #fdecea; color: var(--bad); }
.msg.ok { background: #e7f5ec; color: var(--ok); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice { background: #fff8e1; border-left: 4px solid var(--gold); padding: .7rem .9rem; border-radius: 4px; }
.draft { background: #fdecea; border-left: 4px solid var(--bad); padding: .7rem .9rem; border-radius: 4px; }
[hidden] { display: none !important; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
a { color: #0b4a9e; }
.band a { color: #fff; }
.btn, .btn:hover { color: #1b1b1b; }
.btn.secondary { color: var(--navy); }

.wx { white-space: pre-wrap; font-size: .85rem; background: #f3f6fa; padding: .5rem .75rem; border-radius: 6px; }
.wx:empty { display: none; }

/* Preistabelle, Preiszeilen, Merken-Knopf */
table.prices { border-collapse: collapse; margin: .6rem 0; width: 100%; max-width: 32rem; }
table.prices th, table.prices td { border-bottom: 1px solid var(--line); padding: .35rem .5rem; text-align: left; }
table.prices td { text-align: right; white-space: nowrap; }
.price-row { display: grid; grid-template-columns: 2fr 1fr; gap: .4rem; margin-bottom: .3rem; }
button.star { margin-top: .4rem; }
.filters .check { align-self: end; }

/* Startseite */
.hero { display: grid; grid-template-columns: 1fr; gap: 1.2rem; align-items: center; padding: 1.5rem; }
.hero.with-img { grid-template-columns: 1.4fr 1fr; }
.hero h1 { margin-top: 0; font-size: 2.1rem; }
.hero-img { width: 100%; height: 100%; max-height: 380px; object-fit: cover; object-position: 75% 50%; border-radius: 10px; }
.hero-search { background: #fff; border-radius: 12px; padding: .9rem; border: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; }
.hero-links { margin: .8rem 0 0; font-size: .95rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; margin: 1rem 0 2rem; padding: 0; list-style: none; }
.tile { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 1rem; text-decoration: none; color: var(--ink); height: 100%; background: #fff; }
.tile:hover { border-color: var(--navy); box-shadow: 0 2px 10px rgba(18, 40, 74, .12); }
.tile .ico { display: block; margin-bottom: .4rem; height: 34px; color: var(--navy); }
.tile .ico svg { height: 34px; width: auto; }
.tile strong { display: block; color: var(--navy); }
.tile span.meta { display: block; margin-top: .2rem; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; list-style: none; padding: 0; }
.steps li { counter-increment: s; background: var(--sky); border-radius: 12px; padding: 1rem; }
.steps li strong { display: block; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: .4rem; }

/* Profilart-Kacheln */
.rolegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .6rem; margin-top: .4rem; }
.role { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid var(--field); border-radius: 10px; padding: .7rem .8rem; font-weight: 400; cursor: pointer; background: #fff; }
.role:hover { border-color: var(--navy); }
.role:has(input:checked) { border-color: var(--navy); background: var(--sky); box-shadow: inset 0 0 0 1px var(--navy); }
.role:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 2px; }
.role input { width: auto; min-height: 0; margin-top: .25rem; }
.role strong { display: block; color: var(--navy); }
.role small { display: block; color: #445; }
fieldset.roles { border: 0; padding: 0; }
fieldset.roles legend { font-weight: 600; padding: 0; }

/* Fußzeile */
.foot ul { list-style: none; margin: 0 0 .5rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0 .9rem; }
.foot li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .3rem; }

/* schmale Bildschirme */
@media (max-width: 720px) {
  h1 { font-size: 1.55rem; }
  .hero { padding: 1rem; }
  .hero.with-img { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .hero-img { max-height: 180px; order: -1; }
  .js .menu-toggle { display: inline-block; }
  .js nav.collapsed { display: none; }
  nav { flex-basis: 100%; }
  nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  nav a { display: block; border-bottom: 1px solid #2c4470; }
  nav li.cta { margin: .6rem 0; }
  nav li.cta a { text-align: center; }
  .filters { grid-template-columns: 1fr 1fr; }
  table.prices td, table.prices th { padding: .35rem .3rem; }
}
@media (max-width: 420px) {
  .filters, .hero-search { grid-template-columns: 1fr; }
}

/* Suchfeld breiter, Detailansicht, Bildband */
.filters label:has(input[type=search]) { grid-column: span 2; }
#detail h2 { margin-top: 0; }
#detail p { margin: .45rem 0; }
.legal { margin-top: 1rem; padding: .6rem .8rem; background: #f3f6fa; border-radius: 8px; }
.legal p { margin: .2rem 0; }
.banner { display: block; width: 100%; height: 150px; object-fit: cover; border-radius: 12px; margin-bottom: 1rem; }
@media (max-width: 720px) {
  .filters label:has(input[type=search]) { grid-column: 1 / -1; }
  .banner { height: 100px; }
}

/* Zustände und Feinschliff */
.btn:hover, button:hover:not(:disabled) { filter: brightness(.94); }
button.secondary:hover:not(:disabled), .btn.secondary:hover { background: var(--sky); filter: none; }
.hero-links a { display: inline-block; padding: .55rem .25rem; }
.hero-links { margin-top: .4rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Filter einklappen (schmale Bildschirme), Leerzustand, Detail-Überschrift, Pflichtfelder */
.filterbox { margin-bottom: 1rem; }
.filterbox > summary { cursor: pointer; font-weight: 600; padding: .7rem .9rem; min-height: 44px; border: 1px solid var(--field); border-radius: 10px; background: #fff; color: var(--navy); list-style: none; }
.filterbox > summary::after { content: ' ▾'; }
.filterbox[open] > summary::after { content: ' ▴'; }
.filterbox[open] > summary { margin-bottom: .5rem; }
/* Suchfeld + Knopf in einer Zeile, Rest der Filter darunter (einklappbar) */
.filters .search-btn { align-self: end; }
.filters:has(> .filterbox) { display: flex; flex-wrap: wrap; gap: .7rem; align-items: end; }
.filters:has(> .filterbox) > label:has(input[type=search]) { flex: 1 1 14rem; }
.filters:has(> .filterbox) > label:has(input[name=icao]) { flex: 0 0 8rem; }
.filters input[name=icao] { text-transform: uppercase; }
.cards > .more { grid-column: 1 / -1; text-align: center; }
.filters > .filterbox { flex: 1 1 100%; grid-column: 1 / -1; margin: 0; }
.filters-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .7rem; align-items: end; }
.filters-inner > button[type=reset] { justify-self: start; }
@media (min-width: 721px) { .filterbox > summary { display: none; } .filterbox[open] > summary { margin: 0; } }
.empty ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.empty li { margin: .5rem 0; }
#detail h1 { font-size: 1.6rem; margin: 0 0 .4rem; }
.req { color: var(--bad); }
.fine { font-size: .9rem; color: var(--ink-soft); }
.msg:focus { outline: 3px solid var(--navy); outline-offset: 2px; }

/* Karte: Größe, Legende, Punkte */
#map { height: min(520px, 70vh); max-width: 100%; border-radius: 12px; }
.legend { list-style: none; padding: 0; margin: .4rem 0 1rem; display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .9rem; }
.dot { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; margin-right: .4rem; vertical-align: -1px; border: 1px solid #fff; box-shadow: 0 0 0 1px #8a96a8; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; box-shadow: none; }

/* Zweispaltige Kartenlisten am Desktop */
@media (min-width: 860px) {
  #results.cards, #list.cards, #items.cards { grid-template-columns: repeat(2, 1fr); }
}
.cards > .empty { grid-column: 1 / -1; }
button.danger { background: #fff; color: var(--bad); border: 1px solid var(--bad); }

/* Profil-Formular: einklappbare Zusatzbereiche, Konto */
details.optional { border: 1px solid var(--line); border-radius: 10px; padding: .2rem .9rem; background: #fff; }
details.optional > summary { cursor: pointer; font-weight: 600; color: var(--navy); min-height: 44px; display: flex; align-items: center; gap: .4rem; }
details.optional[open] { padding-bottom: .9rem; display: grid; gap: .9rem; }
details.optional > summary small { font-weight: 400; color: var(--ink-soft); }
#switch select { width: auto; max-width: 100%; }
#delete { margin-left: 1.5rem; }

.benefits { margin: .8rem 0; }
.example { margin: 1rem 0 1.5rem; background: var(--surface); border-style: dashed; }
.example h3 { padding-right: 0; }

/* Ratgeber, Glossar, FAQ */
.glossary dt { font-weight: 700; color: var(--navy); margin-top: 1rem; }
.glossary dd { margin: .2rem 0 0; }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 0 1rem; margin: .6rem 0; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); min-height: 44px; display: flex; align-items: center; }
.faq details[open] { padding-bottom: .6rem; }
main > ul:not(.tiles), main > ol:not(.steps) { max-width: 70ch; }

#toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translate(-50%, 2rem); background: var(--navy); color: #fff; padding: .7rem 1rem; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: 90vw; z-index: 20; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { #toast { transition: none; } }

.tablewrap { overflow-x: auto; max-width: min(32rem, 100%); min-width: 0; }
.tablewrap table.prices { margin: .6rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[aria-invalid="true"] { border-color: #b00020; outline: 2px solid #b00020; outline-offset: 1px; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }

/* Werkzeuge */
dl.result { display: grid; grid-template-columns: minmax(10rem, 1fr) 2fr; gap: .35rem .9rem; margin: .4rem 0 0; }
dl.result dt { font-weight: 600; }
dl.result dd { margin: 0; }
dl.result dd.strong { font-weight: 700; color: var(--navy); }
fieldset { border: 1px solid var(--line); border-radius: 8px; display: grid; gap: .9rem; padding: .8rem 1rem; }
#members input, #items input { min-width: 5rem; }
@media (max-width: 520px) { dl.result { grid-template-columns: 1fr; } }


/* breiterer Inhalt auf großen Bildschirmen */
main > p { max-width: 80ch; }

/* Marineblaues Farbdesign (Kopf und Inhalt) */
:root { --bg: #0b1d3b; --card: #13305c; --card-2: #10284d; --line-d: #34578f; --txt: #e9eff8; --txt-soft: #b9c7dc; --lnk: #9fcbff; }
body { background: var(--bg); color: var(--txt); }
.band { background: #0a1a34; border-bottom: 1px solid var(--line-d); }
h1, h2, h3, .glossary dt, dl.result dd.strong { color: #fff; }
a { color: var(--lnk); }
.band a, .btn.secondary:hover { color: #fff; }
.btn, .btn:hover { color: #1b1b1b; }
.meta, .fine, label small, .role small, details.optional > summary small { color: var(--txt-soft); }
.hero { background: linear-gradient(rgba(11, 29, 59, .80), rgba(11, 29, 59, .68)), url(/himmel.jpg) center / cover, var(--card); border: 1px solid var(--line-d); }
.hero-search, .filters { background: var(--card); border-color: var(--line-d); }
.card, .tile, .role, .faq details, details.optional, .filterbox > summary { background: var(--card); border-color: var(--line-d); color: var(--txt); }
.tile .ico { color: #e9eff8; }
.card h3, .card h3 a, .tile strong, .role strong, .faq summary, details.optional > summary, .filterbox > summary { color: #fff; }
.card h3 a { color: #fff; }
.cards > .card:hover, .tile:hover, .role:hover { border-color: var(--gold); box-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.tile { color: var(--txt); }
.role:has(input:checked) { background: #1b427a; border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.example { background: var(--card-2); }
.legal, .wx { background: var(--card-2); color: var(--txt); }
fieldset { border-color: var(--line-d); }
fieldset legend { color: var(--txt); }
.tag { background: #234b85; color: #fff; }
.tag.kind { background: var(--gold); color: #1b1b1b; }
.tag.source { background: transparent; border-color: var(--lnk); color: var(--lnk); }
.tag.hot { background: #3a3414; border-color: var(--gold); color: #ffe9a3; }
.steps li { background: var(--card); color: var(--txt); }
.steps li::before { background: var(--gold); color: #1b1b1b; }
.notice { background: #2a2a14; color: #fff3c4; }
.msg.err { background: #4a1d1d; color: #ffd4d0; }
.msg.ok { background: #14402a; color: #c9f2d8; }
.draft { background: #4a1d1d; color: #ffd4d0; }
button.secondary, .btn.secondary { background: transparent; border-color: #fff; color: #fff; }
button.secondary:hover:not(:disabled), .btn.secondary:hover { background: #1b427a; }
button.danger { background: transparent; color: #ffb4ab; border-color: #ffb4ab; }
.req { color: #ffb4ab; }
table.prices th, table.prices td { border-bottom-color: var(--line-d); }
.dot { border-color: var(--bg); }
.foot { background: #0a1a34; border-top: 1px solid var(--line-d); }
#toast { background: #fff; color: var(--bg); }
:focus-visible { outline-color: var(--gold); box-shadow: 0 0 0 2px var(--bg); }
.msg:focus { outline-color: var(--gold); }
.hero-search label, .filters label { color: var(--txt); }

/* Karte: Hinweis zum Zoomen mit Strg+Mausrad */
.map-hint { position: absolute; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; text-align: center; background: rgba(5, 12, 26, .62); color: #fff; font-size: 1.4rem; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s; border-radius: inherit; }
.map-hint.show { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .map-hint { transition: none; } }

/* Sprachwahl */
.lang { display: flex; gap: .25rem; align-items: center; }
.lang a { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .55rem; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-size: .85rem; font-weight: 600; min-height: 36px; }
.lang a svg { border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.lang a[href]:hover { border-color: var(--line-d); background: rgba(255, 255, 255, .08); }
.lang a[aria-current] { border-color: var(--gold); background: rgba(255, 255, 255, .08); }
@media (max-width: 720px) { .lang { flex-basis: 100%; order: 3; padding-bottom: .5rem; } }

/* Sprechfunk-Quiz */
.quiz-form { display: grid; gap: .9rem; max-width: 40rem; }
.quiz-form .check select { margin-left: .4rem; width: auto; }
.quiz-top { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.quiz-top p { margin: 0; }
.quiz-timer { margin-left: auto !important; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--gold); }
.quiz-timer.low { color: #ffb4ab; }
.quiz-bar { height: 6px; background: var(--card-2); border-radius: 6px; margin: .6rem 0 1rem; overflow: hidden; }
.quiz-bar > div { height: 100%; background: var(--gold); transition: width .2s; }
#q-text { margin-top: .5rem; outline: none; }
.quiz-answers { display: grid; gap: .6rem; max-width: 52rem; }
button.ans { display: flex; gap: .8rem; align-items: flex-start; text-align: left; background: var(--card); color: var(--txt); border: 1px solid var(--line-d); font-weight: 400; width: 100%; padding: .7rem .9rem; }
button.ans:hover:not(:disabled) { border-color: var(--gold); }
button.ans .ans-l { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #234b85; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }
button.ans.picked { border-color: var(--gold); background: #1b427a; box-shadow: inset 0 0 0 1px var(--gold); }
button.ans.right { background: #14402a; border-color: #4cc17f; color: #fff; }
button.ans.wrong { background: #4a1d1d; border-color: #ff8a80; color: #fff; }
button.ans:disabled { opacity: 1; cursor: default; }
.quiz-nav { display: flex; gap: .5rem; margin: .6rem 0; }
.quiz-nav button { flex: 1 1 0; min-width: 0; padding-left: .4rem; padding-right: .4rem; }
.quiz-nav #q-prev { flex: 0 0 3rem; }
.quiz-topics { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.choices, .checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; margin: .4rem 0 .6rem; }
.choices.wide { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.choice { position: relative; display: block; border: 1px solid var(--line); border-radius: 12px; padding: .6rem 1.9rem .6rem .7rem; cursor: pointer; background: #fff; font-weight: 500; color: var(--navy); line-height: 1.25; opacity: .65; min-height: 0; font-size: .9rem; overflow-wrap: break-word; hyphens: auto; }
.choice strong { display: block; color: var(--navy); }
.choice .meta { display: block; margin-top: .2rem; font-weight: 400; }
.choice input[type=checkbox], .choice input[type=radio] { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice select { width: 100%; margin-top: .4rem; position: relative; z-index: 1; }
.choice::after { content: ''; position: absolute; top: .65rem; right: .55rem; width: 1.05rem; height: 1.05rem; border: 2px solid var(--field); border-radius: 5px; box-sizing: border-box; }
.choice:has(input[type=radio])::after { border-radius: 50%; }
.choice:has(input:checked) { opacity: 1; border-color: var(--navy); background: var(--sky); box-shadow: inset 0 0 0 1px var(--navy); }
.choice:has(input:checked)::after { background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; border-color: var(--navy); }
.choice:has(input:disabled) { opacity: .35; cursor: not-allowed; }
.choice:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 2px; }
.filters .choice { align-self: end; }
.quiz-overlay { position: fixed; inset: 0; background: rgba(5, 12, 24, .94); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.quiz-overlay[hidden] { display: none; }
.quiz-overlay-in { max-width: 32rem; width: 100%; max-height: 100%; overflow: auto; }
/* Fragenansicht: schlank, auf dem Smartphone ohne Scrollen (Kopf, Fuß und Einleitung ausgeblendet) */
body.quiz-running .band:not(.foot), body.quiz-running #intro, body.quiz-running #notes { display: none; }
body.quiz-running main.wrap { padding-top: .5rem; padding-bottom: .5rem; }
.quiz-run { display: flex; flex-direction: column; min-height: calc(100dvh - 1rem); }
.quiz-run[hidden] { display: none; }
.quiz-run .quiz-top { gap: .2rem .8rem; flex-wrap: nowrap; }
.quiz-run .quiz-bar { margin: .35rem 0 .6rem; height: 4px; }
.quiz-body { flex: 1 1 auto; }
.quiz-run #q-text { font-size: 1.05rem; line-height: 1.3; margin: 0 0 .5rem; }
.quiz-run .quiz-answers { gap: .55rem; }
.quiz-run button.ans { padding: .75rem .85rem; gap: .7rem; font-size: 1.1rem; line-height: 1.3; min-height: 3.2rem; align-items: center; }
.quiz-run button.ans .ans-l { width: 2rem; height: 2rem; font-size: 1rem; }
.quiz-run .msg { margin: .5rem 0 0; padding: .4rem .6rem; font-size: .9rem; }
.quiz-run .quiz-nav { position: sticky; bottom: 0; padding: .4rem 0; margin: .4rem 0 0; background: var(--bg, #0b1a30); }
.quiz-run.tight #q-text { font-size: 1rem; margin-bottom: .35rem; }
.quiz-run.tight button.ans { font-size: 1rem; padding: .5rem .7rem; line-height: 1.25; min-height: 2.8rem; }
.quiz-run.tight .quiz-answers { gap: .4rem; }
.quiz-run.tight button.ans .ans-l { width: 1.7rem; height: 1.7rem; font-size: .9rem; }
.quiz-run.tighter #q-text { font-size: .95rem; }
.quiz-run.tighter button.ans { font-size: .92rem; padding: .4rem .55rem; min-height: 2.5rem; }
.quiz-run.tighter .msg { font-size: .8rem; padding: .25rem .5rem; }
.quiz-run #q-img-box { margin: 0 0 .4rem; }
.quiz-run #q-img-box img { width: 56px; padding: .2rem; }
.quiz-map { display: flex; flex-wrap: wrap; gap: .4rem; }
button.dotq { min-height: 40px; min-width: 40px; padding: .2rem; background: transparent; color: var(--txt); border: 1px solid var(--line-d); font-weight: 600; }
button.dotq.done { background: #234b85; color: #fff; }
button.dotq.cur { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
#q-img-box img { background: #fff; border-radius: 8px; padding: .3rem; width: 78px; height: auto; }
.quiz-sum { font-size: 1.25rem; font-weight: 700; }
.quiz-review { display: grid; gap: 1rem; padding-left: 1.2rem; max-width: 52rem; }
.quiz-review p { margin: .25rem 0; }
.quiz-review .wrong-a { color: #ffb4ab; }
.quiz-review .right-a { color: #8fe0b0; }
#result:focus, #run:focus { outline: none; }
/* Auswahlkästen im Dunkelmodus (nach den hellen Regeln, gleiche Spezifität) */
.choice { background: var(--card); border-color: var(--line-d); color: var(--txt); }
.choice strong { color: #fff; }
.choice:hover { border-color: var(--gold); }
.choice:has(input:checked) { background: #1b427a; border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.choice:has(input:checked)::after { background-color: var(--gold); border-color: var(--gold); }
.choice:has(input:focus-visible) { outline-color: var(--gold); }
#ratings-list { margin-bottom: 1rem; }
#ratings-list .card button { min-height: 36px; padding: .2rem .8rem; font-size: .85rem; }
.choices.stars { grid-template-columns: repeat(5, 1fr); }
.choices.stars .choice { text-align: center; padding: .5rem .2rem; }
.choices.stars .choice::after { display: none; }

/* Lernwerkzeuge: Funknavigation und Sprechfunk-Simulation */
.nav-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .6rem 1rem; max-width: 48rem; margin: .5rem 0; }
.nav-controls label { display: grid; gap: .2rem; font-weight: 600; }
.nav-controls output { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--gold); margin-left: .4rem; }
.nav-controls input[type=range] { width: 100%; }
.nav-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin: .6rem 0 1.2rem; max-width: 52rem; }
.nav-grid figure { margin: 0; text-align: center; }
.nav-grid svg { width: 100%; height: auto; max-width: 220px; color: inherit; }
.nav-grid figcaption { font-size: .85rem; opacity: .8; }
.sim-chart { margin: .4rem 0; max-width: 28rem; }
.sim-chart svg { width: 100%; height: auto; background: #dbe7d3; border-radius: 10px; color: #10233f; }
.sim-chart figcaption { font-size: .85rem; opacity: .8; }
.sim-atis { margin: .4rem 0; }
.sim-prompt { font-weight: 600; max-width: 46rem; }
.sim-chips { display: flex; flex-wrap: wrap; gap: .4rem; min-height: 2.6rem; padding: .4rem; border: 1px dashed var(--line, #999); border-radius: 10px; margin-bottom: .6rem; }
.sim-chips.built { min-height: 3rem; }
.chip { padding: .35rem .65rem; min-height: 0; border-radius: 999px; font-size: .95rem; background: var(--card, #fff); color: var(--txt, #111); border: 1px solid var(--line-d, #888); font-weight: 500; cursor: pointer; }
.chip.on { background: #234b85; color: #fff; border-color: #234b85; }
.chip:disabled { opacity: .3; cursor: default; }
.chip:hover:not(:disabled) { border-color: var(--gold); }
.tool-notice { margin-top: 1.2rem; font-size: .92rem; }
.app-promo { margin: 1rem 0; padding: .7rem .9rem; border: 1px solid var(--line-d, #ccc); border-radius: 6px; }
.app-promo p { margin: 0; }

/* Kartentitel als h2 (lückenlose Überschriftenebenen): gleiche Optik wie .card h3 */
.card h2.card-h { margin: 0 0 .4rem; color: #fff; font-size: 1.15rem; letter-spacing: normal; }
.cards > .card > h2.card-h a::after { content: ''; position: absolute; inset: 0; }
.card h2.card-h a { color: #fff; text-decoration: none; }
.card h2.card-h a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
