.site-main {
  width: 100%;
  min-width: 0;
}

.site-main > section,
.site-main > div,
.navigation-container1,
.footer-container1,
.footer-container {
  min-width: 0;
  max-width: 100%;
}

.navigation-mobile-overlay.is-open {
  display: flex;
}

body.menu-open {
  overflow: hidden;
}

/* Restore the header layout overridden by the generated page-level styles. */
header.navigation-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

header.navigation-wrapper .navigation-container1 {
  display: block;
}

header.navigation-wrapper .navigation-container {
  position: relative;
  padding: 12px 0;
}

header.navigation-wrapper .navigation-container > .navigation-wrapper {
  display: flex;
  width: 100%;
  min-height: 48px;
}

.navigation-burger,
.navigation-close {
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--border-radius-button);
  align-items: center;
  justify-content: center;
}

.navigation-burger:hover,
.navigation-close:hover {
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
}

@media (max-width: 900px) {
  .navigation-desktop-menu {
    display: none;
  }

  .navigation-burger {
    display: inline-flex;
  }
}

.contact-text {
  cursor: default;
}

.contact-text .btn-link {
  cursor: default;
}

.navigation-list a[aria-current="page"] .navigation-link,
.navigation-mobile-list a[aria-current="page"] .navigation-mobile-link {
  color: var(--color-primary);
}

.form-input.is-invalid,
.form-textarea.is-invalid,
.form-checkbox.is-invalid {
  border-color: #b42318;
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.18);
}

.form-label-checkbox a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.footer-copyright [data-address] {
  overflow-wrap: anywhere;
}

.navigation-brand .section-title,
.footer-brand .section-title {
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  header.navigation-wrapper .navigation-container {
    padding: 8px 0;
  }

  .navigation-wrapper,
  .navigation-mobile-header,
  .navigation-mobile-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .btn,
  .btn-lg,
  .btn-xl {
    max-width: 100%;
    white-space: normal;
  }

  .footer-bottom-content,
  .footer-contact-item,
  .kontakt-hero-actions,
  .abschluss-cta-buttons {
    min-width: 0;
  }

  .footer-copyright {
    overflow-wrap: anywhere;
  }

  .navigation-mobile-overlay {
    height: 100dvh;
    min-height: 100vh;
    overscroll-behavior: contain;
  }

  .navigation-mobile-content {
    padding-top: 32px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .navigation-wrapper,
  .navigation-mobile-header,
  .navigation-mobile-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .navigation-brand .section-title {
    font-size: 17px;
  }

  .hero-title {
    font-size: 34px;
  }

  .section-title {
    font-size: 28px;
  }

  input,
  textarea,
  select {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 360px) {
  .navigation-logo-icon {
    display: none;
  }

  .navigation-brand .section-title {
    font-size: 15px;
  }

  .navigation-brand {
    gap: 0;
  }

  .hero-title {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.footer-description,
.footer-copyright,
.footer-badge {
  color: rgba(247, 245, 240, 0.78);
}

.footer-badge {
  border-color: rgba(247, 245, 240, 0.28);
}

.footer-link,
.footer-text,
.footer-description,
.footer-copyright {
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 479px) {
  .footer-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-grid {
    width: 100%;
  }

  .footer-column,
  .footer-brand-col,
  .footer-logo-wrapper {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .footer-column {
    flex-basis: 100%;
  }

  .footer-contact-item {
    width: 100%;
    min-width: 0;
  }
}

.hero-title,
.section-title,
.section-subtitle,
.history-event-title,
.leistungen-section-title,
.legal-card h1,
.legal-card h2,
.legal-card h3,
.legal-card p,
.legal-card li,
.legal-card address,
.legal-hero-content,
.faq-content,
.faq-summary {
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}
