/* ==========================================================================
   Klinikfinanzierung fair Niedersachsen
   Design System: Hell, professionell, medizinisch-institutionell
   ========================================================================== */

/* --- Fonts (lokal, DSGVO-konform) --- */

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/figtree-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;
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/figtree-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;
}

@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/notosans-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;
}

@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/notosans-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;
}

/* --- Custom Properties --- */

:root {
  --color-primary: #0F766E;
  --color-primary-light: #F4EFE7;
  --color-primary-lighter: #FAF7F1;
  --color-secondary: #14B8A6;
  --color-cta: #0F766E;
  --color-cta-hover: #0A5C56;
  --color-dark: #042F2E;
  --color-dark-lighter: #0A3D3C;
  --color-bg: #FFFFFF;
  --color-bg-alt: #f4f4f5;
  --color-text: #000000;
  --color-text-on-dark: #FFFFFF;
  --color-text-muted: #000000;
  --color-border: #E2E8F0;
  --color-stat: #0F766E;

  --font-heading: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1200px;
  --section-padding: 5rem 0;
  --section-padding-mobile: 2rem 0;
  --container-padding: 0 1.25rem;
  --radius: 8px;
  --transition: 200ms ease;
}

html {
  scroll-padding-top: 90px;
}

/* --- Reset --- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-cta);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-cta);
  outline-offset: 2px;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }

p + p { margin-top: 1rem; }

/* --- Skip Link --- */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-cta);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  z-index: 9999;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
}

/* --- Container --- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--color-cta);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-cta-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-cta);
  border: 1px solid var(--color-cta);
}

.btn-outline:hover {
  background: var(--color-cta);
  color: #fff;
}

.btn-on-dark {
  background: #fff;
  color: var(--color-dark);
}

.btn-on-dark:hover {
  background: var(--color-primary-light);
  color: var(--color-dark);
}

/* --- Header --- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

@media (min-width: 1024px) {
  .logo-img {
    height: 56px;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  line-height: 1.2;
}

.logo:hover {
  color: var(--color-primary);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text-main {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo-text-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

.main-nav {
  display: none;
}

.nav-list {
  display: flex;
  gap: 1.75rem;
}

.nav-list a {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.25rem 0;
  position: relative;
  transition: color var(--transition);
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--color-primary);
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
  width: 100%;
}

.header-cta {
  display: none;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

/* Hamburger */

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before { top: -7px; }
.nav-toggle-icon::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile Nav (Vollbild-Overlay, analog Hinsch) */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #042F2E;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.mobile-nav__close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.mobile-nav__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 5rem 1.5rem 2rem;
}

.mobile-nav__links {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.mobile-nav__links a {
  display: inline-block;
  padding: 0.65rem 1rem;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.35rem, 5vw, 1.9rem);
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-nav__links a:hover,
.mobile-nav__links a[aria-current="page"] {
  color: var(--color-secondary);
  transform: scale(1.03);
}

/* Body scroll-lock wenn Menu offen */
body.menu-is-open {
  overflow: hidden;
}

/* --- Hero Section --- */

.hero {
  position: relative;
  padding: 6rem 0 8rem;
  background: var(--color-dark);
  color: var(--color-text-on-dark);
  overflow: hidden;
}


.hero-content {
  position: relative;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--color-text-on-dark);
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: #fff;
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.hero-subtitle strong {
  font-weight: 700;
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Stats Bar --- */

.stats-bar {
  padding: 4rem 0;
  background: var(--color-bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.stat-item {
  text-align: center;
  padding: 1.25rem 0.75rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-stat);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.4;
}

.stat-source {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

@media (min-width: 480px) and (max-width: 767px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* --- Section (generic) --- */

.section {
  padding: var(--section-padding-mobile);
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-dark {
  background: var(--color-dark);
  color: var(--color-text-on-dark);
}

.section-header {
  max-width: 720px;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

#wer-wir-sind .section-header h2,
#forderungen .section-header h2,
#leistungen .section-header h2,
#faq .section-header h2 {
  color: var(--color-dark);
}

.section-dark .section-header h2 {
  color: var(--color-text-on-dark);
}

.section-header p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.section-dark .section-header p {
  color: #fff;
}

/* --- Problem Section --- */

.problem-content {
  display: grid;
  gap: 3rem;
}

.problem-text {
  max-width: 680px;
}

.problem-text p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.comparison-visual {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 600px;
}

.finanz-gruppe {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.finanz-gruppe-titel {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #000;
}

.finanz-saeulen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.finanz-saeule {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 110px;
  padding: 1rem 0.5rem;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--color-border);
}

.finanz-saeule.erhalten {
  background: rgba(20, 184, 166, 0.08);
  border-color: rgba(20, 184, 166, 0.35);
}

.finanz-saeule.fehlt {
  background: rgba(220, 38, 38, 0.06);
  border: 1.5px dashed #dc2626;
}

.finanz-check {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.finanz-saeule.erhalten .finanz-check {
  color: var(--color-primary);
}

.finanz-saeule.fehlt .finanz-check {
  color: #dc2626;
}

.finanz-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: #000;
}

.finanz-saeule.fehlt .finanz-label {
  color: #dc2626;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.finanz-zusatz {
  font-size: 0.8rem;
  font-weight: 700;
  color: #dc2626;
  letter-spacing: 0.02em;
}

.finanz-hinweis {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .finanz-saeulen {
    gap: 0.5rem;
  }
  .finanz-saeule {
    min-height: 95px;
    padding: 0.75rem 0.35rem;
  }
  .finanz-label {
    font-size: 0.75rem;
  }
  .finanz-check {
    font-size: 1.2rem;
  }
}

/* --- Leistungen Grid --- */

.leistungen-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.leistung-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow var(--transition);
}

.leistung-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.leistung-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.leistung-icon svg {
  width: 24px;
  height: 24px;
}

.leistung-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-stat);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.leistung-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.leistung-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Forderungen --- */

.forderungen-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  counter-reset: forderung;
}

.forderung-item {
  counter-increment: forderung;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

@media (max-width: 767px) {
  .forderung-item {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1.5rem;
  }
}

.forderung-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.forderung-item h3 {
  margin-bottom: 0.5rem;
}

.forderung-item p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Stimmen / Testimonials --- */

.stimmen-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
}

.testimonial-quote {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.25rem;
}

.testimonial-quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary-light);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-avatar svg {
  width: 70%;
  height: 70%;
  margin-bottom: -2px;
}

.testimonial-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* --- Wer wir sind --- */

.wer-wir-sind-header {
  max-width: none;
}

.wer-wir-sind-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .wer-wir-sind-intro {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.wer-wir-sind-intro p {
  margin: 0;
}

.wer-wir-sind-stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.wer-wir-sind-stack > * {
  min-width: 0;
}

.preview-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.map-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(20,184,166,0.06), rgba(20,184,166,0.02)),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(20,184,166,0.12) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(20,184,166,0.12) 39px 40px),
    #f8fafc;
  border: 1px dashed var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
}

/* === Klinik-Karte (Leaflet) === */

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
}

.map-info {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-primary-light);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-height: 220px;
  justify-content: center;
}

.map-info[hidden],
.map-canvas[hidden] {
  display: none;
}

.map-info svg {
  width: 36px;
  height: 36px;
  color: var(--color-primary);
  opacity: 0.5;
}

.map-info p {
  color: var(--color-text);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 560px;
}

.map-info-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-cta);
  font-weight: 600;
  font-family: inherit;
  font-size: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.map-info-link:hover {
  color: var(--color-cta-hover);
}

.map-canvas {
  height: 500px;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #f8fafc;
  position: relative;
  z-index: 0;
  isolation: isolate;
}

@media (max-width: 768px) {
  .map-canvas {
    height: 380px;
  }
}

/* === Datenschutz-Banner (site-wide, unten am Bildschirm) === */

.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1500;
  background: #F4EAD0;
  color: var(--color-dark);
  box-shadow: 0 -8px 24px rgba(4, 47, 46, 0.15);
  border-top: 1px solid #E2D5B0;
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
}

.consent-banner-text-block {
  flex: 1 1 360px;
}

.consent-banner-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 0.35rem 0;
}

.consent-banner-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-dark);
  margin: 0;
}

.consent-banner-text a {
  color: var(--color-dark);
  text-decoration: underline;
  font-weight: 600;
}

.consent-banner-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.consent-banner-btn {
  background: var(--color-cta);
  color: var(--color-text-on-dark);
  border: 1px solid var(--color-cta);
  border-radius: var(--radius);
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  min-width: 140px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.consent-banner-btn--reject {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-dark);
}

.consent-banner-btn--reject:hover {
  background: rgba(4, 47, 46, 0.08);
}

.consent-banner-btn--accept:hover {
  background: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
}

.consent-banner-btn:focus-visible {
  outline: 2px solid var(--color-cta);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .consent-banner-inner {
    padding: 1rem 1rem 1.25rem;
    gap: 1rem;
    flex-direction: column;
    align-items: stretch;
  }
  .consent-banner-text-block {
    flex: 0 0 auto;
  }
  .consent-banner-buttons {
    width: 100%;
  }
  .consent-banner-btn {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* Leaflet popup teal accent */
.leaflet-popup-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.leaflet-popup-content p {
  margin: 0 0 0.5rem 0;
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.4;
}

.leaflet-popup-content a {
  color: var(--color-cta);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: underline;
}

.leaflet-popup-content ul {
  margin: 0.5rem 0 0 0;
  padding-left: 1.2rem;
  font-size: 0.8rem;
  color: var(--color-text);
}

/* Marker cluster icon: Theme-Farben */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: rgba(15, 118, 110, 0.25);
}
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background: var(--color-cta);
  color: #fff;
  font-weight: 700;
}

/* Footer Reset-Button optisch wie ein .footer-nav a */
.footer-reset-consent {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: inherit;
  line-height: 1.4;
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-reset-consent:hover,
.footer-reset-consent:focus-visible {
  color: var(--color-primary);
}

.map-placeholder svg {
  width: 56px;
  height: 56px;
  color: var(--color-primary);
  opacity: 0.8;
}

.map-placeholder p {
  font-size: 0.95rem;
  color: var(--color-text);
  max-width: 480px;
  margin: 0;
  line-height: 1.6;
}

.haeuser-liste-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.haeuser-liste-search {
  position: relative;
  flex: 1 1 280px;
  max-width: 420px;
}

.haeuser-liste-search input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  color: #000;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.haeuser-liste-search input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.haeuser-liste-search input::-webkit-search-cancel-button {
  appearance: none;
}

.haeuser-liste-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  pointer-events: none;
  display: inline-flex;
}

.haeuser-liste-search-icon svg {
  width: 100%;
  height: 100%;
}

.haeuser-liste-count {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.haeuser-liste-scroll {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  overflow-x: auto;
}

.haeuser-liste {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.haeuser-liste thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  text-align: left;
  padding: 0.85rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.haeuser-liste tbody td {
  padding: 0.85rem 1rem;
  color: #000;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.haeuser-liste tbody tr:nth-child(even) td {
  background: #fafbfc;
}

.haeuser-liste tbody tr:last-child td {
  border-bottom: none;
}

.klinik-name-placeholder {
  color: var(--color-text-muted);
  font-style: italic;
}

.haeuser-liste-hint td {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
  text-align: center;
  background: #f8fafc !important;
  padding: 1rem !important;
}

.haeuser-liste tr.klinik-row-hidden,
.klinik-row-hidden {
  display: none !important;
}

.haeuser-liste th.website-col-th,
.haeuser-liste td.website-cell {
  text-align: center;
  width: 70px;
  white-space: nowrap;
}

.haeuser-liste td.website-cell a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  transition: background-color 0.15s ease;
}

.haeuser-liste td.website-cell a:hover,
.haeuser-liste td.website-cell a:focus-visible {
  background: var(--color-primary-light);
  outline: none;
}

.haeuser-liste td.website-cell a:focus-visible {
  box-shadow: 0 0 0 2px var(--color-primary);
}

.haeuser-liste td.website-cell svg {
  width: 18px;
  height: 18px;
}

.klinik-toggle {
  display: block;
  margin: 1rem auto 0;
  padding: 0.7rem 1.4rem;
  background: var(--color-cta);
  color: var(--color-text-on-dark);
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.klinik-toggle:hover {
  background: var(--color-cta-hover);
}

.klinik-toggle:focus-visible {
  outline: 2px solid var(--color-cta);
  outline-offset: 2px;
}

.klinik-toggle[hidden] {
  display: none;
}

/* --- FAQ --- */

#faq .section-header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px -8px rgba(20, 184, 166, 0.3);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background-color 0.15s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: #f8fafc;
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  transition: transform 0.2s;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.4rem 1.25rem;
  color: #000;
  line-height: 1.7;
}

.faq-answer p {
  margin: 0;
  color: #000;
}

.faq-answer em {
  color: var(--color-text-muted);
  font-style: italic;
  margin-right: 0.25rem;
}

.faq-stand {
  text-align: center;
  font-size: 0.8rem;
  color: #000;
  margin: 2rem auto 0;
  opacity: 0.7;
}

/* --- Downloads Section --- */

.downloads-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.download-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.download-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.15);
}

.download-card[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.85;
}

.download-card[aria-disabled="true"]:hover {
  transform: none;
  border-color: var(--color-border);
  box-shadow: none;
}

.download-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-icon svg {
  width: 26px;
  height: 26px;
}

.download-thumb {
  flex-shrink: 0;
  width: 110px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--color-primary-light);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px -4px rgba(0, 0, 0, 0.18);
}

.download-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 594 / 841;
  object-fit: cover;
}

.download-text h3 {
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
  color: #000;
}

.download-text p {
  font-size: 0.92rem;
  color: var(--color-text);
  margin: 0 0 0.5rem;
  line-height: 1.55;
}

.download-meta {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-border);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

@media (min-width: 768px) {
  .downloads-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .downloads-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* --- Petition Section (Vorschau Unterschriftensammlung) --- */

.petition-section {
  padding: 5rem 0;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(20, 184, 166, 0.25), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(20, 184, 166, 0.12), transparent 55%),
    linear-gradient(180deg, #0A3D3C 0%, #0f5552 100%);
}

.petition-section .container {
  max-width: 720px;
}

.petition-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fde68a;
  background: rgba(253, 230, 138, 0.1);
  border: 1px solid rgba(253, 230, 138, 0.3);
  border-radius: 100px;
  margin-bottom: 1.75rem;
}

.petition-section h2 {
  color: var(--color-text-on-dark);
  margin-bottom: 1rem;
}

.petition-intro {
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 2.25rem;
}

.petition-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.petition-counter-number {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-secondary);
  background: linear-gradient(135deg, #5eead4, #2dd4bf);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.petition-counter-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}

.petition-progress {
  position: relative;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  overflow: hidden;
  margin: 0 auto 0.75rem;
  max-width: 520px;
}

.petition-progress-bar {
  height: 100%;
  width: 28%;
  background: linear-gradient(90deg, #2dd4bf, #5eead4);
  border-radius: 100px;
  position: relative;
  overflow: hidden;
}

.petition-progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: petition-shine 2.4s infinite;
}

@keyframes petition-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.petition-ziel {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: #fff;
  margin: 0 0 2rem;
  letter-spacing: 0.02em;
}

.petition-cta[aria-disabled="true"] {
  opacity: 0.9;
  cursor: not-allowed;
  pointer-events: none;
  position: relative;
}

.petition-hinweis {
  font-size: 0.9rem;
  color: #fff;
  margin: 1.5rem auto 0;
  max-width: 520px;
  line-height: 1.6;
}

/* --- CTA Section --- */

.cta-section {
  padding: 5rem 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--color-text-on-dark);
  margin-bottom: 1rem;
}

.cta-section p {
  color: #fff;
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* --- Footer --- */

.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.35;
  margin: 0;
}

.footer-description {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.65;
  margin: 0;
  max-width: 320px;
}

.footer-col__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1.1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.4;
  transition: color var(--transition);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--color-primary);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--color-text);
  margin: 0;
}

/* --- Scroll Animations --- */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Hinweis-Box --- */

.hinweis {
  background: var(--color-primary-light);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-top: 1.5rem;
}

/* --- Responsive: Tablet (768px+) --- */

@media (min-width: 768px) {
  .section {
    padding: var(--section-padding);
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .stat-item {
    padding: 1.5rem 1rem;
  }

  .stat-number {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
  }

  .stat-label {
    font-size: 0.9rem;
  }

  .stat-source {
    font-size: 0.75rem;
  }

  .leistungen-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stimmen-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .forderungen-list {
    gap: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
  }

  .hero {
    padding: 7rem 0 9rem;
  }
}

/* --- Responsive: Desktop (1024px+) --- */

@media (min-width: 1024px) {
  .main-nav {
    display: block;
  }

  .header-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .leistungen-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .problem-content {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }

  .hero {
    padding: 8rem 0 10rem;
  }

  .hero-content {
    max-width: 680px;
  }
}

/* --- Responsive: Large Desktop (1440px+) --- */

@media (min-width: 1440px) {
  :root {
    --max-width: 1280px;
  }
}

/* --- Mobile-only: Tabelle "Wer wir sind" als Karten --- */

@media (max-width: 767px) {
  .haeuser-liste-scroll {
    overflow: visible;
    max-height: none;
    border: none;
    background: transparent;
    border-radius: 0;
  }

  .haeuser-liste,
  .haeuser-liste tbody,
  .haeuser-liste tr,
  .haeuser-liste td {
    display: block;
    width: 100%;
  }

  .haeuser-liste thead {
    display: none;
  }

  .haeuser-liste tbody tr {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    margin-bottom: 0.85rem;
  }

  .haeuser-liste tbody tr:nth-child(even) td {
    background: transparent;
  }

  .haeuser-liste tbody tr:last-child {
    margin-bottom: 0;
  }

  .haeuser-liste tbody td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.4rem 0;
    border: none;
    text-align: right;
  }

  .haeuser-liste tbody td::before {
    content: attr(data-label);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text);
    text-align: left;
    flex: 0 0 auto;
  }

  .haeuser-liste tbody tr.haeuser-liste-hint {
    background: var(--color-primary-light);
    border: 1px solid var(--color-border);
    text-align: left;
  }

  .haeuser-liste tbody tr.haeuser-liste-hint td {
    display: block;
    text-align: left;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    padding: 0 !important;
  }

  .haeuser-liste tbody tr.haeuser-liste-hint td::before {
    content: none;
  }
}

/* --- Reduced Motion --- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* === Petition-Pill (Reminder, Desktop + Mobile-Variante) === */
/* Phase 1 = Desktop ab 769px. Phase 2 = Mobile bis 768px, schmal & zentriert. */

.petition-pill {
  display: none;
}

@media (max-width: 768px) {
  .petition-pill {
    display: inline-flex;
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.2rem;
    background: #F7821B;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(247, 130, 27, 0.38), 0 3px 8px rgba(4, 47, 46, 0.18);
    max-width: calc(100vw - 32px);
    white-space: nowrap;
  }

  .petition-pill[data-mobile-hidden="true"] {
    display: none;
  }

  .petition-pill__arrow {
    font-size: 0.95rem;
    line-height: 1;
  }

  .petition-pill:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 3px;
  }
}

@media (min-width: 769px) {
  .petition-pill {
    display: inline-flex;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.55rem;
    background: #F7821B;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: 0 14px 32px rgba(247, 130, 27, 0.4), 0 4px 10px rgba(4, 47, 46, 0.18);
    transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  }

  .petition-pill:hover,
  .petition-pill:focus-visible {
    filter: brightness(1.12);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(247, 130, 27, 0.5), 0 4px 12px rgba(4, 47, 46, 0.22);
  }

  .petition-pill:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 3px;
  }

  .petition-pill__arrow {
    font-size: 1.05rem;
    line-height: 1;
    transition: transform 0.15s ease;
  }

  .petition-pill:hover .petition-pill__arrow {
    transform: translateX(3px);
  }
}
