/* Full-bleed bands stay viewport-wide while the content remains capped at 1440px. */
.site-header,
.onepage-shell > section,
.site-footer {
  position: relative;
  isolation: isolate;
}

.site-header::before,
.onepage-shell > section::before,
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  box-shadow: 0 0 0 100vmax var(--band-color, #fff);
  clip-path: inset(0 -100vmax);
}

.site-header {
  --band-color: #0238BE;
  background: transparent;
}
#hero { --band-color: #0238BE; overflow: visible !important; }
.s-b71049d2bf {
  background: transparent;
}
.site-header::before, #hero::before { box-shadow: none; }
#overview, #planbutler, #kontakt { --band-color: #F4F6FB; }
#firetab, #neu, #webinar, #newsletter { --band-color: #fff; }
#app, .site-footer { --band-color: #0F1530; }
.site-footer { --band-color: #0238BE; }

.onepage-shell { width: 100%; max-width: 1440px; height: auto !important; overflow: visible !important; background: transparent; }
#app { overflow: visible !important; }
body {
  overflow-x: clip;
  background-color: #0238BE;
  background-image: url("../images/hero-rings.svg");
  background-position: right top;
  background-repeat: no-repeat;
  background-size: 760px 760px;
}

.menu-toggle { display: none; }
#firetab h2, #planbutler h2, #app h2, #neu h2, #kontakt h2 { text-wrap: balance; }

@media (max-width: 1100px) {
  .site-header { padding-inline: 40px !important; }
  body { background-size: 680px 680px; }

  #hero, #overview, #firetab, #planbutler, #app, #neu, #webinar, #kontakt, #newsletter, .site-footer {
    height: auto !important;
    min-height: 0 !important;
    padding: 76px 40px !important;
  }

  #hero { flex-direction: column !important; gap: 34px !important; }
  #hero > div:first-of-type { width: 100% !important; flex-shrink: 1 !important; }
  #hero > div:nth-of-type(2) {
    width: min(100%, 576px) !important;
    max-width: 576px;
    height: 620px !important;
    transform: none !important;
    margin: 0 auto;
  }
  #hero > div:nth-of-type(2) svg { height: auto; }
  #hero h1 { font-size: clamp(54px, 7vw, 76px) !important; }

  #overview { gap: 22px !important; }
  #overview > div:nth-child(2) {
    height: auto !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  #overview > div:nth-child(2) > div:first-child { grid-column: 1 / -1; }
  #overview > div:nth-child(2) > div:first-child > div:nth-child(2) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  #neu > div:first-child { width: 100% !important; }
  #neu > div:nth-child(2) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

  #firetab { gap: 34px !important; }
  #firetab > div:first-of-type > div { width: 100% !important; }
  #firetab > div:nth-of-type(2) { flex-direction: column !important; gap: 28px !important; }
  #firetab > div:nth-of-type(2) > div:first-child { width: 100% !important; }
  #firetab .s-f50623b0b1, #firetab .s-b2a2b82d45 { width: 100% !important; max-width: 470px !important; }

  #planbutler { flex-direction: column !important; gap: 34px !important; }
  #planbutler > div:first-child { width: 100% !important; height: 460px !important; }
  #planbutler > div:first-child > div:nth-child(2) > div:last-child { width: 180px !important; }
  #planbutler > div:last-child { width: 100% !important; }

  #app { flex-direction: column !important; gap: 38px !important; }
  #app > div:first-child { width: 100% !important; flex-shrink: 1 !important; }
  #app > div:nth-child(2) {
    position: relative !important;
    display: flex !important;
    justify-content: center;
    align-items: flex-start;
    gap: 22px;
    min-height: 540px;
  }
  #app > div:nth-child(2) > div {
    position: relative !important;
    inset: auto !important;
    width: 260px !important;
    height: 530px !important;
    flex: 0 1 260px;
  }

  #webinar > div:first-child {
    height: auto !important;
    min-height: 380px;
    padding: 48px !important;
    gap: 30px !important;
  }
  #webinar > div:first-child > div { width: 100% !important; }
  #webinar > div:first-child > div:last-of-type { align-items: flex-start !important; }

  #kontakt > div:nth-of-type(2) { flex-direction: column !important; }
  #kontakt > div:nth-of-type(2) > div { width: 100% !important; }
  #newsletter { align-items: stretch !important; flex-direction: column !important; gap: 26px !important; }
  #newsletter > div, #newsletter form { width: 100% !important; }

  .site-footer { gap: 34px !important; }
  .site-footer > div:first-child { gap: 36px !important; }
}

@media (max-width: 700px) {
  .site-header {
    height: 76px !important;
    padding: 0 20px !important;
    z-index: 5;
  }
  body { background-size: 600px 600px; }
  .site-header > img { height: 40px !important; }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.62);
    border-radius: 999px;
    color: #fff;
    background: transparent;
    font: 600 15px 'Source Sans 3', sans-serif;
    cursor: pointer;
  }
  #primary-nav {
    display: none !important;
    position: absolute;
    top: calc(100% - 1px);
    left: 12px;
    right: 12px;
    z-index: 10;
    padding: 14px;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px;
    background: #0238BE;
    box-shadow: 0 18px 40px rgba(4, 20, 70, .28);
  }
  #primary-nav.is-open { display: flex !important; }
  #primary-nav a { justify-content: center; min-height: 46px; }

  #hero, #overview, #firetab, #planbutler, #app, #neu, #webinar, #kontakt, #newsletter, .site-footer {
    padding: 60px 24px !important;
  }
  #hero { gap: 24px !important; padding-top: 48px !important; }
  #hero h1 { font-size: clamp(40px, 11vw, 58px) !important; line-height: 1.02 !important; }
  #hero > div:first-of-type { gap: 20px !important; }
  #hero > div:first-of-type > div:last-child { flex-wrap: wrap; gap: 12px 20px !important; }
  #hero > div:nth-of-type(2) {
    width: 100% !important;
    max-width: 100%;
    height: clamp(350px, 105vw, 620px) !important;
    transform: none !important;
    margin: 0;
  }
  #hero > div:nth-of-type(2) > div:first-child {
    left: 0 !important;
    top: 0 !important;
    width: min(100%, 500px) !important;
    height: auto !important;
    aspect-ratio: 500 / 370;
  }
  #hero > div:nth-of-type(2) > div:last-child {
    left: auto !important;
    right: 0 !important;
    top: clamp(96px, 30vw, 170px) !important;
    width: min(36vw, 206px) !important;
    height: auto !important;
    aspect-ratio: 206 / 420;
  }

  #overview { gap: 18px !important; }
  #overview > div:first-child { font-size: 19px !important; line-height: 1.3; }
  #overview > div:nth-child(2) { grid-template-columns: 1fr !important; gap: 12px !important; }
  #overview > div:nth-child(2) > div:first-child { grid-column: auto; }
  #overview > div:nth-child(2) > div:first-child > div:first-child { flex-wrap: wrap; }
  #overview > div:nth-child(2) > div:first-child > div:nth-child(2) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #overview > div:nth-child(2) > div:not(:first-child) { min-height: 96px; }

  #firetab, #planbutler, #app, #neu, #kontakt { gap: 28px !important; }
  #firetab h2, #planbutler h2, #app h2, #neu h2, #kontakt h2 { font-size: clamp(36px, 9vw, 46px) !important; line-height: 1.06 !important; }
  #firetab p, #planbutler p, #app p { font-size: 18px !important; }
  #firetab > div:nth-of-type(2) > div:first-child { grid-template-columns: 1fr !important; gap: 12px !important; }
  #firetab > div:nth-of-type(2) > div:first-child > div.s-ddc82bef71 { grid-column: auto !important; }
  #firetab > div:nth-of-type(2) > div:nth-child(2) { padding: 24px !important; }
  #firetab > div:nth-of-type(2) > div:nth-child(2) > div:first-child > div:first-child { width: 100% !important; }
  #firetab .s-f50623b0b1, #firetab .s-b2a2b82d45 { width: 100% !important; }
  #firetab .s-132e378961 { width: 100% !important; }

  #planbutler { gap: 30px !important; }
  #planbutler > div:first-child { height: auto !important; min-height: 460px !important; }
  #planbutler > div:first-child > div:first-child { padding-inline: 12px !important; font-size: 12px !important; }
  #planbutler > div:first-child > div:first-child span { display: none; }
  #planbutler > div:first-child > div:nth-child(2) { flex-direction: column !important; }
  #planbutler > div:first-child > div:nth-child(2) > div:first-child { flex: 1 1 auto; min-height: 190px; }
  #planbutler > div:first-child > div:nth-child(2) > div:last-child {
    width: 100% !important;
    padding: 10px !important;
    border-left: 0 !important;
    border-top: 1px solid #E3E8F2;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 8px !important;
  }
  #planbutler > div:first-child > div:nth-child(2) > div:last-child > b,
  #planbutler > div:first-child > div:nth-child(2) > div:last-child > div:last-child { width: 100%; }

  #app > div:first-child { gap: 17px !important; }
  #app > div:first-child > div { grid-template-columns: 1fr !important; }
  #app > div:nth-child(2) { flex-direction: column !important; align-items: center !important; gap: 22px !important; min-height: 0; }
  #app > div:nth-child(2) > div { width: min(260px, 82vw) !important; flex: 0 1 auto; }

  #neu > div:first-child { width: 100% !important; }
  #neu > div:nth-child(2) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px 18px !important; }
  #neu > div:nth-child(2) > div { gap: 8px !important; }
  #neu > div:nth-child(2) > div > div:first-child { font-size: 36px !important; }
  #neu > div:nth-child(2) > div > b { font-size: 18px !important; }
  #neu > div:nth-child(2) > div > span { font-size: 15px !important; }

  #webinar > div:first-child {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    padding: 30px 24px !important;
    border-radius: 24px !important;
    gap: 24px !important;
  }
  #webinar h2 { font-size: clamp(34px, 8.5vw, 44px) !important; }
  #webinar p { font-size: 17px !important; }
  #webinar > div:first-child > div:last-of-type > a { padding: 16px 23px !important; font-size: 18px !important; }

  #kontakt > div:first-child { gap: 10px !important; }
  #kontakt > div:nth-of-type(2) { gap: 16px !important; }
  #kontakt > div:nth-of-type(2) > div { padding: 24px !important; flex-direction: column !important; align-items: flex-start !important; gap: 18px !important; }
  #kontakt img { width: 144px !important; height: auto !important; }
  #kontakt > div:nth-of-type(2) > div > div { font-size: 16px !important; }

  #newsletter { gap: 22px !important; }
  #newsletter > div { align-items: flex-start !important; gap: 14px !important; }
  #newsletter > div > div:nth-child(2) > b { font-size: 22px !important; }
  #newsletter > div > div:nth-child(2) > span { font-size: 15px !important; }
  #newsletter form > div { flex-direction: column !important; }
  #newsletter form input, #newsletter form button { width: 100%; }

  .site-footer { gap: 28px !important; }
  .site-footer > div:first-child { flex-direction: column !important; gap: 28px !important; }
  .site-footer > div:first-child > div { flex-wrap: wrap; gap: 22px !important; }
  .site-footer > div:first-child > div > div { min-width: 145px; }
  .site-footer > div:last-child { flex-direction: column !important; gap: 12px !important; font-size: 14px !important; }
}

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