/*
 * site-sub.css: the house header and footer for the standalone account pages
 * (konto-neu.html, konto-reset.html). 26.09.2026.
 *
 * Why a separate file: those two pages carry their own inline styles on
 * purpose (someone who is locked out must reach them even if the main
 * stylesheet fails), and css/preview-professional.css would bring global
 * rules for body, h1, a and .button-primary that fight the inline card. The
 * owner wants the home page header on every page, so this file holds ONLY
 * the header and footer rules, copied from css/preview-professional.css and
 * css/site-controls.css (both unchanged) and scoped to .site-header,
 * .mobile-nav and .site-footer. Keep them in step with those two files.
 *
 * The header is marked data-frame="standalone"; js/account.js runs its burger
 * menu and the scrolled backdrop there.
 */

:root {
  --header-height: 68px;
  --max-width: 1220px;
  --radius-button: 12px;
}

/* The header is fixed like on the home page; the page content starts below
   it. */
body:has(> .site-header[data-frame="standalone"]) {
  padding-top: var(--header-height);
}

body.menu-open {
  overflow: hidden;
}

.site-header,
.site-footer,
.mobile-nav {
  font-family: "Inter", "Segoe UI", system-ui, Arial, sans-serif;
  line-height: 1.58;
}

.site-header *,
.site-footer * {
  box-sizing: border-box;
}

.site-header a,
.site-footer a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.site-header button {
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.site-header img,
.site-footer img,
.site-header svg,
.site-footer svg {
  display: block;
  max-width: 100%;
}

.site-header :focus-visible,
.site-footer :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-header .nav-shell,
.site-footer .section-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.site-header.scrolled,
body.menu-open .site-header {
  background: rgba(7, 7, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

.site-header .nav-shell {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-header .brand,
.site-footer .brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-header .brand img,
.site-footer .brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.site-header .desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.site-header .desktop-nav a,
.site-footer .footer-layout nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 150ms ease;
}

.site-header .desktop-nav a:hover,
.site-header .desktop-nav a:focus-visible,
.site-footer .footer-layout nav a:hover,
.site-footer .footer-layout nav a:focus-visible {
  color: var(--white);
}

.site-header .nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header .nav-account {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 150ms ease;
}

.site-header .nav-account:hover,
.site-header .nav-account:focus-visible {
  color: var(--white);
}

.site-header .language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, 36px);
  height: 32px;
  padding: 0;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}

.site-header .language-switch button {
  all: unset;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #8b979e;
  cursor: pointer;
  font-family: "Inter", "Segoe UI", system-ui, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  transition: background-color 150ms ease, color 150ms ease;
}

.site-header .language-switch button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.site-header .language-switch button[aria-pressed="true"],
.site-header .language-switch button.on {
  background: rgba(108, 99, 255, 0.28);
  color: var(--white);
}

/* The Store button: .button .button-small .button-primary of the house.
   The page's own .button-primary (the full-width form button) is reset. */
.site-header .button {
  width: auto;
  height: auto;
  min-height: 38px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--grad);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 2px rgba(6, 10, 30, 0.25);
  white-space: nowrap;
  box-shadow: 0 4px 40px rgba(108, 99, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.site-header .button:hover,
.site-header .button:focus-visible {
  background: linear-gradient(135deg, #7d75ff, #2bdcff);
  box-shadow: 0 8px 60px rgba(108, 99, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

.site-header .menu-button {
  width: 40px;
  height: 40px;
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-header .menu-button span {
  width: 21px;
  height: 2px;
  display: block;
  margin: 4px auto;
  border-radius: 1px;
  background: var(--white);
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-header .menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header .menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.site-header .menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 58px 0 44px;
  border-top: 1px solid var(--line);
  background: #050509;
  color: var(--text);
  font-size: 16px;
}

.site-footer .footer-contract {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.site-footer .footer-contract a {
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 150ms ease;
}

.site-footer .footer-contract a:hover,
.site-footer .footer-contract a:focus-visible {
  color: var(--white);
}

.site-footer .footer-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: start;
}

.site-footer .footer-layout > div > p {
  margin: 16px 0 0;
  color: #8585b0;
  font-size: 13px;
}

.site-footer .footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.site-footer .footer-socials a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.site-footer .footer-socials a:hover,
.site-footer .footer-socials a:focus-visible {
  border-color: rgba(108, 99, 255, 0.55);
  background: rgba(108, 99, 255, 0.12);
  color: var(--white);
  transform: translateY(-2px);
}

.site-footer .footer-layout nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: flex-end;
  max-width: 640px;
}

.site-footer .footer-layout nav a {
  color: #8585b0;
}

.site-footer .footer-layout > p {
  grid-column: 1 / -1;
  margin: 18px 0 0;
  padding-top: 22px;
  border-top: 1px solid #1b1b30;
  color: #8585b0;
  font-size: 12px;
}

/* ------------------------------------------------------------ breakpoints */

@media (min-width: 901px) and (max-width: 1140px) {
  .site-header .desktop-nav .nav-secondary {
    display: none;
  }
}

@media (max-width: 1080px) {
  .site-header .desktop-nav {
    gap: 18px;
  }

  .site-header .desktop-nav a,
  .site-header .nav-account {
    font-size: 13px;
  }
}

@media (min-width: 901px) and (max-width: 1000px) {
  .site-header .nav-shell {
    gap: 20px;
  }

  .site-header .desktop-nav {
    gap: 14px;
  }
}

@media (max-width: 900px) {
  .site-header .desktop-nav,
  .site-header .nav-actions > .button,
  .site-header .nav-actions .nav-account {
    display: none;
  }

  .site-header.scrolled,
  body.menu-open .site-header {
    background: rgba(7, 7, 15, 0.97);
    backdrop-filter: none;
  }

  .site-header .nav-actions {
    margin-left: auto;
  }

  .site-header .menu-button {
    display: block;
  }

  .mobile-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    max-height: calc(100svh - var(--header-height));
    display: grid;
    gap: 0;
    padding: 18px 24px 28px;
    border-bottom: 1px solid var(--line);
    background: #0d0d1a;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s 160ms;
  }

  .mobile-nav.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .mobile-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: #d7dddf;
    font-weight: 650;
  }

  .site-footer .footer-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer .footer-layout nav {
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 680px) {
  :root,
  .site-header {
    --header-height: 62px;
  }

  .site-header .nav-shell,
  .site-footer .section-shell {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .site-header .brand,
  .site-footer .brand {
    font-size: 16px;
  }

  .site-header .brand img,
  .site-footer .brand img {
    width: 30px;
    height: 30px;
  }

  .site-footer {
    padding: 44px 0 36px;
  }
}

/* 27.09.2026 (design review): motion off for visitors who asked for it,
   word for word the rule of css/preview-professional.css, which these two
   pages do not load. !important reaches their inline styles too. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
