﻿/* Page shell, header, navigation, footer and responsive layout rules. */
.page-shell {
  min-height: 100vh;
}

.container {
  width: min(var(--xonto-max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(217, 224, 234, 0.85);
  background: #fff;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.site-logo {
  display: block;
  width: 168px;
  aspect-ratio: 2508 / 627;
  background-image: url("../brand/xonto_logo.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  flex: 0 0 auto;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
}

.footer-x-logo {
  display: block;
  width: 38px;
  height: 38px;
  background-image: url("../brand/x-logo-schwarz-transparent.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: #202938;
}

.nav a {
  padding: 10px 8px;
  border-radius: 0;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a:active,
.nav a.is-active,
.nav a[aria-current] {
  color: var(--xonto-blue-dark);
  text-decoration-color: var(--xonto-blue);
}

.mobile-menu-button {
  display: none;
  border: 1px solid var(--xonto-line);
  background: #fff;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
}

.mobile-menu-button span,
.mobile-menu-button span::before,
.mobile-menu-button span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #111827;
  border-radius: 99px;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.mobile-menu-button span { position: relative; }
.mobile-menu-button span::before,
.mobile-menu-button span::after {
  position: absolute;
  left: 0;
}
.mobile-menu-button span::before { top: -7px; }
.mobile-menu-button span::after { top: 7px; }
.mobile-menu-button.is-open span { background: transparent; }
.mobile-menu-button.is-open span::before { transform: translateY(7px) rotate(45deg); }
.mobile-menu-button.is-open span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu-button:focus-visible {
  border-color: rgba(47, 128, 255, 0.58);
  box-shadow: 0 0 0 4px rgba(47, 128, 255, 0.14);
}

.footer {
  padding: 54px 0 42px;
  border-top: 1px solid #050505;
  background: #050505;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-text {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.9rem;
  margin-top: 10px;
  max-width: 700px;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: rgba(255, 255, 255, 0.48);
  font-weight: 400;
  font-size: 0.86rem;
}

.footer-links a {
  font-weight: 400;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-links a[aria-current] {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.28);
}

@media (max-width: 980px) {
  .hero-grid,
  .principle-grid,
  .privacy-panel {
    grid-template-columns: 1fr;
  }

  .hero-visual { max-width: 660px; }
  .benefit-strip,
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, var(--xonto-max)); }
  .header-inner { min-height: 68px; }
  .site-logo { width: 142px; }
  .mobile-menu-button { display: inline-flex; }

  .nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 75px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--xonto-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 50px rgba(12, 31, 70, 0.16);
  }

  .nav.is-open { display: flex; }
  .nav a {
    border-radius: 0;
    text-underline-offset: 5px;
  }

  .no-js .mobile-menu-button { display: none; }

  .no-js .nav {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .hero { padding: 46px 0 34px; }
  h1 { font-size: 2.3rem; }
  .blue-word { white-space: normal; }
  .hero-copy { font-size: 1.04rem; }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn { width: 100%; }

  .mini-grid,
  .benefit-strip,
  .apps-grid {
    grid-template-columns: 1fr;
  }

  .floating-pill {
    position: static;
    width: max-content;
    max-width: 100%;
    margin: 16px 0 0 auto;
  }

  .section { padding: 52px 0; }
  .section-title h2,
  .principle h2 {
    font-size: 2.3rem;
  }

  .principle {
    padding: 30px 20px;
    border-radius: 26px;
  }

  .privacy-panel {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .app-card { min-height: 260px; }
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
