/* Allgemeine Resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
body {
  background: #fff;
  margin: 0;
}

.cdu-sch-header {
  background: #54bbc5;
  padding: 50px 0 32px 0;
}

.cdu-sch-header-inner {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.cdu-sch-header-titles-logo {
  display: flex;
  align-items: flex-start;
  gap: 25px;
}

.cdu-sch-header-titles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cdu-sch-title {
  background: #374652;
  color: #fff;
  font-family: 'IBM Plex Serif', 'Inter', Arial, sans-serif;
  font-size: 2.7rem;
  font-weight: 800;
  padding: 10px 24px 7px 24px;
  margin-bottom: 0;
  display: inline-block;
  letter-spacing: 1px;
  border-radius: 0;
  box-sizing: border-box;
  white-space: nowrap;
}

.cdu-sch-slogan {
  background: #ffa600;
  color: #fff;
  font-family: 'IBM Plex Serif', 'Inter', Arial, sans-serif;
  font-size: 1.19rem;
  font-weight: 500;
  padding: 3px 13px 2px 13px;
  margin-top: 0;
  margin-left: 0;
  border-radius: 0;
  display: inline-block;
  box-sizing: border-box;
}

.cdu-sch-logo {
  align-self: flex-start;
  margin-top: 12px;
}

.cdu-sch-logo img {
  display: block;
  height: 55px;
  width: auto;
  margin-left: 0;
}

/* Responsive: Logo rutscht unter den Titel ab 750px */
@media (max-width: 900px) {
  .cdu-sch-header-titles-logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
  .cdu-sch-logo {
    margin-top: 5px;
    margin-left: 0;
  }
  .cdu-sch-header-inner {
    padding: 0 6vw;
  }
  .cdu-sch-title {
    font-size: clamp(1.2rem, 7vw, 2.2rem);
    padding: 9px 6vw 7px 6vw;
    white-space: normal;
    text-align: left;
    word-break: break-word;
    width: 100%;
  }
  .cdu-sch-slogan {
    font-size: 1.01rem;
    padding: 2px 6vw 2px 6vw;
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 570px) {
  .cdu-sch-logo img { height: 37px; }
  .cdu-sch-title { font-size: 1.18rem; }
}

/* Navigation */
nav {
  background: #34434f; 
  padding: 0;
  box-shadow: 0 2px 18px rgba(20,40,60,0.08);
}
#main-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  gap: 0;
}
#main-menu > li {
  position: relative;
  margin: 0 10px;
}
#main-menu > li > a {
  color: #fff;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  padding: 16px 28px 12px 28px;
  display: block;
  letter-spacing: 0.3px;
  position: relative;
  transition: color 0.17s;
  /* Trick für Fokus-Indikator */
  outline: none;
}

/* Genialer animierter Farbverlauf als Effekt */
#main-menu > li > a::before {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 4px;
  height: 4px;
  background: linear-gradient(90deg, #ffa600 0%, #52b7c1 100%);
  border-radius: 4px;
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.17s, transform 0.22s;
  z-index: 1;
}

#main-menu > li > a:hover,
#main-menu > li > a:focus {
  color: #ffa600;
  text-shadow: 0 1px 8px #222e3840;
}
#main-menu > li > a:hover::before,
#main-menu > li > a:focus::before {
  opacity: 1;
  transform: scaleX(1);
}

/* Aktive Seite extra hervorheben (wenn du 'active' als Klasse nutzt) */
#main-menu > li.active > a,
#main-menu > li > a[aria-current="page"] {
  color: #52b7c1;
}
#main-menu > li.active > a::before,
#main-menu > li > a[aria-current="page"]::before {
  opacity: 1;
  background: linear-gradient(90deg, #52b7c1 0%, #ffa600 100%);
  transform: scaleX(1.12);
}

/* Dropdown/Submenu bleibt wie gehabt, für bessere Lesbarkeit */
#main-menu .submenu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 22px rgba(44,60,75,0.14);
  padding: 10px 0;
  z-index: 1001;
}
#main-menu .submenu li {
  margin: 0;
  width: 100%;
  list-style: none;
}
#main-menu .submenu li a {
  color: #2a4557;
  font-size: 17px;
  padding: 13px 28px;
  font-family: 'Inter', sans-serif;
  display: block;
  text-decoration: none;
  background: none;
  transition: background 0.15s, color 0.17s;
}
#main-menu .submenu li a:hover,
#main-menu .submenu li a:focus {
  background: #e9f6fa;
  color: #ffa600;
}
#main-menu .has-submenu:hover > .submenu,
#main-menu .has-submenu:focus-within > .submenu {
  display: block;
}
#main-menu .has-submenu > a::after {
  content: " ▼";
  font-size: 0.88em;
  color: #ffa600;
  margin-left: 3px;
}

/* Remove Bullet-Points bei Submenus */
#main-menu .submenu,
nav ul ul,
nav ul ul li {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* Barrierefrei Fokus-Effekt */
#main-menu > li > a:focus-visible {
  outline: 3px solid #ffa600;
  outline-offset: 3px;
}


/* Hamburger Menü mobil */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: rgba(38, 54, 84, 0.92);
  border-radius: 50%;
  box-shadow: 0 2px 14px rgba(44,60,75,0.13);
  border: none;
  cursor: pointer;
  gap: 6px;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 0;
  transition: background 0.22s;
}
.menu-toggle:hover {
  background: rgba(82, 183, 193, 0.98);
}
.menu-toggle .bar {
  height: 4px;
  width: 30px;
  background: #fff;
  border-radius: 2px;
  display: block;
  transition: 0.3s;
}

/* Responsives Menü */
@media (max-width: 990px) {
  .menu-toggle { display: flex; }
  nav ul#main-menu {
    flex-direction: column;
    align-items: flex-start;
    background: #52b7c1;
    position: fixed;
    top: 64px;
    left: 0;
    width: 84vw;
    max-width: 340px;
    min-height: 40vh;
    box-shadow: 2px 4px 16px rgba(0,0,0,0.14);
    border-radius: 0 0 12px 0;
    z-index: 9998;
    text-align: left;
    padding: 16px 0 24px 0;
    display: none;
  }
  nav ul#main-menu.active {
    display: flex;
  }
  #main-menu > li {
    margin: 8px 0;
    width: 100%;
  }
  #main-menu > li > a {
    font-size: 19px;
    padding: 16px 30px;
  }
  #main-menu .submenu {
    position: static;
    box-shadow: none;
    border-radius: 0 0 10px 10px;
    min-width: 0;
    background: #e9f6fa;
    padding: 0 0 0 10px;
  }
  #main-menu .submenu li a {
    font-size: 17px;
    color: #52b7c1;
    background: none;
    padding: 12px 16px;
  }
}

/* Main Content */
main {
  flex: 1;
  padding: 24px 10px;
}
main section {
  margin-bottom: 40px;
  padding: 20px;
  background: #f2f8fa;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.09);
}
h2 {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #1b191d;
  margin-bottom: 15px;
}

/* Cards, Vorstände, Mandatsträger etc. */
.card-grid, .vorstand-grid, .mandat-grid, .about-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.card, .vorstand-card, .mandat-card, .about-cat-card {
  background: #e9f6fa;
  border-radius: 12px;
  box-shadow: 0 2px 9px rgba(44,60,75,0.07);
  padding: 24px 16px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.about-cat-card {
  cursor: pointer;
  text-decoration: none;
  color: #22333a;
  transition: background 0.17s, box-shadow 0.17s, color 0.18s;
  border: 2px solid transparent;
}
.about-cat-card:hover,
.about-cat-card:focus {
  background: #ffa600;
  color: #fff;
  box-shadow: 0 6px 22px rgba(44,60,75,0.14);
  border-color: #52b7c1;
}
.about-cat-title {
  font-size: 1.18rem;
  font-weight: 900;
  margin-bottom: 7px;
  color: inherit;
}
.about-cat-text {
  font-size: 1.02rem;
  color: inherit;
  line-height: 1.6;
}
/* Vorstand-Bereich */
#vorstand {
    text-align: center;
    padding: 40px 20px;
    background-color: #f2f8fa; /* Leichtes Türkis */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

/* Vorsitzender */
#vorstand .vorsitzender {
    margin-bottom: 40px;
}

#vorstand .vorsitzender img {
    width: 180px;
    height: 180px;
    object-fit: cover; /* Zuschneiden zu einem Quadrat */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Weicher Schatten */
    margin-bottom: 15px;
}

#vorstand .vorsitzender h3,
#vorstand .vorstand-liste h3 {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 800;
    margin: 10px 0 5px;
    color: #1b191d; /* Union-Schwarz */
}
#vorstand h2 {
  font-size: 2rem;              /* Deutlich größer */
  font-weight: 900;             /* Sehr fett */
  color: #22333a;               /* Kräftiges Dunkelblau (anpassbar) */
  margin-top: 38px;             /* Viel Abstand nach oben */
  margin-bottom: 22px;          /* Klarer Abstand zum folgenden Block */
  letter-spacing: 1px;          /* Etwas mehr Buchstabenabstand */
  text-transform: uppercase;    /* Optional: Alles Großbuchstaben */
  border-left: 7px solid #ffa600; /* Gelber Streifen als Hingucker */
  padding-left: 18px;
  background: #f8fafb;          /* Heller Hintergrund (optional) */
  border-radius: 0 14px 14px 0; /* Nur rechts leicht abgerundet */
  box-shadow: 0 2px 8px rgba(44,60,75,0.06); /* leichter Schatten */
  display: inline-block;
}
#vorstand h2:first-child {
  margin-top: 0;
}

#vorstand .vorsitzender p {
    font-size: 16px;
    color: #555; /* Leichtes Grau */
}

/* Stellvertreter und Beisitzer */
#vorstand .vorstand-liste {
    display: flex;
    justify-content: center; /* Zentriert die Mitglieder */
    gap: 30px; /* Abstand zwischen den Mitgliedern */
    flex-wrap: wrap; /* Anpassung für kleine Bildschirme */
}

#vorstand .mitglied {
    text-align: center;
    max-width: 180px;
}

#vorstand .mitglied img {
    width: 150px;
    height: 150px;
    object-fit: cover; /* Zuschneiden zu einem Quadrat */
    border-radius: 10px; /* Leicht abgerundete Ecken */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Weicher Schatten */
    margin-bottom: 10px;
}

#vorstand .mitglied h3 {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin: 10px 0 5px;
    color: #1b191d; /* Union-Schwarz */
}

#vorstand .mitglied p {
    font-size: 14px;
    color: #555; /* Leichtes Grau */
}
/* Stadtratsfraktion-Bereich */
#stadtratsfraktion {
    text-align: center;
    padding: 40px 20px;
    background-color: #f2f8fa; /* Leichtes Türkis */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

/* Vorsitzender */
#stadtratsfraktion .vorsitzender {
    margin-bottom: 40px;
}

#stadtratsfraktion .vorsitzender img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
}

#stadtratsfraktion .vorsitzender h3 {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 800;
    margin: 10px 0 5px;
    color: #1b191d;
}

#stadtratsfraktion .vorsitzender p {
    font-size: 16px;
    color: #555;
}

/* Mitglieder der Stadtratsfraktion */
#stadtratsfraktion .stadtrat-liste {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

#stadtratsfraktion .mitglied {
    text-align: center;
    max-width: 180px;
}

#stadtratsfraktion .mitglied img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
}

#stadtratsfraktion .mitglied h3 {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin: 10px 0 5px;
    color: #1b191d;
}

#stadtratsfraktion .mitglied p {
    font-size: 14px;
    color: #555;
}

/* Footer Styling */
footer {
  background: #52b7c1;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  width: 100%;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-content p {
  margin: 0;
  font-size: 14px;
}
.footer-link {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  margin: 0 5px;
  transition: color 0.3s ease;
}
.footer-link:hover {
  color: #f7f7f7;
}

/* Formulare */
form {
  max-width: 600px;
  margin: 20px 0;
}
form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
form input, form textarea, form button {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
form textarea { resize: vertical; }
form button {
  background: #ffa600;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.18s;
}
form button:hover { background: #cc8500; }

/* Impressum & Datenschutz Seiten */
main#impressum, main#datenschutz {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: #333;
  line-height: 1.6;
}
main#impressum h2, main#datenschutz h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1b191d;
}
main#impressum h3, main#datenschutz h3 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 10px;
  color: #1b191d;
}
main#impressum p, main#datenschutz p {
  font-size: 16px;
  margin-bottom: 15px;
}
main#impressum ul, main#datenschutz ul {
  margin-left: 20px;
  padding-left: 20px;
  list-style-type: disc;
}
main#impressum ul li, main#datenschutz ul li {
  margin-bottom: 10px;
  font-size: 16px;
}
main#impressum a, main#datenschutz a {
  color: #52b7c1;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}
main#impressum a:hover, main#datenschutz a:hover {
  color: #1b191d;
}

/* Responsive Anpassungen */
@media (max-width: 900px) {
  .header-content { flex-direction: column; align-items: center; margin-top: 44px; }
  .logo-image img { max-width: 90vw; }
  .card-grid, .vorstand-grid, .mandat-grid, .about-categories-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  main { padding: 14px 2vw; }
  main section { padding: 12px; }
}
@media (max-width: 600px) {
  .logo-text h1 { font-size: 19px; }
  .card, .vorstand-card, .mandat-card, .about-cat-card {
    min-height: 90px;
    padding: 13px 7px;
  }
  h2 { font-size: 19px; }
}
