/*
Theme Name: Feuerwehr Falkenstein
Theme URI: https://ffw-falkenstein-vogtland.de/
Author: Feuerwehr Falkenstein
Description: Moderner WordPress-Auftritt mit Einsatzübersicht, Fahrzeugen und klarer mobiler Navigation für die Freiwillige Feuerwehr Falkenstein / Vogtland.
Version: 2.0.1
Text Domain: ffw-falkenstein
*/

:root {
  --ink: #0b1f34;
  --ink-soft: #183b5c;
  --red: #d41228;
  --red-dark: #9c0e1e;
  --yellow: #f2bd18;
  --paper: #f6f7f4;
  --white: #fff;
  --muted: #627386;
  --line: #dfe5ea;
  --shadow: 0 18px 50px rgba(7, 27, 47, .13);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  top: 12px; left: 12px; z-index: 1000;
  width: auto; height: auto; padding: 9px 14px; margin: 0;
  overflow: visible; clip: auto; background: var(--white); color: var(--ink);
  font-weight: 700; box-shadow: var(--shadow);
}
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header { background: var(--ink); color: var(--white); }
.top-alert {
  background: var(--red);
  color: var(--white);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.top-alert .container { display: flex; gap: 10px; align-items: center; padding: 7px 0; }
.top-alert__badge {
  display: inline-grid; place-items: center;
  width: 25px; height: 25px; border-radius: 50%;
  background: var(--white); color: var(--red); font-weight: 900;
}
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 98px; }
.brand { display: inline-flex; gap: 13px; align-items: center; color: var(--white); text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 48px; height: 56px; color: var(--white); background: var(--red);
  clip-path: polygon(50% 0, 92% 18%, 85% 78%, 50% 100%, 15% 78%, 8% 18%);
  font-size: 1.2rem; font-weight: 900;
}
.brand-copy { display: grid; line-height: 1.08; }
.brand-copy small { color: #bfd0df; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.brand-copy strong { font-size: 1.17rem; letter-spacing: .01em; }
.primary-nav ul { display: flex; gap: 3px; padding: 0; margin: 0; list-style: none; }
.primary-nav a { display: block; padding: 11px 14px; border-radius: 8px; color: #e5edf3; font-size: .92rem; font-weight: 700; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { background: rgba(255,255,255,.1); color: var(--white); }
.menu-toggle {
  display: none; border: 1px solid rgba(255,255,255,.35); border-radius: 8px;
  padding: 9px 11px; background: transparent; color: var(--white); font: inherit; font-weight: 700;
}

.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: radial-gradient(circle at 77% 40%, #284d70 0, #0e2943 29%, #07192b 70%);
}
.hero::before {
  position: absolute; inset: 0; opacity: .2;
  background-image: linear-gradient(135deg, transparent 75%, rgba(242,189,24,.8) 75%, rgba(242,189,24,.8) 79%, transparent 79%);
  background-size: 48px 48px; content: "";
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 54px; align-items: center; min-height: 540px; padding: 74px 0; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; color: var(--yellow); font-size: .8rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { width: 28px; height: 3px; background: var(--red); content: ""; }
.hero h1 { max-width: 720px; margin: 16px 0 19px; font-size: clamp(2.45rem, 5vw, 4.9rem); line-height: .98; letter-spacing: -.055em; }
.hero p { max-width: 560px; margin: 0; color: #d7e2eb; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex; justify-content: center; align-items: center; min-height: 48px;
  padding: 10px 18px; border: 2px solid transparent; border-radius: 9px;
  background: var(--red); color: var(--white); font-weight: 800; text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { background: var(--red-dark); transform: translateY(-2px); }
.button--outline { border-color: rgba(255,255,255,.45); background: transparent; }
.button--outline:hover { background: rgba(255,255,255,.1); }
.hero-visual { position: relative; }
.hero-visual::after {
  position: absolute; right: -22px; bottom: -22px; width: 168px; height: 168px;
  border: 18px solid var(--yellow); content: ""; opacity: .9;
}
.hero-image {
  position: relative; z-index: 1; min-height: 375px; border: 8px solid rgba(255,255,255,.14);
  border-radius: var(--radius); background: #617182 url("assets/images/wandbild.jpg") center / cover no-repeat;
  box-shadow: 18px 21px 0 var(--red), var(--shadow);
}
.hero-caption {
  position: absolute; z-index: 2; bottom: 20px; left: 20px; max-width: 250px;
  padding: 13px 15px; border-left: 4px solid var(--yellow); background: rgba(7,25,43,.88); font-weight: 700;
}
.quick-links { position: relative; z-index: 2; margin-top: -35px; }
.quick-links__grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border-radius: 12px; background: var(--white); box-shadow: var(--shadow); }
.quick-link { display: grid; gap: 2px; min-height: 98px; padding: 21px; border-right: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.quick-link:last-child { border-right: 0; }
.quick-link span { color: var(--red); font-size: .75rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.quick-link strong { font-size: 1.04rem; }
.quick-link:hover { background: #fff8e8; }

.section { padding: 96px 0; }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: var(--white); }
.section--tight { padding: 62px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 35px; }
.section-heading h2, .page-hero h1 { margin: 8px 0 0; font-size: clamp(2rem, 3.8vw, 3.35rem); line-height: 1.04; letter-spacing: -.045em; }
.section-heading p { max-width: 450px; margin: 0; color: var(--muted); }
.section--ink .section-heading p { color: #c1d0db; }
.text-link { color: var(--red); font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.intro-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 74px; align-items: start; }
.stat-stack { display: grid; gap: 12px; }
.stat {
  display: grid; grid-template-columns: 72px 1fr; gap: 15px; align-items: center;
  padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white);
}
.stat b { color: var(--red); font-size: 2.5rem; line-height: 1; letter-spacing: -.07em; }
.stat span { color: var(--muted); font-size: .86rem; font-weight: 700; }
.prose > *:first-child { margin-top: 0; }
.prose p { max-width: 700px; }
.prose h2, .prose h3 { line-height: 1.15; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; min-width: 0; padding: 27px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.card--dark { border-color: rgba(255,255,255,.14); background: #102d47; color: var(--white); }
.card__number { color: var(--red); font-size: .78rem; font-weight: 900; letter-spacing: .13em; }
.card h3 { margin: 14px 0 10px; font-size: 1.35rem; line-height: 1.14; }
.card p { margin: 0; color: var(--muted); }
.card--dark p { color: #c7d5df; }
.card .text-link { margin-top: 20px; }

.vehicle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vehicle-card {
  position: relative; display: flex; flex-direction: column; min-height: 225px;
  padding: 28px; overflow: hidden; border-radius: 14px; background: #102d47; color: var(--white);
}
.vehicle-card::after { position: absolute; right: -30px; bottom: -45px; width: 140px; height: 140px; border: 25px solid var(--red); transform: rotate(45deg); content: ""; opacity: .85; }
.vehicle-card__type { position: relative; z-index: 1; color: var(--yellow); font-size: .76rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.vehicle-card h3 { position: relative; z-index: 1; margin: 14px 0 8px; font-size: 1.6rem; line-height: 1.05; }
.vehicle-card p { position: relative; z-index: 1; max-width: 265px; margin: 0; color: #d7e4ed; }
.vehicle-card a { position: relative; z-index: 2; width: max-content; margin-top: auto; padding-top: 21px; color: var(--white); font-weight: 800; text-decoration: none; }
.vehicle-card a:hover { color: var(--yellow); }

.vehicle-archive-grid .vehicle-card { min-height: 0; padding: 0; }
.vehicle-archive-grid .vehicle-card__image { position: relative; z-index: 2; display: block; height: 205px; padding: 0; }
.vehicle-archive-grid .vehicle-card__image img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-archive-grid .vehicle-card__body { position: relative; z-index: 2; display: flex; min-height: 245px; flex-direction: column; padding: 24px 26px 27px; }
.vehicle-archive-grid .vehicle-card h3 { margin-top: 12px; }
.vehicle-detail-image { width: 100%; max-height: 560px; margin: 28px 0; border-radius: 14px; object-fit: cover; }

.split-feature { display: grid; grid-template-columns: .95fr 1.05fr; gap: 50px; align-items: center; }
.feature-image { overflow: hidden; min-height: 330px; border-radius: var(--radius); background: #dfe5ea url("assets/images/depotkl.jpg") center / cover no-repeat; }
.feature-copy { padding: 12px 0; }
.feature-copy h2 { margin: 8px 0 18px; font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.06; letter-spacing: -.045em; }
.check-list { display: grid; gap: 13px; padding: 0; margin: 24px 0 0; list-style: none; }
.check-list li { display: flex; gap: 11px; }
.check-list li::before { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--yellow); color: var(--ink); content: "✓"; font-size: .76rem; font-weight: 900; line-height: 20px; text-align: center; }

.news-list { display: grid; gap: 12px; }
.news-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; align-items: center; padding: 19px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.news-item__date { color: var(--yellow); font-size: .82rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.news-item h3 { margin: 0; font-size: 1.15rem; }
.news-item p { margin: 4px 0 0; color: #c3d1dc; font-size: .92rem; }
.news-item a { color: var(--white); font-weight: 800; text-decoration: none; }
.news-item a:hover { color: var(--yellow); }
.empty-state { padding: 26px; border: 1px dashed rgba(255,255,255,.32); border-radius: 12px; color: #c7d5df; }

.cta-band { background: var(--red); color: var(--white); }
.cta-band .container { display: flex; justify-content: space-between; gap: 32px; align-items: center; padding: 40px 0; }
.cta-band h2 { max-width: 720px; margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.55rem); line-height: 1.1; }
.cta-band .button { background: var(--white); color: var(--red); white-space: nowrap; }
.cta-band .button:hover { background: var(--yellow); color: var(--ink); }

.page-hero { padding: 76px 0 57px; background: var(--ink); color: var(--white); }
.page-hero p { max-width: 680px; margin: 17px 0 0; color: #c6d4df; font-size: 1.12rem; }
.content-wrap { width: min(850px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 96px; }
.entry-meta { margin-bottom: 27px; color: var(--muted); font-size: .9rem; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 55px 0 96px; }
.archive-years { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 36px; }
.archive-years a { min-width: 52px; padding: 8px 12px; border: 1px solid #3b3b3b; border-radius: 999px; background: #161616; color: #eee; font-size: .82rem; font-weight: 800; text-align: center; text-decoration: none; }
.archive-years a:hover, .archive-years a.is-active { border-color: var(--yellow); background: var(--red); color: #fff; }
.archive-pagination { padding-bottom: 70px; }
.archive-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.archive-pagination .page-numbers { padding: 8px 12px; border-radius: 6px; background: #181818; color: #fff; text-decoration: none; }
.archive-pagination .current { background: var(--red); }
.incident-card { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.incident-card__date { color: var(--red); font-size: .82rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.incident-card h2 { margin: 12px 0 7px; font-size: 1.28rem; line-height: 1.15; }
.incident-card p { margin: 0; color: var(--muted); }
.incident-card a { text-decoration: none; }
.incident-detail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 19px; margin: 28px 0; border-radius: 12px; background: #eaf0f3; }
.incident-detail b { display: block; color: var(--red); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.duty-roster { max-width: 680px; margin: 30px auto; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.duty-roster img { width: 100%; }
.duty-roster figcaption { padding-top: 12px; color: var(--muted); font-size: .86rem; text-align: center; }
.history-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 0; list-style: none; }
.history-links a { display: block; padding: 18px; border-left: 4px solid var(--red); background: #161616; color: #fff; font-weight: 800; text-decoration: none; }
.history-links a:hover { border-left-color: var(--yellow); background: var(--red-dark); }
.history-section { padding: 50px 0 12px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.history-section:first-of-type { margin-top: 38px; }
.history-section h2 { margin-bottom: 25px; color: var(--red-dark); font-size: clamp(1.65rem, 3vw, 2.25rem); }
.prose .history-section p { max-width: none; line-height: 1.75; }
.history-section strong { color: #3c1019; }
.history-section ul, .history-section ol { padding-left: 24px; }
.source-figure { margin: 28px 0; }
.source-figure img { display: block; width: 100%; max-height: 620px; border-radius: 12px; object-fit: cover; }
.source-figure figcaption { padding: 9px 2px 0; color: var(--muted); font-size: .84rem; }

.site-footer { background: #061525; color: #d4e0e8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .95fr .95fr; gap: 50px; padding: 64px 0 42px; }
.footer-brand { color: var(--white); font-size: 1.25rem; font-weight: 800; }
.site-footer h2 { margin: 0 0 12px; color: var(--white); font-size: 1rem; }
.site-footer p { margin: 0 0 9px; }
.site-footer a { color: #d4e0e8; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-links { display: grid; gap: 7px; padding: 0; margin: 0; list-style: none; }
.footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); color: #9bb0c1; font-size: .84rem; }

@media (max-width: 900px) {
  .header-main { min-height: 82px; }
  .menu-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; top: 82px; right: 20px; left: 20px; z-index: 20; padding: 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: var(--ink); box-shadow: var(--shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; }
  .hero-grid, .intro-grid, .split-feature { grid-template-columns: 1fr; }
  .hero-grid { gap: 43px; padding: 64px 0 80px; }
  .hero-visual { max-width: 590px; width: 100%; }
  .quick-links__grid { grid-template-columns: repeat(2, 1fr); }
  .quick-link:nth-child(2) { border-right: 0; }
  .quick-link:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .card-grid, .vehicle-grid, .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .history-links { grid-template-columns: 1fr; }
  .history-section { padding-top: 38px; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 28px, 1180px); }
  .brand-copy strong { font-size: 1.04rem; }
  .brand-mark { width: 43px; height: 50px; }
  .hero h1 { font-size: 2.55rem; }
  .hero-image { min-height: 270px; }
  .hero-visual::after { right: -8px; bottom: -13px; width: 100px; height: 100px; border-width: 10px; }
  .section { padding: 68px 0; }
  .section-heading, .cta-band .container { display: grid; gap: 16px; }
  .quick-links__grid, .card-grid, .vehicle-grid, .archive-grid, .footer-grid, .incident-detail { grid-template-columns: 1fr; }
  .quick-link { border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-link:last-child { border-bottom: 0; }
  .quick-link:nth-child(2) { border-bottom: 1px solid var(--line); }
  .news-item { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid > :first-child { grid-column: auto; }
}
