/* ==========================================================================
   Swisstechnologies Design System
   ========================================================================== */

:root {
  /* Colors */
  --color-navy: #0f1729;
  --color-navy-light: #1a2744;
  --color-navy-muted: #243352;
  --color-topbar: #1c2a3d;
  --color-accent: #0077cc;
  --color-accent-hover: #005fa3;
  --color-accent-light: rgba(0, 119, 204, 0.1);
  --color-bg: #f5f7fa;
  --color-bg-white: #ffffff;
  --color-bg-subtle: #eef1f6;
  --color-text: #1a2332;
  --color-text-muted: #5a6578;
  --color-text-light: #8b95a5;
  --color-border: #dde3ec;
  --color-border-light: #eaedf2;
  --color-success: #059669;
  --color-warning: #d97706;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3.25rem;
  --line-height-tight: 1.15;
  --line-height-normal: 1.65;
  --line-height-relaxed: 1.7;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Section vertical rhythm */
  --pad-section-lg: 6rem;
  --pad-section: 4.5rem;
  --pad-section-sm: 3.5rem;
  --pad-cta: 4.5rem;
  --pad-footer-top: 4.5rem;
  --pad-footer-bottom: 2.5rem;

  /* Layout */
  --container-max: 1200px;
  --container-hero: 1280px;
  --container-text: 760px;
  --container-legal: 800px;
  --container-padding: clamp(1rem, 3vw, 2rem);
  --topbar-height: 36px;
  --nav-height: 72px;
  --header-height: calc(var(--topbar-height) + var(--nav-height));
  --header-height-scrolled: calc(var(--topbar-height) + 64px);

  /* Components */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --btn-gap: 1.25rem;
  --shadow-sm: 0 1px 2px rgba(15, 23, 41, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 41, 0.06);
  --shadow-lg: 0 8px 24px rgba(15, 23, 41, 0.08);
  --transition: 0.18s ease;
  --transition-slow: 0.28s ease;
}

@media (max-width: 1199px) {
  :root {
    --pad-section-lg: 4.5rem;
    --pad-section: 3.5rem;
    --pad-section-sm: 2.5rem;
    --pad-cta: 3.5rem;
    --pad-footer-top: 3.5rem;
    --pad-footer-bottom: 2rem;
  }
}

@media (max-width: 767px) {
  :root {
    --pad-section-lg: 3rem;
    --pad-section: 2.25rem;
    --pad-section-sm: 1.75rem;
    --pad-cta: 2.25rem;
    --pad-footer-top: 2.75rem;
    --pad-footer-bottom: 1.5rem;
    --btn-gap: 1rem;
    --nav-height: 64px;
    --container-padding: 1rem;
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-hover); }
ul, ol { list-style: none; }

/* Typography */
.eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--color-text-muted);
  margin-bottom: 0.85rem;
}

.section-dark .eyebrow { color: rgba(255, 255, 255, 0.7); }

h1, h2, h3, h4, h5, h6 {
  line-height: var(--line-height-tight);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--color-text);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 { color: #fff; }

h1 { font-size: clamp(2.125rem, 4.2vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.0625rem, 1.8vw, 1.25rem); letter-spacing: -0.015em; }

p {
  color: var(--color-text-muted);
  max-width: var(--container-text);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}
.section-dark p { color: rgba(255, 255, 255, 0.75); }

.text-lead {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.375rem, 4.5vw, 2.75rem);
}

.container--hero { max-width: var(--container-hero); }
.container--text { max-width: var(--container-text); }

.section {
  padding-block: var(--pad-section);
}

.section--lg { padding-block: var(--pad-section-lg); }

.section--sm { padding-block: var(--pad-section-sm); }

/* Themenwechsel mit Hintergrundwechsel */
.section:not(.section-subtle):has(+ .section-subtle),
.section-subtle:has(+ .section:not(.section-subtle):not(.section-dark)),
.section:not(.section-dark):has(+ .section-dark.snap-section),
.section-dark.snap-section:has(+ .section:not(.section-dark)) {
  padding-block-end: calc(var(--pad-section-lg) / 2);
}

.section-subtle + .section:not(.section-subtle):not(.section-dark),
.section:not(.section-subtle) + .section-subtle,
.section + .section-dark.snap-section,
.section-dark.snap-section + .section:not(.section-dark) {
  padding-block-start: calc(var(--pad-section-lg) / 2);
}

/* Gleicher Hintergrund: kompakter Anschluss */
.section-subtle + .section-subtle,
.section:not(.section-subtle):not(.section-dark) + .section:not(.section-subtle):not(.section-dark) {
  padding-block-start: var(--pad-section-sm);
}

.section-subtle:has(+ .section-subtle),
.section:not(.section-subtle):not(.section-dark):has(+ .section:not(.section-subtle):not(.section-dark)) {
  padding-block-end: var(--pad-section-sm);
}

.section-dark {
  background: var(--color-navy);
  color: #fff;
}

.section-dark.snap-section:not(.hero) {
  padding-block: var(--pad-section);
}

.section-subtle { background: var(--color-bg); }

.section:has(+ .cta-section),
.section-subtle:has(+ .cta-section) {
  padding-block-end: var(--pad-section-sm);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header p {
  margin: var(--space-md) auto 0;
}

.section-header--left {
  text-align: left;
}

.section-header--left p { margin-left: 0; }

/* Buttons – minimal, modern */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 38px;
  height: auto;
  padding: 0.5rem 1.05rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

/* Moderater Abstand unter Buttons, wenn danach noch Inhalt folgt */
.btn:not(:last-child) {
  margin-bottom: var(--space-md);
}

.btn svg {
  width: 15px;
  height: 15px;
  transition: transform var(--transition);
}

.btn:hover svg { transform: translateX(2px); }

.btn--primary {
  background: var(--color-navy);
  color: #fff;
  border-color: var(--color-navy);
}

.btn--primary:hover {
  background: #1a2744;
  border-color: #1a2744;
  color: #fff;
}

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--secondary:hover {
  background: var(--color-bg);
  border-color: var(--color-text-light);
  color: var(--color-text);
}

.section-dark .btn--primary,
.hero .btn--primary,
.cta-section .btn--primary,
.booking-cta .btn--primary {
  background: #fff;
  color: var(--color-navy);
  border-color: #fff;
}

.section-dark .btn--primary:hover,
.hero .btn--primary:hover,
.cta-section .btn--primary:hover,
.booking-cta .btn--primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-navy);
}

.section-dark .btn--secondary,
.hero .btn--secondary,
.cta-section .btn--secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}

.section-dark .btn--secondary:hover,
.hero .btn--secondary:hover,
.cta-section .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.25rem;
  margin-top: var(--btn-gap);
  margin-bottom: var(--btn-gap);
}

.btn-group:last-child {
  margin-bottom: 0;
}

/* Hero: Abstand über und unter den Buttons gleich */
.hero .btn-group,
.hero .btn-group:last-child {
  margin-top: var(--btn-gap);
  margin-bottom: var(--btn-gap);
}

.btn-group .btn {
  margin-bottom: 0;
}

/* Zweiter Button in einer Gruppe: nur unterstrichener Text */
.btn-group .btn + .btn,
.btn-group .btn--link {
  background: none;
  border: none;
  border-radius: 0;
  min-height: auto;
  height: auto;
  padding: 0.35rem 0;
  color: var(--color-accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.btn-group .btn + .btn:hover,
.btn-group .btn--link:hover {
  background: none;
  border: none;
  color: var(--color-accent-hover);
}

.hero .btn-group .btn + .btn,
.hero .btn-group .btn--link,
.section-dark .btn-group .btn + .btn,
.section-dark .btn-group .btn--link,
.cta-section .btn-group .btn + .btn,
.cta-section .btn-group .btn--link,
.booking-cta .btn-group .btn + .btn,
.booking-cta .btn-group .btn--link {
  background: none;
  border: none;
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.65);
}

.hero .btn-group .btn + .btn:hover,
.hero .btn-group .btn--link:hover,
.section-dark .btn-group .btn + .btn:hover,
.section-dark .btn-group .btn--link:hover,
.cta-section .btn-group .btn + .btn:hover,
.cta-section .btn-group .btn--link:hover,
.booking-cta .btn-group .btn + .btn:hover,
.booking-cta .btn-group .btn--link:hover {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  text-decoration-color: rgba(255, 255, 255, 0.85);
}

.btn--link {
  background: none;
  border: none;
  color: var(--color-accent);
  padding: 0.5rem 0;
  min-height: auto;
  height: auto;
  border-radius: 0;
  font-weight: 500;
  margin-bottom: 0;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.btn--link:hover {
  color: var(--color-accent-hover);
}

@media (max-width: 767px) {
  .btn-group {
    gap: 0.75rem 1rem;
  }

  .btn-group--stack {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .btn-group--stack .btn:first-child {
    width: 100%;
  }

  .btn-group--stack .btn + .btn,
  .btn-group--stack .btn--link {
    width: auto;
    align-self: flex-start;
  }

  .form-actions .contact-form__submit,
  .contact-booking .btn {
    width: 100%;
  }

  .card {
    padding: 1.25rem;
  }

  .service-card {
    padding: 1.1rem;
  }

  .section-header {
    margin-bottom: var(--space-xl);
  }

  .section-header h2 {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

  .service-filter {
    justify-content: flex-start;
    margin-bottom: var(--space-lg);
    gap: 0.4rem;
  }

  .service-filter__btn {
    padding: 0.45rem 0.8rem;
    font-size: var(--font-size-xs);
  }

  .cta-section {
    padding-inline: var(--space-md);
  }

  .cta-section .container {
    padding: 2rem 1.15rem;
    margin-inline: 0;
    max-width: 100%;
  }

  .cta-section .btn-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-section .btn-group .btn:first-child {
    width: 100%;
  }

  .cta-section .btn-group .btn + .btn,
  .cta-section .btn-group .btn--link {
    align-self: center;
  }

  .contact-form-panel {
    padding: 1.25rem;
  }

  .interest-chip {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
    text-align: center;
    padding: 0.5rem 0.65rem;
  }

  .hero:not(.hero--page),
  .hero--page {
    padding-top: calc(var(--header-height) + 50px);
    padding-bottom: 50px;
  }

  .section--legal-top,
  .error-page {
    padding-top: calc(var(--header-height) + 50px);
    padding-bottom: 50px;
    padding-block-start: calc(var(--header-height) + 50px);
    padding-block-end: 50px;
  }

  .hero__content h1 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  .site-header__inner {
    gap: var(--space-sm);
  }

  .pricing-card,
  .product-card {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .btn-group--stack {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-group--stack .btn:first-child {
    width: 100%;
  }
  .btn-group--stack .btn + .btn,
  .btn-group--stack .btn--link {
    width: auto;
  }

  .interest-chip {
    flex: 1 1 100%;
  }
}

/* Cards – minimal */
.card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: none;
  transition: border-color var(--transition), transform var(--transition);
}

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

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.card__icon svg { width: 24px; height: 24px; }

.card__title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
}

.card__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  max-width: none;
  line-height: var(--line-height-relaxed);
}

.card__arrow {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-accent);
}

.card__arrow svg { width: 16px; height: 16px; }

.card--link {
  display: block;
  color: inherit;
  cursor: pointer;
}

.card--link:hover { color: inherit; }

.card--link:hover .card__arrow { color: var(--color-accent-hover); }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  border-radius: 999px;
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.badge--recommended {
  background: var(--color-accent);
  color: #fff;
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-lg);
}

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

@media (max-width: 1024px) {
  .grid--3, .grid--4, .grid--6 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4, .grid--6 { grid-template-columns: 1fr; }
}

/* Home: Vorteile */
.benefit-card {
  height: 100%;
}

.benefit-card .card__title {
  font-size: var(--font-size-base);
}

/* Home: Service filter + cards */
.service-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.service-filter__btn {
  appearance: none;
  border: 1px solid var(--color-border);
  background: var(--color-bg-white);
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.service-filter__btn:hover {
  border-color: var(--color-text-light);
  color: var(--color-text);
}

.service-filter__btn.is-active {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #fff;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem;
}

.service-card.is-filtered-out {
  display: none;
}

.service-card__visual {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-navy);
  margin-bottom: var(--space-md);
}

.service-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card .card__arrow {
  margin-top: auto;
  padding-top: var(--space-md);
}

/* ==========================================================================
   Top bar + Header
   ========================================================================== */

.site-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  height: var(--topbar-height);
  background: var(--color-navy);
  color: #fff;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-hero);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.site-topbar__contacts {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-topbar a {
  color: #fff;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.site-topbar a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.site-topbar__sep {
  color: #fff;
  opacity: 0.55;
}

.site-topbar__end {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.site-topbar__login {
  font-weight: 500;
}

@media (max-width: 480px) {
  .site-topbar__contacts a:first-child,
  .site-topbar__sep {
    display: none;
  }
}

/* Language switch – desktop (text, topbar) */
.lang-switch--desktop {
  display: none;
  position: relative;
}

@media (min-width: 1024px) {
  .lang-switch--desktop {
    display: block;
  }
}

.lang-switch--desktop .lang-switch__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0;
  color: #fff;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: none;
  border: 0;
  cursor: pointer;
}

.lang-switch--desktop .lang-switch__trigger svg {
  width: 14px;
  height: 14px;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.lang-switch--desktop.is-open .lang-switch__trigger svg,
.lang-switch--desktop:hover .lang-switch__trigger svg {
  transform: rotate(180deg);
}

.lang-switch--desktop .lang-switch__trigger:hover {
  color: rgba(255, 255, 255, 0.85);
}

.lang-switch--desktop .lang-switch__menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 9.5rem;
  padding: 0.35rem;
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(15, 23, 41, 0.16);
  z-index: 1200;
}

.lang-switch--desktop .lang-switch__menu[hidden] {
  display: none !important;
}

.lang-switch--desktop .lang-switch__option {
  display: block;
  width: 100%;
  padding: 0.45rem 0.65rem;
  text-align: left;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.lang-switch--desktop .lang-switch__option:hover {
  background: rgba(0, 119, 204, 0.08);
  color: var(--color-accent);
}

.lang-switch--desktop .lang-switch__option.is-active {
  color: var(--color-accent);
  background: rgba(0, 119, 204, 0.1);
}

.site-header {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  transition: height var(--transition), background var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  height: 64px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-hero);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
  flex-shrink: 0;
}

.site-logo:hover { color: var(--color-text); }

.site-logo__mark {
  width: 36px;
  height: 36px;
  background: var(--color-navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo__mark svg { width: 20px; height: 20px; color: #fff; }

.site-nav { display: flex; align-items: center; gap: 0.15rem; }

.site-nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.site-nav__link:hover {
  background: var(--color-bg);
  color: var(--color-navy);
}

.site-nav__link svg { width: 14px; height: 14px; opacity: 0.45; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.site-header__actions .btn {
  min-height: 36px;
  padding: 0.45rem 0.95rem;
  font-size: 0.8125rem;
  margin-bottom: 0;
}

/* Nav toggle – visibility only (styles in modern.css) */
@media (max-width: 1024px) {
  .site-nav, .site-header__actions .btn { display: none; }
  .nav-toggle { display: flex; }
}

@media (min-width: 1025px) {
  .mobile-nav, .mobile-nav-overlay { display: none !important; }
  .nav-toggle { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-top: calc(var(--header-height) + var(--pad-section-lg));
  padding-bottom: calc(var(--pad-section-lg) / 2);
  background: var(--color-navy);
  color: #fff;
  overflow: hidden;
}

.hero:not(.hero--page) {
  position: relative;
  padding-bottom: var(--pad-section-lg);
  background-color: #0f1729;
  background-image: linear-gradient(165deg, #18243d 0%, #0f1729 46%, #0f1729 100%);
}

.hero:not(.hero--page)::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.hero:not(.hero--page) > .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .hero:not(.hero--page) {
    min-height: 85vh;
    min-height: 85dvh;
    padding-top: calc(var(--header-height) + 75px);
    padding-bottom: 75px;
  }
}

.hero--page {
  padding-top: calc(var(--header-height) + var(--pad-section));
  padding-bottom: calc(var(--pad-section-lg) / 2);
}

.hero--page + .section {
  padding-block-start: calc(var(--pad-section-lg) / 2);
}

.hero:not(.hero--page) + .trust-bar + .section,
.hero:not(.hero--page) + .section {
  padding-block-start: calc(var(--pad-section-lg) / 2);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero:not(.hero--page) .hero__content { max-width: 40rem; }

.hero-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  margin: 0.35rem 0 0;
  font-size: var(--font-size-sm);
  line-height: 1;
}
.hero-rating__stars {
  display: inline-flex;
  gap: 0.12rem;
  color: #f5c451;
}
.hero-rating__score {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.hero-rating__score:hover,
.hero-rating__score:focus-visible {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.7);
}
.hero-rating__label {
  color: rgba(255, 255, 255, 0.72);
}

.hero__content .eyebrow { color: rgba(0, 153, 255, 0.9); }

.hero__content h1 {
  color: #fff;
  margin-bottom: var(--space-lg);
}

.hero__content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

.hero__visual { position: relative; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
  /* Startseiten-Hero: Visual oben; Leistungs-/Produktseiten (.hero--page) in modern.css */
  .hero:not(.hero--page) .hero__visual { order: -1; max-width: 480px; margin: 0 auto; }
}

/* Dashboard Cards */
.dashboard {
  position: relative;
  min-height: 380px;
}

.dashboard__card {
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  backdrop-filter: blur(8px);
  animation: float 6s ease-in-out infinite;
}

.dashboard__card:nth-child(1) { top: 0; left: 0; width: 55%; animation-delay: 0s; }
.dashboard__card:nth-child(2) { top: 10%; right: 0; width: 48%; animation-delay: 1s; }
.dashboard__card:nth-child(3) { top: 42%; left: 5%; width: 44%; animation-delay: 2s; }
.dashboard__card:nth-child(4) { top: 50%; right: 5%; width: 50%; animation-delay: 0.5s; }
.dashboard__card:nth-child(5) { bottom: 0; left: 20%; width: 42%; animation-delay: 1.5s; }
.dashboard__card:nth-child(6) { bottom: 5%; right: 15%; width: 38%; animation-delay: 2.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.dashboard__label {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-xs);
}

.dashboard__value {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: #fff;
}

.dashboard__trend {
  font-size: var(--font-size-xs);
  color: var(--color-success);
  margin-top: var(--space-xs);
}

.dashboard__status {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.8);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@media (max-width: 900px) {
  .dashboard { min-height: 320px; transform: scale(0.9); }
}

@media (max-width: 480px) {
  .dashboard { min-height: 280px; transform: scale(0.85); }
}

/* Trust Bar – kompakter Anschluss nach Hero */
.trust-bar {
  padding-block: var(--pad-section-sm);
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
}

.trust-bar__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl) var(--space-2xl);
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}

.trust-bar__item svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Goal Cards */
.goal-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.goal-card .card__arrow { margin-top: auto; }

/* Competency Cards */
.competency-card {
  height: 100%;
}

.competency-card__list {
  margin-top: var(--space-lg);
}

.competency-card__list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border-light);
}

.competency-card__list li:last-child { border-bottom: none; }

.competency-card__list svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Product Cards (dark section) */
.product-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: background var(--transition), border-color var(--transition);
}

.product-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: none;
}

.product-card h3 { color: #fff; margin-bottom: var(--space-md); }

.product-card p { color: rgba(255, 255, 255, 0.65); max-width: none; }

.product-card__features {
  margin: var(--btn-gap) 0 0;
}

.product-card__features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
}

.product-card__features svg {
  width: 16px;
  height: 16px;
  color: rgba(0, 153, 255, 0.9);
}

.product-card__visual {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-navy);
  margin-bottom: var(--space-lg);
}

.product-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.software-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.software-product-card__features {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-xs);
}

.software-product-card__features li {
  position: relative;
  padding-left: 1rem;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.45;
}

.software-product-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}

.software-product-card .btn {
  margin-top: auto;
  padding-top: var(--space-lg);
  align-self: flex-start;
}

/* Reference Cards
   Split window + body so screenshot bottom cannot inherit card radius. */
.reference-card.card {
  padding: 0;
  overflow: visible;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.reference-card.card:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.reference-card__image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--color-navy-light), var(--color-navy-muted));
  overflow: hidden;
}

.reference-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reference-scroll {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0f1729;
  border: 1px solid var(--color-border-light);
  border-bottom: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.reference-scroll__chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  background: #152038;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reference-scroll__chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.reference-scroll__chrome span:nth-child(1) { background: #ff5f57; }
.reference-scroll__chrome span:nth-child(2) { background: #febc2e; }
.reference-scroll__chrome span:nth-child(3) { background: #28c840; }

.reference-scroll__chrome em {
  margin-left: 0.55rem;
  font-style: normal;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reference-scroll__viewport {
  position: relative;
  overflow: hidden;
  background: #0f1729;
  line-height: 0;
  border-radius: 0;
}

.reference-scroll__shot {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  vertical-align: top;
  border-radius: 0 !important;
  pointer-events: none;
  user-select: none;
}

.reference-card__body {
  position: relative;
  z-index: 1;
  padding: var(--space-xl);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-top: 0;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.reference-card:not(:has(.reference-scroll)) .reference-card__body {
  border-top: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
}

.reference-card.card:hover .reference-scroll,
.reference-card.card:hover .reference-card__body {
  border-color: var(--color-border-light);
  box-shadow: var(--shadow-md);
}

.reference-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.reference-card__tag {
  font-size: var(--font-size-xs);
  padding: 2px 8px;
  background: var(--color-bg);
  border-radius: 4px;
  color: var(--color-text-muted);
}

.reference-card__result {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-light);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-success);
}

/* Metric Cards */
.metric-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}

.metric-card__value {
  font-size: clamp(2rem, 4vw, var(--font-size-4xl));
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.metric-card__label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Plugin Cards */
.plugin-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.plugin-card__version {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: stretch;
}

.process-step {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  background: var(--color-bg-white);
  cursor: default;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.process-step:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.process-step__num {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.process-step__title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.process-step__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-top: var(--space-sm);
}

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

@media (max-width: 640px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* Tech Grid */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
}

.tech-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}

/* Article Cards */
.article-card { padding: 0; overflow: hidden; }

.article-card__image {
  aspect-ratio: 16/9;
  background: var(--color-bg-subtle);
}

.article-card__body { padding: var(--space-xl); }

.article-card__category {
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.article-card__meta {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
}

.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-card .card__arrow {
  display: inline-flex;
  margin-top: var(--space-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-accent);
}

/* Blog posts */
.blog-hero {
  padding-top: calc(var(--header-height) + var(--pad-section));
  padding-bottom: var(--space-xl);
  background: var(--color-bg-white);
}

.blog-hero .breadcrumbs a {
  color: var(--color-navy);
}

.blog-hero .breadcrumbs a:hover {
  color: var(--color-accent);
}

.blog-hero .breadcrumbs__sep {
  color: rgba(15, 23, 41, 0.35);
}

.blog-hero .breadcrumbs__current {
  color: var(--color-navy);
  font-weight: 500;
}

.blog-hero__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.blog-hero__intro {
  max-width: 760px;
}

.blog-hero__intro h1 {
  margin-top: var(--space-sm);
  max-width: 18ch;
}

.blog-hero__lead {
  margin-top: var(--space-md);
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  max-width: 62ch;
}

@media (min-width: 960px) {
  .blog-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
  }

  .blog-hero__intro {
    max-width: none;
    margin-bottom: 0;
  }

  .blog-hero__intro h1 {
    max-width: 16ch;
  }

  .blog-hero__visual {
    margin: 0;
  }
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: var(--space-lg);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.blog-meta__author {
  font-weight: 600;
  color: var(--color-text);
}

.blog-meta__sep {
  opacity: 0.5;
}

.blog-hero__visual {
  margin: 0;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  background: var(--color-navy);
  border: 1px solid var(--color-border-light);
}

.blog-hero__picture,
.blog-figure__picture {
  display: block;
  margin: 0;
}

.blog-hero__picture img,
.blog-figure__picture img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.blog-section {
  padding-top: var(--space-2xl, 2.5rem);
}

.blog-layout {
  display: grid;
  gap: var(--space-2xl, 2.5rem);
  align-items: start;
}

@media (min-width: 960px) {
  .blog-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 3rem;
  }
}

.blog-content {
  max-width: 720px;
}

.blog-content .blog-lead {
  font-size: var(--font-size-base);
  color: var(--color-text);
  margin-bottom: var(--space-xl);
}

.blog-content h2 {
  margin-top: var(--space-2xl, 2.25rem);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-xl);
  letter-spacing: -0.02em;
}

.blog-content p,
.blog-content li {
  font-size: var(--font-size-sm);
  line-height: 1.7;
  color: var(--color-text);
}

.blog-content p + p {
  margin-top: var(--space-md);
}

.blog-content ul,
.blog-content ol {
  margin: var(--space-md) 0 var(--space-lg);
  padding-left: 1.35rem;
}

.blog-content ul {
  list-style: disc;
}

.blog-content ol {
  list-style: decimal;
}

.blog-content li {
  list-style: inherit;
  padding-left: 0.15rem;
}

.blog-content ul > li::marker,
.blog-content ol > li::marker {
  color: var(--color-navy);
  font-size: 0.7em;
}

.blog-content li + li {
  margin-top: 0.45rem;
}

.blog-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.blog-content a:hover {
  color: var(--color-accent-hover);
}

.blog-figure {
  margin: var(--space-xl) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border-light);
}

.blog-figure figcaption {
  padding: 0.75rem 1rem 1rem;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.blog-callout {
  margin: var(--space-xl) 0;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(0, 119, 204, 0.06);
  border: 1px solid rgba(0, 119, 204, 0.18);
}

.blog-callout strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--color-accent);
  font-size: var(--font-size-sm);
}

.blog-callout p {
  margin: 0;
}

.blog-inline-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: var(--space-2xl, 2.5rem) 0;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius-md);
  background: var(--color-navy);
  color: #fff;
}

.blog-inline-cta h2 {
  margin: 0;
  font-size: var(--font-size-lg);
  color: #fff;
}

.blog-inline-cta p {
  margin: 0.4rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--font-size-sm);
}

.blog-inline-cta .btn--primary {
  align-self: flex-start;
  background: #fff;
  color: var(--color-navy);
}

.blog-inline-cta .btn--primary:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-navy);
}

@media (min-width: 640px) {
  .blog-inline-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .blog-inline-cta__body {
    max-width: 46ch;
  }
}

.blog-aside {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 960px) {
  .blog-aside {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
  }
}

.blog-aside__card {
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
}

.blog-aside__card--cta {
  background: var(--color-bg-subtle);
}

.blog-aside__label {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.45rem;
}

.blog-aside__author {
  display: block;
  font-size: var(--font-size-base);
  color: var(--color-text);
}

.blog-aside__role,
.blog-aside__card p {
  margin-top: 0.35rem;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.blog-aside__title {
  margin: 0;
  font-size: var(--font-size-lg);
}

.blog-aside__card .btn {
  margin-top: var(--space-md);
  width: 100%;
}

.blog-aside__phone {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
}

.blog-aside__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-aside__links li + li {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--color-border-light);
}

.blog-aside__links a {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
}

.blog-aside__links a:hover {
  color: var(--color-accent);
}

@media (max-width: 767px) {
  .blog-hero {
    padding-top: calc(var(--header-height) + 50px);
  }

  .blog-hero__intro h1 {
    max-width: none;
  }
}

/* CTA Section – abgerundete Box auf weissem Grund (Abgrenzung zum Footer) */
.cta-section {
  padding-block: var(--pad-section);
  background: var(--color-bg-white);
  text-align: center;
}

.cta-section .container {
  background: var(--color-navy);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
}

.cta-section .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.cta-section h2 { color: #fff; margin-bottom: var(--space-md); }

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto var(--space-lg);
  max-width: 40rem;
}

.cta-section .btn-group {
  justify-content: center;
  margin-top: var(--btn-gap);
  margin-bottom: 0;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-lg);
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumbs a:hover { color: #fff; }

.breadcrumbs__sep {
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumbs__current {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumbs--light a { color: var(--color-text-muted); }
.breadcrumbs--light a:hover { color: var(--color-accent); }
.breadcrumbs--light .breadcrumbs__sep { color: var(--color-border); }
.breadcrumbs--light .breadcrumbs__current { color: var(--color-text); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
}

.faq-item__question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--color-text-muted);
}

.faq-item.is-open .faq-item__question svg { transform: rotate(180deg); }

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item.is-open .faq-item__answer { max-height: 500px; }

.faq-item__answer p {
  padding-bottom: var(--space-lg);
  max-width: none;
}

/* Pricing */
.pricing-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-card--featured {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
}

/* Keep title + lead equal height so prices align across tiers */
.pricing-card > .card__title {
  min-height: 2.6rem;
  margin-bottom: 0.5rem;
}

.pricing-card > .card__text {
  flex: 0 0 auto;
  min-height: 5.1rem;
  margin-top: 0;
  margin-bottom: 0;
}

.pricing-card__header {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 0.5rem;
  min-height: 8.1rem;
}

.pricing-card__header .card__title,
.pricing-card__header .card__text {
  min-height: 0;
  margin: 0;
}

.pricing-card__price {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-text);
  margin: var(--space-lg) 0 0;
  line-height: 1.15;
}

.pricing-card__price span {
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: var(--color-text-muted);
}

.pricing-card__period {
  margin: 0.35rem 0 var(--space-lg);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  min-height: 1.35em;
}

/* When no yearly period line exists, keep the gap to features consistent */
.pricing-card__price + .pricing-card__features {
  margin-top: calc(0.35rem + 1.35em + var(--space-lg));
}

.hosting-pricing-extras {
  margin-top: var(--space-2xl);
}

.hosting-pricing-extras .card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hosting-pricing-extras .card__text {
  flex: 1;
  margin: 0;
}

.hosting-pricing-extras .btn {
  align-self: flex-start;
  margin-top: auto;
}

.hosting-pricing-extras__info {
  background: var(--color-bg-subtle);
  border-color: transparent;
  box-shadow: none;
}

@media (max-width: 767px) {
  .hosting-pricing-extras .card {
    align-items: center;
    text-align: center;
  }

  .hosting-pricing-extras .card__text {
    max-width: none;
  }

  .hosting-pricing-extras .btn {
    align-self: center;
  }
}

.pricing-card__features {
  flex: 1;
  margin-bottom: var(--space-xl);
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.pricing-card__features svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-card .btn {
  width: 100%;
  margin-bottom: 0;
}

.pricing-note {
  text-align: center;
  margin-top: var(--space-xl);
  margin-inline: auto;
  max-width: 46rem;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
}

.pricing-note--center {
  display: block;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.pricing-individual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  padding: var(--space-xl) var(--space-2xl);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
}

.pricing-individual__copy {
  flex: 1;
  min-width: 0;
}

.pricing-individual__copy .card__title {
  margin: 0 0 var(--space-sm);
}

.pricing-individual__copy .card__text {
  margin: 0;
  max-width: 40rem;
}

.pricing-individual .btn {
  flex-shrink: 0;
  margin: 0;
}

@media (max-width: 767px) {
  .pricing-individual {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: var(--space-xl);
    gap: var(--space-lg);
  }

  .pricing-individual__copy .card__text {
    max-width: none;
  }

  .pricing-individual .btn {
    width: 100%;
  }
}

/* Contact page */
.contact-hero .hero__content {
  max-width: 40rem;
}

.contact-page {
  padding-block-start: var(--pad-section-sm);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.contact-form-panel {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}

.contact-form-panel__head {
  margin-bottom: var(--space-xl);
}

.contact-form-panel__head h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  margin-bottom: var(--space-sm);
}

.contact-form-panel__head p {
  margin: 0;
  max-width: none;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.contact-form .form-group {
  margin-bottom: var(--space-md);
}

.contact-form .form-label,
.contact-form label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: 0.45rem;
  color: var(--color-text);
}

.contact-form .form-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: 0.45rem;
}

.contact-form .form-label-row label {
  margin-bottom: 0;
}

.contact-form .form-counter {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  white-space: nowrap;
}

.contact-form .form-counter.is-near-limit {
  color: var(--color-warning);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.95rem 1.15rem;
  font-family: inherit;
  font-size: var(--font-size-base);
  line-height: 1.45;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-text-light);
}

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
  border-color: var(--color-text-light);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  background: var(--color-bg-white);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-light);
}

.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235a6578'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"],
.contact-form .interest-chips.is-invalid {
  border-color: #b91c1c;
}

.contact-form .interest-chips.is-invalid {
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

.contact-form textarea {
  min-height: 168px;
  resize: vertical;
  line-height: 1.6;
}

.interest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.15rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

.interest-chip {
  appearance: none;
  border: 1px solid var(--color-border);
  background: var(--color-bg-white);
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: 500;
  line-height: 1.2;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.interest-chip:hover {
  border-color: var(--color-text-light);
  color: var(--color-text);
}

.interest-chip.is-active {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #fff;
}

.interest-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.field-error {
  font-size: var(--font-size-xs);
  color: #b91c1c;
  margin-top: 0.4rem;
}

.form-hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-lg);
  max-width: none;
  line-height: 1.55;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
}

.contact-form__submit {
  min-width: 11rem;
  margin-bottom: 0;
}

.contact-form__submit[aria-busy="true"] {
  opacity: 0.85;
  cursor: wait;
}

.form-status {
  padding: 0.9rem 1rem;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  border: 1px solid #b91c1c;
  color: #b91c1c;
  background: #fef2f2;
}

.form-status[hidden] {
  display: none;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: sticky;
  top: calc(var(--header-height) + 1rem);
}

.contact-aside__card {
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.contact-aside__card h2 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-lg);
}

.contact-aside__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-aside__item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.contact-aside__icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-aside__icon svg {
  width: 18px;
  height: 18px;
}

.contact-aside__label {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  margin-bottom: 0.15rem;
}

.contact-aside__value {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.45;
  text-decoration: none;
}

a.contact-aside__value:hover {
  color: var(--color-accent);
}

.contact-booking {
  background: var(--color-navy);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  color: #fff;
}

.contact-booking__eyebrow {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-sm);
}

.contact-booking h3 {
  color: #fff;
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
}

.contact-booking p {
  color: rgba(255, 255, 255, 0.72);
  max-width: none;
  margin-bottom: var(--space-lg);
}

.contact-booking .btn {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* Legacy form styles (other pages if any) */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.form-group { margin-bottom: var(--space-lg); }

.form-group label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.95rem 1.15rem;
  font-family: inherit;
  font-size: var(--font-size-base);
  line-height: 1.45;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-white);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-light);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.form-checkbox input { margin-top: 3px; flex-shrink: 0; }

.contact-info__item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-info__icon svg { width: 20px; height: 20px; }

.contact-info__label {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  margin-bottom: 2px;
}

.contact-info__value {
  font-weight: 500;
  color: var(--color-text);
}

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

/* Footer */
.site-footer {
  background: var(--color-navy);
  color: #fff;
  padding: var(--pad-footer-top) 0 var(--pad-footer-bottom);
}

.site-footer a {
  color: #fff;
  font-size: var(--font-size-sm);
}

.site-footer a:hover { color: rgba(255, 255, 255, 0.8); }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.site-footer__brand p {
  font-size: var(--font-size-sm);
  color: #fff;
  max-width: 280px;
  margin-top: var(--space-lg);
}

.site-footer__contact-text {
  margin-top: var(--space-lg);
  line-height: 1.7;
  color: #fff;
}

.site-footer__title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-lg);
}

.site-footer__links li { margin-bottom: var(--space-sm); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.45);
}

.site-footer__bottom a {
  color: rgba(255, 255, 255, 0.45);
}

.site-footer__bottom a:hover {
  color: #fff;
}

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

@media (max-width: 480px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* Legal & error pages */
.section--legal-top {
  padding-block-end: var(--pad-section);
  padding-block-start: calc(var(--header-height) + var(--pad-section));
}

.error-page {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding-block: var(--pad-section-lg);
  padding-top: calc(var(--header-height) + var(--pad-section));
}

.error-page__content { text-align: center; max-width: 600px; margin: 0 auto; }

.error-page__content h1 { margin-bottom: var(--space-lg); }

.error-page__content p { margin: 0 auto var(--space-xl); }

.error-suggestions {
  margin-top: var(--space-3xl);
}

.error-suggestions h3 {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-lg);
  color: var(--color-text-muted);
}

/* Utility */
.sr-only,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -100px;
  z-index: 2000;
  padding: 0.65rem 1rem;
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.skip-link:focus {
  top: var(--space-md);
  color: #fff;
}

.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* Einheitlicher Abstand vor Buttons (nach Text/Listen) */
p + .btn,
.card__text + .btn,
ul + .btn,
.product-card__features + .btn,
.booking-cta > .btn,
.download-block > .btn {
  margin-top: var(--btn-gap);
}

/* Utility-Margins an Buttons auf denselben Abstand bringen */
.btn.mt-xl,
.btn.mt-lg {
  margin-top: var(--btn-gap);
}
.btn-group.mt-lg {
  margin-top: var(--btn-gap);
}

/* Swissbookings product page */
.sb-trust__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-2xl);
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.sb-trust__list strong {
  color: var(--color-text);
  font-weight: 600;
}

.sb-feature-grid .sb-feature {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 0;
}

.sb-feature__visual {
  background: transparent;
  border-bottom: 1px solid var(--color-border, rgba(15, 23, 41, 0.08));
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.sb-feature__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.sb-feature .card__title,
.sb-feature .card__text {
  padding-inline: var(--space-xl);
}

.sb-feature .card__title {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.sb-feature .card__text {
  margin-top: 0;
  margin-bottom: var(--space-xl);
  flex: 1;
}

.sb-reason {
  position: relative;
  padding-top: var(--space-xl);
}

.sb-reason__num {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.page-visual--swissbookings {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-md);
  display: block;
  background: transparent;
}

/* Compact price spacing on Swissbookings tiers (no yearly period line) */
.sb-pricing .pricing-card__price {
  margin: var(--space-sm) 0 0;
}

.sb-pricing .pricing-card__price + .pricing-card__features {
  margin-top: var(--space-md);
}

.booking-cta .btn-group {
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .sb-feature__visual {
    aspect-ratio: 16 / 10;
  }

  .sb-feature__visual img {
    object-fit: contain;
    background: linear-gradient(160deg, #eef1f6 0%, #f8fafc 100%);
  }

  .page-visual--swissbookings {
    margin-inline: auto;
  }
}

/* Main content offset for fixed header */
main { min-height: 50vh; }
