/* ============================================================
   GE — Downloads (Nachweise, Bescheinigungen, AGB)
   Baut auf styles.css (Marke) auf und folgt der Gestaltung der
   FAQ-Seite: Markenfläche im Kopf, Listen als Zeilen mit
   Haarlinien statt als Kästchen.
   ============================================================ */

/* ---------- Kopf ---------- */
/* Das Muster liefert .brand-fill-hero aus styles.css — hier kein background,
   das würde es überschreiben. `color: #fff` ist Pflicht: h1 erbt sonst die
   Textfarbe des Fließtexts und stünde anthrazit auf anthrazit. */
.dl-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(150px, 22vh, 240px) 0 clamp(48px, 7vh, 88px);
}
.dl-hero .inner { position: relative; z-index: 2; }
.dl-hero .crumb {
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.6); margin-bottom: 22px; display: flex; gap: 12px;
}
.dl-hero .crumb a { color: rgba(255,255,255,.6); }
.dl-hero .crumb a:hover { color: var(--c-primary); }
.dl-hero h1 {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(50px, 9.5vw, 160px); line-height: .84; letter-spacing: -.02em;
  margin: 0; color: #fff;
}
.dl-hero h1 .y { color: var(--c-primary); }
.dl-hero .lead {
  margin: 26px 0 0; max-width: 54ch;
  font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5;
  color: rgba(255,255,255,.78);
}
/* Zählung im Kopf: Sie sagt vor dem Scrollen, wie viel kommt — bei einem
   einzigen Dokument ist das ehrlicher als eine Seite, die viel verspricht. */
.dl-zahl {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--c-primary);
}
.dl-zahl::before { content: ""; width: 30px; height: 4px; background: var(--c-primary); }

/* ---------- Fläche ---------- */
.dl-sec { background: #0A0A0B; color: #fff; padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); }

/* Zwei Spalten: links die Nachweise, rechts der Weg zu dem, was fehlt.
   Das ist nicht Dekoration — bei nur einem Dokument trüge die Seite sonst
   eine einzige Zeile über die ganze Breite. */
.dl-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: start; }

/* ---------- Gruppen ---------- */
.dl-gruppe + .dl-gruppe { margin-top: clamp(40px, 5vw, 64px); }
.dl-gruppe-kopf {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--c-primary);
  display: flex; align-items: center; gap: 12px; margin: 0 0 6px;
}
.dl-gruppe-kopf::before { content: ""; width: 30px; height: 4px; background: var(--c-primary); flex: none; }

/* ---------- Zeilen ---------- */
.dl-liste { list-style: none; margin: 0; padding: 0; }
.dl-eintrag { border-top: 1px solid rgba(255,255,255,.12); }
.dl-eintrag:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }

.dl-link {
  display: flex; align-items: center; gap: 20px;
  padding: 24px 8px; color: inherit;
  transition: color .2s ease, padding .25s var(--ease-out), background-color .2s ease;
}
.dl-link:hover, .dl-link:focus-visible { background: rgba(255,255,255,.03); padding-left: 16px; }
.dl-link:focus-visible { outline: 2px solid var(--c-primary); outline-offset: -2px; }

.dl-symbol { width: 26px; height: 26px; flex: none; fill: var(--c-primary); }

.dl-text { display: grid; gap: 6px; min-width: 0; flex: 1; }
.dl-name {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(17px, 1.8vw, 23px); line-height: 1.06; letter-spacing: -.005em;
  transition: color .2s ease;
}
.dl-link:hover .dl-name, .dl-link:focus-visible .dl-name { color: var(--c-primary); }
.dl-meta { font-size: 13.5px; color: rgba(255,255,255,.58); line-height: 1.45; }
.dl-hinweis { font-size: 13.5px; color: rgba(255,255,255,.58); font-style: italic; }

.dl-oeffnen {
  flex: none; display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--c-primary);
}
.dl-oeffnen svg { width: 18px; height: 12px; transition: transform .25s ease; }
.dl-link:hover .dl-oeffnen svg, .dl-link:focus-visible .dl-oeffnen svg { transform: translateX(5px); }

/* ---------- Leerzustand ---------- */
.dl-leer { border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); padding: 32px 8px; }
.dl-leer p { margin: 0; max-width: 52ch; color: rgba(255,255,255,.72); line-height: 1.6; }

/* ---------- Spalte rechts ---------- */
.dl-karte { border: 1px solid rgba(255,255,255,.16); padding: clamp(24px, 3vw, 34px); }
.dl-karte h2 {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(22px, 2.4vw, 30px); line-height: .95; margin: 14px 0 0; color: #fff;
}
.dl-karte h2 .y { color: var(--c-primary); }
.dl-karte p { margin: 16px 0 0; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.7); }
.dl-karte-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.dl-quelle {
  margin-top: 26px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,.5);
}

/* ---------- Schmale Schirme ---------- */
@media (max-width: 900px) {
  .dl-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .dl-link { gap: 14px; padding: 20px 4px; }
  .dl-oeffnen span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dl-link, .dl-name, .dl-oeffnen svg { transition: none; }
  .dl-link:hover, .dl-link:focus-visible { padding-left: 8px; }
}
