/* DZB Media — Landingpage
   Umsetzung von "DZB Media Website.dc.html" (Claude Design Handoff), rein statisch. */

/* ── Fonts (selbst gehostet, kein Google-CDN → DSGVO) ────────────────────── */
@font-face {
  font-family: 'Hepta Slab';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/hepta-slab-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hepta Slab';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/hepta-slab-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --navy: #222F4E;
  --copper: #C7713A;
  --copper-dark: #B0602D;
  --sand: #F3F2F1;
  --white: #FFFFFF;
  --serif: 'Hepta Slab', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --shell: 1280px;
  --pad: 48px;
}

/* ── Basis ───────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--sand);
  font-family: var(--sans);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.partner-link { color: white; text-decoration: none; }
a, .partner-link:hover { color: var(--copper); text-decoration: none; }

img { max-width: 100%; }

figure { margin: 0; }

address { font-style: normal; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; }

:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

/* Nur fuer Screenreader — kuendigt bei externen Links den Fensterwechsel an. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Die Navigation klebt oben und ist 75 px hoch (8 + 56 Logo + 8 + 3 Rahmen).
   Ohne das hier verschwindet die Ueberschrift der angesprungenen Sektion
   dahinter — am deutlichsten bei #newsletter und #team, die als einzige nur
   70 px Innenabstand oben haben. */
section[id] { scroll-margin-top: 90px; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  color: var(--copper);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.btn {
  display: inline-block;
  background: var(--copper);
  color: var(--sand);
  padding: 15px 30px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 15px;
}
.btn:hover { background: var(--copper-dark); }

.link-out { font-weight: 700; font-size: 14px; color: var(--copper); }

/* ── Navigation ──────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--copper);
}
.nav__inner {
  padding-top: 8px;
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo { height: 56px; width: auto; display: block; }

.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a { color: var(--sand); font-weight: 600; font-size: 16px; }
.nav__links > a:hover { color: var(--copper); }

.nav__cta {
  background: var(--copper);
  color: var(--sand);
  padding: 10px 22px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 14px;
}
.nav__cta:hover { background: var(--copper-dark); color: var(--sand); }

/* Dropdown „Fünf nach Sechs“ — reines CSS, kein JS */
.nav__group { position: relative; }
.nav__menu {
  position: absolute;
  top: 100%;
  left: -12px;
  padding-top: 12px;
  min-width: 250px;
  display: none;
}
.nav__group:hover .nav__menu,
.nav__group:focus-within .nav__menu { display: block; }
.nav__menu > div {
  background: var(--copper);
  border: 1px solid rgba(34, 47, 78, 0.1);
  display: flex;
  flex-direction: column;
}
.nav__menu a {
  color: var(--sand);
  font-weight: 500;
  font-size: 13.5px;
  padding: 10px 14px;
}
.nav__menu a:hover { color: var(--navy); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--navy);
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(34, 47, 78, 0.75) 0%,
    rgba(34, 47, 78, 0.45) 45%,
    rgba(34, 47, 78, 0.85) 100%);
  pointer-events: none;
}
.hero__body {
  position: relative;
  padding-top: 110px;
  padding-bottom: 60px;
  width: 100%;
}
.hero__eyebrow {
  color: var(--copper);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero__title {
  font-size: 52px;
  line-height: 1.15;
  color: var(--sand);
  margin: 0 0 24px;
  white-space: nowrap;
  max-width: 900px;
}
.hero__lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--sand);
  margin: 24px 0 0;
}

.hero__ctas { position: relative; width: 100%; padding: 0; }
.hero__ctas nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 28px var(--pad) 40px;
}
.hero__ctas a {
  width: 270px;
  flex: none;
  text-align: center;
  color: var(--sand);
  font-weight: 500;
  font-size: 14px;
  background: var(--copper);
  padding: 8px 12px;
  border-radius: 2px;
}
.hero__ctas a:hover { background: var(--copper-dark); }

/* ── Über uns ────────────────────────────────────────────────────────────── */
.about { padding: 100px 0; background: var(--sand); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}
.about h2 { font-size: 36px; line-height: 1.25; margin: 0 0 22px; }
.about p { font-size: 16px; line-height: 1.75; margin: 0 0 18px; }
.about p:last-child { margin-bottom: 0; }

/* Bildrahmen: Crop entspricht den im Prototyp gespeicherten Slot-Offsets */
.figure { border-radius: 2px; overflow: hidden; height: 100%; }
.figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.figure--top img { object-position: center top; }
.figure--right img { object-position: right center; }

/* ── Zahlen ──────────────────────────────────────────────────────────────── */
.stats { background: var(--navy); padding: 72px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stats__item { text-align: center; }
.stat-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 42px;
  color: var(--copper);
}
.stats__label { font-size: 14px; color: var(--sand); margin-top: 8px; line-height: 1.5; }

/* ── Plattformen / Awards: Karten ────────────────────────────────────────── */
.platforms { padding: 110px 0; background: var(--sand); }
.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { font-size: 32px; line-height: 1.25; margin: 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 950px;
  margin: 0 auto;
}
.card {
  background: var(--white);
  border: 1px solid rgba(34, 47, 78, 0.08);
  display: flex;
  flex-direction: column;
}
.card__media {
  height: 220px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}
.card__media img { max-width: 70%; max-height: 70%; }
.card__body { padding: 32px; flex: 1; display: flex; flex-direction: column; }
.card__eyebrow {
  color: var(--copper);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.card__body h3 { font-size: 24px; margin: 0 0 14px; }
.card__body p { font-size: 15px; line-height: 1.65; margin: 0 0 24px; flex: 1; }

/* Uebergangshinweis auf den Plattform-Karten: Startdatum betont, der noch
   aktuelle Auftritt ordnet sich darunter ein. */
.platform-start { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.platform-current { font-size: 14px; color: rgba(34, 47, 78, 0.75); }

/* ── Newsletter ──────────────────────────────────────────────────────────── */
.newsletter { padding: 70px 0 90px; background: var(--navy); }
.newsletter__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
}
.newsletter__grid > * { min-width: 0; }
.newsletter h2 { font-size: 32px; line-height: 1.25; color: var(--sand); margin: 0 0 16px; }
.newsletter p { font-size: 16px; line-height: 1.75; color: var(--sand); margin: 0 0 16px; }
.newsletter p.is-strong { font-weight: 600; }
.newsletter p:last-of-type { margin-bottom: 24px; }

/* ── Awards ──────────────────────────────────────────────────────────────── */
.awards { padding: 100px 0; background: var(--sand); position: relative; overflow: hidden; }
.awards__rays {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background:
    repeating-conic-gradient(from 0deg, rgba(199, 113, 58, 0.22) 0deg 2deg, transparent 2deg 15deg),
    radial-gradient(circle, rgba(199, 113, 58, 0.3) 0%, transparent 55%);
  -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.6) 55%, transparent 80%);
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.6) 55%, transparent 80%);
}
.awards .shell { position: relative; }
.awards__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.awards__head h2 { font-size: 36px; line-height: 1.25; margin: 0 0 16px; }
.awards__head p { font-size: 16px; line-height: 1.7; margin: 0; }
.awards .cards { gap: 24px; }
.awards .card__media { padding: 0; display: block; }
/* Zoomstufen der Award-Logos aus dem Prototyp (Slot-Scale s + Y-Offset) */
.awards .card__media img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  display: block;
}
.card__media--zertifikate img { transform: scale(1.369); }
.card__media--portfolio img { transform: translateY(4.24%) scale(1.294); }
.awards .card__body h3 { font-size: 20px; margin: 0 0 12px; }
.awards .card__body p { font-size: 14.5px; line-height: 1.65; margin: 0 0 20px; flex: none; }

/* ── Events ──────────────────────────────────────────────────────────────── */
.events { padding: 100px 0; background: var(--navy); }
.events__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.events .figure { aspect-ratio: 3 / 2; height: auto; }
.events h2 { font-size: 36px; line-height: 1.25; color: var(--sand); margin: 0 0 22px; }
.events p { font-size: 16px; line-height: 1.75; color: var(--sand); margin: 0 0 18px; }
.events p:last-of-type { margin-bottom: 28px; }

/* ── Team ────────────────────────────────────────────────────────────────── */
.team { padding: 70px 0 110px; background: var(--sand); }
.team .shell { max-width: 1120px; }
.team__head { margin-bottom: 64px; }
.team__head h2 { font-size: 36px; line-height: 1.25; margin: 0; }
.team__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.team__row:last-child { margin-bottom: 0; }
.team__row img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  display: block;
}
.team__row h3 { font-size: 22px; margin: 0 0 4px; }
.team__role { font-size: 14px; color: var(--copper); font-style: italic; margin-bottom: 14px; }
.team__row p { font-size: 15px; line-height: 1.7; margin: 0; }

/* ── Kontakt ─────────────────────────────────────────────────────────────── */
.contact { padding: 90px 0; background: var(--navy); }
.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}
.contact h2 { font-size: 36px; line-height: 1.25; color: var(--sand); margin: 0 0 16px; }
.contact__lead { font-size: 16px; line-height: 1.7; color: var(--sand); margin: 0 0 32px; max-width: 480px; }
.contact__row { display: flex; flex-wrap: wrap; gap: 32px; margin-bottom: 32px; }
.contact__row:last-of-type { margin-bottom: 0; }
.contact__label {
  color: var(--copper);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.contact__value { color: var(--sand); font-weight: 600; font-size: 16px; line-height: 1.5; }
a.contact__value:hover { color: var(--copper); }
.contact__note { color: var(--sand); font-size: 13px; margin-top: 4px; }

.jobs { border-left: 1px solid rgba(255, 255, 255, 0.12); padding-left: 48px; }
.jobs h3 { font-size: 22px; color: var(--sand); margin: 0 0 16px; }
.jobs p { font-size: 15px; line-height: 1.7; color: var(--sand); margin: 0 0 24px; }
.jobs__contact { color: var(--sand); font-size: 15px; line-height: 1.6; }
.jobs__contact strong { font-weight: 600; }
.jobs__contact a { color: var(--sand); font-weight: 600; }
.jobs__contact a:hover { color: var(--copper); }

/* ── Partner ─────────────────────────────────────────────────────────────── */
.partners { padding: 90px 0; background: var(--sand); }
.partners__head { text-align: center; margin-bottom: 48px; }
.partners__head h2 { font-size: 32px; margin: 0 0 16px; }
.partners__head p { font-size: 16px; line-height: 1.6; margin: 0 auto; max-width: 700px; }

.partners__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
/* --cols steuert die Kachelbreite; die letzte, unvollstaendige Reihe zentriert
   sich dank flex-wrap von selbst. */
.partners__tile {
  /* 25 Logos: 7 pro Reihe ergibt 7+7+7+4, bei 8 bliebe ein Einzelgaenger. */
  --cols: 7;
  width: calc((100% - (var(--cols) - 1) * 14px) / var(--cols));
  flex: 0 0 auto;
  height: 64px;
  background: var(--white);
  border: 1px solid rgba(34, 47, 78, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Die Logos sind randlos freigestellt — der Innenabstand kommt jetzt hier her
     statt aus dem eingebrannten weissen Rand der Originaldateien. */
  padding: 8px 10px;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter 0.25s, opacity 0.25s;
}
.partners__tile:hover { filter: none; opacity: 1; }
.partners__tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* Ohne Hover (Touch) bleiben die Logos sonst dauerhaft grau. */
@media (hover: none) {
  .partners__tile { filter: none; opacity: 1; }
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { background: var(--navy); padding: 64px 0 32px; border-top: 3px solid var(--copper); }
.footer__cols { display: flex; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.footer__cols > div { flex-shrink: 1; flex-grow: 0; min-width: 0; }
.footer__brand { width: 240px; }
.footer__brand img { height: 34px; width: auto; display: block; margin-bottom: 16px; }
.footer__brand p { font-size: 14px; line-height: 1.65; color: var(--sand); margin: 0 0 16px; max-width: 280px; }
.footer__links { width: 160px; }
.footer__partners { width: 230px; }
.footer__partners p { font-size: 14px; line-height: 1.7; color: var(--sand); margin: 0; }
.footer__contact { width: 180px; }
.footer__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 16px;
}
.footer__list { display: flex; flex-direction: column; gap: 6px; }
.footer__contact .footer__list { gap: 10px; }
.footer__list a, .footer__list span { font-size: 14px; color: var(--sand); }
.footer__list a:hover { color: var(--copper); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bottom span, .footer__bottom a { font-size: 13px; color: var(--sand); }
.footer__bottom a:hover { color: var(--copper); }
.footer__legal { display: flex; gap: 24px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  :root { --pad: 24px; }

  .nav__links { display: none; }

  .hero__title { font-size: 40px; line-height: 1.15; white-space: normal; }
  .hero__ctas nav { gap: 8px; flex-wrap: wrap; }

  /* Alle zweispaltigen Sektionen einspaltig — im Prototyp nur für #kontakt
     hinterlegt, ohne die Regel bricht der Rest auf schmalen Viewports. */
  .about__grid,
  .newsletter__grid,
  .events__grid,
  .contact__grid,
  .cards,
  .team__row { grid-template-columns: 1fr; }

  .about .figure,
  .newsletter .figure { aspect-ratio: 4 / 3; height: auto; }

  .stats__grid { grid-template-columns: 1fr 1fr; }
  .partners__tile { --cols: 4; }

  .jobs { border-left: 0; padding-left: 0; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.12); }

  .footer__cols { flex-direction: column; }
  .footer__cols > div { width: 100%; }
}

@media (max-width: 640px) {
  .partners__tile { --cols: 3; }
  .si-xaxis span:not(:nth-child(3n+1)) { visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ════════════════════════════════════════════════════════════════════════════
   Unterseite: Bull-Bear-Sentiment-Index
   ══════════════════════════════════════════════════════════════════════════ */

:root { --paper: #f7f6f2; --line: #DFDEDD; }

body.page-sentiment { background: var(--paper); }

/* Unterseiten nutzen dieselbe Navigation wie die Startseite — im Prototyp ist
   sie hier kleiner, das waere aber ein Bruch beim Seitenwechsel. */
.nav__links a.is-active { color: var(--copper); }

.si-section { background: var(--paper); padding: 0 0 32px; }
.si-section--head { padding: 56px 0 40px; }
.si-section--main { padding: 0 0 24px; }
.si-section--chart { padding: 0 0 24px; }
.si-section h1 { font-size: 34px; line-height: 1.2; margin: 0; }

/* Vollbreite Navy-Baender (Signal + Wochenkommentar) */
.band { background: var(--navy); padding: 24px 0; }
.band--comment { padding: 28px 0; }
.band__inner { max-width: var(--shell); margin: 0 auto; padding: 0 80px; }

.si-signal { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.si-signal__date, .si-signal__value { font-size: 28px; font-weight: 400; color: var(--sand); }
.si-signal__value { text-align: right; }
.si-signal__mood {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  color: var(--sand);
  text-align: center;
}

.si-card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.si-card--survey { padding: 28px 32px; }
.si-label { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--navy); }

.si-question {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  margin: 12px 0 22px;
}
.si-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.si-answer { border-radius: 6px; padding: 16px 20px; }
.si-answer--bear { background: #F3ECE7; }
.si-answer--bull { background: #E9EAEE; }
.si-answer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.si-answer__head .si-label { font-weight: 700; }
.si-answer--bear .si-label, .si-answer--bear span { color: var(--copper); }
.si-answer__arrow { font-size: 16px; font-weight: 700; }
.si-answer__text { font-size: 14px; line-height: 1.5; }
.si-note { border-top: 1px solid #EAEAE9; padding-top: 18px; }
.si-note p { font-size: 14px; line-height: 1.7; margin: 0; }

.si-main { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; align-items: stretch; }
.si-gauge__head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.si-gauge svg { width: 100%; max-width: 380px; display: block; margin: 0 auto; }
/* Zeiger schwingt einmalig in seine Endposition ein */
.si-needle { transform-origin: 200px 220px; animation: tachoSwing 2.4s cubic-bezier(0.25, 0.1, 0.25, 1) both; }
@keyframes tachoSwing {
  0%   { transform: rotate(62deg); }
  30%  { transform: rotate(-16deg); }
  50%  { transform: rotate(9deg); }
  68%  { transform: rotate(-5deg); }
  84%  { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}

.si-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.si-kpi { padding: 20px 22px; }
.si-kpi .si-label { display: block; margin-bottom: 10px; }
.si-kpi__num { font-size: 30px; font-weight: 700; color: var(--copper); }
.si-kpi__hint { font-size: 13px; margin-top: 6px; }

.si-comment__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.si-comment__title { font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--sand); }
.si-comment__date { font-size: 12px; color: var(--sand); }
.si-comment p { font-size: 15px; line-height: 1.75; color: var(--sand); margin: 0 0 16px; }
.si-comment__delta {
  border-top: 1px solid rgba(243, 242, 241, 0.3);
  padding-top: 14px;
  font-size: 13px;
  color: var(--sand);
  font-weight: 600;
}

/* Der Plot wird ungleichmaessig gestreckt (preserveAspectRatio="none"), damit er
   jede Breite fuellt. Text darf deshalb NICHT ins SVG — er wuerde mitverzerrt.
   Beide Achsen sind daher HTML und liegen ausserhalb der Streckung. */
.si-chart .si-label { display: block; margin-bottom: 14px; }
.si-plot { position: relative; padding-left: 44px; }
.si-lines { width: 100%; height: 200px; display: block; }
.si-yaxis {
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
  font-size: 11px;
  /* Gitterlinien liegen im viewBox bei y = 20 bis 220 von 230. Mit line-height:1
     ist die halbe Zeilenhoehe exakt 0.5em, dadurch trifft jede Beschriftung ihre
     Linie unabhaengig von der Standard-Zeilenhoehe des Browsers. */
  line-height: 1;
  padding: calc(200px * 20 / 230 - 0.5em) 0 calc(200px * 10 / 230 - 0.5em);
}
/* Jedes Datum sitzt per --x genau ueber seinem Datenpunkt. Eine Flex-Verteilung
   koennte das nicht: 15 gleich breite Zellen haetten ihre Mitten bei (i+0,5)/15,
   die Datenpunkte liegen aber bei i/14. */
.si-xaxis {
  position: relative;
  height: 11px;
  margin: 10px 0 0 44px;
  font-size: 11px;
  line-height: 1;
}
.si-xaxis span {
  position: absolute;
  left: var(--x);
  transform: translateX(-50%);
  white-space: nowrap;
}
.si-legend { display: flex; justify-content: center; gap: 28px; margin-top: 16px; }
.si-legend span { display: flex; align-items: center; gap: 8px; font-size: 13px; }

@media (max-width: 1180px) {
  .band__inner { padding-left: var(--pad); padding-right: var(--pad); }
}
@media (max-width: 860px) {
  .si-main { grid-template-columns: 1fr; }
  .si-answers { grid-template-columns: 1fr; }
  /* Datumslabels ausduennen statt ueberlappen lassen. visibility statt display,
     damit die Flex-Verteilung der uebrigen Labels erhalten bleibt. */
  .si-xaxis span:nth-child(even) { visibility: hidden; }
}

/* ════════════════════════════════════════════════════════════════════════════
   Rechtsseiten: Impressum und Datenschutzerklärung
   ══════════════════════════════════════════════════════════════════════════ */

.legal-head { padding: 56px 0 32px; background: var(--sand); }
.legal-head h1 { font-size: 34px; line-height: 1.2; margin: 0; }
.legal-body { padding: 0 0 64px; background: var(--sand); }

.legal {
  background: var(--white);
  border: 1px solid rgba(34, 47, 78, 0.1);
  border-radius: 6px;
  padding: 40px 44px;
}
/* Sprungziele des Inhaltsverzeichnisses muessen unter der klebenden Navigation
   landen — dieselbe Hoehe wie bei den Sektionen der Startseite. */
.legal [id] { scroll-margin-top: 90px; }

.legal h2 { font-size: 26px; line-height: 1.3; margin: 48px 0 16px; }
.legal h3 { font-size: 20px; line-height: 1.35; margin: 36px 0 12px; }
.legal h4 { font-size: 17px; line-height: 1.4; margin: 28px 0 10px; }
.legal--impressum h2 { font-size: 22px; margin: 0 0 12px; }
.legal > h2:first-child { margin-top: 0; }

.legal p { font-size: 15.5px; line-height: 1.8; margin: 0 0 14px; text-wrap: pretty; }
.legal ul { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal li { font-size: 15.5px; line-height: 1.75; }
.legal a { font-weight: 500; }

/* „Gilt für: …“ — ordnet jeden Teil seinem Geltungsbereich zu */
.legal__scope { font-size: 14px; opacity: 0.8; font-style: italic; }
/* a) b) c) — Gliederung innerhalb eines Abschnitts */
.legal__marker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--copper);
  margin: 20px 0 8px;
}
.legal__stand { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(34, 47, 78, 0.1); font-size: 14px; opacity: 0.75; }
.legal__block { margin-bottom: 36px; }
.legal__divider { border-top: 1px solid rgba(34, 47, 78, 0.1); padding-top: 28px; }
.legal__note { font-size: 14.5px; margin-top: 18px; }
.legal__hint { font-size: 14px; opacity: 0.75; }
.legal__more { font-weight: 700; }
.legal__logo { height: 44px; width: auto; display: block; }

/* Inhaltsverzeichnis */
.legal-toc {
  background: var(--sand);
  border: 1px solid rgba(34, 47, 78, 0.1);
  border-radius: 6px;
  padding: 28px 32px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.legal-toc a {
  font-size: 14.5px;
  line-height: 1.6;
  padding: 3px 0 3px 20px;
  border-left: 2px solid rgba(199, 113, 58, 0.25);
}
.legal-toc a:hover { border-left-color: var(--copper); }
.legal-toc__part {
  font-size: 15px;
  line-height: 1.6;
  color: var(--navy);
  font-weight: 700;
  padding: 14px 0 6px;
  border-left: 0;
}
.legal-toc__part:hover { color: var(--copper); }

/* Impressum: zwei Spalten oben, darunter Beschriftung/Wert-Paare */
.legal-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 36px;
}
.legal-dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 6px 20px;
  font-size: 15.5px;
  line-height: 1.7;
  margin-top: 18px;
}
.legal-cols .legal-dl:first-of-type { margin-top: 0; }
.legal-dl__key { opacity: 0.65; }

/* Auftragsverarbeiter-Tabelle — scrollt im eigenen Kasten, nie die Seite */
.legal__scroll { overflow-x: auto; margin: 0 0 18px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; min-width: 640px; }
.legal th, .legal td { padding: 10px 14px; border: 1px solid rgba(34, 47, 78, 0.12); vertical-align: top; }
.legal th { text-align: left; font-weight: 700; background: var(--sand); }

@media (max-width: 1180px) {
  .legal { padding: 28px 22px; }
  .legal-cols { grid-template-columns: 1fr; }
  .legal-dl { grid-template-columns: 1fr; gap: 0 0; }
  .legal-dl__key { margin-top: 10px; font-size: 13px; }
  .legal-toc { padding: 20px 18px; }
}
