.page-hero {
  background: linear-gradient(135deg, #0b1120 0%, #0d2035 60%, #0b1120 100%);
  padding: 2.5rem 2rem 2rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(0,212,255,.05) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: 1.9rem; font-weight: 800; margin-bottom: .4rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-hero p { color: var(--text2); font-size: .92rem; max-width: 700px; }
.page-hero .chap-badge {
  display: inline-block;
  background: rgba(0,212,255,.1); border: 1px solid rgba(0,212,255,.3);
  color: var(--accent); font-size: .75rem; padding: .2rem .8rem;
  border-radius: 999px; margin-bottom: .6rem; font-family: monospace;
}
.breadcrumb { font-size: .82rem; color: var(--text2); margin-bottom: 1rem; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Abschnitt-Header ── */
.section-hdr {
  display: flex; align-items: center; gap: .75rem;
  margin: 2.5rem 0 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}
.section-hdr-icon { font-size: 1.6rem; }
.section-hdr h2 { font-size: 1.25rem; font-weight: 700; color: #fff; margin: 0; }
.section-hdr .int-ref {
  margin-left: auto;
  font-size: .78rem; color: var(--accent); font-family: monospace;
  background: rgba(0,212,255,.08); border: 1px solid rgba(0,212,255,.2);
  padding: .15rem .6rem; border-radius: 4px;
}

/* ── Tonnen-Grid ── */
.buoy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.buoy-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}

.buoy-card h3 { font-size: .92rem; font-weight: 700; margin: .75rem 0 .3rem; color: #fff; }
.buoy-card .buoy-sub { font-size: .78rem; color: var(--text2); margin-bottom: .5rem; line-height: 1.5; }
.buoy-img { width:90px; height:auto; max-height:158px; object-fit:contain; }
.buoy-photo { display:block; width:auto; max-width:100%; max-height:190px; height:auto; border-radius:8px; }
.photo-fig { margin: 0 0 1.5rem; }
.photo-fig img { display:block; width:100%; height:auto; border-radius:10px; border:1px solid var(--border); }
.photo-fig figcaption, .svg-fig figcaption { font-size:.82rem; color:var(--text2); margin-top:.45rem; line-height:1.5; }
.svg-fig { max-width: 760px; margin: 0 auto 1.5rem; background: var(--card); border:1px solid var(--border); border-radius: 12px; padding: .8rem; }
.svg-fig svg { display:block; width:100%; height:auto; }
.two-col { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; align-items:start; }
.kw-list { font-size:.87rem; color:var(--text2); line-height:1.7; padding-left:1.2rem; margin:0 0 1.5rem; }
.kw-list li { margin-bottom:.35rem; }
.kw-list strong { color: var(--text); }
.lk-dt { font-size:.72rem; color: var(--text2); font-family: monospace; }
.lights { display:flex; flex-direction:column; gap:.35rem; align-items:stretch; width:100%; margin-top:.3rem; }
.light-row { display:flex; flex-direction:column; align-items:center; gap:.2rem; }
.oder { font-size: .8rem; color: var(--text); line-height: 1.45; }

/* ── Blinkende Lichter (Taktung aus PHP erzeugt) ── */
.light-beacon {
  font-size: .75rem; font-family: monospace; font-weight: 700;
  padding: .4rem .6rem; border-radius: 4px;
  display: inline-block; min-width: 60px; text-align: center;
  border: 1px solid; color: #fff;
}
.bc-W { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.4); }
.bc-R { background: rgba(239,68,68,.3); border-color: rgba(239,68,68,.6); color: #fca5a5; }
.bc-G { background: rgba(34,197,94,.3); border-color: rgba(34,197,94,.6); color: #86efac; }
.bc-Y { background: rgba(234,179,8,.3); border-color: rgba(234,179,8,.6); color: #fef08a; }
.bc-B { background: rgba(59,130,246,.3); border-color: rgba(59,130,246,.6); color: #fff; }
@media (prefers-reduced-motion: reduce) { .light-beacon { animation: none !important; } }

/* ── Zeitstrahl ── */
.tl { width: 100%; box-sizing: border-box; padding: 0 12px; margin-top: .4rem; color: var(--text); text-align: left; }
.tl-in { position: relative; padding-top: 20px; }
.tl.tl-2row .tl-in { padding-top: 35px; }
.tl-nolab .tl-in { padding-top: 6px; }
.tl-bar { position: relative; height: 20px; background: #162033; border: 1px solid #3a4a66; border-radius: 2px; }
.tl-bar i { position: absolute; top: 0; bottom: 0; }
.tl-g { position: absolute; top: 0; bottom: 0; border-left: 1px solid rgba(148,163,184,.28); z-index: 1; }
.tl-pl { position: absolute; top: -6px; bottom: -6px; border-left: 2px dashed var(--accent); z-index: 3; }
.tl-ed { position: absolute; bottom: -1px; border-left: 1.5px solid #e2e8f0; z-index: 2; }
.tl-ed { height: 24px; }
.tl-ed.r2 { height: 39px; }

.tl-lb { position: absolute; transform: translateX(-50%); white-space: nowrap; font-size: .7rem; line-height: 16px; color: var(--text); }
.tl-lb { bottom: 23px; }
.tl-lb.r2 { bottom: 38px; }

.tl-ax { position: relative; height: 32px; }
.tk { position: absolute; top: 0; height: 7px; border-left: 1px solid #cbd5e1; }
.tk5 { height: 11px; border-left-width: 2px; }
.tn { position: absolute; top: 12px; transform: translateX(-50%); font-size: .7rem; line-height: 16px; color: var(--text); white-space: nowrap; }
.tl-pr { position: relative; padding-top: 4px; }
.tl-br + .tl-cap { padding-top: 12px; }
.tl-cap { display: block; font-size: .8rem; font-weight: 400; color: var(--text); line-height: 1.4; white-space: normal; text-align: left; }
.def-box { display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .9rem 1.5rem; background: rgba(0,212,255,.07); border: 1px solid rgba(0,212,255,.35); border-left: 4px solid var(--accent); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-size: .87rem; color: var(--text2); line-height: 1.6; }
.def-term { display:block; color:#fff; font-weight:800; font-size:1rem; margin-bottom:.15rem; }
.tl-br { position: absolute; left: 0; top: 2px; height: 10px; border: 2px solid var(--accent); border-top: none; box-sizing: border-box; }



.tl-legend { font-size: .8rem; color: var(--text2); display:flex; flex-wrap:wrap; gap:.4rem 1.2rem; margin: -.5rem 0 1.25rem; }
.tl-legend i { display:inline-block; width:22px; height:9px; vertical-align:middle; margin-right:.35rem; border-radius:1px; }
.lk-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.lk-card { background: var(--card); border:1px solid var(--border); border-radius: 12px; padding: .9rem 1rem 1rem; }
.lk-head { display:flex; align-items:baseline; gap:.6rem; flex-wrap:wrap; margin-bottom:.3rem; }
.lk-abbr { font-family: monospace; font-weight: 700; color: var(--accent); font-size: 1rem; }
.lk-de { font-weight: 700; color: #fff; font-size: .9rem; }
.lk-en { font-size: .75rem; color: var(--text2); font-style: italic; }
.lk-per { margin-left:auto; font-size:.82rem; font-weight:700; color: var(--text); }
.lk-card p { font-size: .82rem; color: var(--text2); line-height: 1.55; margin: 0 0 .55rem; }

/* ── Info-Box ── */
.info-box {
  background: rgba(0,212,255,.05);
  border: 1px solid rgba(0,212,255,.2);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  font-size: .87rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.info-box strong { color: var(--text); }

/* ── Detail-Tabelle ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.detail-table {
  width: 100%; border-collapse: collapse;
  font-size: .86rem; margin: 1rem 0 1.5rem;
}
.detail-table th {
  background: rgba(0,212,255,.1);
  color: var(--accent); font-weight: 700; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .05em;
  padding: .6rem .8rem; text-align: left;
  border-bottom: 2px solid var(--border);
}
.detail-table td {
  padding: .65rem .8rem;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
  vertical-align: middle;
}

.detail-table td:first-child { color: var(--text); font-weight: 600; }

/* ── Mnemonic Box ── */
.mnemonic {
  background: linear-gradient(135deg, rgba(234,179,8,.08) 0%, rgba(234,179,8,.03) 100%);
  border: 1px solid rgba(234,179,8,.3);
  border-radius: 10px; padding: 1rem 1.25rem;
  margin: 1rem 0;
}
.mnemonic .mnemonic-title { color: #facc15; font-weight: 700; font-size: .85rem; margin-bottom: .4rem; }
.mnemonic p { font-size: .87rem; color: var(--text2); line-height: 1.6; }
.mnemonic strong { color: #fff; }

/* ── Warn-Box ── */
.warn-box {
  background: rgba(239,68,68,.06);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: 10px; padding: 1rem 1.25rem;
  font-size: .86rem; color: var(--text2); line-height: 1.7;
  margin-bottom: 1.5rem;
}
.warn-box strong { color: #f87171; }

/* ── Nav Bottom ── */
.page-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 2.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  gap: 1rem; flex-wrap: wrap;
}
.page-nav a {
  color: var(--accent); text-decoration: none; font-size: .88rem; font-weight: 600;
}
.page-nav a:hover { text-decoration: underline; }
.ki-badge{display:block;font-size:.62rem;line-height:1.2;color:#9aa0a6;margin:.1rem 0 .3rem}
@media (max-width: 600px) {
  .page-hero { padding: 1.75rem 1rem 1.5rem; }
  .page-hero h1 { font-size: 1.5rem; }
  .lk-grid { grid-template-columns: 1fr; }
}

/* ── Kapitel-Navigation ── */
.sz-nav { display: grid; gap: .55rem; margin: 1.25rem 0 .5rem; }
.sz-nav-group { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.sz-nav-cap { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; min-width: 7.5rem; font-weight: 700; }
.sz-nav a { font-size: .8rem; color: #cfe1ee; background: #0d1a28; border: 1px solid #1e3050; border-radius: 999px; padding: .22rem .75rem; text-decoration: none; }
.sz-nav a:hover { border-color: var(--accent); color: #fff; }
.sz-nav a.on { background: #003a52; border-color: var(--accent); color: #fff; font-weight: 700; }
.sz-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin: 1rem 0 1.5rem; }
.sz-tile { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.1rem; }
.sz-tile h3 { color: #fff; font-size: 1rem; margin: 0 0 .5rem; }
.sz-tile p { font-size: .84rem; color: var(--text2); line-height: 1.55; margin: 0 0 .6rem; }
.sz-tile ul { margin: 0; padding-left: 1.1rem; }
.sz-tile li { font-size: .86rem; margin-bottom: .25rem; }
.sz-tile a { color: var(--accent); text-decoration: none; font-weight: 600; }
.sz-tile a:hover { text-decoration: underline; }
@media (max-width: 600px) { .sz-nav-cap { min-width: 100%; } }
/* ── Kapitel-Karten der Startseite (Stil wie Hauptseite) ── */
.sz-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.25rem; margin: 1.4rem 0 1.6rem; }
.sz-cat { background: rgba(2,12,26,0.76); border: 1px solid rgba(0,200,240,0.18); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .22s, border-color .25s, box-shadow .25s; }
.sz-cat:hover { transform: translateY(-5px); border-color: rgba(0,220,255,.45); box-shadow: 0 20px 58px rgba(0,0,0,.5), 0 0 0 1px rgba(0,220,255,.07); }
.sz-cat-photo { height: 150px; overflow: hidden; position: relative; flex-shrink: 0; background: #020617; }
.sz-cat-photo img, .sz-cat-photo svg { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.sz-cat-photo img { filter: brightness(.55) saturate(.85) contrast(1.05); }
.sz-cat:hover .sz-cat-photo img, .sz-cat:hover .sz-cat-photo svg { transform: scale(1.06); }
.sz-cat-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 35%, rgba(2,12,26,.94) 100%); pointer-events: none; }
.sz-cat-photo::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 2; }
.sz-cp-a::before { background: linear-gradient(90deg, #dc2626, #00d4ff); }
.sz-cp-b::before { background: linear-gradient(90deg, #facc15, #00d4ff); }
.sz-cp-c::before { background: linear-gradient(90deg, #16a34a, #00d4ff); }
.sz-cat-body { padding: 1.15rem 1.35rem 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .55rem; }
.sz-cat-kicker { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #f0b840; }
.sz-cat-title { font-size: 1.1rem; font-weight: 800; color: var(--text); line-height: 1.3; }
.sz-cat-desc { font-size: .84rem; color: var(--text2); line-height: 1.6; flex: 1; }
.sz-cat-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.sz-cat-tags a { font-size: .74rem; font-weight: 700; padding: .22rem .6rem; border-radius: 999px; background: rgba(0,212,255,.08); color: var(--accent); border: 1px solid rgba(0,212,255,.2); text-decoration: none; }
.sz-cat-tags a:hover { background: rgba(0,212,255,.18); color: #fff; }
.sz-cat-arrow { font-size: 1.2rem; color: var(--accent); align-self: flex-end; opacity: .6; text-decoration: none; transition: opacity .2s, transform .2s; }
.sz-cat:hover .sz-cat-arrow { opacity: 1; transform: translateX(4px); }
@keyframes kcBlink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .08; } }
.kc-a { animation: kcBlink 2.6s steps(1) infinite; }
.kc-b { animation: kcBlink 4s steps(1) infinite .7s; }
.kc-c { animation: kcBlink 3.2s steps(1) infinite 1.4s; }
@media (prefers-reduced-motion: reduce) { .kc-a, .kc-b, .kc-c { animation: none; } }
@media (max-width: 640px) { .sz-cats { grid-template-columns: 1fr; } .sz-cat-photo { height: 120px; } }
/* ── Kapitel-Navigation (7 Kapitel, Stand 09.10.2026) ── */
.sz-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 1.25rem 0 .5rem; }
.sz-nav .sz-nav-home { font-size: .78rem; font-weight: 700; color: #cfe1ee; background: #0d1a28; border: 1px solid #1e3050; border-radius: 999px; padding: .25rem .8rem; text-decoration: none; }
.sz-nav .sz-nav-home.on, .sz-nav .sz-nav-home:hover { border-color: var(--accent); color: #fff; }
.sz-nav-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .15rem; background: rgba(13,26,40,.7); border: 1px solid #1e3050; border-radius: 999px; padding: .15rem .25rem .15rem .15rem; }
.sz-nav-group.cur { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(0,212,255,.25); }
.sz-nav-num { width: 1.45rem; height: 1.45rem; border-radius: 50%; background: #0f2a3d; color: #f0b840; font-size: .74rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sz-nav .sz-nav-group a { font-size: .78rem; color: #cfe1ee; background: transparent; border: none; border-radius: 999px; padding: .2rem .55rem; text-decoration: none; }
.sz-nav .sz-nav-group a:hover { color: #fff; background: rgba(0,212,255,.12); }
.sz-nav .sz-nav-group a.on { background: #003a52; color: #fff; font-weight: 700; }
/* ganze Karte anklickbar */
a.sz-cat { text-decoration: none; color: inherit; }
.sz-cat-tags span { font-size: .72rem; font-weight: 700; padding: .2rem .58rem; border-radius: 999px; background: rgba(0,212,255,.08); color: var(--accent); border: 1px solid rgba(0,212,255,.2); }
.sz-cat-photo img { filter: brightness(.78) saturate(.95); }
.sz-cat-num { position: absolute; left: .7rem; bottom: .55rem; z-index: 3; width: 2rem; height: 2rem; border-radius: 50%; background: rgba(2,12,26,.85); border: 1px solid rgba(240,184,64,.6); color: #f0b840; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.sz-cat-arrow { pointer-events: none; }
.sz-cat-photo { height: 175px; }
@media (max-width: 640px) { .sz-cat-photo { height: 150px; } }

.bi { display: block; margin-top: .3rem; }
.bi svg { width: 28px; height: 41px; display: block; }

.sz-nav .sz-nav-group a { display: inline-flex; align-items: center; gap: .3rem; }
.sz-ni { display: inline-flex; gap: 1px; }
.sz-ni svg { height: 22px; width: auto; display: block; }

/* Sprungziel aus den Prüfungsfragen hervorheben */
.buoy-card, .lk-card { scroll-margin-top: 1.5rem; }
.buoy-card:target, .lk-card:target { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,212,255,.35), 0 0 28px rgba(0,212,255,.25); }
