/* ==========================================
   THEME TOKENS
   ========================================== */
:root {
  --primary: #00695c;
  --gradient-brand: #00695c;
  --primary-rgb: 0, 105, 92;
  --primary-light: #26a69a;
  --primary-light-rgb: 38, 165, 154;
  --accent-b: #00695c;
  --accent-b-rgb: 0, 230, 168;

  --radius-sm: 8px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --font-heading: 'Outfit', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-body: 'Inter', sans-serif;
  --font-scale: 1;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --blur: blur(24px) saturate(160%);
}

:root,
html[data-theme="light"] {
  --bg: #f3f6f5;
  --bg-rgb: 243, 246, 245;
  --surface: rgba(255, 255, 255, 0.55);
  --surface-strong: rgba(255, 255, 255, 0.8);
  --border: rgba(0, 40, 35, 0.10);
  --text-primary: #0d201b;
  --text-secondary: rgba(13, 32, 27, 0.66);
  --text-muted: rgba(13, 32, 27, 0.44);
  --shadow: 0 12px 40px rgba(0, 105, 92, 0.12);
  --header-bg: rgba(243, 246, 245, 0.65);
}

/* ==========================================
   RESETS
   ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: calc(16px * var(--font-scale)); }

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
}

body::before, body::after {
  content: '';
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  transition: opacity 0.4s ease;
}
body::before { width: 640px; height: 640px; top: -220px; right: -180px; background: rgba(var(--primary-rgb), 0.4); opacity: 0.24; }
body::after { width: 560px; height: 560px; bottom: -200px; left: -160px; background: rgba(var(--accent-b-rgb), 0.32); opacity: 0.16; }
html[data-theme="light"] body::before { opacity: 0.14; }
html[data-theme="light"] body::after { opacity: 0.10; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

html[data-lang="de"] .lang-ls { display: none !important; }
html[data-lang="de"] .lang-de { display: block; }
html[data-lang="ls"] .lang-de { display: none !important; }
html[data-lang="ls"] .lang-ls { display: block; }

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; color: var(--text-primary); }
p { color: var(--text-secondary); }

.gradient-text {
  background: var(--primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--primary-light); }

*:focus-visible { outline: 2px solid var(--accent-b); outline-offset: 3px; }

.skip-link {
  position: absolute; top: -100px; left: 20px;
  background: var(--primary); color: #fff;
  padding: 10px 20px; font-weight: 600;
  border-radius: var(--radius-sm); z-index: 10000; transition: top 0.2s;
}
.skip-link:focus { top: 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

.hidden { display: none !important; }

/* ==========================================
   GLASS / SHARED UI
   ========================================== */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-radius: var(--radius);
}

.icon { width: 18px; height: 18px; object-fit: contain; display: inline-block; vertical-align: middle; }

.tts-floating .icon { filter: invert(1); }
.theme-swap-dark { display: none !important; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.icon-btn:hover { border-color: var(--primary-light); background: rgba(var(--primary-rgb), 0.14); }s

.btn {
  padding: 12px 26px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.9375rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; transition: var(--transition);
}
.btn {
  padding: 12px 26px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.9375rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; transition: var(--transition);
}
.btn-primary { background: var(--gradient-brand); color: #ffffff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(var(--primary-rgb), 0.35); }
.btn-ghost {
  background: var(--surface); color: var(--text-primary); border-color: var(--border);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.btn-ghost:hover { transform: translateY(-2px); }

.media-frame {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: repeating-linear-gradient(135deg, var(--surface) 0 2px, transparent 2px 14px), var(--surface);
  display: flex; align-items: center; justify-content: center;
}
.media-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-frame-path {
  display: none; position: relative; z-index: 1; font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--text-muted); background: var(--surface-strong); padding: 5px 12px; border-radius: var(--radius-sm);
  pointer-events: none;
}
.media-frame.is-missing .media-frame-path { display: inline-block; }

/* ==========================================
   HEADER / NAVBAR
   ========================================== */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1400px; margin: 0 auto; padding: 0 24px; height: 72px;
}

.brand { display: flex; align-items: center; }
.brand-logo { height: 58px; width: auto; }

.site-nav { display: flex; }
.nav-list { display: flex; list-style: none; gap: 8px; }

.nav-item {
  color: var(--text-secondary); text-decoration: none; font-weight: 500; font-size: 0.8125rem;
  padding: 8px 14px; border-radius: var(--radius-pill); transition: var(--transition);
}
.nav-item:hover, .nav-item.active { color: var(--text-primary); background: var(--surface); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.settings { position: relative; }

.settings-panel {
  position: absolute; top: calc(100% + 12px); background: rgba(0, 0, 0, 0.8);; right: 0;
  width: 15rem; padding: 18px; display: flex; flex-direction: column; gap: 14px;
  z-index: 1100;
}
html[data-theme="light"] .settings-panel {
  background: rgba(255, 255, 255, 0.8);
}

.settings-panel[hidden] { display: none; }

.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.settings-label { font-size: 0.8125rem; color: var(--text-secondary); font-weight: 500; flex-shrink: 0; }

.toolbar-btn {
  background: var(--surface); border: 1px solid var(--border); color: var(--text-primary);
  padding: 7px 12px; border-radius: var(--radius-pill); cursor: pointer;
  font-size: 0.75rem; font-weight: 500; display: flex; align-items: center; gap: 6px; transition: var(--transition);
  flex-shrink: 0; white-space: nowrap;
}
.toolbar-btn:hover { border-color: var(--primary-light); background: rgba(var(--primary-rgb), 0.14); }
.toolbar-btn--lang[aria-pressed="true"] { background: var(--gradient-brand); color: #04211c; border-color: transparent; }

.font-stepper { display: flex; border: 1px solid var(--border); border-radius: var(--radius-pill); overflow: hidden; flex-shrink: 0; }
.step-btn {
  background: var(--surface); border: none; color: var(--text-primary); cursor: pointer; font-weight: 500;
  font-size: 0.8125rem; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; line-height: 1;
  width: 2rem; height: 2rem; padding: 0; flex-shrink: 0;
}
.step-btn.active { background: var(--gradient-brand); color: #ffffff; }

.cta-header { white-space: nowrap; }

.tts-floating {
  position: fixed; bottom: 24px; right: 24px; z-index: 1500;
  background: #b3261e; border: 1px solid #b3261e; color: #fff;
  padding: 10px 18px; border-radius: var(--radius-pill);
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 0.8125rem; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.tts-floating:hover { background: #d33c33; }

.mobile-toggle {
  display: none; background: var(--surface); border: 1px solid var(--border); border-radius: 50%;
  width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer;
  flex-shrink: 0;
}

.nav-close { display: none; }

.nav-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1350;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-overlay.active { opacity: 1; pointer-events: all; }

/* ==========================================
   LINE SIDEBAR (left section navigation)
   ========================================== */
.line-sidebar {
  --ls-accent: var(--accent-b);
  --ls-text: var(--text-muted);
  --ls-marker: var(--border);
  --ls-marker-length: 46px;
  --ls-max-shift: 18px;

  position: fixed;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  padding-left: calc(var(--ls-marker-length) + 4px);
}

.line-sidebar__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.line-sidebar__item { position: relative; }

.line-sidebar__item::before {
  content: '';
  position: absolute;
  inset: -8px -8px -8px calc(-1 * var(--ls-marker-length) - 12px);
}

.line-sidebar__label {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--ls-accent) calc(var(--effect, 0) * 100%), var(--ls-text));
  transform: translateX(calc(var(--effect, 0) * var(--ls-max-shift)));
}

.line-sidebar__index {
  font-family: var(--font-mono);
  margin-right: 0.55rem;
  font-size: 0.75em;
  opacity: calc(0.5 + var(--effect, 0) * 0.5);
}

.line-sidebar__marker {
  position: absolute;
  top: 50%;
  left: calc(-1 * var(--ls-marker-length));
  height: 1px;
  width: var(--ls-marker-length);
  background-color: color-mix(in srgb, var(--ls-accent) calc(var(--effect, 0) * 100%), var(--ls-marker));
  transform-origin: left center;
  transform: translateY(-50%) scaleX(calc(0.65 + var(--effect, 0) * 0.55));
}

.line-sidebar__item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: calc(100% + 11px);
  left: calc(-1 * var(--ls-marker-length));
  height: 1px;
  width: calc(var(--ls-marker-length) * 0.5);
  background-color: var(--ls-marker);
  opacity: 0.5;
  transform-origin: left center;
  transform: translateY(-50%) scaleX(calc(0.7 + var(--effect, 0) * 0.5));
}

.line-sidebar__item[aria-current="true"] .line-sidebar__label { font-weight: 600; }

/* ==========================================
   SECTIONS — GENERIC
   ========================================== */
.section { padding: 50px 0; position: relative; }

.section-header {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 48px;
}

.section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 600; }

/* ==========================================
   HERO
   ========================================== */
.hero {
  padding-top: clamp(96px, 18vh, 176px); padding-bottom: clamp(8px, 2vh, 24px);
  position: relative; overflow: hidden; text-align: center;
}

.hero-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(var(--primary-rgb), 0.28), transparent 55%),
    radial-gradient(circle at 75% 30%, rgba(var(--accent-b-rgb), 0.22), transparent 50%),
    url('/images/hero-background.jpg');
  background-size: cover; background-position: center;
  opacity: 0.9; pointer-events: none; z-index: -1;
}

.hero-inner { display: flex; flex-direction: column; align-items: center; position: relative; }

.badge {
  display: inline-block; background: rgba(var(--primary-rgb), 0.14);
  border: 1px solid rgba(var(--primary-rgb), 0.3); color: var(--primary-light);
  padding: 6px 16px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 600;
  margin-bottom: clamp(10px, 2.2vh, 26px); text-transform: uppercase; letter-spacing: 0.08em;
}

.hero-title {
  font-size: clamp(2.625rem, min(8vw, 9vh), 5.5rem); font-weight: 800; line-height: 1.02;
  margin-bottom: clamp(14px, 2.5vh, 26px); max-width: 900px;
}
.hero-subtitle { display: block; font-weight: 400; font-size: 0.4em; color: var(--text-secondary); margin-top: 14px; }

.hero-desc { font-size: 1.125rem; margin: 0 auto clamp(16px, 3.5vh, 36px) auto; max-width: 620px; }

.hero-actions { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; margin-bottom: clamp(16px, 4.5vh, 48px); }

.hero-visual { display: none; }

.stats-row {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(20px, 5.5vh, 56px);
}
.stat-chip {
  padding: 14px 22px; text-align: left; min-width: 150px;
}
.stat-number { display: block; font-family: var(--font-heading); font-size: 1.625rem; font-weight: 700; }
.stat-number span { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* ==========================================
   PARTNER LOGOS (static, centered)
   ========================================== */
.partners-static {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: clamp(14px, 3vh, 28px) 0;
}
.partners-label {
  text-align: center; font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--text-muted); margin-bottom: clamp(8px, 2vh, 20px);
}
.partners-row {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: clamp(16px, 4vw, 48px);
}
.partners-row .partner-logo {
  width: auto; height: calc(clamp(48px, 8vh, 108px) * var(--partner-scale, 1));
  max-width: 26%; object-fit: contain; opacity: 0.85; transition: var(--transition);
}
.partners-row .partner-logo:hover { opacity: 1; }

.partner-logo--blk          { --partner-scale: 1.3; }
.partner-logo--mlu          { --partner-scale: 1.3; }
.partner-logo--pflegekassen { --partner-scale: 1.6; }
.partner-logo--ministerium  { --partner-scale: 1.05; }
.partner-logo--landkreis1   { --partner-scale: 1; }
.partner-logo--landkreis2   { --partner-scale: 1; }
.partner-logo--hawk         { --partner-scale: 1; }

.was-ist-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
}

.was-ist-text { grid-row: 1 / 3; padding: 40px; }

.highlight-text {
  font-size: 1.3125rem; color: var(--text-primary); line-height: 1.4; margin-bottom: 18px;
  font-weight: 500; border-left: 3px solid var(--accent-b); padding-left: 16px;
}
.was-ist-text p { margin-bottom: 16px; }
.was-ist-text ul { list-style: none; margin-bottom: 16px; padding-left: 4px; }
.was-ist-text ul li { position: relative; padding-left: 22px; margin-bottom: 8px; color: var(--text-secondary); }
.was-ist-text ul li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-b); }

.feature-card { padding: 28px; position: relative; overflow: hidden; }
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--gradient-brand); opacity: 0.6;
}
.feature-icon { width: 24px; height: 24px; margin-bottom: 16px; }
.feature-title { font-size: 1rem; margin-bottom: 8px; }
.feature-desc { font-size: 0.8125rem; }

/* ==========================================
   GOALS — HORIZONTAL SCROLL
   ========================================== */
.goals-scroller {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 10px; margin: 0 -24px; padding-left: 24px; padding-right: 24px;
  scrollbar-width: none;
}
.goals-scroller::-webkit-scrollbar { display: none; }

.goal-card {
  scroll-snap-align: start; flex: 0 0 min(360px, 82vw);
  padding: 40px 32px; position: relative; overflow: hidden;
}

.goal-num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end;
  font-family: var(--font-heading); font-size: min(13.125rem, 47.5vw); font-weight: 800;
  color: var(--text-primary); opacity: 0.08; line-height: 1;
  padding-right: 8px; pointer-events: none;
}
.goal-title { font-size: 1.1875rem; margin-bottom: 14px; position: relative; z-index: 1; }
.goal-desc { position: relative; z-index: 1; font-size: 0.875rem; }

.scroller-controls { display: none; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.scroller-btn {
  width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.scroller-btn:hover { border-color: var(--primary-light); background: rgba(var(--primary-rgb), 0.14); }

/* ==========================================
   AUDIENCE — SLIDE CONTENT (shares the .carousel machinery below)
   ========================================== */
.audience-slide { max-width: 560px; margin: 0 auto; text-align: center; }

.audience-slide-icon {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin: 0 auto 24px auto; border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.14); border: 1px solid rgba(var(--primary-rgb), 0.3);
}
.audience-slide-icon .icon { width: 26px; height: 26px; }

.audience-slide-title { font-size: 1.5rem; margin-bottom: 16px; }
.audience-slide-desc { font-size: 0.9375rem; }

/* ==========================================
   USE CASES & AUDIENCE / CAROUSEL
   ========================================== */
.carousel { display: flex; align-items: stretch; gap: 16px; margin-bottom: 24px; }
.carousel-nav {
  width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: var(--transition); flex-shrink: 0;
  align-self: center;
}
.carousel-nav:hover { border-color: var(--primary-light); background: rgba(var(--primary-rgb), 0.14); }

.carousel-viewport { flex: 1; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.carousel-slide { flex: 0 0 100%; min-width: 100%; padding: 36px; }

.slide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.slide-visual { aspect-ratio: 4 / 3; }
.slide-visual img { object-fit:cover; background: var(--surface-strong); }

.slide-category { display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: var(--primary-light); letter-spacing: 0.08em; margin-bottom: 10px; }
.slide-title { font-size: 1.375rem; margin-bottom: 16px; }
.slide-desc { font-size: 0.875rem; }

.carousel-progress { display: flex; align-items: center; justify-content: center; gap: 14px; }
.carousel-progress-track { width: 160px; height: 2px; background: var(--border); border-radius: 1px; overflow: hidden; }
.carousel-progress-fill { height: 100%; background: var(--gradient-brand); transition: width 0.4s ease; }
.carousel-progress-count { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-muted); }

/* ==========================================
   DOWNLOADS
   ========================================== */
.downloads-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}

.download-card { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.download-title { font-size: 1.0625rem; margin-bottom: 8px; }
.download-desc { font-size: 0.875rem; }

.download-files { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.download-file {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: var(--surface-strong); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.download-file-icon { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.7; }
.download-file-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.download-file-name { font-size: 0.8125rem; font-weight: 500; color: var(--text-primary); overflow-wrap: anywhere; }
.download-file-meta { font-size: 0.6875rem; color: var(--text-muted); }
.download-file-btn {
  width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
  color: var(--primary-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: var(--transition); text-decoration: none;
}
.download-file-btn:hover { background: var(--gradient-brand); }
.download-file-btn:hover .icon { filter: none !important; }

.downloads-hint { margin-top: 26px; font-size: 0.8125rem; color: var(--text-muted); text-align: center; }

/* ==========================================
   NEWS — LIST
   ========================================== */
.news-filter-bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding: 16px 20px; margin-bottom: 30px;
}
.search-box { display: flex; align-items: center; gap: 10px; max-width: 320px; width: 100%; }
.search-box .icon { width: 16px; height: 16px; opacity: 0.6; }
.search-box input { background: transparent; border: none; color: var(--text-primary); font-family: inherit; font-size: 0.875rem; width: 100%; }
.search-box input:focus { outline: none; }

.filter-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-btn {
  background: transparent; border: 1px solid var(--border); color: var(--text-secondary);
  padding: 6px 14px; border-radius: var(--radius-pill); cursor: pointer; font-size: 0.8125rem; transition: var(--transition);
}
.tag-btn:hover, .tag-btn.active { background: rgba(var(--primary-rgb), 0.14); color: var(--primary-light); border-color: var(--primary-light); }

.news-grid { display: flex; flex-direction: column; gap: 14px; }

.news-card {
  padding: 26px 30px; display: grid; grid-template-columns: 130px 1fr 44px; gap: 24px; align-items: center;
  transition: var(--transition); border-left: 2px solid transparent;
}
.news-card:hover { border-left-color: var(--accent-b); transform: translateX(4px); }

.news-card-header { display: flex; flex-direction: column; gap: 8px; }
.news-tag {
  background: rgba(var(--primary-rgb), 0.14); color: var(--primary-light); font-size: 0.6875rem; font-weight: 600;
  padding: 4px 10px; border-radius: var(--radius-pill); text-transform: uppercase; width: fit-content;
}
.news-date { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); }
.news-title { font-size: 1.0625rem; margin-bottom: 8px; line-height: 1.3; }
.news-excerpt { font-size: 0.875rem; }

.btn-read-more {
  width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
  color: var(--primary-light); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.btn-read-more:hover { background: var(--gradient-brand);}
.btn-read-more .icon { width: 16px; height: 16px; }
.btn-read-more-text { display: none; }

/* ==========================================
   MODAL
   ========================================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(var(--bg-rgb), 0.7); backdrop-filter: blur(10px);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease; padding: 20px;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-content { width: 100%; max-width: 560px; padding: 36px; position: relative; transform: translateY(16px); transition: transform 0.3s ease; }
.modal-overlay.active .modal-content { transform: translateY(0); }

.modal-close {
  position: absolute; top: 18px; right: 18px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text-primary); width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.modal-close:hover { border-color: var(--primary-light); }

.modal-header { margin-bottom: 18px; border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.modal-tag {
  display: inline-block; background: rgba(var(--primary-rgb), 0.14); color: var(--primary-light);
  font-size: 0.6875rem; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-pill);
  text-transform: uppercase; margin-bottom: 10px;
}
.modal-title { font-size: 1.375rem; margin-bottom: 8px; }
.modal-date { font-size: 0.75rem; color: var(--text-muted); }
.modal-body { font-size: 0.9375rem; color: var(--text-secondary); margin-bottom: 24px; }
.modal-body p { margin-bottom: 14px; }
.modal-body img { width: 100%; height: auto; border-radius: var(--radius-sm); margin-bottom: 16px; display: block; }

/* ==========================================
   404 ERROR PAGE
   ========================================== */
.error-section { padding-top: clamp(140px, 22vh, 220px); padding-bottom: 80px; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; }
.error-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.error-visual { display: flex; align-items: center; justify-content: center; }
.error-visual img { width: 100%; max-width: 380px; height: auto; }
.error-code {
  font-family: var(--font-heading); font-weight: 800; font-size: clamp(3.5rem, 9vw, 6rem);
  line-height: 1; margin-bottom: 8px;
}
.error-code span { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.error-title { font-size: clamp(1.375rem, 3vw, 1.75rem); margin-bottom: 14px; }
.error-desc { font-size: 1rem; margin-bottom: 30px; max-width: 480px; }
.error-actions { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .error-inner { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .error-actions { justify-content: center; }
  .error-visual img { max-width: 260px; }
}

/* ==========================================
   CTA BAND
   ========================================== */
.cta-band { padding: 60px 0; }
.cta-band-inner {
  padding: 60px 50px; text-align: center; position: relative; overflow: hidden;
}
.cta-band-inner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(var(--accent-b-rgb), 0.18), transparent 60%);
  pointer-events: none;
}
.cta-band-title { font-size: clamp(1.625rem, 4vw, 2.375rem); max-width: 640px; margin: 0 auto 28px auto; position: relative; }

/* ==========================================
   FOOTER
   ========================================== */
.site-footer { border-top: 1px solid var(--border); padding: 60px 0 0 0; margin-top: 40px; position: relative; overflow: hidden; }

.footer-wordmark {
  position: absolute; left: 50%; top: 20px; transform: translateX(-50%);
  font-family: var(--font-heading); font-weight: 800; font-size: clamp(3.75rem, 14vw, 12.5rem);
  color: var(--text-primary); opacity: 0.035; white-space: nowrap; pointer-events: none; letter-spacing: -0.02em;
}

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; padding-bottom: 50px; position: relative; }
.footer-logo { height: 40px; width: auto; margin-bottom: 18px; }
.footer-desc { font-size: 0.875rem; max-width: 320px; }
.footer-title { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }

.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; transition: var(--transition); }
.footer-links ul li a:hover { color: var(--primary-light); padding-left: 4px; }

.footer-logos { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.footer-partner-logo { height: calc(70px * var(--partner-scale, 1)); width: auto; object-fit: contain; opacity: 0.7; }
.footer-partner-logo:hover { opacity: 1; }

.footer-partner-logo--blk { --partner-scale: 1; }
.footer-partner-logo--mlu { --partner-scale: 1; }
.footer-partner-logo--pflegekassen { --partner-scale: 1; }
.footer-partner-logo--ministerium { --partner-scale: 1; }
.footer-partner-logo--landkreis1 { --partner-scale: 1; }
.footer-partner-logo--landkreis2 { --partner-scale: 1; }
.footer-partner-logo--hawk { --partner-scale: 1; }

.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; position: relative; }
.footer-bottom-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 0.75rem; color: var(--text-muted); }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.footer-legal a:hover { color: var(--text-primary); }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1150px) {
  .line-sidebar { display: none; }
  .footer-wordmark {
    display: none;
  }
}

@media (max-width: 992px) {
  .was-ist-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .was-ist-text { grid-row: auto; }
  .news-grid { gap: 14px; }
  .news-card { grid-template-columns: 1fr; text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .site-nav { display: none; }

  .line-sidebar {
    display: block;
    position: fixed; top: 0; left: 0; z-index: 1400;
    width: min(300px, 82vw); height: 100vh; height: 100dvh;
    background: var(--header-bg); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    border-right: 1px solid var(--border);
    padding: 100px 28px 40px calc(var(--ls-marker-length) + 28px);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }
  .line-sidebar.open { transform: translateX(0); }

  .line-sidebar__list { gap: 26px; }

  .nav-close {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 20px; right: 20px;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--border); cursor: pointer;
  }

  .nav-overlay { display: block; }

  .mobile-toggle { display: flex; }
}

@media (max-width: 768px) {
  .partners-row { gap: 20px;}
  .cta-header { display: none; }
  .scroller-controls { display: flex; }
  .goal-card { flex: 0 0 100%; }
  .slide-grid { grid-template-columns: 1fr; gap: 20px; }
  .carousel-slide { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 10px; }
  .stat-chip { min-width: 130px; padding: 12px 16px; }
  .carousel { gap: 8px; }
  .carousel-nav { width: 36px; height: 36px; }
  .settings-panel { width: min(15rem, calc(100vw - 48px)); }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 16px; }
  .brand-logo { height: 48px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .news-card { padding: 20px; }
  .modal-content { padding: 26px; }
  .auth-gate-card { padding: 28px 20px; }
}

/* ==========================================
   AUTH GATE MODAL (Password Protection)
   ========================================== */
html.auth-locked {
  overflow: hidden !important;
}

html.auth-locked body > *:not(#auth-gate) {
  filter: blur(14px);
  pointer-events: none !important;
  user-select: none !important;
}

.auth-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(var(--bg-rgb), 0.78);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html:not(.auth-locked) .auth-gate-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-gate-card {
  width: 100%;
  max-width: 440px;
  padding: 38px 32px;
  position: relative;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

html:not(.auth-locked) .auth-gate-card {
  transform: translateY(16px);
}

.auth-gate-icon-wrapper {
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--primary-rgb), 0.24);
}

.auth-gate-icon {
  stroke: var(--primary);
}

.auth-gate-header {
  margin-bottom: 24px;
}

.auth-gate-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.25;
}

.auth-gate-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.auth-gate-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-gate-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.auth-gate-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.auth-gate-input {
  width: 100%;
  padding: 13px 44px 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-gate-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.22);
}

.auth-gate-toggle-pw {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.auth-gate-toggle-pw:hover {
  color: var(--text-primary);
}

.auth-gate-error {
  font-size: 0.8125rem;
  color: #ef4444;
  margin-top: 4px;
  line-height: 1.35;
}

.auth-gate-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
}

.auth-gate-submit svg {
  transition: transform 0.2s ease;
}

.auth-gate-submit:hover svg {
  transform: translateX(3px);
}

@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.auth-gate-card.shake {
  animation: authShake 0.4s ease;
}
