/* === Design Tokens === */
:root {
  --color-primary: #aac538;
  --color-secondary: #8fa82e;
  --color-accent: #2c3e50;
  --color-background: #ffffff;
  --color-background-alt: #f5f5f5;
  --color-text: #333333;
  --color-text-muted: #666666;
  --color-border: #e0e0e0;
  --color-error: #e74c3c;
  --color-success: #2ecc71;
  --font-heading: Montserrat, sans-serif;
  --font-body: Open Sans, sans-serif;
  --h1-size: 3.5rem;
  --h2-size: 2.5rem;
  --h3-size: 1.75rem;
  --body-size: 1rem;
  --small-size: 0.875rem;
  --line-height: 1.6;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --spacing-section: 8rem;
  --max-width: 1200px;
  --container-padding: 2rem;
  --border-radius: 4px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.12);
  --nav-align: right;
  --footer-columns: 4;
  --breakpoint-mobile: 768px;
  --breakpoint-tablet: 1024px;
  --breakpoint-desktop: 1280px;
  --breakpoint-large: 1440px;
}


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

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

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

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

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

a:hover {
  text-decoration: underline;
}

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

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}


/* === Komponenten === */
/* Generierte Komponenten */

/* === hero === */
/* Komponenten-CSS */

/* --- 1. Base Hero Block --- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-accent); /* Fallback */
}

/* --- 2. Background & Overlay --- */
.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  /* Dezenter Zoom-Effekt beim Laden (optional, aber emotional) */
  animation: heroBgZoom 10s ease-out forwards;
}

@keyframes heroBgZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Gradient Overlay: Dunkles Anthrazit (Accent) zu fast Schwarz für Drama und Lesbarkeit */
  background: linear-gradient(
    135deg, 
    rgba(44, 62, 80, 0.85) 0%, /* Nutzt visuell den Accent-Ton #2c3e50 */
    rgba(15, 20, 25, 0.7) 100%
  );
  z-index: 2;
}

/* --- 3. Layout & Container --- */
.hero__container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-xl) var(--container-padding);
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  max-width: 800px; /* Begrenzt die Textbreite für bessere Lesbarkeit */
}

/* --- 4. Typography --- */
.hero__headline {
  font-family: var(--font-heading);
  font-size: calc(var(--h1-size) * 0.8); /* Mobile Anpassung */
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-background); /* Weiß auf dunklem Grund */
  margin: 0;
  padding-bottom: var(--spacing-md);
  position: relative;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Dekorativer Balken unter der H1 */
.hero__headline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--color-primary);
  border-radius: var(--border-radius);
  transition: width 0.3s ease;
}

.hero:hover .hero__headline::after {
  width: 90px; /* Subtile Animation bei Hover über die Section */
}

.hero__subline {
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--line-height);
  color: var(--color-background-alt); /* Leichtes Grau/Off-White */
  margin: 0;
  font-weight: 400;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  max-width: 90%;
}

/* --- 5. Actions & Buttons --- */
.hero__actions {
  display: flex;
  flex-direction: column; /* Mobile: Buttons untereinander */
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 0.4rem 1.2rem;
  font-family: var(--font-body);
  font-size: var(--body-size);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

/* Primär-Button (Laut Mockup-Analyse: Anthrazit/Dunkelgrau) */
.hero__button--primary {
  background-color: var(--color-accent);
  color: var(--color-background);
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-md);
}

.hero__button--primary:hover,
.hero__button--primary:focus {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  /* Hover-Effekt: Wechsel zur Primary-Farbe (Grün-Gelb) für starken Call-to-Action */
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text);
}

.hero__button--primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Sekundär-Button (Ghost/Outline auf dunklem Grund) */
.hero__button--secondary {
  background-color: transparent;
  color: var(--color-background);
  border: 2px solid var(--color-background);
}

.hero__button--secondary:hover,
.hero__button--secondary:focus {
  background-color: var(--color-background);
  color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.hero__button--secondary:active {
  transform: translateY(0);
}

/* --- 6. Modifiers (Variants) --- */

/* Heights */
.hero--default {
  min-height: 80vh;
}

.hero--medium {
  min-height: 50vh;
}

.hero--small {
  min-height: 35vh;
}

/* Centered Layout */
.hero--centered .hero__content {
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.hero--centered .hero__headline::after {
  left: 50%;
  transform: translateX(-50%);
}

.hero--centered .hero__subline {
  max-width: 100%;
}

.hero--centered .hero__actions {
  align-items: center;
}

/* --- 7. Responsive Breakpoints --- */

/* Tablet (768px+) */
@media (min-width: 768px) {
  .hero--default {
    min-height: 90vh;
  }
  
  .hero--medium {
    min-height: 60vh;
  }

  .hero__headline {
    font-size: calc(var(--h1-size) * 0.9);
  }

  .hero__subline {
    font-size: var(--h3-size);
  }

  .hero__actions {
    flex-direction: row; /* Tablet: Buttons nebeneinander */
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .hero--default {
    min-height: 100vh;
  }

  .hero__headline {
    font-size: var(--h1-size);
  }
}

/* === navigation === */
/* ==========================================================================
   HEADER CONTEXT (Sticky & Layout)
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-background);
  box-shadow: var(--shadow-sm);
  width: 100%;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-sm) var(--container-padding);
}

.header__logo {
  text-decoration: none;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--h3-size);
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
}

.header__logo:hover {
  opacity: 0.8;
}

.header__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-accent);
  font-size: var(--h2-size);
  cursor: pointer;
  padding: var(--spacing-xs);
  transition: color 0.3s ease, transform 0.3s ease;
}

.header__toggle:hover {
  color: var(--color-primary);
  transform: scale(1.05);
}

/* ==========================================================================
   NAVIGATION COMPONENT (Mobile First)
   ========================================================================== */
.navigation {
  display: flex;
  width: 100%;
}

.navigation__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.navigation__item {
  display: block;
}

.navigation__link {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--body-size);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

/* Animierte Unterstreichung für Standard-Links */
.navigation__link:not(.navigation__link--highlight)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.navigation__link:not(.navigation__link--highlight):hover {
  color: var(--color-primary);
}

.navigation__link:not(.navigation__link--highlight):hover::after,
.navigation__link--active:not(.navigation__link--highlight)::after {
  width: 100%;
}

.navigation__link--active {
  color: var(--color-primary);
}

/* CTA / Highlight Link (Anthrazit Button) */
.navigation__link--highlight {
  background-color: var(--color-accent);
  color: var(--color-background);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  justify-content: center;
  transition: all 0.3s ease;
}

.navigation__link--highlight:hover {
  background-color: var(--color-primary);
  color: var(--color-background);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.navigation__link--highlight:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   VARIANTEN & RESPONSIVE BEHAVIOR
   -------------------------------------------------------------------------- */

/* Mobile Layout (Default via .navigation--mobile) */
@media (max-width: 1023px) {
  .navigation--mobile {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-background);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-md) var(--container-padding);
    flex-direction: column;
    
    /* Standardmäßig versteckt, wird via JS-Klasse .is-open eingeblendet */
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(var(--spacing-sm) * -1));
    transition: all 0.3s ease;
  }

  .navigation--mobile.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navigation__list {
    flex-direction: column;
    gap: 0;
  }

  .navigation__link {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-border);
  }

  .navigation__link:not(.navigation__link--highlight)::after {
    bottom: -1px; /* Exakt auf der Border-Linie positionieren */
  }

  .navigation__link--highlight {
    margin-top: var(--spacing-md);
    border-bottom: none;
  }
}

/* Desktop Layout */
@media (min-width: 1024px) {
  .header__toggle {
    display: none;
  }

  .navigation {
    width: auto;
    justify-content: flex-end; /* Rechtsbündige Ausrichtung gemäß Mockup */
  }

  /* Reset Mobile Styles für Desktop */
  .navigation--mobile {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0;
    background-color: transparent;
  }

  .navigation__list {
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-md);
  }

  .navigation__link {
    padding: calc(var(--spacing-xs) / 2) 0;
    border-bottom: none;
  }

  .navigation__link--highlight {
    margin-top: 0;
    margin-left: var(--spacing-sm);
  }

  /* Explizite Varianten-Steuerung (falls unabhängig vom Header genutzt) */
  .navigation--horizontal .navigation__list {
    flex-direction: row;
    align-items: center;
  }

  .navigation--vertical .navigation__list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
}

/* === footer === */
/* Komponenten-CSS */

/* 
  Basis Footer Styles
  Nutzt var(--color-text) als dunklen Hintergrund und var(--color-background) als helle Schrift,
  um das "Dunkelgraue" Design aus der Mockup-Analyse umzusetzen.
*/
.footer {
  background-color: var(--color-text);
  color: var(--color-background);
  font-family: var(--font-body);
  position: relative;
  /* Subtiler Gradient für mehr Tiefe */
  background-image: linear-gradient(to bottom, var(--color-text), color-mix(in srgb, var(--color-text) 80%, black));
}

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

/* --- Main Area & Grid Layout --- */
.footer__main {
  padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer__columns {
  display: grid;
  gap: var(--spacing-xl) var(--spacing-lg);
  /* Mobile First: 1 Spalte */
  grid-template-columns: 1fr;
}

/* Tablet: 2 Spalten */
@media (min-width: 768px) {
  .footer__columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: 4 Spalten */
@media (min-width: 1024px) {
  .footer__columns {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer__column {
  display: flex;
  flex-direction: column;
}

/* --- Typografie & Brand --- */
.footer__brand {
  margin-bottom: var(--spacing-md);
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: var(--h3-size);
  font-weight: 700;
  color: var(--color-background);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-block;
  position: relative;
}

/* Dekorativer Akzent unter dem Logo */
.footer__logo-text::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: var(--border-radius);
}

.footer__description {
  font-size: var(--body-size);
  line-height: var(--line-height);
  opacity: 0.8;
  margin-bottom: var(--spacing-md);
}

.footer__title {
  font-family: var(--font-heading);
  font-size: var(--h3-size);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-md);
  color: var(--color-background);
  position: relative;
  padding-bottom: var(--spacing-xs);
}

/* Dezente Linie unter den Spaltentiteln */
.footer__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--color-primary);
}

/* --- Listen & Navigation --- */
.footer__nav-list,
.footer__contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__nav-item {
  margin-bottom: var(--spacing-sm);
}

.footer__nav-item:last-child {
  margin-bottom: 0;
}

.footer__nav-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-background);
  text-decoration: none;
  font-size: var(--body-size);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer__nav-icon {
  font-size: 0.7em;
  margin-right: var(--spacing-xs);
  color: var(--color-primary);
  transition: transform 0.3s ease;
  opacity: 0;
  transform: translateX(-10px);
}

/* Hover Effekte für Links */
.footer__nav-link:hover,
.footer__nav-link:focus {
  opacity: 1;
  color: var(--color-primary);
  transform: translateX(8px);
}

.footer__nav-link:hover .footer__nav-icon,
.footer__nav-link:focus .footer__nav-icon {
  opacity: 1;
  transform: translateX(0);
}

/* --- Kontakt Info --- */
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-sm);
  font-size: var(--body-size);
  opacity: 0.9;
}

.footer__contact-icon {
  color: var(--color-primary);
  margin-top: 4px;
  margin-right: var(--spacing-sm);
  width: 16px;
  text-align: center;
}

.footer__contact-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* --- Social Media Icons --- */
.footer__social {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: color-mix(in srgb, var(--color-background) 10%, transparent);
  color: var(--color-background);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer__social-link:hover {
  background-color: var(--color-primary);
  color: var(--color-text);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* --- Bottom Bar (Copyright) --- */
.footer__bottom {
  /* Schwarzer Grund laut Mockup-Analyse */
  background-color: color-mix(in srgb, var(--color-text) 40%, black);
  padding: var(--spacing-md) 0;
  border-top: 1px solid color-mix(in srgb, var(--color-background) 10%, transparent);
}

.footer__bottom-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--spacing-sm);
}

@media (min-width: 768px) {
  .footer__bottom-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__copyright {
  font-size: var(--small-size);
  opacity: 0.6;
  margin: 0;
}

.footer__bottom-links {
  display: flex;
  gap: var(--spacing-md);
}

.footer__bottom-link {
  color: var(--color-background);
  text-decoration: none;
  font-size: var(--small-size);
  opacity: 0.6;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.footer__bottom-link:hover {
  opacity: 1;
  color: var(--color-primary);
}

/* --- Varianten --- */
/* Simple Variante (z.B. für Landingpages) blendet mittlere Spalten aus */
.footer--simple .footer__columns {
  grid-template-columns: 1fr;
  text-align: center;
}

@media (min-width: 768px) {
  .footer--simple .footer__columns {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }
}

.footer--simple .footer__logo-text::after,
.footer--simple .footer__title::after {
  left: 50%;
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  .footer--simple .footer__logo-text::after,
  .footer--simple .footer__title::after {
    left: 0;
    transform: none;
  }
}

/* === header === */
/* Korrigiertes CSS */
/* ==========================================================================
   Header Component Styles
   ========================================================================== */

/* Basis Header */
.header {
    width: 100%;
    background-color: var(--color-background);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    /* Subtile Trennlinie für den Default-Zustand */
    border-bottom: 1px solid var(--color-border);
}

/* Modifier: Sticky */
.header--sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Modifier: Scrolled (wird per JS hinzugefügt) */
.header.header--scrolled {
    box-shadow: var(--shadow-md);
    border-bottom-color: transparent;
}

/* Modifier: Transparent (für Hero-Overlays) */
.header--transparent {
    background-color: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Container Layout */
.header__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-sm) var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md); /* FIX: Abstand zwischen Logo und Action-Buttons durch passendes 'gap' erhoeht */
}

/* ==========================================================================
   Logo
   ========================================================================== */
.header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: var(--spacing-xs);
    z-index: 1001; /* Bleibt über dem Mobile-Menü klickbar */
    transition: transform 0.3s ease;
}

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

.header__logo-image {
    max-height: 100px;
    width: auto;
    display: block;
}

.header__logo-text {
    font-family: var(--font-heading);
    font-size: var(--h3-size);
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.header__logo-highlight {
    color: var(--color-primary);
}

/* ==========================================================================
   Right Wrapper (Nav + CTA + Toggle)
   ========================================================================== */
.header__right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-shrink: 0; /* FIX: Verhindert, dass die Action-Buttons schrumpfen und das Logo überlappen */
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.header__nav {
    /* Mobile First: Versteckt, absolutes Layout unter dem Header */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-background);
    padding: var(--spacing-md) var(--container-padding);
    box-shadow: var(--shadow-md);
    
    /* Animation Initial State */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid var(--color-border);
}

/* Mobile Menu Open State */
.header__nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.header__nav-link {
    display: inline-block;
    text-decoration: none;
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--body-size);
    padding: var(--spacing-xs) 0;
    position: relative;
    transition: color 0.3s ease;
}

/* Animierte Unterstreichung */
.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.header__nav-link:hover,
.header__nav-link:focus {
    color: var(--color-primary);
}

.header__nav-link:hover::after,
.header__nav-link--active::after {
    width: 100%;
}

.header__nav-link--active {
    color: var(--color-primary);
    font-weight: 600;
}

/* ==========================================================================
   CTA Button
   ========================================================================== */
.header__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    background-color: var(--color-primary);
    /* Dunkler Text für optimalen Kontrast auf Primary-Farbe */
    color: var(--color-accent);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: var(--small-size);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.header__button:hover,
.header__button:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.05);
}

.header__button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Mobile: Text im Button ausblenden, nur Icon zeigen */
@media (max-width: 767px) {
    .header__button {
        padding: 0.75rem;
        border-radius: 50%;
    }
    .header__button-text {
        display: none;
    }
}

/* ==========================================================================
   Mobile Toggle (Hamburger)
   ========================================================================== */
.header__toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.header__toggle-line {
    width: 100%;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Toggle Animation States (wenn Klasse is-active gesetzt wird) */
.header__toggle.is-active .header__toggle-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.header__toggle.is-active .header__toggle-line:nth-child(2) {
    opacity: 0;
}
.header__toggle.is-active .header__toggle-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   Media Queries (Desktop)
   ========================================================================== */
@media (min-width: 1024px) {
    .header__toggle {
        display: none; /* Hamburger verstecken */
    }

    .header__nav {
        /* Desktop Layout: Rechtsbündig, inline */
        position: static;
        background-color: transparent;
        padding: 0;
        box-shadow: none;
        border-top: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: flex;
        justify-content: flex-end; /* WICHTIG: Rechtsbündige Ausrichtung */
        flex: 1;
    }

    .header__nav-list {
        flex-direction: row;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .header__button {
        padding: 0.875rem 2rem;
    }
}

/* === card === */
/* ==========================================================================
   Demo Grid Layout (Nur für die Darstellung der Cards)
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-md) var(--container-padding);
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Die horizontale Karte nimmt auf Tablets/Desktop die volle Breite (2 Spalten) ein */
  .card--horizontal {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .card--horizontal {
    grid-column: span 2; /* Nimmt 2 von 3 Spalten ein für ein asymmetrisches Layout */
  }
}

/* ==========================================================================
   Card Base Component
   ========================================================================== */
.card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-background);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  position: relative;
  z-index: 1;
}

/* Hover-Effekt für die gesamte Karte */
.card:hover {
  transform: translateY(calc(var(--spacing-xs) * -1));
  box-shadow: var(--shadow-md);
  z-index: 2;
}

/* ==========================================================================
   Card Elements
   ========================================================================== */
.card__image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--color-background-alt);
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Bild-Zoom beim Hover über die Karte */
.card:hover .card__image {
  transform: scale(1.05);
}

.card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: var(--spacing-md);
  gap: var(--spacing-sm);
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--h3-size);
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  line-height: 1.2;
}

.card__content {
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: var(--color-text-muted);
  line-height: var(--line-height);
  margin: 0;
  flex-grow: 1; /* Schiebt den Footer nach unten */
}

.card__footer {
  margin-top: var(--spacing-sm);
  display: flex;
  align-items: center;
}

/* ==========================================================================
   Card CTA Buttons (Basierend auf Mockup-Analyse: Anthrazit/Dunkel)
   ========================================================================== */
.card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent); /* Dunkles Anthrazit */
  color: var(--color-background); /* Weiß */
  padding: calc(var(--spacing-sm) * 0.875) var(--spacing-md);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--small-size);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.card__cta-icon {
  margin-left: var(--spacing-xs);
  font-size: 0.9em;
  transition: transform 0.3s ease;
}

/* Button Hover */
.card__cta:hover {
  background-color: var(--color-primary); /* Wechselt zur Markenfarbe (Grün) */
  color: var(--color-background);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card__cta:hover .card__cta-icon {
  transform: translateX(4px);
}

.card__cta:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Ghost Button Variante */
.card__cta--ghost {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: none;
}

.card__cta--ghost:hover {
  background-color: var(--color-accent);
  color: var(--color-background);
  border-color: var(--color-accent);
}

/* Primary Button Variante (direkt Markenfarbe) */
.card__cta--primary {
  background-color: var(--color-primary);
  color: var(--color-text); /* Dunkler Text auf hellem Grün für Kontrast */
}

.card__cta--primary:hover {
  filter: brightness(1.1);
  background-color: var(--color-primary);
}


/* ==========================================================================
   Card Variants
   ========================================================================== */

/* 1. Feature Card (Zentriert, Icon, dezenter Hintergrund) */
.card--feature {
  background-color: var(--color-background-alt);
  align-items: center;
  text-align: center;
  border: 1px solid transparent; /* Platzhalter für Hover */
  box-shadow: none;
}

.card--feature:hover {
  background-color: var(--color-background);
  border-color: var(--color-primary); /* Rahmen leuchtet auf */
}

.card__icon-wrapper {
  width: calc(var(--spacing-xl) * 1.2);
  height: calc(var(--spacing-xl) * 1.2);
  background-color: var(--color-background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--spacing-md) auto 0;
  color: var(--color-primary);
  font-size: var(--h2-size);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
}

.card--feature:hover .card__icon-wrapper {
  background-color: var(--color-primary);
  color: var(--color-background);
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-md);
}

.card--feature .card__footer {
  justify-content: center;
  width: 100%;
}


/* 2. Overlay Card (Bild als Hintergrund, dunkler Gradient) */
.card--overlay {
  min-height: 380px;
  justify-content: flex-end;
}

.card--overlay .card__image-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Dunkler Farbverlauf von unten nach oben für Lesbarkeit */
.card--overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 26, 26, 0.9) 0%,
    rgba(26, 26, 26, 0.6) 50%,
    rgba(26, 26, 26, 0.1) 100%
  );
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.card--overlay:hover::after {
  opacity: 0.85; /* Wird beim Hover leicht heller/transparenter */
}

.card--overlay .card__body {
  position: relative;
  z-index: 3;
  color: var(--color-background);
}

.card--overlay .card__title,
.card--overlay .card__content {
  color: var(--color-background);
}

.card--overlay .card__content {
  opacity: 0.9;
}


/* 3. Horizontal Card (Bild links, Text rechts ab Tablet) */
@media (min-width: 768px) {
  .card--horizontal {
    flex-direction: row;
    align-items: stretch;
  }

  .card--horizontal .card__image-wrapper {
    width: 45%;
    aspect-ratio: auto; /* Hebt 16:9 auf, Bild füllt die Höhe */
    min-height: 100%;
  }

  .card--horizontal .card__body {
    width: 55%;
    padding: var(--spacing-lg);
    justify-content: center;
  }
}

/* === grid === */
/* ==========================================================================
   Grid Component
   ========================================================================== */

/* Basis Grid-Container (Mobile First: 1 Spalte) */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  width: 100%;
}

/* Grid Item Wrapper - Stellt sicher, dass Inhalte (wie Cards) die volle Höhe nutzen */
.grid__item {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Breakpoints & Varianten
   -------------------------------------------------------------------------- */

/* Tablet (ab 768px) */
@media (min-width: 768px) {
  .grid {
    gap: var(--spacing-lg);
  }

  /* Auf Tablets werden 2, 3 und 4-spaltige Grids standardmäßig auf 2 Spalten gesetzt, 
     um Quetschungen zu vermeiden */
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop (ab 1024px) */
@media (min-width: 1024px) {
  .grid {
    gap: var(--spacing-lg);
  }

  /* Spezifische Spaltenanzahl für Desktop */
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

/* ==========================================================================
   Demo Card Styles (Zur Visualisierung innerhalb des Grids)
   Diese Styles dienen der Veranschaulichung der Design-Vorgaben
   ========================================================================== */

.demo-card {
  background-color: var(--color-background);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-md) var(--spacing-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border, rgba(0,0,0,0.05));
  position: relative;
  overflow: hidden;
}

/* Subtiler Gradient-Effekt am oberen Rand der Karte */
.demo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Hover-Effekte für die Karte */
.demo-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.demo-card:hover::before {
  opacity: 1;
}

.demo-card__icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background-color: var(--color-background-alt);
  border-radius: 50%;
  margin: 0 auto var(--spacing-md);
  color: var(--color-primary);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.demo-card:hover .demo-card__icon-wrapper {
  background-color: var(--color-primary);
  color: var(--color-background);
  transform: scale(1.1);
}

.demo-card__icon {
  font-size: 1.5rem;
}

.demo-card__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.demo-card__title {
  font-family: var(--font-heading);
  font-size: var(--h3-size);
  font-weight: 600;
  color: var(--color-accent); /* Dunkelgrau/Anthrazit laut Vorgabe */
  margin-bottom: var(--spacing-sm);
  margin-top: 0;
}

.demo-card__text {
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: var(--color-text-muted);
  line-height: var(--line-height);
  margin-bottom: var(--spacing-lg);
  flex-grow: 1; /* Schiebt den Button nach unten */
}

/* CTA Link im Card-Design (Ghost/Text Button Style) */
.demo-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--small-size);
  transition: color 0.3s ease;
  margin-top: auto;
}

.demo-card__cta i {
  transition: transform 0.3s ease;
}

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

.demo-card__cta:hover i {
  transform: translateX(4px);
}

.demo-card--compact {
  padding: var(--spacing-sm) var(--spacing-xs);
}

.demo-card--stat {
  background-color: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: var(--spacing-xs) var(--spacing-xs);
}

.demo-card--stat::before {
  display: none;
}

.demo-card--stat:hover {
  transform: none;
  box-shadow: none;
}

.demo-card--stat .demo-card__icon-wrapper {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-background);
  margin-bottom: var(--spacing-sm);
}

.demo-card--stat:hover .demo-card__icon-wrapper {
  background-color: var(--color-primary);
  color: var(--color-text);
  transform: none;
}

.demo-card--stat .demo-card__title {
  color: var(--color-background);
}

.demo-card--stat .demo-card__text {
  color: var(--color-background);
  opacity: 0.8;
}

/* === section === */
/* ==========================================================================
   COMPONENT: Section
   ========================================================================== */

.section {
  position: relative;
  padding: var(--spacing-xl) 0; /* Großzügiger Weißraum (Spacious Layout) */
  width: 100%;
  overflow: hidden; /* Verhindert horizontales Scrollen bei dekorativen Elementen */
  transition: background-color 0.3s ease;
}

.section__container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md); /* Fallback für container-padding */
}

/* --- Header & Typografie --- */
.section__header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
}

.section__title {
  font-family: var(--font-heading);
  font-size: calc(var(--h2-size) * 0.85); /* Etwas kleiner auf Mobile */
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-sm);
  line-height: 1.2;
}

/* Dekorativer Balken unter der Überschrift */
.section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: var(--border-radius);
  transition: width 0.3s ease;
}

.section:hover .section__title::after {
  width: 80px; /* Dezente Animation bei Hover über die Section */
}

.section__subtitle {
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: var(--color-text-muted);
  line-height: var(--line-height);
  margin: 0;
}

/* --- Content Slot --- */
.section__content {
  position: relative;
  width: 100%;
}

/* ==========================================================================
   MODIFIERS / VARIANTEN
   ========================================================================== */

/* --- Compact (Weniger vertikales Padding) --- */
.section--compact {
  padding: var(--spacing-md) 0;
}

/* --- Default (Weiß) --- */
.section--default {
  background-color: var(--color-background);
}

/* --- Alt (Hellgrau) --- */
.section--alt {
  background-color: var(--color-background-alt);
  /* Subtiler Verlauf für mehr Tiefe statt flacher Farbe */
  background-image: linear-gradient(to bottom, var(--color-background-alt), rgba(0,0,0,0.015));
}

/* --- Primary (Primärfarbe) --- */
.section--primary {
  background-color: var(--color-primary);
  /* Leichter Gradient mit Secondary Color */
  background-image: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  /* Da Primary (#aac538) relativ hell ist, nutzen wir die dunkle Akzentfarbe für den Text */
  color: var(--color-accent); 
}

.section--primary .section__title,
.section--primary .section__subtitle {
  color: var(--color-accent);
}

.section--primary .section__title::after {
  background-color: var(--color-accent);
  opacity: 0.5;
}

/* --- Dark (Akzentfarbe / Anthrazit) --- */
.section--dark {
  background-color: var(--color-accent);
  color: var(--color-background);
}

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

.section--dark .section__subtitle {
  color: var(--color-background);
  opacity: 0.8; /* Muted-Effekt auf dunklem Grund */
}

.section--dark .section__title::after {
  background-color: var(--color-primary); /* Primärfarbe leuchtet auf dunklem Grund */
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet */
@media (min-width: 768px) {
  .section {
    padding: calc(var(--spacing-xl) * 1.2) 0;
  }
  
  .section__header {
    margin-bottom: calc(var(--spacing-lg) * 1.5);
  }

  .section__title {
    font-size: var(--h2-size); /* Volle Größe ab Tablet */
  }
  
  .section__subtitle {
    font-size: calc(var(--body-size) * 1.1); /* Leicht größerer Untertitel */
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .section {
    /* Sehr großzügiges Spacing für das gewünschte "Spacious Layout" */
    padding: calc(var(--spacing-xl) * 1.5) 0; 
  }
  
  .section__container {
    /* Nutze den spezifischen Container-Padding Token falls vorhanden */
    padding: 0 var(--spacing-lg); 
  }
}

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

@media (min-width: 1024px) {
  .section--compact {
    padding: var(--spacing-lg) 0;
  }
}

/* ==========================================================================
   DUMMY BUTTON STYLES (Nur zur Demo in der Variante 3)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn--dark {
  background-color: var(--color-accent);
  color: var(--color-background);
  box-shadow: var(--shadow-sm);
}

.btn--dark:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.1);
}

/* === cta === */
/* ==========================================================================
   CTA Component
   ========================================================================== */

/* Base Styles */
.cta {
  position: relative;
  padding: var(--spacing-xl) 0;
  background-color: var(--color-background-alt);
  overflow: hidden;
  border-top: 1px solid var(--color-border);
}

/* Dekorative Top-Linie für emotionale Markenbindung */
.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  z-index: 1;
}

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

.cta__content {
  margin-bottom: var(--spacing-md);
}

.cta__headline {
  font-family: var(--font-heading);
  font-size: var(--h2-size);
  font-weight: 700;
  color: var(--color-text);
  margin-top: 0;
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
}

.cta__text {
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: var(--color-text-muted);
  line-height: var(--line-height);
  margin: 0;
  max-width: 800px;
}

/* Button Styles */
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 0.875rem 2rem;
  background-color: var(--color-primary);
  color: var(--color-accent); /* Dunkler Text auf hellem Grün für optimalen Kontrast */
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  cursor: pointer;
}

.cta__button:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background-color: var(--color-secondary);
  color: var(--color-background);
}

.cta__button:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Alternativer Button (Ghost/Outline) für dunkle Hintergründe */
.cta__button--alt {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.cta__button--alt:hover {
  background-color: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 4px 15px rgba(170, 197, 56, 0.3); /* Glow-Effekt mit Primary Color */
}

/* ==========================================================================
   Modifiers / Varianten
   ========================================================================== */

/* 1. Centered Variant (Dunkles Theme) */
.cta--centered {
  text-align: center;
  background: linear-gradient(135deg, var(--color-accent), #1a252f);
  border-top: none;
}

.cta--centered::before {
  display: none; /* Keine Top-Linie bei dunklem Hintergrund */
}

.cta--centered .cta__headline {
  color: var(--color-background);
}

.cta--centered .cta__text {
  color: rgba(255, 255, 255, 0.8);
  margin-left: auto;
  margin-right: auto;
}

.cta--centered .cta__actions {
  justify-content: center;
  margin-top: var(--spacing-lg);
}

/* 2. Split Variant (Zweispaltig) */
.cta--split {
  background-color: var(--color-background);
}

.cta--split .cta__container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* Responsive Styles für Split Variant */
@media (min-width: 768px) {
  .cta--split .cta__container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
  }

  .cta--split .cta__content {
    margin-bottom: 0;
    flex: 1 1 auto;
    max-width: 65%;
  }

  .cta--split .cta__actions {
    flex: 0 0 auto;
  }
}

@media (min-width: 1024px) {
  .cta {
    padding: var(--spacing-xl) 0;
  }
  
  .cta__headline {
    font-size: calc(var(--h2-size) * 1.1);
  }
}

/* === testimonial === */
/* ==========================================================================
   COMPONENT: TESTIMONIAL
   ========================================================================== */

/* 
  Grid Container für Testimonials (Mehrspaltiges Layout)
  Nach Regel 8: Grid-Komponenten für mehrspaltige Layouts
*/
.testimonial-grid {
  display: grid;
  gap: var(--spacing-lg);
  grid-template-columns: 1fr; /* Mobile: 1 Spalte */
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr); /* Tablet: 2 Spalten */
  }
}

@media (min-width: 1024px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr); /* Desktop: 3 Spalten */
  }
}

/* Base Testimonial Block */
.testimonial {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-family: var(--font-body);
  color: var(--color-text);
  /* Sanfte Transition für Hover-Effekte auf der gesamten Komponente */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Header (enthält Icon und Sterne) */
.testimonial__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
}

/* Dekoratives Zitat-Icon */
.testimonial__quote-icon {
  font-size: calc(var(--h2-size) * 1.5);
  color: var(--color-primary);
  opacity: 0.2; /* Subtil im Hintergrund/Header */
  transition: color 0.3s ease, opacity 0.3s ease;
}

/* Sterne-Bewertung Wrapper */
.testimonial__rating {
  display: flex;
  gap: calc(var(--spacing-xs) / 2);
}

/* Einzelner Stern */
.testimonial__star {
  color: var(--color-primary);
  font-size: var(--body-size);
}

/* Content Wrapper (Blockquote) */
.testimonial__content {
  margin: 0;
  padding: 0;
  flex-grow: 1; /* Schiebt den Autor nach unten, wenn Cards unterschiedlich hoch sind */
  margin-bottom: var(--spacing-lg);
}

/* Der eigentliche Zitat-Text */
.testimonial__text {
  font-size: var(--body-size);
  line-height: var(--line-height);
  font-style: italic;
  color: var(--color-text);
  margin: 0;
}

/* Autor Wrapper */
.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-top: auto; /* Bleibt immer am unteren Rand der Card */
}

/* Avatar Bild */
.testimonial__avatar {
  /* Größe berechnet aus Spacing-Tokens, um hardcoded Pixel zu vermeiden */
  width: calc(var(--spacing-xl) * 0.8);
  height: calc(var(--spacing-xl) * 0.8);
  border-radius: 50%; /* Rundes Bild */
  object-fit: cover;
  border: 2px solid var(--color-background);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

/* Fallback/Placeholder für Avatar ohne Bild */
.testimonial__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-background-alt);
  color: var(--color-text-muted);
  font-size: var(--h3-size);
}

/* Info Wrapper (Name & Rolle) */
.testimonial__info {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-xs) / 2);
}

/* Autor Name */
.testimonial__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--body-size);
  font-style: normal; /* Überschreibt default <cite> italic */
  color: var(--color-accent); /* Dunkles Anthrazit laut Mockup */
}

/* Autor Rolle */
.testimonial__role {
  font-size: var(--small-size);
  color: var(--color-text-muted);
  font-weight: 400;
}


/* ==========================================================================
   MODIFIER / VARIANTEN
   ========================================================================== */

/* 
  Variante 1: Card (Hervorgehoben mit Hintergrund und Schatten) 
*/
.testimonial--card {
  background-color: var(--color-background);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

/* Hover-Effekte für die Card-Variante (Regel 10) */
.testimonial--card:hover {
  transform: translateY(calc(var(--spacing-xs) * -1));
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.testimonial--card:hover .testimonial__quote-icon {
  opacity: 0.4;
  color: var(--color-accent);
}

.testimonial--card:hover .testimonial__avatar {
  transform: scale(1.05);
}

/* 
  Variante 2: Centered (Alles zentriert ausgerichtet)
*/
.testimonial--centered {
  text-align: center;
  align-items: center;
}

.testimonial--centered .testimonial__header {
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.testimonial--centered .testimonial__author {
  flex-direction: column;
  text-align: center;
}

/* 
  Variante 3: Default (Minimalistisch, oft auf dunklen Hintergründen genutzt)
*/
.testimonial--default {
  padding: var(--spacing-md);
  border-left: 4px solid var(--color-primary);
  background: linear-gradient(to right, var(--color-background-alt), transparent);
}

.testimonial--default:hover {
  border-left-color: var(--color-accent);
  background: linear-gradient(to right, var(--color-background), transparent);
}

/* === timeline === */
/* Korrigiertes CSS */

/* ==========================================================================
   TIMELINE COMPONENT
   ========================================================================== */

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  /* Standard-Padding für vertikale Linie links auf Mobile */
  padding-left: calc(var(--spacing-md) + 10px); 
}

/* Die durchgehende Linie (Gradient für emotionalen Touch) */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10px; /* Positioniert die Linie */
  width: 3px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
  border-radius: var(--border-radius);
  opacity: 0.5;
}

/* --- Timeline Item --- */
.timeline__item {
  position: relative;
  margin-bottom: var(--spacing-lg);
  width: 100%;
  /* FIX: Flexbox für korrekte vertikale Ausrichtung von Marker und Content auf der gleichen Y-Achse */
  display: flex;
  align-items: center;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

/* --- Timeline Marker (Der Punkt auf der Linie) --- */
.timeline__marker {
  position: absolute;
  /* FIX: top: 0 entfernt, damit Flexbox (align-items: center) den Marker exakt vertikal zentrieren kann */
  left: calc(var(--spacing-md) * -1 - 10px);
  width: 24px;
  height: 24px;
  background-color: var(--color-background);
  border: 3px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 4px var(--color-background); /* Erzeugt Freiraum um den Punkt */
}

/* Optionales Icon im Marker */
.timeline__marker i {
  font-size: 10px;
  color: var(--color-primary);
  transition: color 0.3s ease;
}

/* --- Timeline Content (Die Card) --- */
.timeline__content {
  background-color: var(--color-background);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  position: relative;
  transition: all 0.3s ease;
  /* FIX: Sicherstellen, dass der Content im Flex-Container die volle Breite nutzt */
  flex: 1;
}

/* Kleiner Pfeil, der auf die Linie zeigt */
.timeline__content::before {
  content: '';
  position: absolute;
  /* FIX: Pfeil vertikal zentrieren passend zum Marker */
  top: 50%;
  left: -8px;
  width: 16px;
  height: 16px;
  background-color: var(--color-background);
  border-left: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  /* FIX: translateY hinzugefügt für exakte Zentrierung */
  transform: translateY(-50%) rotate(45deg);
  transition: border-color 0.3s ease;
}

/* --- Slots (Inhalte) --- */
.timeline__date {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--small-size);
  color: var(--color-background);
  background: var(--color-primary);
  padding: calc(var(--spacing-xs) / 2) var(--spacing-sm);
  border-radius: 999px; /* Pill-Shape für Datums-Badge */
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.05em;
}

.timeline__title {
  font-family: var(--font-heading);
  font-size: var(--h3-size);
  font-weight: 600;
  color: var(--color-text); /* Anthrazit aus dem Design-Kontext */
  margin-top: 0;
  margin-bottom: var(--spacing-xs);
  line-height: 1.2;
}

.timeline__description {
  font-family: var(--font-body);
  color: var(--color-text-muted);
  font-size: var(--body-size);
  line-height: var(--line-height);
  margin: 0;
}

/* --- Hover Effekte (Interaktivität) --- */
.timeline__item:hover .timeline__content {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.timeline__item:hover .timeline__content::before {
  border-color: var(--color-primary);
}

.timeline__item:hover .timeline__marker {
  transform: scale(1.2);
  background-color: var(--color-primary);
  box-shadow: 0 0 0 6px var(--color-background), var(--shadow-sm);
}

.timeline__item:hover .timeline__marker i {
  color: var(--color-background);
}


/* ==========================================================================
   VARIANTEN & MEDIA QUERIES
   ========================================================================== */

/* --- Variante: Vertical (Explizit) --- */
/* Verhält sich wie der Mobile-First Standard, wird hier nur der Vollständigkeit halber aufgeführt */
.timeline--vertical {
  /* Nutzt Basis-Styles */
}


/* --- Variante: Alternating (Zick-Zack) --- */
@media (min-width: 768px) {
  .timeline--alternating {
    padding-left: 0;
  }

  /* Linie in die Mitte verschieben */
  .timeline--alternating::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline--alternating .timeline__item {
    width: 50%;
    clear: both;
  }

  /* Ungerade Elemente (Links) */
  .timeline--alternating .timeline__item:nth-child(odd) {
    float: left;
    padding-right: var(--spacing-lg);
    text-align: right;
  }

  .timeline--alternating .timeline__item:nth-child(odd) .timeline__marker {
    left: auto;
    right: calc(var(--spacing-lg) * -1 - 12px); /* 12px ist halbe Marker-Breite */
  }

  .timeline--alternating .timeline__item:nth-child(odd) .timeline__content::before {
    left: auto;
    right: -8px;
    border-left: none;
    border-bottom: none;
    border-right: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
  }

  /* Gerade Elemente (Rechts) */
  .timeline--alternating .timeline__item:nth-child(even) {
    float: right;
    padding-left: var(--spacing-lg);
    margin-top: calc(var(--spacing-lg) * 1.5); /* Versatz für Zick-Zack Optik */
  }

  .timeline--alternating .timeline__item:nth-child(even) .timeline__marker {
    left: calc(var(--spacing-lg) * -1 - 12px);
  }

  /* Clearfix für den Container, da wir floats verwenden */
  .timeline--alternating::after {
    content: "";
    display: table;
    clear: both;
  }
}

/* Größerer Versatz auf Desktop für bessere Lesbarkeit */
@media (min-width: 1024px) {
  .timeline--alternating .timeline__item:nth-child(even) {
    margin-top: calc(var(--spacing-xl));
  }
}


/* --- Variante: Horizontal --- */
@media (min-width: 1024px) {
  .timeline--horizontal {
    display: flex;
    padding-left: 0;
    padding-top: calc(var(--spacing-xl) + 20px); /* Platz für Linie oben */
  }

  /* Linie horizontal oben */
  .timeline--horizontal::before {
    top: calc(var(--spacing-xl) / 2);
    bottom: auto;
    left: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  }

  .timeline--horizontal .timeline__item {
    flex: 1;
    margin-bottom: 0;
    padding: 0 var(--spacing-sm);
    text-align: center;
    /* FIX: Reset auf block, damit Karten oben an der horizontalen Linie ausgerichtet bleiben (überschreibt align-items: center) */
    display: block;
  }

  /* Marker auf die horizontale Linie setzen */
  .timeline--horizontal .timeline__marker {
    top: calc(var(--spacing-xl) / 2 * -1 - 12px);
    left: 50%;
    transform: translateX(-50%);
  }

  /* Pfeil nach oben zeigen lassen */
  .timeline--horizontal .timeline__content::before {
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    border-bottom: none;
    border-left: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
  }

  /* Hover-Anpassung für horizontalen Marker (wegen TranslateX) */
  .timeline--horizontal .timeline__item:hover .timeline__marker {
    transform: translateX(-50%) scale(1.2);
  }
}

/* === gallery === */
/* Komponenten-CSS: Gallery */

/* --- Base Block --- */
.gallery {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-background);
  overflow: hidden; /* Verhindert horizontales Scrollen auf Body-Ebene bei Carousel */
}

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

/* --- Header & Typography --- */
.gallery__header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.gallery__title {
  font-family: var(--font-heading);
  font-size: var(--h2-size);
  color: var(--color-text);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  position: relative;
  display: inline-block;
}

/* Dekorativer Balken unter der Überschrift */
.gallery__title::after {
  content: '';
  position: absolute;
  bottom: calc(var(--spacing-xs) * -1);
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: var(--border-radius);
}

.gallery__description {
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--line-height);
}

/* --- Gallery Item (Shared Styles) --- */
.gallery__item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: var(--color-background-alt);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  /* Basis für Aspect Ratio, falls Bilder unterschiedlich sind */
  aspect-ratio: 4/3; 
}

.gallery__item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery__item:hover .gallery__image {
  transform: scale(1.08);
}

/* --- Overlay --- */
.gallery__overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.gallery__item:hover .gallery__overlay {
  opacity: 1;
}

/* Pseudo-Hintergrund für Opacity ohne den Text transparent zu machen */
.gallery__overlay-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-accent) 0%, rgba(45,52,54,0.6) 50%, transparent 100%);
  opacity: 0.85;
  z-index: 1;
}

.gallery__overlay-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--spacing-md);
  width: 100%;
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.gallery__item:hover .gallery__overlay-content {
  transform: translateY(0);
}

.gallery__icon {
  font-size: 2rem;
  color: var(--color-primary); /* Gelber/Grüner Akzent */
  margin-bottom: var(--spacing-sm);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.gallery__caption {
  font-family: var(--font-heading);
  font-size: var(--h3-size);
  color: var(--color-background); /* Weißer Text auf dunklem Grund */
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.02em;
}

/* --- Controls (Hidden by default, shown in Carousel) --- */
.gallery__controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.gallery__control-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  background-color: transparent;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.gallery__control-btn:hover {
  background-color: var(--color-accent);
  color: var(--color-background);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

.gallery__dots {
  display: flex;
  gap: var(--spacing-xs);
}

.gallery__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-border);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.gallery__dot:hover {
  transform: scale(1.2);
}

.gallery__dot--active {
  background-color: var(--color-primary);
  transform: scale(1.2);
}


/* =========================================
   VARIANTEN (MODIFIER)
   ========================================= */

/* --- 1. GRID VARIANTE (Standard) --- */
.gallery--grid .gallery__items {
  display: grid;
  gap: var(--spacing-md);
  grid-template-columns: 1fr; /* Mobile: 1 Spalte */
}

@media (min-width: 768px) {
  .gallery--grid .gallery__items {
    grid-template-columns: repeat(2, 1fr); /* Tablet: 2 Spalten */
  }
}

@media (min-width: 1024px) {
  .gallery--grid .gallery__items {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
}


/* --- 2. MASONRY VARIANTE --- */
/* Nutzt CSS Columns für einen echten Masonry-Effekt ohne JS */
.gallery--masonry .gallery__items {
  column-count: 1;
  column-gap: var(--spacing-md);
}

.gallery--masonry .gallery__item {
  break-inside: avoid; /* Verhindert das Umbrechen von Items in der Mitte */
  margin-bottom: var(--spacing-md);
  aspect-ratio: auto; /* Erlaubt natürliche Bildhöhen */
}

@media (min-width: 768px) {
  .gallery--masonry .gallery__items {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .gallery--masonry .gallery__items {
    column-count: 3;
    column-gap: var(--spacing-lg);
  }
  .gallery--masonry .gallery__item {
    margin-bottom: var(--spacing-lg);
  }
}


/* --- 3. CAROUSEL VARIANTE --- */
/* Nutzt CSS Scroll Snap für eine flüssige Touch-Experience */
.gallery--carousel .gallery__items {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: var(--spacing-md);
  padding-bottom: var(--spacing-md); /* Platz für Schatten */
  
  /* Versteckt Scrollbar für cleaner Look */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}

.gallery--carousel .gallery__items::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.gallery--carousel .gallery__item {
  flex: 0 0 85%; /* Mobile: Fast volle Breite */
  scroll-snap-align: center;
}

.gallery--carousel .gallery__controls {
  display: flex; /* Zeigt Controls nur in der Carousel-Variante */
}

@media (min-width: 768px) {
  .gallery--carousel .gallery__item {
    flex: 0 0 45%; /* Tablet: 2 Items sichtbar */
  }
}

@media (min-width: 1024px) {
  .gallery--carousel .gallery__item {
    flex: 0 0 calc(33.333% - (var(--spacing-md) * 2 / 3)); /* Desktop: 3 Items sichtbar */
    scroll-snap-align: start;
  }
  .gallery--carousel .gallery__items {
    gap: var(--spacing-lg);
  }
  .gallery--carousel .gallery__item {
    flex: 0 0 calc(33.333% - (var(--spacing-lg) * 2 / 3));
  }
}

/* === form === */
/* Komponenten-CSS */

/* ==========================================================================
   Form Base
   ========================================================================== */
.form {
    width: 100%;
    max-width: var(--max-width, 1200px);
    font-family: var(--font-body);
    color: var(--color-text);
}

.form__fields {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* ==========================================================================
   Grid & Layout
   ========================================================================== */
.form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
}

@media (min-width: 768px) {
    .form__row {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

.form__group {
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: var(--spacing-sm);
}

/* ==========================================================================
   Labels
   ========================================================================== */
.form__label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-accent, var(--color-text));
    margin-bottom: 0.5rem;
    display: inline-block;
    transition: color 0.3s ease;
}

.form__required {
    color: var(--color-primary);
    margin-left: 0.125rem;
}

/* Screen Reader Only (für Inline-Forms) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   Inputs, Textareas, Selects
   ========================================================================== */
.form__input,
.form__textarea,
.form__select {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background-color: var(--color-background-alt, #f9f9f9);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: var(--color-text-muted);
    opacity: 0.7;
}

/* Hover State */
.form__input:hover,
.form__textarea:hover,
.form__select:hover {
    border-color: var(--color-text-muted);
    background-color: var(--color-background);
}

/* Focus State */
.form__input:focus,
.form__textarea:focus,
.form__select:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-background);
    /* Nutzt Primary Color mit Transparenz für den Glow-Effekt */
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.form__group:focus-within .form__label {
    color: var(--color-primary);
}

/* Textarea specific */
.form__textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.6;
}

/* ==========================================================================
   Custom Select
   ========================================================================== */
.form__select-wrapper {
    position: relative;
    width: 100%;
}

.form__select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 3rem;
    cursor: pointer;
}

.form__select-icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.form__select:focus + .form__select-icon {
    color: var(--color-primary);
    transform: translateY(-50%) rotate(180deg);
}

/* ==========================================================================
   Custom Checkbox
   ========================================================================== */
.form__group--checkbox {
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.form__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    position: relative;
}

.form__checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.form__checkbox-custom {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--color-background);
    border: 2px solid var(--color-border, #cbd5e1);
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.125rem;
}

/* Checkbox Hover */
.form__checkbox-label:hover .form__checkbox-custom {
    border-color: var(--color-primary);
}

/* Checkbox Focus */
.form__checkbox:focus-visible + .form__checkbox-custom {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

/* Checkbox Checked */
.form__checkbox:checked + .form__checkbox-custom {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Checkmark Icon */
.form__checkbox-custom::after {
    content: "";
    display: none;
    width: 6px;
    height: 12px;
    border: solid var(--color-background);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.form__checkbox:checked + .form__checkbox-custom::after {
    display: block;
    animation: checkmark 0.2s ease-in-out forwards;
}

@keyframes checkmark {
    0% { transform: scale(0) rotate(45deg); opacity: 0; }
    100% { transform: scale(1) rotate(45deg); opacity: 1; }
}

.form__checkbox-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Inline Links im Checkbox-Text */
.form__link {
    color: var(--color-accent, var(--color-text));
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.form__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

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

.form__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ==========================================================================
   Submit Button & Actions
   ========================================================================== */
.form__actions {
    margin-top: var(--spacing-md);
    display: flex;
    justify-content: flex-start;
}

.form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary, var(--color-primary)));
    color: #ffffff; /* Weiß für hohen Kontrast auf Primary */
    padding: 1rem 2.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.form__submit i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.form__submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.05);
}

.form__submit:hover i {
    transform: translateX(4px) translateY(-4px);
}

.form__submit:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Variants
   ========================================================================== */

/* Stacked Variant (Erzwingt 1-Spalten Layout auch auf Desktop) */
.form--stacked .form__row {
    grid-template-columns: 1fr;
}

/* Inline Variant (z.B. für Newsletter, Suche) */
.form--inline {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form--inline .form__fields {
    flex-direction: column;
    gap: var(--spacing-sm);
}

@media (min-width: 768px) {
    .form--inline {
        flex-direction: row;
        align-items: flex-end;
    }
    
    .form--inline .form__fields {
        flex-direction: row;
        flex: 1;
        gap: var(--spacing-sm);
    }

    .form--inline .form__group {
        flex: 1;
        margin-bottom: 0;
    }

    .form--inline .form__actions {
        margin-top: 0;
        flex-shrink: 0;
    }

    .form--inline .form__submit {
        height: 100%;
        padding: 1rem 2rem;
    }
}

/* === features === */
/* Komponenten-CSS: Features */

.features {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-background-alt);
}

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

/* Header Section */
.features__header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.features__headline {
  font-family: var(--font-heading);
  font-size: var(--h2-size);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
  padding-bottom: var(--spacing-sm);
}

/* Dekorativer Balken unter H2 */
.features__headline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: var(--border-radius);
}

.features__subheadline {
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: var(--color-text-muted);
  line-height: var(--line-height);
  margin: 0;
}

/* Wrapper Layouts */
.features__wrapper {
  display: grid;
  gap: var(--spacing-lg);
  /* Mobile First: 1 Spalte */
  grid-template-columns: 1fr;
}

/* Modifier: Grid */
@media (min-width: 768px) {
  .features--grid .features__wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features--grid .features__wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Modifier: List (Einspaltig, zentriert) */
.features--list .features__wrapper {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}

/* Feature Item (Card) */
.features__item {
  background-color: var(--color-background);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  height: 100%;
  border: 1px solid var(--color-border);
}

.features__item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* Icon Styling */
.features__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--spacing-lg) * 1.5);
  height: calc(var(--spacing-lg) * 1.5);
  border-radius: 50%;
  background-color: var(--color-background-alt);
  color: var(--color-primary);
  font-size: var(--h3-size);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

/* Hover-Effekt für das Icon innerhalb der Card */
.features__item:hover .features__icon {
  background-color: var(--color-primary);
  color: var(--color-background);
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-md);
}

/* Content Styling */
.features__content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.features__title {
  font-family: var(--font-heading);
  font-size: var(--h3-size);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
  transition: color 0.3s ease;
}

.features__item:hover .features__title {
  color: var(--color-accent); /* Wechselt zur Akzentfarbe (Anthrazit) bei Hover */
}

.features__description {
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: var(--color-text-muted);
  line-height: var(--line-height);
  margin: 0;
}

/* --- Modifiers für Card-Inhalt --- */

/* Modifier: Icon Top (Zentriert) */
.features--icon-top .features__item {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--spacing-lg) var(--spacing-md);
}

.features--icon-top .features__icon {
  margin-bottom: var(--spacing-md);
}

/* Modifier: Icon Left */
.features--icon-left .features__item {
  flex-direction: row;
  align-items: flex-start;
  text-align: left;
}

.features--icon-left .features__icon {
  margin-right: var(--spacing-md);
}

/* Anpassung für Mobile bei Icon Left (verhindert zu enges Layout) */
@media (max-width: 767px) {
  .features--icon-left .features__item {
    flex-direction: column;
    align-items: flex-start;
  }
  .features--icon-left .features__icon {
    margin-right: 0;
    margin-bottom: var(--spacing-sm);
  }
}

/* === steps === */
/* ==========================================================================
   COMPONENT: STEPS
   ========================================================================== */

.steps {
  padding: var(--spacing-section) 0;
  background-color: var(--color-background-alt);
  position: relative;
  overflow: hidden;
}

/* Optional: Subtiler Gradient-Hintergrund für mehr Tiefe */
.steps::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(170, 197, 56, 0.03) 100%);
  pointer-events: none;
}

.steps__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
  z-index: 1;
}

/* --- Header --- */
.steps__header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.steps__headline {
  font-family: var(--font-heading);
  font-size: var(--h2-size);
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  position: relative;
  display: inline-block;
}

/* Dekorativer Strich unter der Headline */
.steps__headline::after {
  content: "";
  position: absolute;
  bottom: calc(var(--spacing-xs) * -1);
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

.steps__subheadline {
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  margin-top: var(--spacing-md);
}

/* --- List & Grid --- */
.steps__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--spacing-lg);
  grid-template-columns: 1fr; /* Mobile: 1 Spalte */
}

.steps__item {
  position: relative;
  height: 100%;
}

/* --- Card Design --- */
.steps__card {
  background-color: var(--color-background);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 2;
}

.steps__card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* --- Number Circle --- */
.steps__number {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--h2-size);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.steps__card:hover .steps__number {
  transform: scale(1.1) rotate(5deg);
}

/* --- Content --- */
.steps__title {
  font-family: var(--font-heading);
  font-size: var(--h3-size);
  color: var(--color-accent); /* Anthrazit/Dunkelgrau für professionellen Look */
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.steps__description {
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: var(--color-text-muted);
  line-height: var(--line-height);
  margin: 0;
}


/* ==========================================================================
   MODIFIER: DEFAULT (Grid Layout)
   ========================================================================== */

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

@media (min-width: 1024px) {
  .steps--default .steps__list {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ==========================================================================
   MODIFIER: WITH ARROWS
   ========================================================================== */

.steps--with-arrows .steps__list {
  grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
  .steps--with-arrows .steps__list {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Pfeile zwischen den Cards (nur Desktop) */
  .steps--with-arrows .steps__item:not(:last-child)::after {
    content: "\f061"; /* Font Awesome Arrow Right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    /* Vertikal zentriert zur runden Nummer (Padding Card + halbe Höhe Nummer) */
    top: calc(var(--spacing-lg) + 2rem); 
    /* Horizontal in der Mitte des Gaps platzieren */
    right: calc(var(--spacing-lg) * -0.5);
    transform: translate(50%, -50%);
    color: var(--color-primary);
    font-size: var(--h2-size);
    opacity: 0.4;
    z-index: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .steps--with-arrows .steps__item:hover:not(:last-child)::after {
    opacity: 1;
    transform: translate(calc(50% + 4px), -50%); /* Leichte Bewegung beim Hover */
  }
}


/* ==========================================================================
   MODIFIER: VERTICAL (Timeline Style)
   ========================================================================== */

.steps--vertical .steps__list {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}

/* Auf Mobile bleibt es zentriert, ab Tablet wird es linksbündig mit Linie */
@media (min-width: 768px) {
  .steps--vertical .steps__card {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: var(--spacing-lg);
  }

  .steps--vertical .steps__number {
    margin-bottom: 0;
  }

  /* Vertikale Verbindungslinie */
  .steps--vertical .steps__item:not(:last-child)::before {
    content: "";
    position: absolute;
    /* Startet unterhalb der Nummer */
    top: calc(var(--spacing-lg) + 4rem);
    /* Geht bis zum nächsten Element durch den Gap */
    height: calc(100% - 4rem + var(--spacing-lg));
    /* Zentriert unter der Nummer (Card Padding + halbe Nummer-Breite) */
    left: calc(var(--spacing-lg) + 2rem);
    width: 2px;
    background-color: var(--color-primary);
    opacity: 0.3;
    transform: translateX(-50%);
    z-index: 1;
  }
}

/* === contact_info === */
/* ==========================================================================
   Component: Contact Info
   ========================================================================== */

.contact_info {
    font-family: var(--font-body);
    color: var(--color-text);
    width: 100%;
}

/* --- Typography & Headings --- */
.contact_info__title {
    font-family: var(--font-heading);
    font-size: var(--h2-size);
    font-weight: 700;
    color: var(--color-text);
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

/* Dekorativer Balken unter der Überschrift */
.contact_info__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: var(--border-radius);
    transition: width 0.3s ease;
}

.contact_info:hover .contact_info__title::after {
    width: 90px;
}

/* --- List Styling --- */
.contact_info__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* --- List Items (Interactive) --- */
.contact_info__item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    background-color: transparent;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact_info__item:hover {
    background-color: var(--color-background);
    border-color: var(--color-border);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

/* --- Icons --- */
.contact_info__icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-background-alt), var(--color-background));
    box-shadow: var(--shadow-sm);
    color: var(--color-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.contact_info__item:hover .contact_info__icon-wrapper {
    background: var(--color-primary);
    color: var(--color-background);
    box-shadow: var(--shadow-md);
    transform: scale(1.1) rotate(5deg);
    border-color: var(--color-primary);
}

/* --- Content Elements --- */
.contact_info__content {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-xs) / 2);
    padding-top: 2px; /* Optisches Alignment mit dem Icon */
}

.contact_info__label {
    font-size: var(--small-size);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.contact_info__text,
.contact_info__link {
    font-size: var(--body-size);
    line-height: var(--line-height);
    color: var(--color-text);
    font-style: normal; /* Reset für <address> Tag */
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact_info__link {
    font-weight: 600;
    position: relative;
    display: inline-block;
    width: fit-content;
}

/* Animiertes Underline für Links */
.contact_info__link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

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

.contact_info__link:hover::after {
    width: 100%;
}


/* ==========================================================================
   Modifiers (Varianten)
   ========================================================================== */

/* --- Variante: Card Layout --- */
.contact_info--card {
    background: linear-gradient(to bottom right, var(--color-background), var(--color-background-alt));
    padding: var(--spacing-lg);
    border-radius: calc(var(--border-radius) * 2);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.contact_info--card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.contact_info--card .contact_info__item:hover {
    background-color: var(--color-background);
}


/* --- Variante: Split Layout mit Karte --- */
.contact_info--with-map {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    background-color: var(--color-background);
    border-radius: calc(var(--border-radius) * 2);
    box-shadow: var(--shadow-md);
    overflow: hidden; /* Damit die Map die abgerundeten Ecken respektiert */
}

.contact_info--with-map .contact_info__details {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact_info__map-container {
    position: relative;
    min-height: 350px;
    background-color: var(--color-background-alt);
    width: 100%;
    height: 100%;
}

.contact_info__map-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(40%) contrast(1.1); /* Dezenter, professioneller Look */
    transition: filter 0.5s ease;
}

.contact_info__map-container:hover .contact_info__map-iframe {
    filter: grayscale(0%) contrast(1); /* Volle Farbe bei Hover */
}


/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet */
@media (min-width: 768px) {
    .contact_info--with-map {
        grid-template-columns: repeat(2, 1fr);
        align-items: stretch;
    }

    .contact_info__map-container {
        min-height: 100%; /* Füllt die Grid-Höhe aus */
    }
    
    .contact_info--card {
        padding: var(--spacing-xl);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .contact_info--with-map .contact_info__details {
        padding: var(--spacing-xl);
    }
    
    .contact_info__title {
        font-size: var(--h1-size); /* Größere Heading auf Desktop in der Map-Ansicht */
    }
    
    .contact_info--default .contact_info__title,
    .contact_info--card .contact_info__title {
        font-size: var(--h2-size); /* Beibehaltung der Größe in kleineren Containern */
    }
}



/* === Fallback-Styles (Sicherheitsnetz) === */

/* Active Navigation */
.header__nav-link--active {
  color: var(--color-primary);
  font-weight: 600;
}

/* Header Logo: Nie überstehen! */
.header__logo-image {
  max-height: 100px;
  width: auto;
  display: block;
}

/* Footer Logo */
.footer__logo-image {
  max-height: 40px;
  width: auto;
  display: block;
}

/* Header Sticky + Scroll-Shadow */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-background);
  transition: box-shadow 0.3s ease;
}
.header--scrolled {
  box-shadow: var(--shadow-md);
}

/* Header Nav-Link Hover-Underline Fallback */
.header__nav-link {
  position: relative;
  transition: color 0.3s ease;
}
.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}
.header__nav-link:hover::after,
.header__nav-link--active::after {
  width: 100%;
}
.header__nav-link:hover {
  text-decoration: none;
  color: var(--color-primary);
}

/* Header CTA Button Fallback */
.header__cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: var(--small-size);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.header__cta-button:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.1);
}

/* Footer Address Lines */
.footer__address {
  font-style: normal;
}
.footer__address-line {
  display: block;
  margin-bottom: 0.375rem;
}
.footer__address-line i {
  width: 1.25em;
  text-align: center;
  margin-right: 0.375rem;
  opacity: 0.7;
}

/* Footer Link Hover */
.footer__link {
  transition: opacity 0.3s ease, color 0.3s ease;
}
.footer__link:hover {
  text-decoration: none;
  opacity: 0.8;
}

/* === FAQ Accordion === */

/* === Dienstleistungsseite: Service-CTA-Abstand === */
.service-cta-wrapper {
  margin-top: var(--spacing-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

/* === Dienstleistungsseite: Listen-Styling mit fa-check === */
.grid__item ul {
  list-style: none;
  padding: 0;
  margin: var(--spacing-md) 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.grid__item ul li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: 0.1em 0;
  line-height: var(--line-height);
}

.grid__item ul li i.fa-check {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.2em;
  font-size: 0.9em;
}

/* === Dienstleistungsseite: Vertikale Zentrierung in Grid-Sektionen === */
.grid.grid--2 {
  align-items: center;
}
.faq {
  max-width: 900px;
  margin: 0 auto;
}

.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-sm);
  background-color: var(--color-background);
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq__item:last-child {
  margin-bottom: 0;
}

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

.faq__item[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.faq__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-size: var(--body-size);
  font-weight: 600;
  color: var(--color-text);
  transition: color 0.3s ease, background-color 0.3s ease;
}

.faq__summary::-webkit-details-marker {
  display: none;
}

.faq__summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.875rem;
  color: var(--color-primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq__item[open] .faq__summary::after {
  transform: rotate(180deg);
}

.faq__summary:hover {
  color: var(--color-primary);
  background-color: var(--color-background-alt);
}

.faq__answer {
  padding: 0 var(--spacing-md) var(--spacing-md);
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: var(--color-text-muted);
  line-height: var(--line-height);
  margin: 0;
}

/* === Mobile Title Fixes === */
@media (max-width: 767px) {
  h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.375rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero {
    overflow: visible;
    min-height: auto;
  }

  .hero__headline {
    font-size: 1.75rem;
    line-height: 1.25;
    margin-bottom: var(--spacing-md);
  }

  .hero--small .hero__headline,
  .hero--medium .hero__headline {
    font-size: 1.5rem;
  }

  .hero__subline {
    font-size: var(--small-size);
  }

  .section__title {
    font-size: 1.375rem;
    line-height: 1.3;
  }

  .section__subtitle {
    font-size: var(--small-size);
  }

  .cta__headline {
    font-size: 1.375rem;
    line-height: 1.3;
  }

  .features__headline {
    font-size: 1.375rem;
    line-height: 1.3;
  }

  .gallery__title {
    font-size: 1.375rem;
  }

  .steps__headline {
    font-size: 1.375rem;
  }

  .contact_info__title {
    font-size: 1.375rem;
  }

  .demo-card__title {
    font-size: 1.125rem;
  }

  .card__title {
    font-size: 1.125rem;
  }

  .header__logo-text {
    font-size: 1.25rem;
  }

  .navigation__logo {
    font-size: 1.25rem;
  }

  .contact_info--with-map {
    overflow: visible;
  }

  .contact_info__link,
  .contact_info__text {
    overflow-wrap: break-word;
    word-break: break-word;
    width: auto;
    min-width: 0;
  }

  .contact_info__content {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .section__subtitle {
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

