/* ==========================================================
   SPD Gesundbrunnen – Hauptstylesheet
   Primärfarbe: #E2001A (SPD-Rot)
   Schrift:     System-Font-Stack (kein externer Ladeaufruf)
   Letzte Änderung: 2026
   ========================================================== */

/* ----------------------------------------------------------
   0. CSS-VARIABLEN
   ---------------------------------------------------------- */
:root {
  --rot:        #E2001A;
  --rot-dunkel: #b50015;
  --rot-hell:   #fce8ea;
  --schrift:    #1a1a1a;
  --grau-hell:  #f5f5f5;
  --grau-mitte: #e0e0e0;
  --grau-dunkel:#6b6b6b;
  --weiss:      #ffffff;
  --max-breite: 1100px;
  --abstand-s:  0.75rem;
  --abstand-m:  1.5rem;
  --abstand-l:  3rem;
  --radius:     4px;
  --font:       -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                Helvetica, Arial, sans-serif, "Apple Color Emoji";
}

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

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

body {
  font-family: var(--font);
  color: var(--schrift);
  background: var(--weiss);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--rot);
  text-decoration: underline;
}

a:hover,
a:focus {
  color: var(--rot-dunkel);
  text-decoration: none;
}

ul, ol {
  padding-left: 1.4rem;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); margin-bottom: var(--abstand-s); }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

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

/* ----------------------------------------------------------
   2. LAYOUT-HELFER
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-breite);
  margin-inline: auto;
  padding-inline: var(--abstand-m);
}

.section {
  padding-block: var(--abstand-l);
}

.section--grau {
  background: var(--grau-hell);
}

/* ----------------------------------------------------------
   3. HEADER & NAVIGATION
   ---------------------------------------------------------- */
.site-header {
  background: var(--rot);
  color: var(--weiss);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--abstand-m);
  padding-block: 0.85rem;
}

/* Logo / Wortmarke */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--weiss);
  flex-shrink: 0;
}

.site-logo__icon {
  width: 40px;
  height: 40px;
  background: var(--weiss);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--rot);
  flex-shrink: 0;
  letter-spacing: -0.03em;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-logo__name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.site-logo__sub {
  font-size: 0.7rem;
  opacity: 0.85;
  font-weight: 400;
}

/* Navigation */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  align-items: center;
}

.site-nav a {
  color: var(--weiss);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.15s;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.aktiv {
  background: rgba(255,255,255,.18);
  color: var(--weiss);
  text-decoration: none;
}

/* Mobile Nav – unterhalb 700px stapeln */
@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding-block: 0.75rem;
  }

  .site-nav {
    gap: 0.15rem;
  }

  .site-nav a {
    font-size: 0.85rem;
    padding: 0.3rem 0.55rem;
  }
}

/* ----------------------------------------------------------
   4. HERO (Startseite)
   ---------------------------------------------------------- */
.hero {
  background: var(--rot);
  color: var(--weiss);
  padding-block: clamp(3rem, 8vw, 5.5rem);
  text-align: center;
}

.hero__overline {
  display: inline-block;
  background: rgba(255,255,255,.18);
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: var(--abstand-s);
}

.hero__titel {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: var(--abstand-s);
  max-width: 14ch;
  margin-inline: auto;
}

.hero__untertitel {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: 0.9;
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--abstand-l);
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--abstand-s);
}

/* ----------------------------------------------------------
   5. BUTTONS
   ---------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  border: 2px solid transparent;
  line-height: 1.3;
}

.btn:active { transform: scale(0.97); }

.btn--weiss {
  background: var(--weiss);
  color: var(--rot);
  border-color: var(--weiss);
}

.btn--weiss:hover, .btn--weiss:focus {
  background: var(--rot-hell);
  color: var(--rot-dunkel);
  border-color: var(--rot-hell);
  text-decoration: none;
}

.btn--outline-weiss {
  background: transparent;
  color: var(--weiss);
  border-color: rgba(255,255,255,.7);
}

.btn--outline-weiss:hover, .btn--outline-weiss:focus {
  background: rgba(255,255,255,.1);
  color: var(--weiss);
  text-decoration: none;
}

.btn--rot {
  background: var(--rot);
  color: var(--weiss);
  border-color: var(--rot);
}

.btn--rot:hover, .btn--rot:focus {
  background: var(--rot-dunkel);
  border-color: var(--rot-dunkel);
  color: var(--weiss);
  text-decoration: none;
}

/* ----------------------------------------------------------
   6. KARTEN-GRID
   ---------------------------------------------------------- */
.karten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--abstand-m);
}

.karte {
  background: var(--weiss);
  border: 1px solid var(--grau-mitte);
  border-radius: var(--radius);
  padding: var(--abstand-m);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.karte--akzent {
  border-left: 4px solid var(--rot);
}

.karte__meta {
  font-size: 0.82rem;
  color: var(--grau-dunkel);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.karte__titel {
  font-size: 1.1rem;
  font-weight: 700;
}

.karte__text {
  font-size: 0.93rem;
  color: #3d3d3d;
  flex: 1;
}

.karte__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--rot);
  text-decoration: none;
  align-self: flex-start;
}

.karte__link:hover { text-decoration: underline; }

/* ----------------------------------------------------------
   7. TERMIN-LISTE
   ---------------------------------------------------------- */
.termin-liste {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--abstand-s);
}

.termin-eintrag {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--abstand-m);
  align-items: start;
  background: var(--weiss);
  border: 1px solid var(--grau-mitte);
  border-radius: var(--radius);
  padding: var(--abstand-s) var(--abstand-m);
}

.termin-datum {
  text-align: center;
  background: var(--rot);
  color: var(--weiss);
  border-radius: var(--radius);
  padding: 0.4rem 0.3rem;
  line-height: 1.2;
}

.termin-datum__tag  { font-size: 1.6rem; font-weight: 700; display: block; }
.termin-datum__mon  { font-size: 0.72rem; text-transform: uppercase; font-weight: 600; display: block; }
.termin-datum__jahr { font-size: 0.68rem; opacity: 0.8; display: block; }

.termin-info__titel { font-weight: 700; font-size: 1rem; margin-bottom: 0.25rem; }
.termin-info__zeit  { font-size: 0.85rem; color: var(--grau-dunkel); }
.termin-info__ort   { font-size: 0.85rem; color: var(--grau-dunkel); }
.termin-info__text  { font-size: 0.9rem; margin-top: 0.35rem; }

@media (max-width: 480px) {
  .termin-eintrag {
    grid-template-columns: 60px 1fr;
    gap: var(--abstand-s);
    padding: var(--abstand-s);
  }
}

/* ----------------------------------------------------------
   8. VORSTAND-TABELLE / PERSONEN
   ---------------------------------------------------------- */
.vorstand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--abstand-m);
}

.person-karte {
  background: var(--weiss);
  border: 1px solid var(--grau-mitte);
  border-radius: var(--radius);
  overflow: hidden;
}

.person-karte__foto {
  width: 100%;
  height: 180px;
  background: var(--grau-hell);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grau-dunkel);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

.person-karte__body {
  padding: var(--abstand-m);
}

.person-karte__amt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--rot);
  margin-bottom: 0.3rem;
}

.person-karte__name {
  font-size: 1.05rem;
  font-weight: 700;
}

.person-karte__info {
  font-size: 0.88rem;
  color: var(--grau-dunkel);
  margin-top: 0.3rem;
}

/* ----------------------------------------------------------
   9. KONTAKT-FORMULAR (HTML only, kein JS)
   ---------------------------------------------------------- */
.formular {
  display: flex;
  flex-direction: column;
  gap: var(--abstand-s);
  max-width: 600px;
}

.formular label {
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.3rem;
}

.formular input,
.formular textarea,
.formular select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--grau-mitte);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--schrift);
  background: var(--weiss);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.formular input:focus,
.formular textarea:focus,
.formular select:focus {
  outline: none;
  border-color: var(--rot);
  box-shadow: 0 0 0 3px rgba(226,0,26,.12);
}

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

.formular .formular-gruppe { display: flex; flex-direction: column; }

/* ----------------------------------------------------------
   10. SEITEN-TITEL (Unterseiten-Kopfzeile)
   ---------------------------------------------------------- */
.page-header {
  background: var(--rot);
  color: var(--weiss);
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.9;
  max-width: 60ch;
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* ----------------------------------------------------------
   11. BREADCRUMB
   ---------------------------------------------------------- */
.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: rgba(255,255,255,.85); text-decoration: underline; }
.breadcrumb a:hover { color: var(--weiss); }

/* ----------------------------------------------------------
   12. INHALTS-ABSCHNITT (Fließtext-Seiten)
   ---------------------------------------------------------- */
.prosa h2 {
  margin-top: var(--abstand-m);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--rot);
}

.prosa h3 {
  margin-top: var(--abstand-s);
  color: var(--rot);
}

.prosa ul, .prosa ol {
  margin-bottom: 1rem;
}

.prosa li {
  margin-bottom: 0.35rem;
}

/* ----------------------------------------------------------
   13. HINWEIS-BOX (Platzhalter-Warnungen sichtbar machen)
   ---------------------------------------------------------- */
.hinweis {
  background: #fffbe6;
  border-left: 4px solid #f0a500;
  padding: var(--abstand-s) var(--abstand-m);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  margin-bottom: var(--abstand-m);
}

.hinweis strong { color: #7a5100; }

/* ----------------------------------------------------------
   14. FOOTER
   ---------------------------------------------------------- */
.site-footer {
  background: #111111;
  color: #cccccc;
  padding-block: var(--abstand-l);
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--abstand-l);
  margin-bottom: var(--abstand-m);
}

.footer-spalte h4 {
  color: var(--weiss);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #333;
}

.footer-spalte p,
.footer-spalte address {
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1.7;
}

.footer-spalte ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-spalte a {
  color: #cccccc;
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-spalte a:hover {
  color: var(--weiss);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: var(--abstand-m);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--abstand-s);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #888;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: var(--abstand-m);
  flex-wrap: wrap;
}

.footer-links a {
  color: #aaa;
  font-size: 0.8rem;
  text-decoration: none;
}

.footer-links a:hover { color: var(--weiss); }

/* ----------------------------------------------------------
   15. UTILITY
   ---------------------------------------------------------- */
.text-zentriert { text-align: center; }
.text-rot       { color: var(--rot); }
.mt-m           { margin-top: var(--abstand-m); }
.mt-l           { margin-top: var(--abstand-l); }
.mb-m           { margin-bottom: var(--abstand-m); }
.versteckt      { display: none; }

/* Skip-Link für Barrierefreiheit */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  background: var(--schrift);
  color: var(--weiss);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  z-index: 9999;
  font-size: 0.9rem;
}

.skip-link:focus { left: 1rem; }

/* ----------------------------------------------------------
   16. RESPONSIVE ANPASSUNGEN
   ---------------------------------------------------------- */
@media (max-width: 600px) {
  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--abstand-m);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
