/* ============================================================
   Die K-Wahl — Stylesheet (v3)
   Designsystem aus der freigegebenen Vorlage:
   • Salbeigrün #769774 + Wahlorange #F39200
   • Stabil Grotesk (lokal gehostet, DSGVO-konform)
   • Container-zentriert, scharfe Kanten (kein border-radius)
   • Heller Pfirsich-CTA-Banner statt grün
   ============================================================ */

/* ----- Stabil Grotesk — komplett lokal eingebunden ----- */
/* Light (300) */
@font-face {
  font-family: 'Stabil Grotesk';
  font-style: normal;  font-weight: 300;
  font-display: swap;
  src: url('../fonts/StabilGrotesk-40Light.woff2') format('woff2');
}
@font-face {
  font-family: 'Stabil Grotesk';
  font-style: italic;  font-weight: 300;
  font-display: swap;
  src: url('../fonts/StabilGrotesk-45LightItalic.woff2') format('woff2');
}
/* Regular (400) */
@font-face {
  font-family: 'Stabil Grotesk';
  font-style: normal;  font-weight: 400;
  font-display: swap;
  src: url('../fonts/StabilGrotesk-50Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Stabil Grotesk';
  font-style: italic;  font-weight: 400;
  font-display: swap;
  src: url('../fonts/StabilGrotesk-55RegularItalic.woff2') format('woff2');
}
/* Medium (500) */
@font-face {
  font-family: 'Stabil Grotesk';
  font-style: normal;  font-weight: 500;
  font-display: swap;
  src: url('../fonts/StabilGrotesk-60Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Stabil Grotesk';
  font-style: italic;  font-weight: 500;
  font-display: swap;
  src: url('../fonts/StabilGrotesk-65MediumItalic.woff2') format('woff2');
}
/* Bold (700) */
@font-face {
  font-family: 'Stabil Grotesk';
  font-style: normal;  font-weight: 700;
  font-display: swap;
  src: url('../fonts/StabilGrotesk-70Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Stabil Grotesk';
  font-style: italic;  font-weight: 700;
  font-display: swap;
  src: url('../fonts/StabilGrotesk-75BoldItalic.woff2') format('woff2');
}
/* Black (800) */
@font-face {
  font-family: 'Stabil Grotesk';
  font-style: normal;  font-weight: 800;
  font-display: swap;
  src: url('../fonts/StabilGrotesk-80Black.woff2') format('woff2');
}
@font-face {
  font-family: 'Stabil Grotesk';
  font-style: italic;  font-weight: 800;
  font-display: swap;
  src: url('../fonts/StabilGrotesk-85BlackItalic.woff2') format('woff2');
}

/* ---------- Design-Tokens ---------- */
:root {
  --primary:               #769774;   /* Salbeigrün — K-Wahl-Primärfarbe */
  --primary-fixed:         #e4eee3;   /* sehr helles Grün für Hintergründe */
  --on-primary:            #ffffff;
  --accent:                #F39200;   /* Wahlorange */
  --on-accent:             #ffffff;
  --cta-bg:                #FFF4E5;   /* helles Pfirsich für CTA-Banner */
  --background:            #fcf9f8;
  --surface-bright:        #fcf9f8;
  --surface-secondary:     #ffffff;
  --on-surface:            #1b1c1c;
  --on-surface-variant:    #424841;
  --on-surface-muted:      #4b5563;   /* Tailwind gray-600 */
  --outline-variant:       #c2c8be;
  --border-light:          #e5e7eb;   /* Tailwind gray-200 */

  --font-body: "Stabil Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container-max: 1280px;
  --gutter:        2rem;
  --shadow-sm:     0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md:     0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:     0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl:     0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl:    0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-organic: 0 4px 20px rgba(118, 151, 116, 0.12);
  --shadow-green-soft: 0 1px 2px 0 rgb(118 151 116 / 0.05);
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }

/* Ausnahme: Kreisform für Avatare und runde Badges */
.rounded-full { border-radius: 9999px !important; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: #fff; }

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

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: 1.2;
  color: var(--primary);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

p { margin: 0 0 1em; }

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  transition: color .15s ease;
}
a:hover { color: var(--accent); text-decoration: underline; }

ul, ol { padding-left: 1.4em; }
li { margin-bottom: .4em; }

/* Skip-Link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: var(--on-primary);
  padding: 12px 18px; z-index: 100;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Sektionen-Padding */
.section { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }
.section--green-fixed { background: var(--primary-fixed); }
.section--white { background: #ffffff; }
.section--surface { background: var(--surface-bright); }
.section--cta {
  background: var(--cta-bg);   /* Pfirsich-Hintergrund über volle Bildschirmbreite */
  padding: 0;                  /* innerer .cta-banner hat eigenes Padding */
}

/* ---------- Icons (Inline-SVG-Sprite) ---------- */
.icon {
  width: 1.25em; height: 1.25em;
  display: inline-block;
  vertical-align: -0.2em;
  fill: currentColor;
  flex-shrink: 0;
}
.icon--lg { width: 2rem; height: 2rem; vertical-align: middle; }

/* ---------- Site-Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.site-header__inner {
  height: 80px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
}
.site-header__logo {
  display: flex; align-items: center; gap: 1rem;
  text-decoration: none;
}
.site-header__logo img { height: 40px; width: auto; display: block; }
.site-header__logo:hover { text-decoration: none; }

.nav {
  display: none; gap: 2rem;
}
@media (min-width: 768px) { .nav { display: flex; } }
.nav a {
  font-size: 1rem; font-weight: 700;
  color: var(--on-surface-muted);
  padding: 0;
  transition: color .15s ease;
}
.nav a:hover { color: var(--accent); text-decoration: none; }
.nav a.is-active { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.nav-cta {
  display: none;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: filter .15s ease, transform .1s ease;
}
@media (min-width: 640px) { .nav-cta { display: inline-block; } }
.nav-cta:hover { filter: brightness(1.1); color: var(--on-accent); text-decoration: none; }
.nav-cta:active { transform: scale(0.97); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--primary);
  font: inherit;
}
.nav-toggle .icon { width: 28px; height: 28px; }
@media (min-width: 768px) { .nav-toggle { display: none; } }

/* Mobile-Menü-Drawer */
.mobile-menu {
  display: none;
  position: absolute; top: 80px; left: 0; right: 0;
  background: var(--background);
  border-bottom: 1px solid var(--outline-variant);
  box-shadow: var(--shadow-md);
  padding: 1rem var(--gutter);
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block; padding: 14px 0;
  color: var(--on-surface); text-decoration: none; font-weight: 700;
  border-bottom: 1px solid var(--outline-variant);
}
.mobile-menu a:last-child {
  margin-top: 12px;
  background: var(--primary); color: var(--on-primary);
  padding: 14px 20px;
  text-align: center;
  border-bottom: 0;
}
@media (min-width: 768px) { .mobile-menu { display: none !important; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem; font-weight: 700;
  border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: filter .15s, transform .1s, background .15s, color .15s;
  font-family: inherit;
}
.btn:hover { filter: brightness(1.1); text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn--accent {
  background: var(--accent); color: var(--on-accent);
  box-shadow: var(--shadow-lg);
}
.btn--accent:hover { color: var(--on-accent); }
.btn--outline {
  background: transparent; color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover { background: var(--primary-fixed); color: var(--primary); filter: none; }
.btn--lg { padding: 1.25rem 2.5rem; font-size: 1.125rem; box-shadow: var(--shadow-xl); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--surface-bright);
}
.hero__image {
  position: absolute; inset: 0; z-index: 0;
}
.hero__image img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__image::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.hero__inner {
  position: relative; z-index: 10;
  width: 100%;
  padding: 4rem 0;
}
.hero__card {
  max-width: 42rem;
  background: rgba(252, 249, 248, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 2rem;
  box-shadow: var(--shadow-2xl);
}
@media (min-width: 768px) { .hero__card { padding: 3rem; } }
.hero__eyebrow {
  display: block; margin-bottom: 1rem;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent);
}
.hero__title {
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 800; line-height: 1.15;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.hero__title span { color: var(--accent); }
.hero__lead {
  font-size: 1.125rem; line-height: 1.625;
  color: #374151; /* gray-700 */
  margin-bottom: 2.5rem;
  font-weight: 500;
}
@media (min-width: 768px) { .hero__lead { font-size: 1.25rem; } }
.hero__cta { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .hero__cta { flex-direction: row; } }

/* Schlanker Page-Hero (Unterseiten ohne großes Foto) */
.page-hero {
  padding: 4rem 0;
  background: var(--primary-fixed);
}
.page-hero__eyebrow {
  display: block; margin-bottom: 0.5rem;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent);
}
.page-hero h1 {
  color: var(--primary);
  margin-bottom: 1rem;
  max-width: 56rem;
}
.page-hero p  {
  font-size: 1.125rem; color: var(--on-surface-variant);
  max-width: 48rem; font-weight: 500; margin: 0;
}
@media (min-width: 768px) { .page-hero p { font-size: 1.25rem; } }

/* Foto-Page-Hero */
.page-hero--photo {
  position: relative;
  background: var(--primary);
  color: var(--on-primary);
  overflow: hidden;
  min-height: 360px;
  padding: 4rem 0;
  display: flex; align-items: center;
}
.page-hero--photo .page-hero__image {
  position: absolute; inset: 0; z-index: 0;
}
.page-hero--photo .page-hero__image img {
  width: 100%; height: 100%; object-fit: cover;
}
.page-hero--photo .page-hero__image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(118, 151, 116, 0.92) 0%, rgba(118, 151, 116, 0.65) 60%, rgba(118, 151, 116, 0.25) 100%);
}
.page-hero--photo .container { position: relative; z-index: 10; width: 100%; }
.page-hero--photo h1 { color: var(--on-primary); }
.page-hero--photo p  { color: rgba(255, 255, 255, 0.92); }
.page-hero--photo .page-hero__eyebrow { color: #ffd599; }

/* ---------- Section-Heading mit Trennlinie ---------- */
.section-head {
  max-width: 42rem; margin: 0 auto 4rem;
  text-align: center;
}
.section-head h2 { margin-bottom: 1rem; color: var(--primary); }
.section-head__rule {
  width: 6rem; height: 4px;
  background: var(--accent);
  border-radius: 9999px !important;
  margin: 1rem auto 0;
}
.section-head p {
  margin-top: 1.5rem;
  color: var(--on-surface-variant);
  font-size: 1.125rem;
}

/* ---------- Karten-Raster ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Säulen-Karte (drei Säulen) */
.pillar {
  background: #ffffff;
  padding: 2rem;
  border: 1px solid var(--outline-variant);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pillar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(243, 146, 0, 0.15);
}
.pillar__icon {
  width: 4rem; height: 4rem;
  background: rgba(118, 151, 116, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.pillar__icon .icon { width: 2rem; height: 2rem; color: var(--primary); }
.pillar h3 {
  font-size: 1.25rem; font-weight: 700;
  color: var(--primary); margin-bottom: 1rem;
}
.pillar p {
  color: var(--on-surface-muted);
  margin-bottom: 1.5rem;
}
.pillar__link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--accent); font-weight: 700;
}
.pillar__link .icon {
  width: 1rem; height: 1rem;
  transition: transform .15s;
}
.pillar__link:hover .icon { transform: translateX(4px); }

/* ---------- Bild-Karte (Material-Set) ---------- */
.image-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--primary-fixed);
  box-shadow: var(--shadow-sm);
}
.image-card img,
.image-card svg {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.image-card:hover img,
.image-card:hover svg { transform: scale(1.08); }
.image-card__overlay {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(243, 146, 0, 0.95), rgba(243, 146, 0, 0));
  color: var(--on-primary);
}
.image-card__overlay p {
  margin: 0;
  font-weight: 500;
  font-size: 1.25rem;
  color: #ffffff;
}

/* Material-Karte mit Beschreibung darunter */
.mat-card {
  background: #ffffff;
  overflow: hidden;
  border: 1px solid var(--outline-variant);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.mat-card__image {
  aspect-ratio: 4 / 3;
  background: var(--primary-fixed);
  overflow: hidden;
}
.mat-card__image img, .mat-card__image svg {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.mat-card__body { padding: 1.5rem; }
.mat-card__body h3 {
  font-size: 1.125rem; font-weight: 700;
  margin-bottom: 0.5rem; color: var(--primary);
}
.mat-card__body p {
  font-size: 0.95rem;
  color: var(--on-surface-muted);
  margin: 0;
}

/* ---------- Drei-Rollen-Karte (Projekt-Seite, Wahlakt-Seite) ---------- */
.role-card {
  background: #ffffff;
  padding: 2rem;
  border: 1px solid var(--outline-variant);
  box-shadow: var(--shadow-organic);
  text-align: center;
}
.role-card__badge {
  width: 3.5rem; height: 3.5rem;
  background: var(--accent); color: var(--on-accent);
  border-radius: 9999px !important;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800;
  margin: 0 auto 1.25rem;
}
.role-card h3 {
  font-size: 1.25rem; font-weight: 700;
  color: var(--primary); margin-bottom: 0.5rem;
}
.role-card p { color: var(--on-surface-muted); margin: 0; }

/* ---------- Schritte (Steps-Reihe) ---------- */
.steps-row {
  display: flex; flex-direction: column;
  gap: 3rem;
  position: relative;
}
.step-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  position: relative; z-index: 1;
}
.step-item__circle {
  width: 3rem; height: 3rem;
  background: var(--accent); color: var(--on-accent);
  border-radius: 9999px !important;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.125rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 0 8px rgba(243, 146, 0, 0.1);
}
.step-item h4 {
  font-size: 1rem; font-weight: 700;
  color: var(--primary); margin-bottom: 0.5rem;
}
.step-item p {
  color: var(--on-surface-muted);
  font-size: 1rem; margin: 0;
}
@media (min-width: 768px) {
  .steps-row { flex-direction: row; gap: 3rem; }
  .step-item::before {
    content: '';
    position: absolute;
    top: 1.5rem; left: 50%;
    width: 100%; height: 2px;
    background: var(--accent); opacity: 0.25;
    z-index: 0;
  }
  .step-item:last-child::before { display: none; }
}

/* Vertikale Timeline (Ablauf) */
.timeline {
  position: relative;
  max-width: none; margin: 0;
  counter-reset: tl;
}
.timeline::before {
  content: '';
  position: absolute; left: 1.5rem; top: 0.5rem; bottom: 0.5rem;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--primary));
}
.timeline__item {
  position: relative;
  padding: 0 0 2.5rem 5rem;
}
.timeline__item::before {
  counter-increment: tl; content: counter(tl);
  position: absolute; left: 0; top: 0;
  width: 3.25rem; height: 3.25rem;
  background: var(--accent); color: var(--on-accent);
  border-radius: 9999px !important;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.25rem;
  box-shadow: 0 0 0 5px var(--background);
}
.timeline__item h3 {
  margin: 0.25rem 0 0.5rem;
  color: var(--primary);
  font-size: 1.25rem; font-weight: 700;
}
.timeline__item .tl-meta {
  font-size: 0.8125rem; color: var(--accent);
  font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 0.25rem;
}

/* ---------- Testimonial-Karten ---------- */
.testimonial {
  position: relative;
  background: #ffffff;
  padding: 1.5rem 2.5rem;
  border: 1px solid #ffedd5; /* orange-100 */
  box-shadow: var(--shadow-xl), var(--shadow-green-soft);
}
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem; left: 1.25rem;
  font-size: 6rem; line-height: 1;
  color: var(--accent); opacity: 0.18;
  font-family: Georgia, serif; font-weight: 700;
}
.testimonial__quote {
  position: relative; z-index: 1;
  font-size: 1.125rem; line-height: 1.625;
  font-style: italic; font-weight: 700;
  color: #1f2937; /* gray-800 */
  margin: 0 0 1rem;
}
.testimonial__author {
  display: flex; align-items: center; gap: 1rem;
}
.testimonial__avatar {
  width: 3rem; height: 3rem;
  background: var(--accent); color: #fff;
  border-radius: 9999px !important;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.25rem;
}
.testimonial__name {
  font-weight: 700; color: var(--primary); margin: 0;
}
.testimonial__role {
  font-size: 0.875rem; color: #6b7280; /* gray-500 */
  margin: 0;
}

/* ---------- FAQ-Akkordeon ---------- */
.faq-group { margin-bottom: 2.5rem; }
.faq-group__title {
  font-size: 0.875rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent);
  margin: 0 0 1rem;
}
details.faq {
  background: #ffffff;
  border: 1px solid var(--outline-variant);
  padding: 0 1.5rem;
  margin-bottom: 0.75rem;
  transition: box-shadow .15s, border-color .15s;
}
details.faq[open] {
  box-shadow: var(--shadow-organic);
  border-color: var(--primary);
}
details.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.25rem 0;
  font-weight: 700; font-size: 1.0625rem;
  color: var(--primary);
  position: relative; padding-right: 2.5rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+';
  position: absolute; right: 0.25rem; top: 0.875rem;
  font-size: 1.75rem; color: var(--accent);
  font-weight: 400; line-height: 1;
  transition: transform .2s;
}
details.faq[open] summary::after { content: '−'; }
details.faq > *:not(summary) { padding-bottom: 1.5rem; }
details.faq p:last-child { margin-bottom: 0; }

/* ---------- Callout / Hinweiskasten ---------- */
.callout {
  background: var(--primary-fixed);
  border-left: 4px solid var(--accent);
  padding: 1.5rem 1.75rem;
}
.callout strong { color: var(--primary); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- CTA-Banner (Inhalt; Hintergrund kommt von .section--cta) ---------- */
.cta-banner {
  position: relative; overflow: hidden;
  background: transparent;
  color: var(--primary);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .cta-banner { padding: 5rem 3rem; }
}
.cta-banner h2 {
  color: var(--primary);
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  margin: 0 auto 1.5rem; max-width: 42rem;
}
.cta-banner p {
  color: #374151; /* gray-700 */
  font-size: 1.125rem; font-weight: 500;
  margin: 0 auto 2.5rem; max-width: 42rem;
}
@media (min-width: 768px) {
  .cta-banner p { font-size: 1.25rem; }
}

/* ---------- Definitions-Liste (Kontakt etc.) ---------- */
.meta-list { list-style: none; padding: 0; margin: 0; }
.meta-list li {
  display: grid; grid-template-columns: 9rem 1fr; gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--outline-variant);
}
.meta-list li:last-child { border: 0; }
.meta-list dt { font-weight: 800; color: var(--primary); }
@media (max-width: 600px) {
  .meta-list li { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ---------- Tag-Pille ---------- */
.tag {
  display: inline-block;
  background: var(--primary-fixed);
  color: var(--primary);
  padding: 0.25rem 0.875rem;
  border-radius: 9999px !important;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0.125rem 0.25rem 0.125rem 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary);
  color: var(--on-primary);
  padding: 3rem 0;
  line-height: 1.4;
}
.site-footer__grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(4, 1fr); } }
.site-footer__brand-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.site-footer__brand-row img { height: 40px; width: auto; }
.site-footer__brand-row span { font-size: 1.5rem; font-weight: 800; color: var(--on-primary); letter-spacing: -0.025em; }
.site-footer__brand p { color: rgba(255, 255, 255, 0.8); font-weight: 500; margin: 0; }
.site-footer h4 {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.4rem; }
.site-footer a {
  color: var(--on-primary);
  text-decoration: none;
  font-weight: 700; font-size: 0.875rem;
  transition: color .15s ease;
}
.site-footer a:hover { color: var(--accent); text-decoration: none; }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.5rem; padding-top: 1.5rem;
  font-size: 0.75rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
}
.site-footer__bottom .links a {
  margin-left: 1rem; font-weight: 500; font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}
.site-footer__bottom .links a:hover { color: #ffffff; }
.site-footer__bottom .links a:first-child { margin-left: 0; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.lead { font-size: 1.125rem; color: var(--on-surface-variant); font-weight: 500; }
.prose { max-width: none; }
.prose h2 { margin-top: 3rem; margin-bottom: 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2rem; margin-bottom: 0.5rem; }
.prose ul, .prose ol { color: var(--on-surface-variant); }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-banner, .nav-toggle, .mobile-menu { display: none !important; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
  .hero__image { display: none; }
  .hero__card { background: white; box-shadow: none; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   v4 — Modernisierungs-Layer (additiv über v3)
   Ziele: weichere Kanten, layered shadows mit 3D-Anmutung,
   smoothe Hover-Lifts, Reveal-on-Scroll, akzentuierte Buttons.
   Wird per IntersectionObserver in main.js mit .is-revealed
   aktiviert; alles respektiert prefers-reduced-motion.
   ============================================================ */

:root {
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  28px;
  --ease-out-soft:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-hover-glide: cubic-bezier(0.16, 1, 0.3, 1);   /* sehr sanfter Auslauf für Hover-Lift */
  --dur-hover-in:    .85s;
  --dur-hover-out:   .55s;

  /* Layered shadows: kombinierter Light-Cast + Tiefen-Schatten */
  --shadow-3d-sm: 0 1px 0 rgba(255,255,255,.6) inset,
                  0 2px 4px rgba(27,28,28,.06),
                  0 8px 24px -10px rgba(27,28,28,.18);
  --shadow-3d-md: 0 1px 0 rgba(255,255,255,.7) inset,
                  0 4px 10px rgba(27,28,28,.08),
                  0 18px 38px -16px rgba(27,28,28,.28);
  --shadow-3d-lg: 0 1px 0 rgba(255,255,255,.75) inset,
                  0 10px 26px rgba(27,28,28,.10),
                  0 36px 70px -22px rgba(27,28,28,.36);
  --shadow-glow-accent: 0 18px 48px -16px rgba(243,146,0,.55);
  --shadow-glow-primary: 0 18px 48px -16px rgba(118,151,116,.45);
}

/* Globale Soft-Kanten — überschreibt das v3-`border-radius:0` selektiv */
.pillar,
.image-card,
.mat-card,
.role-card,
.testimonial,
.callout,
.hero__card,
.mobile-menu,
.cta-banner,
details.faq,
.btn,
.nav-cta,
.page-hero--photo,
.tag,
.site-footer__brand-row img,
.site-header__logo img { border-radius: var(--radius-md); }

.hero__card,
.page-hero--photo,
.cta-banner          { border-radius: var(--radius-xl); }

.image-card,
.mat-card__image     { border-radius: var(--radius-lg); }

.btn,
.nav-cta             { border-radius: 9999px; }

.tag                 { border-radius: 9999px !important; }

/* CTA-Banner-Sektion: weiche Außenform + Innenabstand */
.section--cta { padding: 4rem 0; }
@media (min-width: 768px) { .section--cta { padding: 6rem 0; } }
.cta-banner {
  background: linear-gradient(140deg, #FFF4E5 0%, #FFE3BD 100%);
  box-shadow: var(--shadow-3d-md);
  position: relative;
  isolation: isolate;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(243,146,0,.45), rgba(118,151,116,.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

/* Karten: stärkerer 3D-Look, sehr smoother Hover-Lift.
   Wichtig: Default- und Hover-Shadow haben dieselbe Layer-Struktur
   (gleicher Stack mit transparenten Glow-Layern im Default-Zustand),
   damit der Browser sauber zwischen den Schatten interpoliert und
   nichts ploppt. */
.pillar,
.role-card,
.mat-card,
.testimonial,
.image-card {
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 2px 4px rgba(27,28,28,.06),
    0 8px 24px -10px rgba(27,28,28,.18),
    0 0 0 0 rgba(243,146,0,0);          /* Glow-Slot, transparent im Ruhezustand */
  transition: transform var(--dur-hover-in) var(--ease-hover-glide),
              box-shadow var(--dur-hover-in) var(--ease-hover-glide);
  will-change: transform;
}
.pillar:hover,
.role-card:hover,
.mat-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.75) inset,
    0 10px 26px rgba(27,28,28,.10),
    0 36px 70px -22px rgba(27,28,28,.36),
    0 22px 48px -16px rgba(243,146,0,.55);   /* Glow-Slot, sichtbar */
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 4px 10px rgba(27,28,28,.08),
    0 18px 38px -16px rgba(27,28,28,.28),
    0 14px 32px -16px rgba(243,146,0,.20);
}
.image-card {
  transition: transform var(--dur-hover-in) var(--ease-hover-glide),
              box-shadow var(--dur-hover-in) var(--ease-hover-glide);
}
.image-card:hover {
  transform: translateY(-4px) rotate(-.3deg);
  box-shadow:
    0 1px 0 rgba(255,255,255,.75) inset,
    0 10px 26px rgba(27,28,28,.10),
    0 36px 70px -22px rgba(27,28,28,.36),
    0 14px 32px -16px rgba(243,146,0,.25);
}
/* Bild-Zoom in der Karte braucht eigenen, längeren Übergang */
.image-card img,
.image-card svg { transition: transform 1.1s var(--ease-hover-glide); }
.image-card:hover img,
.image-card:hover svg { transform: scale(1.06); }

/* Schneller zurückgleiten, wenn der Cursor die Karte verlässt — fühlt sich natürlicher an */
.pillar, .role-card, .mat-card, .testimonial, .image-card {
  transition-duration: var(--dur-hover-out);
}
.pillar:hover, .role-card:hover, .mat-card:hover,
.testimonial:hover, .image-card:hover {
  transition-duration: var(--dur-hover-in);
}

/* Pillar-Icon: gleiche weiche Easing, etwas dezentere Rotation */
.pillar__icon {
  border-radius: 9999px;
  background: radial-gradient(circle at 30% 30%, rgba(118,151,116,.18), rgba(118,151,116,.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 6px 14px -6px rgba(118,151,116,.4);
  transition: transform var(--dur-hover-in) var(--ease-hover-glide);
}
.pillar:hover .pillar__icon { transform: scale(1.06) rotate(-1.5deg); }

/* Buttons — akzentuierter, mit Glow + smoothem Press */
.btn--accent {
  background: linear-gradient(135deg, #FFB04C 0%, #F39200 55%, #DA7E00 100%);
  box-shadow: var(--shadow-3d-sm), var(--shadow-glow-accent);
  transition: transform .25s var(--ease-out-soft),
              box-shadow .35s var(--ease-out-soft),
              filter .2s ease;
}
.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3d-md), 0 22px 48px -14px rgba(243,146,0,.7);
  filter: brightness(1.03);
}
.btn--accent:active { transform: translateY(0) scale(.97); }

.btn--outline {
  box-shadow: var(--shadow-3d-sm);
  transition: transform .25s var(--ease-out-soft),
              box-shadow .35s var(--ease-out-soft),
              background .2s ease;
}
.btn--outline:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3d-md);
}

.nav-cta {
  box-shadow: var(--shadow-3d-sm), 0 12px 28px -12px rgba(243,146,0,.55);
  transition: transform .25s var(--ease-out-soft), box-shadow .35s var(--ease-out-soft), filter .2s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-3d-md), 0 16px 34px -12px rgba(243,146,0,.7); }

/* Hero-Karte: stärkere Tiefe, mehr Atmosphäre */
.hero__card {
  background: rgba(252, 249, 248, 0.94);
  box-shadow: var(--shadow-3d-lg);
  border: 1px solid rgba(255,255,255,.5);
}

/* Site-Header: subtiler Tiefen-Hauch beim Scrollen (Klasse vom JS) */
.site-header { transition: box-shadow .25s ease, background .25s ease; }
.site-header.is-scrolled {
  background: rgba(255,255,255,.95);
  box-shadow: 0 6px 24px -12px rgba(27,28,28,.18);
}

/* Section-Headline: animierte Trennlinie */
.section-head__rule { transform: scaleX(0); transform-origin: center; transition: transform .8s var(--ease-out-soft) .15s; }
.section-head.is-revealed .section-head__rule { transform: scaleX(1); }

/* FAQ-Karten weicher + tiefer */
details.faq {
  border: 1px solid #e8ece5;
  box-shadow: var(--shadow-3d-sm);
  transition: box-shadow .25s, border-color .25s, transform .25s var(--ease-out-soft);
}
details.faq:hover { transform: translateY(-1px); }
details.faq[open] { box-shadow: var(--shadow-3d-md); border-color: rgba(118,151,116,.45); }

/* Callout: weiche Ecken, leichter Tiefen-Schatten */
.callout {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-3d-sm);
}

/* Page-Hero-Foto: sanfte Außenform statt scharfer Vollbild-Kante */
.page-hero--photo {
  margin: 1.25rem var(--gutter);
  width: auto;
}
@media (min-width: 768px) { .page-hero--photo { margin: 1.5rem auto; max-width: calc(var(--container-max) - 1rem); } }

/* ---------- Reveal-on-Scroll (vom JS gesteuert) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out-soft), transform .8s var(--ease-out-soft);
  will-change: opacity, transform;
}
.reveal.is-revealed { opacity: 1; transform: none; }

/* Reveal-Varianten (optional über data-reveal Attribut) */
[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="zoom"]  { transform: scale(.94); }
.is-revealed[data-reveal="left"],
.is-revealed[data-reveal="right"],
.is-revealed[data-reveal="zoom"] { transform: none; }

/* Stagger für Karten in derselben Row */
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
.reveal:nth-child(5) { transition-delay: .32s; }
.reveal:nth-child(6) { transition-delay: .40s; }

/* Hero-Card eigene, früh feuernde Animation */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(20px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.hero__card { animation: heroRise .9s var(--ease-out-soft) .15s both; }

/* Reduced Motion respektieren */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-revealed,
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__card { animation: none !important; }
}

/* ============================================================
   v4.5 — Kreative Section-Übergänge
   Statt harter Trennlinien zwischen Sektionen: jede Sektion bekommt
   am oberen Rand ein Pseudo-Element in eigener Hintergrundfarbe,
   das mit einer geschwungenen / schrägen / pfeilförmigen / welligen
   Kontur in die vorherige Sektion hineinragt. Vier verschiedene
   Stile sorgen für Variation.

   Wirkung pro Section-Typ:
     .section--green-fixed  → sanfte Welle  (Salbeigrün)
     .section--surface      → diagonale Schräge
     .section--white        → leichter Pfeil nach oben in der Mitte
     .section--cta          → konvexer Bogen / weiches Kissen
     .site-footer           → Welle (umgekehrt) in Primärgrün
     .page-hero / --photo   → Welle nach unten in die nachfolgende Sektion
   ============================================================ */

:root { --divider-height: 50px; }
@media (min-width: 768px) { :root { --divider-height: 80px; } }

.section,
.page-hero,
.page-hero--photo,
.hero,
.site-footer { position: relative; }

/* Gemeinsame Basis für die "in vorherige Sektion ragenden" Divider */
.section--green-fixed::before,
.section--surface::before,
.section--white::before,
.section--cta::before,
.site-footer::before {
  content: '';
  position: absolute;
  top: calc(var(--divider-height) * -1 + 1px); /* +1 vermeidet Sub-Pixel-Spalt */
  left: 0; right: 0;
  height: var(--divider-height);
  pointer-events: none;
  z-index: 1;
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}

/* — Sanfte Schräge (Salbeigrün) — */
.section--green-fixed::before {
  background: var(--primary-fixed);
  clip-path: polygon(0 100%, 100% 100%, 100% 30%, 0 70%);
}

/* — Spitze, angedeutet (mittig, sehr flach) — */
.section--surface::before {
  background: var(--surface-bright);
  clip-path: polygon(0 100%, 100% 100%, 100% 55%, 50% 0, 0 55%);
}

/* — Sanfte Gegen-Schräge (umgekehrte Richtung) — */
.section--white::before {
  background: #ffffff;
  clip-path: polygon(0 100%, 100% 100%, 100% 70%, 0 30%);
}

/* — Leichte Doppelspitze (zwei angedeutete Erhebungen, ruhig) — */
.section--cta::before {
  background: var(--cta-bg);
  clip-path: polygon(
    0 100%, 100% 100%,
    100% 55%, 75% 25%, 50% 55%, 25% 25%, 0 55%
  );
}

/* — Footer-Übergang: ganz dezent angedeutete Spitze in Primärgrün — */
.site-footer::before {
  background: var(--primary);
  clip-path: polygon(0 100%, 100% 100%, 100% 55%, 50% 10%, 0 55%);
}

/* — Page-Hero (Unterseiten): sehr leichte Schräge nach UNTEN — */
.page-hero::after,
.page-hero--photo::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: calc(var(--divider-height) * -1 + 1px);
  height: var(--divider-height);
  pointer-events: none;
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 0 30%);
}
.page-hero::after        { background: var(--primary-fixed); }
.page-hero--photo::after { background: var(--primary); }

/* page-hero--photo war zuvor mit Margin abgerundet — Margin entfernen,
   damit die Welle nahtlos in die nächste Sektion läuft */
.page-hero--photo { margin: 0; border-radius: 0; max-width: none; }

/* Hero-Bottom: leichte Welle aus der Hero in die nachfolgende Sektion.
   Da Hero ein Bild-Hintergrund hat, nimmt die Welle die Farbe der
   nachfolgenden Sektion (typisch primary-fixed) – dadurch wirkt es,
   als wachse die nächste Sektion sanft aus dem Hero heraus. */
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -1px;
  height: var(--divider-height);
  background: var(--primary-fixed);
  pointer-events: none;
  z-index: 11;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,80 L1440,80 L1440,40 C1080,0 360,80 0,40 Z' fill='%23000'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,80 L1440,80 L1440,40 C1080,0 360,80 0,40 Z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
}
/* Wenn nach .hero direkt eine green-fixed kommt, deren ::before vermeiden
   (sonst Doppel-Welle) */
.hero + .section--green-fixed::before { display: none; }
