/* ============================================================
   Feuerwehr Cronenberg – Stylesheet v3
   Fonts: Oswald · Inter   Themes: dark (default) · light
   ============================================================ */

/* ── Self-hosted fonts (DSGVO-konform) ───────────────────────*/
/* Inter – latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter – latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Oswald – latin-ext */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/oswald-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Oswald – latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/oswald-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── CSS Houdini property for animated borders ───────────────*/
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ── Global keyframes ─────────────────────────────────────────*/
@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes stat-line-in {
  to { transform: scaleX(1); }
}
@keyframes btn-glow-pulse {
  0%, 100% { opacity: 0;   transform: scale(1); }
  50%       { opacity: .28; transform: scale(1.07); }
}
@keyframes card-glow-shift {
  0%, 100% {
    box-shadow: 0 0 0 1.5px var(--accent),
                0 12px 40px rgba(229,48,48,.22),
                inset 0 1px 0 rgba(255,255,255,.07);
  }
  50% {
    box-shadow: 0 0 0 1.5px var(--gold),
                0 12px 40px rgba(240,165,0,.18),
                inset 0 1px 0 rgba(255,255,255,.07);
  }
}
@keyframes card-slide-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ── Tokens ──────────────────────────────────────────────────*/
:root {
  --bg:            #080c18;
  --bg-surface:    #0e1325;
  --bg-card:       #121727;
  --bg-elevated:   #1a2035;
  --bg-hover:      #1e2640;

  --accent:        #e53030;
  --accent-hover:  #f54040;
  --accent-subtle: rgba(229,48,48,.13);
  --accent-glow:   rgba(229,48,48,.28);

  --gold:          #f0a500;
  --gold-hover:    #f5ba00;
  --gold-subtle:   rgba(240,165,0,.12);

  --text:          #dde4f5;
  --text-sub:      #8fa0b8;
  --text-muted:    #7e93ad;

  --border:        rgba(255,255,255,.07);
  --border-md:     rgba(255,255,255,.13);
  --border-strong: rgba(255,255,255,.22);

  --shadow-sm:     0 2px 10px rgba(0,0,0,.4);
  --shadow:        0 8px 30px  rgba(0,0,0,.55);
  --shadow-lg:     0 20px 60px rgba(0,0,0,.7);
  --shadow-xl:     0 32px 80px rgba(0,0,0,.8);

  --header-bg:     rgba(8,12,24,.95);
  --input-bg:      rgba(255,255,255,.05);
  --sidebar-bg:    #050710;

  --success-bg:    rgba(22,101,52,.16);
  --success-text:  #4ade80;
  --danger-bg:     rgba(153,27,27,.16);
  --danger-text:   #f87171;

  --r:    10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --pill: 100px;

  --max-w:     2400px;
  --max-w-hdr: 2460px;
}

[data-theme="light"] {
  --bg:            #eef1f9;
  --bg-surface:    #ffffff;
  --bg-card:       #f8faff;
  --bg-elevated:   #e4eaf6;
  --bg-hover:      #d8e0f0;
  --accent:        #c01a1a;
  --accent-hover:  #a81515;
  --accent-subtle: rgba(192,26,26,.09);
  --accent-glow:   rgba(192,26,26,.2);
  --gold:          #9a4a00;
  --gold-hover:    #7e3a00;
  --gold-subtle:   rgba(154,74,0,.1);
  --text:          #0f172a;
  --text-sub:      #334155;
  --text-muted:    #64748b;
  --border:        #cdd5e8;
  --border-md:     #b0bbda;
  --border-strong: #8898c4;
  --shadow-sm:     0 2px 8px  rgba(0,0,0,.08);
  --shadow:        0 8px 28px rgba(0,0,0,.11);
  --shadow-lg:     0 20px 56px rgba(0,0,0,.14);
  --shadow-xl:     0 32px 80px rgba(0,0,0,.18);
  --header-bg:     rgba(238,241,249,.97);
  --input-bg:      #f4f7ff;
  --sidebar-bg:    #0d1020;
  --success-bg:    #f0fdf4;
  --success-text:  #166534;
  --danger-bg:     #fef2f2;
  --danger-text:   #b91c1c;
}

/* ── Reset ───────────────────────────────────────────────────*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  transition: background-color .25s, color .25s;
}

img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--gold); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold-hover); }
ul, ol { list-style: none; }

/* ── Typography ──────────────────────────────────────────────*/
h1, h2, h3, h4, h5 {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem);   color: var(--text); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem);   color: var(--text); }
h3 { font-size: clamp(1rem,   2vw, 1.4rem);   color: var(--text); }

p { margin-bottom: 1em; color: var(--text); }

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, var(--accent) 0%, #f5c000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 1.3em;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-header .section-title { margin-bottom: 0; }
.section-link {
  font-family: 'Oswald', sans-serif;
  font-size: .85rem;
  letter-spacing: .06em;
  color: var(--text-muted);
  transition: color .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.section-link:hover { color: var(--gold); }

/* ── Buttons ─────────────────────────────────────────────────*/
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .65em 1.7em;
  font-family: 'Oswald', sans-serif;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .05em;
  border-radius: var(--pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s, color .15s;
  white-space: nowrap;
  position: relative;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 16px var(--accent-subtle); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow); }
.btn-primary::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 2px solid var(--accent);
  opacity: 0;
  pointer-events: none;
  animation: btn-glow-pulse 2.8s ease-in-out infinite;
}
.btn-secondary { background: transparent; color: var(--text); border: 1.5px solid var(--border-md); }
.btn-secondary:hover { background: var(--bg-elevated); color: var(--text); border-color: var(--border-strong); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-danger { background: #7f1d1d; color: #fff; }
.btn-danger:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.btn-sm { padding: .35em 1em; font-size: .82rem; }

/* ── Layout ──────────────────────────────────────────────────*/
#wrapper { display: flex; flex-direction: column; min-height: 100vh; }
#wrapper::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 100%);
  z-index: 9999;
  pointer-events: none;
}
main#content { flex: 1; }
.container { width: 96%; max-width: var(--max-w); margin: 0 auto; }

/* ── Header ──────────────────────────────────────────────────*/
.site-header {
  position: sticky;
  top: 3px;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s, border-color .3s;
}
.site-header.scrolled {
  box-shadow: var(--shadow), 0 1px 0 rgba(229,48,48,.12), inset 0 -1px 0 rgba(240,165,0,.06);
  border-bottom-color: rgba(229,48,48,.2);
}

.header-top {
  width: 96%; max-width: var(--max-w-hdr);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 107px;
}

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; flex-shrink: 0; }
.brand-logo { height: 100px; width: auto; }
.brand-name {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.65rem, 2.9vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: .04em;
  line-height: 1.15;
  white-space: nowrap;
}
.brand-name span {
  display: block;
  font-size: .6em;
  font-weight: 400;
  color: var(--text-sub);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: 44px;
  border-top: 1px solid var(--border);
}
.nav-list { display: flex; align-items: stretch; gap: 0; }
.nav-list > li { position: relative; display: flex; align-items: stretch; }

.nav-list a {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--text-sub);
  padding: 0 1.1em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .3em;
  transition: color .2s;
  position: relative;
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 1.1em; right: 1.1em;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
  border-radius: 1px;
}
.nav-list > li > a:hover { color: var(--accent); }
.nav-list > li > a:hover::after { transform: scaleX(1); }

.nav-link-active { color: var(--accent) !important; }
.nav-link-active::after { transform: scaleX(1) !important; }

.nav-arrow { font-size: .65em; color: var(--text-muted); transition: transform .2s; }
.has-dropdown:hover .nav-arrow { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 215px;
  padding-top: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-md);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.has-dropdown:hover .nav-dropdown { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-dropdown li a { padding: .6em 1.2em; border-radius: 0; font-size: .88rem; color: var(--text-sub); }
.nav-dropdown li a::after { display: none; }
.nav-dropdown li a:hover { color: var(--accent); background: var(--bg-elevated); }
.nav-dropdown li + li { border-top: 1px solid var(--border); }

.header-controls { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.theme-toggle-wrapper { position: relative; }

.theme-toggle {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 52px; height: 52px;
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--text-sub);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, color .2s;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 52px; height: 52px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 13px;
}
.hamburger span { display: block; height: 2px; background: var(--text-sub); border-radius: 2px; transition: transform .3s, opacity .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────────*/
.hero {
  position: relative;
  width: 100%;
  height: clamp(540px, 88vh, 820px);
  overflow: hidden;
  background: #080c18;
}
#slider-cube { position: relative; width: 100%; height: 100%; }

.hero-ambient {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 55% at 12% 82%, rgba(229,48,48,.22) 0%, transparent 68%),
    radial-gradient(ellipse 38% 32% at 88% 18%, rgba(240,165,0,.10) 0%, transparent 62%);
}

.slide { position: absolute; inset: 0; opacity: 0; z-index: 0; }
.slide.active { opacity: 1; z-index: 1; }

.slide-bg-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px);
  transform: scale(1.12);
  z-index: 0;
  pointer-events: none;
}

.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 1;
}

.slide-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(
    115deg,
    rgba(8,12,24,.95) 0%,
    rgba(8,12,24,.78) 38%,
    rgba(8,12,24,.25) 72%,
    rgba(8,12,24,.08) 100%
  );
}

.slide-content {
  position: absolute;
  top: 50%;
  left: clamp(2rem, 10vw, 7rem);
  transform: translateY(-50%);
  z-index: 3;
  max-width: 600px;
}

.slide-eyebrow {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}

.slide-content h1 {
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  color: #fff;
  line-height: 1.06;
  margin-bottom: 1rem;
  text-shadow: 0 3px 20px rgba(0,0,0,.4);
}

.slide-content p {
  color: rgba(255,255,255,.78);
  font-size: clamp(.92rem, 1.8vw, 1.12rem);
  margin-bottom: 2rem;
  line-height: 1.65;
  max-width: 480px;
}

.slide-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

@keyframes slideOutLeft  { to   { transform: translateX(-100%); opacity: 0; } }
@keyframes slideOutRight { to   { transform: translateX(100%);  opacity: 0; } }
@keyframes slideInRight  { from { transform: translateX(60px);  opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slideInLeft   { from { transform: translateX(-60px); opacity: 0; } to { transform: none; opacity: 1; } }

.slide.slide-out-left  { animation: slideOutLeft  .5s ease forwards; z-index: 2; }
.slide.slide-out-right { animation: slideOutRight .5s ease forwards; z-index: 2; }
.slide.slide-in-right  { animation: slideInRight  .5s ease forwards; z-index: 1; }
.slide.slide-in-left   { animation: slideInLeft   .5s ease forwards; z-index: 1; }

.slider-nav-bar {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(8,12,24,.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  padding: .3rem .4rem;
}

.slider-prev, .slider-next {
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.88);
  font-size: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
  padding: 0;
  flex-shrink: 0;
}
.slider-prev:hover, .slider-next:hover {
  background: rgba(240,165,0,.18);
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.07);
}
.slider-prev:active, .slider-next:active { transform: scale(.91); }
.slider-prev::before, .slider-next::before {
  content: '';
  display: block;
  width: 11px; height: 11px;
  border-right: 2.5px solid currentColor;
  border-top: 2.5px solid currentColor;
  border-radius: 1px;
}
.slider-prev::before { transform: rotate(-135deg) translate(1px,-1px); }
.slider-next::before { transform: rotate(45deg) translate(-1px,1px); }

.slider-nav {
  display: flex;
  gap: .5rem;
}
.slider-nav-item a {
  display: block;
  width: 28px; height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.28);
  text-indent: -9999px;
  transition: background .25s, width .3s ease;
}
.slider-nav-item a.active, .slider-nav-item a:hover { background: var(--gold); width: 44px; }

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem; right: 2rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.4);
  font-size: .78rem;
  font-family: 'Oswald', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: bounce 2.2s ease-in-out infinite;
}
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ── Stats bar ───────────────────────────────────────────────*/
.stats-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.stats-inner {
  width: 96%; max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}
.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 2.6rem;
  gap: .3rem;
  position: relative;
}
.stat-item::after {
  content: '';
  position: absolute;
  bottom: .9rem; left: 18%; right: 18%;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .85s cubic-bezier(.4,0,.2,1) .15s;
}
.stats-bar.visible .stat-item::after { transform: scaleX(1); }
.stat-number {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -.01em;
}
.stat-label {
  font-size: .78rem;
  color: var(--text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: 'Oswald', sans-serif;
  text-align: center;
}
.stat-divider {
  width: 1px;
  background: var(--border);
  margin: 1.2rem 0;
  align-self: stretch;
  flex-shrink: 0;
}

/* ── Section gradient dividers ───────────────────────────────*/
.news-section,
.dept-section,
.about-section,
.contact-section { position: relative; }

.news-section::after,
.dept-section::after,
.about-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 25%, var(--gold) 75%, transparent 100%);
  opacity: .55;
  pointer-events: none;
}

/* ── Staggered card entrance animations ──────────────────────*/
.news-grid .news-card.scroll-fade:nth-child(2) { transition-delay: .08s; }
.news-grid .news-card.scroll-fade:nth-child(3) { transition-delay: .16s; }
.news-grid .news-card.scroll-fade:nth-child(4) { transition-delay: .24s; }
.news-grid .news-card.scroll-fade:nth-child(5) { transition-delay: .32s; }

.dept-grid .dept-card.scroll-fade:nth-child(2) { transition-delay: .06s; }
.dept-grid .dept-card.scroll-fade:nth-child(3) { transition-delay: .12s; }
.dept-grid .dept-card.scroll-fade:nth-child(4) { transition-delay: .18s; }
.dept-grid .dept-card.scroll-fade:nth-child(5) { transition-delay: .24s; }
.dept-grid .dept-card.scroll-fade:nth-child(6) { transition-delay: .30s; }
.dept-grid .dept-card.scroll-fade:nth-child(7) { transition-delay: .36s; }
.dept-grid .dept-card.scroll-fade:nth-child(8) { transition-delay: .42s; }

/* ── News ────────────────────────────────────────────────────*/
.news-section {
  padding: 5rem 0;
  background: radial-gradient(ellipse 80% 55% at 50% 100%, rgba(229,48,48,.06) 0%, var(--bg) 65%);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news-card {
  background: rgba(18,23,39, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, border-color .25s;
  box-shadow: 0 4px 24px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.11);
}
.news-card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  animation: card-glow-shift 2.5s ease infinite;
}

/* Featured first card – spans full width, horizontal layout */
.news-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  min-height: 280px;
}
.news-card--featured .news-card-img-wrap { flex: 0 0 44%; }
.news-card--featured .news-card-img-wrap img,
.news-card--featured .news-card-img-wrap .news-card-image-placeholder {
  width: 100%; height: 100%; object-fit: cover;
}
.news-card--featured .news-card-body { padding: 2.2rem 2.4rem; justify-content: center; }
.news-card--featured .news-card-title { font-size: 1.5rem; }
.news-card--featured .news-card-teaser { display: block; }

.news-card-img-wrap { aspect-ratio: 16/9; overflow: hidden; display: block; }
.news-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-card-img-wrap img { transform: scale(1.05); }
.news-card-image-placeholder { width: 100%; height: 100%; background: var(--bg-elevated); min-height: 160px; }

.news-card-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }

.news-card-date {
  font-size: .73rem;
  color: var(--gold);
  font-family: 'Oswald', sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.news-card-title {
  font-size: 1.02rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: .7rem;
  flex: 1;
}
.news-card-title a { color: var(--text); transition: color .2s; }
.news-card-title a:hover { color: var(--gold); }

.news-card-teaser {
  display: none;
  font-size: .9rem;
  color: var(--text-sub);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.news-card-link {
  font-family: 'Oswald', sans-serif;
  font-size: .83rem;
  color: var(--accent);
  letter-spacing: .05em;
  display: inline-flex;
  align-items: center;
  gap: .35em;
  transition: gap .18s, color .18s;
  margin-top: auto;
}
.news-card-link:hover { color: var(--accent-hover); gap: .55em; }

.empty-hint { color: var(--text-muted); font-size: .95rem; }

/* ── News + Einsatz sidebar layout ──────────────────────────*/
.news-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* ── Einsatz sidebar ─────────────────────────────────────── */
.einsatz-sidebar {
  background: rgba(18,23,39,.75);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-md);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.einsatz-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border-md);
}
.einsatz-sidebar-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}
.einsatz-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.einsatz-list-item {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
}
.einsatz-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: .35rem;
}
.einsatz-dot--red  { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,.5); }
.einsatz-dot--blue { background: #3b82f6; box-shadow: 0 0 6px rgba(59,130,246,.5); }
.einsatz-dot--gold { background: var(--gold); box-shadow: 0 0 6px var(--gold-subtle); }
.einsatz-list-body { min-width: 0; }
.einsatz-list-art {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.einsatz-list-datum {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .1rem;
}
.einsatz-list-adresse {
  font-size: .75rem;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: .1rem;
}
.einsatz-sidebar-link {
  font-size: .82rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  padding-top: .75rem;
  border-top: 1px solid var(--border-md);
  transition: color .15s;
}
.einsatz-sidebar-link:hover { color: var(--text); }
[data-theme="light"] .einsatz-sidebar { background: rgba(255,255,255,.85); }
@media (max-width: 900px) { .news-layout { grid-template-columns: 1fr; } }

/* ── Departments ─────────────────────────────────────────────*/
.dept-section {
  padding: 5rem 0;
  background: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(240,165,0,.05) 0%, var(--bg-surface) 65%);
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.dept-card {
  background: rgba(18,23,39, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform .22s, border-color .22s;
  display: block;
  box-shadow: 0 2px 16px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.09);
}
.dept-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  animation: card-glow-shift 2.5s ease infinite;
}

.dept-card-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.dept-card:hover .dept-card-accent { transform: scaleX(1); }

.dept-card-body {
  padding: 1.6rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.dept-card-body h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-sub);
  letter-spacing: .03em;
  line-height: 1.3;
  margin: 0;
  transition: color .2s;
}
.dept-card:hover .dept-card-body h3 { color: var(--accent); }
.dept-arrow {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: color .2s, transform .2s;
  flex-shrink: 0;
}
.dept-card:hover .dept-arrow { color: var(--gold); transform: translateX(3px); }

/* ── About ───────────────────────────────────────────────────*/
.about-section { padding: 5rem 0; background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

.about-card {
  background: rgba(14,19,37, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--r-lg);
  padding: 2.5rem 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08);
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--gold));
}
.about-card p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text);
  white-space: pre-wrap;
  margin: 0;
}

.about-aside { display: flex; flex-direction: column; gap: 1.2rem; }

.aside-card {
  background: rgba(18,23,39, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  padding: 1.8rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.10);
}
.aside-card h3 { font-size: 1.05rem; color: var(--text); margin-bottom: .6rem; }
.aside-card p { font-size: .9rem; color: var(--text); margin: 0; line-height: 1.6; }

.aside-card--accent {
  background: var(--accent-subtle);
  border-color: rgba(229,48,48,.2);
}
.aside-card--accent h3 { color: var(--text); }

/* ── Contact ─────────────────────────────────────────────────*/
.contact-section { padding: 5rem 0 6rem; background: var(--bg-surface); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-items { display: flex; flex-direction: column; gap: 1.5rem; margin-top: .5rem; }

.contact-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.contact-item-icon {
  width: 44px; height: 44px;
  background: rgba(229,48,48,.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(229,48,48,.28);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(229,48,48,.12), inset 0 1px 0 rgba(255,255,255,.08);
}

.contact-item strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .2rem;
}
.contact-item p { color: var(--text); font-size: .95rem; margin: 0; line-height: 1.5; }

.map-placeholder {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.map-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  background: rgba(8,12,24,.62);
  padding: 1.8rem 2rem;
  border-radius: var(--r);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.map-placeholder-inner p { color: rgba(255,255,255,.8); font-size: .9rem; margin: 0; line-height: 1.5; }
.map-placeholder svg { opacity: .6; color: #fff; }

/* ── Dynamic Pages ───────────────────────────────────────────*/
.page-hero {
  background:
    radial-gradient(ellipse 70% 100% at 20% 50%, rgba(229,48,48,.08) 0%, transparent 65%),
    var(--bg-surface);
  border-bottom: 1px solid var(--border-md);
  padding: 4.5rem 0 3.5rem;
  margin-bottom: 0;
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 35%, var(--gold) 65%, transparent);
  opacity: .45;
}
.page-hero .container h1 { color: var(--text); }

/* ── Breadcrumb ───────────────────────────────────────────────*/
.breadcrumb {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: .55rem 0;
}
.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  font-size: .78rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .bc-sep { color: var(--border-strong); user-select: none; }
.breadcrumb .bc-current { color: var(--text-sub); }

.content-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 2.5rem;
  margin-bottom: 1.8rem;
}
.content-section h2 { color: var(--text); font-size: 1.3rem; margin-bottom: 1.2rem; padding-bottom: .7rem; border-bottom: 1px solid var(--border); }

.content-body { line-height: 1.8; font-size: .97rem; }
.content-body h1, .content-body h2, .content-body h3 { color: var(--text); margin: 1.3em 0 .4em; }
.content-body p  { margin-bottom: 1em; color: var(--text); }
.content-body ul { padding-left: 1.5em; list-style: disc;    margin-bottom: 1em; }
.content-body ol { padding-left: 1.5em; list-style: decimal; margin-bottom: 1em; }
.content-body a  { color: var(--gold); text-decoration: underline; }
.content-body img { border-radius: 8px; margin: 1.2em 0; }

.content-body .doc-link {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1.1rem;
  border: 1.5px solid var(--border-md);
  border-radius: var(--pill);
  color: var(--text-sub); font-size: .9rem;
  transition: border-color .2s, color .2s;
  text-decoration: none;
}
.content-body .doc-link:hover { border-color: var(--gold); color: var(--gold); }
.content-body .doc-link--pdf::before {
  content: "PDF";
  font-size: .68rem; padding: .1rem .35rem;
  background: var(--accent-subtle); color: var(--accent);
  border-radius: 3px;
  font-family: 'Oswald', sans-serif; letter-spacing: .04em;
}

.page-children-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }

.page-child-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.8rem 1.5rem;
  text-decoration: none; color: var(--text-sub);
  display: flex; align-items: center; gap: .6rem;
  transition: border-color .2s, transform .2s, color .2s, background .2s;
}
.page-child-card::before { content: '→'; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; flex-shrink: 0; }
.page-child-card:hover { border-color: var(--accent); transform: translateX(4px); color: var(--text); background: var(--bg-elevated); }
.page-child-card:hover::before { opacity: 1; transform: translateX(0); }

/* ── Alle Artikel ────────────────────────────────────────────*/
.news-list-page { padding: 3rem 0 5rem; }

.news-list-item {
  display: flex; gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.3rem;
  margin-bottom: 1rem;
  text-decoration: none; color: var(--text);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.news-list-item:hover { border-color: var(--border-md); transform: translateX(5px); box-shadow: var(--shadow-sm); }

.news-list-thumb { flex-shrink: 0; width: 130px; height: 88px; border-radius: 8px; overflow: hidden; }
.news-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-list-thumb-placeholder { width: 100%; height: 100%; background: var(--bg-elevated); }

.news-list-meta h3 { font-size: 1rem; color: var(--text); margin-bottom: .3rem; font-family: 'Oswald', sans-serif; font-weight: 500; }
.news-list-meta .date { color: var(--gold); font-size: .78rem; font-family: 'Oswald', sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.news-list-meta p { font-size: .9rem; color: var(--text-muted); margin: .4rem 0 0; line-height: 1.5; }

/* ── News Detail ─────────────────────────────────────────────*/
.news-detail { padding: 3rem 0 5rem; max-width: 820px; margin: 0 auto; }
.news-detail-image { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 2rem; }
.news-detail-image img { width: 100%; max-height: 500px; object-fit: cover; }
.news-detail-date { color: var(--gold); font-size: .84rem; font-family: 'Oswald', sans-serif; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .75rem; }
.news-detail h1 { color: var(--text); margin-bottom: 1.5rem; }
.news-detail-body { line-height: 1.85; font-size: 1rem; color: var(--text); }
.news-detail-body p { margin-bottom: 1.2em; }

/* ── Login ───────────────────────────────────────────────────*/
.login-page { min-height: 82vh; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.login-card { background: var(--bg-surface); border: 1px solid var(--border-md); border-radius: var(--r-lg); padding: 2.8rem; width: 100%; max-width: 400px; box-shadow: var(--shadow-xl); }
.login-card h1 { color: var(--text); margin-bottom: 1.6rem; text-align: center; font-size: 1.7rem; }
.login-card .error-msg { background: var(--danger-bg); color: var(--danger-text); border-radius: 8px; padding: .75rem 1rem; margin-bottom: 1.2rem; font-size: .88rem; }

/* ── Forms ───────────────────────────────────────────────────*/
.form-group { margin-bottom: 1.3rem; }
.form-group label { display: block; font-family: 'Oswald', sans-serif; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .4rem; }
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%; padding: .65rem .9rem;
  background: var(--input-bg); border: 1.5px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: .95rem; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-subtle);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); vertical-align: middle; margin-right: .5rem; }
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }

/* ── Back-to-top FAB ─────────────────────────────────────────*/
.back-to-top-fab {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 900;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
  transition: opacity .25s, transform .25s, background .2s;
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
}
.back-to-top-fab.visible { opacity: 1; transform: scale(1); pointer-events: auto; }
.back-to-top-fab:hover { background: var(--accent-hover); }
@media (max-width: 600px) { .back-to-top-fab { bottom: 1rem; right: 1rem; width: 38px; height: 38px; font-size: 1.1rem; } }

/* ── Footer ──────────────────────────────────────────────────*/
.site-footer {
  background: var(--bg-surface);
  border-top: 3px solid var(--bg-elevated);
  padding: 4rem 0 1.5rem;
  margin-top: auto;
}
.footer-grid {
  width: 96%; max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-col h3 { font-family: 'Oswald', sans-serif; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 1.2rem; }
.footer-col address, .footer-col p { font-style: normal; color: var(--text-sub); font-size: .88rem; line-height: 1.75; margin: 0; }
.footer-col ul li { margin-bottom: .45rem; }
.footer-col ul li a { color: var(--text-sub); font-size: .88rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom { width: 96%; max-width: var(--max-w); margin: 1.4rem auto 0; display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--text-muted); }
.back-to-top { color: var(--text-muted); font-size: .8rem; transition: color .2s; }
.back-to-top:hover { color: var(--gold); }

/* ── Utilities ───────────────────────────────────────────────*/
.scroll-fade { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; will-change: opacity, transform; }
.scroll-fade.visible { opacity: 1; transform: none; will-change: auto; }

.alert { padding: .85rem 1.1rem; border-radius: 8px; margin-bottom: 1.3rem; font-size: .88rem; }
.alert-success { background: var(--success-bg); color: var(--success-text); border: 1px solid rgba(74,222,128,.2); }
.alert-danger  { background: var(--danger-bg);  color: var(--danger-text);  border: 1px solid rgba(248,113,113,.2); }

.badge { display: inline-block; padding: .2em .65em; border-radius: var(--pill); font-size: .72rem; font-weight: 600; letter-spacing: .04em; }
.badge-green { background: var(--success-bg); color: var(--success-text); }
.badge-red   { background: var(--danger-bg);  color: var(--danger-text); }

/* ════════════════════════════════════════════════════════════
   ADMIN
   ════════════════════════════════════════════════════════════*/
.admin-body { background: var(--bg); min-height: 100vh; }
.admin-layout { display: flex; min-height: 100vh; }

/* ── Sidebar ─────────────────────────────────────────────────*/
.admin-sidebar {
  width: 280px; flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column;
  position: sticky; top: 0;
  height: 100vh; overflow-y: auto;
}

.admin-brand { display: flex; align-items: center; gap: .8rem; padding: 1.25rem 1.2rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.admin-brand-logo { height: 32px; width: auto; flex-shrink: 0; }
.admin-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.admin-brand-title { font-family: 'Oswald', sans-serif; font-size: .95rem; font-weight: 700; color: var(--accent); letter-spacing: .05em; }
.admin-brand-sub { font-size: .7rem; color: var(--text-muted); letter-spacing: .03em; margin-top: 1px; }

.admin-nav { display: flex; flex-direction: column; padding: .8rem .7rem; flex: 1; gap: 0; }
.admin-nav-group { margin-bottom: .5rem; }
.admin-nav-group-label { display: block; padding: .6rem .85rem .25rem; font-size: .70rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); font-family: 'Oswald', sans-serif; opacity: .7; }
.admin-nav-item { display: flex; align-items: center; gap: .70rem; padding: .65rem .85rem; color: var(--text-muted); font-size: .95rem; text-decoration: none; border-radius: 7px; transition: color .15s, background .15s; white-space: nowrap; }
.admin-nav-item svg { flex-shrink: 0; transition: opacity .15s; }
.admin-nav-item:hover { color: var(--text); background: rgba(255,255,255,.07); }
.admin-nav-item:hover svg { opacity: 1; }
.admin-nav-item.active { color: var(--accent); background: var(--accent-subtle); }
.admin-nav-item.active svg { color: var(--accent); opacity: 1; }

.admin-nav-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: .7rem .7rem; display: flex; flex-direction: column; gap: 2px; }
.admin-nav-bottom-link { display: flex; align-items: center; gap: .5rem; padding: .60rem .85rem; color: var(--text-muted); font-size: .92rem; text-decoration: none; border-radius: 7px; transition: color .15s, background .15s; }
.admin-nav-bottom-link:hover { color: var(--text); background: rgba(255,255,255,.07); }
.admin-nav-bottom-link--logout:hover { color: var(--danger-text); background: var(--danger-bg); }

/* ── Main area ───────────────────────────────────────────────*/
.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-header { position: sticky; top: 0; z-index: 50; background: var(--bg-surface); border-bottom: 1px solid var(--border); padding: .8rem 1.8rem; display: flex; align-items: center; gap: 1rem; }
.admin-page-title { font-family: 'Oswald', sans-serif; font-size: 1.05rem; color: var(--text); font-weight: 500; flex: 1; margin: 0; letter-spacing: .03em; }
#admin-hamburger { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: .3rem; line-height: 0; border-radius: 6px; transition: background .15s; }
#admin-hamburger:hover { background: rgba(255,255,255,.08); }
.admin-content { padding: 2rem 2.2rem; }

/* ── Admin utility ───────────────────────────────────────────*/
.admin-toolbar { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.admin-breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.admin-breadcrumb a { color: var(--text-sub); text-decoration: none; }
.admin-breadcrumb a:hover { color: var(--gold); }
.admin-breadcrumb span:last-child { color: var(--text); }

/* ── Table ───────────────────────────────────────────────────*/
.admin-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin-table th { background: var(--bg-elevated); color: var(--text-muted); font-family: 'Oswald', sans-serif; font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border-md); }
.admin-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,.022); }
.admin-table .actions { display: flex; gap: .35rem; flex-wrap: wrap; }

/* ── Card ────────────────────────────────────────────────────*/
.admin-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.8rem 2rem; margin-bottom: 1.5rem; }
.admin-card h2 { font-size: 1.05rem; color: var(--text); margin-bottom: 1.4rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); font-weight: 600; }

/* ── Dashboard ───────────────────────────────────────────────*/
.dash-welcome { margin-bottom: 2rem; }
.dash-welcome h2 { font-family: 'Oswald', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; }
.dash-welcome p { color: var(--text-muted); font-size: .9rem; margin: 0; }

.dashboard-section { margin-bottom: 2rem; }
.dashboard-section-label { display: block; font-family: 'Oswald', sans-serif; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .75rem; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.1rem; }
.dashboard-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.8rem 1.5rem; text-decoration: none; color: var(--text-sub); display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; transition: border-color .2s, transform .18s, box-shadow .2s; }
.dashboard-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(229,48,48,.12); color: var(--text); }
.dashboard-card .dc-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--accent-subtle); border-radius: 10px; color: var(--accent); flex-shrink: 0; }
.dashboard-card .dc-label { font-family: 'Oswald', sans-serif; font-size: 1.05rem; font-weight: 600; letter-spacing: .04em; color: var(--text); line-height: 1.2; }
.dashboard-card .dc-desc { font-size: .875rem; color: var(--text-muted); margin: 0; line-height: 1.4; }

/* ── Badges ──────────────────────────────────────────────────*/
.badge-visible { background: var(--success-bg); color: var(--success-text); }
.badge-hidden  { background: var(--bg-elevated); color: var(--text-muted); }
.badge-type    { background: var(--gold-subtle); color: var(--gold); }

/* ── Page tree (admin/pages) ─────────────────────────────────*/
.page-tree { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.page-tree-header {
  display: grid;
  grid-template-columns: 24px 2fr 1.4fr 70px 70px 1fr;
  gap: .5rem;
  padding: .6rem 1rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-md);
  font-family: 'Oswald', sans-serif; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted);
}
.page-tree-row {
  display: grid;
  grid-template-columns: 24px 2fr 1.4fr 70px 70px 1fr;
  gap: .5rem;
  align-items: center;
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: .875rem;
}
.page-tree-row:last-child { border-bottom: none; }
.page-tree-lone { background: var(--bg-surface); }
.page-tree-lone:hover { background: rgba(255,255,255,.022); }

.page-tree-group { border-bottom: 1px solid var(--border); }
.page-tree-group:last-child { border-bottom: none; }
.page-tree-group summary { list-style: none; cursor: pointer; background: var(--bg-surface); }
.page-tree-group summary::-webkit-details-marker { display: none; }
.page-tree-group summary:hover { background: rgba(255,255,255,.022); }

.page-tree-toggle-icon {
  display: flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  color: var(--text-muted); font-size: .8rem;
  transition: transform .2s;
}
.page-tree-toggle-icon::before { content: '▶'; font-size: .6rem; }
.page-tree-no-toggle::before { content: ''; }
details[open] > .page-tree-top .page-tree-toggle-icon { transform: rotate(90deg); }

.page-tree-children { background: var(--bg-elevated); }
.page-tree-child { background: transparent; font-size: .855rem; }
.page-tree-child:hover { background: rgba(255,255,255,.03); }
.page-tree-indent {
  color: var(--text-muted); font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}
.page-tree-cell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; }
.page-tree-title { white-space: normal; word-break: break-word; }

@media (max-width: 780px) {
  .page-tree-header { display: none; }
  .page-tree-row { grid-template-columns: 24px 1fr; grid-template-rows: auto auto auto; row-gap: .3rem; }
  .page-tree-row .page-tree-cell:nth-child(n+3) { grid-column: 2; font-size: .8rem; }
}

/* ── Button sizes ────────────────────────────────────────────*/
.btn-xs { padding: .22em .7em; font-size: .76rem; border-radius: 5px; }

/* ── Form classes ────────────────────────────────────────────*/
.form-label { display: block; font-family: 'Oswald', sans-serif; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .4rem; }
.form-input { width: 100%; padding: .62rem .9rem; background: var(--input-bg); border: 1px solid var(--border-md); border-radius: var(--r); color: var(--text); font-family: inherit; font-size: .9rem; transition: border-color .15s, box-shadow .15s; }
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-subtle); }
select.form-input { cursor: pointer; }
.form-textarea { min-height: 130px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.form-checkbox { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .9rem; color: var(--text-sub); }
.form-checkbox input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }
.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: .35rem; }
.form-actions { display: flex; gap: .75rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.current-image-preview { display: flex; align-items: center; gap: .85rem; padding: .75rem; background: var(--bg-elevated); border-radius: var(--r); margin-bottom: .75rem; font-size: .82rem; color: var(--text-muted); }
.current-image-preview img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }

/* ── Drag-and-drop upload ────────────────────────────────────*/
.upload-drop-zone { border: 2px dashed var(--border-md); border-radius: var(--r); padding: 2.5rem 2rem; text-align: center; transition: border-color .2s, background .2s; cursor: pointer; }
.upload-drop-zone:hover, .upload-drop-zone.drag-over { border-color: var(--accent); background: var(--accent-subtle); }
.drop-icon { color: var(--text-sub); margin-bottom: .75rem; line-height: 0; transition: color .2s; }
.upload-drop-zone:hover .drop-icon, .upload-drop-zone.drag-over .drop-icon { color: var(--accent); }
.drop-label { font-size: .9rem; color: var(--text-sub); margin: 0; }
.drop-label strong { color: var(--accent); }
.drop-filename { display: none; margin-top: .85rem; font-size: .82rem; color: var(--text-sub); padding: .35rem .8rem; background: var(--bg-elevated); border-radius: var(--pill); }
.drop-filename.visible { display: inline-block; }
.drop-file-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; justify-content: center; }
.drop-file-chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; color: var(--text-sub); padding: .3rem .65rem; background: var(--bg-elevated); border-radius: var(--pill); }
.drop-file-chip-remove { background: none; border: none; cursor: pointer; color: var(--text-muted); line-height: 1; padding: 0 .1rem; font-size: 1rem; }
.drop-file-chip-remove:hover { color: var(--accent); }
.drop-clear-all { font-size: .78rem; color: var(--text-muted); background: none; border: none; cursor: pointer; text-decoration: underline; margin-top: .5rem; display: block; width: 100%; text-align: center; }
.drop-clear-all:hover { color: var(--accent); }
.drop-single-clear { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 1rem; vertical-align: middle; margin-left: .3rem; line-height: 1; }
.drop-single-clear:hover { color: var(--accent); }

/* ── Quill ───────────────────────────────────────────────────*/
.ql-toolbar { background: var(--bg-elevated) !important; border-color: var(--border-md) !important; border-radius: 8px 8px 0 0 !important; }
.ql-container { background: var(--input-bg) !important; border-color: var(--border-md) !important; border-radius: 0 0 8px 8px !important; color: var(--text) !important; font-family: inherit !important; min-height: 240px; }
.ql-editor { color: var(--text) !important; line-height: 1.8 !important; font-size: .97rem !important; }
.ql-editor h1, .ql-editor h2, .ql-editor h3 { color: var(--text) !important; margin: 1.3em 0 .4em !important; }
.ql-editor p  { margin-bottom: 1em !important; color: var(--text) !important; }
.ql-editor ul { padding-left: 1.5em !important; list-style: disc !important;    margin-bottom: 1em !important; }
.ql-editor ol { padding-left: 1.5em !important; list-style: decimal !important; margin-bottom: 1em !important; }
.ql-editor a  { color: var(--gold) !important; text-decoration: underline !important; }
.ql-editor img { border-radius: 8px !important; margin: 1.2em 0 !important; max-width: 100% !important; }
.ql-stroke { stroke: var(--text-muted) !important; }
.ql-fill   { fill:   var(--text-muted) !important; }
.ql-picker-label { color: var(--text-muted) !important; }

/* ── Reduced motion ──────────────────────────────────────────*/
@media (prefers-reduced-motion: reduce) {
  .hero                { animation: none; }
  .btn-primary::after  { animation: none; }
  .news-card:hover,
  .dept-card:hover     { animation: none; }
  .news-grid .news-card.scroll-fade,
  .dept-grid .dept-card.scroll-fade { transition-delay: 0s !important; }
}

/* ── Light-mode targeted overrides ──────────────────────────*/
[data-theme="light"] .news-card {
  background: rgba(255,255,255, 0.72);
  border-color: rgba(0,0,0,.07);
  box-shadow: 0 4px 20px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.9);
}
[data-theme="light"] .dept-card {
  background: rgba(255,255,255, 0.68);
  border-color: rgba(0,0,0,.06);
  box-shadow: 0 2px 12px rgba(0,0,0,.07), inset 0 1px 0 rgba(255,255,255,.9);
}
[data-theme="light"] .aside-card {
  background: rgba(255,255,255, 0.7);
  border-color: rgba(0,0,0,.07);
  box-shadow: 0 2px 16px rgba(0,0,0,.07), inset 0 1px 0 rgba(255,255,255,.9);
}
[data-theme="light"] .about-card {
  background: rgba(255,255,255, 0.75);
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 8px 28px rgba(0,0,0,.09), inset 0 1px 0 rgba(255,255,255,.95);
}
[data-theme="light"] .contact-item-icon {
  background: rgba(192,26,26,.09);
  border-color: rgba(192,26,26,.22);
  box-shadow: 0 2px 8px rgba(192,26,26,.08);
}
[data-theme="light"] .btn-outline {
  color: var(--text);
  border-color: var(--border-strong);
}
[data-theme="light"] .btn-outline:hover {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border-strong);
}
[data-theme="light"] .slide-actions .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
[data-theme="light"] .slide-actions .btn-outline:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
[data-theme="light"] .fahrzeug-year { color: var(--text-muted); }
[data-theme="light"] .admin-table tr:hover td {
  background: rgba(0,0,0,.025);
}
[data-theme="light"] #admin-hamburger:hover {
  background: var(--bg-elevated);
}
[data-theme="light"] .stats-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .aside-card--accent {
  background: rgba(192,26,26,.06);
  border-color: rgba(192,26,26,.18);
}
[data-theme="light"] .dept-card-body h3 {
  color: var(--text-sub);
}
[data-theme="light"] .page-hero .container h1 { color: var(--text); }

/* ── Fahrzeug cards (public) ─────────────────────────────────*/
.fahrzeug-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.75rem; }
.fahrzeug-card-link { display: block; text-decoration: none; color: inherit; }
.fahrzeug-card { background: var(--bg-surface); border: 1px solid var(--border-md); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; height: 100%; }
.fahrzeug-card:hover, .fahrzeug-card-link:hover .fahrzeug-card { box-shadow: 0 8px 28px rgba(0,0,0,.22); transform: translateY(-3px); }
.fahrzeug-card--ehemalig { opacity: .88; }
.fahrzeug-img-wrap { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-elevated); }
.fahrzeug-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.fahrzeug-card:hover .fahrzeug-img-wrap img { transform: scale(1.03); }
.fahrzeug-img-placeholder { aspect-ratio: 16/9; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; }
.fahrzeug-body { padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.fahrzeug-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.fahrzeug-badge { background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; padding: .2em .7em; border-radius: var(--pill); letter-spacing: .05em; }
.fahrzeug-year { font-size: .78rem; color: var(--text-muted); }
.fahrzeug-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 0; font-family: 'Oswald', sans-serif; line-height: 1.25; }
.fahrzeug-funkruf { font-size: .82rem; color: var(--accent); font-weight: 600; margin: 0; }
.fahrzeug-desc { font-size: .86rem; color: var(--text-sub); line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
[data-theme="light"] .fahrzeug-card { border-color: rgba(0,0,0,.1); box-shadow: 0 2px 10px rgba(0,0,0,.06); }

/* ── Fahrzeug detail page ────────────────────────────────────*/
.specs-table { width: 100%; border-collapse: collapse; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.specs-table th, .specs-table td { padding: .65rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: none; }
.specs-table th { width: 36%; font-weight: 600; color: var(--text-sub); font-size: .88rem; background: var(--bg-elevated); }
.specs-table td { color: var(--text); font-size: .9rem; }
.fahrzeug-detail-desc { line-height: 1.75; color: var(--text); white-space: pre-line; }

/* ── Fahrzeug tag pills (public) ─────────────────────────────*/
.fahrzeug-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .2rem 0; }
.fahrzeug-tag  { font-size: .7rem; font-weight: 600; padding: .2em .7em; border-radius: var(--pill);
                 background: var(--bg-elevated); color: var(--text-sub); border: 1px solid var(--border);
                 letter-spacing: .03em; }
.fahrzeug-tag--rufname { background: var(--accent); color: #fff; border-color: var(--accent); }
.tag-kv-name { opacity: .65; font-weight: 400; }
.tag-kv-val  { font-weight: 700; }

/* ── Fahrzeug specs table (detail page) ──────────────────────*/
.fahrzeug-specs { background: var(--bg-elevated); border: 1px solid var(--border);
                  border-radius: var(--r-lg); padding: 1.25rem 1.5rem; }
.fahrzeug-specs-list { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 0; padding: 0; list-style: none; }
.fahrzeug-spec-row { display: contents; }
.fahrzeug-spec-row:not(:last-child) .fahrzeug-spec-key,
.fahrzeug-spec-row:not(:last-child) .fahrzeug-spec-value { border-bottom: 1px solid var(--border); }
.fahrzeug-spec-key   { padding: .55rem 1.5rem .55rem 0; color: var(--text-sub);
                       font-size: .83rem; font-weight: 500; white-space: nowrap; }
.fahrzeug-spec-value { padding: .55rem 0; color: var(--text); font-size: .83rem; }

/* ── Fahrzeug detail – dokumente / badges / PDF modal ────────*/
.fz-badges { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.fz-badge {
  font-size: .78rem; padding: .25em .75em;
  border-radius: var(--pill);
  background: var(--accent); color: #fff;
  font-family: 'Oswald', sans-serif; letter-spacing: .04em;
}
.fz-badge--muted {
  background: var(--bg-elevated); color: var(--text-muted);
}
.fz-dokumente-block {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-md);
  border-radius: var(--r-lg);
}
.fz-dokumente-block h3 {
  margin: 0 0 1rem;
  font-size: 1rem; font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: .05em;
}
.fz-dok-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.fz-pdf-btn {
  display: flex; align-items: center; gap: .6rem;
  width: 100%; text-align: left;
  padding: .65rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-md);
  border-radius: var(--r);
  cursor: pointer;
  font-size: .9rem; font-family: inherit;
  color: var(--text);
  transition: border-color .15s;
}
.fz-pdf-btn:hover { border-color: var(--accent); }
.fz-pdf-btn-icon { font-size: 1.2rem; flex-shrink: 0; }
.fz-pdf-btn-open { margin-left: auto; font-size: .78rem; color: var(--text-muted); }

.fz-detail-back { margin-top: 2.5rem; }

.pdf-modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.65); z-index: 1000;
  align-items: center; justify-content: center; padding: 1rem;
}
.pdf-modal.open { display: flex; }
.pdf-modal-inner {
  background: var(--bg-surface);
  border-radius: var(--r-lg);
  width: min(94vw, 960px); height: 88vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-xl);
}
.pdf-modal-header {
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 1.2rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.pdf-modal-icon { font-size: 1.1rem; }
.pdf-modal-title { font-weight: 600; font-size: .95rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.pdf-modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: var(--bg-elevated);
  cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--text);
}
.pdf-modal-close:hover { background: var(--bg-hover); }
.pdf-modal-frame { flex: 1; border: none; border-radius: 0 0 var(--r-lg) var(--r-lg); }

/* ── Admin tag input ─────────────────────────────────────────*/
.tag-input-wrap { display: flex; flex-wrap: wrap; gap: .35rem; min-height: 2.4rem; padding: .4rem .5rem;
                  background: var(--bg-elevated); border: 1px solid var(--border);
                  border-radius: var(--r-md); margin-bottom: .5rem; align-items: center; }
.tag-input-row  { display: flex; gap: .5rem; align-items: center; }
.tag-input-row .form-input { flex: 1; min-width: 0; }
.tag-pill        { display: inline-flex; align-items: center; gap: .3rem; background: var(--bg-base);
                   color: var(--text); font-size: .75rem; font-weight: 500; padding: .22em .65em;
                   border-radius: var(--pill); line-height: 1.4; border: 1px solid var(--border); }
.tag-pill-name   { color: var(--text-muted); font-weight: 400; }
.tag-pill-sep    { color: var(--text-muted); margin: 0 .1em; }
.tag-pill-value  { font-weight: 700; }
.tag-pill-remove { background: none; border: none; color: inherit; cursor: pointer; font-size: 1rem;
                   padding: 0; line-height: 1; opacity: .55; display: flex; align-items: center; margin-left: .15em; }
.tag-pill-remove:hover { opacity: 1; }

/* ── Backup page ─────────────────────────────────────────────*/
.backup-gfs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.backup-gfs-section { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r); padding: 1.1rem 1.2rem; }
.backup-gfs-title { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: .9rem; color: var(--text); margin-bottom: .9rem; padding-bottom: .7rem; border-bottom: 1px solid var(--border); }
.backup-empty { font-size: .82rem; color: var(--text-muted); margin: 0; }
.backup-table { font-size: .8rem; }
.backup-table th { font-size: .72rem; }
.backup-name { font-family: monospace; word-break: break-all; }
.backup-size { white-space: nowrap; color: var(--text-muted); }
.backup-date { white-space: nowrap; color: var(--text-muted); }

/* ── Danger zone ─────────────────────────────────────────────*/
.admin-danger-zone { border: 1.5px solid rgba(185,28,28,.4); border-radius: var(--r-lg); padding: 1.8rem 2rem; margin-bottom: 1.5rem; background: var(--danger-bg); }
.admin-danger-zone__header { display: flex; align-items: center; gap: .6rem; font-size: 1rem; font-weight: 700; color: var(--danger-text); margin-bottom: 1rem; }
.admin-danger-zone__desc { font-size: .875rem; color: var(--text-sub); margin-bottom: 1.4rem; line-height: 1.6; }
.admin-danger-zone .form-label { color: var(--text-sub); }
.admin-danger-zone .btn-danger { margin-top: .5rem; }
@media (max-width: 960px) { .backup-gfs-grid { grid-template-columns: 1fr; } }

/* ── Responsive ──────────────────────────────────────────────*/
@media (max-width: 1100px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-card--featured { flex-direction: column; }
  .news-card--featured .news-card-img-wrap { flex: 0 0 auto; aspect-ratio: 16/9; height: auto; }
  .news-card--featured .news-card-body { padding: 1.4rem; }
  .news-card--featured .news-card-title { font-size: 1.2rem; }
  .dept-grid { grid-template-columns: repeat(4, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}


@media (max-width: 1280px) {
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .main-nav {
    display: none;
    position: fixed;
    top: 107px;
    left: 0; right: 0;
    height: auto;
    bottom: 0;
    justify-content: flex-start;
    align-items: stretch;
    flex-direction: column;
    pointer-events: auto;
    z-index: 950;
    border-top: none;
  }
  .main-nav.open {
    display: flex;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem;
    animation: navSlideDown .22s ease forwards;
  }
  .main-nav.open .nav-list { flex-direction: column; gap: 6px; align-items: stretch; }
  .main-nav.open .nav-list > li { width: 100%; }
  .main-nav.open .nav-list a { padding: .75rem; font-size: 1rem; border-radius: 8px; }
  .main-nav.open .nav-list a::after { display: none; }

  /* Regular (non-dropdown) items: card with › arrow */
  .main-nav.open .nav-list > li:not(.has-dropdown) > a {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-md);
    border-left: 3px solid var(--accent);
    padding: .9rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: .03em;
    justify-content: space-between;
  }
  .main-nav.open .nav-list > li:not(.has-dropdown) > a::after {
    content: '›';
    display: block;
    position: static;
    height: auto; width: auto;
    background: none;
    transform: none;
    border-radius: 0;
    color: var(--text-muted);
    font-size: 1.4em;
    line-height: 1;
    transition: color .2s, transform .2s;
  }
  .main-nav.open .nav-list > li:not(.has-dropdown) > a:hover,
  .main-nav.open .nav-list > li:not(.has-dropdown) > a:active {
    background: var(--bg-elevated);
    color: var(--accent);
    border-left-color: var(--gold);
  }
  .main-nav.open .nav-list > li:not(.has-dropdown) > a:hover::after,
  .main-nav.open .nav-list > li:not(.has-dropdown) > a:active::after {
    color: var(--gold);
    transform: translateX(3px);
  }

  /* Dropdown parent: split row (link left, chevron right) */
  .main-nav.open .has-dropdown {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    background: var(--bg-card);
    border: 1px solid var(--border-md);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    overflow: hidden;
    transition: border-left-color .2s;
  }
  .main-nav.open .has-dropdown:hover { border-left-color: var(--gold); }
  .main-nav.open .has-dropdown > .nav-parent-link {
    flex: 1;
    background: none;
    border: none;
    border-radius: 0;
    padding: .9rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: .03em;
    justify-content: flex-start;
    min-width: 0;
  }
  .main-nav.open .has-dropdown > .nav-parent-link::after { display: none; }
  .main-nav.open .has-dropdown > .nav-parent-link:hover,
  .main-nav.open .has-dropdown > .nav-parent-link:active {
    background: rgba(255,255,255,.04);
    color: var(--accent);
  }
  .main-nav.open .nav-arrow { display: none; }
  .main-nav.open .nav-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    flex-shrink: 0;
    background: none;
    border: none;
    border-left: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    transition: color .2s, background .2s;
    padding: 0;
  }
  .main-nav.open .nav-toggle-btn:hover {
    color: var(--accent);
    background: rgba(255,255,255,.05);
  }
  .main-nav.open .nav-toggle-btn svg { transition: transform .25s ease; }
  .main-nav.open .has-dropdown.open .nav-toggle-btn svg { transform: rotate(180deg); }

  /* Sub-items: collapsed by default */
  .main-nav.open .nav-dropdown {
    flex: 0 0 100%;
    position: static; opacity: 1; transform: none; pointer-events: auto;
    box-shadow: none; background: var(--bg-elevated);
    border-radius: 0; margin: 0; padding: 0;
    border-top: 0px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
  }
  .main-nav.open .has-dropdown.open .nav-dropdown {
    max-height: 600px;
    border-top-width: 1px;
    padding: .3rem 0;
  }
  .hamburger { display: flex; }
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-inner { flex-wrap: wrap; }
  .stat-item { flex: 1 1 45%; }
  .stat-divider { display: none; }
}

/* ── Toggle button: hidden on desktop ────────────────────────*/
.nav-toggle-btn { display: none; }

/* ── Backdrop ────────────────────────────────────────────────*/
#nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .48);
  z-index: 940;
  -webkit-tap-highlight-color: transparent;
}
#nav-backdrop.visible {
  display: block;
  animation: navFadeIn .2s ease forwards;
}
@keyframes navFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 768px) {
  .header-top { height: 68px; }
  .brand-name { font-size: clamp(1.05rem, 4.5vw, 1.4rem); }
  .brand-logo { height: 56px; }
  .theme-toggle { width: 38px; height: 38px; font-size: 1rem; }
  .hamburger { width: 40px; height: 40px; padding: 10px; }
}

@media (max-width: 700px) {
  .news-grid { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 500px) {
  .dept-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { height: clamp(380px, 72vw, 520px); }
  .slide-content { left: 1.5rem; max-width: calc(100% - 3rem); }
  .slide-content h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .slider-prev, .slider-next { width: 38px; height: 38px; }
  .hero-scroll-hint { display: none; }
  .form-row { flex-direction: column; }
  .about-card { padding: 1.8rem; }
  .content-section { padding: 1.5rem; }
  .news-list-thumb { width: 90px; height: 68px; }
  .stat-item { flex: 1 1 100%; }
}

@media (max-width: 780px) {
  .admin-sidebar { position: fixed; inset: 0 auto 0 0; transform: translateX(-100%); z-index: 200; transition: transform .3s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  #admin-hamburger { display: block; }
  .admin-content { padding: 1.5rem 1rem; }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .ql-container { min-height: 160px !important; }
}

/* ── Fluid font scaling (large screens) ──────────────────────*/
@media (min-width: 1440px) {
  html { font-size: clamp(16px, calc(10.4px + 0.35vw), 24px); }
}

/* ── Fahrzeug Carousel ───────────────────────────────────────*/
.fz-carousel {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-surface);
}
.fz-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 480px;
}
.fz-slide {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  transition: opacity .35s ease;
}
.fz-slide.fz-slide-active {
  opacity: 1;
  pointer-events: auto;
}
.fz-slide-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px);
  transform: scale(1.12);
  z-index: 0;
  pointer-events: none;
}
.fz-slide img:not(.fz-slide-blur) {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.fz-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.28);
  color: rgba(255,255,255,.88);
  font-size: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
  flex-shrink: 0;
  padding: 0;
}
.fz-btn:hover {
  background: rgba(240,165,0,.18);
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.07);
}
.fz-btn:active { transform: scale(.91); }
.fz-btn::before {
  content: '';
  display: block;
  width: 10px; height: 10px;
  border-right: 2.5px solid currentColor;
  border-top: 2.5px solid currentColor;
  border-radius: 1px;
}
.fz-prev::before { transform: rotate(-135deg) translate(1px,-1px); }
.fz-next::before { transform: rotate(45deg) translate(-1px,1px); }

.fz-lightbox-img-wrap .fz-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(12,12,12,.5);
  border: 1.5px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: 44px; height: 44px;
  color: #fff;
  z-index: 2;
}
.fz-lightbox-img-wrap .fz-btn:hover {
  background: rgba(12,12,12,.82);
  border-color: rgba(255,255,255,.5);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
.fz-lightbox-img-wrap .fz-btn:active { transform: translateY(-50%) scale(.93); }
.fz-lightbox-img-wrap .fz-prev { left: .75rem; }
.fz-lightbox-img-wrap .fz-next { right: .75rem; }
.fz-lightbox-img-wrap .fz-btn::before { width: 10px; height: 10px; border-right-width: 2.5px; border-top-width: 2.5px; }

.fz-footer {
  position: absolute;
  bottom: .65rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .28rem .42rem;
  background: rgba(8,12,24,.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  z-index: 2;
  white-space: nowrap;
}
.fz-counter {
  font-size: .75rem;
  color: rgba(255,255,255,.8);
  font-variant-numeric: tabular-nums;
}
.fz-dots {
  display: flex;
  gap: .4rem;
}
.fz-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.fz-dot.fz-dot-active {
  background: #fff;
  transform: scale(1.25);
}
@media (max-width: 600px) {
  .fz-btn { width: 28px; height: 28px; }
  .slider-prev, .slider-next { width: 32px; height: 32px; }
}

/* ── Gallery controls bar ────────────────────────────────────*/
.fz-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .35rem 0;
  margin-bottom: 2rem;
}
.fz-autoscroll-label {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.fz-autoscroll-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 30px;
  height: 17px;
  background: var(--border-md);
  border-radius: 99px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s;
}
.fz-autoscroll-label input[type="checkbox"]:checked {
  background: var(--accent);
}
.fz-autoscroll-label input[type="checkbox"]::before {
  content: '';
  position: absolute;
  width: 11px;
  height: 11px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.fz-autoscroll-label input[type="checkbox"]:checked::before {
  transform: translateX(13px);
}
.fz-gallery-btn {
  font-size: .8rem;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border-md);
  border-radius: var(--r);
  padding: .28rem .7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .35rem;
  transition: color .15s, border-color .15s, background .15s;
  font-family: inherit;
}
.fz-gallery-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background: var(--bg-elevated);
}

/* ── Gallery modal ───────────────────────────────────────────*/
.fz-gallery-modal {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility 0s linear .22s;
}
.fz-gallery-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .22s ease, visibility 0s;
}
.fz-gallery-inner {
  background: var(--bg-surface);
  border-radius: var(--r-lg);
  width: min(96vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  overflow: hidden;
  transform: scale(.96) translateY(14px);
  transition: transform .28s cubic-bezier(.16,1,.3,1);
}
.fz-gallery-modal.open .fz-gallery-inner {
  transform: none;
}
.fz-gallery-header {
  display: flex;
  align-items: center;
  padding: .85rem 1.2rem;
  border-bottom: 1px solid var(--border-md);
  flex-shrink: 0;
  gap: 1rem;
}
.fz-gallery-header-title { font-size: .95rem; font-weight: 600; flex: 1; }
.fz-gallery-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-elevated);
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--text-primary);
}
.fz-gallery-grid-view { overflow-y: auto; padding: 1rem; }
.fz-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
}
.fz-gallery-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--r);
  cursor: pointer;
  background: var(--bg-elevated);
}
.fz-gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s, opacity .15s;
}
.fz-gallery-thumb:hover img { transform: scale(1.05); opacity: .85; }

/* ── Lightbox ────────────────────────────────────────────────*/
.fz-lightbox { display: none; flex-direction: column; flex: 1; min-height: 0; }
.fz-lightbox.active { display: flex; }
.fz-gallery-grid-view.hidden { display: none; }
.fz-lightbox-img-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #000;
  overflow: hidden;
}
.fz-lightbox-blur {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(22px);
  transform: scale(1.12);
  pointer-events: none;
  opacity: .55;
}
.fz-lightbox-main {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.fz-lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1.2rem;
  border-top: 1px solid var(--border-md);
  flex-shrink: 0;
}
.fz-lightbox-counter { font-size: .82rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.fz-back-grid {
  font-size: .82rem;
  background: none; border: none;
  color: var(--text-muted);
  cursor: pointer; padding: .2rem .4rem;
  font-family: inherit;
}
.fz-back-grid:hover { color: var(--text-primary); }
@keyframes fz-lb-in { from { opacity: 0; } to { opacity: 1; } }
.fz-lb-animate { animation: fz-lb-in .22s ease; }
@media (max-width: 600px) {
  .fz-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Light-mode gradient text contrast fix ───────────────────*/
[data-theme="light"] .section-title {
  background: linear-gradient(90deg, var(--accent) 0%, #b07800 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ── Dark mode heading contrast ──────────────────────────────*/
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3 { color: #fff; }

/* ── Theme Hint Popover (Erstbesucher) ───────────────────────*/
@keyframes themeHintIn {
  from { opacity: 0; transform: translateY(-8px) scale(.95); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}
@keyframes themeHintOut {
  from { opacity: 1; transform: translateY(0)    scale(1);   }
  to   { opacity: 0; transform: translateY(-6px) scale(.96); }
}
@keyframes hintPulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(240,165,0,.0),  0 0 0 0   rgba(240,165,0,.0);  }
  50%       { box-shadow: 0 0 0 5px rgba(240,165,0,.55), 0 0 0 10px rgba(240,165,0,.18); }
}

.theme-hint {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 240px;
  padding: 1rem 2.4rem 1rem 1rem;
  background: var(--bg-surface);
  color: var(--text);
  border: 1px solid rgba(240,165,0,.45);
  border-radius: 10px;
  box-shadow: 0 0 0 3px rgba(240,165,0,.1), var(--shadow), 0 6px 28px rgba(240,165,0,.12);
  font-size: .85rem;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  z-index: 1100;
}
.theme-hint p { margin: 0; }
.theme-hint .hint-label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .35rem;
}
.theme-hint.visible {
  pointer-events: auto;
  animation: themeHintIn .35s cubic-bezier(.22,1,.36,1) forwards;
}
.theme-hint.hiding {
  pointer-events: none;
  animation: themeHintOut .25s ease forwards;
}

.theme-toggle.hint-pulse {
  animation: hintPulse 1.6s ease-in-out infinite;
}

.theme-hint-arrow {
  position: absolute;
  top: -7px;
  right: 14px;
  width: 12px;
  height: 12px;
  background: var(--bg-surface);
  border-left: 1px solid rgba(240,165,0,.45);
  border-top: 1px solid rgba(240,165,0,.45);
  transform: rotate(45deg);
}

.theme-hint-close {
  position: absolute;
  top: 8px;
  right: 9px;
  background: none;
  border: none;
  color: var(--text-sub);
  font-size: 1rem;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
  border-radius: 4px;
  transition: background .15s, color .15s;
}
.theme-hint-close:hover { background: var(--bg-elevated); color: var(--text); }
