/* Freiwillige Feuerwehr Betziesdorf 1882 e.V.
   Farben und Schrift angelehnt an die Teilchronik (Schautafeln/00_Stil-Dokumentation.md) */

:root {
  --pergament: #F5EFE3;
  --pergament-dunkel: #EDE4D2;
  --rot: #9B1B1F;
  --rot-dunkel: #7A1418;
  --gold: #8A6D3B;
  --gold-hell: #C9B68A;
  --text: #2B2114;
  --text-leise: #5A4A30;
  --weiss: #FFFDF8;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --breite: 1120px;
  --radius: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--pergament);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: normal;
  color: var(--rot);
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.container { max-width: var(--breite); margin: 0 auto; padding: 0 20px; }

/* Kopfzeile in gesperrten Kapitälchen, wie auf den Tafeln */
.kicker {
  font-family: var(--serif);
  font-variant: small-caps;
  letter-spacing: .18em;
  color: var(--gold);
  font-size: 1rem;
  margin: 0 0 .4em;
}

/* ---------- Kopfbereich und Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--weiss);
  border-bottom: 3px solid var(--rot);
  box-shadow: 0 2px 10px rgba(43, 33, 20, .08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand img { width: 46px; }
.brand span { font-family: var(--serif); font-size: 1.15rem; line-height: 1.15; white-space: nowrap; }
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; }
.nav a {
  display: block;
  padding: 8px 9px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-size: .93rem;
  white-space: nowrap;
}
.nav a:hover { background: var(--pergament); color: var(--rot); }
.nav a[aria-current="page"] { color: var(--rot); box-shadow: inset 0 -2px 0 var(--rot); border-radius: 0; }

.nav-toggle { display: none; }
.nav-button { display: none; }

@media (max-width: 1100px) {
  .nav-button {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid var(--gold-hell);
    border-radius: var(--radius);
    color: var(--rot);
    font-size: .95rem;
  }
  .nav-button::before { content: "\2630"; font-size: 1.2rem; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--weiss);
    border-bottom: 3px solid var(--rot);
    box-shadow: 0 8px 16px rgba(43, 33, 20, .12);
  }
  .nav ul { flex-direction: column; padding: 8px 20px 16px; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid var(--pergament-dunkel); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; font-weight: 600; }
  .nav-toggle:checked ~ .nav { display: block; }
}

/* ---------- Titelbild: Luftbild ganz sichtbar, Text darunter ---------- */
.hero { background: var(--text); color: #fff; }
.hero-bild { width: 100%; height: auto; max-height: 82vh; object-fit: cover; object-position: center top; }
.hero-text .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding-top: 32px;
  padding-bottom: 36px;
}
.hero h1 { color: #fff; margin-bottom: .2em; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.hero .kicker { color: var(--gold-hell); }
.hero .leitmotiv { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--pergament-dunkel); margin: 0; }

.page-hero {
  background: var(--weiss);
  border-bottom: 1px solid var(--gold-hell);
  padding: 56px 0 40px;
}
.page-hero p.lead { font-size: 1.2rem; max-width: 46em; color: var(--text-leise); margin: 0; }

/* ---------- Buttons ---------- */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  background: var(--rot);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--rot);
}
.btn:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: #fff; }
.btn.hell { background: transparent; border-color: currentColor; color: inherit; }
.btn.hell:hover { background: rgba(255, 255, 255, .12); color: inherit; }

/* ---------- Banner Eröffnung ---------- */
.banner { background: var(--rot); color: #fff; }
.banner .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.banner strong { font-family: var(--serif); font-weight: normal; font-size: 1.35rem; }
.banner a { color: #fff; }
@media (max-width: 640px) { .banner strong { font-size: 1.1rem; } }

/* ---------- Abschnitte ---------- */
.section { padding: 72px 0; }
.section.weiss { background: var(--weiss); border-top: 1px solid var(--gold-hell); border-bottom: 1px solid var(--gold-hell); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background: var(--rot);
  margin: 18px auto 0;
}

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.split.umgekehrt > :first-child { order: 2; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.umgekehrt > :first-child { order: 0; }
}

/* ---------- Karten ---------- */
.card {
  background: var(--weiss);
  border: 1px solid var(--gold-hell);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(43, 33, 20, .12); color: inherit; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card .card-body { padding: 20px 22px 24px; flex: 1; }
.card h3 { margin-bottom: .3em; }
.card p { margin: 0; color: var(--text-leise); }
.card .mehr { display: inline-block; margin-top: 12px; color: var(--rot); font-weight: 600; }

/* ---------- Fotos mit Passepartout wie auf den Tafeln ---------- */
.foto { margin: 0; }
.foto img {
  background: var(--weiss);
  padding: 10px;
  border: 1px solid var(--gold-hell);
  box-shadow: 0 6px 18px rgba(43, 33, 20, .12);
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.foto.ganz img { object-fit: contain; aspect-ratio: auto; }
.foto.hoch img { aspect-ratio: 3 / 4; }
.foto figcaption {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-leise);
  text-align: center;
  font-size: .95rem;
  margin-top: 10px;
}

/* Platzhalter für Fotos, die noch fehlen */
.platzhalter {
  aspect-ratio: 3 / 2;
  border: 2px dashed var(--gold-hell);
  background: repeating-linear-gradient(135deg, var(--pergament), var(--pergament) 12px, var(--pergament-dunkel) 12px, var(--pergament-dunkel) 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-leise);
  border-radius: var(--radius);
}

/* ---------- Kasten "Auf einen Blick" ---------- */
.fakten {
  background: var(--weiss);
  border: 1px solid var(--gold-hell);
  border-left: 4px solid var(--rot);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.fakten h3 { font-size: 1.1rem; font-variant: small-caps; letter-spacing: .12em; color: var(--gold); }
.fakten dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; }
.fakten dt { color: var(--gold); font-weight: 700; }
.fakten dd { margin: 0; }

/* ---------- Ansprechpartner ---------- */
.kontakt-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.kontakt-liste li {
  background: var(--weiss);
  border: 1px solid var(--gold-hell);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.kontakt-liste .rolle { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.kontakt-liste .name { font-family: var(--serif); font-size: 1.15rem; }

/* ---------- Abzeichen ---------- */
.abzeichen { width: 180px; margin: 0 auto 16px; }

/* ---------- Zeitleiste ---------- */
.zeitleiste { list-style: none; margin: 0; padding: 0; position: relative; }
.zeitleiste::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--gold-hell);
}
.zeitleiste > li { position: relative; padding: 0 0 40px 52px; }
.zeitleiste > li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--rot);
  border: 3px solid var(--pergament);
  box-shadow: 0 0 0 1px var(--gold-hell);
}
.zeitleiste .jahr { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--rot); line-height: 1; }
.zeitleiste h3 { margin: 6px 0 10px; color: var(--text); }
.zeitleiste .eintrag { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
@media (max-width: 760px) { .zeitleiste .eintrag { grid-template-columns: 1fr; gap: 16px; } }

/* Kompakte Zeitleiste auf der Startseite */
.zeitleiste-kurz {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  position: relative;
}
.zeitleiste-kurz::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--gold-hell);
}
.zeitleiste-kurz li { text-align: center; position: relative; padding-top: 34px; }
.zeitleiste-kurz li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--rot);
}
.zeitleiste-kurz b { display: block; font-family: var(--serif); color: var(--rot); font-size: 1.15rem; }
.zeitleiste-kurz span { font-family: var(--serif); font-style: italic; color: var(--text-leise); font-size: .9rem; }
@media (max-width: 760px) {
  .zeitleiste-kurz { grid-template-columns: 1fr; gap: 14px; }
  .zeitleiste-kurz::before { top: 0; bottom: 0; left: 9px; right: auto; width: 2px; height: auto; }
  .zeitleiste-kurz li { text-align: left; padding: 0 0 0 40px; }
  .zeitleiste-kurz li::before { left: 0; transform: none; }
  .zeitleiste-kurz b, .zeitleiste-kurz span { display: inline; margin-right: 8px; }
}

/* ---------- Hinweisbox ---------- */
.hinweis {
  background: var(--weiss);
  border: 1px solid var(--gold-hell);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.notruf { font-family: var(--serif); font-size: 3rem; color: var(--rot); line-height: 1; margin: 0 0 .2em; }

/* ---------- Fußzeile ---------- */
.site-footer {
  background: var(--text);
  color: var(--pergament-dunkel);
  padding: 48px 0 28px;
  margin-top: 0;
  font-size: .95rem;
}
.site-footer a { color: var(--pergament); }
.site-footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 {
  font-family: var(--serif);
  font-weight: normal;
  font-variant: small-caps;
  letter-spacing: .14em;
  color: var(--gold-hell);
  margin: 0 0 12px;
  font-size: 1.05rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .leitmotiv { font-family: var(--serif); font-style: italic; color: var(--gold-hell); }
.site-footer .unten {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(201, 182, 138, .35);
  padding-top: 20px;
  font-size: .85rem;
  color: var(--gold-hell);
}
@media (max-width: 760px) { .site-footer .container { grid-template-columns: 1fr; } }

/* Barrierefreiheit: Sprunglink */
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* ---------- Impressum und Datenschutz ---------- */
.rechtstext { max-width: 820px; }
.rechtstext h2 { font-size: 1.5rem; margin-top: 1.6em; }
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext h3 { font-size: 1.15rem; color: var(--text); margin-top: 1.2em; }
.rechtstext ul { padding-left: 1.2em; }
.rechtstext li { margin-bottom: .3em; }
