/* ==========================================================================
   Freiwillige Feuerwehr Honigsee – Stylesheet
   ========================================================================== */

:root {
  --ff-red: #c8102e;
  --ff-red-dark: #9b0c22;
  --ff-black: #1a1a1a;
  --ff-grey: #4a4a4a;
  --ff-grey-light: #f4f4f4;
  --ff-border: #e2e2e2;
  --ff-white: #ffffff;
  --ff-max-width: 1140px;
  --ff-radius: 6px;
  --ff-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --ff-font: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ff-font);
  color: var(--ff-black);
  background: #e2e2e2;
  line-height: 1.6;
}

.site-frame {
  background: var(--ff-white);
}

@media (min-width: 1300px) {
  .site-frame {
    max-width: 1400px;
    margin: 0 auto;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.12);
  }
}

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

a {
  color: var(--ff-red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--ff-max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3 {
  line-height: 1.25;
  margin-top: 0;
}

h2.section-title {
  font-size: 1.75rem;
  border-left: 5px solid var(--ff-red);
  padding-left: 0.75rem;
  margin-bottom: 1.5rem;
}

.subtitle {
  color: var(--ff-grey);
  font-size: 1.05rem;
  margin-top: -0.5rem;
}

/* --- Top notice bar --- */
.notruf-bar {
  background: var(--ff-black);
  color: var(--ff-white);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.4rem 1rem;
}

.notruf-bar strong {
  color: #ff5a5a;
}

/* --- Header / Navigation --- */
header.site-header {
  background: var(--ff-white);
  border-bottom: 1px solid var(--ff-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  max-width: var(--ff-max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ff-black);
}

.brand:hover {
  text-decoration: none;
}

.brand .crest {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: var(--ff-black);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
}

/* Zwischen Klappmenue und vollem Platz die Navigation etwas enger
   setzen, damit die sieben Menuepunkte in eine Zeile passen. */
@media (min-width: 931px) and (max-width: 1150px) {
  nav.main-nav ul {
    gap: 1rem;
  }

  nav.main-nav a {
    font-size: 0.88rem;
  }

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

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--ff-red);
  border-bottom-color: var(--ff-red);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--ff-black);
  margin: 5px 0;
  border-radius: 2px;
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ff-red) 0%, var(--ff-red-dark) 100%); /* Fallback, falls das Foto nicht lädt */
  color: var(--ff-white);
  min-height: clamp(320px, 52vw, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.hero > .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

.hero p {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 1.75rem;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--ff-radius);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--ff-white);
  color: var(--ff-red);
}

.btn-primary:hover {
  background: var(--ff-grey-light);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--ff-white);
  border-color: var(--ff-white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

.btn-solid {
  background: var(--ff-red);
  color: var(--ff-white);
}

.btn-solid:hover {
  background: var(--ff-red-dark);
  text-decoration: none;
}

/* --- Page header (non-home pages) --- */
.page-header {
  background: var(--ff-black);
  color: var(--ff-white);
  padding: 2.75rem 1.25rem;
  text-align: center;
}

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

.page-header p {
  color: #cccccc;
  margin: 0;
}

/* --- Sections --- */
section {
  padding: 3.5rem 0;
}

section.alt {
  background: var(--ff-grey-light);
}

/* --- Stat boxes --- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.stat-box {
  background: var(--ff-white);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius);
  text-align: center;
  padding: 1.75rem 1rem;
}

.stat-box .num {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--ff-red);
}

.stat-box .label {
  color: var(--ff-grey);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* --- Mitmachen-Banner --- */
.join-banner {
  background: linear-gradient(135deg, var(--ff-black) 0%, #2b2b2b 100%);
  color: var(--ff-white);
  text-align: center;
}

.join-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ff-red);
  background: rgba(200, 16, 46, 0.15);
  border: 1px solid rgba(200, 16, 46, 0.4);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 0.75rem;
}

.join-banner h2 {
  font-size: 1.75rem;
  text-wrap: balance;
}

.join-banner > .container > p {
  color: #cccccc;
  max-width: 620px;
  margin: 0 auto 2rem;
}

.join-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.join-option {
  display: block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--ff-radius);
  padding: 1.5rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.join-option:hover,
.join-option:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
  text-decoration: none;
}

.join-option .icon {
  color: var(--ff-white);
  margin-bottom: 0.5rem;
}

.join-option .icon svg {
  width: 34px;
  height: 34px;
}

.join-option:hover .icon,
.join-option:focus-visible .icon {
  color: var(--ff-red);
}

.join-option h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-top: 0.2rem;
  margin-bottom: 0.5rem;
  color: var(--ff-white);
}

.join-option p {
  color: #cccccc;
  font-size: 0.9rem;
  margin: 0;
}

/* --- Cards / grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card-grid.single {
  max-width: 320px;
}

.card {
  background: var(--ff-white);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius);
  overflow: hidden;
  box-shadow: var(--ff-shadow);
  display: flex;
  flex-direction: column;
}

.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.card p {
  color: var(--ff-grey);
  font-size: 0.95rem;
  flex: 1;
}

.card-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  margin-top: 0.9rem;
  background: none;
  border: none;
  padding: 0;
  color: var(--ff-red);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.card-toggle:hover {
  text-decoration: underline;
}

.card-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1.5px solid var(--ff-red);
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.card-toggle[aria-expanded="true"] .card-toggle-icon {
  transform: rotate(45deg);
}

.card-more {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ff-border);
}

.card-more h4 {
  font-size: 0.95rem;
  margin: 0.9rem 0 0.3rem;
}

.card-more h4:first-child {
  margin-top: 0;
}

.card-more p {
  flex: none;
}

.vehicle-specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.75rem;
  margin: 0;
  font-size: 0.9rem;
}

.vehicle-specs dt {
  font-weight: 600;
  color: var(--ff-grey);
}

.vehicle-specs dd {
  margin: 0;
  color: var(--ff-black);
}

.card-icon {
  height: 130px;
  background: var(--ff-grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.card-icon svg {
  width: 44px;
  height: 44px;
  color: var(--ff-red);
}

a.card {
  color: var(--ff-black);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

a.card:hover,
a.card:focus-visible {
  text-decoration: none;
  border-color: var(--ff-red);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.card-icon.photo {
  height: 190px;
  padding: 0.75rem;
}

.card-icon.photo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

button.card-icon.photo {
  width: 100%;
  border: none;
  font: inherit;
  cursor: pointer;
  position: relative;
}

button.card-icon.photo::after {
  content: "🔍";
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ff-shadow);
  opacity: 0;
  transition: opacity 0.15s ease;
}

button.card-icon.photo:hover::after,
button.card-icon.photo:focus-visible::after {
  opacity: 1;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 1000;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  object-fit: contain;
  background: var(--ff-white);
  border-radius: var(--ff-radius);
  padding: 1.5rem;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: var(--ff-white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(0, 0, 0, 0.85);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  /* Dunkel statt halbtransparent weiss: sonst verschwinden die Pfeile
     auf hellen Fotos und auf dem weissen Rand der Grossansicht. */
  background: rgba(0, 0, 0, 0.6);
  color: var(--ff-white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav[hidden] {
  display: none;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(0, 0, 0, 0.85);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  /* Die Zeile geht ueber die volle Breite und laege sonst unsichtbar
     ueber den Pfeilen, die dadurch nicht mehr anklickbar waeren. */
  pointer-events: none;
  text-align: center;
  color: #dddddd;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  margin: 0;
}

.lightbox-counter[hidden] {
  display: none;
}

/* Auf schmalen Bildschirmen wuerden die Pfeile auf dem Foto liegen und
   dort leicht uebersehen. Sie wandern deshalb unter das Bild, links und
   rechts neben die Zaehleranzeige. */
@media (max-width: 600px) {
  .lightbox {
    padding: 1rem;
  }

  .lightbox-img {
    max-width: 100%;
    max-height: 68vh;
    padding: 0.75rem;
  }

  .lightbox-nav {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.7rem;
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .lightbox-prev {
    left: 50%;
    margin-left: -5.75rem;
  }

  .lightbox-next {
    right: 50%;
    margin-right: -5.75rem;
  }

  .lightbox-counter {
    bottom: 1.9rem;
    font-size: 0.95rem;
    color: var(--ff-white);
  }
}

/* --- Einsatzliste --- */
.einsatz-jahr + .einsatz-jahr {
  margin-top: 2.5rem;
}

.einsatz-jahr-titel {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ff-border);
}

.einsatz-jahr-titel span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ff-grey);
}

.einsatz-tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.einsatz-tabelle th {
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ff-grey);
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--ff-border);
}

.einsatz-tabelle td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--ff-border);
  vertical-align: top;
}

.einsatz-tabelle tbody tr:hover {
  background: var(--ff-grey-light);
}

.einsatz-tabelle .einsatz-nr,
.einsatz-tabelle .einsatz-datum {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.einsatz-tabelle .einsatz-nr {
  width: 3.5rem;
  color: var(--ff-grey);
}

.einsatz-tabelle .einsatz-datum {
  width: 7.5rem;
}

/* Feste Breite fuer die Ort-Spalte, damit alle Jahres-Tabellen
   dieselbe Spalteneinteilung haben. */
.einsatz-tabelle th:last-child,
.einsatz-tabelle td:last-child {
  width: 28%;
}

/* Auf schmalen Bildschirmen wird aus jeder Zeile eine kleine Karte,
   damit man nicht seitlich scrollen muss. */
@media (max-width: 640px) {
  .einsatz-tabelle,
  .einsatz-tabelle tbody,
  .einsatz-tabelle tr,
  .einsatz-tabelle td {
    display: block;
    width: auto;
  }

  .einsatz-tabelle thead {
    display: none;
  }

  .einsatz-tabelle tr {
    background: var(--ff-white);
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius);
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
  }

  .einsatz-tabelle tbody tr:hover {
    background: var(--ff-white);
  }

  .einsatz-tabelle td {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    align-items: baseline;
    gap: 0.5rem;
    width: auto;
    padding: 0.2rem 0;
    border-bottom: none;
  }

  .einsatz-tabelle td::before {
    content: attr(data-label);
    font-size: 0.8rem;
    color: var(--ff-grey);
  }
}

/* --- Bildergalerie (z. B. Übungsdienste) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--ff-radius);
  border: 1px solid var(--ff-border);
}

.gallery-placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 2px dashed var(--ff-border);
  border-radius: var(--ff-radius);
  background: var(--ff-white);
  color: var(--ff-grey);
  font-size: 0.85rem;
}

.gallery-placeholder .icon {
  font-size: 1.8rem;
}

/* --- Persönliche Schutzausrüstung --- */
.equipment-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.equipment-photo {
  aspect-ratio: 3 / 4;
  text-align: center;
  padding: 0 1rem;
}

.equipment-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.equipment-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.equipment-item p {
  color: var(--ff-grey);
  margin: 0;
}

@media (max-width: 820px) {
  .equipment-grid {
    grid-template-columns: 1fr;
  }

  .equipment-photo {
    aspect-ratio: 4 / 3;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* --- Foto-Karussell --- */
.photo-carousel {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--ff-radius);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-slide {
  flex: 0 0 100%;
}

.carousel-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: var(--ff-white);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-nav:hover {
  background: rgba(0, 0, 0, 0.75);
}

.carousel-nav.prev {
  left: 0.6rem;
}

.carousel-nav.next {
  right: 0.6rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--ff-border);
  cursor: pointer;
}

.carousel-dot.active {
  background: var(--ff-red);
}

/* --- Alters-Reiter (z. B. Kinder-/Jugendfeuerwehr) --- */
.age-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 180px;
  text-align: left;
  background: var(--ff-white);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius);
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ff-black);
  cursor: pointer;
}

.tab-btn .tab-age {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--ff-grey);
}

.tab-btn.active {
  border-color: var(--ff-red);
  background: #fdeaea;
}

.tab-btn.active .tab-age {
  color: var(--ff-red-dark);
}

/* --- Feed / timeline (Termine & Neuigkeiten) --- */
.feed-item {
  background: var(--ff-white);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.feed-item .feed-date {
  color: var(--ff-grey);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  margin: 0;
}

.feed-item h3 {
  font-size: 1.1rem;
  margin: 0.2rem 0 0.4rem;
}

.feed-item p {
  color: var(--ff-grey);
  margin: 0;
}

.feed-bilder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.feed-bilder img {
  display: block;
  cursor: zoom-in;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--ff-radius);
  border: 1px solid var(--ff-border);
}

.feed-empty {
  color: var(--ff-grey);
  font-style: italic;
}

.feed-preview-group + .feed-preview-group {
  margin-top: 1.75rem;
}

.feed-preview-heading {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ff-grey);
  margin-bottom: 0.75rem;
}

/* --- Info / placeholder notice --- */
.notice {
  background: #fff8e1;
  border: 1px solid #f0d98c;
  border-radius: var(--ff-radius);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: #6b5900;
  margin-bottom: 2rem;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  margin: 1.5rem 0;
}

.contact-info dt {
  font-weight: 600;
  color: var(--ff-grey);
}

.contact-info dd {
  overflow-wrap: anywhere;
}

.card .subtitle {
  overflow-wrap: anywhere;
}

.contact-persons .card-grid {
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* --- Kontaktformular --- */
form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 640px;
}

.honigtopf {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-hinweis {
  border-radius: var(--ff-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid;
}

.form-hinweis-ok {
  background: #f0f7f0;
  border-color: #bcd9bc;
  color: #2f5d33;
}

.form-hinweis-fehler {
  background: #fdf1f2;
  border-color: #e6bcc2;
  color: #8a2230;
}

.form-hinweis[hidden] {
  display: none;
}

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

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius);
  font-family: inherit;
  font-size: 0.95rem;
}

form.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

/* --- Footer --- */
footer.site-footer {
  background: var(--ff-black);
  color: #cccccc;
  padding: 2.5rem 0 1.25rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #333;
}

.footer-grid h4 {
  color: var(--ff-white);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.footer-grid a {
  color: #cccccc;
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  padding-top: 1.25rem;
  color: #888;
}

.footer-bottom p {
  margin: 0;
}

.footer-legal {
  margin-top: 0.4rem !important;
}

.footer-legal a {
  color: #aaaaaa;
  font-size: 0.8rem;
  margin: 0 0.15rem;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--ff-white);
}

/* --- Rechtstexte (Impressum, Datenschutz) --- */
.legal {
  max-width: 760px;
}

.legal h2.section-title {
  margin-top: 2.5rem;
}

.legal h2.section-title:first-of-type {
  margin-top: 0;
}

.legal h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.35rem;
}

.legal p {
  color: var(--ff-grey);
  margin: 0 0 0.9rem;
  overflow-wrap: anywhere;
}

/* --- Responsive --- */
@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 930px) {
  nav.main-nav {
    display: none;
    width: 100%;
  }

  nav.main-nav.open {
    display: block;
  }

  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--ff-border);
  }

  nav.main-nav a {
    display: block;
    padding: 0.85rem 0.25rem;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  section {
    padding: 2.5rem 0;
  }

  .page-header {
    padding: 2rem 1.25rem;
  }

  h2.section-title {
    font-size: 1.5rem;
  }

  .hero {
    padding: 2.5rem 1.25rem;
    min-height: clamp(280px, 70vw, 420px);
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero-actions .btn {
    flex: 1 1 200px;
  }

  .card-icon {
    height: 100px;
    font-size: 2rem;
  }

  .card-icon.photo {
    height: 150px;
  }

  .stat-box {
    padding: 1.25rem 0.75rem;
  }

  .stat-box .num {
    font-size: 1.75rem;
  }

  .footer-grid {
    gap: 1.5rem;
  }

  form.contact-form button {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .brand {
    font-size: 1rem;
  }

  .brand .crest {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
}
