/*
Theme Name: FF Harrling
Theme URI: https://www.ff-harrling.de
Author: Freiwillige Feuerwehr Harrling
Description: Eigenes Theme der Freiwilligen Feuerwehr Harrling. Rot/Grau-Identität nach Briefpapier und Vereinslogo, ausgelegt auf den SiteOrigin Page Builder.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ff-harrling
Tags: one-column, custom-menu, featured-images, translation-ready
*/

/* ---------- Tokens ---------- */
:root {
  --ffh-red: #E30613;
  --ffh-red-light: #FF6B5E;
  --ffh-grey: #58585A;
  --ffh-grey-dark: #4A4A4C;
  --ffh-grey-darker: #3F3F41;
  --ffh-ink: #2E2E30;
  --ffh-body: #4A4A4C;
  --ffh-sand: #F4F3F1;
  --ffh-line: #E2E0DD;
  --ffh-muted: #8A8884;
  --ffh-blue: #0F6FB8;
  --ffh-max: 1180px;
  --ffh-display: "Oswald", "Arial Narrow", sans-serif;
  --ffh-text: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ffh-ink);
  font-family: var(--ffh-text);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--ffh-red); text-decoration: none; }
a:hover, a:focus { color: var(--ffh-grey); }
h1, h2, h3, h4 { font-family: var(--ffh-display); font-weight: 700; text-transform: uppercase; line-height: 1.05; margin: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.ffh-skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 999;
  background: #fff; color: var(--ffh-red); padding: 10px 16px;
}

/* ---------- Layout-Helfer ---------- */
.ffh-wrap { width: 100%; max-width: var(--ffh-max); margin: 0 auto; padding: 0 28px; }
.ffh-section { padding: 82px 0; }
.ffh-section--sand { background: var(--ffh-sand); }
.ffh-section--grey { background: var(--ffh-grey); color: #fff; }
.ffh-eyebrow {
  font-family: var(--ffh-display); font-size: 13px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ffh-red);
}
.ffh-section--grey .ffh-eyebrow { color: var(--ffh-red-light); }
.ffh-h2 { font-size: clamp(30px, 3.6vw, 46px); margin: 12px 0 0; }
.ffh-lead { font-size: 17px; line-height: 1.6; color: var(--ffh-grey); max-width: 46em; margin: 16px 0 0; }
.ffh-section--grey .ffh-lead { color: #E4E2DF; }
.ffh-split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px; align-items: center;
}
.ffh-split--top { align-items: start; }
.ffh-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

/* ---------- Topbar ---------- */
.ffh-topbar {
  background: var(--ffh-grey); color: #fff;
  font-family: var(--ffh-display); font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.ffh-topbar__inner {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  align-items: center; justify-content: space-between; padding: 9px 28px;
}
.ffh-topbar a { color: #fff; }
.ffh-topbar a:hover { color: var(--ffh-red-light); }
.ffh-topbar__meta { display: flex; flex-wrap: wrap; gap: 22px; }

/* ---------- Header ---------- */
.ffh-header {
  position: sticky; top: 0; z-index: 40;
  background: #fff; border-bottom: 3px solid var(--ffh-red);
}
.ffh-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 28px;
}
.ffh-brand { display: flex; align-items: center; gap: 14px; }
.ffh-brand img { height: 62px; width: auto; display: block; }
.ffh-brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.ffh-brand__top {
  font-family: var(--ffh-display); font-weight: 700; font-size: 22px;
  text-transform: uppercase; color: var(--ffh-ink);
}
.ffh-brand__bottom {
  font-family: var(--ffh-display); font-weight: 700; font-size: 22px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ffh-red);
}
.ffh-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 24px;
  font-family: var(--ffh-display); font-size: 15px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.ffh-nav a { color: var(--ffh-grey); }
.ffh-nav a:hover, .ffh-nav .current-menu-item > a { color: var(--ffh-red); }
.ffh-nav-toggle {
  display: none; background: none; border: 2px solid var(--ffh-grey);
  color: var(--ffh-grey); font-family: var(--ffh-display); font-size: 14px;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 9px 14px; cursor: pointer;
}

/* ---------- Buttons ---------- */
.ffh-btn {
  display: inline-block; font-family: var(--ffh-display); font-size: 15px;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--ffh-red); color: #fff; padding: 15px 26px;
}
.ffh-btn:hover { background: #fff; color: var(--ffh-red); }
.ffh-btn--ghost { background: none; border: 2px solid #fff; color: #fff; padding: 13px 26px; }
.ffh-btn--ghost:hover { background: #fff; color: var(--ffh-grey); }

/* ---------- Hero ---------- */
.ffh-hero {
  position: relative; background: var(--ffh-grey);
  overflow: hidden; min-height: 560px; display: flex; align-items: center;
}
.ffh-hero__shape-a { position: absolute; inset: 0; background: var(--ffh-grey-dark); clip-path: polygon(0 0, 62% 0, 30% 100%, 0 100%); }
.ffh-hero__shape-b { position: absolute; top: 0; left: 0; width: 46%; height: 60%; background: var(--ffh-red); clip-path: polygon(0 0, 100% 0, 0 100%); }
.ffh-hero__shape-c { position: absolute; bottom: -2px; left: 0; width: 100%; height: 120px; background: #fff; clip-path: polygon(0 100%, 0 55%, 100% 0, 100% 100%); }
.ffh-hero__inner {
  position: relative; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px; align-items: center; padding: 74px 28px 118px;
}
.ffh-badge {
  display: inline-block; background: var(--ffh-red); color: #fff;
  font-family: var(--ffh-display); font-size: 14px; letter-spacing: 0.24em;
  text-transform: uppercase; padding: 8px 16px;
}
.ffh-hero__title {
  color: #fff; font-size: clamp(38px, 5.6vw, 76px);
  line-height: 0.98; margin: 20px 0 0;
}
.ffh-hero__title span { color: var(--ffh-red); -webkit-text-stroke: 1px #fff; }
.ffh-hero__text { max-width: 30em; font-size: 19px; color: #EDECEA; margin: 24px 0 0; }
.ffh-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.ffh-hero__logo { display: flex; justify-content: center; }
.ffh-hero__logo img { width: 100%; max-width: 330px; display: block; }

/* ---------- Zahlenband ---------- */
.ffh-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid var(--ffh-line);
}
.ffh-stat { padding: 26px 24px; border-right: 1px solid var(--ffh-line); }
.ffh-stat:first-child { padding-left: 0; }
.ffh-stat:last-child { padding-right: 0; border-right: 0; }
.ffh-stat__num { font-family: var(--ffh-display); font-size: 44px; color: var(--ffh-red); line-height: 1; }
.ffh-stat__label {
  font-family: var(--ffh-display); font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ffh-grey); margin-top: 6px;
}

/* ---------- Chips ---------- */
.ffh-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ffh-chip {
  font-family: var(--ffh-display); font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; background: var(--ffh-sand); color: var(--ffh-grey);
  padding: 9px 14px;
}

/* ---------- Bildgruppen ---------- */
.ffh-media-stack { display: grid; gap: 16px; }
.ffh-media-stack img { display: block; width: 100%; object-fit: cover; }
.ffh-media-stack__big { aspect-ratio: 4 / 3; }
.ffh-media-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ffh-media-pair img { aspect-ratio: 1 / 1; }
.ffh-band { margin: 0; background: var(--ffh-ink); }
.ffh-band img { display: block; width: 100%; }
.ffh-band figcaption {
  font-family: var(--ffh-display); font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #C9C7C4; padding: 16px 28px 22px;
  max-width: var(--ffh-max); margin: 0 auto;
}

/* ---------- Aufgaben ---------- */
.ffh-tasks__head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 18px;
}
.ffh-tasks__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px; margin-top: 42px; background: #6B6B6D;
}
.ffh-task { background: var(--ffh-grey-dark); padding: 30px 26px 34px; transition: background .18s ease; }
.ffh-task:hover { background: var(--ffh-red); }
.ffh-task__nr { font-family: var(--ffh-display); font-size: 13px; letter-spacing: 0.2em; color: var(--ffh-red-light); }
.ffh-task:hover .ffh-task__nr { color: #fff; }
.ffh-task h3 { font-size: 23px; font-weight: 600; letter-spacing: 0.04em; color: #fff; margin: 14px 0 10px; }
.ffh-task p { font-size: 16px; line-height: 1.6; color: #E4E2DF; }

/* ---------- Chronik ---------- */
.ffh-chronik { position: relative; overflow: hidden; }
.ffh-chronik__shape {
  position: absolute; top: 0; right: 0; width: 38%; height: 100%;
  background: var(--ffh-sand); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}
.ffh-chronik .ffh-wrap { position: relative; }
.ffh-timeline { border-left: 3px solid var(--ffh-red); padding-left: 24px; display: grid; gap: 22px; }
.ffh-timeline__year { font-family: var(--ffh-display); font-size: 20px; letter-spacing: 0.06em; color: var(--ffh-red); }
.ffh-timeline__text { font-size: 16px; line-height: 1.55; color: var(--ffh-body); }

/* ---------- Feste ---------- */
.ffh-fests { display: grid; gap: 44px; margin-top: 40px; }
.ffh-fest__head {
  display: flex; align-items: baseline; gap: 16px;
  border-bottom: 2px solid var(--ffh-red); padding-bottom: 10px; margin-bottom: 18px;
}
.ffh-fest__year { font-family: var(--ffh-display); font-size: 32px; line-height: 1; color: var(--ffh-red); }
.ffh-fest__note {
  font-family: var(--ffh-display); font-size: 14px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ffh-grey);
}
.ffh-fest__pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.ffh-fest__pair img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }

/* ---------- Technik ---------- */
.ffh-tech__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 34px; }
.ffh-tech__card { background: var(--ffh-grey-dark); padding: 30px 28px 34px; }
.ffh-tech__card h3 { font-size: 23px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.ffh-tech__card p { font-size: 16px; line-height: 1.65; color: #E4E2DF; }
.ffh-tech__figure { grid-column: 1 / -1; margin: 0; }
.ffh-tech__figure img { width: 100%; display: block; }
.ffh-tech__figure figcaption {
  font-family: var(--ffh-display); font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #C7C5C2; padding-top: 12px;
}

/* ---------- Jugend ---------- */
.ffh-youth__img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 40%; display: block; }
.ffh-note {
  margin-top: 24px; border-left: 3px solid var(--ffh-red); padding-left: 20px;
  font-size: 17px; line-height: 1.6; color: var(--ffh-body);
}

/* ---------- Karten ---------- */
.ffh-card { background: #fff; border-top: 4px solid var(--ffh-red); padding: 28px 26px 30px; }
.ffh-card--grey { border-top-color: var(--ffh-grey); }
.ffh-card h3 { font-size: 21px; font-weight: 600; color: var(--ffh-ink); margin-bottom: 16px; }
.ffh-card p { font-size: 16px; line-height: 1.6; color: var(--ffh-body); }
.ffh-list { display: grid; gap: 10px; font-size: 17px; color: var(--ffh-body); }
.ffh-agegroups {
  display: grid; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--ffh-grey);
  border-top: 1px solid var(--ffh-line); padding-top: 16px; margin-top: 16px;
}
.ffh-agegroups strong { color: var(--ffh-red); }

/* ---------- Termine ---------- */
.ffh-dates { margin-top: 28px; border-top: 1px solid var(--ffh-line); }
.ffh-date {
  display: grid; grid-template-columns: minmax(110px, 140px) minmax(0, 1fr) auto;
  gap: 20px; align-items: baseline; padding: 20px 4px;
  border-bottom: 1px solid var(--ffh-line);
}
.ffh-date:hover { background: #FAF9F8; }
.ffh-date__when { font-family: var(--ffh-display); font-size: 17px; letter-spacing: 0.06em; color: var(--ffh-red); }
.ffh-date__what { font-size: 17px; color: var(--ffh-ink); }
.ffh-date__where {
  font-family: var(--ffh-display); font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ffh-muted);
}

/* ---------- CTA-Leiste ---------- */
.ffh-cta {
  margin-top: 26px; background: var(--ffh-grey); color: #fff; padding: 28px 30px;
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
}
.ffh-cta__text { font-family: var(--ffh-display); font-size: 21px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Kontakt ---------- */
.ffh-contact { position: relative; overflow: hidden; padding-bottom: 70px; }
.ffh-contact__shape {
  position: absolute; bottom: 0; left: 0; width: 34%; height: 46%;
  background: var(--ffh-red); clip-path: polygon(0 100%, 0 20%, 100% 100%);
}
.ffh-contact .ffh-wrap { position: relative; }
.ffh-contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; }
.ffh-contact__lines { display: grid; gap: 14px; font-size: 18px; color: #EDECEA; margin-top: 24px; }
.ffh-contact__lines a { color: #fff; }
.ffh-contact__lines a:hover { color: var(--ffh-red-light); }
.ffh-emergency {
  margin-top: 34px; background: var(--ffh-red); padding: 22px 26px;
  display: flex; align-items: center; gap: 20px; max-width: 460px;
}
.ffh-emergency__num { font-family: var(--ffh-display); font-size: 44px; line-height: 1; color: #fff; }
.ffh-emergency p { font-size: 16px; line-height: 1.5; color: #fff; }
.ffh-station { background: var(--ffh-grey-dark); padding: 26px 28px; }
.ffh-station__label {
  font-family: var(--ffh-display); font-size: 13px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ffh-red-light);
}
.ffh-station__address { font-size: 18px; line-height: 1.6; color: #EDECEA; margin-top: 10px; }
.ffh-station__map { margin-top: 18px; }
.ffh-station__map iframe { width: 100%; aspect-ratio: 16 / 10; border: 0; display: block; }

/* ---------- Abschluss + Footer ---------- */
.ffh-outro { background: var(--ffh-red); }
.ffh-outro__text {
  text-align: center; padding: 34px 28px;
  font-family: var(--ffh-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: clamp(22px, 3vw, 34px); color: #fff;
}
.ffh-footer { background: var(--ffh-grey-darker); color: #C9C7C4; font-size: 14px; }
.ffh-footer__inner {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center;
  justify-content: space-between; padding: 30px 28px 40px;
}
.ffh-footer__brand { display: flex; align-items: center; gap: 16px; }
.ffh-footer__brand img { height: 52px; width: auto; display: block; }
.ffh-footer__name {
  font-family: var(--ffh-display); letter-spacing: 0.14em;
  text-transform: uppercase; color: #fff;
}
.ffh-footer__meta { line-height: 1.6; }
.ffh-footer__nav ul {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 22px;
  font-family: var(--ffh-display); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
}
.ffh-footer a { color: #C9C7C4; }
.ffh-footer a:hover { color: #fff; }

/* ---------- Rechtsseiten / Standardinhalte ---------- */
.ffh-page { padding: 62px 0 80px; }
.ffh-page__title { font-size: clamp(32px, 5vw, 52px); margin: 12px 0 8px; }
.ffh-page__sub { font-size: 17px; line-height: 1.6; color: var(--ffh-muted); margin: 0 0 40px; }
.ffh-legal { display: grid; gap: 34px; max-width: 860px; }
.ffh-legal > div { border-top: 1px solid var(--ffh-line); padding-top: 22px; }
.ffh-legal h2 { font-size: 21px; font-weight: 600; margin-bottom: 12px; }
.ffh-legal p, .ffh-legal .ffh-legal__lines { font-size: 17px; line-height: 1.7; color: var(--ffh-body); }
.ffh-todo { color: #B03A2E; }
.ffh-entry { max-width: 860px; }
.ffh-entry h2 { font-size: 28px; margin: 34px 0 12px; }
.ffh-entry h3 { font-size: 21px; margin: 26px 0 10px; }
.ffh-entry ul, .ffh-entry ol { padding-left: 1.3em; }
.ffh-pagination { display: flex; gap: 16px; padding: 24px 0; font-family: var(--ffh-display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 14px; }

/* ---------- Page Builder ---------- */
.siteorigin-panels-stretch { margin-left: 0; margin-right: 0; }
#pl-main .panel-grid { margin-bottom: 0; }
#pl-main .panel-grid-cell { padding: 0; }
#pl-main .so-panel { margin-bottom: 0 !important; }

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .ffh-nav-toggle { display: block; }
  .ffh-nav { display: none; width: 100%; }
  .ffh-nav.is-open { display: block; }
  .ffh-nav ul { flex-direction: column; gap: 14px; padding: 16px 0 4px; }
  .ffh-header__inner { flex-wrap: wrap; }
  .ffh-hero { min-height: 0; }
  .ffh-hero__logo { order: -1; }
  .ffh-hero__logo img { max-width: 210px; }
  .ffh-section { padding: 62px 0; }
  .ffh-split { gap: 36px; }
  .ffh-stat { padding: 22px 16px; }
  .ffh-stat:first-child { padding-left: 0; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .ffh-wrap, .ffh-header__inner, .ffh-topbar__inner, .ffh-hero__inner, .ffh-footer__inner { padding-left: 20px; padding-right: 20px; }
  .ffh-brand img { height: 48px; }
  .ffh-brand__top, .ffh-brand__bottom { font-size: 18px; }
  .ffh-media-pair { grid-template-columns: 1fr; }
  .ffh-date { grid-template-columns: 1fr; gap: 6px; }
  .ffh-cta { padding: 22px; }
  .ffh-emergency { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media print {
  .ffh-header, .ffh-topbar, .ffh-nav, .ffh-outro { display: none; }
  body { font-size: 12pt; }
}
