/*
 * Gemeinsame Layout-Shell für Start- und Feature-Seite.
 * Diese Datei wird auf beiden Seiten zuletzt geladen und verhindert,
 * dass Header, Logo, Seitenränder oder Hero beim Wechsel verspringen.
 */

:root {
  --site-max-width: 1120px;
  --site-inline-padding: 24px;
  --site-hero-padding: 40px;
  --site-logo-size: 84px;
  --site-logo-text-size: 36px;
  --site-logo-gap: 16px;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}

.container {
  width: 100%;
  max-width: var(--site-max-width);
  height: 100vh;
  margin: 0 auto;
  padding-top: calc(24px + var(--safe-top));
  padding-right: var(--site-inline-padding);
  padding-bottom: calc(24px + var(--safe-bottom));
  padding-left: var(--site-inline-padding);
}

@supports (height: 100dvh) {
  .container {
    height: 100dvh;
  }
}

@supports (height: 100svh) {
  .container {
    height: 100svh;
  }
}

header {
  width: 100%;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo,
a.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--site-logo-gap);
  flex: 0 0 auto;
  font-weight: 700;
  line-height: 1;
}

.logo--xl {
  --logo-size: var(--site-logo-size);
  --brand-name-size: var(--site-logo-text-size);
  --logo-gap: var(--site-logo-gap);
}

.logo-badge {
  width: var(--site-logo-size);
  height: var(--site-logo-size);
  flex: 0 0 var(--site-logo-size);
  border-radius: calc(var(--site-logo-size) / 3);
}

.logo-badge .logo-icon {
  width: calc(var(--site-logo-size) * 0.8);
  height: calc(var(--site-logo-size) * 0.8);
}

.logo > span:last-child,
a.logo > span:last-child {
  font-size: var(--site-logo-text-size);
  line-height: 1;
  white-space: nowrap;
}

.container > main > .hero {
  padding-top: var(--site-hero-padding);
  padding-bottom: var(--site-hero-padding);
}

.container > main > .hero .hero-copy {
  min-width: 0;
  max-width: 680px;
}

.container > main > .hero h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-shadow: #081019 0 4px 8px;
}

.container > main > .hero .hero-copy > p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.65;
}

@media (max-width: 920px) {
  .container > main > .hero {
    gap: 24px;
  }
}

@media (max-width: 520px) {
  :root {
    --site-logo-size: 68px;
    --site-logo-text-size: 30px;
    --site-logo-gap: 14px;
  }
}

/* --------------------------------------------------------------------------
   Burger navigation / right drawer
   -------------------------------------------------------------------------- */

/* Kein hellblauer Browser-Tap-/Pressed-Effekt im gesamten Burger-Menü. */
.menu-toggle,
.menu-close,
.menu-drawer,
.menu-drawer * {
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle {
  width: 52px;
  height: 52px;
  margin-left: auto;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 52px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: var(--text, #eaf0ff);
  background: rgba(17, 23, 38, 0.72);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.menu-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(106, 166, 255, 0.35);
  background: rgba(20, 29, 47, 0.9);
}

.menu-toggle:active {
  transform: none;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(17, 23, 38, 0.72);
}

.menu-toggle:focus-visible,
.menu-close:focus-visible,
.menu-drawer__link:focus-visible {
  outline: 2px solid var(--brand, #6aa6ff);
  outline-offset: 3px;
}

.menu-toggle__line {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 0.24s ease,
    opacity 0.18s ease;
}

.menu-open .menu-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2998;
  background: rgba(3, 7, 14, 0.58);
  opacity: 0;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: opacity 0.26s ease;
}

.menu-backdrop[hidden] {
  display: none;
}

.menu-open .menu-backdrop {
  opacity: 1;
}

.menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 2999;
  width: min(390px, calc(100vw - 28px));
  height: 100vh;
  padding:
    calc(24px + env(safe-area-inset-top, 0px))
    22px
    calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255, 255, 255, 0.11);
  background:
    radial-gradient(430px 280px at 85% 0%, rgba(130, 255, 210, 0.09), transparent 68%),
    radial-gradient(450px 320px at 10% 20%, rgba(106, 166, 255, 0.12), transparent 70%),
    rgba(10, 15, 26, 0.97);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.38);
  transform: translate3d(105%, 0, 0);
  visibility: hidden;
  transition:
    transform 0.28s cubic-bezier(0.2, 0.75, 0.25, 1),
    visibility 0s linear 0.28s;
}

@supports (height: 100dvh) {
  .menu-drawer {
    height: 100dvh;
  }
}

.menu-open .menu-drawer {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  transition-delay: 0s;
}

.menu-open .container {
  overflow: hidden;
}

.menu-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 23px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-drawer__label {
  color: #eaf0ff;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-close {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #eaf0ff;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.menu-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.menu-close:active {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: #eaf0ff;
}

.menu-drawer__nav {
  display: grid;
  gap: 12px;
  margin-top: 25px;
}

.menu-drawer__link {
  min-height: 84px;
  padding: 16px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.menu-drawer__link:hover {
  transform: translateX(-3px);
  border-color: rgba(106, 166, 255, 0.28);
  background: rgba(106, 166, 255, 0.07);
}

.menu-drawer__link:active {
  transform: none;
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
}

.menu-drawer__link span {
  display: grid;
  gap: 4px;
}

.menu-drawer__link small {
  color: var(--muted, #9aa3b2);
  font-size: 12px;
  font-weight: 650;
}

.menu-drawer__link strong {
  color: var(--text, #eaf0ff);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.menu-drawer__link > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: var(--brand-2, #82ffd2);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-drawer__footer {
  margin-top: auto;
  padding-top: 20px;
  display: grid;
  gap: 3px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-drawer__footer span {
  color: var(--text, #eaf0ff);
  font-weight: 800;
}

.menu-drawer__footer small {
  color: var(--muted, #9aa3b2);
}

@media (max-width: 520px) {
  .menu-toggle {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 15px;
  }

  .menu-drawer {
    width: min(340px, calc(100vw - 18px));
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-drawer,
  .menu-backdrop,
  .menu-toggle__line {
    transition-duration: 0.01ms !important;
  }
}
