/* HamRadioTrainer 2026 – hrt2026.de
 * Farben aus dem Programmsymbol: Nachtblau der Kachel, Hellblau der Wellen,
 * dazu das Grün der Lernansicht. Keine Webschriften, keine fremden Server. */

:root {
  --navy: #1b3a57;
  --navy-deep: #12283d;
  --ink: #7fd4ff;
  --green: #2e7d32;
  --amber: #ef8f00;
  --red: #c62828;

  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --text: #1c232b;
  --muted: #5a6673;
  --line: #dde3ea;
  --link: #1f5f99;
  --shadow: 0 1px 2px rgba(18, 40, 61, .06), 0 6px 24px rgba(18, 40, 61, .08);
  --radius: 14px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1923;
    --surface: #16222e;
    --surface-2: #1c2b39;
    --text: #e6edf3;
    --muted: #9aabbb;
    --line: #2a3a4a;
    --link: #8fd0ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
/* Blocksatz mit Silbentrennung. Auf dem Handy bleibt es beim Flattersatz:
   in schmalen Spalten risse der Blocksatz grosse Luecken auf. */
p, .steps li { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
@media (min-width: 700px) {
  p, .steps li { text-align: justify; }
}
code { font: .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---- Kopfzeile -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: #d7e7f5; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
.nav a:hover, .nav a:focus-visible { background: rgba(255, 255, 255, .1); color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; border-radius: 1px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy-deep); flex-direction: column; padding: 8px 12px 14px; }
  .nav.open { display: flex; }
}

/* ---- Einstieg --------------------------------------------------------- */
.hero {
  background: radial-gradient(1200px 500px at 85% -10%, rgba(127, 212, 255, .25), transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 72px 0 56px;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); letter-spacing: -.02em; margin-bottom: .35em; }
.hero h1 .accent { color: var(--ink); }
.hero .lead { font-size: 1.2rem; color: #d7e7f5; max-width: 34em; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; padding: 0; list-style: none; }
.badges li { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); padding: 4px 12px; border-radius: 999px; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #276b2b; }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.hero-shots { position: relative; height: 470px; }
.hero-shots img { position: absolute; border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.hero-shots .desk { width: 118%; max-width: none; top: 30px; left: 0; }
.hero-shots .phone { width: 42%; right: -4%; top: 90px; border-radius: 22px; border: 6px solid #0b141c; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-shots { height: 320px; }
  .hero-shots .desk { width: 100%; }
  .hero-shots .phone { width: 34%; right: 0; top: 60px; }
}

/* ---- Abschnitte ------------------------------------------------------- */
section { padding: 72px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { max-width: 46em; color: var(--muted); font-size: 1.08rem; margin-bottom: 36px; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -36px; position: relative; z-index: 2; }
.fact { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.fact strong { display: block; font-size: 1.9rem; color: var(--navy); line-height: 1.1; }
@media (prefers-color-scheme: dark) { .fact strong { color: var(--ink); } }
.fact span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
section.alt .card { background: var(--bg); }
.card .icon { width: 42px; height: 42px; border-radius: 10px; background: var(--navy); color: var(--ink); display: grid; place-items: center; margin-bottom: 12px; }
.card .icon svg { width: 24px; height: 24px; }
.card p:last-child { margin-bottom: 0; }

/* ---- Lernmechanik ----------------------------------------------------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 40px; padding: 0; list-style: none; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 66px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; display: grid; place-items: center; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: .97rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 1px 10px; border-radius: 999px; color: #fff; font-size: .85rem; font-weight: 600; }
.pill.green { background: var(--green); }
.pill.amber { background: var(--amber); }
.pill.grey { background: #757575; }
.pill.red { background: var(--red); }

.ladder { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 8px 0 6px; }
.ladder div { border-radius: 10px; padding: 10px 8px; text-align: center; color: #fff; font-size: .85rem; line-height: 1.3; }
.ladder div b { display: block; font-size: 1.05rem; }
@media (max-width: 600px) { .ladder { grid-template-columns: repeat(3, 1fr); } }

.note { border-left: 4px solid var(--ink); background: var(--surface-2); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 20px 0; }

/* ---- Bildschirmfotos -------------------------------------------------- */
.tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.tabs button { font: inherit; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.gallery.phones { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .gallery.phones { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery, .gallery.phones { grid-template-columns: repeat(2, 1fr); } }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.gallery a:hover { outline: 2px solid var(--ink); }
.gallery figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
[hidden] { display: none !important; }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(5, 12, 18, .86); }
dialog.lightbox img { max-width: 96vw; max-height: 88vh; border-radius: 10px; }
dialog.lightbox p { color: #e6edf3; text-align: center; margin: 10px 0 0; }
dialog.lightbox button { position: fixed; top: 14px; right: 18px; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; cursor: pointer; }

/* ---- Downloads -------------------------------------------------------- */
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .downloads { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .downloads { grid-template-columns: 1fr; } }
.download { display: flex; flex-direction: column; }
.download h3 { display: flex; align-items: center; gap: 10px; }
.download ul { padding-left: 1.1em; margin: 0 0 16px; }
.download li { margin-bottom: 4px; }
.download .btn { margin-top: auto; justify-content: center; background: var(--navy); color: #fff; }
.download .btn:hover { background: var(--navy-deep); }

/* ---- Fuss ------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: #b9c9d8; padding: 36px 0; font-size: .95rem; }
.site-footer a { color: #d7e7f5; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---- Rechtstexte ------------------------------------------------------ */
.legal { padding: 48px 0 72px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* "75 · 135 min" nicht mitten im Wert umbrechen. */
#pruefung td:last-child, #pruefung th:last-child { white-space: nowrap; }

/* Der Fingerabdruck bricht auf dem Handy nur nach den Doppelpunkten um
   (<wbr> im HTML). Blocksatz wuerde ihn auseinanderziehen. */
.fingerprint { text-align: left; }
.fingerprint code { overflow-wrap: normal; word-break: normal; }
