/* ============================================================
   HKJF – Hessische Kinder- und Jugendfeuerwehr
   Landingpage-Stylesheet · CD-konform (HKJF Design Manual 2026)
   Alle Assets selbst gehostet · keine externen Fonts/Tracker (DSGVO)
   ============================================================ */

/* --- Webfont New Order (erst aktiv, wenn lizenzierte Dateien vorliegen) ---
   Lizenzierte WOFF2/WOFF nach theme://fonts/ legen und diesen Block aktivieren.

@font-face {
  font-family: "New Order";
  src: url("../fonts/NewOrder-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "New Order";
  src: url("../fonts/NewOrder-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "New Order";
  src: url("../fonts/NewOrder-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
*/

:root {
  /* CD-Farben (HKJF Design Manual) */
  --blau:      #2b3467;
  --rot:       #dd0a35;
  --hellblau:  #bad7e9;
  --creme:     #f9f5eb;
  --blau-900:  #20284f;   /* abgedunkeltes Navy für Tiefe */
  --tinte:     #1b2138;   /* fast-schwarzer Text auf Creme */

  --font-display: "New Order", Arial, Helvetica, sans-serif;
  --font-body:    "New Order", Arial, Helvetica, sans-serif;

  /* Fluider Type-Scale */
  --fs-hero:    clamp(2.4rem, 6vw, 4.75rem);
  --fs-h2:      clamp(1.7rem, 3.4vw, 2.6rem);
  --fs-h2-text: clamp(1.4rem, 2.5vw, 1.85rem);  /* H2 in Textseiten – ruhiger als --fs-h2 */
  --fs-h3:      clamp(1.25rem, 2vw, 1.55rem);
  --fs-lead:    clamp(1.05rem, 1.6vw, 1.3rem);
  --fs-body:    1.0625rem;

  --maxw: 1140px;
  --maxw-narrow: 900px;          /* von 760 auf 900 angehoben - mehr Platz fuer Karten-Layouts */
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --radius: 14px;
  --shadow: 0 18px 50px -20px rgba(27, 33, 56, .35);
  --shadow-card: 0 10px 30px -16px rgba(27, 33, 56, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* --- Reset / Basis --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--tinte);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rot); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--maxw-narrow); }
.container--wide   { max-width: 1320px; }
.visually-hidden  { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-title { font-size: var(--fs-h2); color: var(--blau); position: relative; padding-bottom: .4em; margin-bottom: 1.2em; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 5px; background: var(--rot); border-radius: 3px; }

/* Sprungziele nicht unter den Sticky-Header scrollen; smooth bei reduced-motion aus */
:where(h1, h2, h3, [id]) { scroll-margin-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Lehrgangs-Katalog (Modul-Tabs + Karten) */
.lk-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5em 0; }
.lk-tab { background: var(--creme); border: 1px solid var(--hellblau); color: var(--blau); border-radius: 999px; padding: .45em 1em; font: inherit; font-weight: 600; cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.lk-tab:hover { border-color: var(--blau); }
.lk-tab.is-active { background: var(--blau); color: #fff; border-color: var(--blau); }
.lk-modtitle { margin-top: 1.6em; color: var(--blau); }
.lk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin: 1em 0 2.2em; }
.lk-card { background: #fff; border: 1px solid #e7e9f0; border-radius: 12px; box-shadow: var(--shadow-card); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; }
.lk-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.lk-card__title { margin: 0; font-size: 1.05rem; color: var(--blau); }
.lk-badge { flex: none; background: var(--hellblau); color: var(--blau-900); font-size: .8rem; font-weight: 600; padding: .15em .6em; border-radius: 999px; white-space: nowrap; }
.lk-card__teaser { color: #4a5168; font-size: .92rem; margin: .6em 0 .8em; }
.lk-card__toggle { align-self: flex-start; margin-top: auto; background: none; border: 0; color: var(--rot); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.lk-card__toggle:hover { text-decoration: underline; }
.lk-card__detail { margin-top: .8em; border-top: 1px solid #eee; padding-top: .8em; font-size: .92rem; }
.lk-card__detail h5 { margin: .8em 0 .3em; color: var(--blau); font-size: .9rem; }
.lk-card__detail ul { margin: 0 0 .5em; padding-left: 1.2em; }
.lk-meta { display: grid; grid-template-columns: auto 1fr; gap: .2em .8em; margin: .5em 0 0; }
.lk-meta dt { font-weight: 600; color: var(--blau); }
.lk-meta dd { margin: 0; }
/* Karte als Link zur Detailseite */
.lk-card { text-decoration: none; color: inherit; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.lk-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(43,52,103,.16); border-color: var(--hellblau); }
.lk-card__more { margin-top: auto; color: var(--rot); font-weight: 600; font-size: .92rem; transition: transform .15s var(--ease); }
.lk-card:hover .lk-card__more { transform: translateX(4px); }
.lk-badge--draft { background: #fde2e2; color: #a11226; }
.lk-back { margin-bottom: 1em; }
.lk-detail-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1.2em; }
.lk-meta--detail { margin-top: 1.5em; }
/* Karten-/Zurück-Links nicht wie Fließtext-Links behandeln (überschreibt .textpage a) */
.textpage a.lk-card,
.textpage .lk-back a { text-decoration: none; }
.textpage a.lk-card:hover { background: none; }
.lk-pdf-link { margin-top: 1.5em; }
.textpage .lk-pdf-link a { display: inline-block; background: var(--blau); color: #fff; text-decoration: none; padding: .5em 1.1em; border-radius: 8px; font-weight: 600; }
.textpage .lk-pdf-link a:hover { background: var(--blau-900); text-decoration: none; }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--creme);
  border-top: 4px solid var(--rot);           /* Feuerwehr-Signal */
  box-shadow: 0 1px 0 rgba(43, 52, 103, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 90px; gap: 1.25rem; }
.site-logo img { height: 60px; width: auto; transition: height .25s var(--ease); }
@media (max-width: 820px) { .site-logo img { height: 52px; } .header-inner { min-height: 78px; } }

/* Navigation – Desktop */
.site-nav { flex: 1 1 auto; display: flex; justify-content: flex-end; }
.site-nav > ul { list-style: none; display: flex; gap: clamp(.9rem, 1.8vw, 2rem); margin: 0; padding: 0; }
.site-nav li { position: relative; }
.site-nav a {
  color: var(--blau); font-weight: 500; text-decoration: none; padding: .35rem 0;
  position: relative; white-space: nowrap;
}
.site-nav > ul > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  background: var(--rot); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.site-nav > ul > li > a:hover::after,
.site-nav > ul > li.active > a::after { transform: scaleX(1); }
.site-nav a:hover { text-decoration: none; }
.caret { font-size: .65em; vertical-align: middle; }

/* Dropdown (Desktop) */
.subnav { list-style: none; margin: 0; padding: 0; }
@media (min-width: 821px) {
  .subnav {
    position: absolute; top: 100%; left: 0; min-width: 250px;
    background: var(--creme); box-shadow: var(--shadow-card);
    border-top: 3px solid var(--rot); border-radius: 0 0 12px 12px;
    padding: .4rem 0; opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s, transform .2s, visibility .2s; z-index: 60;
  }
  .site-nav li.has-sub:hover > .subnav,
  .site-nav li.has-sub:focus-within > .subnav { opacity: 1; visibility: visible; transform: none; }
  .subnav a {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .55rem 1.15rem; white-space: nowrap;
  }
  .subnav a:hover { background: var(--hellblau); }
  .subnav .subnav--3 {
    top: 0; left: 100%; transform: translateX(8px);
    border-top: none; border-left: 3px solid var(--rot); border-radius: 0 12px 12px 0;
  }
  .subnav li.has-sub:hover > .subnav--3,
  .subnav li.has-sub:focus-within > .subnav--3 { opacity: 1; visibility: visible; transform: none; }
  .caret--side {
    display: inline-block; color: var(--rot); font-size: 1.25em; line-height: 1;
    font-weight: 700; transition: transform .2s var(--ease);
  }
  .subnav li.has-sub:hover > a .caret--side,
  .subnav li.has-sub:focus-within > a .caret--side { transform: translateX(3px); }

  /* Letztes Top-Menüitem: Dropdown rechtsbündig, 3. Ebene öffnet nach links */
  .site-nav > ul > li:last-child > .subnav {
    left: auto; right: 0; border-radius: 12px 0 12px 12px;
  }
  .site-nav > ul > li:last-child .subnav--3 {
    left: auto; right: 100%; transform: translateX(-8px);
    border-left: none; border-right: 3px solid var(--rot);
    border-radius: 12px 0 0 12px;
  }
  .site-nav > ul > li:last-child .subnav li.has-sub:hover > .subnav--3,
  .site-nav > ul > li:last-child .subnav li.has-sub:focus-within > .subnav--3 { transform: none; }
  .site-nav > ul > li:last-child .subnav .caret--side { transform: scaleX(-1); }
}

/* Mobile-Toggle (CSS-only, kein JS) */
.nav-toggle, .nav-burger { display: none; }
.nav-burger { width: 42px; height: 34px; flex-direction: column; justify-content: center; gap: 6px; cursor: pointer; }
.nav-burger span { display: block; height: 3px; width: 100%; background: var(--blau); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }

@media (max-width: 820px) {
  .nav-burger { display: flex; }
  .site-nav {
    position: fixed; inset: 78px 0 auto 0; background: var(--creme);
    border-bottom: 4px solid var(--rot); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
  }
  .site-nav > ul { flex-direction: column; gap: 0; padding: .5rem 0; }
  .site-nav li { border-top: 1px solid rgba(43,52,103,.08); }
  .site-nav a { display: block; padding: .9rem var(--gutter); }
  .site-nav a::after { display: none; }
  .subnav a { padding-left: calc(var(--gutter) + 1.25rem); font-size: .95rem; color: #4a5168; }
  .subnav .subnav--3 a { padding-left: calc(var(--gutter) + 2.5rem); }
  .caret { display: none; }
  .nav-toggle:checked ~ .site-nav {
    max-height: calc(100vh - 78px);
    max-height: calc(100dvh - 78px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* --- Site-Suche (Footer) --- */
.site-search {
  display: flex; align-items: center; gap: .3rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: .25rem .35rem .25rem 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  width: 100%;
  max-width: 320px;
}
.site-search:focus-within {
  border-color: var(--rot);
  background: rgba(255,255,255,.12);
  box-shadow: 0 0 0 3px rgba(186,215,233,.18);
}
.site-search input {
  border: 0; outline: 0; background: transparent;
  font: inherit; color: #fff;
  flex: 1; min-width: 0;
  padding: .45rem 0;
}
.site-search input::placeholder { color: rgba(255,255,255,.72); }
.site-search button {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border: 0; cursor: pointer;
  background: var(--rot); color: #fff;
  border-radius: 999px;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.site-search button:hover { background: #fff; color: var(--rot); }
.site-search button:active { transform: scale(.95); }

/* --- Suchergebnis-Seite (/search) --- */
.content-padding.simplesearch {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
}
.simplesearch .search-header {
  font-size: var(--fs-h2);
  color: var(--blau);
  margin: 0 0 1.25rem;
  position: relative; padding-bottom: .4em;
}
.simplesearch .search-header::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 64px; height: 5px; background: var(--rot); border-radius: 3px;
}
.simplesearch .center { margin: 1.25rem 0 2rem; }
.simplesearch .search-wrapper { max-width: 520px; }
.simplesearch .search-wrapper form {
  display: flex; align-items: stretch;
  background: #fff;
  border: 1px solid rgba(43,52,103,.18);
  border-radius: 999px;
  padding: .25rem .35rem .25rem 1.1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.simplesearch .search-wrapper form:focus-within {
  border-color: var(--blau);
  box-shadow: 0 0 0 3px rgba(43,52,103,.12);
}
.simplesearch .search-input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: inherit; color: var(--blau);
  padding: .55rem 0; min-width: 0;
}
.simplesearch .search-input::placeholder { color: rgba(43,52,103,.72); }
.simplesearch .search-submit {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border: 0; cursor: pointer;
  background: var(--rot); color: #fff;
  border-radius: 999px;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.simplesearch .search-submit:hover { background: var(--blau); }

.simplesearch > p { color: #4a5168; font-size: var(--fs-body); margin-bottom: 2rem; }

.simplesearch .search-row {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(43,52,103,.1);
}
.simplesearch .search-row:last-child { border-bottom: 0; }
.simplesearch .search-row hr { display: none; }
.simplesearch .search-image {
  flex: 0 0 100px;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 4px 14px rgba(43,52,103,.12);
}
.simplesearch .search-image img { display: block; width: 100%; height: auto; }
.simplesearch .search-item { flex: 1; min-width: 0; }
.simplesearch .search-title h3 {
  margin: 0 0 .25rem; font-size: 1.25rem; line-height: 1.3;
}
.simplesearch .search-title a {
  color: var(--blau); text-decoration: none;
  transition: color .2s var(--ease);
}
.simplesearch .search-title a:hover { color: var(--rot); }
.simplesearch .search-details {
  font-size: .85rem; color: rgba(43,52,103,.6);
  margin-bottom: .5rem;
}
.simplesearch .search-item p {
  color: #3d4256; line-height: 1.55; margin: 0;
}
.simplesearch .search-item p mark,
.simplesearch .search-item p .search-highlight {
  background: rgba(221,10,53,.15); color: var(--rot);
  padding: 0 .2em; border-radius: 3px; font-weight: 600;
}

@media (max-width: 560px) {
  .simplesearch .search-row { flex-direction: column; gap: .8rem; }
  .simplesearch .search-image { flex: 0 0 auto; max-width: 140px; }
}

/* --- HERO --- */
.hero {
  position: relative;
  color: #fff;
  background: var(--blau);
  background-image:
    radial-gradient(120% 90% at 85% -10%, rgba(186,215,233,.22), transparent 55%),
    radial-gradient(90% 80% at -10% 110%, rgba(221,10,53,.20), transparent 50%);
  overflow: hidden;
}
.hero::after {                                  /* feine diagonale Akzentkante */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 14px;
  background: var(--rot);
  clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
}
/* Hero-Bild als eigene Ebene → langsamer Ken-Burns-Zoom */
.hero__media {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transform: scale(1.03);
  animation: kenburns 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to   { transform: scale(1.13) translate3d(0, -1.5%, 0); }
}
/* Verlauf + Vignette über dem Bild */
.hero--image::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(125% 125% at 50% 5%, transparent 52%, rgba(18,22,42,.5) 100%),
    linear-gradient(180deg, rgba(32,40,79,.52) 0%, rgba(32,40,79,.70) 55%, rgba(32,40,79,.92) 100%);
}
.hero::after { z-index: 2; }
.hero--image .hero-inner { z-index: 3; }
.hero--image .hero-logo { filter: drop-shadow(0 4px 14px rgba(20,25,45,.55)); }
.hero--image .hero-title,
.hero--image .hero-claim { text-shadow: 0 2px 18px rgba(20,25,45,.6); }
.hero-inner { position: relative; z-index: 1; text-align: center; padding-block: clamp(4rem, 12vw, 8.5rem); }
.hero-logo { height: clamp(84px, 16vw, 150px); width: auto; margin: 0 auto clamp(1.5rem, 4vw, 2.5rem); }
.hero-title { font-size: var(--fs-hero); margin: 0 auto .35em; max-width: 16ch; }
.hero-claim { font-size: var(--fs-lead); color: var(--hellblau); max-width: 46ch; margin-inline: auto; font-weight: 500; }

/* Eingangs-Animation (mit Reduced-Motion-Schutz) */
.hero-logo, .hero-title, .hero-claim { animation: rise .9s var(--ease) both; }
.hero-title { animation-delay: .12s; }
.hero-claim { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* --- WER WIR SIND --- */
.section--about { background: var(--creme); }
.about-content { max-width: var(--maxw-narrow); font-size: var(--fs-lead); }
.about-content :first-child { margin-top: 0; }
.about-content h2 { font-size: var(--fs-h2); color: var(--blau); }
.facts {
  list-style: none; margin: clamp(2rem, 5vw, 3.5rem) 0 0; padding: 0;
  display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.facts li {
  background: #fff; border-radius: var(--radius); padding: 1.6rem 1.4rem;
  border-left: 5px solid var(--rot); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: .25rem;
}
.fact-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--blau); line-height: 1; }
.fact-label { color: #4a5168; font-size: .95rem; }

/* --- ZWEI EINSTIEGE --- */
.section--entries { background: var(--rot); }
.section--entries .section-title { color: var(--blau); }
.entry-grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.entry-card {
  position: relative; display: flex; flex-direction: column; gap: .75rem;
  background: #fff; color: var(--tinte); text-decoration: none;
  border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-card); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.entry-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 6px; height: 100%; background: var(--rot);
  transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease);
}
.entry-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); text-decoration: none; }
.entry-card:hover::before { transform: scaleY(1); }
.entry-logo { height: 64px; width: auto; margin-bottom: .25rem; }
.entry-title { font-size: var(--fs-h3); color: var(--blau); margin: 0; }
.entry-text { margin: 0; color: #4a5168; }
.entry-cta { margin-top: auto; font-weight: 700; color: var(--rot); }

/* --- KONTAKT & SOCIAL --- */
.section--contact { background: var(--blau); color: #fff; }
.section--contact .section-title { color: #fff; }
.contact-list, .social-list { list-style: none; padding: 0; }
.contact-list { margin: 0 0 2rem; font-size: var(--fs-lead); display: grid; gap: .6rem; }
.contact-list a { color: var(--rot); }
.social-list { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.social-list a {
  display: inline-block; padding: .6rem 1.1rem; border: 1.5px solid rgba(186,215,233,.5);
  border-radius: 999px; color: #fff; font-weight: 500; transition: background .25s, border-color .25s;
}
.social-list a:hover { background: var(--rot); border-color: var(--rot); text-decoration: none; }

/* --- Textseiten (Impressum, Datenschutz, Fachgebiete, etc.) --- */
.section--text { background: var(--creme); }
.textpage { font-size: var(--fs-body); }

.textpage > h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  color: var(--blau);
  margin: 0 0 .35em;
  padding-bottom: .35em;
  border-bottom: 3px solid var(--rot);
  display: inline-block;
  letter-spacing: -.01em;
}
.textpage > h1 + p { font-size: var(--fs-lead); color: #4a5168; margin: 1.5em 0 2.4em; max-width: 56ch; }

.textpage > h2 {
  position: relative;
  font-size: var(--fs-h2-text);
  color: var(--blau);
  margin-top: 2.6em;
  padding: 1.4em 0 .35em 1.15em;
  border-top: 1px solid rgba(43,52,103,.14);
}
.textpage > h2::before {
  content: ""; position: absolute; left: 0;
  top: 1.55em;            /* an erste Textzeile angeflanscht */
  height: 1.1em;          /* feste Höhe – wächst nicht bei zweizeiligen Headings */
  width: 5px; background: var(--rot); border-radius: 3px;
}

.textpage > h3 {
  font-size: 1.05rem;
  color: var(--blau);
  font-weight: 600;
  margin: 2em 0 .6em;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.textpage > h3:first-of-type { margin-top: 1.4em; }

.textpage ul, .textpage ol { padding-left: 1.4em; }
.textpage li { margin: .25em 0; }
.textpage strong { color: var(--tinte); font-weight: 700; }

.textpage a {
  color: var(--rot);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

/* Stand-Datum am Ende der Rechtsseiten — klein, dezent, mit Trennlinie */
.textpage > .stand-datum {
  margin: 3em 0 0;
  padding-top: 1.1em;
  border-top: 1px solid rgba(43,52,103,.12);
  color: #585f7d;
  font-size: .85rem;
  font-style: italic;
  text-align: right;
  letter-spacing: .01em;
}
.textpage a:hover { background: rgba(221,10,53,.08); border-radius: 3px; }

/* External-Link-Indikator: Pfeil ↗ neben Links, die nicht auf hkjf.de zeigen */
.textpage a[href^="http://"]:not([href*="hkjf.de"]):not([href*="127.0.0.1"]):not([href*="localhost"])::after,
.textpage a[href^="https://"]:not([href*="hkjf.de"]):not([href*="127.0.0.1"]):not([href*="localhost"])::after,
.textpage a[href^="//"]:not([href*="hkjf.de"])::after {
  content: "↗";
  font-size: .8em;
  margin-left: .2em;
  display: inline-block;
  vertical-align: super;
  line-height: 1;
  color: var(--rot);
  opacity: .65;
  text-decoration: none;
}
.textpage a:hover::after { opacity: 1; }
/* aber nicht für Anker auf der eigenen Seite */
.textpage a[href^="#"]::after,
.textpage a[href^="mailto:"]::after,
.textpage a[href^="tel:"]::after { content: none; }

/* Deep-Linking: nur scroll-margin, kein sichtbares Symbol an der Heading */
.textpage h2, .textpage h3, .textpage h4 { scroll-margin-top: 90px; }

.textpage blockquote {
  margin: 2em 0;
  padding: 1.1em 1.4em;
  background: rgba(186,215,233,.4);
  border-left: 4px solid var(--blau);
  border-radius: 0 10px 10px 0;
  color: var(--tinte);
}

.textpage img { margin: 1.4em 0; border-radius: 8px; }

/* Staff-Karten (Geschäftsstelle, Leitung, Ansprechpersonen) */
.staff-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 1em 0 0; }
.staff-grid + .staff-grid { margin-top: 1.4rem; }   /* Abstand zwischen mehreren Grids */
/* Single-Card-Grid: nimmt die komplette Container-Breite ein,
   damit es visuell zur Stellvertreter-Reihe darunter passt (egal ob die
   2 oder 3 Karten pro Reihe rendert). */
.staff-grid--single { grid-template-columns: 1fr; }
.staff-card {
  background: #fff; border-left: 4px solid var(--rot); border-radius: 10px;
  padding: 1em 1.2em; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: .15em;
}
.staff-card--lead {
  border-left-width: 6px;
  padding: 1.25em 1.4em;
  background: linear-gradient(135deg, #fff 0%, var(--creme) 100%);
}
.staff-card--lead .staff-name { font-size: 1.25rem; }
.staff-card--lead .staff-role { font-size: 1rem; color: var(--blau); font-weight: 500; }

/* Optionale Bilder in Staff-Karten – rund, mit HKJF-Brand-Ring */
.staff-photo {
  width: 84px; height: 84px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 0 .7em;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, var(--hellblau) 100%);
  flex-shrink: 0;
  position: relative;
  /* Subtiler Doppel-Ring: weisser Spacer + Hellblau (Brand) + weicher Schatten */
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px var(--rot),
    0 6px 16px rgba(43,52,103,.12);
  transition: box-shadow .3s var(--ease);
}
.staff-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  margin: 0;
  border-radius: 0;
  transition: transform .4s var(--ease), opacity .35s ease;
}
.staff-photo__color {
  position: absolute; inset: 0;
  opacity: 0;
}
.staff-card:has(.staff-photo):hover .staff-photo__color { opacity: 1; }
/* Hover: Foto zoomt + Schatten staerker, Karte bleibt fest */
.staff-card:has(.staff-photo):hover .staff-photo {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px var(--rot),
    0 10px 24px rgba(43,52,103,.2);
}
.staff-card:has(.staff-photo):hover .staff-photo img {
  transform: scale(1.06);
}

.staff-card:has(.staff-photo) {
  flex-direction: row; align-items: center; gap: 1.1em;
}
.staff-card:has(.staff-photo) .staff-photo { margin: 0; }

/* Lead-Karte: groesser + dickerer roter Ring */
.staff-card--lead:has(.staff-photo) .staff-photo {
  width: 120px; height: 120px;
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 7px var(--rot),
    0 10px 30px rgba(43,52,103,.22);
}
.staff-card--lead:has(.staff-photo):hover .staff-photo {
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 7px var(--rot),
    0 14px 36px rgba(221,10,53,.3);
}

.staff-name { font-weight: 700; color: var(--blau); font-size: 1.05rem; margin-bottom: .1em; }
.staff-role { color: #4a5168; font-size: .95rem; margin-bottom: .55em; }

.staff-contact { font-size: .95rem; line-height: 1.7; }
.staff-contact a { color: var(--rot); text-decoration: underline; text-underline-offset: 3px; }

/* Icon-Links für Telefon / E-Mail (uniform in allen Kontakt-Kästchen) */
.contact-link {
  display: inline-flex; align-items: center; gap: .4em;
  text-decoration: underline; text-underline-offset: 3px;
}
.contact-icon {
  flex-shrink: 0;
  color: var(--rot);
  vertical-align: middle;
}
.legal-contact .contact-link { color: var(--rot); }
.legal-contact .contact-link:hover { color: var(--blau-900); }

/* Legal-Kontaktbox (Impressum, Datenschutz, Barrierefreiheit) */
.legal-contact {
  background: #fff;
  border-left: 4px solid var(--rot);
  border-radius: 10px;
  padding: 1.1em 1.35em;
  box-shadow: var(--shadow-card);
  margin: 1.5em 0;
  max-width: 520px;
}
.legal-contact__name { font-weight: 700; color: var(--blau); font-size: 1.1rem; line-height: 1.3; }
.legal-contact__role { color: #4a5168; font-size: .95rem; margin-top: .15em; }
.legal-contact__addr { margin: .7em 0 .4em; line-height: 1.55; color: var(--tinte); }
.legal-contact__lines { margin: .9em 0 0; line-height: 1.7; }
.legal-contact a { color: var(--rot); text-decoration: underline; text-underline-offset: 3px; }
.legal-contact a:hover { color: var(--blau-900); }

/* Legal-Rollen-Liste (Impressum: Vorstand / Geschäftsführung) */
.legal-roles { margin: 1.2em 0 1.6em; max-width: 620px; }
.legal-roles__item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.4rem;
  padding: .9em 0;
  border-bottom: 1px solid rgba(43,52,103,.1);
  align-items: start;
}
.legal-roles__item:first-child { padding-top: .2em; }
.legal-roles__item:last-child  { border-bottom: 0; padding-bottom: .2em; }
.legal-roles__label {
  font-weight: 600; color: var(--blau);
  font-size: .95rem; line-height: 1.4;
}
.legal-roles__list { list-style: none; padding: 0; margin: 0; line-height: 1.7; color: var(--tinte); }
.legal-roles__list li { position: relative; padding-left: 1.1em; }
.legal-roles__list li::before {
  content: "›"; position: absolute; left: 0; top: -.05em;
  color: var(--rot); font-weight: 700; font-size: 1.15em;
}
@media (max-width: 620px) {
  .legal-roles__item { grid-template-columns: 1fr; gap: .25rem; padding: .8em 0; }
  .legal-roles__label { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--blau-900); }
}

/* iFrame-Einbettung (Kalender o.ä.) */
.embed-frame { width: 100%; border: 0; border-radius: 10px; box-shadow: var(--shadow-card); margin: 1em 0; }

/* Klick-zum-Laden-Platzhalter für externe Embeds (Belegungskalender) */
.embed-consent { background: var(--creme); border: 1px solid var(--hellblau); border-radius: 10px; box-shadow: var(--shadow-card); padding: clamp(1.5rem, 5vw, 3rem); margin: 1em 0; text-align: center; }
.embed-consent__text { color: #4a5168; margin: 0 0 1.2em; font-size: .95rem; }
.embed-consent__btn { background: var(--blau); color: #fff; border: 0; border-radius: 8px; padding: .7em 1.4em; font: inherit; font-weight: 600; cursor: pointer; transition: background .2s var(--ease); }
.embed-consent__btn:hover, .embed-consent__btn:focus-visible { background: var(--blau-900); }

/* Video-Grid (Click-to-load YouTube) */
.video-consent-note {
  background: var(--creme); border-left: 4px solid var(--blau);
  padding: .85em 1.15em; border-radius: 8px;
  font-size: .95rem; line-height: 1.55; color: var(--tinte);
  margin: 1em 0 2em;
}
.video-consent-note em { font-style: normal; font-weight: 600; color: var(--rot); }
.video-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 1em 0 0;
}
.video-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.video-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(43,52,103,.18); }
.video-card__cover {
  position: relative; aspect-ratio: 16/9;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(186,215,233,.18), transparent 55%),
    linear-gradient(135deg, var(--blau) 0%, var(--blau-900) 100%);
  border: 0; cursor: pointer; padding: 1rem;
  color: #fff; font: inherit;
  transition: background .25s var(--ease);
}
.video-card__cover:hover,
.video-card__cover:focus-visible { background:
    radial-gradient(120% 90% at 30% 20%, rgba(186,215,233,.28), transparent 55%),
    linear-gradient(135deg, var(--blau-900) 0%, #15193a 100%); }
.video-card__play {
  display: grid; place-items: center;
  transition: transform .25s var(--ease);
  filter: drop-shadow(0 6px 18px rgba(221,10,53,.35));
}
.video-card__cover:hover .video-card__play { transform: scale(1.08); }
.video-card__hint {
  font-weight: 600; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255,255,255,.92);
}
.video-card__title {
  margin: 0; padding: 1em 1.15em 1.15em;
  font-size: 1.05rem; line-height: 1.35; color: var(--blau);
  font-family: var(--font-display); font-weight: 600;
}
.video-card iframe {
  width: 100%; aspect-ratio: 16/9; border: 0; display: block;
}
.video-card iframe { background: #000; }

/* Geschäftsstelle Hero-Card */
.gs-hero {
  background: linear-gradient(135deg, var(--blau) 0%, var(--blau-900) 100%);
  color: #fff;
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  margin: 1.8em 0 2.2em;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.gs-hero::before {
  content: ""; position: absolute; top: 0; left: 0; width: 6px; height: 100%; background: var(--rot);
}
.gs-hero__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  color: #fff; margin-bottom: .4em; letter-spacing: -.005em;
}
.gs-hero__addr {
  display: flex; align-items: center; gap: .5rem;
  color: var(--rot); margin: 0 0 1.1em; font-size: 1.02rem;
}
.gs-hero__icon { flex-shrink: 0; opacity: .85; }
.gs-hero__actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: .9em; }
.gs-action {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .65em 1.25em;
  background: rgba(255,255,255,.12); color: #fff;
  border-radius: 999px; font-weight: 500; text-decoration: none;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.gs-action:hover {
  background: var(--rot); color: #fff;
  transform: translateY(-1px); text-decoration: none;
}
.gs-hero__fax { color: rgba(255,255,255,.55); font-size: .85rem; margin: 0; }

/* === Accessibility: Skip-Link & Focus === */
.skip-link {
  position: absolute; top: -3.5rem; left: 1rem; z-index: 100;
  background: var(--blau); color: #fff; padding: .7rem 1.2rem;
  border-radius: 0 0 10px 10px; font-weight: 700; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; outline: 3px solid var(--rot); outline-offset: 2px; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; border-radius: 4px; }
.hero-cta:focus-visible { outline-color: #fff; outline-offset: 4px; }
main:focus { outline: none; }

/* === Scroll-Reveal === */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* === Hero CTA === */
.hero-cta {
  display: inline-block; margin-top: clamp(1.3rem, 3vw, 2rem);
  padding: .9em 2em;
  background: var(--rot); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  border-radius: 999px; text-decoration: none;
  box-shadow: 0 8px 28px -10px rgba(221,10,53,.65);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 36px -12px rgba(221,10,53,.75); text-decoration: none; color: #fff; }

/* === Footer (Ausbau) === */
.site-footer { background: var(--blau-900); color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 4rem); align-items: start;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand img { height: 56px; width: auto; display: block; margin-bottom: 1.25rem; }
.footer-brand .site-search { margin-top: .25rem; max-width: 260px; }
.footer-h { font-family: var(--font-display); font-size: 1rem; color: #fff; margin: 0 0 .7em; letter-spacing: .04em; text-transform: uppercase; }
.footer-col p { color: rgba(255,255,255,.78); line-height: 1.6; margin: 0 0 .6em; }
.footer-col a { color: var(--hellblau); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.site-footer .footer-nav ul, .social-icons { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-nav li { margin: .35em 0; }
.site-footer .footer-nav a { color: var(--rot); }

/* Footer-Kontakt: Icons + Adresse/Tel/Mail */
.footer-contact .footer-line { display: flex; align-items: flex-start; gap: .5em; margin: .35em 0; line-height: 1.5; }
.footer-contact .contact-icon { color: var(--hellblau); flex-shrink: 0; margin-top: .15em; }
.footer-contact .contact-link { display: inline-flex; align-items: center; gap: .5em; color: var(--hellblau); text-decoration: none; }
.footer-contact .contact-link:hover { color: #fff; text-decoration: underline; }

/* Social Icons */
.social-icons { display: flex; gap: .6rem; }
.social-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff;
  transition: background .2s, transform .2s;
}
.social-icons a:hover { background: var(--rot); transform: translateY(-2px); text-decoration: none; }
.social-icons a:focus-visible { outline-offset: 4px; }
.footer-copy { border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; color: rgba(255,255,255,.7); }
.footer-copy .container { padding-block: 1.1rem; }

/* === 404 / Error Page === */
.error-page { background: var(--creme); padding-block: clamp(4rem, 10vw, 8rem); text-align: center; }
.error-code {
  font-family: var(--font-display); font-weight: 700;
  color: var(--rot); font-size: clamp(5rem, 18vw, 12rem); line-height: .9;
  margin: 0 0 .25em; letter-spacing: -.04em;
  text-shadow: 0 8px 30px rgba(221,10,53,.18);
}
.error-title { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--blau); margin: .2em 0 .4em; }
.error-lead { font-size: var(--fs-lead); color: #4a5168; margin: 0 auto 2em; max-width: 50ch; }

/* === Print === */
@media print {
  .site-header, .site-footer, .nav-burger, .skip-link, .hero-cta, script { display: none !important; }
  body { background: #fff !important; color: #000; font-size: 11pt; }
  main { padding: 0; }
  .section { padding-block: .5em !important; }
  .hero { color: #000; background: #fff !important; padding: 0 0 1em !important; }
  .hero__media, .hero--image::before, .hero::after { display: none !important; }
  .hero-title, .hero-claim { color: #000; text-shadow: none !important; }
  .hero-logo { filter: none !important; height: 60px !important; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .textpage > h2::before { display: none; }
  .textpage > h2 { padding-left: 0; }
  .staff-card, .entry-card { box-shadow: none !important; border-left: 2px solid #000; }
  .embed-frame { display: none !important; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
