/* Feuerwehr St. Stefan ob Leoben – Stylesheet */
@font-face { font-family: "Cooper Hewitt"; src: url("../fonts/cooper-hewitt_normal_300.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Cooper Hewitt"; src: url("../fonts/cooper-hewitt_normal_500.woff") format("woff"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Cooper Hewitt"; src: url("../fonts/cooper-hewitt_italic_300.woff") format("woff"); font-weight: 300; font-style: italic; font-display: swap; }

:root {
  /* Farben – dunkel (Standard) */
  --hg: #000;
  --karte: #333;
  --karte-hover: #3d3d3d;
  --karte-schatten: none;
  --text: #fff;
  --text-leise: #bdbdbd;
  --karte-text: #ddd;
  --funktion: #a8a8a8;
  --link: #6db3ff;
  --rot: #e30613;
  --rot-hell: #ff3b3b;
  --kopf-hg: rgba(0,0,0,.94);
  --kopf-linie: transparent;
  --menue-hg: #111;
  --menue-rand: #262626;
  --menue-hover: #1d1d1d;
  --linie: #262626;
  --linie-stark: #444;
  --bild-hg: #222;
  --galerie-hg: #0d0d0d;
  --leer-hg: #2a2a2a;
  --sozial-hg: #1d1d1d;
  --kopieren-hg: #555;
  --schatten: 0 12px 30px rgba(0,0,0,.6);
  color-scheme: dark;

  --radius: 10px;
  --breite: 1200px;
  --kopf-hoehe: 86px;
  --schrift: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --titel-schrift: "Cooper Hewitt", Arial, sans-serif;
}
/* Farben – hell (Einstellung "hell", oder "automatisch" bei heller Geräte-Einstellung) */
:root[data-farbe="hell"] {
  --hg: #ffffff;
  --karte: #f3f3f3;
  --karte-hover: #ebebeb;
  --karte-schatten: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.06);
  --text: #141414;
  --text-leise: #5c5c5c;
  --karte-text: #3a3a3a;
  --funktion: #666;
  --link: #0b5cc4;
  --rot: #d40511;
  --rot-hell: #c00010;
  --kopf-hg: rgba(255,255,255,.96);
  --kopf-linie: #e6e6e6;
  --menue-hg: #fff;
  --menue-rand: #e3e3e3;
  --menue-hover: #f4f4f4;
  --linie: #e3e3e3;
  --linie-stark: #c8c8c8;
  --bild-hg: #e6e6e6;
  --galerie-hg: #f0f0f0;
  --leer-hg: #e2e2e2;
  --sozial-hg: #ececec;
  --kopieren-hg: #6b6b6b;
  --schatten: 0 12px 30px rgba(0,0,0,.14);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root[data-farbe="auto"] {
    --hg: #ffffff;
    --karte: #f3f3f3;
    --karte-hover: #ebebeb;
    --karte-schatten: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.06);
    --text: #141414;
    --text-leise: #5c5c5c;
    --karte-text: #3a3a3a;
    --funktion: #666;
    --link: #0b5cc4;
    --rot: #d40511;
    --rot-hell: #c00010;
    --kopf-hg: rgba(255,255,255,.96);
    --kopf-linie: #e6e6e6;
    --menue-hg: #fff;
    --menue-rand: #e3e3e3;
    --menue-hover: #f4f4f4;
    --linie: #e3e3e3;
    --linie-stark: #c8c8c8;
    --bild-hg: #e6e6e6;
    --galerie-hg: #f0f0f0;
    --leer-hg: #e2e2e2;
    --sozial-hg: #ececec;
    --kopieren-hg: #6b6b6b;
    --schatten: 0 12px 30px rgba(0,0,0,.14);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
.nur-modern { display: none; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf-hoehe) + 12px); }
body { margin: 0; background: var(--hg); color: var(--text); font-family: var(--schrift); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); }
a:hover { color: var(--rot-hell); }
h1, h2, h3 { font-family: var(--titel-schrift); font-weight: 500; line-height: 1.2; letter-spacing: .02em; }
:focus-visible { outline: 2px solid var(--rot-hell); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--text); color: var(--hg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Kopf / Navigation ---------- */
.kopf { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; height: var(--kopf-hoehe); padding: 0 30px; background: var(--kopf-hg); border-bottom: 1px solid var(--kopf-linie); }
.logo img { height: 48px; width: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav-punkt { position: relative; }
.nav-oben { background: none; border: 0; color: var(--text); font: 15px/1 var(--schrift); padding: 14px 14px; cursor: pointer; }
.nav-oben:hover, .nav-punkt:focus-within .nav-oben { color: var(--rot-hell); }
.nav-unter { list-style: none; margin: 0; padding: 8px 0; position: absolute; right: 0; top: 100%; min-width: 230px; background: var(--menue-hg); border: 1px solid var(--menue-rand); border-radius: 8px; box-shadow: var(--schatten); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease; }
.nav-punkt:hover .nav-unter, .nav-punkt:focus-within .nav-unter, .nav-punkt.offen .nav-unter { opacity: 1; visibility: visible; transform: none; }
.nav-unter a { display: block; padding: 9px 18px; text-decoration: none; font-size: 15px; line-height: 1.3; }
.nav-unter a:hover, .nav-unter a[aria-current] { background: var(--menue-hover); color: var(--rot-hell); }
.menue-knopf { display: none; flex-direction: column; gap: 6px; background: none; border: 0; padding: 10px; cursor: pointer; }
.menue-knopf span { display: block; width: 26px; height: 2px; background: var(--text); transition: .2s; }

@media (max-width: 900px) {
  :root { --kopf-hoehe: 70px; }
  .kopf { padding: 0 16px; }
  .logo img { height: 42px; }
  .menue-knopf { display: flex; }
  .nav { position: fixed; inset: var(--kopf-hoehe) 0 0 0; background: var(--hg); overflow-y: auto; padding: 8px 16px 40px; display: none; }
  .nav.offen { display: block; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav-oben { width: 100%; text-align: left; font-size: 19px; padding: 16px 4px; border-bottom: 1px solid var(--linie); display: flex; justify-content: space-between; }
  .nav-oben::after { content: "+"; color: var(--text-leise); }
  .nav-punkt.offen .nav-oben::after { content: "–"; }
  .nav-unter { position: static; opacity: 1; visibility: visible; transform: none; display: none; border: 0; box-shadow: none; background: none; padding: 4px 0 10px 12px; }
  .nav-punkt:hover .nav-unter, .nav-punkt:focus-within .nav-unter { display: none; }
  .nav-punkt.offen .nav-unter { display: block; }
  .nav-unter a { font-size: 17px; padding: 10px 6px; }
  body.menue-offen { overflow: hidden; }
  .menue-knopf[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menue-knopf[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menue-knopf[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Seiten ---------- */
.seite { max-width: var(--breite); margin: 0 auto; padding: 60px 20px 70px; }
.seite-schmal { max-width: 860px; }
.seitentitel { text-align: center; font-size: clamp(2.2rem, 6vw, 4rem); margin: 30px 0 40px; letter-spacing: .04em; }
.abschnitt { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 50px 0 22px; padding-bottom: 8px; border-bottom: 2px solid var(--rot); display: inline-block; }
.text h2 { font-size: 1.6rem; margin: 2em 0 .5em; }
.text h3 { font-size: 1.25rem; margin: 1.5em 0 .4em; }
.text a { color: var(--link); }
.knopf { display: inline-block; padding: 11px 24px; border: 1px solid var(--text); border-radius: 999px; text-decoration: none; font-size: 15px; margin: 4px; transition: .15s; }
.knopf:hover { background: var(--text); color: var(--hg); }
.mehr { text-align: center; margin: 28px 0 0; }
.seiten-intro { text-align: center; color: var(--text-leise); max-width: 60ch; margin: -20px auto 40px; }

/* ---------- Kacheln ---------- */
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 30px 26px; }
.karte { display: flex; flex-direction: column; background: var(--karte); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--karte-schatten); transition: transform .2s ease, background .2s ease; }
a.karte:hover { transform: translateY(-4px); background: var(--karte-hover); color: var(--text); }
.karte-bild { aspect-ratio: 4 / 3.2; background: var(--bild-hg); overflow: hidden; }
.karte-bild img, .karte-bild picture { width: 100%; height: 100%; object-fit: cover; }
.karte-text { padding: 14px 16px 18px; }
.karte h3 { margin: 0 0 8px; font-size: 1.08rem; text-transform: uppercase; letter-spacing: .03em; }
.karte p { margin: 0; font-size: 13px; color: var(--karte-text); letter-spacing: .04em; line-height: 1.55; }
.karte .karte-datum { color: var(--text-leise); margin-bottom: 6px; }
.karte .karte-anriss { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.karte, .karte *, .logo, .logo * { text-decoration: none !important; }
.jahre { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: -10px 0 10px; }
.jahre a { padding: 6px 16px; border: 1px solid var(--linie-stark); border-radius: 999px; text-decoration: none; font-size: 15px; }
.jahre a:hover { border-color: var(--rot-hell); }

/* ---------- Detailseite ---------- */
.eintrag { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.eintrag:has(> .eintrag-text:only-child) { grid-template-columns: minmax(0, 760px); justify-content: center; }
.eintrag-text h2 { font-size: 1.6rem; text-transform: uppercase; margin: 0 0 18px; }
.eintrag-text p { margin: 0 0 1em; }
.eintrag-text ul { padding-left: 1.2em; }
.eintrag-datum { color: var(--text-leise); }
.eintrag-text a { color: var(--link); }
@media (max-width: 860px) { .eintrag { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

.galerie { position: sticky; top: calc(var(--kopf-hoehe) + 16px); }
.galerie-buehne { position: relative; background: var(--galerie-hg); border-radius: var(--radius); overflow: hidden; }
.galerie-bild { display: none; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.galerie-bild.aktiv { display: block; }
.galerie-bild img { width: 100%; max-height: 72vh; object-fit: contain; margin: 0 auto; }
.galerie-pfeil { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.45); color: #fff; border: 0; font-size: 20px; padding: 16px 14px; cursor: pointer; transition: background .2s; }
.galerie-pfeil:hover { background: rgba(0,0,0,.85); }
.galerie-pfeil.zurueck { left: 0; border-radius: 0 6px 6px 0; }
.galerie-pfeil.weiter { right: 0; border-radius: 6px 0 0 6px; }
.galerie-zaehler { position: absolute; bottom: 10px; right: 12px; background: rgba(0,0,0,.6); color: #fff; padding: 2px 10px; border-radius: 999px; font-size: 13px; }
@media (max-width: 860px) { .galerie { position: static; } }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255,255,255,.08); border: 0; color: #fff; font-size: 26px; padding: 14px 18px; cursor: pointer; border-radius: 8px; }
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lightbox .lb-zu { top: 14px; right: 14px; }
.lightbox .lb-zurueck { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-weiter { right: 14px; top: 50%; transform: translateY(-50%); }

.blaettern { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--linie); font-size: 14px; }
.blaettern a { text-decoration: none; color: var(--text-leise); }
.blaettern a:hover { color: var(--rot-hell); }
.blaettern .zurueck { border: 1px solid var(--linie-stark); border-radius: 999px; padding: 8px 18px; color: var(--text); }
.blaettern .aelter { text-align: right; }
@media (max-width: 600px) { .blaettern { grid-template-columns: 1fr 1fr; } .blaettern .zurueck { grid-column: 1 / -1; grid-row: 1; justify-self: center; } }

/* ---------- Mannschaft ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.person { background: var(--karte); border-radius: var(--radius); overflow: hidden; text-align: center; padding-bottom: 14px; box-shadow: var(--karte-schatten); }
.person-bild, .person picture, .person img { width: 100%; aspect-ratio: 300 / 380; object-fit: cover; }
.person-leer { background: var(--leer-hg); }
.person-name { font-weight: bold; font-size: 1.1em; margin: 12px 10px 4px; line-height: 1.35; }
.person-funktion { color: var(--funktion); font-size: .95em; line-height: 1.45; }
.kachel-links { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.kachel-links a { display: block; background: var(--karte); border-radius: var(--radius); padding: 26px 22px; text-decoration: none; font-family: var(--titel-schrift); font-size: 1.3rem; border-left: 4px solid var(--rot); box-shadow: var(--karte-schatten); }
.kachel-links a:hover { background: var(--karte-hover); color: var(--text); }
.kachel-links span { display: block; font-family: var(--schrift); font-size: 13px; color: var(--text-leise); margin-top: 4px; }

/* ---------- Startseite ---------- */
.held { position: relative; min-height: calc(100vh - var(--kopf-hoehe)); min-height: calc(100svh - var(--kopf-hoehe)); background: #000 center / cover no-repeat; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.held-dunkel { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55) 70%, var(--hg)); }
.held-zitat { position: relative; color: #fff; max-width: 720px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.5rem, 3.2vw, 2.25rem); line-height: 1.45; text-align: left; margin: 0; text-shadow: 0 2px 16px rgba(0,0,0,.7); }
.video-bereich { max-width: 1000px; margin: 60px auto 0; padding: 0 20px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #111; border-radius: var(--radius); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-start { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; cursor: pointer; background: #111; color: #fff; }
.video-start img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .2s; }
.video-start:hover img { opacity: .95; }
.video-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 60px; transform: translate(-50%, -50%); background: var(--rot); border-radius: 14px; }
.video-play::after { content: ""; position: absolute; left: 34px; top: 18px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.video-hinweis { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 12px; color: #ddd; }

/* ---------- Spenden / Links / Wetter ---------- */
.konto { background: var(--karte); border-radius: var(--radius); padding: 18px 22px; line-height: 2; box-shadow: var(--karte-schatten); }
.kopieren-knopf { margin-left: 8px; background: var(--kopieren-hg); color: #fff; border: 0; border-radius: 6px; padding: 2px 10px; font-size: 13px; cursor: pointer; }
.kopieren-knopf:hover { background: var(--rot); }
.linkseite { text-align: center; }
.linkseite-logo { margin: 20px auto 0; width: 190px; }
.linkliste { list-style: none; padding: 0; max-width: 420px; margin: 0 auto; }
.linkliste a { display: block; margin: 0 0 14px; padding: 15px; border-radius: 999px; background: var(--karte); text-decoration: none; font-size: 17px; transition: .15s; box-shadow: var(--karte-schatten); }
.linkliste a:hover { background: var(--rot); color: #fff; }
.radar { position: relative; aspect-ratio: 4 / 3; min-height: 420px; }
.radar iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }

/* ---------- Fuß ---------- */
.fuss { text-align: center; padding: 40px 20px 50px; border-top: 1px solid var(--linie); font-size: 16px; }
.fuss p { margin: 10px 0; }
.fuss a { text-decoration: none; }
.fuss-links span { margin: 0 10px; }
.sozial { list-style: none; display: flex; justify-content: center; gap: 14px; padding: 0; margin: 0 0 22px; }
.sozial a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sozial-hg); }
.sozial a:hover { background: var(--rot); color: #fff; }
.abschnitt#ausgeschieden { margin-top: 90px; }

/* Einsatzart (Brand / Technisch) – in allen Designs */
.chip { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 10px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .02em; line-height: 1.4; }
.chip-icon { width: 13px; height: 13px; flex-shrink: 0; }
.chip-brand { color: #ff9f0a; background: rgba(255, 159, 10, .14); }
.chip-technisch { color: #64d2ff; background: rgba(100, 210, 255, .13); }
:root[data-farbe="hell"] .chip-brand { color: #b45309; background: rgba(245, 158, 11, .15); }
:root[data-farbe="hell"] .chip-technisch { color: #0369a1; background: rgba(14, 165, 233, .13); }
.eintrag-meta { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 10px 0 0; color: var(--text-leise); font-size: 15px; }
.eintrag-meta .chip { margin: 0; }
