html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: var(--space-3);
  z-index: 2000;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background-color: var(--color-neutral-900);
  color: var(--color-white);
}

.skip-link:focus {
  top: var(--space-3);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-accent) 60%, white 40%);
  outline-offset: 2px;
}

.navbar {
  border-bottom: 0;
}

.hero-title {
  font-size: clamp(1.85rem, 5vw, 3rem);
  line-height: 1.15;
}

.hero-subline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-neutral-700);
}

.back-to-top {
  position: fixed;
  right: calc(var(--space-3) + env(safe-area-inset-right, 0px));
  /* JS reserviert die gemessene Mobile-Bar-Höhe inklusive ihrer Safe Area. */
  bottom: var(--back-to-top-bottom, calc(var(--space-4) + env(safe-area-inset-bottom, 0px)));
  /* Unter Sticky-Header/Mobile-Bar (1030), Offcanvas und Modal bleiben. */
  z-index: 1020;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--color-neutral-300);
  background-color: var(--color-white);
  color: var(--color-primary-strong);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity var(--transition-base),
    transform var(--transition-fast),
    background-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.back-to-top[hidden] {
  display: none;
}

.back-to-top__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.back-to-top__label {
  display: none;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .back-to-top:hover {
    color: var(--color-primary-strong);
    background-color: var(--color-neutral-100);
    box-shadow: var(--shadow-hover);
  }
}

.back-to-top.is-visible:active {
  background-color: var(--color-neutral-100);
  transform: scale(0.96);
}

@media (min-width: 1100px) {
  .back-to-top {
    right: calc(var(--space-5) + env(safe-area-inset-right, 0px));
    width: auto;
    padding-inline: var(--space-4);
  }

  .back-to-top__label {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .back-to-top,
  .back-to-top.is-visible:active {
    transition: none;
    transform: none;
  }
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-8) 0;
  }
}


.bg-darkblue {
  background: #243C4B;
}


footer {
  .container-fluid {
    padding-bottom: 5rem;
  }
}

@media {min-width: 1110px } {

    footer {
      .container-fluid {
        padding-bottom: 0;
      }
    }
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
          opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
          transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.visible {
  visibility: visible;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Konfigurator-Leiste: Headline links, Preis rechts. */
@media (max-width: 1099.98px) {
  .configurator .mobile-bar .bar-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .configurator .mobile-bar .bar-summary {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .configurator .mobile-bar .adjust {
    padding: 8px 0 8px 8px;
    min-height: 44px;
    text-align: right;
    cursor: pointer;
  }

  .configurator .mobile-bar .price {
    display: block;
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .configurator .mobile-bar .price span {
    font-size: 14px;
  }

  .configurator .mobile-bar .price .price-amount {
    font-size: inherit;
  }
}

