/* ==========================================================================
   Dr. Anne Ringlepp – CDU Wahlkreis 28
   Stylesheet Version 1.0
   CDU Corporate Design Manual 2023 (2. Auflage)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (CDU CI)
   -------------------------------------------------------------------------- */
:root {
  /* Primärfarben */
  --cdu-trkis:       #52b7c1;
  --cdu-blau:        #2d3c4b;
  --cdu-white:       #ffffff;
  --cdu-gold:        #ffa600;

  /* Logofarben (Bogen) */
  --cdu-schwarz:     #1b191d;
  --cdu-rot:         #bf111b;

  /* Tints Türkis */
  --cdu-trkis-10:    #f2f8fa;
  --cdu-trkis-25:    #ddeef1;
  --cdu-trkis-60:    #a7d5dc;

  /* Tints Blau */
  --cdu-blau-10:     #e5e5e9;
  --cdu-blau-25:     #bec1c7;
  --cdu-blau-60:     #737986;

  /* Typografie */
  --font-headline:   'Inter', Arial, sans-serif;
  --font-body:       'IBM Plex Serif', Georgia, serif;

  /* Layout */
  --container-max:   1200px;
  --container-pad:   clamp(1.25rem, 4vw, 2.5rem);
  --section-pad:     clamp(4rem, 8vw, 7rem);

  /* Übergänge */
  --transition:      0.25s ease;
  --transition-slow: 0.45s ease;

  /* Schatten */
  --shadow-sm:       0 2px 8px rgba(45,60,75,0.10);
  --shadow-md:       0 6px 24px rgba(45,60,75,0.14);
  --shadow-lg:       0 12px 40px rgba(45,60,75,0.18);

  /* Border-Radius */
  --radius-sm:       6px;
  --radius-md:       12px;
  --radius-lg:       20px;
}

/* --------------------------------------------------------------------------
   2. OPTIONALE SELF-HOSTED FONTS (für DSGVO-Konformität)
      Fonts aus inter.zip und ibm_plex_serif.zip in assets/fonts/ extrahieren
      und Google Fonts Link im HTML entfernen.
   --------------------------------------------------------------------------
@font-face {
  font-family: 'Inter';
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/Inter-ExtraBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/Inter-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/Inter-Light.ttf') format('truetype');
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/IBMPlexSerif-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/IBMPlexSerif-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  src: url('../fonts/IBMPlexSerif-Italic.ttf') format('truetype');
}
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   3. RESET & BASIS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--cdu-schwarz);
  background-color: var(--cdu-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --------------------------------------------------------------------------
   4. TYPOGRAFIE
   -------------------------------------------------------------------------- */

/* Headlines: Inter ExtraBold, Laufweite -10 (≈ -0.04em) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

p {
  margin-bottom: 1.25rem;
}
p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   5. LAYOUT-UTILITIES
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-label {
  display: inline-block;
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cdu-trkis);
  margin-bottom: 0.5rem;
}

.section-label--light {
  color: var(--cdu-trkis-60);
}

.section-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cdu-blau);
  margin-bottom: 0.75rem;
}

.section-headline--white {
  color: var(--cdu-white);
}

.section-intro {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--cdu-blau-60);
  max-width: 560px;
  margin-inline: auto;
}

.section-intro--light {
  color: var(--cdu-trkis-25);
}

/* --------------------------------------------------------------------------
   6. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition), color var(--transition),
              transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn--gold {
  background-color: var(--cdu-gold);
  color: var(--cdu-schwarz);
}
.btn--gold:hover,
.btn--gold:focus-visible {
  background-color: #e89500;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background-color: transparent;
  color: var(--cdu-white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn--outline:hover,
.btn--outline:focus-visible {
  background-color: rgba(255,255,255,0.12);
  border-color: var(--cdu-white);
  transform: translateY(-2px);
}

.btn--primary {
  background-color: var(--cdu-blau);
  color: var(--cdu-white);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: #1e2d3a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:focus-visible {
  outline: 3px solid var(--cdu-gold);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   6b. CDU LOGO BILD (ersetzt SVG-Bogen in Navbar und Footer)
   -------------------------------------------------------------------------- */

/*
   CDU-Logo: JPEG mit weißem Hintergrund.
   CDU CI: Logo nur auf Weiß oder Cadenabbia-Türkis platzieren.
   → weißer Kapsel-Container in Navbar und Footer.
*/

/* Navbar – weißer Kapsel-Hintergrund */
.nav-logo-pill {
  background-color: #ffffff;
  border-radius: 4px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  line-height: 0;
}

.nav-cdu-logo {
  height: 30px;
  width: auto;
  display: block;
}

/* Footer – etwas kleiner, gleiche Logik */
.footer-logo-wrap {
  margin-bottom: 1rem;
  display: inline-block;
  background-color: #ffffff;
  border-radius: 4px;
  padding: 4px 10px;
  line-height: 0;
}

.footer-cdu-logo {
  height: 24px;
  width: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   7. NAVIGATION – Mobile-First, vollständig neu strukturiert
   --------------------------------------------------------------------------

   DESIGN-ENTSCHEIDUNG:
   Mobile-first: .navbar startet mit solidem CDU-Blau (Logo immer sichtbar).
   Auf Desktop (≥769px) wird sie transparent und erst beim Scrollen dunkel.

   CSS-SPEZIFITÄT:
   Zur Vermeidung von Kaskadierkonflikten zwischen Desktop-flex und
   Mobile-none verwendet das Mobil-Menü `.nav-links:not(.nav-links--open)`
   mit !important – das ist die einzige 100%-zuverlässige Lösung ohne
   JavaScript-Eingriff in den display-Wert.
   -------------------------------------------------------------------------- */

/* ── 7a. Navbar Shell (Mobile-first: immer dunkelblau) ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--cdu-blau);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* Desktop: transparent bis Scroll */
@media (min-width: 769px) {
  .navbar {
    background-color: transparent;
    box-shadow: none;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
  }
  .navbar.navbar--scrolled {
    background-color: var(--cdu-blau);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  }
}

/* ── 7b. Nav Container ── */
.nav-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0 var(--container-pad);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── 7c. Logo-Bereich ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

/* Trenner und Name: standardmäßig versteckt, ab 540px sichtbar */
.nav-divider {
  display: none;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

.nav-name {
  display: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
}

@media (min-width: 540px) {
  .nav-name    { display: inline; }
  .nav-divider { display: inline; }
}

/* Sehr kleine Bildschirme: Logo kompakter */
@media (max-width: 380px) {
  .nav-cdu-logo  { height: 24px; }
  .nav-logo-pill { padding: 3px 7px; }
}

/* ── 7d. Nav Links (Desktop-Standard: sichtbare Reihe) ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

/* ── 7e. Einzelne Links ── */
.nav-link {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background-color var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link--active {
  color: var(--cdu-white);
  background-color: rgba(255, 255, 255, 0.12);
}

.nav-link--cta {
  background-color: var(--cdu-gold);
  color: var(--cdu-schwarz) !important;
  font-weight: 800;
  padding: 0.5rem 1.1rem;
}

.nav-link--cta:hover {
  background-color: #e89500 !important;
}

/* ── 7f. Hamburger (Desktop: versteckt) ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--cdu-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.nav-toggle--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle--open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 7g. MOBILE OVERRIDES (max-width: 768px) ── */
@media (max-width: 768px) {

  /* Hamburger einblenden */
  .nav-toggle {
    display: flex;
  }

  /*
   * KRITISCHER FIX: Mobiles Menü sicher ausblenden.
   *
   * Problem: .nav-links { display: flex } (Desktop) und
   * .nav-links { display: none } (Mobile) haben identische
   * Spezifität (0,1,0). Je nach Browser kann die Desktop-
   * Regel gewinnen, was das Menü aufklappt lässt.
   *
   * Lösung: :not(.nav-links--open) erhöht die Spezifität
   * auf (0,2,0) und !important überschreibt alle anderen
   * Regeln definitiv. Das Menü ist IMMER versteckt, außer
   * wenn JS die Klasse nav-links--open hinzufügt.
   */
  .nav-links:not(.nav-links--open) {
    display: none !important;
  }

  /* Positionierung des ausgeklappten Menüs */
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 999;
    flex-direction: column;
    align-items: stretch;
    background-color: var(--cdu-blau);
    padding: 0.75rem var(--container-pad) 1.25rem;
    gap: 0.2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* Geöffneter Zustand – ebenfalls !important für Eindeutigkeit */
  .nav-links.nav-links--open {
    display: flex !important;
  }

  .nav-link {
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-link--cta {
    text-align: center;
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
  }
}

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  background-color: var(--cdu-trkis);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

/* Großer dekorativer Bogen im Hintergrund (CDU Bogen als prägendes Element) */
.hero-bogen-bg {
  position: absolute;
  right: -5%;
  bottom: 0;
  width: min(65%, 680px);
  height: 100%;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
}

.hero-bogen-bg svg {
  width: 100%;
  height: auto;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: clamp(3rem, 8vh, 6rem);
  padding-bottom: clamp(5rem, 12vh, 9rem);
}

/* Region-Label: Inter Regular, Versalien */
.hero-label {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: clamp(0.65rem, 1.2vw, 0.78rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.25rem;
}

/* Headline: CDU Textblock-Stil – Inter ExtraBold auf Rhöndorf-Blau Hintergrund */
.hero-headline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin-bottom: 1.5rem;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
}

.hero-headline .hl {
  display: inline;
  background-color: var(--cdu-blau);
  color: var(--cdu-white);
  padding: 0.08em 0.3em;
  line-height: 1.25;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Subline: IBM Plex Serif auf weißem Hintergrund, Blau Text (Variante A) */
.hero-subline {
  margin-bottom: 2.5rem;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.hero-subline .sl {
  display: inline;
  background-color: var(--cdu-white);
  color: var(--cdu-blau);
  padding: 0.15em 0.4em;
  font-family: var(--font-body);
  font-weight: 400;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Bogen-Formübergang */
.hero-shape {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}

.hero-shape svg {
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   9. ÜBER MICH
   -------------------------------------------------------------------------- */
.ueber-mich {
  padding-block: var(--section-pad);
  background-color: var(--cdu-white);
}

.ueber-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 900px) {
  .ueber-grid {
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: start;
  }
}

.ueber-text .lead {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cdu-blau);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.ueber-text p {
  color: #333;
  line-height: 1.8;
}

.ueber-closing {
  border-left: 4px solid var(--cdu-trkis);
  padding-left: 1.25rem;
  margin-top: 1.5rem;
  color: var(--cdu-blau) !important;
  font-style: italic;
}

/* Stationen-Timeline */
.ueber-stationen {
  background-color: var(--cdu-trkis-10);
  border-radius: var(--radius-md);
  padding: 2rem;
  border-top: 4px solid var(--cdu-trkis);
}

.stationen-title {
  font-size: 1.1rem;
  color: var(--cdu-blau);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--cdu-trkis-25);
}

.station-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.station {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1.25rem;
  position: relative;
}

/* Vertikale Verbindungslinie */
.station:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background-color: var(--cdu-trkis-25);
}

.station-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--cdu-trkis);
  flex-shrink: 0;
  margin-top: 0.2rem;
  position: relative;
  z-index: 1;
}

.station-dot--gold {
  background-color: var(--cdu-gold);
  box-shadow: 0 0 0 3px rgba(255,166,0,0.25);
}

.station-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.station-content strong {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  color: var(--cdu-blau);
}

.station-content span {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--cdu-blau-60);
}

/* --------------------------------------------------------------------------
   10. PROGRAMM
   -------------------------------------------------------------------------- */
.programm {
  position: relative;
  background-color: var(--cdu-blau);
  padding-block: var(--section-pad);
  overflow: hidden;
}

/* Bogen-Dekoration im Programm-Hintergrund */
.programm::before {
  content: '';
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200'%3E%3Crect x='0' y='100' width='70' height='100' fill='rgba(255,255,255,0.04)'/%3E%3Crect x='115' y='45' width='70' height='155' fill='rgba(255,255,255,0.04)'/%3E%3Crect x='230' y='0' width='70' height='200' fill='rgba(255,255,255,0.04)'/%3E%3Cpath d='M 35,100 C 80,50 195,18 265,0' stroke='rgba(255,255,255,0.08)' stroke-width='8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.section-shape--top {
  line-height: 0;
  margin-bottom: -1px;
}

.section-shape--top svg,
.section-shape--bottom svg,
.section-shape--top-white svg {
  width: 100%;
  height: auto;
  display: block;
}

.section-shape--bottom {
  line-height: 0;
  margin-top: -1px;
}

.section-shape--top-white {
  line-height: 0;
  margin-bottom: -1px;
}

/* Programm-Kacheln (2x2 Grid) */
.programm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .programm-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .programm-grid {
    gap: 2rem;
  }
}

.kachel {
  background-color: var(--cdu-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.kachel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cdu-trkis) 0%, var(--cdu-trkis-60) 100%);
}

.kachel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.kachel-num {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 3.5rem;
  letter-spacing: -0.06em;
  color: var(--cdu-trkis-25);
  line-height: 1;
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  user-select: none;
}

.kachel-icon {
  width: 44px;
  height: 44px;
  background-color: var(--cdu-trkis-10);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--cdu-trkis);
}

.kachel-icon svg {
  width: 22px;
  height: 22px;
}

.kachel-title {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--cdu-blau);
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

.kachel-text {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.kachel-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kachel-list li {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--cdu-blau);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.kachel-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--cdu-trkis);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   11. WAHLKREIS
   -------------------------------------------------------------------------- */
.wahlkreis {
  padding-block: var(--section-pad);
  background-color: var(--cdu-trkis-10);
}

.wahlkreis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 900px) {
  .wahlkreis-grid {
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
  }
}

.wahlkreis-text h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  color: var(--cdu-blau);
  margin-bottom: 1rem;
}

.wahlkreis-text p {
  font-family: var(--font-body);
  color: #444;
  line-height: 1.8;
}

.wahlkreis-facts {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--cdu-white);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  min-width: 90px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--cdu-trkis);
  text-align: center;
}

.fact-num {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.05em;
  color: var(--cdu-blau);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.fact-label {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cdu-blau-60);
}

/* Zitat */
.wahlkreis-quote {
  background-color: var(--cdu-blau);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

/* Dekorativer Bogen im Zitat-Block */
.wahlkreis-quote::after {
  content: '"';
  position: absolute;
  top: -1rem;
  left: 1rem;
  font-family: var(--font-body);
  font-size: 10rem;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.wahlkreis-quote p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--cdu-white);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.wahlkreis-quote footer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  position: relative;
  z-index: 1;
}

.wahlkreis-quote cite {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  color: var(--cdu-gold);
  font-style: normal;
}

.wahlkreis-quote footer span {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* --------------------------------------------------------------------------
   12. KONTAKT / FORMULAR
   -------------------------------------------------------------------------- */
.kontakt {
  padding-block: var(--section-pad);
  background-color: var(--cdu-white);
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 900px) {
  .kontakt-grid {
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    align-items: start;
  }
}

.kontakt-info h3 {
  font-size: 1.2rem;
  color: var(--cdu-blau);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition);
  margin-bottom: 0.5rem;
}

.contact-item:hover {
  background-color: var(--cdu-trkis-10);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: var(--cdu-trkis-10);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cdu-trkis);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-item > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-item strong {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  color: var(--cdu-blau);
}

.contact-item a,
.contact-item span {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #555;
}

.contact-item a:hover {
  color: var(--cdu-trkis);
  text-decoration: underline;
}

.kontakt-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background-color: var(--cdu-trkis-10);
  border-left: 3px solid var(--cdu-trkis);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.kontakt-note p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--cdu-blau-60);
  margin: 0;
  font-style: italic;
}

/* Formular */
.contact-form {
  background-color: var(--cdu-trkis-10);
  padding: 2.5rem;
  border-radius: var(--radius-md);
}

/* Honeypot verstecken */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  tabindex: -1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 540px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-group:last-of-type {
  margin-bottom: 0;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-group label {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: -0.01em;
  color: var(--cdu-blau);
}

.req {
  color: var(--cdu-rot);
  margin-left: 2px;
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--cdu-schwarz);
  background-color: var(--cdu-white);
  border: 2px solid var(--cdu-blau-25);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--cdu-blau-25);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cdu-trkis);
  box-shadow: 0 0 0 3px rgba(82,183,193,0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.input--error {
  border-color: var(--cdu-rot) !important;
  box-shadow: 0 0 0 3px rgba(191,17,27,0.15) !important;
}

.form-error {
  font-family: var(--font-headline);
  font-size: 0.78rem;
  color: var(--cdu-rot);
  font-weight: 400;
  min-height: 1.1em;
}

/* Checkbox */
.form-group--checkbox {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem !important;
}

.checkbox-label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.1rem;
  accent-color: var(--cdu-trkis);
  border: 2px solid var(--cdu-blau-25);
  border-radius: 3px;
  cursor: pointer;
}

.checkbox-label span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
}

.checkbox-label a {
  color: var(--cdu-trkis);
  text-decoration: underline;
}

/* Submit Button */
.btn--submit {
  min-width: 200px;
  justify-content: center;
}

.btn-loading {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.btn-loading.is-loading {
  display: inline-flex;
}

.btn-text.is-hidden {
  display: none;
}

.spinner {
  width: 18px;
  height: 18px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Formular-Statusmeldung */
.form-message {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  display: none;
}

.form-message.is-visible {
  display: block;
}

.form-message--success {
  background-color: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
}

.form-message--error {
  background-color: #ffebee;
  border: 1px solid #ef9a9a;
  color: #c62828;
}

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--cdu-blau);
  padding-top: var(--section-pad);
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-candidate {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.03em;
  color: var(--cdu-white);
  margin-bottom: 0.35rem;
}

.footer-info {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.2rem;
}

.footer-nav h4,
.footer-legal h4 {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}

.footer-nav ul,
.footer-legal ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.footer-nav a,
.footer-legal a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}

.footer-nav a:hover,
.footer-legal a:hover {
  color: var(--cdu-trkis);
}

.footer-disclaimer {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-family: var(--font-headline);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

/* --------------------------------------------------------------------------
   14. SCROLL-ANIMATIONEN (Intersection Observer)
   -------------------------------------------------------------------------- */
.animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.animate--delay-1 { transition-delay: 0.1s; }
.animate--delay-2 { transition-delay: 0.22s; }
.animate--delay-3 { transition-delay: 0.34s; }

.animate--visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   15. ACCESSIBILITY & FOCUS
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--cdu-gold);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   16. PORTRAIT-BLOCK (Über mich – Hauptfoto oben)
   -------------------------------------------------------------------------- */

.ueber-portrait-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 700px) {
  .ueber-portrait-block {
    grid-template-columns: 380px 1fr;
    gap: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .ueber-portrait-block {
    grid-template-columns: 420px 1fr;
    gap: 5rem;
  }
}

/* Portrait-Bild-Rahmen mit CDU-Türkis-Akzent */
.ueber-portrait-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-color: var(--cdu-blau);
}

/* Türkiser Akzentstreifen oben */
.ueber-portrait-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--cdu-trkis) 0%, var(--cdu-trkis-60) 100%);
  z-index: 2;
}

.portrait-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

/* CDU-Störer-Badge (Kreis mit Gold-Hintergrund, CDU CI) */
.portrait-badge {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: var(--cdu-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow: var(--shadow-md);
  transform: rotate(-10deg); /* CDU CI: Störer leicht rotiert */
  z-index: 3;
}

.badge-main {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  color: var(--cdu-schwarz);
  text-transform: uppercase;
  line-height: 1;
}

.badge-sub {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cdu-schwarz);
  text-align: center;
  line-height: 1.3;
  padding: 0 6px;
}

/* Intro-Seite rechts neben dem Foto */
.ueber-portrait-intro {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ueber-portrait-intro .section-headline {
  margin-bottom: 0.25rem;
}

/* Rollen-Tags */
.portrait-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.25rem 0;
}

.portrait-roles span {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background-color: var(--cdu-blau);
  color: var(--cdu-white);
  padding: 0.3em 0.8em;
  border-radius: 2px;
}

.portrait-teaser {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
  margin: 0.5rem 0 0;
}

/* --------------------------------------------------------------------------
   17. FOTO-GALERIE „Nah an den Menschen"
   -------------------------------------------------------------------------- */

.foto-einblicke {
  padding-block: var(--section-pad);
  background-color: var(--cdu-trkis-10);
}

.foto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .foto-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .foto-card--tall {
    grid-row: span 2;
  }
}

@media (min-width: 1024px) {
  .foto-grid {
    gap: 2rem;
  }
}

.foto-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .foto-col {
    gap: 2rem;
  }
}

.foto-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--cdu-blau);
  box-shadow: var(--shadow-md);
  margin: 0;
  position: relative;
}

.foto-card--tall {
  display: flex;
  flex-direction: column;
}

.foto-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.foto-card--tall .foto-img {
  height: 100%;
  min-height: 300px;
  flex: 1;
}

@media (min-width: 700px) {
  .foto-card--tall .foto-img {
    height: 100%;
  }
  .foto-card:not(.foto-card--tall) .foto-img {
    height: 220px;
  }
}

.foto-card:hover .foto-img {
  transform: scale(1.03);
}

figcaption {
  padding: 1.1rem 1.25rem;
  background-color: var(--cdu-blau);
}

figcaption strong {
  display: block;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: -0.02em;
  color: var(--cdu-trkis-60);
  margin-bottom: 0.3rem;
}

figcaption {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   18. PRINT
   -------------------------------------------------------------------------- */
@media print {
  .navbar, .hero-shape, .section-shape, .hero-ctas { display: none; }
  .hero { min-height: auto; padding-top: 2rem; }
  body { font-size: 11pt; }
  .portrait-badge { display: none; }
  .foto-einblicke { break-inside: avoid; }
}

/* --------------------------------------------------------------------------
   19. COOKIE-BANNER
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: var(--cdu-blau);
  border-top: 3px solid var(--cdu-trkis);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
  padding: 1.25rem var(--container-pad);
}
.cookie-banner[hidden] { display: none; }

.cookie-banner__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1;
  min-width: 0;
}
.cookie-banner__text strong {
  display: block;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--cdu-white);
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}
.cookie-banner__text p {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  margin: 0;
}
.cookie-banner__text a {
  color: var(--cdu-trkis-60);
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.cookie-btn--primary {
  background-color: var(--cdu-gold);
  color: var(--cdu-schwarz);
}
.cookie-btn--primary:hover { background-color: #e89500; }
.cookie-btn--secondary {
  background-color: transparent;
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.3);
}
.cookie-btn--secondary:hover {
  background-color: rgba(255,255,255,0.1);
  color: var(--cdu-white);
}
@media (max-width: 600px) {
  .cookie-banner__inner { flex-direction: column; align-items: flex-start; }
  .cookie-banner__actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}
