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

/* ============================================
   CDU DESIGN SYSTEM – FARBEN
   ============================================ */
:root {
  --cdu-schwarz: #1b191d;
  --cdu-rot: #bf111b;
  --cdu-gold: #ffa600;
  --cdu-tuerkis: #52b7c1;
  --cdu-blau: #2d3c4b;
  --cdu-weiss: #ffffff;
}

/* ============================================
   FONT-FACE DEFINITIONEN
   ============================================ */
/* Verwende Google Fonts direkt, da lokale Font-Dateien nicht vorhanden sind */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Serif:wght@400;700&display=swap');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

/* ============================================
   SKIP LINK (BARRIEREFREIHEIT)
   ============================================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--cdu-gold);
  color: var(--cdu-schwarz);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: 800;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--cdu-schwarz);
  outline-offset: 2px;
}

body {
  font-family: 'IBM Plex Serif', 'Georgia', serif;
  color: var(--cdu-schwarz);
  line-height: 1.6;
  background-color: var(--cdu-weiss);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: none; /* Keine Versalien */
  color: var(--cdu-schwarz);
}

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 {
  font-family: 'IBM Plex Serif', 'Georgia', serif;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

a {
  color: var(--cdu-rot);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
  background-color: var(--cdu-weiss);
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding-right: 110px; /* Platz für Login-Button rechts */
}

.login-button {
  position: absolute;
  bottom: 0.6rem;
  right: 0.75rem;
  transform: none;
  padding: 0.45rem 0.9rem;
  background: var(--cdu-rot);
  border: 1px solid var(--cdu-rot);
  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/Burger */
  white-space: nowrap;
}

/* Desktop: Login-Button nicht über Navigation */
@media (min-width: 769px) {
  nav {
    margin-right: 0;
  }
}

.login-button:hover {
  background: var(--cdu-blau);
  border-color: var(--cdu-blau);
  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);
  }
}

.logo {
  height: 60px;
  width: auto;
}

.logo img {
  height: 100%;
  width: auto;
}

/* Navigation */
nav {
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

/* Desktop: Navigation immer sichtbar */
@media (min-width: 769px) {
  nav {
    display: block !important;
    margin-right: 0;
    flex: 1;
    max-width: calc(100% - 100px); /* Platz für Login-Button */
  }
  
  nav ul {
    justify-content: flex-end;
    margin-right: 0;
    padding-right: 0;
  }
}

nav a {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--cdu-schwarz);
  font-size: 1rem;
  padding: 0.5rem 0;
  position: relative;
}

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

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--cdu-rot);
  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: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  pointer-events: auto !important;
  -webkit-touch-callout: none;
  -webkit-appearance: none;
  appearance: none;
}

.burger-menu:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.burger-menu:active {
  background-color: rgba(0, 0, 0, 0.1);
}

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

/* 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(0, 0, 0, 0.15);
  }
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background-color: var(--cdu-schwarz);
  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; /* zusätzlicher Platz für Login-Button */
  }

  .burger-menu {
    display: flex;
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    z-index: 1300; /* über dem Login-Button halten */
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background-color: var(--cdu-weiss);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: max-height 0.4s ease-in-out;
    z-index: 1000;
    display: none;
  }

  nav.menu-open {
    max-height: 500px !important;
    display: block !important;
  }

  nav ul {
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 0;
    margin: 0;
  }

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

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

  nav ul li a {
    display: block;
    padding: 1rem 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;
  }
  
  nav {
    display: block !important;
    position: static !important;
    max-height: none !important;
    box-shadow: none !important;
    width: auto !important;
  }
  
  nav.menu-open {
    max-height: none !important;
    display: block !important;
  }
  
  nav ul {
    flex-direction: row !important;
    padding: 0 !important;
    gap: 2rem !important;
    margin: 0 !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;
  }

  nav ul {
    flex-direction: column;
    padding: 1rem 2rem;
    gap: 1rem;
    align-items: flex-start;
    width: 100%;
    margin: 0;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cdu-blau) 0%, var(--cdu-tuerkis) 100%);
  overflow: hidden;
  margin-bottom: 4rem;
}

.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;
}

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

.hero-content .subline {
  font-family: 'IBM Plex Serif', serif;
  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-gold);
  color: var(--cdu-weiss);
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  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-blau);
  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-blau);
}

/* ============================================
   STÖRER
   ============================================ */
.stoerer {
  background: var(--cdu-gold);
  color: var(--cdu-weiss);
  transform: rotate(-10deg);
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  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
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 4rem 0;
}

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

.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:nth-child(odd) {
  background: #f5f5f5;
}

.themen-card:nth-child(even) {
  background: var(--cdu-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: 'IBM Plex Serif', serif;
  color: var(--cdu-rot);
  font-weight: 600;
}

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

.news-item {
  background: #f5f5f5;
  border-left: 4px solid var(--cdu-rot);
  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;
  background: var(--cdu-blau);
  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;
  font-family: 'IBM Plex Serif', 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-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-blau);
  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-blau);
  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;
}

.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-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);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
  }

  .hero {
    min-height: 400px;
  }

  .hero-content {
    padding: 1rem;
  }

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

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

  .container {
    padding: 0 1rem;
  }

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

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

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

@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-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;
}

.cookie-banner-text {
  flex: 1;
  min-width: 250px;
  font-family: 'IBM Plex Serif', serif;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--cdu-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-gold);
  color: var(--cdu-schwarz);
}

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

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

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

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

.cookie-btn-decline:focus {
  outline: 3px solid var(--cdu-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-rot);
}

@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-gold);
}

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

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

#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-rot);
}

#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-gold);
  color: var(--cdu-schwarz);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  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-gold);
  color: var(--cdu-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-blau);
  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);
  }
}

