/* =========================================================================
   Freiwillige Feuerwehr Rethwischdorf — Stylesheet
   Design-Manifest: "Stattlich Modern Rescue"
   ========================================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Farben */
  --c-red:        #C1121F;
  --c-red-dark:   #9A0E18;
  --c-red-bright: #E11B22;
  --c-blue:       #14529E;
  --c-gold:       #D9A521;
  --c-ink:        #14161A;
  --c-ink-2:      #1C1F24;
  --c-ink-3:      #2A2E35;
  --c-bg:         #F6F5F1;
  --c-surface:    #FFFFFF;
  --c-text:       #191B1F;
  --c-muted:      #5B6068;
  --c-muted-2:    #888D95;
  --c-line:       #E4E1DA;
  --c-line-dark:  #31353C;

  /* Typo */
  --font-head: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Lora", Georgia, serif;

  /* Radius */
  --r-btn: 4px;
  --r-card: 8px;
  --r-input: 6px;
  --r-pill: 999px;

  /* Schatten */
  --sh-sm: 0 1px 2px rgba(20,22,26,.06);
  --sh-md: 0 6px 22px rgba(20,22,26,.08);
  --sh-lg: 0 18px 48px rgba(20,22,26,.16);
  --sh-red: 0 10px 30px rgba(193,18,31,.28);

  /* Layout */
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);

  /* Spacing-Skala (5er / Tivaos) */
  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px;
  --s-16: 64px; --s-20: 80px; --s-24: 96px; --s-28: 112px;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--c-ink);
}

::selection { background: var(--c-red); color: #fff; }

:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 2px; border-radius: 2px; }

/* ---------- Layout-Helfer ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(64px, 9vw, 112px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 72px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c-red);
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--c-red); display: inline-block;
}
.eyebrow--gold { color: var(--c-gold); }
.eyebrow--gold::before { background: var(--c-gold); }
.eyebrow--light { color: #fff; }
.on-dark .eyebrow::before { background: currentColor; }

.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 56px); }
.section-head .title { font-size: clamp(30px, 4.4vw, 46px); margin-top: 16px; }
.section-head .lead { margin-top: 18px; font-size: 19px; color: var(--c-muted); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  padding: 14px 24px; border-radius: var(--r-btn);
  border: 2px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn--primary { background: var(--c-red); color: #fff; box-shadow: var(--sh-red); }
.btn--primary:hover { background: var(--c-red-dark); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(193,18,31,.36); }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.btn--ghost:hover { border-color: var(--c-ink); transform: translateY(-2px); }
.btn--on-dark { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22); }
.btn--on-dark:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.45); transform: translateY(-2px); }
.btn--lg { padding: 17px 30px; font-size: 17px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; color: var(--c-red);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Schräge "Florian"-Kante (Signature) ---------- */
.edge-top, .edge-bottom { position: relative; }
.slant {
  position: absolute; left: 0; right: 0; height: 64px; z-index: 2; pointer-events: none;
  background: var(--c-bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
}
.slant--top { top: -1px; transform: scaleY(-1); }
.slant--bottom { bottom: -1px; }
.slant-accent {
  position: absolute; left: 0; right: 0; height: 66px; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--c-red) 0 60%, var(--c-gold) 60% 100%);
  clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
}
.slant-accent--top { top: -7px; transform: scaleY(-1); }
.slant-accent--bottom { bottom: -7px; }

/* =========================================================================
   Topbar (Alarm-Leiste)
   ========================================================================= */
.alarmbar {
  background: var(--c-ink); color: #fff;
  font-size: 14px;
}
.alarmbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; padding-block: 6px; }
.alarmbar a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.85); }
.alarmbar a:hover { color: #fff; }
.alarmbar svg { width: 15px; height: 15px; }
.alarm-112 {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: #fff !important;
  font-family: var(--font-head);
}
.alarm-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c-red-bright); position: relative; }
.alarm-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--c-red-bright); animation: ping 1.8s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
.alarmbar .socials { display: flex; gap: 14px; }

/* =========================================================================
   Header / Navigation
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,245,241,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled { border-color: var(--c-line); box-shadow: var(--sh-sm); background: rgba(246,245,241,.94); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,.12)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .b1 { font-family: var(--font-head); font-weight: 800; font-size: 17px; letter-spacing: -.01em; color: var(--c-ink); }
.brand-text .b2 { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-red); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--font-head); font-weight: 600; font-size: 15.5px;
  padding: 9px 13px; border-radius: var(--r-btn); color: var(--c-text);
  transition: background .15s, color .15s; position: relative; white-space: nowrap;
}
.nav-actions .btn { white-space: nowrap; }
.nav-links a:hover { background: rgba(20,22,26,.05); color: var(--c-ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--c-line);
  border-radius: var(--r-btn); background: var(--c-surface); align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(100deg, rgba(15,17,21,.96) 0%, rgba(15,17,21,.84) 40%, rgba(16,18,22,.60) 78%, rgba(16,18,22,.48) 100%),
    radial-gradient(120% 90% at 80% -10%, rgba(20,82,158,.28) 0%, transparent 55%),
    radial-gradient(90% 80% at 0% 110%, rgba(193,18,31,.26) 0%, transparent 55%),
    url("../img/geraetehaus.jpg") center 28% / cover no-repeat,
    #101216;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(80% 70% at 50% 30%, #000 0%, transparent 90%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center;
  padding-block: clamp(84px, 12vw, 150px) clamp(96px, 12vw, 160px); }
.hero-copy { max-width: 680px; }
.hero h1 { color: #fff; font-size: clamp(40px, 7vw, 72px); font-weight: 800; }
.hero h1 .accent { color: var(--c-red-bright); }
.hero .kicker { margin-bottom: 22px; }
.hero .kicker .eyebrow { color: #fff; }
.hero .kicker .eyebrow::before { background: var(--c-red-bright); }
.hero p.lead { margin-top: 24px; font-size: clamp(17px, 2vw, 20px); color: rgba(255,255,255,.78); max-width: 540px; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { margin-top: 40px; display: flex; gap: 28px; flex-wrap: wrap; }
.hero-meta .item { display: flex; align-items: center; gap: 11px; color: rgba(255,255,255,.8); font-size: 15px; }
.hero-meta .item svg { width: 20px; height: 20px; color: var(--c-gold); flex: none; }

.hero-shield { display: none; } /* echtes Foto trägt den Hero; Logo bleibt im Header */
.hero-shield.legacy { position: relative; display: grid; place-items: center; }
.hero-shield .ring {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.10);
}
.hero-shield .ring.r2 { width: 460px; height: 460px; border-style: dashed; border-color: rgba(217,165,33,.18); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-shield img { width: 240px; height: auto; position: relative; filter: drop-shadow(0 24px 50px rgba(0,0,0,.5)); }
.hero-est {
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-serif); font-style: italic; font-size: 17px; color: var(--c-gold); white-space: nowrap;
}

.hero-stats {
  position: relative; z-index: 3;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}
.hero-stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-stats .stat { padding: 28px var(--gutter); text-align: center; border-left: 1px solid rgba(255,255,255,.08); }
.hero-stats .stat:first-child { border-left: 0; }
.hero-stats .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(30px, 4vw, 44px); color: #fff; line-height: 1; }
.hero-stats .num .suffix { color: var(--c-gold); }
.hero-stats .label { margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.65); letter-spacing: .02em; }

/* =========================================================================
   Über uns (Split)
   ========================================================================= */
.about { display: grid; grid-template-columns: 1.18fr 1fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.about-media { position: relative; }
.about-quote {
  position: absolute; right: -22px; bottom: -30px; max-width: 340px;
  background: var(--c-ink); color: #fff; padding: 26px 30px; border-radius: var(--r-card);
  box-shadow: var(--sh-lg); border-left: 4px solid var(--c-red);
}
.about-media .about-quote p { font-family: var(--font-serif); font-style: italic; font-size: 21px; font-weight: 500; line-height: 1.55; color: #fff; margin-top: 0; }
.about-quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 14px; font-weight: 600; color: var(--c-gold); letter-spacing: .04em; }
.about h2 { font-size: clamp(28px, 4vw, 42px); margin-top: 16px; }
.about p { margin-top: 18px; color: var(--c-muted); }
.value-grid { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.value { display: flex; gap: 14px; }
.value .ico { flex: none; width: 44px; height: 44px; border-radius: var(--r-btn); background: rgba(193,18,31,.08); color: var(--c-red); display: grid; place-items: center; }
.value .ico svg { width: 22px; height: 22px; }
.value h4 { font-size: 17px; }
.value p { margin-top: 4px; font-size: 14.5px; }

/* ---------- Bild-Platzhalter ---------- */
.ph {
  position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4/3;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(135deg, var(--c-ink-2), var(--c-ink));
  display: grid; place-items: center; color: rgba(255,255,255,.5);
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 14px, transparent 14px 28px);
}
.ph-label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-family: var(--font-head); font-weight: 600; }
.ph-label svg { width: 30px; height: 30px; opacity: .65; }
.ph--blue { background: linear-gradient(135deg, #1c4f8a, #0f2c50); }
.ph--red  { background: linear-gradient(135deg, #8e1620, #5c0d13); }
.ph--tall { aspect-ratio: 3/4; }
.ph--wide { aspect-ratio: 16/9; }
.ph--square { aspect-ratio: 1/1; }

/* Echte Fotos */
.media-photo { position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4/3; }
.media-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-media .media-photo { box-shadow: var(--sh-md); aspect-ratio: 16 / 10; }
.about-media .media-photo img { object-position: center 40%; }
.vehicle-media .media-photo { border: 1px solid var(--c-line-dark); }

/* Mehrere Fahrzeuge: jeder Block eine eigene Reihe, der zweite gespiegelt */
.vehicle-row + .vehicle-row { margin-top: clamp(48px, 6vw, 76px); padding-top: clamp(40px, 5vw, 60px); border-top: 1px solid var(--c-line-dark); }
.vehicle-row--alt .vehicle-copy { order: 2; }
.vehicle-row--alt .vehicle-media { order: 1; }
.vehicle-name { color: #fff; font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 4px; }
.vehicle .section-head .title { color: #fff; }
@media (max-width: 1020px) {
  .vehicle-row--alt .vehicle-copy, .vehicle-row--alt .vehicle-media { order: 0; }
}

/* =========================================================================
   Einsätze / News
   ========================================================================= */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-card);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: #d8d3c8; }
.news-card .media { position: relative; aspect-ratio: 16/10; }
.news-card .tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--r-pill); color: #fff; background: var(--c-red);
}
.tag--thl { background: var(--c-blue); }
.tag--brand { background: var(--c-red); }
.tag--uebung { background: var(--c-gold); color: var(--c-ink); }
.tag--info { background: var(--c-ink); }
.news-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.news-card .date { font-size: 13.5px; color: var(--c-muted-2); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.news-card .date svg { width: 15px; height: 15px; }
.news-card h3 { font-size: 21px; margin-top: 10px; }
.news-card p { margin-top: 10px; font-size: 15px; color: var(--c-muted); flex: 1; }
.news-card .more { margin-top: 18px; }

/* =========================================================================
   Fahrzeug / Technik (Showcase)
   ========================================================================= */
.vehicle { background: var(--c-ink); color: #fff; }
.vehicle .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 64px); align-items: center; }
.vehicle h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); margin-top: 16px; }
.vehicle p.lead { margin-top: 18px; color: rgba(255,255,255,.74); }
.spec-grid { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--c-line-dark); border: 1px solid var(--c-line-dark); border-radius: var(--r-card); overflow: hidden; }
.spec { background: var(--c-ink-2); padding: 20px 22px; }
.spec .k { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-gold); font-family: var(--font-head); font-weight: 700; }
.spec .v { margin-top: 6px; font-family: var(--font-head); font-weight: 700; font-size: 22px; color: #fff; }
.spec .v small { font-size: 14px; color: rgba(255,255,255,.6); font-weight: 600; }
.vehicle-media .ph { aspect-ratio: 4/3; border: 1px solid var(--c-line-dark); }
.vehicle-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); font-size: 14px; font-weight: 600; color: var(--c-gold);
  font-family: var(--font-head);
}

/* =========================================================================
   Mitglied werden (CTA + Formular)
   ========================================================================= */
.join { position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(110% 120% at 100% 0%, rgba(193,18,31,.40), transparent 55%), linear-gradient(160deg, #1a1d23, #0f1115); }
.join .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 72px); align-items: start; }
.join h2 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); margin-top: 16px; }
.join p.lead { margin-top: 18px; color: rgba(255,255,255,.78); font-size: 19px; }
.join-points { margin-top: 28px; display: grid; gap: 14px; }
.join-points li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.86); }
.join-points .chk { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(193,18,31,.18); color: var(--c-red-bright); display: grid; place-items: center; }
.join-points .chk svg { width: 16px; height: 16px; }
.join-youth { margin-top: 30px; padding: 18px 20px; border-radius: var(--r-card); background: rgba(217,165,33,.10); border: 1px solid rgba(217,165,33,.28); display: flex; gap: 14px; align-items: center; }
.join-youth + .join-youth { margin-top: 14px; }
.join-youth svg { width: 30px; height: 30px; color: var(--c-gold); flex: none; }
.join-youth p { font-size: 14.5px; color: rgba(255,255,255,.82); }
.join-youth strong { color: #fff; }

.form-card { background: var(--c-surface); color: var(--c-text); border-radius: var(--r-card); padding: clamp(24px, 3vw, 34px); box-shadow: var(--sh-lg); }
.form-card h3 { font-size: 24px; }
.form-card .sub { margin-top: 6px; color: var(--c-muted); font-size: 15px; }
.form-grid { margin-top: 22px; display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 14px; font-weight: 600; font-family: var(--font-head); color: var(--c-ink); }
.field label .req { color: var(--c-red); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--c-line);
  border-radius: var(--r-input); background: #fff; color: var(--c-text); transition: border-color .15s, box-shadow .15s; width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-red); box-shadow: 0 0 0 4px rgba(193,18,31,.10); }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--c-muted); }
.form-consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--c-red); flex: none; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--c-muted-2); }
/* Honeypot – für Menschen unsichtbar, Bots füllen es aus */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  display: none; margin-top: 14px; padding: 13px 16px; border-radius: var(--r-input);
  background: rgba(193,18,31,.08); border: 1px solid rgba(193,18,31,.35);
  color: var(--c-red-dark); font-size: 14.5px; font-weight: 600;
}
.form-error.show { display: block; }

.form-success { display: none; padding: 16px 18px; border-radius: var(--r-input); background: rgba(46,125,50,.10); border: 1px solid rgba(46,125,50,.35); color: #1f5e23; font-size: 15px; gap: 10px; align-items: center; }
.form-success.show { display: flex; }
.form-success svg { width: 22px; height: 22px; flex: none; }

/* =========================================================================
   Galerie
   ========================================================================= */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery-item { position: relative; border-radius: var(--r-card); overflow: hidden; cursor: pointer; aspect-ratio: 3/2; background: var(--c-ink-2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .ov { position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(15,17,21,.7)); opacity: 0; transition: opacity .2s; display: flex; align-items: flex-end; padding: 16px; z-index: 3; }
.gallery-item:hover .ov { opacity: 1; }
.gallery-item .ov span { color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 14px; }
.gallery-item .ov svg { width: 18px; height: 18px; color: #fff; margin-left: auto; }

/* =========================================================================
   Termine (Timeline)
   ========================================================================= */
.events { display: grid; gap: 0; }
.event {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 28px; align-items: center;
  padding: 24px 0; border-top: 1px solid var(--c-line);
}
.event:last-child { border-bottom: 1px solid var(--c-line); }
.event .date-box { text-align: center; border-right: 2px solid var(--c-red); padding-right: 24px; }
.event .date-box .d { font-family: var(--font-head); font-weight: 800; font-size: 34px; color: var(--c-ink); line-height: 1; }
.event .date-box .m { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-red); margin-top: 4px; }
.event .info h3 { font-size: 21px; }
.event .info p { margin-top: 6px; color: var(--c-muted); font-size: 15px; display: flex; gap: 16px; flex-wrap: wrap; }
.event .info p span { display: inline-flex; align-items: center; gap: 6px; }
.event .info p svg { width: 15px; height: 15px; color: var(--c-muted-2); }
.event .ev-tag { font-family: var(--font-head); font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 6px 13px; border-radius: var(--r-pill); background: rgba(20,82,158,.10); color: var(--c-blue); }
.event .ev-tag.fest { background: rgba(217,165,33,.16); color: #9a7415; }
.event .ev-tag.dienst { background: rgba(193,18,31,.10); color: var(--c-red); }

/* =========================================================================
   Kontakt
   ========================================================================= */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 64px); align-items: stretch; }
.contact-list { display: grid; gap: 18px; margin-top: 28px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .ico { flex: none; width: 50px; height: 50px; border-radius: var(--r-btn); background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-red); display: grid; place-items: center; box-shadow: var(--sh-sm); }
.contact-item .ico svg { width: 22px; height: 22px; }
.contact-item .k { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted-2); font-family: var(--font-head); font-weight: 700; }
.contact-item .v { font-size: 18px; font-weight: 600; color: var(--c-ink); margin-top: 2px; }
.contact-item .v a:hover { color: var(--c-red); }
.map-card { position: relative; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--c-line); min-height: 380px; background: var(--c-surface); }
.map-card iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }
.map-card .map-link {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--c-ink);
  background: rgba(255,255,255,.94); padding: 9px 14px; border-radius: var(--r-btn);
  box-shadow: var(--sh-md); border: 1px solid var(--c-line); transition: all .18s;
}
.map-card .map-link:hover { color: var(--c-red); transform: translateY(-2px); }
.map-card .map-link svg { width: 16px; height: 16px; color: var(--c-red); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--c-ink); color: rgba(255,255,255,.7); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand-text .b1 { color: #fff; }
.footer-brand p { margin-top: 18px; font-size: 15px; max-width: 320px; line-height: 1.6; }
.footer-social { margin-top: 20px; display: flex; gap: 12px; }
.footer-social a { width: 42px; height: 42px; border-radius: var(--r-btn); border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; color: #fff; transition: all .18s; }
.footer-social a:hover { background: var(--c-red); border-color: var(--c-red); transform: translateY(-2px); }
.footer-social svg { width: 19px; height: 19px; }
.footer-col h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; font-family: var(--font-head); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 15px; color: rgba(255,255,255,.68); }
.footer-col a:hover { color: #fff; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.10); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 13.5px; }
.footer-bar .links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bar a:hover { color: #fff; }

/* =========================================================================
   Lightbox
   ========================================================================= */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,9,11,.92); display: none; place-items: center; padding: 24px; }
.lightbox.open { display: grid; }
.lightbox .frame { max-width: 940px; width: 100%; }
.lightbox .frame .lb-img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; border-radius: var(--r-card); display: block; }
.lightbox .cap { color: #fff; text-align: center; margin-top: 16px; font-family: var(--font-head); }
.lightbox .close { position: absolute; top: 22px; right: 22px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; display: grid; place-items: center; }
.lightbox .close svg { width: 24px; height: 24px; }

/* =========================================================================
   Rechtsseiten (Impressum / Datenschutz)
   ========================================================================= */
.legal-hero { background: var(--c-ink); color: #fff; padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.legal-hero .back { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.72); font-family: var(--font-head); font-weight: 600; font-size: 15px; margin-bottom: 22px; transition: color .15s; }
.legal-hero .back:hover { color: #fff; }
.legal-hero .back svg { width: 18px; height: 18px; flex: none; }
.legal-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 52px); }
.legal-hero p { margin-top: 14px; color: rgba(255,255,255,.7); max-width: 560px; }
.legal { max-width: 760px; padding-block: clamp(48px, 6vw, 80px); }
.legal h2 { font-size: clamp(22px, 3vw, 28px); margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--c-line); }
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal h3 { font-size: 19px; margin-top: 26px; }
.legal p, .legal li { color: var(--c-muted); margin-top: 12px; }
.legal ul { margin-top: 12px; padding-left: 22px; list-style: disc; }
.legal ul li { margin-top: 6px; }
.legal a { color: var(--c-red); text-decoration: underline; }
.legal strong { color: var(--c-ink); }
.legal .back { margin-top: 48px; }
.todo { background: rgba(217,165,33,.12); border: 1px solid rgba(217,165,33,.4); border-radius: var(--r-input); padding: 14px 16px; font-size: 14.5px; color: #8a6d12; margin-top: 16px; }

/* =========================================================================
   Reveal-Animation
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* =========================================================================
   Rechtstext-Seiten (Impressum / Datenschutz)
   ========================================================================= */
.legal-hero { background: var(--c-ink); color: #fff; padding-block: clamp(48px, 7vw, 80px); }
.legal-hero h1 { color: #fff; font-size: clamp(30px, 5vw, 48px); }
.legal-hero p { margin-top: 14px; color: rgba(255,255,255,.7); }
.legal-hero .back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--c-gold); font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.legal-hero .back svg { width: 18px; height: 18px; }
.legal { max-width: 820px; }
.legal h2 { font-size: 24px; margin-top: 44px; margin-bottom: 14px; }
.legal h3 { font-size: 18px; margin-top: 26px; margin-bottom: 8px; }
.legal p, .legal li { color: var(--c-muted); margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal a { color: var(--c-red); text-decoration: underline; }
.legal .todo { background: rgba(217,165,33,.12); border: 1px solid rgba(217,165,33,.4); border-radius: var(--r-input); padding: 4px 8px; color: #8a6a12; font-weight: 600; font-size: .92em; }
.legal strong { color: var(--c-ink); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1020px) {
  /* Navigation -> Hamburger (PC-Navi würde hier zu eng) */
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }

  /* Vollbild-Menü beim Öffnen */
  /* Vollhöhe explizit (Header hat backdrop-filter -> ist Bezugsrahmen für fixed) */
  .nav-links.open {
    display: flex; position: fixed; top: 0; left: 0; width: 100%;
    height: 100vh; height: 100dvh; z-index: 60;
    flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 6px;
    background: var(--c-bg); padding: 88px 24px 40px; overflow-y: auto;
  }
  .nav-links.open a {
    font-size: 21px; padding: 15px 18px; border-radius: var(--r-card);
    border-bottom: 1px solid var(--c-line); white-space: normal;
  }
  .nav-links.open a:last-of-type { border-bottom: 0; }
  .nav-mobile-close { display: inline-flex !important; position: fixed; top: 18px; right: 20px; z-index: 61; }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; padding-block: 64px 90px; }
  .hero .kicker .eyebrow { justify-content: center; }
  .hero-cta, .hero-meta { justify-content: center; }
  .hero-shield { order: -1; }
  .hero-shield .ring { width: 280px; height: 280px; } .hero-shield .ring.r2 { width: 350px; height: 350px; }
  .hero-shield img { width: 190px; }
  .about, .vehicle .grid, .join .grid, .contact { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; }
  .about-quote { right: 8px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .alarmbar .socials { display: none; }
  .nav-actions .btn--primary { display: none; } /* CTA steckt im Hamburger-Menü */
  .hero-stats .grid { grid-template-columns: 1fr 1fr; }
  .hero-stats .stat:nth-child(odd) { border-left: 0; }
  .hero-stats .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
  .news-grid { grid-template-columns: 1fr; }
  .value-grid, .spec-grid, .field.row2 { grid-template-columns: 1fr; }
  .event { grid-template-columns: 84px 1fr; gap: 18px; }
  .event .ev-tag { grid-column: 2; justify-self: start; }
  .event .date-box .d { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
  .section-head .lead { font-size: 17px; }
}
@media (max-width: 460px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 14px; }
  .brand-text .b2 { font-size: 11px; }
}
