/* Freiwillige Feuerwehr Hornstein – globale Styles */

:root {
  --color-primary: oklch(0.3 0.13 25);
  --color-accent: oklch(0.47 0.16 25);
  --color-accent-hover: oklch(0.38 0.16 25);
  --color-bg: oklch(0.98 0.006 60);
  --color-bg-tint: oklch(0.97 0.02 30);
  --color-text: oklch(0.22 0.01 40);
  --color-text-muted: oklch(0.5 0.01 40);
  --color-text-muted-2: oklch(0.4 0.01 40);
  --color-text-on-primary: oklch(0.97 0.01 60);
  --color-text-on-primary-muted: oklch(0.85 0.01 60);
  --color-border: oklch(0.91 0.01 60);
  --font-heading: 'Work Sans', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --max-width: 1400px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover { color: var(--color-accent-hover); }

img { max-width: 100%; }

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  background: #fff;
}

/* Utility-Leiste */
.utility-bar {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 6px 32px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 8px;
}
.utility-bar a { color: #fff; }
.utility-bar__icons { display: flex; align-items: center; gap: 14px; }
.utility-bar__icons a { display: flex; }
.utility-bar__icons svg { display: block; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--color-primary);
}
.site-header__logo { height: 44px; width: auto; display: block; }

.site-nav {
  display: flex;
  gap: 28px;
  font: 600 15px var(--font-heading);
  flex-wrap: wrap;
}
.site-nav a { color: #fff; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* Hamburger-Button (nur mobil sichtbar, siehe @media weiter unten) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 4px;
    padding-top: 8px;
  }
  .site-nav.is-open { display: flex; }
}

/* Hero */
.hero {
  position: relative;
  background: var(--color-primary);
}
.hero__media {
  position: relative;
  height: min(70vw, 580px);
  overflow: hidden;
}
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__badge-logo {
  position: absolute;
  top: 20px;
  right: 20px;
  height: 81px;
  width: auto;
  display: block;
}

@media (max-width: 600px) {
  .hero__badge-logo { display: none; }
}
.hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 32px;
}

/* Mobile: Text/CTA nicht über dem Foto, sondern als eigener Block darunter
   (gleiche Grenze wie das Hamburger-Menü, siehe @media (max-width: 900px) oben) */
@media (max-width: 900px) {
  .hero__media {
    /* Bildhöhe reduzieren, sodass das untere Viertel des Fotos nicht mehr
       sichtbar ist (Verhältnis passend zu assets/fahrzeug-hero.jpg,
       2400x1666 -> bei neuem Hero-Foto ggf. anpassen) */
    height: auto;
    aspect-ratio: 1.92;
  }
  .hero__image { object-position: top; }
  .hero__content {
    position: static;
    padding: 24px 20px 32px;
  }
  .hero__title { color: var(--color-primary); text-shadow: none; }
  .hero__subtitle { color: var(--color-text-muted-2); text-shadow: none; }
  .hero__actions .btn--outline {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
  }
  .hero__actions .btn--outline:hover { background: var(--color-bg-tint); }
}
.hero__title {
  margin: 0 0 10px;
  color: #fff;
  font: 800 clamp(28px, 5vw, 44px) / 1.15 var(--font-heading);
  max-width: 640px;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.hero__subtitle {
  margin: 0 0 20px;
  color: rgba(255,255,255,.92);
  font-size: clamp(15px, 2vw, 18px);
  max-width: 560px;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  font: 700 15px var(--font-heading);
  border-radius: 4px;
  border: 1px solid transparent;
}
.btn--primary { background: var(--color-accent); color: #fff; }
.btn--primary:hover { background: var(--color-accent-hover); color: #fff; }
.btn--outline { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn--small { padding: 11px 22px; font-size: 14px; }

/* Sections */
.section { padding: 56px 32px; scroll-margin-top: 16px; }
.section__title {
  margin: 0 0 6px;
  font: 800 30px var(--font-heading);
  color: var(--color-primary);
}
.section__intro { margin: 0 0 28px; color: var(--color-text-muted); }

/* Aktuelles */
.fb-feed { margin-bottom: 28px; }
.fb-feed__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.fb-feed__title { margin: 0; font: 700 16px var(--font-heading); color: var(--color-primary); }
.fb-feed__link { font-size: 13px; font-weight: 600; }
.fb-feed__notice {
  font-size: 13px;
  color: var(--color-text-muted);
  background: var(--color-bg-tint);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.fb-feed__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) { .fb-feed__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .fb-feed__grid { grid-template-columns: 1fr; } }
.fb-post {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--color-text);
}
.fb-post__image { width: 100%; height: 150px; object-fit: cover; display: block; }
.fb-post__body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.fb-post__date { font-size: 11px; color: var(--color-accent); font-weight: 600; }
.fb-post__message {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fb-post.is-expanded .fb-post__message {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.fb-post__toggle {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.fb-post__toggle:hover { text-decoration: underline; }
.fb-post__link { font-size: 12px; font-weight: 700; }

/* News-Grid (weiterhin von archiv.html genutzt) */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card__image { width: 100%; height: 170px; object-fit: cover; display: block; }
.card__body { padding: 18px; }
.card__date { font-size: 12px; color: var(--color-accent); font-weight: 600; margin-bottom: 6px; }
.card__title { margin: 0 0 8px; font: 700 18px var(--font-heading); }
.card__text { margin: 0; font-size: 14px; color: var(--color-text-muted-2); line-height: 1.5; }

/* Seitentitel (Archiv etc.) */
.page-header {
  padding: 56px 32px 24px;
  border-bottom: 1px solid var(--color-border);
}
.page-header__title {
  margin: 0 0 10px;
  font: 800 clamp(28px, 4vw, 38px) / 1.15 var(--font-heading);
  color: var(--color-primary);
}
.page-header__intro { margin: 0; color: var(--color-text-muted-2); font-size: 15px; max-width: 640px; }

/* Inhaltsfoto (volle Breite, z.B. Feuerwehrhaus- oder Geschichte-Seite) */
.content-photo {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin-bottom: 24px;
}

/* Dokumenten-Scan: nichts zuschneiden, Text muss lesbar bleiben */
.document-figure { margin: 0 0 28px; }
.document-photo {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  display: block;
  cursor: zoom-in;
}
.document-figure__caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Geschichte: hervorgehobene Fakten-Liste */
.fact-box {
  background: var(--color-bg-tint);
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0;
}
.fact-box__title { margin: 0 0 14px; font: 700 16px var(--font-heading); color: var(--color-primary); }
.fact-box__list { margin: 0; padding-left: 22px; font-size: 15px; line-height: 1.7; color: var(--color-text-muted-2); }
.fact-box__list li { margin-bottom: 8px; }
.fact-box__list li:last-child { margin-bottom: 0; }

/* Einsatzarchiv-Akkordeon */
.archive-intro { margin: 0 0 24px; color: var(--color-text-muted); font-size: 14px; max-width: 640px; }
.archive-year {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.archive-year__summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  font: 700 16px var(--font-heading);
  background: var(--color-bg-tint);
  color: var(--color-primary);
}
.archive-year__summary::-webkit-details-marker { display: none; }
.archive-year__summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.15s ease;
}
.archive-year[open] > .archive-year__summary::before { transform: rotate(90deg); }
.archive-year__list {
  margin: 0;
  padding: 14px 18px 18px 34px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-muted-2);
}
.archive-year__note { font-size: 13px; color: var(--color-text-muted); margin: 10px 0 0; }
.archive-year__fb-grid { padding: 18px; }

/* Kommando */
.commander-spotlight {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 32px;
  align-items: center;
  background: var(--color-bg-tint);
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 20px;
}
.commander-spotlight__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.commander-spotlight__role {
  margin: 0 0 8px;
  font: 700 13px var(--font-heading);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.commander-spotlight__name { margin: 0 0 14px; font: 800 28px var(--font-heading); color: var(--color-primary); }
.commander-spotlight__contact { margin: 0; font-size: 15px; color: var(--color-text-muted-2); line-height: 1.8; }
.commander-spotlight__contact a { display: block; }

@media (max-width: 560px) {
  .commander-spotlight { grid-template-columns: 1fr; padding: 20px; }
}

.legal-notice {
  background: var(--color-bg-tint);
  border-radius: 8px;
  padding: 24px;
  margin-top: 40px;
}
.legal-notice__title { margin: 0 0 12px; font: 700 16px var(--font-heading); color: var(--color-primary); }
.legal-notice__text { margin: 0; font-size: 14px; line-height: 1.7; color: var(--color-text-muted-2); }

/* Mannschaft */
.team-section {
  background: var(--color-bg-tint);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  align-items: center;
}
.team-section__photo {
  width: 100%;
  height: 280px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}
.team-section__title { margin: 0 0 12px; font: 800 28px var(--font-heading); color: var(--color-primary); }
.team-section__text { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--color-text-muted-2); max-width: 520px; }

/* Fahrzeuge: Profile mit Slideshow + Beschreibung */
.vehicle-profile { margin-bottom: 56px; }
.vehicle-profile:last-child { margin-bottom: 0; }
.vehicle-profile__title {
  margin: 0 0 16px;
  font: 800 24px var(--font-heading);
  color: var(--color-primary);
}
.vehicle-profile__abbr { color: var(--color-text-muted); font-weight: 600; }
.vehicle-profile__list {
  margin: 0;
  padding-left: 22px;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.8;
}
.vehicle-profile__meta {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Slideshow (z.B. Wettkampfgruppe) */
.slideshow {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-bg-tint);
  margin-bottom: 28px;
}
.slideshow__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.slideshow__slide.is-active { opacity: 1; z-index: 1; }
.slideshow__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slideshow__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.4);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slideshow__arrow:hover { background: rgba(0,0,0,.6); }
.slideshow__arrow--prev { left: 14px; }
.slideshow__arrow--next { right: 14px; }
.slideshow__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.slideshow__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255,255,255,.6);
  cursor: pointer;
}
.slideshow__dot.is-active { background: #fff; }

@media (max-width: 600px) {
  .slideshow { aspect-ratio: 4 / 3; }
}

/* Ergebnistabellen (z.B. Wettkampfgruppe) */
.results-block { margin: 36px 0; }
.results-block__title { margin: 0 0 14px; font: 700 18px var(--font-heading); color: var(--color-primary); }
.table-scroll { overflow-x: auto; }
.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}
.results-table th,
.results-table td {
  border: 1px solid var(--color-border);
  padding: 8px 12px;
  text-align: left;
  vertical-align: middle;
}
.results-table thead th {
  background: var(--color-primary);
  color: #fff;
  font: 700 13px var(--font-heading);
  white-space: nowrap;
}
.results-table tbody tr:nth-child(even) { background: var(--color-bg-tint); }
.results-table td:first-child { font-weight: 700; color: var(--color-primary); }

/* FAQ-Akkordeon */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}
.faq-item__question {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font: 700 15px var(--font-heading);
  background: var(--color-bg-tint);
  color: var(--color-primary);
}
.faq-item__question::-webkit-details-marker { display: none; }
.faq-item__question::before {
  content: '▸';
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.15s ease;
}
.faq-item[open] > .faq-item__question::before { transform: rotate(90deg); }
.faq-item__answer {
  margin: 0;
  padding: 4px 18px 18px 34px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-muted-2);
}

/* Spenden */
.donation-box {
  background: var(--color-bg-tint);
  border-radius: 8px;
  padding: 24px;
  max-width: 480px;
}
.donation-box__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}
.donation-box__row:last-child { border-bottom: none; }
.donation-box__row span { color: var(--color-text-muted); }
.donation-box__row strong { color: var(--color-primary); text-align: right; }

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  padding: 48px 32px 24px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.site-footer__heading { font: 800 18px var(--font-heading); margin-bottom: 12px; }
.site-footer__heading--small { font: 700 14px var(--font-heading); margin-bottom: 12px; color: var(--color-text-on-primary-muted); }
.site-footer__address { font-size: 14px; line-height: 1.7; color: var(--color-text-on-primary-muted); margin: 0; }
.site-footer__links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.site-footer__links a { color: var(--color-text-on-primary); font-size: 14px; }
.site-footer__social { display: flex; gap: 14px; }
.site-footer__social a { color: var(--color-text-on-primary); display: flex; }
.site-footer__social svg { display: block; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 16px;
  font-size: 12px;
  color: oklch(0.75 0.01 60);
}
