/* ==========================================================================
   Bürgerinitiative „Gemeinsames Gerätehaus für Böel“
   Bürgerportal-Design nach dem Vorbild von amt-suederbrarup.de/gemeinden/boeel
   Original-Farbpalette:
   - Amts- & Wappengold: #ffcb00 / #ffe77b / #fff3c6
   - Kommunal- & Oxbek-Blau: #0661bb / #044a8f
   - Böeler Wappengrün: #159a3e / #146c2e (barrierefreier Textton)
   - Feuerwehr-Signalrot: #dc2626 / #b91c1c
   - Sektions-Hintergründe: #ffffff & #f1f4f5 (.f1) & #ffe77b (.f2)
   100% lokal, datensparsam & barrierefrei nach WCAG 2.1 AA
   ========================================================================== */

:root {
  /* Originalfarben von amt-suederbrarup.de/gemeinden/boeel */
  --color-gold: #ffcb00;             /* Primäres Amts- & Wappengold (Hero links, Buttons, Footer, Akkordeon) */
  --color-gold-medium: #ffe77b;      /* Sekundäres Amtsgelb (.f2 Sektionen, CTA-Box, aktive Akzente) */
  --color-gold-subtle: #fff3c6;      /* Sanftes Amtsgelb (Navigations-Hover, Akkordeon-Hintergrund, Tabellen-Hover) */
  --color-gold-border: #eab308;
  --color-gold-text: #78350f;        /* Barrierefreier Dunkel-Bernsteinton für Text auf Weiß (Kontrast > 8,5 : 1) */

  --color-blue: #0661bb;             /* Kommunal- & Oxbek-Blau (Hero rechts, Links, Button-Hover, Trennlinien) */
  --color-blue-hover: #044a8f;       /* Abgedunkeltes Blau für Hover-Zustände (Kontrast > 8,2 : 1) */
  --color-blue-subtle: #eef6ff;
  --color-blue-border: #93c5fd;

  --color-green: #159a3e;            /* Böeler Wappengrün (Mühlenflügelkreuz & rechtes Wappenfeld) */
  --color-green-text: #146c2e;       /* Barrierefreies Wappengrün für Text auf hellem Grund (Kontrast > 6,4 : 1) */
  --color-green-subtle: #f0fdf4;
  --color-green-border: #86efac;

  --color-accent: #dc2626;           /* Feuerwehrrot (Signal- & Contra-Akzentfarbe) */
  --color-accent-hover: #991b1b;
  --color-accent-text: #b91c1c;      /* Barrierefreies Dunkelrot für Text (Kontrast > 6,4 : 1) */
  --color-accent-subtle: #fef2f2;
  --color-accent-border: #fca5a5;

  /* Kompatibilitäts-Aliase für bestehende Komponenten */
  --color-primary: var(--color-blue);
  --color-primary-hover: var(--color-blue-hover);
  --color-primary-subtle: var(--color-gold-subtle);
  --color-primary-border: var(--color-gold);
  --color-secondary: var(--color-blue);
  --color-secondary-hover: var(--color-blue-hover);
  --color-success: var(--color-green-text);
  --color-success-bg: var(--color-green-subtle);
  --color-success-border: var(--color-green-border);

  /* Neutrale Portal-Basis analog amt-suederbrarup.de */
  --color-bg: #ffffff;               /* Reines Weiß (.default) */
  --color-surface: #ffffff;
  --color-surface-alt: #f1f4f5;      /* Original .f1 Hintergrundgrau des Amtsportals */
  --color-text: #000000;             /* Klares Schwarz wie auf amt-suederbrarup.de */
  --color-text-muted: #263238;       /* Sehr dunkles Anthrazit für Fließtext (Kontrast > 12 : 1) */
  --color-text-subtle: #455a64;      /* Kontraststarkes Grau für Meta-Infos (Kontrast > 7 : 1) */
  --color-border: #d8e0e5;
  --color-border-dark: #90a4ae;

  /* Typografie (System-Sans-Serif analog Work Sans / Arial) */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Kantige bis leicht gerundete Kommunalportal-Formensprache */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-pill: 9999px;

  /* Schatten analog .collapse .top auf amt-suederbrarup.de */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 0 20px 0 rgba(0, 0, 0, 0.22);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow-wrap: break-word;
}

html {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-text);
  background-color: var(--color-bg);
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

img, svg, picture, video {
  max-width: 100%;
  height: auto;
}

/* Barrierefreiheit: Skip-Link */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  background: var(--color-gold);
  color: #000000;
  padding: 0.65rem 1.25rem;
  z-index: 9999;
  border: 2px solid #000000;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

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

:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 2px;
}

/* ==========================================================================
   Globale Textlinks (analog .content a:not(.btn) { color: #0661bb; })
   ========================================================================== */
a {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
  font-weight: 600;
  transition: all 0.2s ease-out;
}

a:hover {
  color: #000000;
  background-color: var(--color-gold-subtle);
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   Header & Bürgerportal-Topbar (analog .collapse .top auf amt-suederbrarup.de)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: 100%;
  background-color: #ffffff;
  border-bottom: 3px solid var(--color-gold);
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.14);
}

.header-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 4.8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: #000000;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.5rem 0;
}

.brand:hover {
  background-color: transparent;
  color: var(--color-blue);
}

.brand-icon {
  width: auto;
  max-width: 2.6rem;
  height: 2.9rem;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-text,
.brand > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap;
}

.brand-text-main {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #000000;
  white-space: nowrap;
}

.brand-text-sub {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-blue);
  display: block;
  white-space: nowrap;
  margin-top: 0.1rem;
}

/* Hauptnavigation im Stil von amt-suederbrarup.de (.top .main > ul > li) */
#primary-nav {
  display: flex;
  align-items: stretch;
}

.nav-menu {
  display: flex;
  align-items: stretch;
  list-style: none;
  gap: 0.15rem;
}

.nav-menu li {
  display: flex;
  align-items: stretch;
}

.nav-link {
  display: flex;
  align-items: center;
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0 0.75rem;
  transition: background-color 0.2s ease-out, color 0.2s ease-out;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #000000;
  background-color: var(--color-gold-subtle); /* Original #fff3c6 aus amt-suederbrarup.de */
}

.nav-link.active {
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--color-blue);
}

.nav-menu li:last-child {
  align-items: center;
  padding-left: 0.4rem;
}

.nav-menu .btn {
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  align-self: center;
  background: var(--color-gold);
  border: 2px solid #000000;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #000000;
}

.nav-toggle:hover {
  background-color: var(--color-blue);
  color: #ffffff;
  border-color: var(--color-blue);
}

/* ==========================================================================
   Buttons (analog a.btn { background: #ffcb00; text-transform: uppercase; }
            und a.btn:hover { background: #0661bb; color: #fff; })
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-radius: var(--radius-xs);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease-out;
  white-space: normal;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-align: center;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--color-gold);
  color: #000000;
  border-color: #000000;
}

.btn-primary:hover {
  background-color: var(--color-blue);
  color: #ffffff;
  border-color: var(--color-blue);
}

.btn-secondary {
  background-color: #ffffff;
  color: #000000;
  border-color: var(--color-blue);
}

.btn-secondary:hover {
  background-color: var(--color-blue);
  color: #ffffff;
  border-color: var(--color-blue);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  white-space: nowrap;
}

/* ==========================================================================
   Hero-Bereich: Zweigeteilte Gelb-Blau-Stage analog .content.f3 (Böel-Seite)
   Links: #ffcb00 (Goldgelb) mit schwarzer Schrift
   Mitte: Offizielles Wappen der Gemeinde Böel auf der Farbgrenze
   Rechts: #0661bb (Kommunalblau) mit weißer Schrift
   ========================================================================== */
.hero {
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold) 50%, var(--color-blue) 50%, var(--color-blue) 100%);
  border-bottom: 4px solid #000000;
  position: relative;
  overflow: hidden;
}

.hero-stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  position: relative;
}

.hero-col-left {
  padding-right: 1.5rem;
  color: #000000;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #000000;
  background-color: var(--color-gold-subtle);
  border: 1.5px solid #000000;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.35rem;
  line-height: 1.15;
  color: #000000;
  font-weight: 800;
  letter-spacing: -0.02em;
  hyphens: auto;
}

.hero-crest {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28));
}

.hero-crest img {
  width: 112px;
  height: auto;
  display: block;
}

.hero-col-right {
  padding-left: 1.5rem;
  color: #ffffff;
}

.hero-lead {
  font-size: 1.12rem;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 1.75rem;
}

.hero-lead strong {
  color: var(--color-gold);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-col-right .btn-primary {
  background-color: var(--color-gold);
  color: #000000;
  border-color: var(--color-gold);
}

.hero-col-right .btn-primary:hover {
  background-color: #ffffff;
  color: var(--color-blue);
  border-color: #ffffff;
}

.hero-col-right .btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.hero-col-right .btn-secondary:hover {
  background-color: var(--color-gold-subtle);
  color: #000000;
  border-color: var(--color-gold-subtle);
}

/* ==========================================================================
   Sektionen & Überschriften mit Horizontallinie (.ce-headline-line Stil)
   ========================================================================== */
.section {
  padding: 4.25rem 0;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.section-alt {
  background-color: var(--color-surface-alt); /* Original #f1f4f5 (.f1) */
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-kicker {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-blue);
  margin-bottom: 0.35rem;
  display: block;
}

/* Überschrift mit charakteristischer schwarzer Horizontallinie wie auf amt-suederbrarup.de */
.section-title {
  font-size: 1.95rem;
  line-height: 1.25;
  color: #000000;
  font-weight: 700;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background-color: #000000;
  min-width: 2rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 860px;
  line-height: 1.6;
}

.section-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   3-Spalten Info-Kacheln (Wappenfarben Gold, Blau, Grün)
   ========================================================================== */
.article-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.article-col {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 6px solid var(--color-gold);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.article-col:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.article-col:nth-child(2) {
  border-top-color: var(--color-blue);
}

.article-col-success {
  border-top-color: var(--color-green);
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-blue);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.article-col-success .stat-number {
  color: var(--color-green-text);
}

.article-heading {
  font-size: 1.22rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.article-col p {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ==========================================================================
   Faktenvergleich: Zentrallösung (Wappengrün) vs. Doppelbau (Feuerwehrrot)
   ========================================================================== */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.comparison-box {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 2.25rem 2rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.comparison-box-pro {
  border-top: 6px solid var(--color-green);
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 16%);
}

.comparison-box-contra {
  border-top: 6px solid var(--color-accent);
  background: linear-gradient(180deg, #fef2f2 0%, #ffffff 16%);
}

.comparison-heading {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-border);
}

.pro-title {
  color: var(--color-green-text);
  border-bottom-color: var(--color-green);
}

.contra-title {
  color: var(--color-accent-text);
  border-bottom-color: var(--color-accent);
}

.argument-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.argument-list li {
  position: relative;
  padding-left: 2rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--color-text);
}

.argument-list-pro li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  background-color: var(--color-green);
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
}

.argument-list-contra li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 0.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  background-color: var(--color-accent);
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
}

/* Hervorgehobene Warnbox im Amtsgelb (#fff3c6) mit Feuerwehrrot-Rand */
.editorial-alert {
  background-color: var(--color-gold-subtle);
  border: 2px solid #000000;
  border-left: 8px solid var(--color-accent);
  padding: 1.5rem 1.75rem;
  margin-top: 2rem;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-sm);
}

.editorial-alert h3 {
  color: var(--color-accent-text);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   Tabellen (Amtsportal-Design mit #ffcb00 Tabellenkopf & #fff3c6 Hover)
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 2px solid #000000;
  border-radius: var(--radius-xs);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  margin-top: 1.5rem;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.portal-table th,
.portal-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.portal-table th {
  background-color: var(--color-gold);
  color: #000000;
  font-weight: 800;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid #000000;
}

.portal-table tbody tr {
  transition: background-color 0.15s ease;
}

.portal-table tbody tr:nth-child(even) {
  background-color: var(--color-surface-alt);
}

.portal-table tbody tr:hover {
  background-color: var(--color-gold-subtle);
}

.portal-table tr:last-child td {
  border-bottom: none;
}

.portal-table a {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.portal-table a:hover {
  color: #000000;
}

/* ==========================================================================
   Termine & Veranstaltungen (Blau & Gold Akzentuierung)
   ========================================================================== */
.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.event-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 6px solid var(--color-blue);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.event-card-highlight {
  border-left-color: var(--color-gold);
  background: linear-gradient(90deg, var(--color-gold-subtle) 0%, #ffffff 35%);
}

.event-tag {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #000000;
  background-color: var(--color-gold);
  border: 1px solid #000000;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.event-card-highlight .event-tag {
  color: #ffffff;
  background-color: var(--color-blue);
  border-color: var(--color-blue);
}

.event-tag-success {
  color: #ffffff;
  background-color: var(--color-green-text);
  border-color: var(--color-green-text);
}

.event-title {
  font-size: 1.25rem;
  color: #000000;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.event-detail {
  margin-top: 0.4rem;
}

.event-hint {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--color-blue);
  font-weight: 700;
}

.event-actions {
  margin-top: 1rem;
}

/* ==========================================================================
   Chronologie / Zeitstrahl (Kommunalblau & Amtsgold)
   ========================================================================== */
.timeline {
  border-left: 4px solid var(--color-blue);
  margin-left: 0.75rem;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -2.72rem;
  top: 0.2rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background-color: var(--color-gold);
  border: 3px solid #000000;
}

.timeline-item:last-child .timeline-dot {
  border-color: #000000;
  background-color: var(--color-accent);
}

.timeline-date {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: #000000;
  background-color: var(--color-gold);
  padding: 0.15rem 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.4rem;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   FAQ Accordion (Original-Stil von amt-suederbrarup.de:
   .accordion > header { background: #ffcb00; } / #fff4c7)
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background-color: var(--color-surface);
  border: 1.5px solid #000000;
  border-radius: var(--radius-xs);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.faq-question {
  font-size: 1.08rem;
  font-weight: 700;
  color: #000000;
  background-color: var(--color-gold-subtle); /* #fff3c6 */
  padding: 1rem 1.35rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease-out;
}

.faq-question:hover,
.faq-item[open] .faq-question {
  background-color: var(--color-gold); /* Original #ffcb00 */
  color: #000000;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "▸";
  font-size: 1.25rem;
  font-weight: 700;
  color: #000000;
  margin-left: 1rem;
  transition: transform 0.2s ease-out;
}

.faq-item[open] .faq-question::after {
  transform: rotate(90deg);
  color: var(--color-blue);
}

.faq-answer {
  padding: 1.25rem 1.35rem;
  border-top: 1.5px solid #000000;
  background-color: #ffffff;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.faq-sublist {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.faq-table-wrap {
  margin: 1rem 0;
}

.faq-subheading {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.faq-references-list {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}

.faq-references-list li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Downloads & Dokumente
   ========================================================================== */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.download-box {
  background-color: var(--color-surface);
  border: 1.5px solid #000000;
  border-top: 6px solid var(--color-blue);
  border-radius: var(--radius-xs);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--color-gold);
}

.download-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.download-meta {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-blue);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.download-actions {
  margin-top: 1.25rem;
}

/* ==========================================================================
   Call to Action Box (analog .f2 { background: #ffe77b; } auf amt-suederbrarup.de)
   ========================================================================== */
.cta-box {
  background-color: var(--color-gold-medium); /* Original #ffe77b */
  border: 2px solid #000000;
  border-radius: var(--radius-xs);
  padding: 2.75rem 2.25rem;
  margin-top: 3rem;
  text-align: center;
  color: #000000;
  box-shadow: var(--shadow-sm);
}

.cta-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #000000;
  margin-bottom: 0.85rem;
}

.cta-desc {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  color: #000000;
  font-size: 1.05rem;
}

.cta-box .btn-primary {
  background-color: var(--color-blue);
  color: #ffffff;
  border-color: var(--color-blue);
  word-break: break-all;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.cta-box .btn-primary:hover {
  background-color: #000000;
  color: var(--color-gold);
  border-color: #000000;
}

/* ==========================================================================
   Quellenverzeichnis (mit blauem Trennstrich analog .tx-nwsregionalevents hr)
   ========================================================================== */
.sources-card {
  background-color: var(--color-surface);
  border: 1.5px solid #000000;
  border-top: 5px solid var(--color-blue);
  border-radius: var(--radius-xs);
  padding: 2rem;
  box-shadow: var(--shadow-xs);
}

.sources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding-left: 0;
}

.sources-list li {
  font-size: 0.95rem;
  line-height: 1.55;
  border-bottom: 1px solid var(--color-blue);
  padding-bottom: 0.75rem;
}

.sources-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sources-list a {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.sources-list a:hover {
  color: #000000;
  background-color: var(--color-gold-subtle);
}

/* Platzhalter Hervorhebung für Impressum & Datenschutz */
.placeholder-highlight {
  background-color: var(--color-gold-subtle);
  color: #000000;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  font-weight: 700;
  border: 1.5px dashed var(--color-blue);
}

/* ==========================================================================
   Karten & Hinweisfelder (Datenschutz & Bürgerportal-Boxen)
   ========================================================================== */
.card {
  background-color: var(--color-surface);
  border: 1.5px solid #000000;
  border-radius: var(--radius-xs);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 0.75rem;
}

.card-success {
  background-color: var(--color-gold-subtle);
  border-color: #000000;
  border-left: 6px solid var(--color-green);
}

.card-success .card-title,
.legal-content .card-success .card-title {
  color: var(--color-green-text);
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.card-list {
  margin-top: 0.5rem;
  margin-bottom: 0;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.legal-back-nav {
  margin-top: 3rem;
}

.mb-6 {
  margin-bottom: 2rem !important;
}

/* Rechtstexte Styling */
.legal-content {
  padding: 3.5rem 0 5rem;
}

.legal-content h1 {
  font-size: 2.35rem;
  color: #000000;
  margin-bottom: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.legal-content h1::after {
  content: "";
  flex: 1;
  height: 2px;
  background-color: #000000;
}

.legal-content h2 {
  font-size: 1.4rem;
  color: var(--color-blue);
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: 0.45rem;
  font-weight: 700;
}

.legal-content h3 {
  font-size: 1.1rem;
  color: #000000;
  margin-top: 1.35rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.legal-content p, 
.legal-content ul {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.legal-content ul {
  padding-left: 1.5rem;
}

/* ==========================================================================
   Footer im Original-Stil von amt-suederbrarup.de
   (.footer { background: #ffcb00; padding: 40px 0; } & .footer a:hover { color: #0661bb; })
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: var(--color-gold); /* Original #ffcb00 */
  color: #000000;
  padding: 2.75rem 0 2rem;
  border-top: 4px solid var(--color-blue);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 2px solid #000000;
  padding-bottom: 1.5rem;
  margin-bottom: 1.25rem;
}

.footer-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #000000;
}

.footer-location {
  color: #000000;
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

.footer-nav {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.footer-link {
  color: #000000;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--color-blue);
  background-color: transparent;
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.86rem;
  color: #000000;
  font-weight: 500;
  text-align: center;
}

/* ==========================================================================
   Responsive Anpassungen
   ========================================================================== */
@media (min-width: 1181px) and (max-width: 1280px) {
  .header-inner {
    gap: 0.5rem;
  }
  .nav-link {
    font-size: 0.74rem;
    padding: 0 0.45rem;
    letter-spacing: 0.04em;
  }
  .brand-text-main {
    font-size: 1.02rem;
  }
  .nav-menu {
    gap: 0.1rem;
  }
  .nav-menu .btn-sm {
    font-size: 0.74rem;
    padding: 0.45rem 0.65rem;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 1180px) {
  .nav-toggle {
    display: block;
  }
  
  /* Mobiles Menü im Stil von .mm-menu { background: #0661bb; color: #fff; } auf amt-suederbrarup.de */
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-blue);
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    border-bottom: 4px solid var(--color-gold);
    box-shadow: var(--shadow-lg);
    gap: 0.25rem;
    align-items: stretch;
  }
  
  .nav-menu.is-open {
    display: flex;
  }
  
  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .nav-menu li:last-child {
    border-bottom: none;
    padding-left: 0;
    padding-top: 0.5rem;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 0.75rem 0.85rem;
    font-size: 0.92rem;
    color: #ffffff;
  }

  .nav-link:hover,
  .nav-link.active {
    background-color: var(--color-gold);
    color: #000000;
    box-shadow: none;
  }

  .nav-menu .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    background-color: var(--color-gold);
    color: #000000;
    border-color: #ffffff;
    white-space: normal !important;
    word-break: break-word !important;
  }
}

@media (max-width: 992px) {
  .hero {
    background: var(--color-blue);
    overflow: hidden;
  }

  .hero-stage {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 0;
    padding-bottom: 2.5rem;
    overflow: hidden;
  }

  .hero-col-left {
    background-color: var(--color-gold);
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding: 2.5rem 1.5rem 3.25rem;
    border-bottom: 3px solid #000000;
  }

  .hero-crest {
    margin-top: -3.2rem;
    margin-bottom: -0.5rem;
  }

  .hero-crest img {
    width: 92px;
  }

  .hero-col-right {
    padding-left: 0;
  }

  .article-grid-3,
  .downloads-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  
  .hero h1 {
    font-size: 1.85rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cta-box .btn {
    width: 100%;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 1.5rem;
  }

  .section-title::after {
    display: none;
  }
  
  .article-grid-3,
  .events-grid,
  .downloads-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15.5px;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-col-left {
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 2rem 1rem 2.5rem;
  }

  .hero-crest {
    margin-top: -2.8rem;
  }

  .hero-crest img {
    width: 80px;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand-icon {
    max-width: 2.1rem;
    height: 2.3rem;
  }

  .brand-text-main {
    font-size: 1rem;
  }

  .brand-text-sub {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }

  .comparison-box {
    padding: 1.5rem 1rem;
  }

  .editorial-alert {
    padding: 1.25rem 1rem;
  }

  .event-card,
  .download-box,
  .sources-card,
  .faq-item {
    padding: 1.25rem 1rem;
  }

  .cta-box {
    padding: 2rem 1rem;
  }

  .timeline {
    padding-left: 1.5rem;
    margin-left: 0.25rem;
  }

  .timeline-dot {
    left: -2.15rem;
  }
}

/* ==========================================================================
   Mitscrollender „Nach oben“-Button (Back-to-Top)
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 3rem;
  min-height: 3rem;
  padding: 0.65rem 1rem;
  background-color: var(--color-blue);
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease,
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.back-to-top[hidden] {
  display: none;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--color-gold);
  color: #000000;
  border-color: #000000;
}

.back-to-top:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

.back-to-top-icon {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 600px) {
  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    padding: 0.75rem;
    width: 3.1rem;
    height: 3.1rem;
  }

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

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
  .site-header,
  .nav-toggle,
  .btn,
  .back-to-top,
  .site-footer,
  .faq-question::after {
    display: none !important;
  }
  
  body {
    background: #ffffff;
    color: #000000;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
  
  .article-col,
  .comparison-box,
  .event-card,
  .download-box {
    border: 1px solid #000000;
    box-shadow: none;
  }
}
