/* ══════════════════════════════════════════════════════
   THW Grundausbildung · Landingpage
   Neues THW-Design (angelehnt an thw.de)
   Blau #003399 · Gelb #EAE456 · scharfe Ecken · flach
   ══════════════════════════════════════════════════════ */

:root {
  --thw-blue:       #003399;   /* Primärblau */
  --thw-blue-2:     #0077b6;   /* Hero-Verlauf oben */
  --thw-blue-dark:  #002266;
  --thw-blue-xdark: #001a4d;
  --thw-blue-light: #e6ecf7;   /* helle Blaufläche */
  --thw-yellow:     #EAE456;   /* THW-Gelb (gedämpft) */
  --thw-yellow-dk:  #d9d23f;
  --ink:            #202020;    /* Textfarbe */
  --white:          #ffffff;
  --gray-50:        #f8f8f9;
  --gray-100:       #f4f5f6;
  --gray-200:       #e3e5e8;
  --gray-400:       #8a9099;
  --gray-600:       #565b62;
  --maxw:           1080px;
}

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

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

body {
  font-family: 'BundesSans', 'BundesSansWeb', Calibri, 'Segoe UI', 'Droid Sans', Arial, 'Helvetica Neue', Helvetica, sans-serif;
  background: var(--white);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ──────────────────────────────────
   HEADER
────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-logo { height: 54px; width: auto; flex-shrink: 0; }
.header-text { flex: 1; min-width: 0; }
.header-text h1 {
  color: var(--thw-blue);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}
.header-text p {
  color: var(--gray-600);
  font-size: .82rem;
  margin-top: 2px;
}
.header-nav { display: flex; gap: 8px; flex-shrink: 0; }
.header-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--thw-blue);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
  padding: 9px 16px;
  border: 1.5px solid var(--thw-blue);
  white-space: nowrap;
  transition: background .16s, color .16s;
}
.header-nav a svg { width: 15px; height: 15px; }
.header-nav a:hover { background: var(--thw-blue); color: var(--white); }
.header-nav .nav-label { display: none; }

/* Gelber Akzentstreifen unter dem Header */
.accent-bar { height: 4px; background: var(--thw-yellow); }

/* ──────────────────────────────────
   HERO
────────────────────────────────── */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 80% -20%, var(--thw-blue-2) 0%, var(--thw-blue) 55%, var(--thw-blue-dark) 100%);
  color: var(--white);
  overflow: hidden;
}
/* Zahnrad-/Strukturmotiv dezent im Hintergrund */
.hero::before {
  content: "";
  position: absolute;
  top: -90px; right: -120px;
  width: 540px; height: 540px;
  background:
    repeating-radial-gradient(circle at center, rgba(255,255,255,.05) 0 1px, transparent 1px 26px);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 24px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 70px 24px 78px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--thw-yellow);
  color: var(--thw-blue);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 14px;
}
.hero-badge svg { width: 15px; height: 15px; }
.hero h2 {
  font-size: clamp(2.1rem, 5.6vw, 3.3rem);
  font-weight: 700;
  line-height: 1.12;
  margin-top: 22px;
  max-width: 18ch;
}
/* Gelbe Unterstreichung wie auf thw.de */
.hero h2 .hl {
  color: var(--white);
  box-shadow: inset 0 -.14em 0 var(--thw-yellow);
}
.hero-lead {
  margin-top: 22px;
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  color: rgba(255,255,255,.9);
  max-width: 58ch;
}
.hero-cta {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ──────────────────────────────────
   BUTTONS (eckig, flach)
────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 22px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .16s, color .16s, border-color .16s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--thw-yellow);
  color: var(--thw-blue);
  border-color: var(--thw-yellow);
}
.btn-primary:hover { background: var(--thw-yellow-dk); border-color: var(--thw-yellow-dk); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-ghost:hover { background: var(--white); color: var(--thw-blue); border-color: var(--white); }

/* ──────────────────────────────────
   SECTIONS
────────────────────────────────── */
.section { max-width: var(--maxw); margin: 0 auto; padding: 64px 24px; }
.section-head { max-width: 64ch; margin-bottom: 34px; }
.eyebrow {
  display: inline-block;
  color: var(--thw-blue);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
/* Signatur-Akzent: gelber vertikaler Balken vor der Überschrift */
.section h3 {
  position: relative;
  font-size: clamp(1.6rem, 3.6vw, 2.25rem);
  font-weight: 700;
  color: var(--ink);
  margin-top: 12px;
  padding-left: 20px;
}
.section h3::before {
  content: "";
  position: absolute;
  left: 0; top: .12em;
  width: 10px;
  height: 1.05em;
  background: var(--thw-yellow);
}
.section .section-text {
  margin-top: 14px;
  font-size: 1.05rem;
  color: var(--gray-600);
}

/* Intro mit Faktenkacheln */
.intro-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 30px;
  border: 1px solid var(--gray-200);
}
.fact {
  background: var(--white);
  padding: 26px 24px;
  border-right: 1px solid var(--gray-200);
}
.fact:last-child { border-right: none; }
.fact .fact-num {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--thw-blue);
  line-height: 1;
}
.fact .fact-lbl {
  margin-top: 10px;
  font-size: .94rem;
  color: var(--gray-600);
  font-weight: 600;
}

/* ──────────────────────────────────
   INHALTE-GRID
────────────────────────────────── */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.topic {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--thw-blue);
  padding: 24px 22px;
  transition: background .16s, border-top-color .16s;
}
.topic:hover { background: var(--white); border-top-color: var(--thw-yellow); }
.topic-ico {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  background: var(--thw-blue-light);
  color: var(--thw-blue);
  margin-bottom: 16px;
}
.topic-ico svg { width: 25px; height: 25px; }
.topic h4 { font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.topic p { margin-top: 7px; font-size: .93rem; color: var(--gray-600); }

/* ──────────────────────────────────
   ABLAUF (STEPS)
────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--thw-blue);
  padding: 24px 22px 22px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  background: var(--thw-yellow);
  color: var(--thw-blue);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 14px;
}
.step h4 { font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.step p { margin-top: 7px; font-size: .93rem; color: var(--gray-600); }

/* ──────────────────────────────────
   KOMPAKTER SEITENKOPF (Unterseiten)
────────────────────────────────── */
.hero-sm .hero-inner { padding: 46px 24px 50px; }
.hero-sm h2 { margin-top: 16px; }
.hero-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--thw-yellow);
}
.hero-breadcrumb svg { width: 16px; height: 16px; }
.hero-breadcrumb:hover { background: var(--thw-yellow); color: var(--thw-blue); box-shadow: none; }

/* ──────────────────────────────────
   DOKUMENTEN-LISTE (Unterlagen)
────────────────────────────────── */
.doc-cat { margin-top: 38px; }
.doc-cat:first-of-type { margin-top: 30px; }
.doc-cat h3 {
  position: relative;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  padding-left: 18px;
  margin-bottom: 14px;
}
.doc-cat h3::before {
  content: "";
  position: absolute;
  left: 0; top: .1em;
  width: 9px; height: 1.05em;
  background: var(--thw-yellow);
}
.doc-items { border: 1px solid var(--gray-200); }
.doc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 20px;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  transition: background .14s;
}
.doc-item:last-child { border-bottom: none; }
.doc-item:hover { background: var(--gray-100); }
.doc-item .doc-ico {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--thw-blue-light);
  color: var(--thw-blue);
  flex-shrink: 0;
}
.doc-item .doc-ico svg { width: 22px; height: 22px; }
.doc-item .doc-main { flex: 1; min-width: 0; }
.doc-item .doc-title { font-weight: 700; font-size: 1rem; }
.doc-item .doc-meta { font-size: .82rem; color: var(--gray-600); margin-top: 2px; }
.doc-item .doc-arrow { color: var(--thw-blue); flex-shrink: 0; display: flex; }
.doc-item .doc-arrow svg { width: 20px; height: 20px; transition: transform .14s; }
.doc-item:hover .doc-arrow svg { transform: translateX(3px); }
/* Platzhalter-Eintrag (noch keine Datei hinterlegt) */
.doc-item.is-placeholder { cursor: default; opacity: .65; }
.doc-item.is-placeholder:hover { background: var(--white); }
.doc-item.is-placeholder .doc-arrow { color: var(--gray-400); }

.doc-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--thw-blue-light);
  border-left: 3px solid var(--thw-blue);
  padding: 16px 18px;
  margin-top: 26px;
  font-size: .92rem;
  color: var(--thw-blue-dark);
}
.doc-note svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--thw-blue); }
.doc-note code { font-family: 'Consolas','SF Mono',monospace; font-size: .86rem; background: rgba(0,51,153,.1); padding: 1px 5px; }

.doc-label {
  font-size: .76rem;
  font-weight: 700;
  color: var(--thw-blue);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.doc-item .doc-title { margin-top: 1px; }
.doc-actions { display: flex; gap: 8px; flex-shrink: 0; }
.doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: .84rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  border: 2px solid var(--thw-blue);
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.doc-btn svg { width: 15px; height: 15px; }
.doc-btn-view { background: transparent; color: var(--thw-blue); }
.doc-btn-view:hover { background: var(--thw-blue); color: var(--white); }
.doc-btn-dl { background: var(--thw-yellow); color: var(--thw-blue); border-color: var(--thw-yellow); }
.doc-btn-dl:hover { background: var(--thw-yellow-dk); border-color: var(--thw-yellow-dk); }

@media (max-width: 620px) {
  .doc-item { flex-wrap: wrap; }
  .doc-actions { width: 100%; }
  .doc-btn { flex: 1; justify-content: center; }
}

/* ──────────────────────────────────
   HAUPT-LINK-KARTEN
────────────────────────────────── */
.link-section { background: var(--gray-100); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.link-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  padding: 32px 30px;
  overflow: hidden;
  transition: transform .14s;
}
.link-card:hover { transform: translateY(-3px); }
.link-card.is-blue { background: var(--thw-blue); color: var(--white); }
.link-card.is-yellow { background: var(--thw-yellow); color: var(--thw-blue); }
.link-card .lc-ico {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.link-card.is-blue .lc-ico { background: rgba(255,255,255,.16); color: var(--white); }
.link-card.is-yellow .lc-ico { background: rgba(0,51,153,.12); color: var(--thw-blue); }
.link-card .lc-ico svg { width: 28px; height: 28px; }
.link-card h4 { font-size: 1.45rem; font-weight: 700; }
.link-card p { margin-top: 8px; font-size: 1rem; opacity: .92; max-width: 34ch; }
.link-card .lc-url {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .95rem;
}
.link-card .lc-url svg { width: 18px; height: 18px; transition: transform .16s; }
.link-card:hover .lc-url svg { transform: translateX(4px); }
.link-card .lc-host {
  margin-top: 4px;
  font-size: .82rem;
  font-family: 'Consolas', 'SF Mono', monospace;
  opacity: .72;
}

/* ──────────────────────────────────
   FOOTER
────────────────────────────────── */
.site-footer {
  margin-top: auto;
  background: var(--thw-blue);
  color: rgba(255,255,255,.82);
  font-size: .9rem;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-inner a { color: var(--white); text-decoration: none; font-weight: 700; box-shadow: inset 0 -2px 0 var(--thw-yellow); }
.footer-inner a:hover { background: var(--thw-yellow); color: var(--thw-blue); box-shadow: none; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ──────────────────────────────────
   RESPONSIVE
────────────────────────────────── */
@media (min-width: 560px) {
  .header-nav .nav-label { display: inline; }
}
@media (max-width: 860px) {
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .intro-facts { grid-template-columns: 1fr; }
  .fact { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .fact:last-child { border-bottom: none; }
  .topic-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .link-cards { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; justify-content: center; }
}
