/**
 * Print stylesheet for Shared App
 * #27647 — browser-print of shipment lists and labels should render
 * clean, light, full-width content without screen chrome.
 */

@media print {
  /* Hide non-content chrome: nav, sidebars, action bars, toolbars, tabs */
  nav,
  aside,
  header.app-header,
  .app-sidebar,
  .app-nav,
  .action-bar,
  .toolbar,
  .tabs,
  .tab-bar,
  .mode-toggle,
  button:not(.print-include),
  [role="tablist"],
  [data-print="hide"] {
    display: none !important;
  }

  /* Force light background + black text everywhere */
  html,
  body,
  .bg-white,
  .bg-gray-50,
  .bg-gray-100,
  .dark\:bg-gray-800,
  .dark\:bg-gray-900 {
    background: white !important;
    color: black !important;
  }

  * {
    color: black !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Remove shadows and heavy borders for cleaner print */
  .shadow,
  .shadow-sm,
  .shadow-md,
  .shadow-lg,
  .shadow-xl {
    box-shadow: none !important;
  }

  /* Ensure main content / tables print full-width */
  main,
  .app-main,
  table {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    float: none !important;
  }

  /* Avoid breaking rows across pages */
  tr {
    page-break-inside: avoid;
  }

  /* Monospace for document / reference numbers */
  .font-mono {
    font-family: "Courier New", monospace !important;
  }

  @page {
    margin: 2cm;
    size: A4;
  }
}
/*--------------------------------------------------
# Header & Navigation
--------------------------------------------------*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  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: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}
.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);
}
/* Styled initials placeholder when no logo image is available */
.logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-right: var(--space-sm);
  user-select: none;
}
.dark .logo-placeholder {
  background: linear-gradient(
    135deg,
    var(--primary-light, #3b82f6),
    var(--primary, #60a5fa)
  );
  color: #fff;
}
.logo h1,
.logo .logo-text {
  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,
.logo:focus-visible {
  color: #1a1a1a;
}
.logo span {
  font-weight: 400;
  color: var(--gray);
}
.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);
  /* text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); */ /* Entfernt für bessere Lesbarkeit im Light Mode */
}
.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,
.nav-link:focus-visible {
  color: var(--primary);
}
.nav-link:hover::after,
.nav-link:focus::after,
.nav-link:focus-visible::after {
  width: 100%;
}
.nav-link:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 4px;
  border-radius: 2px;
}
.header-actions {
  display: flex;
  align-items: center;
}
/* 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);
}
.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);
}
.vat-button:focus-visible:not(.active) {
  color: var(--gray-dark);
  background-color: rgba(var(--primary-rgb), 0.05);
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.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;
  min-width: 44px;
  min-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:focus-visible::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 rgba(0, 0, 0, 0.1));
}
.language-switch button:focus-visible {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.1));
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.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);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.05);
}
.cart-button:hover {
  color: var(--primary);
  background-color: rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.cart-button:focus-visible {
  color: var(--primary);
  background-color: rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.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 rgba(0, 0, 0, 0.2);
}
.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);
}
/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  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;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0;
  line-height: 1;
  touch-action: manipulation;
  transition: color var(--transition-fast);
}
.close-menu:hover {
  color: var(--primary);
}
.close-menu:focus-visible {
  color: var(--primary);
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.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;
  color: var(--gray-dark);
  transition: color var(--transition-fast);
}
.mobile-nav a:hover {
  color: var(--primary);
}
.mobile-nav a:focus-visible {
  color: var(--primary);
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.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);
}
/* 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: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.05);
}
.theme-toggle:hover {
  color: var(--primary);
  background-color: rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.theme-toggle:focus-visible {
  color: var(--primary);
  background-color: rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
/* 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(30, 41, 59, 0.9); /* slate-800 with alpha */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.dark .logo {
  color: var(--text-primary-dark-theme);
}
.dark .logo:hover,
.dark .logo:focus,
.dark .logo:focus-visible {
  color: var(--text-primary-dark-theme);
}
.dark .logo h1,
.dark .logo .logo-text {
  color: var(--text-primary-dark-theme);
}
.dark .logo span {
  color: var(--text-secondary-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,
.dark .nav-link:focus-visible {
  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 .header-vat-toggle .vat-button:focus-visible: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:focus-visible::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-button:focus-visible {
  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 .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 .close-menu:focus-visible {
  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-nav a:focus-visible {
  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 .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 .theme-toggle:focus-visible {
  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);
}
/*
 * Responsive Styles
 *
 * #13543: Einheitlicher Breakpoint bei 768px (Tailwind `md`).
 * JSX steuert Sichtbarkeit via `hidden md:flex` / `md:hidden`,
 * daher darf CSS die gleichen Elemente NICHT mit abweichenden
 * Media-Queries überschreiben — sonst verschwinden im Bereich
 * 768–991px sowohl Hamburger als auch Desktop-Nav.
 *
 * Die Klasse `.menu-toggle` wird im JSX nicht mehr verwendet
 * (ersetzt durch `.hamburger-btn`), bleibt aber als Fallback.
 */
@media (max-width: 767px) {
  .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;
  }

  /* #27550: Auf Tailwind v4-Sites wird `tailwindcss` via
     `@import "tailwindcss" layer(base)` in die `base`-Cascade-Layer
     gelegt. Diese (geschichtete) Datei verliert daher gegen die hier
     ungeschichteten Header.css-Regeln (`.main-nav ul { display:flex }`,
     `.login-btn { display:inline-flex }`) — d. h. die Tailwind-Klassen
     `hidden md:flex` blenden Desktop-Nav + Login-Button NICHT aus, und
     portal.it-tremmel.de überläuft bei 375px horizontal um 421px. Wir
     spiegeln die JSX-Intention deshalb explizit in ungeschichtetem CSS,
     identisch zur bereits vorhandenen `.sections-menu`-Ausnahme.
     Selektor `.header .main-nav` schlägt die `.main-nav ul`-Regel sicher,
     `display:none` auf dem Container blendet auch die `ul` aus. */
  .header .main-nav {
    display: none !important;
  }

  .header .login-btn {
    display: none !important;
  }

  /* Sections-Navigation auf Mobilgeräten ausblenden (Tailwind hidden md:flex reicht
     bei Custom-CSS-Selektoren mit höherer Spezifität u. U. nicht) */
  .sections-menu {
    display: none !important;
  }
}
/* #27550: Spiegelbild — ab 768px (Tailwind `md`) muss der Hamburger weichen,
   damit Desktop-Nav + Hamburger sich nicht beide zeigen. Auch hier kann das
   geschichtete `md:hidden` gegen ungeschichtete Regeln verlieren. */
@media (min-width: 768px) {
  .header .hamburger-btn {
    display: none !important;
  }
}
/* 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: Deaktiviere Slide-in-Animation der mobilen Navigation auf Desktop --- */
@media (min-width: 768px) {
  .mobile-menu {
    right: 0 !important;
    transition: none !important;
    /* Optional: ausblenden, falls mobile-menu auf Desktop nicht sichtbar sein soll */
    display: none !important;
  }
}
/* Sections Dropdown (Desktop) */
.sections-menu {
  position: relative;
  margin-left: var(--space-md);
}
.sections-toggle {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-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);
}
.sections-toggle:focus-visible {
  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);
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
/* Pfeile links/rechts neben dem Hamburger-Menü */
.sections-arrow {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-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:focus-visible {
  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);
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.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: block;
  padding: 10px 14px;
  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,
.sections-item:focus-visible {
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
}
.sections-item:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
/* Aktive Sektion hervorheben */
.sections-item.active {
  font-weight: 700;
  color: var(--primary);
}
.sections-empty {
  padding: 10px 14px;
  color: var(--gray);
  font-size: 0.9rem;
}
/* Fix: Scroll-Offset bei fixed Header */
section,
.section-header {
  scroll-margin-top: 88px; /* Höhe des fixen Headers als Offset */
}
/* 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,
.dark .sections-item:focus-visible {
  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 .sections-toggle:focus-visible {
  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 .sections-arrow:focus-visible {
  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: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  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);
}
/* Mobile hamburger trigger styled analog to dropdown trigger */
.hamburger-btn {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  padding: 0;
  line-height: 1;
  touch-action: manipulation;
  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 .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);
}
/* 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;
}
/* 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: 14rem; /* min Breite analog Menü */
  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);
}
/*--------------------------------------------------
# Footer
--------------------------------------------------*/
.footer {
  background-color: var(--dark);
  color: var(--light);
  padding: var(--space-xxl) 0 0;
  position: relative;
  overflow: hidden;
}

.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);
}

/* Styled initials placeholder when no logo image is available (footer variant) */
.footer .logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--radius-md, 0.5rem);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-right: var(--space-sm, 0.5rem);
  user-select: none;
}

.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: 40px;
  height: 40px;
  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);
}

.social-link:focus-visible {
  background-color: var(--primary);
  color: var(--white);
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.footer-links {
  display: grid;
  /* Auf sehr breiten Screens: 4 Spalten, gleichmäßige Breite mit Mindestbreite pro Spalte */
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: var(--space-xl);
}

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

.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);
}

.footer-links-column a:focus-visible {
  color: var(--white);
  outline: 2px solid var(--white);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Sehr breite Screens: Reihenfolge der Spalten explizit festlegen (Info, Lösungen, Rechtliches, Apps) und Platz optimieren */
@media (min-width: 1201px) {
  /* Mehr Platz für die Linkspalten auf sehr breiten Screens */
  .footer-content {
    grid-template-columns: 1fr 3fr 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    grid-template-areas: "info solutions legal apps";
  }
  .footer-links-column[data-group="Info"],
  .footer-links-column[data-group="info"] {
    grid-area: info;
  }

  .footer-links-column[data-group="Lösungen"],
  .footer-links-column[data-group="Solutions"],
  .footer-links-column[data-group="solutions"] {
    grid-area: solutions;
  }

  .footer-links-column[data-group="Rechtliches"],
  .footer-links-column[data-group="Legal"],
  .footer-links-column[data-group="legal"] {
    grid-area: legal;
  }

  .footer-links-column[data-group="Apps"],
  .footer-links-column[data-group="apps"] {
    grid-area: apps;
  }

  /* Verhindert Zeilenumbruch der Linktexte in den Spalten (professioneller Look) */
  .footer-links-column a {
    white-space: nowrap;
  }
}

.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%;
}

.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);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

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

.newsletter-form button:focus-visible {
  background-color: var(--primary-dark);
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.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-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);
}

.legal-links a:focus-visible {
  color: var(--white);
  outline: 2px solid var(--white);
  outline-offset: 2px;
  border-radius: 2px;
}

/* 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-md);
  }
}

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

/* 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 .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 .footer-links-column a:focus-visible,
.dark .legal-links a:focus-visible {
  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: #fff; /* Weiß für besseren Kontrast auf Primärfarbe */
}

.dark .social-link:focus-visible {
  background-color: var(--primary);
  color: #fff;
}

.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);
}
/* ─── Shared Hero Base ─── */

.shared-hero {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  color: #fff;
  font-family: var(--font-heading);
}

.shared-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.shared-hero > .container {
  position: relative;
  z-index: 1;
}

/* ─── Gradient Layers ─── */

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

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

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

.shared-hero-gradient-navy {
  background: linear-gradient(135deg, #0c1829 0%, #0e3eab 100%);
}

.shared-hero-gradient-weinrot {
  background: linear-gradient(135deg, #722f37 0%, #4a1c22 100%);
}

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

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

.shared-hero-gradient-yellow {
  background: linear-gradient(135deg, #a16207 0%, #713f12 100%);
}

/* ─── Decorative Shapes ─── */

.shared-hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.shared-hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.6s ease;
}

.shared-hero-shape-1 {
  width: 600px;
  height: 600px;
  top: -300px;
  right: -300px;
}

.shared-hero-shape-2 {
  width: 400px;
  height: 400px;
  bottom: -200px;
  left: -200px;
}

.shared-hero-shape-3 {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ─── Theme-Specific Shape Overrides ─── */

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

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

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

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

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

/* ─── Theme Switcher Dots ─── */

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

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

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

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

.shared-hero-theme-dot:hover::after {
  border-color: #fff;
  transform: scale(1.3);
}

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

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

.shared-hero-dot-blue {
  --shared-hero-dot-color: #1b55e2;
}

.shared-hero-dot-navy {
  --shared-hero-dot-color: #0e3eab;
}

.shared-hero-dot-weinrot {
  --shared-hero-dot-color: #8b3a48;
}

.shared-hero-dot-teal {
  --shared-hero-dot-color: #2d9f93;
}

.shared-hero-dot-purple {
  --shared-hero-dot-color: #7c3aed;
}

.shared-hero-dot-yellow {
  --shared-hero-dot-color: #d97706;
}

/* ─── Content Styling ─── */

.shared-hero-content {
  max-width: 600px;
  margin-bottom: 40px;
}

.shared-hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #fff;
}

.shared-hero-content p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .shared-hero-content h1 {
    font-size: 2rem;
  }

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

/* ─── CTA Buttons ─── */

.shared-hero .btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 10px;
  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;
}

.shared-hero .btn-hero-outline:hover,
.shared-hero .btn-hero-outline:focus {
  background: #fff;
  color: #0f1f3a;
}

.shared-hero .btn-hero-outline:active {
  background: #fff;
  color: #0a101d;
}

.shared-hero .btn-hero-outline:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: none;
}

/* ─── Compact Variant (for app pages with less hero space) ─── */

.shared-hero--compact {
  padding: 48px 0 32px;
}

/* ─── Responsive ─── */

@media (max-width: 768px) {
  .shared-hero {
    padding: 80px 0;
  }

  .shared-hero--compact {
    padding: 36px 0 24px;
  }
}

/* ─── Reduced Motion (#27556-rm, WCAG 2.3.3) ─── */
/*
 * Users who request reduced motion must not get the hero's animated surfaces:
 * the 600ms gradient cross-fade, the 600ms shape background transition, the
 * theme-switcher fade-in, and the dot hover/active transform+box-shadow easing.
 * Snap each straight to its resting state and disable the transitions/transforms
 * so opting out fully curtails motion while leaving the hero fully visible.
 */
@media (prefers-reduced-motion: reduce) {
  .shared-hero-gradient {
    transition: none;
  }

  .shared-hero-shape {
    transition: none;
  }

  .shared-hero-theme-dots {
    transition: none;
  }

  .shared-hero-theme-dot,
  .shared-hero-theme-dot::after {
    transition: none;
  }

  .shared-hero-theme-dot:hover::after {
    transform: none;
  }

  .shared-hero-theme-dot.active::after {
    transform: none;
  }

  .shared-hero .btn-hero-outline {
    transition: none;
  }
}
