/* =========================================================
   PREVIEW.CSS — Erweiterungen fuer index-preview.html
   - Mega-Menu (Dropdown unter Nav-Items)
   - PDF-Download Modal
   - Quick-Tile-Uebersicht (Hero-Tiles ueber Foto)
   - TOC schlanke Akkordeon-Variante (toc--lean)
   ========================================================= */


/* =========================================================
   MEGA-MENU
   ========================================================= */
.nav__list { gap: clamp(1rem, 2vw, 2rem); }

.nav__item--has-mega { position: relative; }
/* Keine Hover-Bridge mehr nötig — der nav__link nimmt jetzt die volle Header-Höhe ein,
   sodass kein Gap zwischen Nav-Link und Mega-Panel entsteht. */

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav__caret {
  width: 12px;
  height: 12px;
  transition: transform 0.25s var(--ease-out);
  opacity: 0.65;
}
.nav__item--has-mega:hover .nav__caret,
.nav__item--has-mega:focus-within .nav__caret { transform: rotate(180deg); }

.mega {
  position: fixed;            /* full-width Panel relativ zum Header */
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--swh-white);
  border-top: 1px solid var(--swh-blue-tint);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), visibility 0s linear 0.22s;
  z-index: 90;
}
.nav__item--has-mega:hover > .mega,
.nav__item--has-mega:focus-within > .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), visibility 0s linear 0s;
}

.mega__inner {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: stretch;
}

/* Mega-Visual: Image-Card mit Eyebrow + Title als Overlay */
.mega__visual {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--swh-white);
  isolation: isolate;
  min-height: 220px;
  transition: transform 0.3s var(--ease-out);
}
.mega__visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.mega__visual::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,61,107,0.15) 0%, rgba(0,61,107,0.85) 100%);
  z-index: -1;
}
.mega__visual:hover { transform: translateY(-3px); }

.mega__visual-tag {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  color: var(--swh-white);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border-radius: var(--radius-sm);   /* non-interaktiver Tag → leicht abgerundet, keine Pill */
  transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.mega__visual-title {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  color: var(--swh-white);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  transition: color 0.25s var(--ease-out);
}
/* Hover — Text bleibt weiss, Tag wird etwas heller */
.mega__visual:hover .mega__visual-tag,
.mega__visual:hover .mega__visual-title { color: var(--swh-white); }
.mega__visual:hover .mega__visual-tag { background: rgba(255,255,255,0.28); }

/* Mega-Liste — 3 Spalten, gleichmaessige Reihen (Reihe nimmt Hoehe des laengsten Items) */
.mega__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(52px, auto);
  gap: 0 24px;
  align-content: start;
}
.mega__list li {
  display: flex;     /* damit das a-Element die volle Reihen-Hoehe nehmen kann */
}
.mega__list li a {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid rgba(0,61,107,0.10);
  font-size: var(--fs-sm);
  color: var(--swh-blue-dark);
  text-decoration: none;
  transition: padding 0.2s var(--ease-out), color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

@media (max-width: 1100px) {
  .mega__list { grid-template-columns: repeat(2, 1fr); }
}
.mega__list li a:hover {
  color: var(--swh-blue-dark);
  padding-left: 8px;
  background: rgba(255,213,0,0.12);
}
.mega__list .num {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--swh-blue);
  font-size: 0.9em;
}
.mega__list .arr {
  width: 12px;
  aspect-ratio: 42 / 62;
  background-color: var(--swh-blue);
  -webkit-mask: var(--mask-arrow-fill) no-repeat center / contain;
          mask: var(--mask-arrow-fill) no-repeat center / contain;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.2s var(--ease-out);
}
.mega__list li a:hover .arr { opacity: 1; transform: translateX(0); }

/* "Zur Themenübersicht" Eintrag — Desktop verbirgt ihn (das mega__visual Tile
   fungiert dort als Übersichtspfad). Auf Mobile wird er gar nicht erst genutzt,
   weil die Mobile-Nav (.m-nav) ihre eigene Struktur per JS aufbaut. */
.mega__list li.mega__list-overview { display: none; }


/* =========================================================
   MOBILE NAV (.m-nav)
   JS-generiert und an <body> gehängt. Single-Panel mit
   Kapitel-Sektionen — alles sofort scrollbar sichtbar,
   keine versteckten Ebenen.
   ========================================================= */
.m-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--swh-white);
  z-index: 99;                 /* unter dem Header (z-index 100) */
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.38s var(--ease-out),
              opacity 0.28s var(--ease-out),
              visibility 0s linear 0.38s;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: none;                /* nur Mobile aktiv (s. Media-Query unten) */
}
@media (max-width: 960px) {
  .m-nav { display: block; }
}
.m-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.38s var(--ease-out),
              opacity 0.28s var(--ease-out),
              visibility 0s linear 0s;
}

.m-nav__inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: var(--space-3) 0 var(--space-9);
  min-height: 100%;
}

/* === Chapter-Section === */
.m-nav__chapter {
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--swh-gray-200);
}
.m-nav__chapter:last-of-type { border-bottom: none; }

.m-nav__chapter-title {
  margin: 0 0 var(--space-3);
  padding-inline: var(--gutter);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(1.4rem, 5vw, 1.85rem);
  line-height: 1.1;
  color: var(--swh-blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

/* === "Zur Themenübersicht" — gelbe Pill === */
.m-nav__overview {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 var(--gutter) var(--space-2);
  padding: 0.55rem 1rem;
  background: var(--swh-yellow);
  color: var(--swh-blue-dark);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease-out), gap 0.2s var(--ease-out);
}
.m-nav__overview:hover { background: var(--swh-yellow-soft); gap: 0.7rem; }
.m-nav__overview-arrow {
  width: 10px;
  aspect-ratio: 42 / 62;
  background-color: var(--swh-blue-dark);
  -webkit-mask: var(--mask-arrow-fill) no-repeat center / contain;
          mask: var(--mask-arrow-fill) no-repeat center / contain;
}

/* === Subseiten-Liste === */
.m-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.m-nav__list li { border-top: 1px solid var(--swh-gray-200); }
.m-nav__list li:first-child { border-top: none; }

.m-nav__item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem var(--gutter);
  text-decoration: none;
  color: var(--swh-blue-dark);
  transition: background 0.2s var(--ease-out), padding-left 0.2s var(--ease-out);
}
.m-nav__item:hover,
.m-nav__item:focus-visible {
  background: rgba(255, 213, 0, 0.10);
  padding-left: calc(var(--gutter) + 4px);
  outline: none;
}
.m-nav__item-num {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--swh-blue);
  font-size: var(--fs-base);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.m-nav__item-title {
  font-size: var(--fs-base);
  line-height: 1.3;
  color: var(--swh-blue-dark);
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
.m-nav__item-arrow {
  width: 10px;
  aspect-ratio: 42 / 62;
  background-color: var(--swh-blue);
  -webkit-mask: var(--mask-arrow-fill) no-repeat center / contain;
          mask: var(--mask-arrow-fill) no-repeat center / contain;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.m-nav__item:hover .m-nav__item-arrow,
.m-nav__item:focus-visible .m-nav__item-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* === Footer (Jahr-Tag) === */
.m-nav__footer {
  margin-top: auto;
  padding: var(--space-6) var(--gutter) var(--space-3);
}
.m-nav__footer .m-nav__year {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  background: var(--swh-yellow);
  color: var(--swh-blue-dark);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}


/* =========================================================
   INHALT — Eine grosse Inhaltssektion (Foto-Hero + Highlights + Themenkapitel)
   ========================================================= */
.inhalt { padding-block: clamp(3rem, 6vw, 5rem); }
.inhalt__container {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
}

/* --- 1) Foto-Hero (Titel der Inhaltssektion) --- */
.inhalt__hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(300px, 38vw, 420px);
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  align-items: flex-end;
  color: var(--swh-white);
  background: var(--swh-blue-dark) url('../img/header-inhalt.webp') center 40% / cover no-repeat;
  box-shadow: var(--shadow-md);
}
.inhalt__hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,30,60,0.05) 0%, rgba(0,30,60,0.40) 55%, rgba(0,30,60,0.78) 100%);
  z-index: 0;
}
.inhalt__hero-content { position: relative; z-index: 1; max-width: 760px; }
/* Tag-Form analog .nav__year (Jahr 2025) — non-interaktiv,
   daher leicht abgerundet (radius-sm), nicht voll als Pill. */
.inhalt__hero-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  background: var(--swh-yellow);
  color: var(--swh-blue-dark);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.inhalt__hero-title {
  margin: 0;
  color: var(--swh-white);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  line-height: 1;
  text-shadow: 0 2px 16px rgba(0,30,60,0.45);
}
.inhalt__hero-sub {
  margin: var(--space-4) 0 0;
  max-width: 56ch;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0,30,60,0.45);
}
@media (max-width: 720px) {
  .inhalt__hero { padding: clamp(1.5rem, 5vw, 2.5rem); min-height: 280px; }
}

/* --- 2) Sub-Block-Header (Highlights / Themenkapitel) --- */
.inhalt__block-head {
  margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(0,61,107,0.12);
}
.inhalt__block-eyebrow {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--swh-blue);
  margin-bottom: 6px;
}
.inhalt__block-title {
  margin: 0;
  color: var(--swh-blue-dark);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.1;
}
.inhalt__block-lede {
  margin: 0;
  max-width: 38ch;
  font-size: var(--fs-base);
  color: var(--color-text-soft, rgba(0,61,107,0.7));
  font-weight: var(--fw-regular);
  text-align: right;
}
@media (max-width: 720px) {
  .inhalt__block-lede { text-align: left; }
}

/* --- 3) Highlights Grid (Quicklinks zu zentralen Geschichten) --- */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
@media (max-width: 900px) {
  .highlights-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  /* Highlight-Boxen auf Mobile kompakter, weniger min-height */
  .highlight-tile {
    min-height: 0;
    padding: clamp(1rem, 3.5vw, 1.3rem) clamp(1.1rem, 4vw, 1.4rem);
    gap: 0;
  }
  .highlight-tile__num   { font-size: 1.15rem; margin-bottom: 0.4rem; }
  .highlight-tile__body  { gap: 0.25rem; padding-right: 36px; margin-top: 0.5rem; }
  .highlight-tile__eyebrow { font-size: 0.78rem; }
  .highlight-tile__title { font-size: clamp(1.25rem, 5vw, 1.5rem); }
  .highlight-tile__arrow { width: 22px; bottom: 1rem; right: 1rem; }
}

.highlight-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  border-radius: var(--radius-md);
  background: var(--swh-blue-tint);
  text-decoration: none;
  color: var(--swh-blue-dark);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.35s var(--ease-out);
}
.highlight-tile::before {
  /* SWH-Pfeil als dezente Hintergrundgrafik oben rechts */
  content: "";
  position: absolute;
  top: -22%;
  right: -18%;
  width: 70%;
  aspect-ratio: 42 / 62;
  background-color: var(--swh-white);
  -webkit-mask: var(--mask-arrow-outline) no-repeat center / contain;
          mask: var(--mask-arrow-outline) no-repeat center / contain;
  opacity: 0.55;
  z-index: -1;
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out), background-color 0.4s var(--ease-out);
}
.highlight-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0,61,107,0.18);
  background: var(--swh-yellow);
}
.highlight-tile:hover::before {
  opacity: 0.85;
  transform: translateX(-12px) translateY(8px);
  background-color: var(--swh-white);
}
.highlight-tile__num {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(1.4rem, 1.8vw, 1.7rem);
  color: var(--swh-blue);
  line-height: 1;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.highlight-tile__body {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-right: 48px; /* Platz fuer den Pfeil-Indikator */
}
.highlight-tile__eyebrow {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-style: italic;
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--swh-blue-dark);
  opacity: 0.78;
  line-height: 1.3;
}
.highlight-tile__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1;
  color: var(--swh-blue-dark);
  letter-spacing: -0.005em;
  text-transform: none;
}
.highlight-tile__arrow {
  position: absolute;
  bottom: clamp(1.25rem, 2vw, 1.75rem);
  right: clamp(1.25rem, 2vw, 1.75rem);
  width: 28px;
  aspect-ratio: 42 / 62;
  background-color: var(--swh-blue);
  -webkit-mask: var(--mask-arrow-fill) no-repeat center / contain;
          mask: var(--mask-arrow-fill) no-repeat center / contain;
  transition: transform 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.highlight-tile:hover .highlight-tile__arrow {
  transform: translateX(6px);
  background-color: var(--swh-blue-dark);
}


/* =========================================================
   TOC — Akkordeon-Variante (verwendet im Inhalt-Block)
   ========================================================= */
.toc-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.toc-acc {
  background: var(--swh-blue-tint);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: background 0.25s var(--ease-out);
  /* Horizontaler Inset für Head + Liste — vorher hatten beide eigenes padding-inline,
     jetzt zentral hier, damit die <ul> komplett ohne padding bleiben kann. */
  padding-inline: clamp(1.25rem, 2.5vw, 2rem);
}
.toc-acc[open] { background: var(--swh-blue-tint); }
.toc-acc:hover:not([open]) { background: rgba(220,238,249,0.7); }

.toc-acc__head {
  display: grid;
  /* minmax(0, …): lange Titel dürfen umbrechen statt den Kopf zu sprengen */
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  /* Horizontal-Padding hat jetzt der Container .toc-acc */
  padding: clamp(1rem, 2vw, 1.5rem) 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.toc-acc__head::-webkit-details-marker { display: none; }
.toc-acc__head::marker { display: none; content: ""; }

.toc-acc__num {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: var(--swh-blue);
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}
.toc-acc__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: var(--swh-blue-dark);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.toc-acc__count {
  font-size: var(--fs-sm);
  color: var(--swh-blue-dark);   /* solide statt opacity 0.7 → WCAG-AA-Kontrast */
  font-weight: var(--fw-medium);
}
.toc-acc__caret {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--swh-yellow);
  color: var(--swh-blue-dark);
  transition: transform 0.3s var(--ease-out);
}
.toc-acc__caret svg { width: 16px; height: 16px; }
.toc-acc[open] .toc-acc__caret { transform: rotate(180deg); }

/* Kapitel ohne Unterkapitel: ganze Zeile ist ein direkter Link (kein Akkordeon).
   Optik identisch zum Akkordeon-Kopf; der gelbe Pfeil zeigt nach rechts
   (= „zur Seite") statt nach unten. Hover-Fläche kommt über .toc-acc:hover:not([open]). */
.toc-acc--link { display: block; color: inherit; text-decoration: none; }
.toc-acc__caret--go svg { transform: rotate(-90deg); }

/* WICHTIG: kein padding auf der <ul> — sonst kann die Höhe nicht auf 0 animieren.
   Horizontaler Inset kommt vom Container .toc-acc, Bottom-Spacing über ::after am letzten li. */
.toc-acc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(52px, auto);
  gap: 0 28px;
  align-content: start;
}
.toc-acc__list li {
  display: block;
  position: relative;
}
/* Pseudo-Padding-Bottom statt padding auf der <ul> */
.toc-acc__list li:last-child::after {
  content: "";
  display: block;
  height: clamp(1rem, 2vw, 1.5rem);
}
.toc-acc__list li a {
  width: 100%;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 0.7rem 0.4rem;
  border-bottom: 1px solid rgba(0,61,107,0.12);
  font-size: var(--fs-sm);
  color: var(--swh-blue-dark);
  text-decoration: none;
  transition: padding 0.2s var(--ease-out), color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

@media (max-width: 900px) {
  .toc-acc__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .toc-acc__list { grid-template-columns: 1fr; }
}
.toc-acc__list li a:hover { color: var(--swh-blue-dark); padding-left: 6px; background: rgba(255,213,0,0.10); }
.toc-acc__list .num {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--swh-blue);
  font-size: 0.9em;
}
.toc-acc__list .arr {
  width: 12px;
  aspect-ratio: 42 / 62;
  background-color: var(--swh-blue);
  -webkit-mask: var(--mask-arrow-fill) no-repeat center / contain;
          mask: var(--mask-arrow-fill) no-repeat center / contain;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.2s var(--ease-out);
}
.toc-acc__list li a:hover .arr { opacity: 1; transform: translateX(0); }


/* =========================================================
   MODAL (PDF-Download)
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease-out), visibility 0s linear 0.25s;
	height: 100dvh;   /* NEU: sichtbare Fläche statt 100vh */
  bottom: auto;     /* NEU: hebt das bottom:0 aus inset:0 auf */
}
.modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s var(--ease-out), visibility 0s linear 0s;
}
body.modal-open { overflow: hidden; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 30, 55, 0.72);
  backdrop-filter: blur(6px);
  border: 0;
  cursor: pointer;
  appearance: none;
}

.modal__panel {
  position: relative;
  background: var(--swh-white);
  border-radius: var(--radius-lg);
  width: min(640px, 100%);
  max-height: min(88dvh, 760px);
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  transform: scale(0.96);
  transition: transform 0.25s var(--ease-out);
}
.modal[aria-hidden="false"] .modal__panel { transform: scale(1); }

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--swh-blue-tint);
  color: var(--swh-blue-dark);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.modal__close svg { width: 18px; height: 18px; }
.modal__close:hover { background: var(--swh-yellow); transform: rotate(90deg); }

.modal__head {
  margin-bottom: var(--space-6);
  padding-right: 48px;
}
.modal__eyebrow {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--swh-blue);
  display: block;
  margin-bottom: 6px;
}
.modal__head h2 {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}
.modal__head p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: var(--fs-base);
}

.modal__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* Noch keine PDF hinterlegt → Eintrag deaktiviert (kein href="#", WCAG-konform) */
.dl-card.is-disabled,
.dl-list a.is-disabled { opacity: 0.5; pointer-events: none; cursor: default; }

/* Primary Download-Card (Gesamter Bericht) */
.dl-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-4);
  padding: clamp(1.1rem, 2vw, 1.4rem) clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--swh-blue-dark);
  background: var(--swh-yellow);
  isolation: isolate;
  transition: transform 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.dl-card:hover { transform: translateX(4px); background: var(--swh-yellow-soft); }
.dl-card__arrow {
  width: 38px;
  aspect-ratio: 42 / 62;
  background-color: var(--swh-blue-dark);
  -webkit-mask: var(--mask-arrow-fill) no-repeat center / contain;
          mask: var(--mask-arrow-fill) no-repeat center / contain;
}
.dl-card__content { display: grid; gap: 4px; }
.dl-card__eyebrow {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}
.dl-card__title {
  margin: 0;
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  text-transform: none;
  letter-spacing: 0;
}
.dl-card__meta {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  font-family: var(--font-body);
  text-transform: none;
  opacity: 0.75;
}
.dl-card__icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0,61,107,0.12);
  border-radius: 50%;
  color: var(--swh-blue-dark);
}
.dl-card__icon svg { width: 22px; height: 22px; }

/* Einzelkapitel-Liste */
.dl-section__title {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--swh-blue);
}
.dl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dl-list li a {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--space-3);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--swh-blue-dark);
  background: var(--swh-blue-tint);
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.dl-list li a:hover { background: var(--swh-yellow); transform: translateX(3px); }
.dl-list__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-base);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.dl-list__meta {
  font-size: var(--fs-sm);
  opacity: 0.7;
}
.dl-list__icon {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(0,61,107,0.10);
  color: var(--swh-blue-dark);
}
.dl-list__icon svg { width: 16px; height: 16px; }
