/* ======================================================
   style.css – Feuerwehr Stadt Wehlen ("Modern Light")
   ------------------------------------------------------
   Helles, modernes Design: hellgrauer Hintergrund, weiße
   abgerundete Karten mit weichen Schatten, viel Weißraum.
   Rot nur als Akzent – der Header trägt das rote
   Logo-Muster. Mobile-first.
   ====================================================== */

:root {
  --rot: #b30000;
  --rot-dunkel: #8a0000;
  --bg: #eef0f4;
  --karte: #ffffff;
  --text: #2b2f36;
  --muted: #6b7280;
  --border: #e3e6ea;
  --schatten: 0 6px 24px rgba(30, 34, 45, 0.08);
  --schatten-hover: 0 14px 34px rgba(30, 34, 45, 0.14);
  --radius: 16px;
  --pattern: url('../bilder/logo2.jpeg');
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main { flex: 1 0 auto; }

::selection { background: var(--rot); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #b9bec7; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--rot); }

/* ------------------------------------------------------
   Typografie
   ------------------------------------------------------ */
h1, h2, h3, h4, h5 { font-weight: 700; color: var(--text); }

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

.abschnitt-titel {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.abschnitt-sub {
  color: var(--muted);
  margin-bottom: 1.8rem;
}

/* ------------------------------------------------------
   Buttons (abgerundet, Pill-Form)
   ------------------------------------------------------ */
.btn-pill {
  display: inline-block;
  background: var(--rot);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.7rem;
  border: none;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(179, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-pill:hover {
  background: var(--rot-dunkel);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(179, 0, 0, 0.34);
}

.btn-pill-ghost {
  background: #fff;
  color: var(--rot) !important;
  box-shadow: inset 0 0 0 2px var(--rot);
}

.btn-pill-ghost:hover { background: var(--rot); color: #fff !important; }

/* ------------------------------------------------------
   Navbar (rot mit Logo-Muster, weiße Schrift)
   ------------------------------------------------------ */
.gl-navbar {
  background-color: var(--rot);
  background-image: var(--pattern);
  background-size: 9em;
  background-repeat: repeat;
  background-blend-mode: multiply;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  padding: 0.9rem 0;
}

.gl-navbar .navbar-brand {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.55);
}

.gl-navbar .navbar-brand img { height: 2.6em; width: auto; }

.gl-navbar .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.45rem 1rem !important;
  margin: 0 0.1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.45);
  transition: background 0.2s ease, color 0.2s ease;
}

.gl-navbar .nav-link:hover { background: rgba(255, 255, 255, 0.18); color: #fff !important; }

.gl-navbar .nav-link.active {
  background: #fff;
  color: var(--rot) !important;
  text-shadow: none;
}

.gl-navbar .dropdown-menu {
  border: none;
  border-radius: 14px;
  box-shadow: var(--schatten-hover);
  padding: 0.5rem;
}

.gl-navbar .dropdown-item { border-radius: 10px; font-weight: 500; color: var(--text); }

.gl-navbar .dropdown-item:hover,
.gl-navbar .dropdown-item.active { background: rgba(179, 0, 0, 0.08); color: var(--rot); }

.gl-navbar .navbar-toggler { border-color: rgba(255, 255, 255, 0.7); }
.gl-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ------------------------------------------------------
   Hero (Startseite) – helle Split-Karte
   ------------------------------------------------------ */
.gl-hero { padding: 3rem 0 1rem; }

.gl-hero-karte {
  background: var(--karte);
  border-radius: 24px;
  box-shadow: var(--schatten);
  overflow: hidden;
}

.gl-hero-text { padding: 2.5rem; }

.gl-hero-badge {
  display: inline-block;
  background: rgba(179, 0, 0, 0.09);
  color: var(--rot);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.1rem;
}

.gl-hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15; margin-bottom: 1rem; }
.gl-hero h1 .highlight { color: var(--rot); }
.gl-hero p { color: var(--muted); font-size: 1.08rem; }

.gl-hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

.gl-hero-bild {
  min-height: 260px;
  height: 100%;
  background: var(--hero-bild) center/cover no-repeat;
}

/* ------------------------------------------------------
   Statistik-Kacheln (Startseite)
   ------------------------------------------------------ */
.stat-kachel {
  background: var(--karte);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  text-align: center;
  padding: 1.4rem 1rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-kachel:hover { transform: translateY(-4px); box-shadow: var(--schatten-hover); }

.stat-kachel .zahl { font-size: 2rem; font-weight: 800; color: var(--rot); line-height: 1.1; }
.stat-kachel .label { color: var(--muted); font-size: 0.9rem; font-weight: 600; }

/* ------------------------------------------------------
   Karten (Termine, Quicklinks)
   ------------------------------------------------------ */
.gl-card {
  background: var(--karte);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 1.6rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.gl-card { display: block; text-decoration: none; color: inherit; }
.gl-card:hover { transform: translateY(-4px); box-shadow: var(--schatten-hover); }

/* Gestapelte Karten in EINER Spalte: height:100% würde sich sonst
   aufaddieren und die Karten über die nächste Sektion schieben */
.gl-card.h-auto { height: auto; }

.gl-card h3 { font-size: 1.15rem; margin-bottom: 0.9rem; }
.gl-card h3 .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 12px;
  background: rgba(179, 0, 0, 0.09);
  margin-right: 0.6rem;
  vertical-align: middle;
}

.gl-card .termin-datum { font-weight: 700; font-size: 1.08rem; margin-bottom: 0.25rem; }
.gl-card .termin-art { color: var(--rot); font-weight: 600; margin-bottom: 0.25rem; }
.gl-card .termin-beschr { color: var(--muted); margin-bottom: 0; }

.gl-card .mehr { color: var(--rot); font-weight: 600; margin-top: 0.8rem; display: inline-block; }
.gl-card p.beschreibung { color: var(--muted); margin-bottom: 0; }

/* ------------------------------------------------------
   Seitenkopf (Unterseiten) – rotes Musterband
   ------------------------------------------------------ */
.gl-seitenkopf {
  background-color: var(--rot);
  background-image: var(--pattern);
  background-size: 11em;
  background-repeat: repeat;
  background-blend-mode: multiply;
  color: #fff;
  padding: 3.2rem 0;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.gl-seitenkopf h1 { color: #fff; font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin: 0; text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.45); }
.gl-seitenkopf .untertitel { color: rgba(255, 255, 255, 0.88); margin: 0.5rem 0 0; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4); }
.gl-seitenkopf a { color: #fff; }

/* ------------------------------------------------------
   Geschichte – Accordion
   ------------------------------------------------------ */
.gl-accordion .accordion-item {
  background: var(--karte);
  border: none;
  border-radius: var(--radius) !important;
  box-shadow: var(--schatten);
  margin-bottom: 1rem;
  overflow: hidden;
}

.gl-accordion .accordion-button {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  background: var(--karte);
  padding: 1.2rem 1.5rem;
}

.gl-accordion .accordion-button:not(.collapsed) {
  background: var(--rot);
  color: #fff;
  box-shadow: none;
}

.gl-accordion .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.gl-accordion .accordion-button:focus { box-shadow: none; border: none; }

.gl-accordion .accordion-body { padding: 1.6rem 1.8rem; }

.gl-accordion .accordion-body h2,
.gl-accordion .accordion-body h3 {
  color: var(--rot);
  font-size: 1.15rem;
  margin-top: 1.4rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.gl-accordion .accordion-body h2:first-child,
.gl-accordion .accordion-body h3:first-child { margin-top: 0; }

.gl-accordion blockquote {
  border-left: 4px solid var(--rot);
  background: #faf5f5;
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.4rem;
  margin: 1.4rem 0;
  font-style: italic;
  color: #5a3a3a;
}

/* ------------------------------------------------------
   Technik – Kartenraster mit Kategorie-Filter
   ------------------------------------------------------ */
.filter-leiste {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.filter-btn {
  background: var(--karte);
  border: 2px solid var(--border);
  color: var(--text);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover { border-color: var(--rot); color: var(--rot); }

.filter-btn.active {
  background: var(--rot);
  border-color: var(--rot);
  color: #fff;
  box-shadow: 0 6px 14px rgba(179, 0, 0, 0.3);
}

.tech-card {
  display: block;
  background: var(--karte);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tech-card:hover { transform: translateY(-6px); box-shadow: var(--schatten-hover); }

.tech-card .bild-wrap { position: relative; height: 200px; overflow: hidden; }

.tech-card .bild-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.tech-card:hover .bild-wrap img { transform: scale(1.07); }

.tech-card .kat-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--rot);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
}

.tech-card .bald-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--rot);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
}

.tech-card .body { padding: 1.2rem 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.tech-card .body h5 { margin: 0; font-weight: 700; }
.tech-card .body .pfeil { color: var(--rot); font-weight: 700; transition: transform 0.25s ease; }
.tech-card:hover .body .pfeil { transform: translateX(5px); }

/* ------------------------------------------------------
   Fahrzeug-Detail
   ------------------------------------------------------ */
.fz-karte {
  background: var(--karte);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 2rem;
}

.standort-chip {
  display: inline-block;
  background: rgba(179, 0, 0, 0.09);
  color: var(--rot);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 0.3rem 1rem;
  margin-bottom: 1.2rem;
}

.spec-list { list-style: none; padding: 0; margin: 0; }

.spec-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.spec-list li:last-child { border-bottom: none; }

.spec-list .spec-label { min-width: 160px; color: var(--muted); font-weight: 600; }

.fz-sektion {
  color: var(--rot);
  font-size: 1.05rem;
  margin: 1.8rem 0 0.7rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid rgba(179, 0, 0, 0.15);
}

.fz-punkte { margin: 0; padding-left: 1.2rem; }
.fz-punkte li { padding: 0.2rem 0; }
.fz-punkte li::marker { color: var(--rot); }

.fz-hinweis {
  margin-top: 1.2rem;
  padding: 1rem 1.3rem;
  background: #fff8f6;
  border-left: 4px solid var(--rot);
  border-radius: 0 12px 12px 0;
  color: #6b4a4a;
  font-style: italic;
}

#fahrzeugCarousel { border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); }
#fahrzeugCarousel .carousel-item img { max-height: 480px; object-fit: cover; }

#fahrzeugCarousel .carousel-control-prev-icon,
#fahrzeugCarousel .carousel-control-next-icon {
  background-color: rgba(179, 0, 0, 0.85);
  background-size: 55%;
  border-radius: 50%;
  padding: 1.2rem;
}

.fz-einzelbild { border-radius: var(--radius); box-shadow: var(--schatten); }

/* ------------------------------------------------------
   Mitglieder / Organigramm
   ------------------------------------------------------ */
.org-ebene {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  position: relative;
  padding-top: 1.6rem;
}

.org-ebene + .org-ebene::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 1.6rem;
  background: #c9ccd2;
  transform: translateX(-50%);
}

.org-box {
  background: var(--karte);
  border-radius: 14px;
  box-shadow: var(--schatten);
  padding: 1rem 1.5rem;
  min-width: 210px;
  text-align: center;
}

.org-box.fuehrung { box-shadow: var(--schatten), inset 0 4px 0 var(--rot); }

.org-box .rolle {
  display: inline-block;
  background: rgba(179, 0, 0, 0.09);
  color: var(--rot);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.2rem 0.8rem;
  margin-bottom: 0.5rem;
}

.org-box .name { display: block; font-weight: 700; line-height: 1.55; }

.org-gruppen { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 2.8rem; }

.org-gruppe {
  background: var(--karte);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 1.4rem 1.6rem;
}

.org-gruppe h3 { font-size: 1.05rem; color: var(--rot); margin-bottom: 0.9rem; }
.org-gruppe .label { color: var(--muted); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; display: block; margin-top: 0.8rem; }
.org-gruppe ul { list-style: none; margin: 0; padding: 0; }
.org-gruppe li { padding: 0.18rem 0; font-size: 0.95rem; }

/* ------------------------------------------------------
   Dienstplan-Tabelle
   ------------------------------------------------------ */
.termin-tabelle-wrap {
  background: var(--karte);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  overflow: hidden;
}

.termin-tabelle { width: 100%; border-collapse: collapse; }

.termin-tabelle th {
  background: var(--rot);
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1rem 1.2rem;
  text-align: left;
}

.termin-tabelle td { padding: 0.9rem 1.2rem; border-top: 1px solid var(--border); vertical-align: top; }

.termin-tabelle tbody tr { transition: background 0.15s ease; }
.termin-tabelle tbody tr:hover { background: #faf5f5; }

.termin-tabelle tr.termin-is-next td { background: rgba(179, 0, 0, 0.05); box-shadow: inset 4px 0 0 var(--rot); font-weight: 600; }

.termin-badge {
  display: inline-block;
  background: #eef0f4;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  white-space: nowrap;
}

.termin-badge-fest, .termin-badge-feier { background: var(--rot); color: #fff; }
.termin-badge-praxis, .termin-badge-ausbildung { background: #e7ecf5; color: #31517f; }

@media (max-width: 768px) {
  .termin-tabelle-wrap { background: transparent; box-shadow: none; overflow: visible; }
  .termin-tabelle thead { display: none; }
  .termin-tabelle tr {
    display: block;
    background: var(--karte);
    border-radius: var(--radius);
    box-shadow: var(--schatten);
    margin-bottom: 1rem;
    padding: 0.8rem 0.4rem;
  }
  .termin-tabelle tr.termin-is-next { box-shadow: var(--schatten), inset 4px 0 0 var(--rot); }
  .termin-tabelle td { display: flex; gap: 0.8rem; border: none; padding: 0.3rem 1.2rem; }
  .termin-tabelle td::before {
    content: attr(data-label);
    min-width: 105px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
}

/* ------------------------------------------------------
   Footer (dunkelgrau)
   ------------------------------------------------------ */
.gl-footer {
  background: #23272e;
  color: #aab0ba;
  padding: 2.8rem 0;
  margin-top: 4.5rem;
  border-top: 5px solid var(--rot);
}

.gl-footer h6 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.7rem;
}

.gl-footer p, .gl-footer small { margin-bottom: 0.2rem; }

.gl-footer .footer-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.3rem; justify-content: center; }
.gl-footer .footer-nav a { color: #d7dbe1; text-decoration: none; font-size: 0.92rem; }
.gl-footer .footer-nav a:hover { color: #fff; text-decoration: underline; }

.gl-footer .footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .gl-footer .footer-brand { justify-content: flex-start; }
}

.gl-footer .footer-brand img { height: 3.2em; width: auto; }

/* ------------------------------------------------------
   Bild-Karte (z.B. Gerätehaus auf der Startseite)
   ------------------------------------------------------ */
.bild-karte {
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  overflow: hidden;
  height: 100%;
  min-height: 260px;
}

.bild-karte img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ------------------------------------------------------
   Veranstaltungs-Karten
   ------------------------------------------------------ */
.va-card {
  background: var(--karte);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 1.6rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.va-card:hover { transform: translateY(-4px); box-shadow: var(--schatten-hover); }

.va-card .va-datum { font-weight: 800; font-size: 1.15rem; margin-bottom: 0.2rem; }
.va-card .va-titel { color: var(--rot); font-weight: 700; margin-bottom: 0.4rem; }
.va-card .va-details { color: var(--muted); margin-bottom: 0; }

/* ------------------------------------------------------
   Kontakt-Seite
   ------------------------------------------------------ */
.notruf-card {
  background: var(--rot);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(179, 0, 0, 0.35);
  padding: 2rem;
  text-align: center;
  height: 100%;
}

.notruf-card .nummer { font-size: 3rem; font-weight: 800; line-height: 1; }
.notruf-card p { color: rgba(255, 255, 255, 0.9); margin-bottom: 0; }

.kontakt-dl { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1.2rem; margin: 0; }
.kontakt-dl dt { color: var(--muted); font-weight: 600; }
.kontakt-dl dd { margin: 0; font-weight: 600; }

/* ------------------------------------------------------
   Sponsoren (Förderverein)
   ------------------------------------------------------ */
.sponsor-firma {
  background: var(--karte);
  border-radius: 12px;
  box-shadow: var(--schatten);
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  height: 100%;
}

.sponsor-firma strong { color: var(--text); }
.sponsor-firma span { color: var(--muted); font-size: 0.88rem; }

/* ------------------------------------------------------
   Datenschutz / Fließtext-Seiten
   ------------------------------------------------------ */
.text-seite h2 {
  color: var(--rot);
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.text-seite p, .text-seite li { color: var(--text); }
.text-seite ul { padding-left: 1.3rem; }

/* ------------------------------------------------------
   Modal (Zeitungsartikel etc.)
   ------------------------------------------------------ */
.modal-content { border: none; border-radius: var(--radius); box-shadow: var(--schatten-hover); }
.modal-header { border-bottom: 1px solid var(--border); }
.modal-title { color: var(--rot); font-weight: 700; }
