/* CDU Corporate Design Manual – Stand November 2023 */

/* ============================================
   CDU DESIGN SYSTEM – FARBEN
   ============================================ */
:root {
  --cdu-union-schwarz: #1b191d; /* Union-Schwarz (Hauptfarbe) */
  --cdu-rot: #bf111b; /* Rot für Bogen (Schwarz-Rot-Gold) */
  --cdu-union-gold: #ffa600; /* Union-Gold */
  --cdu-cadenabbia-tuerkis: #52b7c1; /* Cadenabbia-Türkis */
  --cdu-blau: #2d3c4b;
  --cdu-weiss: #ffffff;
  
  /* Alias für Kompatibilität */
  --cdu-schwarz: var(--cdu-union-schwarz);
  --cdu-gold: var(--cdu-union-gold);
  --cdu-tuerkis: var(--cdu-cadenabbia-tuerkis);
}

/* ============================================
   FONT-FACE DEFINITIONEN
   ============================================ */
/* 
 * CDU Manual 2023: Headline-Schrift = IBM Flex Serif
 * Subline/Copy-Schrift = Inter
 * 
 * Hinweis: IBM Flex Serif ist nicht bei Google Fonts verfügbar.
 * Falls lokal verfügbar, sollte @font-face verwendet werden.
 * IBM Plex Serif wird als Fallback verwendet.
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=IBM+Plex+Serif:wght@400;700&display=swap');

/* IBM Flex Serif sollte lokal geladen werden, wenn verfügbar */
@font-face {
  font-family: 'IBM Flex Serif';
  src: local('IBM Flex Serif Regular'),
       local('IBMFlexSerif-Regular');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Flex Serif';
  src: local('IBM Flex Serif Bold'),
       local('IBMFlexSerif-Bold');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Flex Serif';
  src: local('IBM Flex Serif Italic'),
       local('IBMFlexSerif-Italic');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden; /* Verhindert horizontales Scrollen */
  width: 100%;
}

body {
  /* CDU Manual 2023: Copy-Schrift = Inter (nicht IBM Flex Serif für Body) */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--cdu-union-schwarz);
  line-height: 1.6;
  background-color: var(--cdu-weiss);
  width: 100%;
  overflow-x: hidden; /* Verhindert horizontales Scrollen */
  box-sizing: border-box;
}

/* ============================================
   SKIP LINK (BARRIEREFREIHEIT) - ENTFERNT
   ============================================ */

body {
  /* CDU Manual 2023: Copy-Schrift = Inter (nicht IBM Flex Serif für Body) */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--cdu-union-schwarz);
  line-height: 1.6;
  background-color: var(--cdu-weiss);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
/* CDU Manual 2023: Headline-Schrift = IBM Flex Serif */
h1, h2, h3, h4, h5, h6 {
  font-family: 'IBM Flex Serif', 'IBM Plex Serif', 'Georgia', serif;
  font-weight: 400; /* IBM Flex Serif Regular für Headlines */
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: none; /* Keine Versalien */
  color: var(--cdu-union-schwarz);
}

/* Inter ExtraBold für Betreff/Highlights (CDU Manual 2023) */
.betreff,
.highlight,
strong.betreff {
  font-family: 'Inter', sans-serif;
  font-weight: 800; /* ExtraBold */
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.875rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

p {
  /* CDU Manual 2023: Copy-Schrift = Inter */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

/* IBM Flex Serif für spezielle Textabschnitte (wie im Manual für Copy) */
.copy-serif {
  font-family: 'IBM Flex Serif', 'IBM Plex Serif', 'Georgia', serif;
  font-weight: 400;
}

/* Union-Gold Hervorhebung für Online-Textabschnitte (CDU Manual 2023, Abschnitt 7.1) */
.highlight-gold {
  color: var(--cdu-union-gold);
  font-weight: 600;
}

a {
  /* CDU Manual 2023: Union-Schwarz statt Rot für Links */
  color: var(--cdu-union-schwarz);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--cdu-cadenabbia-tuerkis);
}

/* ============================================
   FOKUS-STYLES (BARRIEREFREIHEIT)
   ============================================ */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
video:focus {
  outline: 3px solid var(--cdu-union-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
video:focus-visible {
  outline: 3px solid var(--cdu-union-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
  /* CDU Manual 2023: Logo steht primär auf Cadenabbia-Türkis oder auf Bild (Abschnitt 2.1) */
  background-color: var(--cdu-cadenabbia-tuerkis);
  /* Schutzraum: 1/2 der Logo-Gesamthöhe (Manual Abschnitt 2.2) */
  /* Bei Logo-Höhe von 80px = Schutzraum von 40px oben/unten */
  padding: 1.25rem 2rem; /* 20px oben/unten für angemessenen Schutzraum */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 2000;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  padding-right: 120px; /* Platz für Login-Button rechts (etwas mehr Platz) */
  padding-left: 0;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
  min-height: 80px; /* Mindesthöhe für Header - Originalgröße */
  /* Logo-Positionierung: links */
  /* Navigation wird optisch ausgewogen zwischen Logo und Login-Button positioniert */
}

.login-button {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  padding: 0.45rem 0.9rem;
  /* CDU Manual 2023: Union-Schwarz statt Rot */
  background: var(--cdu-union-schwarz);
  border: 1px solid var(--cdu-union-schwarz);
  border-radius: 6px;
  color: var(--cdu-weiss);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  z-index: 1200; /* sichtbar über Logo/Navigation */
  white-space: nowrap;
  height: fit-content;
}

/* Desktop: Login-Button nicht über Navigation */
@media (min-width: 769px) {
  /* Navigation behält ihren Schutzraum zum Logo */
}

.login-button:hover {
  background: var(--cdu-cadenabbia-tuerkis);
  border-color: var(--cdu-cadenabbia-tuerkis);
  color: var(--cdu-weiss);
}

@media (max-width: 768px) {
  .login-button {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    transform: none;
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    z-index: 1500; /* sicher über Menü/Nav */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

/* CDU Manual 2023: Logo-Implementierung */
.logo {
  /* Mindestgröße Web: 100px BREITE (Manual Abschnitt 2.1) - Originalgröße */
  min-width: 100px;
  width: auto;
  height: auto;
  /* Schutzraum: 1/2 der Gesamthöhe (Manual Abschnitt 2.2) */
  /* Bei Logo-Höhe von 80px = Schutzraum von 40px (0.5 * 80px) */
  margin-right: 2.5rem; /* 40px Schutzraum zur Navigation (Manual Abschnitt 2.2) */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* Positionierung: links, vertikal zentriert */
  z-index: 50; /* Unter Navigation, damit Navigation nicht überdeckt wird */
  position: relative;
  flex-shrink: 0; /* Logo behält seine Größe */
}

.logo img {
  /* Logo mit Bogen in Schwarz-Rot-Gold (Manual Abschnitt 2.1) */
  /* Logo steht primär auf Cadenabbia-Türkis (Header-Hintergrund) */
  min-width: 100px; /* Mindestgröße Web: 100px Breite - Originalgröße */
  width: auto;
  height: auto;
  max-height: 80px; /* Angemessene Höhe für Header - Originalgröße */
  object-fit: contain;
  display: block;
}

/* Navigation */
nav {
  display: block;
  /* Navigation optisch ausgewogen zwischen Logo (links) und Login-Button (rechts) */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /* Zentriert im verfügbaren Raum zwischen Logo und Login-Button */
  left: 50%;
  margin-left: 0;
  z-index: 150; /* Über Logo, damit Navigation nicht überdeckt wird */
  width: auto;
  max-width: calc(100% - 400px); /* Verhindert Überlappung: Logo (~150px) + Login (~110px) + Puffer */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}

/* Desktop: Navigation immer sichtbar */
@media (min-width: 769px) {
  nav {
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) translateX(-50%) !important;
    left: 50% !important;
    margin-left: 0 !important;
    z-index: 150 !important; /* Über Logo */
    max-width: calc(100% - 400px) !important; /* Platz für Logo (~150px) und Login-Button (~110px) + Puffer */
    width: auto !important;
  }
  
  nav ul {
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 1.5rem !important; /* Konsistente Abstände zwischen Menüpunkten */
    flex-direction: row !important;
  }
}

nav a {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  /* CDU Manual 2023: Navigation auf Cadenabbia-Türkis Hintergrund */
  color: var(--cdu-weiss);
  font-size: 1rem;
  padding: 0.5rem 0;
  position: relative;
}

nav a:hover {
  color: var(--cdu-union-gold);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  /* CDU Manual 2023: Union-Gold für Hover-Effekte auf Cadenabbia-Türkis */
  background-color: var(--cdu-union-gold);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Burger Menü (Mobile) */
.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 4px;
  position: relative;
  z-index: 1001;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  min-width: 48px; /* Größere Touch-Target für bessere Bedienbarkeit */
  min-height: 48px; /* Größere Touch-Target für bessere Bedienbarkeit */
  justify-content: center;
  align-items: center;
  pointer-events: auto !important;
  -webkit-touch-callout: none;
  -webkit-appearance: none;
  appearance: none;
  /* Verbesserte Touch-Unterstützung für Chrome Mobile */
  -webkit-user-drag: none;
  will-change: transform;
}

.burger-menu:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.burger-menu:active {
  background-color: rgba(255, 255, 255, 0.2);
}

.burger-menu[aria-expanded="true"] {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Verbesserte Touch-Unterstützung für mobile Geräte */
@media (hover: none) and (pointer: coarse) {
  .burger-menu:hover {
    background-color: transparent;
  }
  
  .burger-menu:active {
    background-color: rgba(255, 255, 255, 0.2);
  }
}

.burger-menu span {
  width: 25px;
  height: 3px;
  /* CDU Manual 2023: Burger-Menü auf Cadenabbia-Türkis Hintergrund */
  background-color: var(--cdu-weiss);
  transition: all 0.3s ease;
  pointer-events: none;
  display: block;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .header-container {
    position: relative;
    padding-right: 4rem; /* Platz für Burger-Menü */
    gap: 0;
  }

  .burger-menu {
    display: flex !important;
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1300 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }

  .logo {
    margin-right: 1rem;
    min-width: 80px;
  }

  .logo img {
    max-height: 60px;
    min-width: 80px;
  }

  /* Mobile: Navigation als Dropdown */
  nav {
    position: fixed !important;
    top: var(--header-height, 80px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: var(--cdu-cadenabbia-tuerkis);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: max-height 0.3s ease, opacity 0.2s ease;
    z-index: 1900 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-sizing: border-box;
  }

  nav.menu-open {
    max-height: 70vh !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem;
    gap: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

  nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  nav ul li a {
    display: block;
    padding: 0.9rem 0;
    font-size: 1.125rem;
  }

  nav ul li a::after {
    display: none;
  }
}

/* Desktop: Navigation bleibt sichtbar und horizontal */
@media (min-width: 769px) {
  .burger-menu {
    display: none !important;
  }
  
  /* Navigation bleibt absolut positioniert und zentriert */
  nav.menu-open {
    max-height: none !important;
    display: block !important;
  }
  
  nav ul li {
    width: auto !important;
    border-bottom: none !important;
  }
  
  nav ul li a {
    display: inline-block !important;
    padding: 0.5rem 0 !important;
    font-size: 1rem !important;
  }
  
  nav ul li a::after {
    display: block !important;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* CDU Manual 2023: Logo steht primär auf Cadenabbia-Türkis oder auf Bild */
  background: linear-gradient(135deg, var(--cdu-cadenabbia-tuerkis) 0%, var(--cdu-blau) 100%);
  overflow: hidden;
  margin-bottom: 4rem;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-bogen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  mask-image: url('../assets/bogen.svg');
  mask-size: cover;
  mask-position: center;
  mask-repeat: no-repeat;
  background: var(--cdu-weiss);
  opacity: 0.1;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--cdu-weiss);
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.hero-content h1 {
  color: var(--cdu-weiss);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease;
}

.hero-content .subline {
  /* CDU Manual 2023: Subline-Schrift = Inter */
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  animation: fadeInUp 1s ease;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1.2s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-gold {
  background: var(--cdu-union-gold);
  color: var(--cdu-union-schwarz);
  font-family: 'Inter', sans-serif;
  font-weight: 800; /* ExtraBold */
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.btn-gold:hover {
  background: var(--cdu-cadenabbia-tuerkis);
  color: var(--cdu-weiss);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--cdu-weiss);
  border: 2px solid var(--cdu-weiss);
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-outline:hover {
  background: var(--cdu-weiss);
  color: var(--cdu-cadenabbia-tuerkis);
}

/* ============================================
   STÖRER
   ============================================ */
.stoerer {
  background: var(--cdu-union-gold);
  color: var(--cdu-union-schwarz);
  transform: rotate(-10deg);
  font-family: 'Inter', sans-serif;
  font-weight: 800; /* ExtraBold */
  padding: 0.6rem 1.4rem;
  display: inline-block;
  font-size: 1.125rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
/* CDU Manual 2023: Konsistente Container-Breite für bessere Lesbarkeit */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box;
}

.section {
  padding: 4rem 0;
}

/* ============================================
   CARDS & GRID
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  align-items: stretch;
}

.card {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card h3 {
  color: var(--cdu-schwarz);
  margin-bottom: 1rem;
}

.card p {
  margin-bottom: 1.5rem;
}

/* Themen Cards mit wechselnden Hintergründen */
.themen-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.themen-card .btn-gold {
  margin-top: auto;
  align-self: center;
  width: 100%;
  text-align: center;
}

.themen-card:nth-child(odd) {
  background: #f5f5f5;
}

.themen-card:nth-child(even) {
  background: var(--cdu-cadenabbia-tuerkis);
  color: var(--cdu-weiss);
}

.themen-card:nth-child(even) h3,
.themen-card:nth-child(even) p {
  color: var(--cdu-weiss);
}

.themen-card:nth-child(3n) {
  background: var(--cdu-blau);
  color: var(--cdu-weiss);
}

/* Überschriften in farbigen Cards müssen weiß sein - höhere Spezifität */
.themen-card:nth-child(3n) h3,
.themen-card:nth-child(3n) p {
  color: var(--cdu-weiss) !important;
}

/* Sicherstellen, dass Überschriften in farbigen Cards weiß sind */
.themen-card:nth-child(3n) h3 {
  color: var(--cdu-weiss) !important;
}

/* ============================================
   VORSTAND GRID
   ============================================ */
.vorstand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.vorstand-card {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.vorstand-card:hover {
  transform: translateY(-5px);
}

.vorstand-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.vorstand-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.vorstand-card .funktion {
  font-family: 'Inter', sans-serif;
  color: var(--cdu-cadenabbia-tuerkis);
  font-weight: 600;
}

/* ============================================
   NEWS / AKTUELLES
   ============================================ */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.news-item {
  background: #f5f5f5;
  /* CDU Manual 2023: Union-Schwarz statt Rot */
  border-left: 4px solid var(--cdu-union-schwarz);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-item .date {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--cdu-blau);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-item h3 {
  margin-bottom: 0.75rem;
}

.news-item .teaser {
  margin-bottom: 1rem;
  color: #666;
}

/* ============================================
   FORMULARE
   ============================================ */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  /* CDU Manual 2023: Cadenabbia-Türkis als Hintergrund */
  background: var(--cdu-cadenabbia-tuerkis);
  padding: 2rem;
  border-radius: 12px;
  color: var(--cdu-weiss);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--cdu-weiss);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  /* CDU Manual 2023: Copy-Schrift = Inter */
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--cdu-weiss);
  transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cdu-union-gold);
  background: rgba(255, 255, 255, 0.15);
}

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

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

legend {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--cdu-weiss);
  padding: 0;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.checkbox-group label {
  font-weight: 400;
  margin-bottom: 0;
  cursor: pointer;
}

.dsgvo-hinweis {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 1rem;
  font-style: italic;
}

/* ============================================
   KONTAKT BOX
   ============================================ */
.kontakt-box {
  background: var(--cdu-cadenabbia-tuerkis);
  color: var(--cdu-weiss);
  padding: 2rem;
  border-radius: 12px;
  margin-top: 2rem;
}

.kontakt-box h3 {
  color: var(--cdu-weiss);
  margin-bottom: 1rem;
}

.kontakt-box p {
  margin-bottom: 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--cdu-union-schwarz);
  color: var(--cdu-weiss);
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0 2rem;
}

.footer-section h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  color: var(--cdu-weiss);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--cdu-union-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  background: var(--cdu-union-schwarz);
  border: 1px solid var(--cdu-union-schwarz);
  border-radius: 6px;
  color: var(--cdu-weiss);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-login:hover {
  background: var(--cdu-cadenabbia-tuerkis);
  border-color: var(--cdu-cadenabbia-tuerkis);
  color: var(--cdu-weiss);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
    padding-right: 4rem; /* Platz für Burger-Menü und Login-Button */
  }

  .hero {
    min-height: 400px;
  }

  .hero-content {
    padding: 1rem;
    max-width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-gold,
  .btn-outline {
    width: 100%;
  }

  .container {
    padding: 0 1rem;
    max-width: 100%;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .vorstand-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .section {
    padding: 2rem 0;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ============================================
   POPUP STYLES
   ============================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-overlay[aria-hidden="false"] {
  display: flex;
}

.popup {
  background: var(--cdu-weiss);
  color: var(--cdu-schwarz);
  border-radius: 16px;
  padding: 2rem;
  width: 90%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.popup h2 {
  color: var(--cdu-schwarz);
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.popup p {
  margin-bottom: 1.5rem;
  color: var(--cdu-schwarz);
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--cdu-schwarz);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.popup-close:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.popup-close:focus {
  outline: 3px solid var(--cdu-gold);
  outline-offset: 2px;
}

/* Screen-Reader-only Text */
.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;
}

/* Verbesserte Kontraste für Barrierefreiheit */
.error-message {
  color: var(--cdu-rot);
  font-weight: 600;
}

/* ============================================
   COOKIE BANNER (DSGVO-KONFORM)
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--cdu-weiss);
  border-top: 2px solid var(--cdu-union-gold);
  padding: 1.25rem 2rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  z-index: 9998;
  display: none;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  display: flex;
  transform: translateY(0);
}

.cookie-banner-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-sizing: border-box;
  padding: 0 2rem;
}

.cookie-banner-text {
  flex: 1;
  min-width: 250px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--cdu-union-schwarz);
}

.cookie-banner-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: var(--cdu-union-gold);
  color: var(--cdu-union-schwarz);
}

.cookie-btn-accept:hover {
  background: var(--cdu-cadenabbia-tuerkis);
  color: var(--cdu-weiss);
}

.cookie-btn-accept:focus {
  outline: 3px solid var(--cdu-union-gold);
  outline-offset: 2px;
}

.cookie-btn-decline {
  background: transparent;
  color: var(--cdu-union-schwarz);
  border: 2px solid var(--cdu-union-schwarz);
}

.cookie-btn-decline:hover {
  background: var(--cdu-union-schwarz);
  color: var(--cdu-weiss);
}

.cookie-btn-decline:focus {
  outline: 3px solid var(--cdu-union-gold);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .cookie-banner {
    padding: 1rem;
  }

  .cookie-banner-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .cookie-banner-text {
    min-width: auto;
  }

  .cookie-banner-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }
}

/* ============================================
   COOKIE BLOCKIER-OVERLAY
   ============================================ */
.cookie-block-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 25, 29, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.cookie-block-overlay.show {
  display: flex;
}

.cookie-block-content {
  background: var(--cdu-weiss);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-block-content h2 {
  color: var(--cdu-schwarz);
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.cookie-block-content p {
  color: var(--cdu-schwarz);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cookie-block-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--cdu-union-schwarz);
}

@media (max-width: 768px) {
  .cookie-block-content {
    padding: 2rem 1.5rem;
  }

  .cookie-block-content h2 {
    font-size: 1.5rem;
  }
}

/* ============================================
   DATENSCHUTZ SEITE STYLES
   ============================================ */
#main-content h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--cdu-union-gold);
}

#main-content h2:first-of-type {
  margin-top: 2rem;
}

#main-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--cdu-cadenabbia-tuerkis);
}

#main-content ul,
#main-content ol {
  margin: 1rem 0 1rem 2rem;
  line-height: 1.8;
}

#main-content ul li,
#main-content ol li {
  margin-bottom: 0.75rem;
}

#main-content ul li::marker {
  color: var(--cdu-union-schwarz);
}

#main-content strong {
  color: var(--cdu-schwarz);
  font-weight: 700;
}

#main-content p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  #main-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  #main-content h3 {
    font-size: 1.25rem;
  }

  #main-content ul,
  #main-content ol {
    margin-left: 1.5rem;
  }
}

/* ============================================
   VIDEO GRID STYLES
   ============================================ */
.video-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin: 2rem 0;
}

.video-card {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.listenplatz-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: var(--cdu-union-gold);
  color: var(--cdu-union-schwarz);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 800; /* ExtraBold */
  font-size: 0.875rem;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.02em;
}

.video-card video {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: var(--cdu-schwarz);
}

.video-card h3 {
  color: var(--cdu-schwarz);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.video-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

.kandidat-text-container {
  position: relative;
}

.kandidat-text {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kandidat-text.expanded {
  display: block;
  -webkit-line-clamp: unset;
}

.btn-weiterlesen {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--cdu-union-gold);
  color: var(--cdu-union-schwarz);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.btn-weiterlesen:hover {
  background: var(--cdu-cadenabbia-tuerkis);
  color: var(--cdu-weiss);
}

.btn-weiterlesen.hidden {
  display: none;
}

@media (min-width: 600px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

