/* Header.css – Import hub for split Header styles */
/*--------------------------------------------------
# Header Core & Desktop Navigation
--------------------------------------------------*/
/* #21018: header overlay tokens — replace literal rgba() so dark-mode
   icon buttons honour the surface palette. Light mode uses translucent
   blacks (icon buttons sit on a white surface), dark mode flips to
   translucent whites so buttons stay visible against the dark surface. */
:root {
  --header-scrolled-bg: rgba(255, 255, 255, 0.9);
  --header-icon-shade-50: rgba(0, 0, 0, 0.05);
  --header-icon-shade-100: rgba(0, 0, 0, 0.1);
  --header-icon-shadow: rgba(0, 0, 0, 0.1);
  --header-badge-shadow: rgba(0, 0, 0, 0.2);
  --header-icon-hover-drop: rgba(0, 0, 0, 0.1);
}
:is(.dark) {
  --header-scrolled-bg: rgba(15, 23, 42, 0.9);
  --header-icon-shade-50: rgba(255, 255, 255, 0.06);
  --header-icon-shade-100: rgba(255, 255, 255, 0.12);
  --header-icon-shadow: rgba(0, 0, 0, 0.4);
  --header-badge-shadow: rgba(0, 0, 0, 0.5);
  --header-icon-hover-drop: rgba(0, 0, 0, 0.4);
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* #12021/#12170: Use max-width instead of overflow-x:hidden to prevent viewport
     overflow — overflow:hidden clips PageSwitcher and SectionsDropdown menus */
  max-width: 100vw;
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  z-index: var(--z-sticky);
  transition: all var(--transition-medium);
}
/* FontAwesome icon size for sections-toggle */
.sections-toggle .fa-bars {
  font-size: 18px;
}
.header.scrolled {
  background-color: var(--header-scrolled-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
/* #21247: condensed-on-scroll — collapses padding + logo so mobile users
   reclaim viewport height once they've scrolled past ~100px. Pairs with the
   JS-driven --header-height switch in Header.tsx. */
.header.condensed .header-inner {
  padding-block: 0.5rem;
}
.header.condensed .logo img {
  height: 36px;
}
.header.condensed .logo h1 {
  font-size: 1.125rem;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 100%;
  transition: padding 180ms ease;
  /* overflow:hidden removed — it clips dropdown menus that extend below header */
}
/* #12021: Prevent header overflow at narrow viewports (375px) */
@media (max-width: 767px) {
  .header-inner {
    padding: 0.5rem 0;
  }

  .logo {
    min-width: 0;
    overflow: hidden;
  }

  .logo h1 {
    font-size: 1.125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .logo img {
    height: 36px;
    flex-shrink: 0;
  }
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #1a1a1a; /* Explicitly set link color to black for logo */
}
.logo img {
  height: 50px;
  margin-right: var(--space-sm);
}
.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  font-family: var(--font-heading);
}
/* Ensure logo link color doesn't change on hover */
.logo:hover,
.logo:focus {
  color: #1a1a1a;
}
.logo span {
  font-weight: 400;
  color: var(--gray);
}
/* #21001: brand wordmark — give the .brand-wordmark hook real typography
   so tenants whose logo replaces the h1 still render a styled wordmark. */
.logo span.brand-wordmark {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav li {
  margin: 0 var(--space-md);
}
.nav-link {
  font-weight: 500;
  color: var(--gray-dark);
  position: relative;
  padding: 0.5rem 0;
}
/* Spezifische Regel für bessere Lesbarkeit auf blauem Hintergrund */
.header .nav-link {
  color: var(--gray-dark);
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-medium);
}
.nav-link:hover,
.nav-link:focus {
  color: var(--primary);
}
.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}
.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  gap: 2px;
  flex-wrap: nowrap;
  overflow: visible;
}
/* #12021/#12170: Ensure desktop-only controls are hidden on mobile — prevent header overflow at 375px */
@media (max-width: 767px) {
  .header-actions .login-btn {
    display: none !important;
  }

  .header-actions .language-switch {
    display: none !important;
  }

  .header-actions .theme-toggle {
    display: none !important;
  }
}
/* MwSt.-Umschalter im Header */
.header-vat-toggle {
  display: flex;
  align-items: center;
  margin-right: var(--space-md);
  gap: 5px;
}
.vat-button {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 4px;
  transition: all var(--transition-fast);
  min-width: 44px;
  min-height: 44px;
}
.vat-button.active {
  color: var(--primary);
  font-weight: 600;
  background-color: rgba(var(--primary-rgb), 0.1);
}
.vat-button:hover:not(.active) {
  color: var(--gray-dark);
  background-color: rgba(var(--primary-rgb), 0.05);
}
.language-switch {
  display: flex;
  align-items: center;
  margin-right: var(--space-md);
  gap: 8px;
}
.language-switch button {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
}
.language-switch button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  box-shadow: 0 0 0 2px transparent;
  transition: all 0.2s ease;
}
.language-switch button:hover::after {
  box-shadow: 0 0 0 2px var(--primary);
}
.language-switch button.active::after {
  box-shadow: 0 0 0 2px var(--primary);
}
.language-switch button:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 3px var(--header-icon-hover-drop));
}
.language-switch span {
  margin: 0 0.25rem;
  color: var(--gray-light);
}
.cart-button {
  position: relative;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--gray-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-right: var(--space-md);
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--header-icon-shade-50);
}
.cart-button:hover {
  color: var(--primary);
  background-color: var(--header-icon-shade-100);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--header-icon-shadow);
}
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  background-color: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 4px var(--header-badge-shadow);
}
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--gray-dark);
  transition: all var(--transition-fast);
}
/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--gray-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-right: var(--space-md);
  width: 40px;
  height: 40px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--header-icon-shade-50);
}
.theme-toggle:hover {
  color: var(--primary);
  background-color: var(--header-icon-shade-100);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--header-icon-shadow);
}
/* Login-Button im Seiten-Farbschema */
.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1.4em;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--primary);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px 0 rgba(27, 85, 226, 0.1);
  cursor: pointer;
  transition:
    background 0.2s var(--transition-fast),
    box-shadow 0.2s var(--transition-fast),
    color 0.2s var(--transition-fast);
  outline: none;
}
.login-btn:hover,
.login-btn:focus {
  background: var(--primary-dark);
  color: var(--white);
  box-shadow: 0 4px 16px 0 rgba(27, 85, 226, 0.15);
}
.login-btn:active {
  background: var(--primary-light);
  color: var(--white);
  box-shadow: 0 1px 4px 0 rgba(27, 85, 226, 0.08);
}
.login-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* Fix: Scroll-Offset bei fixed Header */
section,
.section-header {
  scroll-margin-top: 88px; /* Höhe des fixen Headers als Offset */
}
/* Utility for inline SVG flags (CSP-safe, replaces inline styles) */
.flag-icon {
  display: inline;
  vertical-align: middle;
  border-radius: 2px;
}
.icon-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Dark Mode Styles are in HeaderDarkMode.css */
/*--------------------------------------------------
# Header Desktop Dark Mode Styles
--------------------------------------------------*/
.dark .header {
  background-color: var(
    --bg-surface-1-dark-theme
  ); /* Dunklerer Header-Hintergrund */
  box-shadow: var(--shadow-lg);
}
.dark .header.scrolled {
  background-color: rgba(
    var(--bg-surface-1-dark-theme-rgb, 32, 41, 56),
    0.9
  ); /* Annahme: --bg-surface-1-dark-theme ist #202938 */
}
.dark .logo {
  color: #e2e8f0;
}
.dark .logo:hover,
.dark .logo:focus {
  color: #f1f5f9;
}
.dark .logo h1 {
  color: var(--text-primary-dark-theme);
}
.dark .logo span {
  color: var(--text-secondary-dark-theme);
}
.dark .logo span.brand-wordmark {
  color: var(--text-primary-dark-theme);
}
.dark .nav-link {
  color: var(--text-primary-dark-theme);
  text-shadow: none; /* Textschatten im Dark Mode oft nicht nötig/störend */
}
.dark .nav-link:hover,
.dark .nav-link:focus {
  color: var(--primary-light);
}
.dark .nav-link::after {
  background-color: var(--primary-light);
}
/* MwSt.-Umschalter im Header Dark Mode */
.dark .header-vat-toggle .vat-button {
  color: var(--text-primary-dark-theme);
}
.dark .header-vat-toggle .vat-button.active {
  color: var(--primary-light);
  background-color: rgba(var(--primary-rgb), 0.2); /* Angepasste Akzentfarbe */
}
.dark .header-vat-toggle .vat-button:hover:not(.active) {
  color: var(--text-primary-dark-theme);
  background-color: var(--bg-hover-dark-theme);
}
.dark .language-switch button {
  /* Icons sollten idealerweise SVGs sein, die per fill: currentColor; gefärbt werden */
}
.dark .language-switch button:hover::after,
.dark .language-switch button.active::after {
  box-shadow: 0 0 0 2px var(--primary-light);
}
.dark .language-switch span {
  color: var(--text-muted-dark-theme);
}
.dark .cart-button {
  background-color: var(--bg-surface-2-dark-theme);
  color: var(--text-primary-dark-theme);
}
.dark .cart-button:hover {
  color: var(--primary-light);
  background-color: var(--bg-hover-dark-theme);
}
.dark .cart-badge {
  background-color: var(--primary-light);
  color: var(--bg-base-dark-theme);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.dark .menu-toggle span {
  background-color: var(--text-primary-dark-theme);
}
.dark .theme-toggle {
  background-color: var(--bg-surface-2-dark-theme);
  color: var(--text-primary-dark-theme);
}
.dark .theme-toggle:hover {
  color: var(--primary-light);
  background-color: var(--bg-hover-dark-theme);
}
.dark .login-btn {
  background: var(--primary-light);
  color: var(--bg-base-dark-theme);
  box-shadow: 0 2px 8px 0 rgba(var(--primary-rgb), 0.15);
}
.dark .login-btn:hover,
.dark .login-btn:focus {
  background: var(--primary);
  color: var(--text-primary-dark-theme);
  box-shadow: 0 4px 16px 0 rgba(var(--primary-rgb), 0.2);
}
.dark .login-btn:active {
  background: var(--primary-dark); /* Noch dunkler für active state */
}
.dark .login-btn:focus-visible {
  outline-color: var(
    --accent
  ); /* Akzentfarbe für Fokus beibehalten oder anpassen */
}
/* Dark-Mode: Kontraststarke Variante nur für den Login-Button im Header */
.dark .btn-login-dark {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.dark .btn-login-dark:hover,
.dark .btn-login-dark:active {
  background: #fff;
  color: var(--primary);
}
.dark .btn-login-dark:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}
/*--------------------------------------------------
# Header Mobile Menu & Responsive
--------------------------------------------------*/
/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  height: 100dvh;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-modal);
  padding: var(--space-lg);
  transition: right var(--transition-medium);
  overflow-y: auto;
}
.mobile-menu.active {
  right: 0;
}
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}
.close-menu {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray);
  cursor: pointer;
  transition: color var(--transition-fast);
  min-width: 44px;
  min-height: 44px;
}
.close-menu:hover {
  color: var(--primary);
}
.mobile-nav {
  margin-bottom: var(--space-xl);
}
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-nav li {
  margin-bottom: var(--space-md);
}
.mobile-nav a {
  display: block;
  font-size: 1.125rem;
  font-weight: 500;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--gray-dark);
  transition: color var(--transition-fast);
}
.mobile-nav a:hover {
  color: var(--primary);
}
.mobile-actions {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--light);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mobile-actions .language-switch {
  margin-right: 0;
  margin-bottom: var(--space-lg);
}
.mobile-actions .language-switch button {
  font-size: 1rem;
  padding: 0.5rem 1rem;
  background-color: var(--light);
  border-radius: var(--radius-sm);
  margin-right: var(--space-sm);
}
.mobile-actions .language-switch button.active {
  background-color: var(--primary);
  color: var(--white);
}
/* Mobile hamburger trigger styled analog to dropdown trigger */
.hamburger-btn {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-md);
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    color var(--transition-fast);
}
.hamburger-btn:hover {
  color: var(--primary);
  background-color: rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}
.hamburger-btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
/* Dark Mode: Mobile Menu */
.dark .mobile-menu {
  background-color: var(--bg-surface-1-dark-theme);
  box-shadow: var(--shadow-xl);
}
.dark .close-menu {
  color: var(--text-secondary-dark-theme);
}
.dark .close-menu:hover {
  color: var(--primary-light);
}
.dark .mobile-nav a {
  color: var(--text-primary-dark-theme);
}
.dark .mobile-nav a:hover {
  color: var(--primary-light);
}
.dark .mobile-actions {
  border-top-color: var(--border-dark-theme);
}
.dark .mobile-actions .language-switch button {
  background-color: var(--bg-surface-2-dark-theme);
  color: var(--text-primary-dark-theme);
}
.dark .mobile-actions .language-switch button.active {
  background-color: var(--primary-light);
  color: var(--bg-base-dark-theme);
}
.dark .hamburger-btn:hover {
  color: var(--primary-light);
  background-color: var(--bg-hover-dark-theme);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* Responsive Styles */
@media (max-width: 767px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
  /* Single-row header on mobile: [hamburger][logo]............[cart] */
  .header-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .hamburger-btn {
    order: 0;
    flex-shrink: 0;
  }

  .logo {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
  }

  .header-actions {
    order: 2;
    flex-shrink: 0;
  }
}
/* Fix: Deaktiviere Slide-in-Animation der mobilen Navigation auf Desktop */
@media (min-width: 768px) {
  .mobile-menu {
    right: 0 !important;
    transition: none !important;
    display: none !important;
  }
}
/*--------------------------------------------------
# Header Dropdowns, Sections Menu & PageSwitcher
--------------------------------------------------*/
/* Sections Dropdown (Desktop) */
.sections-menu {
  position: relative;
  margin-left: var(--space-md);
}
.sections-toggle {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-dark);
  cursor: pointer;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    color var(--transition-fast);
}
.sections-toggle:hover {
  color: var(--primary);
  background-color: rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}
/* Pfeile links/rechts neben dem Hamburger-Menü */
.sections-arrow {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-dark);
  margin: 0 6px;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    color var(--transition-fast),
    opacity var(--transition-fast);
}
.sections-arrow:hover {
  color: var(--primary);
  background-color: rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}
.sections-arrow:disabled,
.sections-arrow[disabled] {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}
.sections-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  max-width: 360px;
  background: var(--white);
  border: 1px solid var(--light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  z-index: 1000; /* über Header-Inhalt */
}
.sections-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 50vh;
  overflow: auto;
}
.sections-dropdown li {
  margin: 0;
}
.sections-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  min-height: 44px;
  color: var(--gray-dark);
  font-size: 0.95rem;
  text-decoration: none;
  transition:
    background var(--transition-fast),
    color var(--transition-fast);
}
.sections-item:hover,
.sections-item:focus {
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
}
/* Aktive Sektion hervorheben */
.sections-item.active {
  font-weight: 700;
  color: var(--primary);
}
.sections-empty {
  padding: 10px 14px;
  color: var(--gray);
  font-size: 0.9rem;
}
/* Dark Mode für Sections Dropdown */
.dark .sections-dropdown {
  background: var(--bg-surface-1-dark-theme);
  border-color: var(--border-dark-theme);
  box-shadow: var(--shadow-xl);
}
.dark .sections-item {
  color: var(--text-primary-dark-theme);
}
.dark .sections-item:hover,
.dark .sections-item:focus {
  background: var(--bg-hover-dark-theme);
  color: var(--primary-light);
}
.dark .sections-toggle {
  background-color: var(--bg-surface-2-dark-theme);
  color: var(--text-primary-dark-theme);
}
.dark .sections-toggle:hover {
  color: var(--primary-light);
  background-color: var(--bg-hover-dark-theme);
}
/* Dark Mode: Pfeile */
.dark .sections-arrow {
  background-color: var(--bg-surface-2-dark-theme);
  color: var(--text-primary-dark-theme);
}
.dark .sections-arrow:hover {
  color: var(--primary-light);
  background-color: var(--bg-hover-dark-theme);
}
/* Dark Mode: aktive Sektion */
.dark .sections-item.active {
  font-weight: 700;
  color: var(--primary-light);
}
/* Unified dropdown/menu item styles for Header and Mobile */
/* Desktop "Seiten" dropdown container */
.menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 14rem; /* ~224px */
  max-width: 20rem; /* ~320px */
  background: var(--white);
  border: 1px solid var(--light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  z-index: var(--z-dropdown);
  max-height: 60vh;
  overflow-y: auto;
}
/* Ensure list spacing is neutral */
.menu-dropdown li {
  margin: 0;
}
/* Shared menu item styling: desktop dropdown and mobile list items */
.menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  min-height: var(--touch-target-min, 44px); /* #9213: WCAG touch target */
  color: var(--gray-dark);
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition:
    background var(--transition-fast),
    color var(--transition-fast);
}
.menu-item:hover,
.menu-item:focus {
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
}
.menu-item:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
/* Dark variants */
.dark .menu-dropdown {
  background: var(--bg-surface-1-dark-theme);
  border-color: var(--border-dark-theme);
  box-shadow: var(--shadow-xl);
}
.dark .menu-item {
  color: var(--text-primary-dark-theme);
}
.dark .menu-item:hover,
.dark .menu-item:focus {
  background: var(--bg-hover-dark-theme);
  color: var(--primary-light);
}
.dark .menu-item:focus-visible {
  outline-color: var(--primary-light);
}
/* PageSwitcher – Header-spezifische Styles mit visueller Parität zum Sections-Dropdown */
.header .page-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px; /* konsistent zu Sections-Menü Buttons */
  /* Vergrößert die effektive Hover-Zone unterhalb des Inputs/Buttons */
  padding-bottom: 8px;
}
/* Erste Zeile im PageSwitcher-Dropdown: Chevrons einzeilig, ohne Umbruch */
.header .page-switcher .page-switcher__chevrons-row {
  display: flex !important; /* Override gegen DropdownMenu.css (.dropdown-menu > li { display:block !important }) */
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
}
/* Direkter Kind-Override: stellt sicher, dass der <li> innerhalb .dropdown-menu als Flex bleibt */
.header .page-switcher .dropdown-menu > li.page-switcher__chevrons-row {
  display: flex !important;
}
/* Header-spezifische Dropdown-Optimierungen:
   - kleinerer Abstand (items „weiter oben")
   - größere Touch-/Hover-Ziele für stabile Mausführung
   - höhere Max-Höhe im Header-Kontext */
.header .page-switcher .dropdown-menu {
  --dropdown-gap: 4px; /* vorher default 8px -> Liste steht näher am Feld */
  --dropdown-item-min-height: 48px; /* größere Hitbox pro Eintrag */
  max-height: 60vh; /* mehr Inhalt sichtbar ohne sofortiges Scrollen */
}
/* Eingabefeld: Tokens und Optik analog Sections-Trigger */
.header .page-switcher__input {
  height: var(--control-min-height, 44px);
  min-height: var(--control-min-height, 44px);
  width: min(
    14rem,
    55vw
  ); /* #9208: cap at 55vw so 320px screens keep ~45% free */
  max-width: 40vw;
  padding: 8px 12px;
  border: 1px solid var(--light);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--gray-dark);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    color var(--transition-fast);
}
.header .page-switcher__input:hover {
  border-color: color-mix(in oklab, var(--border), var(--primary) 20%);
}
.header .page-switcher__input:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-color: var(--ring);
}
/* Button: analog Sections-Toggle (Hamburger/Arrows), bündig neben Input */
.header .page-switcher__button {
  height: var(--control-min-height, 44px);
  min-height: var(--control-min-height, 44px);
  width: 44px;
  min-width: 44px;
  border: 1px solid var(--light);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-dark);
  background: var(--white);
  cursor: pointer;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}
.header .page-switcher__button:hover {
  color: var(--primary);
  background-color: rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  border-color: color-mix(in oklab, var(--border), var(--primary) 20%);
}
.header .page-switcher__button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
/* Dropdown: nutzt .menu-dropdown Basis, Kante bündig zum Eingabefeld links */
.header .page-switcher__list {
  left: 0;
  right: auto;
  top: calc(100% + 8px);
  min-width: 14rem; /* 224px */
  max-width: 20rem; /* 320px */
  z-index: var(--z-dropdown); /* über Header-Inhalt */
}
/* Einspaltige Liste, korrekte Innenabstände + Zeilenumbruch */
.header .page-switcher__option {
  white-space: normal;
  line-height: var(--leading-normal, 1.5);
}
/* Aktiver Eintrag analog Sections */
.header .menu-item[aria-selected="true"] {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
  font-weight: 600;
}
/* „Suche nach …" Eintrag */
.header .page-switcher__option--search {
  font-style: italic;
  color: var(--gray);
}
/* Dark Mode Varianten – angelehnt an Sections-Dropdown */
.dark .header .page-switcher__input {
  background: var(--bg-surface-1-dark-theme);
  color: var(--text-primary-dark-theme);
  border-color: var(--border-dark-theme);
}
.dark .header .page-switcher__input:hover {
  border-color: var(--border-light-dark-theme);
}
.dark .header .page-switcher__button {
  background: var(--bg-surface-1-dark-theme);
  color: var(--text-primary-dark-theme);
  border-color: var(--border-dark-theme);
}
.dark .header .page-switcher__button:hover {
  color: var(--primary-light);
  background-color: var(--bg-hover-dark-theme);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-color: var(--border-light-dark-theme);
}
/* PageSwitcher: aktueller Eintrag visuell wie Sections-Chooser */
.header .page-switcher__option--current {
  font-weight: 700;
  color: var(--primary);
}
.dark .header .page-switcher__option--current {
  color: var(--primary-light);
}
/* --------------------------------------------------
# Shared Dropdown Menu Base Styles
# Used by components like PageSwitcher outside header scope
# Tokens fallback to sensible defaults
-------------------------------------------------- */

.dropdown-menu {
  position: absolute;
  /* Logical props (with physical fallbacks) */
  inset-block-start: calc(100% + var(--dropdown-gap, 8px));
  inset-inline-start: 0;
  top: calc(100% + var(--dropdown-gap, 8px));
  left: 0;

  /* Sizing with width discipline */
  min-width: 100%;
  max-width: 22rem;
  max-height: 320px;
  overflow-y: auto;

  /* Spacing */
  padding: 0.5rem 0;
  margin: 0;

  /* Box (explicit values; --surface is never defined globally so var()-fallback was unreliable) */
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: var(--z-dropdown, 1000);
  isolation: isolate;
  will-change: transform;

  /* List reset + enforce single-column flow */
  list-style: none;
}

/* Doubled selector for specificity to override global styles without !important.
   The :not([hidden]) guard preserves the React-set `hidden` attribute used by
   PageSwitcher (`<ul hidden={!open}>`); without it, `display: block` wins over
   the UA `[hidden]` rule and the dropdown stays visible behind the header. */
.dropdown-menu.dropdown-menu:not([hidden]) {
  display: block;
  float: none;
  column-count: 1;
  columns: auto;
  -webkit-columns: auto;
  gap: 0;
  grid-auto-flow: row;
  flex-wrap: nowrap;
}

.dropdown-menu[hidden] {
  display: none !important;
}

/* Ensure direct list items are strict block and never float */
.dropdown-menu.dropdown-menu > li:not(.page-switcher__chevrons-row) {
  display: block;
  float: none;
  margin: 0;
  /* no padding on li itself; padding lives on the clickable item */
}

/* Dropdown item and possible clickable children – force full-width block flow */
.dropdown-menu.dropdown-menu .dropdown-item,
.dropdown-menu.dropdown-menu .dropdown-item > a,
.dropdown-menu.dropdown-menu
  .dropdown-item:not(.page-switcher__chevrons-row)
  > button,
.dropdown-menu.dropdown-menu > li > a {
  display: block;
  width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: none;
  vertical-align: baseline;
}

/* Base dropdown item visuals */
.dropdown-item {
  padding: 0.5rem 0.75rem;
  line-height: 1.25rem;
  min-height: var(
    --dropdown-item-min-height,
    44px
  ); /* konsistente Höhe für letztes Element (Touch ≥44px) */
  color: var(--text, #111);
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: 0;
}

/* Interactive states */
.dropdown-item:hover,
.dropdown-item[aria-selected="true"],
.dropdown-item.is-active {
  background: var(--hover, rgba(0, 0, 0, 0.04));
}

.dropdown-item:focus-visible {
  outline: 2px solid var(--ring, #3b82f6);
  outline-offset: 2px;
}

/* Current item emphasis (can be used by PageSwitcher) */
.dropdown-item.is-current {
  font-weight: 700;
  color: var(--primary, #1b55e2);
}

/* Dark mode variants (scoped via a .dark parent) */
.dark .dropdown-menu {
  background-color: #1f2937;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.dark .dropdown-item {
  color: var(--text-primary-dark-theme, #e5e7eb);
}

.dark .dropdown-item:hover,
.dark .dropdown-item[aria-selected="true"],
.dark .dropdown-item.is-active {
  background: var(--bg-hover-dark-theme, rgba(255, 255, 255, 0.06));
}

.dark .dropdown-item.is-current {
  color: var(--primary-light, #93c5fd);
}
/*--------------------------------------------------
# Footer
--------------------------------------------------*/
.footer {
  background-color: var(--dark);
  color: var(--light);
  padding: var(--space-xxl) 0 0;
  position: relative;
  overflow: hidden;
  z-index: 10; /* Below modals (z-index: 9999) and header dropdowns */
}

.footer-shape {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  z-index: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1.5fr;
  gap: var(--space-xxl);
  margin-bottom: var(--space-xxl);
}

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

.footer-brand .logo {
  margin-bottom: var(--space-md);
}

.footer-brand h2 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0;
}

.footer-brand span {
  font-weight: 400;
  color: var(--gray-light);
}

.footer-brand p {
  color: var(--gray-light);
  margin-bottom: var(--space-lg);
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--primary);
  color: var(--white);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: var(--space-xl);
  /* Kürzere Spalten (Rechtliches) sollen nicht auf die Höhe der längsten
     Spalte (Lösungen) gestreckt werden — verhindert visuelles Overlap
     zwischen Solutions und der rechten Nachbarspalte. */
  align-items: start;
}

.footer-links-column {
  min-width: 0; /* Erlaubt Grid-Items zu schrumpfen damit overflow-wrap greift */
}

.footer-links-column h3 {
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: var(--space-md);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-links-column a {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.footer-links-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-column li {
  margin-bottom: var(--space-sm);
}

.footer-links-column a {
  color: var(--gray-light);
  transition: color var(--transition-fast);
}

.footer-links-column a:hover {
  color: var(--white);
}

/* Sehr breite Screens: Spalten in JSON-Reihenfolge, auto-fit damit leere
   Tracks nicht Platz beanspruchen wenn weniger Gruppen vorhanden sind
   (z.B. MT-Footer mit nur 3 sichtbaren Gruppen). */
@media (min-width: 1201px) {
  /* Mehr Platz für die Linkspalten auf sehr breiten Screens */
  .footer-content {
    grid-template-columns: 1fr 3fr 1fr;
  }

  /* auto-fit + minmax(200px, 1fr) sorgt dafür, dass die vorhandenen
     Spalten den verfügbaren Platz fair aufteilen statt auf einen festen
     4-Spalten-Raster festgenagelt zu sein. align-items: start verhindert,
     dass kurze Spalten die volle Höhe der längsten einnehmen. */
  .footer-links {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    align-items: start;
    overflow: visible;
  }

  /* Erlaubt Zeilenumbruch bei langen Linktexten (z.B. Rechtliches, Lösungen) */
  .footer-links-column a {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }
}

/* Mittelbreite Screens: Lösungen-Spalte soll nicht die volle Gitterhöhe einnehmen */
@media (max-width: 1200px) and (min-width: 769px) {
  .footer-links {
    align-items: start;
  }
}

.footer-newsletter h3 {
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer-newsletter p {
  color: var(--gray-light);
  margin-bottom: var(--space-lg);
}

.newsletter-form {
  display: flex;
  overflow: hidden;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.1);
}

.newsletter-form input {
  flex-grow: 1;
  background-color: transparent;
  border: none;
  color: var(--white);
  max-width: 350px;
  width: 100%;
  /* #21203: 16px floor prevents iOS Safari forced auto-zoom on focus */
  font-size: 16px;
}

.newsletter-form input::placeholder {
  color: var(--gray-light);
}

.newsletter-form input:focus {
  outline: none;
}

.newsletter-form button {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 0 var(--space-md);
  min-height: 44px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.newsletter-form button:hover {
  background-color: var(--primary-dark);
}

.footer-bottom {
  padding: var(--space-lg) 0;
  margin-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.footer-vat-note {
  color: var(--gray-light);
  font-size: 0.95em;
  text-align: center;
  margin-bottom: var(--space-sm);
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.footer-legal p {
  color: var(--gray-light);
  margin-bottom: 0;
}

.legal-links {
  display: flex;
  gap: var(--space-lg);
}

.legal-links a {
  color: var(--gray-light);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.legal-links a:hover {
  color: var(--white);
}

/* #27575: cookie-settings re-open trigger, styled like the legal links. */
.footer-consent-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--gray-light);
  font-size: 0.875rem;
  font-family: inherit;
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.footer-consent-link:hover {
  color: var(--white);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .footer-content {
    grid-template-columns: 1fr 2fr;
  }

  /* Unterhalb 1200px wieder auf 3 Spalten reduzieren */
  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-newsletter {
    grid-column: span 2;
    margin-top: var(--space-xl);
  }
}

@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-newsletter {
    grid-column: span 1;
  }

  .footer-legal {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

@media (max-width: 768px) {
  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* a11y: ensure 44px tap target on mobile (single-column footer nav) */
  .footer-links-column a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.25rem 0;
  }
}

/* Dark Mode Styles */
.dark .footer {
  background-color: var(
    --bg-surface-1-dark-theme
  ); /* Dunklerer Hintergrund für den Footer */
  color: var(--text-primary-dark-theme);
}

.dark .footer-brand h2,
.dark .footer-links-column h3,
.dark .footer-newsletter h3 {
  color: var(--text-primary-dark-theme);
}

.dark .footer-brand p,
.dark .footer-brand span,
.dark .footer-links-column a,
.dark .footer-newsletter p,
.dark .footer-legal p,
.dark .footer-vat-note,
.dark .legal-links a {
  color: var(--text-secondary-dark-theme);
}

.dark .footer-links-column a:hover,
.dark .legal-links a:hover {
  color: var(--text-link-dark-theme);
}

.dark .social-link {
  background-color: var(
    --bg-surface-2-dark-theme
  ); /* Etwas hellerer Hintergrund für Social Icons */
  color: var(--text-primary-dark-theme);
}

.dark .social-link:hover {
  background-color: var(--primary);
  color: var(--white); /* Weiß für besseren Kontrast auf Primärfarbe */
}

.dark .newsletter-form {
  background-color: var(--bg-surface-2-dark-theme);
}

.dark .newsletter-form input {
  color: var(--text-primary-dark-theme);
}

.dark .newsletter-form input::placeholder {
  color: var(--text-muted-dark-theme);
}

.dark .footer-bottom {
  border-top-color: var(--border-dark-theme);
}
/* Hero.css – Import hub for split Hero styles */
/*--------------------------------------------------
# Hero Core Layout & Content
--------------------------------------------------*/
.hero {
  position: relative;
  padding: 120px 0;
  /* Pull hero up under the fixed header so gradient meets header edge seamlessly */
  margin-top: calc(-1 * var(--header-height, 88px));
  padding-top: calc(120px + var(--header-height, 88px));
  overflow: hidden;
  color: #fff;
  font-family: var(--font-heading);
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero > .container {
  position: relative;
  z-index: 1;
}
.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.6s ease;
}
.shape-1 {
  width: 600px;
  height: 600px;
  top: -300px;
  right: -300px;
}
.shape-2 {
  width: 400px;
  height: 400px;
  bottom: -200px;
  left: -200px;
}
.shape-3 {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hero-content {
  max-width: 600px;
  margin-bottom: 0;
}
.hero-content h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 20px;
  color: var(--white);
}
.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}
.hero-typewriter {
  background: rgba(27, 85, 226, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 20px;
  width: 100%;
  max-width: 550px;
  justify-self: end;
  transition:
    background 0.6s ease,
    box-shadow 0.6s ease;
}
.hero-typewriter .typewriter {
  font-size: 1.25rem;
  color: var(--white);
  font-family: var(--font-primary);
}
.typewriter {
  font-family: var(--font-primary);
  color: var(--white);
  min-width: min(300px, 100%); /* Mindestbreite für den Typewriter */
  display: flex;
  align-items: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  align-self: flex-start; /* Typewriter bleibt links ausgerichtet */
}
.cursor {
  display: inline-block;
  margin-left: 3px;
  animation: blink 1s infinite;
}
.hero-image {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.floating-card {
  position: absolute;
  background: var(--white);
  padding: 10px 15px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.card-1 {
  top: 20px;
  left: 20px;
}
.card-2 {
  top: 20px;
  right: 20px;
}
.card-3 {
  bottom: 20px;
  right: 20px;
}
.vat-toggle-wrapper {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}
.vat-toggle-container {
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 30px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.toggle-group {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 600; /* Fetter Text für bessere Lesbarkeit */
  justify-content: space-between;
  min-width: 180px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Schatten für bessere Lesbarkeit */
}
/* Explizit weiße Farbe für die Texte im Toggle */
.toggle-group span {
  color: var(--white);
}
.toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  min-height: 44px;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--white);
  transition: 0.4s;
  border-radius: 24px;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: var(--primary);
  transition: 0.4s;
  border-radius: 50%;
}
input:checked + .toggle-slider {
  background-color: var(--white);
}
input:checked + .toggle-slider:before {
  transform: translateX(26px);
}
/* Mehr Abstand über dem Live-Demo-Button (vorher 22px) */
.hero-demo-player-wrapper {
  margin-top: 36px;
}
/* Inline style was triggering React 19 hydration mismatch with Puppeteer
   prerender (style object serialized differently than client). Moved to CSS. */
.hero-demo-player {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-demo-audio-hidden {
  display: none;
}
/* #26795: persistent, collapsible transcript text alternative for the audio
   demo. Full-width so it drops below the inline button row. */
.hero-demo-transcript {
  flex-basis: 100%;
  margin-top: 0.5rem;
  text-align: left;
  font-size: 0.9rem;
}
.hero-demo-transcript > summary {
  cursor: pointer;
  font-weight: 600;
}
.hero-demo-transcript > div[role="region"] {
  margin-top: 0.5rem;
  max-height: 16rem;
  overflow-y: auto;
}
.hero-demo-transcript > div[role="region"] p {
  margin: 0 0 0.4rem;
  line-height: 1.4;
}
/* Tooltip für Live-Demo-Button: gut lesbar, hoher Kontrast */
.tooltip-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.hero-demo-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background-color: #0f1f3a; /* dunkles Navy wie Primary CTA */
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.875rem;
  line-height: 1.4;
  white-space: normal;
  max-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0.15s ease;
  z-index: 20;
}
.hero-demo-tooltip::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 16px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #0f1f3a transparent; /* Pfeil in Tooltip-Farbe */
}
/* Tooltip anzeigen bei Hover/Focus auf Button */
.tooltip-wrapper:hover .hero-demo-tooltip,
.tooltip-wrapper:focus-within .hero-demo-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* Narration Switcher Dots (NoticeOverlay) */
.narration-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.narration-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  outline: none;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.narration-dot:hover {
  border-color: #fff;
  transform: scale(1.3);
}
.narration-dot.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
  transform: scale(1.15);
}
.narration-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
/* Dark Mode Styles for Hero Content */
.dark .hero-content h1 {
  color: var(--text-primary-dark-theme); /* Hinzugefügt für Dark Mode */
}
.dark .hero-content p {
  color: var(--text-primary-dark-theme);
}
.dark .toggle-group span {
  color: var(--text-primary-dark-theme); /* Hinzugefügt für Dark Mode */
}
/* Dark Mode: Force typewriter text to actual white (--white is overridden in dark mode) */
.dark .hero-typewriter .typewriter {
  color: #fff;
}
.dark .typewriter {
  color: #fff;
}
/* Responsive Styles */
/* #20954: force single-column hero + safe stacking on viewports <1280px
   so the typewriter card never overlaps the hero description / CTAs. */
@media (max-width: 1279px) {
  .hero > .container.grid {
    grid-template-columns: 1fr !important;
  }
  .hero-typewriter {
    position: relative;
    z-index: 1;
    justify-self: stretch;
    max-width: 100%;
    margin-top: 24px;
  }
  .hero-content {
    position: relative;
    z-index: 2;
  }
}
@media (max-width: 768px) {
  .hero {
    padding: 80px 0;
    padding-top: calc(80px + var(--header-height, 88px));
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .floating-card {
    font-size: 0.75rem;
    padding: 8px 12px;
  }
}
@media (max-width: 480px) {
  .shape-1,
  .shape-2 {
    display: none;
  }
  .shape-3 {
    width: 120px;
    height: 120px;
  }
  .hero-typewriter {
    padding: 14px;
  }
  .hero-typewriter .typewriter {
    font-size: 1rem;
  }
}
/* Theme gradients, dots, and overrides in HeroThemes.css */
/*--------------------------------------------------
# Hero Animations & Keyframes
--------------------------------------------------*/
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
/* Animation Classes */
.animate-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s forwards;
}
/*
 * B161.5 (#29371, WCAG 2.3.3 Animation from Interactions): users who request
 * reduced motion must not get the entrance translate/fade. Without this the
 * hero/highlight content animated in unconditionally. Snap straight to the
 * resting state (visible, no transform) and disable the keyframe + the
 * scroll-reveal transition for everyone who opts out.
 */
@media (prefers-reduced-motion: reduce) {
  .animate-up {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .animate-slide-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}
.delay-4 {
  animation-delay: 0.8s;
}
/* Animation for elements that appear when scrolling */
.animate-slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.animate-slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/*--------------------------------------------------
# Hero Button Variants
--------------------------------------------------*/
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  /* Abstand zwischen CTA-Buttons vergrößert (vorher 28px) */
  gap: 36px;
}
.btn-light {
  background-color: var(--white);
  color: var(--primary); /* Standardfarbe für btn-light beibehalten */
  border: 2px solid var(--white);
}
.btn-light:hover {
  background-color: transparent;
  color: var(--white); /* Standard-Hoverfarbe für btn-light beibehalten */
}
/* Spezifische Anpassung für .btn-light innerhalb von .hero-buttons */
.hero-buttons .btn-light {
  color: var(
    --white
  ); /* Textfarbe weiß für bessere Lesbarkeit auf primärem Hintergrund */
  border-color: var(--white); /* Randfarbe ebenfalls weiß */
  background-color: transparent; /* Hintergrund transparent machen */
}
/* Dark Mode Fix für Über uns Button */
.dark .hero-buttons .btn-light {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.dark .hero-buttons .btn-light:hover {
  background-color: transparent;
  color: var(--white);
}
.hero-buttons .btn-light:hover {
  color: var(--primary); /* Textfarbe primär beim Hover */
  background-color: var(--white); /* Hintergrund weiß beim Hover */
}
.btn-create-dummy {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: inline-block;
  margin-top: 5px;
  max-width: 250px; /* Maximale Breite für den Button */
  width: 100%; /* Volle Breite innerhalb des Containers */
  align-self: flex-end; /* Ausrichtung nach rechts im Flex-Container */
  font-size: 0.75rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-primary);
}
.btn-create-dummy:hover {
  background-color: var(--light);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
/* Outline-Button für Hero-Bereich */
.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  transition:
    background 0.2s,
    color 0.2s;
}
.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary);
}
/* Hero-spezifische Variante: starker Kontrast auf dunklem Hero-Hintergrund */
.hero-buttons .btn-outline {
  color: var(--white);
  border-color: var(--white);
  background-color: transparent;
}
.hero-buttons .btn-outline:hover {
  background-color: var(--white);
  color: var(--primary);
}
/* Dark Mode: Erzwinge weißen Text/Rand im Hero (überstimmt globale .dark .btn-outline aus App.css) */
.dark .hero-buttons .btn-outline {
  color: var(--white);
  border-color: var(--white);
  background-color: transparent;
}
.dark .hero-buttons .btn-outline:hover,
.dark .hero-buttons .btn-outline:active {
  background-color: var(--white);
  color: var(--primary);
}
/* Fokus-Ring für Tastaturnavigation (AA-konform und sichtbar auf dunklem Hintergrund) */
.hero-buttons .btn-outline:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35);
}
/* Active-State mit klarem Kontrast */
.hero-buttons .btn-outline:active {
  background-color: var(--white);
  color: var(--primary);
}
/* Dark Mode: Fokus-Ring etwas stärker */
.dark .hero-buttons .btn-outline:focus-visible {
  outline-color: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.45);
}
/* Hero-spezifische Variante für "Über uns" – erzwingt hohen Kontrast im Light- und Dark-Mode */
.hero-buttons .btn-hero-about {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  transition:
    background 0.2s,
    color 0.2s;
}
/* Hover/Active mit klarem Kontrast */
.hero-buttons .btn-hero-about:hover,
.hero-buttons .btn-hero-about:focus-visible {
  background-color: var(--white);
  color: #0f1f3a;
}
.hero-buttons .btn-hero-about:active {
  background-color: var(--white);
  color: #0f1f3a;
}
/* Sichtbarer Focus-Ring (AA-konform) */
.hero-buttons .btn-hero-about:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.45);
}
/* Dark Mode: überschreibt globale .dark .btn-outline Regeln aus App.css */
.dark .hero-buttons .btn-hero-about,
.dark .hero-buttons .btn-hero-about.btn-outline {
  color: #fff;
  border-color: #fff;
  background-color: transparent;
}
.dark .hero-buttons .btn-hero-about:hover,
.dark .hero-buttons .btn-hero-about:active {
  background-color: #fff;
  color: #0f1f3a;
}
.dark .hero-buttons .btn-hero-about:focus-visible {
  outline-color: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.55);
}
/* Hero CTA Buttons – Variante A: Pill + Gradient */
/* Primary CTA: Verlauf #1B55E2 → #143FAD, weiße Schrift, 2px weißer Border, Radius 9999px, Höhe ~48px */
.hero .btn-hero-primary {
  background-color: #059669; /* emerald-600 */
  color: #fff;
  border: 0;
  border-radius: 10px; /* rechteckig mit leichtem Radius */
  min-height: 48px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.hero .btn-hero-primary:hover,
.hero .btn-hero-primary:focus {
  background-color: #047857; /* emerald-700 */
}
.hero .btn-hero-primary:active {
  background-color: #065f46; /* emerald-800 */
}
.hero .btn-hero-primary:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: none;
}
/* Secondary/Outline: weißer Outline auf transparent, rechteckig mit leichtem Radius */
.hero .btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 10px; /* rechteckig mit leichtem Radius */
  min-height: 48px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.hero .btn-hero-outline:hover,
.hero .btn-hero-outline:focus {
  background: #fff;
  color: #0f1f3a;
}
.hero .btn-hero-outline:active {
  background: #fff;
  color: #0a101d;
}
.hero .btn-hero-outline:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: none;
}
/* Über uns: nutzt Outline-Stil – zusätzliche Klasse für gezielte Selektivität */
.hero-buttons .btn-hero-about {
  /* Wird durch .btn-hero-outline gestylt; Platzhalter für spätere Feinanpassungen */
}
/* Einheitliche Icon-Abstände */
.hero .btn-hero-primary i,
.hero .btn-hero-outline i {
  margin-right: 8px;
}
/* ─── Hero Color Scheme Gradients ─── */

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-gradient.active {
  opacity: 1;
}

/* Current vibrant blue */
.hero-gradient-blue {
  background: linear-gradient(135deg, #1b55e2 0%, #0e3eab 100%);
}

/* IT-Tremmel style: dark navy (top-left) → medium blue (bottom-right) */
.hero-gradient-navy {
  background: linear-gradient(135deg, #0c1829 0%, #0e3eab 100%);
}

/* Classic wine red */
.hero-gradient-burgundy {
  background: linear-gradient(135deg, #722f37 0%, #4a1c22 100%);
}

/* Deep teal / ocean */
.hero-gradient-teal {
  background: linear-gradient(135deg, #115e59 0%, #042f2e 100%);
}

/* Earthy olive / forest green */
.hero-gradient-olive {
  background: linear-gradient(135deg, #4d7c0f 0%, #365314 100%);
}

/* Warm amber / gold */
.hero-gradient-yellow {
  background: linear-gradient(135deg, #a16207 0%, #713f12 100%);
}

/* Warm orange / burnt */
.hero-gradient-orange {
  background: linear-gradient(135deg, #c2410c 0%, #7c2d12 100%);
}

/* Rich purple / violet */
.hero-gradient-purple {
  background: linear-gradient(135deg, #5b21b6 0%, #2e1065 100%);
}

/* Deep indigo / partner */
.hero-gradient-indigo {
  background: linear-gradient(135deg, #4338ca 0%, #1e1b4b 100%);
}

/* ─── Hero Color Scheme Switcher Dots ─── */

.hero-theme-dots {
  position: absolute;
  bottom: 24px;
  right: 28px;
  display: flex;
  gap: 0;
  z-index: 10;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-theme-dots:hover,
.hero-theme-dots:focus-within {
  opacity: 1;
}

/* Touch devices: always show dots since hover is unavailable */
@media (hover: none) {
  .hero-theme-dots {
    opacity: 1;
  }
}

.hero-theme-dot {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
  background: transparent;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.hero-theme-dot::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.hero-theme-dot:hover {
  transform: scale(1.3);
}

.hero-theme-dot:hover::after {
  border-color: #fff;
}

.hero-theme-dot.active {
  transform: scale(1.15);
}

.hero-theme-dot.active::after {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.hero-theme-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.dot-blue::after {
  background: #1b55e2;
}
.dot-navy::after {
  background: #0e3eab;
}
.dot-burgundy::after {
  background: #8b3a48;
}
.dot-teal::after {
  background: #2d9f93;
}
.dot-olive::after {
  background: #65a30d;
}
.dot-yellow::after {
  background: #d97706;
}
.dot-orange::after {
  background: #ea580c;
}
.dot-purple::after {
  background: #7c3aed;
}
.dot-indigo::after {
  background: #4f46e5;
}
.dot-emerald::after {
  background: #10b981;
}
.dot-fewo::after {
  background: #d4a847;
}

/* ─── Emerald Theme Gradient ─── */

.hero-gradient-emerald {
  background: linear-gradient(135deg, #059669 0%, #064e3b 100%);
}

.hero-gradient-fewo {
  background:
    radial-gradient(
      ellipse 120% 60% at 70% 20%,
      rgba(212, 168, 71, 0.18) 0%,
      transparent 70%
    ),
    linear-gradient(
      175deg,
      #1a2e0d 0%,
      #2a4a16 15%,
      #3d6b22 30%,
      #5b7e3c 45%,
      #4a6e2a 52%,
      #3d5a1e 55%,
      #3a5e6e 58%,
      #5a8fa8 65%,
      #6ba3b8 72%,
      #c49a3a 88%,
      #d4a847 95%,
      #e8c96a 100%
    );
}

/* ─── Navy Theme Overrides ─── */

.hero[data-hero-theme="navy"] .hero-typewriter {
  background: rgba(12, 24, 41, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero[data-hero-theme="navy"] .shape {
  background: rgba(255, 255, 255, 0.05);
}

/* ─── Weinrot Theme Overrides ─── */

.hero[data-hero-theme="burgundy"] .hero-typewriter {
  background: rgba(114, 47, 55, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero[data-hero-theme="burgundy"] .shape {
  background: rgba(255, 255, 255, 0.06);
}

/* ─── Teal Theme Overrides ─── */

.hero[data-hero-theme="teal"] .hero-typewriter {
  background: rgba(17, 94, 89, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.hero[data-hero-theme="teal"] .shape {
  background: rgba(255, 255, 255, 0.07);
}

/* ─── Olive Theme Overrides ─── */

.hero[data-hero-theme="olive"] .hero-typewriter {
  background: rgba(77, 124, 15, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero[data-hero-theme="olive"] .shape {
  background: rgba(255, 255, 255, 0.07);
}

/* ─── Yellow Theme Overrides ─── */

.hero[data-hero-theme="yellow"] .hero-typewriter {
  background: rgba(113, 63, 18, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero[data-hero-theme="yellow"] .shape {
  background: rgba(255, 255, 255, 0.07);
}

/* ─── Orange Theme Overrides ─── */

.hero[data-hero-theme="orange"] .hero-typewriter {
  background: rgba(194, 65, 12, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero[data-hero-theme="orange"] .shape {
  background: rgba(255, 255, 255, 0.07);
}

/* ─── Purple Theme Overrides ─── */

.hero[data-hero-theme="purple"] .hero-typewriter {
  background: rgba(91, 33, 182, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero[data-hero-theme="purple"] .shape {
  background: rgba(255, 255, 255, 0.07);
}

/* ─── Emerald Theme Overrides ─── */

.hero[data-hero-theme="emerald"] .hero-typewriter {
  background: rgba(5, 150, 105, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero[data-hero-theme="emerald"] .shape {
  background: rgba(255, 255, 255, 0.07);
}

.hero[data-hero-theme="fewo"] {
  min-height: 100svh;
}

.hero[data-hero-theme="fewo"] .hero-shapes {
  opacity: 0.75;
}

.hero[data-hero-theme="fewo"] .shape-1 {
  width: 780px;
  height: 780px;
  top: -360px;
  right: -320px;
  background: rgba(255, 255, 255, 0.06);
}

.hero[data-hero-theme="fewo"] .shape-2 {
  width: 520px;
  height: 520px;
  bottom: -280px;
  left: -220px;
  background: rgba(212, 168, 71, 0.12);
}

.hero[data-hero-theme="fewo"] .shape-3 {
  width: 320px;
  height: 320px;
  top: 56%;
  background: rgba(255, 255, 255, 0.05);
}

.hero[data-hero-theme="fewo"] .hero-content h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero[data-hero-theme="fewo"] .hero-content p {
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero[data-hero-theme="fewo"] .hero-typewriter {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.14) inset;
}

.hero[data-hero-theme="fewo"] .btn-hero-primary,
.hero[data-hero-theme="fewo"] .btn-hero-outline {
  border-radius: 12px;
}

.hero[data-hero-theme="fewo"] .btn-hero-primary {
  background: linear-gradient(135deg, #d4a847, #e8c96a);
  color: #1a2e0d;
  box-shadow: 0 6px 24px rgba(212, 168, 71, 0.3);
}

.hero[data-hero-theme="fewo"] .btn-hero-primary:hover {
  background: linear-gradient(135deg, #e8c96a, #d4a847);
}

.hero[data-hero-theme="fewo"] .btn-hero-outline {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ─── FeWo Hero Layout ─── */

.fewo-hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.fewo-hero-mountains {
  position: absolute;
  bottom: 38%;
  left: 0;
  right: 0;
  height: 20%;
  z-index: 0;
  pointer-events: none;
}

.fewo-hero-mountains svg {
  width: 100%;
  height: 100%;
  display: block;
}

.fewo-hero-accent {
  width: 60px;
  height: 3px;
  background: #d4a847;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.fewo-hero-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  margin: 0 0 1.25rem;
}

.fewo-hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 400;
  line-height: 1.7;
  margin: 0 0 2.5rem;
  max-width: 600px;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

/* Frosted-glass search bar */
.fewo-hero-search {
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  display: flex;
  gap: 1rem;
  align-items: end;
  width: 100%;
  max-width: 700px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.15) inset;
  margin-bottom: 2rem;
}

.fewo-hero-field {
  flex: 1;
  min-width: 140px;
  text-align: left;
}

.fewo-hero-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.fewo-hero-field select {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-sizing: border-box;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='rgba(255,255,255,0.6)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.2rem;
  transition:
    border-color 0.25s,
    background 0.25s,
    box-shadow 0.25s;
}

.fewo-hero-field select:focus {
  outline: none;
  border-color: #d4a847;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(212, 168, 71, 0.2);
}

.fewo-hero-field select option {
  background: #2a4a16;
  color: #fff;
}

.fewo-hero-cta {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 2.2rem;
  background: linear-gradient(135deg, #d4a847, #e8c96a);
  color: #1a2e0d;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(212, 168, 71, 0.3);
  text-decoration: none;
  min-height: 44px;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.fewo-hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(212, 168, 71, 0.45);
  background: linear-gradient(135deg, #e8c96a, #d4a847);
}

.fewo-hero-actions {
  margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .fewo-hero-search {
    flex-direction: column;
    padding: 1.25rem 1rem;
    border-radius: 16px;
    gap: 0.75rem;
  }

  .fewo-hero-field {
    min-width: unset;
  }

  .fewo-hero-cta {
    width: 100%;
    text-align: center;
    padding: 0.8rem 1.5rem;
  }

  .fewo-hero-mountains {
    display: none;
  }
}
.stats {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 30px;
  margin-top: 40px;
  overflow-x: auto;
}

@media (max-width: 359px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stat-item {
    padding: 20px 16px;
  }

  .stat-number {
    font-size: 2rem;
  }
}

.stat-item {
  text-align: center;
  padding: 30px;
  background: var(--bg-white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
  will-change: transform;
  position: relative;
}

.stat-item:hover,
.stat-item:focus-within {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.stat-item:hover .stat-number {
  color: var(--primary);
  transform: scale(1.05);
}

.stat-item:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-item:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.dark .stat-item:hover,
.dark .stat-item:focus-within {
  box-shadow: var(--shadow-xl);
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-in {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .stat-item {
    transition: none;
  }
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark, #2c3e50);
  margin-bottom: 10px;
  transition:
    color 200ms ease,
    transform 200ms ease;
}

.stat-label {
  font-size: 1rem;
  color: var(--gray, #7f8c8d);
}

/* Animationen */
.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

/* Zusätzliche Verzögerungsstufen für mehr Karten (Screenshot zeigt 6+ Karten) */
.delay-4 {
  animation-delay: 0.8s;
}

.delay-5 {
  animation-delay: 1s;
}

.delay-6 {
  animation-delay: 1.2s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Dark Mode Styles */
.dark .stats {
  background-color: var(
    --bg-base-dark-theme
  ); /* Haupt-Hintergrund der Sektion */
}

.dark .stats .section-header h2 {
  /* Falls es einen section-header gibt */
  color: var(--text-primary-dark-theme);
}
.dark .stats .section-header p {
  color: var(--text-secondary-dark-theme);
}

.dark .stat-item {
  background: var(
    --bg-surface-1-dark-theme
  ); /* Hintergrund für die Stat-Item-Boxen */
  box-shadow: var(--shadow-lg); /* Angepasster Schatten */
}

.dark .stat-number {
  color: var(--primary-light); /* Hellerer Primärfarbton für die Zahlen */
}

.dark .stat-label {
  color: var(
    --text-secondary-dark-theme
  ); /* Sekundäre Textfarbe für die Labels */
}
.services {
  padding: 100px 0;
  background-color: var(--bg-white, white);
}

@media (max-width: 768px) {
  .services {
    padding: 48px 0;
  }
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--dark, #2c3e50);
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--gray, #7f8c8d);
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 30px;
  width: 100%;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  padding: 40px 30px;
  border-radius: 10px;
  background: var(--bg-light, #f8f9fa);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
}

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--dark);
  width: 100%;
}

.service-card p {
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Transparency Section */
.transparency-section {
  margin-top: 80px;
  padding: 40px;
  background-color: var(--bg-light, #f8f9fa);
  border-radius: 10px;
}

.transparency-content {
  max-width: 800px;
  margin: 0 auto;
}

.note-box {
  display: flex;
  align-items: flex-start;
  padding: 20px;
  background-color: color-mix(in oklab, var(--info, #3498db), white 85%);
  border-left: 4px solid var(--info, #3498db);
  border-radius: 0 5px 5px 0;
  margin-top: 30px;
}

.note-box i {
  font-size: 1.5rem;
  color: var(--info, #3498db);
  margin-right: 15px;
  margin-top: 3px;
}

.note-box p {
  margin: 0;
  color: var(--dark, #2c3e50);
}

.mt-5 {
  margin-top: 3rem;
}
/* Dark Mode Styles */
.dark .services {
  background-color: var(--bg-base-dark-theme);
}

.dark .section-title {
  color: var(--text-primary-dark-theme);
}

.dark .section-subtitle {
  color: var(--text-secondary-dark-theme);
}

.dark .service-card {
  background: var(--bg-surface-1-dark-theme);
  box-shadow: var(--shadow-md);
}

@media (hover: hover) {
  .dark .service-card:hover {
    box-shadow: var(--shadow-lg);
    background: var(--bg-hover-dark-theme);
  }
}

.dark .service-icon {
  color: var(--primary-light);
}

.dark .service-card h3 {
  color: var(--text-primary-dark-theme);
}

.dark .service-card p {
  color: var(--text-secondary-dark-theme);
}

/* Transparency Section Dark Mode */
.dark .transparency-section {
  background-color: var(
    --bg-surface-1-dark-theme
  ); /* Etwas hellerer Hintergrund als die Hauptsektion */
  box-shadow: var(--shadow-lg);
}
.dark .transparency-section .section-tag {
  background-color: rgba(var(--primary-rgb), 0.2);
  color: var(--primary-light);
}
.dark .transparency-section .section-header h2 {
  color: var(--text-primary-dark-theme);
}
.dark .transparency-section .section-header p {
  color: var(--text-secondary-dark-theme);
}

.dark .note-box {
  background-color: var(
    --bg-surface-2-dark-theme
  ); /* Noch hellerer Hintergrund für die Notizbox */
  border-left-color: var(--primary-light);
}

.dark .note-box i {
  color: var(--primary-light);
}

.dark .note-box p {
  color: var(--text-primary-dark-theme);
}
/*--------------------------------------------------
# How It Works Section
--------------------------------------------------*/
.how-it-works {
  background-color: var(--white);
  padding: var(--space-xxl) 0;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: flex-start;
  background-color: var(--light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

@media (hover: hover) {
  .step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
  }
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 30px;
  width: 2px;
  height: 30px;
  background-color: var(--primary);
}

.step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-right: var(--space-lg);
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
  color: var(--gray-dark);
}

.step-content p {
  color: var(--gray);
  margin: 0;
}

/* Dark Mode Styles */
.dark .how-it-works {
  background-color: var(
    --bg-base-dark-theme
  ); /* Haupt-Hintergrund der Sektion */
}

.dark .how-it-works .section-tag {
  background-color: rgba(var(--primary-rgb), 0.2);
  color: var(--primary-light);
}
.dark .how-it-works .section-header h2 {
  color: var(--text-primary-dark-theme);
}
.dark .how-it-works .section-header p {
  color: var(--text-secondary-dark-theme);
}

.dark .step {
  background-color: var(
    --bg-surface-1-dark-theme
  ); /* Hintergrund für die Step-Boxen */
  box-shadow: var(--shadow-md);
}

@media (hover: hover) {
  .dark .step:hover {
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-hover-dark-theme);
  }
}

.dark .step:not(:last-child)::after {
  background-color: var(--primary-light); /* Hellere Verbindungslinie */
}

.dark .step-number {
  background-color: var(--primary-light); /* Hellerer Hintergrund für Nummer */
  color: var(--bg-base-dark-theme); /* Dunkler Text für Nummer */
}

.dark .step-content h3 {
  color: var(
    --text-primary-dark-theme
  ); /* Primäre Textfarbe für Überschriften */
}

.dark .step-content p {
  color: var(--text-secondary-dark-theme); /* Sekundäre Textfarbe für Absätze */
}

/* Responsive Styles */
@media (max-width: 576px) {
  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .step-number {
    margin: 0 0 var(--space-md);
  }

  .step:not(:last-child)::after {
    left: 50%;
    transform: translateX(-50%);
  }
}
/**
 * ClickDummy Component Styles
 * Styles are primarily handled by Tailwind CSS classes.
 * This file contains custom styles for clickdummy mode.
 */

/* The renderer-box is already inside a card - modules should not add another card wrapper.
 * Instead of trying to strip card styles (which can break module layouts),
 * we ensure the container provides the appropriate styling context. */
.renderer-box {
  transition: opacity 0.2s ease-in-out;
  /* Ensure proper z-index stacking context for contained modals */
  position: relative;
  isolation: isolate;
}

/* Loading state - centered with proper spacing */
.renderer-box .loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem 1.5rem;
  min-height: 200px;
}

/* Loading spinner animation */
.renderer-box .animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Prevent content overflow in contained mode */
.renderer-box [class*="fixed"] {
  /* Safety net: force fixed-position elements to absolute within the renderer (#10243) */
  position: absolute !important;
}

/* Ensure modals/overlays in contained mode stay within bounds */
.renderer-area .fullscreen-content-container {
  position: relative;
  overflow: auto;
  min-height: 400px;
  border-radius: 0.75rem;
  background: var(--surface-background, #fff);
}

.dark .renderer-area .fullscreen-content-container {
  background: var(--surface-background-dark, #1f2937);
}

/* Browser fullscreen mode */
.renderer-area .fullscreen-content-container.browser-fullscreen {
  background: var(--surface-background, #fff);
  padding: 1rem;
}

.dark .renderer-area .fullscreen-content-container.browser-fullscreen {
  background: var(--surface-background-dark, #111827);
}

/* ── Clickdummy: compact cart sidebar ────────────────────────────────
 * In clickdummy mode the cart must stay small and embedded so it is
 * clearly part of the demo, not confused with a real website cart.
 * - Single-column layout (cart below products, not beside)
 * - Reduced max-height with internal scroll
 * - Never position:fixed (would escape the renderer-box)
 * ─────────────────────────────────────────────────────────────────── */

/* Force single-column so the cart stacks below products */
.renderer-box .app-content-with-sidebar {
  grid-template-columns: 1fr;
}

/* Embedded, compact cart inside the clickdummy renderer */
.renderer-box .right-cart-sidebar {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  height: auto !important;
  max-height: 320px;
  width: 100% !important;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--bg-white, #fff), black 10%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: none !important;
  z-index: auto !important;
  font-size: 0.875rem;
}

/* Tighter header */
.renderer-box .cart-sidebar-header {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}
.renderer-box .cart-sidebar-header h2 {
  font-size: 0.9375rem;
}

/* Compact item list */
.renderer-box .cart-items {
  padding: 0.5rem 0.75rem;
  max-height: 160px;
  overflow-y: auto;
}

/* Compact summary & actions */
.renderer-box .cart-summary,
.renderer-box .cart-actions {
  padding: 0.5rem 0.75rem;
}

/* Dark mode variant */
.dark .renderer-box .right-cart-sidebar {
  border-color: color-mix(
    in oklab,
    var(--bg-surface-1-dark-theme, #0b1220),
    white 12%
  );
}
.technologies-section {
  padding: 80px 0;
  background-color: var(--white);
}

.technologies-section .section-tag {
  text-align: center;
}

.technologies-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--dark);
}

.technology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 900px) {
  .technology-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .technology-grid {
    grid-template-columns: 1fr;
  }
}

.technology-category {
  background-color: var(--light);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid rgba(var(--primary-rgb), 0.1);
}

@media (hover: hover) {
  .technology-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
}

.technology-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
  text-align: center;
}

.technology-category h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary);
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 10px;
  text-align: center;
}

.technology-category ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.technology-category li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
}

.technology-category li:before {
  content: "✓";
  color: var(--primary);
  font-weight: bold;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: rgba(var(--primary-rgb), 0.1);
  border-radius: 50%;
  font-size: 0.8rem;
}

.technology-category li:last-child {
  border-bottom: none;
}

/* Dark mode styles */
.dark .technologies-section {
  background-color: var(
    --bg-base-dark-theme
  ); /* Haupt-Hintergrund der Sektion */
}

.dark .technologies-section .section-tag {
  background-color: rgba(
    var(--primary-rgb),
    0.2
  ); /* Leicht angepasste Tag-Farbe */
  color: var(--primary-light);
}

.dark .technologies-section h2 {
  color: var(--text-primary-dark-theme);
}

.dark .technology-category {
  background-color: var(
    --bg-surface-1-dark-theme
  ); /* Hintergrund für die Kategorie-Boxen */
  border-color: var(--border-dark-theme);
  box-shadow: var(--shadow-md);
}

@media (hover: hover) {
  .dark .technology-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg); /* Angepasster Schatten für Hover */
    background-color: var(--bg-hover-dark-theme);
  }
}

.dark .technology-icon {
  color: var(--primary-light); /* Helleres Icon für besseren Kontrast */
}

.dark .technology-category h3 {
  color: var(--primary-light); /* Hellerer Titel für Kategorie */
  border-bottom-color: var(--primary); /* Primärfarbe für die Linie */
}

.dark .technology-category ul {
  color: var(--text-secondary-dark-theme); /* Textfarbe für Listenelemente */
}

.dark .technology-category li {
  border-bottom: 1px solid var(--border-light-dark-theme); /* Hellere Trennlinie */
}

.dark .technology-category li:before {
  color: var(--primary-light);
  background-color: rgba(
    var(--primary-rgb),
    0.2
  ); /* Hintergrund des Häkchens */
}

.dark .technology-category li:last-child {
  border-bottom: none;
}
.testimonials {
  padding: 100px 0;
  background-color: var(--bg-light, #f8f9fa);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  background: var(--bg-white, white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-content {
  margin-bottom: 20px;
  font-style: italic;
  color: var(--gray, #555);
  line-height: 1.6;
}

.testimonial-author {
  margin-top: 20px;
  text-align: right;
}

.testimonial-author h4 {
  margin: 0;
  color: var(--dark, #2c3e50);
  font-size: 1.1rem;
}

.testimonial-author p {
  margin: 5px 0 0;
  color: var(--gray, #7f8c8d);
  font-size: 0.9rem;
}

.testimonial-rating {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

/* Animationen */
.testimonial-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease-out forwards;
}

.testimonial-card:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Enhanced Styles for Testimonials Section */
.testimonials {
  background-color: var(--white);
  padding: var(--space-xxl) 0;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .testimonials {
    padding: 48px 0;
  }
}

.testimonials::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--light) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
  z-index: 0;
}

.testimonials .container {
  position: relative;
  z-index: 1;
}

.testimonials-slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
}

.testimonial-item {
  padding: var(--space-lg);
  min-height: 400px;
}

.testimonial-content {
  background-color: var(--light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.testimonial-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-content::before {
  content: "";
  position: absolute;
  top: 30px;
  left: -15px;
  width: 30px;
  height: 30px;
  background-color: var(--light);
  transform: rotate(45deg);
  z-index: -1;
  box-shadow: var(--shadow-sm);
}

.testimonial-rating--up {
  color: var(--success, #16a34a);
}
.testimonial-rating--down {
  color: var(--danger, #dc2626);
}

.testimonial-rating i {
  color: inherit;
  margin-right: 0;
  font-size: 1.1rem;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: var(--space-md);
  color: var(--gray-dark);
  line-height: 1.7;
  font-size: 1.05rem;
  position: relative;
  padding-left: 1.5rem;
}

.testimonial-content p::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -0.5rem;
  font-size: 2.5rem;
  color: var(--primary-light);
  opacity: 0.5;
  font-family: "Georgia", serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  text-align: left;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: var(--space-md);
  margin-top: var(--space-md);
}

.testimonial-author h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  color: var(--primary);
}

.testimonial-author p {
  font-size: 0.9rem;
  color: var(--gray);
  margin: 0;
  font-style: normal;
  padding-left: 0;
}

.testimonial-author p::before {
  display: none;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-xl);
}

.control-prev,
.control-next,
.control-pause {
  background-color: var(--white);
  border: 1px solid var(--primary-light);
  width: 45px;
  height: 45px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--primary);
}

.control-prev:hover,
.control-next:hover,
.control-pause:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.testimonial-dots {
  display: flex;
  gap: var(--space-sm);
  margin: 0 var(--space-md);
}

.dot {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: transparent;
  border: none;
  box-sizing: border-box;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.dot::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background-color: var(--gray-light);
  transition: background-color var(--transition-fast);
}

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

.dot.active::after {
  background-color: var(--primary);
}

.dot.active {
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .testimonial-content {
    padding: var(--space-lg);
  }

  .testimonial-content p {
    font-size: 1rem;
  }

  .testimonial-author img {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 576px) {
  .testimonial-content::before {
    display: none;
  }

  .testimonial-controls {
    flex-wrap: wrap;
  }

  .testimonial-dots {
    order: -1;
    width: 100%;
    justify-content: center;
    margin-bottom: var(--space-md);
  }
}

/* Dark Mode */
.dark .testimonials {
  background-color: var(--gray-900, #111827);
}

.dark .testimonials::before {
  background-image: radial-gradient(
    var(--gray-700, #374151) 1px,
    transparent 1px
  );
  opacity: 0.3;
}

.dark .testimonial-content {
  background-color: var(--gray-800, #1f2937);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark .testimonial-content::before {
  background-color: var(--gray-800, #1f2937);
}

.dark .testimonial-content p {
  color: var(--gray-200, #e5e7eb);
}

.dark .testimonial-content p::before {
  color: var(--primary-light);
  opacity: 0.4;
}

.dark .testimonial-author {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.dark .testimonial-author h4 {
  color: var(--gray-100, #f3f4f6);
}

.dark .testimonial-author p {
  color: var(--gray-400, #9ca3af);
}

.dark .control-prev,
.dark .control-next {
  background-color: var(--gray-800, #1f2937);
  border-color: var(--gray-600, #4b5563);
  color: var(--gray-200, #e5e7eb);
}

.dark .control-prev:hover,
.dark .control-next:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.dark .dot::after {
  background-color: var(--gray-600, #4b5563);
}

.dark .dot.active::after {
  background-color: var(--primary);
}
/*--------------------------------------------------
# CTA Section
--------------------------------------------------*/
.cta {
  background-color: var(--primary);
  padding: var(--space-xxl) 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(27, 85, 226, 0.9) 0%,
    rgba(0, 195, 182, 0.9) 100%
  );
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  color: var(--white);
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 576px) {
  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1rem;
  }
}
/* Lesbarkeit für .btn-light auf blauem Grund verbessern */
.cta .btn-light {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid #fff;
}
.cta .btn-light:hover {
  background-color: #fff;
  color: var(--primary);
}

/* Dark Mode */
.dark .cta {
  background-color: var(--gray-900, #111827);
}

.dark .cta::before {
  background: linear-gradient(
    135deg,
    rgba(20, 60, 170, 0.85) 0%,
    rgba(0, 150, 140, 0.85) 100%
  );
}

.dark .cta .btn-light {
  color: var(--gray-100, #f3f4f6);
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.dark .cta .btn-light:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--gray-900, #111827);
}
/* HomePageMT — "Refined Craftsman" aesthetic
 * Warm amber accents, deep charcoal tones, editorial typography,
 * asymmetric grids, and staggered scroll-reveal animations.
 */

/* #21009: brand tokens — promote MT brand colors to CSS vars so a future
   tenant theme can recolor without forking this stylesheet. */
:root {
  --mt-amber: #c9a84c;
  --mt-amber-light: #e8c86a;
  --mt-amber-dark: #9a7b2e;
  --mt-charcoal-50: #2a2d35;
  --mt-charcoal-75: #1a1d23;
  --mt-charcoal-100: #0f1118;
}
:is(.dark) {
  --mt-amber-dark: #e8c86a;
}

/* ─── Hero overlay for MT brand ─── */
.mt-hero-overlay {
  position: relative;
}
.mt-hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 17, 24, 0.15) 0%,
    transparent 60%
  );
  pointer-events: none;
}

/* ─── Accent bar under headings ─── */
.mt-accent-bar {
  display: block;
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, var(--mt-amber), var(--mt-amber-light));
  border-radius: 2px;
  margin-top: 0.75rem;
}
.mt-accent-bar-center {
  margin-left: auto;
  margin-right: auto;
}

/* ─── Stats ribbon ─── */
.mt-stats-ribbon {
  position: relative;
  z-index: 10;
  margin-top: -2.5rem;
  margin-bottom: 2rem;
}
.mt-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .mt-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .mt-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.mt-stat-value {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  color: rgb(15 23 42);
}
@media (min-width: 768px) {
  .mt-stat-value {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}
:is(.dark) .mt-stat-value {
  color: rgb(255 255 255);
}
.mt-stat-label {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgb(100 116 139);
  margin-top: 0.25rem;
}
:is(.dark) .mt-stat-label {
  color: rgb(148 163 184);
}
.mt-stats-ribbon .mt-stat-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.04);
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
@media (hover: hover) {
  .mt-stats-ribbon .mt-stat-card:hover {
    transform: translateY(-4px);
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.12),
      0 2px 6px rgba(0, 0, 0, 0.06);
  }
}
:is(.dark) .mt-stats-ribbon .mt-stat-card {
  background: rgba(30, 33, 42, 0.95);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ─── Service cards ─── */
.mt-service-card {
  position: relative;
  padding: 2rem;
  border-radius: 1rem;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}
.mt-service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mt-amber), var(--mt-amber-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
@media (hover: hover) {
  .mt-service-card:hover::before {
    transform: scaleX(1);
  }
  .mt-service-card:hover {
    box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.08),
      0 2px 8px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
  }
}
:is(.dark) .mt-service-card {
  background: rgba(30, 33, 42, 0.8);
  border-color: rgba(255, 255, 255, 0.06);
}

/* ─── Portal reference grid ─── */
.mt-portal-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
}
@media (hover: hover) {
  .mt-portal-item:hover {
    border-color: var(--mt-amber);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.12);
    transform: translateX(4px);
  }
}
:is(.dark) .mt-portal-item {
  background: rgba(30, 33, 42, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ─── Pricing peek cards ─── */
.mt-price-card {
  padding: 2rem;
  border-radius: 1rem;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}
.mt-price-card.mt-price-featured {
  border-color: var(--mt-amber);
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.15);
}
@media (hover: hover) {
  .mt-price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }
}
:is(.dark) .mt-price-card {
  background: rgba(30, 33, 42, 0.8);
  border-color: rgba(255, 255, 255, 0.06);
}
:is(.dark) .mt-price-card.mt-price-featured {
  border-color: var(--mt-amber);
}

/* ─── CTA section with dark background ─── */
.mt-cta-section {
  background: linear-gradient(
    135deg,
    var(--mt-charcoal-75) 0%,
    var(--mt-charcoal-50) 50%,
    var(--mt-charcoal-75) 100%
  );
  color: #fff;
}
.mt-cta-section h1,
.mt-cta-section h2,
.mt-cta-section h3,
.mt-cta-section h4,
.mt-cta-section h5,
.mt-cta-section h6 {
  color: inherit;
}
:is(.dark) .mt-cta-section {
  background: linear-gradient(
    135deg,
    var(--mt-charcoal-100) 0%,
    var(--mt-charcoal-75) 50%,
    var(--mt-charcoal-100) 100%
  );
}

/* ─── Scroll-reveal animation ─── */
/* Content is always visible. Animation is progressive enhancement only. */
.mt-reveal {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: no-preference) {
  .mt-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.7s ease,
      transform 0.7s ease;
  }
  .mt-reveal.mt-visible {
    opacity: 1;
    transform: translateY(0);
  }
  /* Fallback: auto-reveal after 2s if JS observer fails */
  .mt-reveal {
    animation: mt-auto-reveal 0.7s ease 1.5s both;
  }
  .mt-reveal.mt-visible {
    animation: none;
  }
  .mt-reveal-delay-1 {
    transition-delay: 0.1s;
    animation-delay: 1.6s;
  }
  .mt-reveal-delay-2 {
    transition-delay: 0.2s;
    animation-delay: 1.7s;
  }
  .mt-reveal-delay-3 {
    transition-delay: 0.3s;
    animation-delay: 1.8s;
  }
}
@keyframes mt-auto-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Section tag (gold variant) ─── */
.mt-section-tag {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(
    135deg,
    rgba(201, 168, 76, 0.15),
    rgba(201, 168, 76, 0.08)
  );
  color: var(--mt-amber-dark);
  border: 1px solid rgba(201, 168, 76, 0.2);
}
:is(.dark) .mt-section-tag {
  background: linear-gradient(
    135deg,
    rgba(201, 168, 76, 0.2),
    rgba(201, 168, 76, 0.1)
  );
  border-color: rgba(201, 168, 76, 0.3);
}

/* ─── Gold icon circle ─── */
.mt-icon-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(201, 168, 76, 0.12),
    rgba(201, 168, 76, 0.06)
  );
  color: var(--mt-amber-dark);
  flex-shrink: 0;
}
:is(.dark) .mt-icon-circle {
  background: linear-gradient(
    135deg,
    rgba(201, 168, 76, 0.2),
    rgba(201, 168, 76, 0.1)
  );
}
