.page {
  position: relative;
  overflow-x: hidden;
  padding-top: var(--header-height);
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../assets/volleyball_background_pattern.svg");
  background-repeat: no-repeat;
  background-position: right -120px top 40px;
  pointer-events: none;
  opacity: 0.7;
}

.page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../assets/volleyball_background_pattern_tile.svg");
  background-repeat: repeat;
  background-size: 520px 520px;
  pointer-events: none;
  opacity: 0.35;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 13px clamp(20px, 5vw, 60px);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(17, 19, 24, 0.08);
}

.site-nav {
  margin-left: auto;
  order: 2;
}

.theme-toggle {
  order: 3;
  margin-left: 12px;
}

.nav-toggle {
  order: 4;
}

.site-header--legal .theme-toggle {
  margin-left: auto;
}

.section {
  padding: 70px clamp(20px, 7vw, 90px);
  position: relative;
  z-index: 1;
  scroll-margin-top: var(--header-height);
}

.section-head {
  max-width: 620px;
  margin-bottom: 32px;
}

.split {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background: linear-gradient(120deg, rgba(31, 79, 163, 0.1), rgba(255, 91, 63, 0.1));
  border-radius: var(--radius);
  margin: 0 clamp(20px, 7vw, 90px) 24px;
}

#kontakt.section {
  padding-top: 52px;
  padding-bottom: 52px;
  margin-bottom: 18px;
}

.cta-body {
  display: grid;
  gap: 18px;
}

.cta-body .button {
  justify-self: start;
}

.site-footer {
  padding: 20px clamp(20px, 7vw, 90px) 24px;
  font-size: 0.9rem;
  color: rgba(17, 19, 24, 0.7);
}

@media (max-width: 1100px) {
  :root {
    --header-height: 108px;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: start;
    gap: 6px 12px;
    padding: 6px clamp(16px, 5vw, 36px);
  }

  .brand {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-width: 0;
  }

  .theme-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: start;
    margin-left: 0;
  }

  .nav-toggle {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    align-self: start;
  }

  .site-nav {
    margin-left: 0;
  }

  .cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 102px;
  }

  .site-header {
    padding: 5px clamp(14px, 5vw, 28px);
    gap: 4px 10px;
  }
}
