/* Feuerwehr Gomadingen – Entwurf: Aufbau der bisherigen Website, modern und hell */

/* Schriften selbst hosten (DSGVO): woff2-Dateien in assets/fonts/ ablegen. */
@font-face { font-family: "Bricolage Grotesque"; src: local("Bricolage Grotesque"), url("fonts/BricolageGrotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: local("Instrument Sans"), url("fonts/InstrumentSans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --white: #ffffff;
  --bg: #f6f7f8;
  --line: #e3e5e8;
  --text: #1d1f22;
  --soft: #62676e;
  --red: #e5392e;
  --red-dark: #b8291f;
  --red-tint: #fdeceb;
  --radius: 10px;
  --wrap: 1180px;
  --head: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 17px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--text); }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; margin: 0 0 .45em; }
h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); font-weight: 750; letter-spacing: -.015em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: var(--text); color: #fff; padding: 10px 14px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.soft { color: var(--soft); }

.btn { display: inline-block; padding: 12px 20px; border-radius: 6px; font: 600 1rem/1.2 var(--body); text-decoration: none; border: 2px solid var(--red); background: var(--red); color: #fff; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: #fff; color: var(--text); border-color: var(--text); }

/* Kopfzeile wie bisher: Notruf links, Social und E-Mail rechts */
.topbar { background: var(--red); color: #fff; font-size: .92rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar .call { font-weight: 700; }
.topbar .links { display: flex; gap: 20px; }

/* Logo und Navigation */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.logo { display: flex; align-items: center; text-decoration: none; color: var(--text); font: 800 1.3rem/1 var(--head); }
.logo img { height: 52px; width: auto; }
.logo:hover { color: var(--text); }

.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav li { position: relative; }
.nav a, .nav .top { display: block; padding: 10px 14px; border-radius: 6px; color: var(--text); text-decoration: none; font-weight: 600; background: none; border: 0; font-family: inherit; font-size: 1rem; cursor: pointer; }
.nav > ul > li > a:hover, .nav .top:hover, .nav li:focus-within > .top { background: var(--bg); color: var(--text); }
.nav [aria-current="page"] { color: var(--red-dark); }
.nav .top::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav .sub { list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(20,22,26,.08); display: none; }
.nav li:hover > .sub, .nav li:focus-within > .sub { display: block; }
.nav .sub a { font-weight: 500; padding: 9px 12px; }
.nav .sub a:hover { background: var(--red-tint); color: var(--red-dark); }
.menu-btn { display: none; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 9px 14px; font: 600 .95rem var(--body); cursor: pointer; }

@media (max-width: 960px) {
  .site-head .wrap { flex-wrap: wrap; min-height: 68px; }
  .logo img { height: 42px; }
  .menu-btn { display: block; }
  .nav { display: none; width: 100%; padding-bottom: 14px; }
  .nav.open { display: block; max-height: calc(100vh - 110px); overflow-y: auto; }
  .nav > ul { flex-direction: column; }
  .nav .top { width: 100%; text-align: left; pointer-events: none; color: var(--soft); font-size: .9rem; padding-top: 14px; }
  .nav .top::after { display: none; }
  .nav .sub { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 8px; min-width: 0; }
  .topbar .links a:not(.mail) { display: none; }
}

/* Titelbereich mit Kennzahlen */
.title-area { background: var(--bg); border-bottom: 1px solid var(--line); }
.title-area .wrap { padding-block: 56px 48px; }
.title-area p { color: var(--soft); font-size: 1.12rem; max-width: 56ch; }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.counter { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.counter b { display: block; font: 800 2.6rem/1 var(--head); color: var(--red); }
.counter span { color: var(--soft); }
@media (max-width: 640px) { .counters { grid-template-columns: 1fr 1fr 1fr; gap: 10px; } .counter { padding: 14px; } .counter b { font-size: 1.9rem; } .counter span { font-size: .85rem; } }

/* Mitgliederhinweis */
.member { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--red-tint); border-radius: var(--radius); padding: 22px 26px; margin-top: 16px; }
.member p { margin: 0; font-weight: 600; max-width: 70ch; color: var(--text); }

.section { padding-block: 64px; }
.section-bg { background: var(--bg); }
.head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.head-row h2 { margin: 0; }

/* Karten für Beiträge und Einsätze */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .cards, .cards.two { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards, .cards.two { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; transition: border-color .15s; }
.card:hover { border-color: #c4c8cd; color: var(--text); }
.card-img { aspect-ratio: 16/10; background: var(--line) center/cover no-repeat; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 10px; color: var(--soft); font-size: .9rem; margin-bottom: 8px; }
.card h3 { margin: 0 0 8px; }
.card p { color: var(--soft); margin: 0 0 14px; }
.card .more { margin-top: auto; color: var(--red-dark); font-weight: 600; }
.card:hover .more { text-decoration: underline; }
.kw { display: inline-block; padding: 2px 8px; border-radius: 4px; font: 700 .8rem/1.4 var(--body); background: var(--bg); color: var(--text); border: 1px solid var(--line); }
.kw.B { background: var(--red); border-color: var(--red); color: #fff; }

.archive { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* Unterseiten */
.page-head { background: var(--bg); border-bottom: 1px solid var(--line); padding-block: 44px 32px; }
.page-head p { color: var(--soft); font-size: 1.12rem; max-width: 62ch; margin: 0; }
.crumbs { font-size: .9rem; color: var(--soft); margin-bottom: 14px; }
.crumbs a { color: var(--soft); }

.toolbar { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: end; margin-bottom: 24px; }
.toolbar label { display: grid; gap: 4px; font-size: .9rem; font-weight: 600; }
.toolbar select { font: 400 1rem var(--body); padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); min-width: 200px; }
.toolbar .count { color: var(--soft); margin-left: auto; padding-bottom: 10px; }
.years { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.years a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 600; }
.years a[aria-current="page"] { background: var(--red); border-color: var(--red); color: #fff; }
.empty { display: none; color: var(--soft); padding: 18px 0; }

/* Einsatzbericht */
.report { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.report-photo { aspect-ratio: 16/9; background: var(--line) center/cover no-repeat; border-radius: var(--radius); margin-bottom: 28px; }
.report-text { font-size: 1.1rem; max-width: 64ch; }
.facts { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; position: sticky; top: 100px; }
.facts h2 { font-size: 1.15rem; margin-bottom: 6px; }
.facts dl { margin: 0; }
.facts dt { font-size: .9rem; color: var(--soft); margin-top: 12px; }
.facts dd { margin: 0; font-weight: 600; }
.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .report { grid-template-columns: 1fr; gap: 32px; } .facts { position: static; order: -1; } }

/* Abteilungen */
.depts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dept { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.dept h3 { font-size: 1.35rem; }
.dept p { margin: 0 0 .6em; }
.dept .who { font-weight: 600; margin: 0; }
@media (max-width: 860px) { .depts { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 600; color: var(--soft); font-size: .9rem; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg); }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 700; white-space: nowrap; }

/* Kontakt */
.notice { display: flex; gap: 20px; align-items: center; background: var(--red); color: #fff; border-radius: var(--radius); padding: 20px 24px; margin-bottom: 36px; }
.notice b { font: 800 2.6rem/1 var(--head); }
.notice p { margin: 0; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.person-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 20%; background: var(--line); }
.person-initials { display: grid; place-items: center; font: 800 3.2rem/1 var(--head); color: var(--soft); background: var(--bg); }
.person-body { padding: 18px 22px 20px; }
.person h3 { margin: 0; }
.person .role { color: var(--soft); margin: 2px 0 10px; }
.person a { display: block; padding: 2px 0; word-break: break-word; }

/* Fußzeile */
.site-foot { background: var(--bg); border-top: 1px solid var(--line); padding-block: 44px 28px; font-size: .95rem; color: var(--soft); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 32px; }
.site-foot h2 { font-size: 1rem; margin-bottom: 10px; color: var(--text); }
.site-foot p { margin: 0; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { color: var(--text); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; font-size: .88rem; }
.foot-bottom span + span { display: flex; gap: 16px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { .card { transition: none; } }
[hidden] { display: none !important; }

/* Bilder-Karussell Fahrzeuge */
.carousel { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.slides { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 12/7; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--text); font: 600 1.7rem/1 var(--body); cursor: pointer; display: grid; place-items: center; padding-bottom: 4px; }
.nav-btn:hover { background: #fff; }
.nav-btn.prev { left: 12px; }
.nav-btn.next { right: 12px; }
.nav-btn:disabled { opacity: .35; cursor: default; }
.dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.6); cursor: pointer; }
.dots button[aria-current="true"] { background: #fff; width: 22px; border-radius: 5px; }
@media (max-width: 600px) { .nav-btn { width: 36px; height: 36px; font-size: 1.4rem; } }
@media (prefers-reduced-motion: reduce) { .slides { scroll-behavior: auto; } }

/* Beladung */
.loads { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.load + .load { border-top: 1px solid var(--line); }
.load summary { cursor: pointer; list-style: none; padding: 15px 20px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.load summary::-webkit-details-marker { display: none; }
.load summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--soft); }
.load[open] summary::after { content: "–"; }
.load summary:hover { background: var(--bg); }
.load ul, .load p { margin: 0; padding: 0 20px 18px 40px; }
.load p { padding-left: 20px; }
.load li { padding: 2px 0; }

/* Bildergalerie Fahrzeuge (nicht mehr verwendet) */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.gallery .gal { border-radius: 8px; }
.report > * { min-width: 0; }
.notice { display: block; }
.notice strong { display: block; font: 800 1.3rem/1.3 var(--head); }
@media (max-width: 600px) {
  .person { flex-direction: row; align-items: stretch; }
  .person-photo { width: 104px; height: 130px; flex: none; aspect-ratio: auto; align-self: flex-start; }
  .person-initials { font-size: 1.8rem; }
  .person-body { padding: 14px 16px; min-width: 0; }
  .person a { font-size: .95rem; }
}
