/* === Design Tokens === */
:root {
  --color-primary: #353d3a;
  --color-secondary: #909078;
  --color-accent: #353d3a;
  --color-background: #ffffff;
  --color-background-alt: #f7f7f5;
  --color-text: #201b1b;
  --color-text-muted: #5e5e5e;
  --color-border: #e5e5e5;
  --color-error: #dc2626;
  --color-success: #16a34a;
  --font-heading: Barlow Condensed, sans-serif;
  --font-body:  Barlow Condensed, sans-serif;
  --h1-size: 4rem;
  --h2-size: 2.5rem;
  --h3-size: 1.75rem;
  --body-size: 1.125rem;
  --small-size: 0.875rem;
  --line-height: 1.6;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  --spacing-section: 120px;
  --max-width: 1280px;
  --container-padding: 2rem;
  --border-radius: 0px;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --nav-align: right;
  --footer-columns: 4;
  --breakpoint-mobile: 320px;
  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 1024px;
  --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 */

/* === navigation === */
/* Komponenten-CSS */

/* --- Globale Button Styles (aus Design-Kontext abgeleitet) --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem var(--spacing-md);
  font-family: var(--font-body);
  font-size: var(--body-size);
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--border-radius); /* 0px laut Vorgabe */
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.button--primary {
  background-color: var(--color-primary);
  color: var(--color-background); /* Weißer Text auf dunklem Grund */
  box-shadow: var(--shadow-sm);
}

.button--primary:hover,
.button--primary:focus-visible {
  transform: translateY(-2px);
  background-color: var(--color-text); /* Noch dunkler beim Hover */
  color: var(--color-background);
}

.button--primary:active {
  transform: translateY(0);
}

.button--outline {
  background-color: var(--color-background);
  color: var(--color-text);
  border-color: var(--color-text);
}

.button--outline:hover,
.button--outline:focus-visible {
  background-color: var(--color-text);
  color: var(--color-background);
  transform: translateY(-2px);
}

/* --- Header Container --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background-color: var(--color-background);
  /* Feine horizontale Trennlinie laut Vorgabe */
  border-bottom: 1px solid var(--color-background-alt); 
  transition: box-shadow 0.3s ease;
}

/* Optionale Klasse für JS, wenn gescrollt wird */
.header.is-scrolled {
  box-shadow: var(--shadow-md);
}

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

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

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

/* --- Navigation Block --- */
.navigation {
  display: flex;
  align-items: center;
}

/* --- Mobile Toggle (Hamburger) --- */
.navigation__toggle {
  display: block;
  background: transparent;
  border: none;
  padding: var(--spacing-xs);
  cursor: pointer;
  z-index: 1001; /* Über dem mobilen Menü */
}

.navigation__toggle-box {
  width: 24px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.navigation__toggle-inner {
  display: block;
  top: 50%;
  margin-top: -1px;
}

.navigation__toggle-inner,
.navigation__toggle-inner::before,
.navigation__toggle-inner::after {
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  position: absolute;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.navigation__toggle-inner::before,
.navigation__toggle-inner::after {
  content: "";
  display: block;
}

.navigation__toggle-inner::before {
  top: -8px;
}

.navigation__toggle-inner::after {
  bottom: -8px;
}

/* Toggle Active State (JS) */
.navigation__toggle.is-active .navigation__toggle-inner {
  background-color: transparent;
}

.navigation__toggle.is-active .navigation__toggle-inner::before {
  transform: translateY(8px) rotate(45deg);
}

.navigation__toggle.is-active .navigation__toggle-inner::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Navigation List (Mobile First) --- */
.navigation__list {
  list-style: none;
  margin: 0;
  padding: 0;
  
  /* Mobile Styling: Versteckt, absolutes Overlay */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-background-alt);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  
  /* Animation für Einblenden */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

.navigation__item {
  display: block;
  width: 100%;
}

.navigation__item--cta {
  margin-top: var(--spacing-sm);
}

.navigation__item--cta .button {
  width: 100%;
}

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

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

.navigation__link:hover,
.navigation__link:focus-visible {
  color: var(--color-primary);
}

.navigation__link:hover::after,
.navigation__link:focus-visible::after {
  width: 100%;
}

/* Active State */
.navigation__link--active {
  font-weight: 600;
  color: var(--color-primary);
}

.navigation__link--active::after {
  width: 100%;
}

/* --- Varianten --- */
.navigation--vertical .navigation__list {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border: none;
  padding: 0;
  background: transparent;
}

/* --- Desktop Layout (ab 1024px) --- */
@media (min-width: 1024px) {
  .header__container {
    padding: var(--spacing-md) var(--spacing-lg);
  }

  .navigation__toggle {
    display: none;
  }

  .navigation--horizontal .navigation__list {
    /* Reset Mobile Styles */
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    background: transparent;
    
    /* Desktop Flex Layout */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: var(--spacing-md);
  }

  .navigation--horizontal .navigation__item {
    width: auto;
  }

  .navigation--horizontal .navigation__item--cta {
    margin-top: 0;
    margin-left: var(--spacing-sm);
  }
  
  .navigation--horizontal .navigation__link {
    padding-bottom: 4px; /* Platz für die Linie */
  }
}

/* === hero === */
/* Hero Component Styles */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
    background-color: var(--color-primary);
}

/* --- Background & Overlay --- */
.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle gradient overlay using dark brand colors to ensure white text readability */
    background: linear-gradient(
        135deg,
        rgba(32, 27, 27, 0.85) 0%, /* var(--color-text) approximate */
        rgba(53, 61, 58, 0.75) 100% /* var(--color-primary) approximate */
    );
}

/* --- Layout Container --- */
.hero__container {
    position: relative;
    z-index: 2;
    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;
}

/* --- Typography --- */
.hero__headline {
    color: var(--color-background);
    font-family: var(--font-heading);
    /* Responsive typography scaling */
    font-size: clamp(2.5rem, 6vw, var(--h1-size));
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0;
    position: relative;
}

/* Decorative line under headline based on design rules */
.hero__headline::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-secondary);
    margin-top: var(--spacing-md);
    transition: width 0.3s ease;
}

.hero__subline {
    color: var(--color-background-alt);
    font-family: var(--font-body);
    font-size: clamp(1.125rem, 2vw, var(--h3-size));
    line-height: var(--line-height);
    margin: 0;
    max-width: 600px;
}

/* --- Buttons / CTAs --- */
.hero__cta-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

@media (min-width: 768px) {
    .hero__cta-group {
        flex-direction: row;
    }
}

.hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--body-size);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--border-radius); /* 0px as per tokens */
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

/* Primary Button on Dark Hero (High Contrast) */
.hero__button--primary {
    background-color: var(--color-background);
    color: var(--color-text);
    border: 2px solid var(--color-background);
}

.hero__button--primary:hover,
.hero__button--primary:focus {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-background);
    transform: translateY(-4px);
}

/* Secondary Button (Ghost/Outline) */
.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-text);
    transform: translateY(-4px);
}

/* Active states for buttons */
.hero__button:active {
    transform: translateY(0);
}

/* --- Modifiers --- */

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

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

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

/* Alignment Variant */
.hero--centered .hero__content {
    align-items: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero--centered .hero__headline::after {
    margin-left: auto;
    margin-right: auto;
}

.hero--centered .hero__subline {
    margin-left: auto;
    margin-right: auto;
}

.hero--centered .hero__cta-group {
    justify-content: center;
}

/* Hover effect on the whole hero to slightly expand the line */
.hero:hover .hero__headline::after {
    width: 80px;
}

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

/* 
  Basis-Styling für den Footer.
  Nutzt die Primärfarbe als dunklen Hintergrund, wie in der Mockup-Analyse gefordert.
*/
.footer {
  background-color: var(--color-primary);
  color: var(--color-background);
  font-family: var(--font-body);
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  position: relative;
  overflow: hidden;
}

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

/* --- Brand Section --- */
.footer__brand {
  margin-bottom: var(--spacing-lg);
  max-width: 500px;
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: var(--h2-size);
  font-weight: 700;
  color: var(--color-background);
  text-decoration: none;
  display: inline-block;
  margin-bottom: var(--spacing-xs);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.footer__logo-text:hover {
  opacity: 0.8;
}

.footer__brand-text {
  color: var(--color-background);
  opacity: 0.7;
  font-size: var(--body-size);
  line-height: var(--line-height);
  margin: 0;
}

/* --- Grid Layout (Mobile First) --- */
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-xl);
}

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

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

/* --- Columns & Typography --- */
.footer__column-title {
  font-family: var(--font-heading);
  font-size: var(--h3-size);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-background);
  margin-top: 0;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-xs);
}

/* Dezente Trennlinie unter den Überschriften */
.footer__column-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-secondary);
}

/* --- Listen & Links --- */
.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  margin-bottom: 20px;
}

.footer__list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.footer__list-icon {
  color: var(--color-secondary);
  margin-top: 0.3em; /* Optischer Ausgleich zur Texthöhe */
  width: 16px;
  text-align: center;
}

.footer__text-muted {
  color: var(--color-background);
  opacity: 0.7;
  line-height: var(--line-height);
}

.footer__link {
  color: var(--color-background);
  opacity: 0.7;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

/* Hover-Effekt: Text wird heller und rückt leicht nach rechts ein */
.footer__link:hover,
.footer__link:focus {
  opacity: 1;
  color: var(--color-background);
  transform: translateX(4px);
}

/* --- Social 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;
  border: 1px solid var(--color-secondary);
  border-radius: var(--border-radius);
  color: var(--color-background);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer__social-link:hover,
.footer__social-link:focus {
  background-color: var(--color-secondary);
  color: var(--color-primary); /* Dunkles Icon auf hellem Grund bei Hover */
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

/* --- Bottom Section (Copyright & Legal Links) --- */
.footer__bottom {
  border-top: 1px solid var(--color-secondary); /* Nutzt Secondary als dezenten Rahmen */
  padding-top: var(--spacing-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  text-align: center;
}

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

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

.footer__bottom-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--spacing-md);
}

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

.footer__bottom-link:hover,
.footer__bottom-link:focus {
  opacity: 1;
}

/* --- Varianten --- */

/* Simple Variante: Weniger Spalten, zentriert */
.footer--simple .footer__grid {
  grid-template-columns: 1fr;
  text-align: center;
}

.footer--simple .footer__column-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.footer--simple .footer__list-item {
  justify-content: center;
}

@media (min-width: 768px) {
  .footer--simple .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }
  
  .footer--simple .footer__column-title::after {
    left: 0;
    transform: none;
  }
  
  .footer--simple .footer__list-item {
    justify-content: flex-start;
  }
}

/* === header === */
/* ==========================================================================
   Header Component Styles
   ========================================================================== */

/* Base Header */
.header {
  background-color: var(--color-background);
  /* Feine horizontale Trennlinie gemäß Mockup-Analyse */
  border-bottom: 1px solid var(--color-border);
  width: 100%;
  position: relative;
  z-index: 1000;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Modifiers */
.header--sticky {
  position: sticky;
  top: 0;
}

/* Wird per JS hinzugefügt, wenn gescrollt wird */
.header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header--transparent {
  background-color: transparent;
  border-bottom-color: transparent;
}

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

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 1001; /* Bleibt über dem Mobile-Menü sichtbar */
}

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

/* ==========================================================================
   Mobile Toggle Button (Hamburger)
   ========================================================================== */
.header__mobile-toggle {
  position: relative;
  width: 32px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  display: block;
}

.header__toggle-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.header__toggle-line:nth-child(1) { top: 0; }
.header__toggle-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.header__toggle-line:nth-child(3) { bottom: 0; }

/* Mobile Toggle Animation (Klasse .is-open wird per JS gesetzt) */
.header__mobile-toggle.is-open .header__toggle-line:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.header__mobile-toggle.is-open .header__toggle-line:nth-child(2) {
  opacity: 0;
}
.header__mobile-toggle.is-open .header__toggle-line:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ==========================================================================
   Navigation & Menu Layout (Mobile First)
   ========================================================================== */
.header__menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-background);
  display: flex;
  flex-direction: column;
  padding: calc(80px + var(--spacing-md)) var(--spacing-md) var(--spacing-md);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  overflow-y: auto;
  z-index: 1000;
}

/* Mobile Menu Open State */
.header__menu.is-open {
  transform: translateX(0);
}

.header__nav {
  margin-bottom: var(--spacing-lg);
}

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

.header__nav-link {
  display: inline-block;
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding: var(--spacing-xs) 0;
  transition: color 0.3s ease;
}

/* Animierte Unterstreichung (Hover & Active) */
.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::after,
.header__nav-link--active::after {
  width: 100%;
}

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

/* ==========================================================================
   Buttons (Global Component Style applied here)
   ========================================================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.875rem 2rem;
  /* Eckiges Design gemäß Mockup-Analyse */
  border-radius: var(--border-radius); 
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  width: 100%; /* Full width on mobile */
}

.button--primary {
  background-color: var(--color-primary);
  color: var(--color-background);
  border: 2px solid var(--color-primary);
}

/* Hover-Effekt: Invertiert die Farben für starken Kontrast */
.button--primary:hover {
  background-color: var(--color-background);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.button--primary:active {
  transform: translateY(0);
}

/* ==========================================================================
   Media Queries (Tablet & Desktop)
   ========================================================================== */

@media (min-width: 768px) {
  .header__container {
    padding: var(--spacing-sm) var(--spacing-lg);
  }
  
  .button {
    width: auto; /* Reset full width */
  }
}

@media (min-width: 1024px) {
  .header__mobile-toggle {
    display: none; /* Hide hamburger */
  }

  .header__menu {
    /* Reset mobile fixed positioning */
    position: static;
    height: auto;
    width: auto;
    background-color: transparent;
    padding: 0;
    transform: none;
    overflow: visible;
    
    /* Desktop Layout: Rechtsbündig ausrichten */
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1;
    justify-content: flex-end; /* WICHTIG: Rechtsbündige Ausrichtung */
    gap: var(--spacing-lg);
  }

  .header__nav {
    margin-bottom: 0;
  }

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

  .header__nav-link {
    font-size: 0.9375rem; /* Etwas kleiner auf Desktop */
    padding-bottom: 4px; /* Platz für die Unterstreichung */
  }
}

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

.cta {
  padding: var(--spacing-section) 0;
  background-color: var(--color-background-alt);
  /* Dezente Trennlinien oben/unten passend zum strukturierten Design */
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

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

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

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

.cta__headline {
  font-family: var(--font-heading);
  font-size: var(--h2-size);
  color: var(--color-text);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  position: relative;
  padding-bottom: var(--spacing-sm);
}

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

.cta:hover .cta__headline::after {
  width: 90px;
}

.cta__description {
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: var(--color-text-muted);
  line-height: var(--line-height);
  margin: 0;
  max-width: 65ch;
}

.cta__actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin-top: var(--spacing-xs);
}

/* 
  Button Styling (Greulich Style)
  Eckig, hoher Kontrast, uppercase 
*/
.cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background-color: var(--color-primary);
  color: var(--color-background);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--body-size);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 2px solid var(--color-primary);
  border-radius: var(--border-radius); /* Design Token: 0px */
  transition: all 0.3s ease;
  cursor: pointer;
}

.cta__button:hover,
.cta__button:focus-visible {
  background-color: transparent;
  color: var(--color-primary);
  transform: translateY(-4px);
  /* Harter Schatten für den "Outline" Effekt beim Hover */
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
}

.cta__button:active {
  transform: translateY(0);
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
}

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

/* --- Variante: Zentriert --- */
.cta--centered .cta__content {
  align-items: center;
  text-align: center;
}

.cta--centered .cta__headline::after {
  left: 50%;
  transform: translateX(-50%);
}

.cta--centered .cta__description {
  margin-left: auto;
  margin-right: auto;
}

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

/* --- Variante: Split (Text links, Button rechts) --- */
@media (min-width: 768px) {
  .cta--split .cta__content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-xl);
  }

  .cta--split .cta__text {
    flex: 1;
  }

  .cta--split .cta__actions {
    flex-shrink: 0;
    margin-top: 0;
  }
}

/* --- Variante: Dark Theme (Optional für extremen Kontrast) --- */
.cta--dark {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

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

.cta--dark .cta__headline::after {
  background-color: var(--color-secondary);
}

.cta--dark .cta__description {
  color: var(--color-background-alt);
  opacity: 0.8;
}

.cta--dark .cta__button {
  background-color: var(--color-background);
  color: var(--color-primary);
  border-color: var(--color-background);
}

.cta--dark .cta__button:hover,
.cta--dark .cta__button:focus-visible {
  background-color: transparent;
  color: var(--color-background);
  box-shadow: 4px 4px 0px rgba(255, 255, 255, 0.2);
}

/* === card === */
/* ==========================================================================
   CARD COMPONENT
   ========================================================================== */

/* Demo Grid Container (entsprechend Regel 8) */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  padding: var(--container-padding);
  max-width: var(--max-width);
  margin: 0 auto;
}

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

@media (min-width: 1024px) {
  /* Horizontal Card nimmt 2 Spalten ein, Rest 1 Spalte */
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .card--horizontal {
    grid-column: span 2;
  }
}

/* Base Card Styles */
.card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-background);
  border-radius: var(--border-radius); /* Im Mockup 0px */
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm); /* Nutzt Token, auch wenn es 'none' ist */
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

/* Image Wrapper */
.card__image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background-color: var(--color-background-alt); /* Platzhalter-Farbe */
}

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

.card:hover .card__image {
  transform: scale(1.05);
}

/* Content Area */
.card__content {
  display: flex;
  flex-direction: column;
  padding: var(--spacing-md);
  flex-grow: 1;
  gap: var(--spacing-sm);
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--h3-size);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.card__text {
  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;
}

/* Footer & CTA */
.card__footer {
  margin-top: auto;
  padding-top: var(--spacing-sm);
  display: flex;
  align-items: center;
}

/* Button Styles (Mockup spezifisch: Eckig, Schwarz/Weiß) */
.card__cta {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--body-size);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 0.875rem 2rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Outline Button (Sekundär) */
.card__cta--outline {
  margin-top:20px;
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.card__cta--outline:hover {
  background-color: var(--color-primary);
  color: var(--color-background);
  transform: translateY(-2px);
}

/* Filled Button (Primär) */
.card__cta--filled {
  background-color: var(--color-primary);
  color: var(--color-background);
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
}

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

/* Text Link Button */
.card__cta--text {
  background-color: transparent;
  color: var(--color-primary);
  padding: 0.5rem 0;
  border: none;
  position: relative;
}

.card__cta--text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.card__cta--text:hover::after {
  width: 100%;
}


/* ==========================================================================
   VARIANTS
   ========================================================================== */

/* 1. Feature Card (Minimalistisch mit Icon) */
.card--feature {
  background-color: var(--color-background-alt);
  border: 1px solid transparent;
  text-align: center;
  align-items: center;
}

.card--feature:hover {
  border-color: var(--color-border);
  background-color: var(--color-background);
}

.card--feature .card__icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  margin-top: var(--spacing-md);
  border-radius: var(--border-radius);
  color: var(--color-primary);
  font-size: 2rem;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.card--feature:hover .card__icon-wrapper {
  
  transform: scale(1.5);
}

.card--feature .card__content {
  align-items: center;
}

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


/* 2. Overlay Card (Bild als Hintergrund) */
.card--overlay {
  border: none;
}

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

.card--overlay .card__overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(32, 27, 27, 0.95) 0%, rgba(32, 27, 27, 0.4) 50%, rgba(32, 27, 27, 0.1) 100%);
  z-index: 2;
  transition: opacity 0.3s ease;
}

.card--overlay:hover .card__overlay-gradient {
  opacity: 0.9;
}

.card--overlay .card__content {
  position: relative;
  z-index: 3;
  justify-content: flex-end; /* Inhalt nach unten pushen */
  min-height: 350px; /* Mindesthöhe garantieren */
}

.card--overlay .card__title,
.card--overlay .card__text {
  color: var(--color-background); /* Heller Text auf dunklem Bild */
}

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


/* 3. Horizontal Card (Bild links, Text rechts ab Tablet) */
.card--horizontal {
  flex-direction: column; /* Mobile first */
}

@media (min-width: 768px) {
  .card--horizontal {
    flex-direction: row;
  }

  .card--horizontal .card__image-wrapper {
    width: 45%;
    aspect-ratio: auto;
    flex-shrink: 0;
  }

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

/* === section === */
/* Korrigiertes CSS */
/* ==========================================================================
   COMPONENT: SECTION
   ========================================================================== */

/* Base Section Styles
   Mobile-first approach with generous whitespace as per mockup analysis */
.section {
  width: 100%;
  padding: var(--spacing-lg) 0;
  transition: background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

@media (min-width: 1024px) {
  .section {
    /* Extra generous whitespace for desktop (minimalist design) */
    padding: calc(var(--spacing-xl) * 1.5) 0; 
  }
}

/* Container to constrain width and manage horizontal padding */
.section__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Header area for the title */
.section__header {
  margin-bottom: var(--spacing-md);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .section__header {
    margin-bottom: var(--spacing-lg);
  }
}

/* Title Styling (Barlow Condensed, bold, uppercase) */
.section__title {
  font-family: var(--font-heading);
  font-size: var(--h2-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  line-height: var(--line-height);
  position: relative;
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  color: inherit;
}

/* Decorative horizontal line (Trennlinie) under the title */
.section__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  /* Using spacing vars to avoid hardcoded px values (lg is approx 60-64px) */
  width: var(--spacing-lg); 
  height: calc(var(--spacing-xs) / 2); /* approx 3-4px */
  background-color: var(--color-primary);
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Subtle animation on hover over the section to make it feel alive */
.section:hover .section__title::after {
  width: calc(var(--spacing-lg) * 1.5);
}

/* Content Area */
.section__content {
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--line-height);
  color: inherit;
}

.section__text {
  margin: 0;
  max-width: 80ch; /* Optimal reading length */
}


/* ==========================================================================
   MODIFIERS (VARIANTS)
   ========================================================================== */

/* 1. Default (White background) */
.section--default {
  background-color: var(--color-background);
  color: var(--color-text);
}
.section--default .section__title::after {
  background-color: var(--color-primary);
}

/* 2. Alt (Light gray background for subtle separation) */
.section--alt {
  background-color: var(--color-background-alt);
  /* FIX: Kontrast-Problem behoben - Textfarbe explizit auf dunkel gesetzt */
  color: var(--color-text);
  /* Subtle inner shadow for depth without breaking flat design */
  box-shadow: inset 0 1px 0 var(--color-border);
}

/* FIX: Explizite Zuweisung der dunklen Textfarbe für Unterelemente, um unerwünschte Vererbung (weißer Text) auf dem hellgrauen Hintergrund zu verhindern */
.section--alt .section__title,
.section--alt .section__text {
  color: var(--color-text);
}

.section--alt .section__title::after {
  background-color: var(--color-primary);
}

/* 3. Primary (Brand color background) */
.section--primary {
  background-color: var(--color-primary);
  color: var(--color-background);
}
.section--primary .section__title::after {
  background-color: var(--color-secondary);
}
.section--primary .section__text {
  color: var(--color-background-alt); /* Slightly muted white for readability */
}

/* 4. Dark (Deepest background, high contrast) */
.section--dark {
  background-color: var(--color-text);
  color: var(--color-background);
}
.section--dark .section__title::after {
  background-color: var(--color-secondary);
}
.section--dark .section__text {
  color: var(--color-background-alt);
}

/* === grid === */
/* ==========================================================================
   GRID COMPONENT (Layout)
   ========================================================================== */

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

/* --- Tablet Breakpoint (768px) --- */
@media (min-width: 768px) {
    .grid {
        gap: var(--spacing-lg);
    }
    
    /* Standardmäßig auf 2 Spalten auf dem Tablet, um Quetschen zu vermeiden */
    .grid--2,
    .grid--3,
    .grid--4,
    .grid--5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

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

/* ==========================================================================
   GRID CARD (Inhalt/Design Pattern passend zum Greulich & Co Kontext)
   ========================================================================== */

.grid-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--color-background);
    /* Minimalistisches Design: Harte Kanten statt Schatten */
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius); /* Token ist 0px */
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

/* Hover-Effekt: Leichtes Anheben und Rahmen-Highlight */
.grid-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    /* Sehr subtiler Schatten für etwas Tiefe beim Hover, trotz Flat-Design Ansatz */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.grid-card__image-placeholder {
    background-color: var(--color-background-alt);
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 3rem;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Icon Invertierung bei Card-Hover */
.grid-card:hover .grid-card__image-placeholder {
    background-color: var(--color-primary);
    color: var(--color-background);
}

.grid-card__content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.grid-card__title {
    font-family: var(--font-heading);
    font-size: var(--h3-size);
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.grid-card__text {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height);
    flex-grow: 1; /* Drückt den Link nach unten */
}

/* Ghost-Link Style (passend zu sekundären Buttons im Mockup) */
.grid-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-body);
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: var(--small-size);
    margin-top: auto;
    padding-bottom: 4px;
    position: relative;
    width: max-content;
}

/* Animierte Unterstreichung für den Link */
.grid-card__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.grid-card__link i {
    transition: transform 0.3s ease;
}

.grid-card:hover .grid-card__link::after,
.grid-card__link:hover::after {
    width: 100%;
}

.grid-card__link:hover i,
.grid-card:hover .grid-card__link i {
    transform: translateX(4px);
}

/* === form === */
/* Formular-CSS */

/* === Base Form === */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  width: 100%;
  max-width: var(--max-width);
}

/* === Grid Layout (Default/Stacked) === */
.form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

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

/* === Groups === */
.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.form__group--full {
  grid-column: 1 / -1;
}

/* === Labels === */
.form__label {
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: var(--color-text);
  font-weight: 600;
  line-height: var(--line-height);
}

.form__label--hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Inputs, Textareas, Selects === */
.form__input,
.form__textarea,
.form__select {
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: var(--color-text);
  background-color: var(--color-background);
  /* Markanter, eckiger Rahmen passend zum Construction-Design */
  border: 1px solid var(--color-text-muted);
  border-radius: var(--border-radius); /* Aus Tokens: 0px */
  padding: 0.875rem 1rem;
  width: 100%;
  transition: all 0.3s ease;
  line-height: var(--line-height);
}

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

/* Focus States (Accessibility & Design) */
.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--color-primary);
  /* Erzeugt einen dickeren inneren Rahmen ohne das Layout zu verschieben */
  box-shadow: inset 0 0 0 1px var(--color-primary);
  background-color: var(--color-background-alt);
}

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

.form__select {
  appearance: none; /* Versteckt den nativen Pfeil */
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form__select-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none; /* Klicks gehen durch das Icon auf das Select */
  transition: color 0.3s ease;
}

.form__select:focus + .form__select-icon {
  color: var(--color-primary);
}

/* === Textarea Specifics === */
.form__textarea {
  resize: vertical;
  min-height: 120px;
}

/* === Checkbox Group === */
.form__group--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xs);
}

.form__checkbox {
  /* Moderne Checkbox-Einfärbung */
  accent-color: var(--color-primary);
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem; /* Ausrichtung am Text */
  cursor: pointer;
  flex-shrink: 0;
}

.form__label--inline {
  font-weight: 400;
  cursor: pointer;
  color: var(--color-text-muted);
}

.form__link {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--color-text);
  transition: all 0.3s ease;
}

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

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

.form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--body-size);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-background);
  background-color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--border-radius); /* 0px */
  padding: 1rem 2.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover: Wechselt zum Outline/Ghost Style (wie im Mockup gefordert) */
.form__submit:hover,
.form__submit:focus {
  background-color: var(--color-background);
  color: var(--color-primary);
  transform: translateY(-2px);
  /* Kein Shadow gemäß Vorgabe, Fokus liegt auf Farbkontrast */
}

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

/* === VARIANTE: Inline Form (z.B. für Newsletter im Footer) === */
.form--inline {
  flex-direction: column;
  gap: var(--spacing-sm);
}

@media (min-width: 768px) {
  .form--inline {
    flex-direction: row;
    align-items: flex-end; /* Richtet den Button am Input-Feld aus */
  }
  
  .form--inline .form__group {
    flex: 1;
    margin-bottom: 0;
  }
  
  .form--inline .form__actions {
    margin-top: 0;
    flex-shrink: 0;
  }
  
  .form--inline .form__submit {
    padding: 0.875rem 2rem; /* Gleiche Höhe wie Input erzwingen */
  }
}

/* === VARIANTE: Stacked (Erzwingt einspaltig auf allen Geräten) === */
.form--stacked .form__grid {
  grid-template-columns: 1fr;
}
.form--stacked .form__group--full {
  grid-column: auto;
}



/* === 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: 48px;
  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;
}

/* === timeline === */
.timeline {
    position: relative;
    padding-left: 40px;
    margin: var(--spacing-lg) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 19px;
    width: 2px;
    background-color: var(--color-border);
}

.timeline__item {
    position: relative;
    margin-bottom: var(--spacing-md);
}

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

.timeline__marker {
    position: absolute;
    left: -40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-background);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 2;
}

.timeline__content {
    background-color: var(--color-background);
    padding: var(--spacing-md);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-left: 50px;
}

.timeline__title {
    font-family: var(--font-heading);
    font-size: var(--h3-size);
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    font-weight: 700;
}

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

/* === list === */
.list--custom {
    list-style: none;
    padding-left: 0;
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.list--custom li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-body);
    font-size: var(--body-size);
    line-height: var(--line-height);
    color: var(--color-text-muted);
}

.list--custom li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
}

.list--custom strong {
    color: var(--color-text);
}


.card__cta.card__cta--outline i {
    margin-left: 10px;
}