/* === Local font: Space Grotesk (variable) === */
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-VariableFont_wght.woff2") format("woff2");
  font-weight: 300 700; /* variable range */
  font-style: normal;
  font-display: swap;
}

:root {
  /* Tuned to the reference: deep navy -> blue -> violet, with soft magenta bloom. */
  --bg0: #050a1a;
  --bg1: #0a2c66;
  --bg2: #2a1652;
  --bg3: #4b1f72;
  --ink: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --faint: rgba(255, 255, 255, 0.52);
  --line: rgba(255, 255, 255, 0.10);
  --line2: rgba(255, 255, 255, 0.16);

  --violet: #a78bfa;
  --blue: #60a5fa;
  --cyan: #22d3ee;
  --magenta: #ff79e8;

  --glass: rgba(10, 14, 28, 0.62);
  --glass2: rgba(10, 14, 28, 0.78);

  --radius: 18px;
  /* Keep shadows intentionally soft (avoid heavy blurs on mobile GPUs). */
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.46);

  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html:focus-within {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(120% 95% at 50% 60%, transparent 52%, rgba(0, 0, 0, 0.62) 100%),
    radial-gradient(900px 700px at 88% 92%, rgba(0, 0, 0, 0.52), transparent 62%),
    radial-gradient(980px 720px at 92% 10%, rgba(255, 121, 232, 0.46), transparent 58%),
    radial-gradient(1100px 900px at 78% 46%, rgba(167, 139, 250, 0.22), transparent 64%),
    radial-gradient(980px 820px at 18% 78%, rgba(96, 165, 250, 0.22), transparent 62%),
    linear-gradient(120deg, var(--bg0) 0%, #06112b 18%, var(--bg1) 44%, var(--bg2) 70%, var(--bg3) 100%);
  font-family:
    "Space Grotesk",
    system-ui,
    -apple-system,
    "Segoe UI",
    "Helvetica Neue",
    Arial,
    sans-serif;
  line-height: 1.55;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Fixierter, durchgehender Hintergrund – keine Scroll-Cuts mehr */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2; /* unter den Sternen (.bg ist -1) */
  pointer-events: none;

  background:
    radial-gradient(120% 95% at 50% 60%, transparent 52%, rgba(0, 0, 0, 0.62) 100%),
    radial-gradient(900px 700px at 88% 92%, rgba(0, 0, 0, 0.52), transparent 62%),
    radial-gradient(980px 720px at 92% 10%, rgba(255, 121, 232, 0.46), transparent 58%),
    radial-gradient(1100px 900px at 78% 46%, rgba(167, 139, 250, 0.22), transparent 64%),
    radial-gradient(980px 820px at 18% 78%, rgba(96, 165, 250, 0.22), transparent 62%),
    linear-gradient(120deg, var(--bg0) 0%, #06112b 18%, var(--bg1) 44%, var(--bg2) 70%, var(--bg3) 100%);
}
/* Background layers (lightweight: tiling SVGs + long opacity/transform animations) */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("assets/stars-tile-1.svg");
  background-size: 260px 260px;
  background-position: 0 0;
  opacity: 0.78;
}

.bg::before,
.bg::after {
  content: "";
  position: absolute;
  inset: -20%;
  background-repeat: repeat;
  background-size: 340px 340px;
  opacity: 0.0;
  transform: translate3d(0, 0, 0);
  will-change: opacity, transform;
}

.bg::before {
  background-image: url("assets/stars-tile-2.svg");
  filter: blur(0.2px);
}

.bg::after {
  /* subtle "stardust" haze (very light; helps avoid banding) */
  background-image:
    radial-gradient(circle at 85% 18%, rgba(255, 121, 232, 0.10), transparent 58%),
    radial-gradient(circle at 70% 44%, rgba(167, 139, 250, 0.09), transparent 62%),
    radial-gradient(circle at 18% 78%, rgba(96, 165, 250, 0.08), transparent 64%),
    radial-gradient(circle at 42% 62%, rgba(255, 255, 255, 0.03), transparent 66%);
  background-size: 100% 100%;
  opacity: 0.42;
}

@media (prefers-reduced-motion: no-preference) {
  .bg::before {
    opacity: 0.45;
    animation: twinkle 46s ease-in-out infinite;
  }
  .bg::after {
    animation: drift 60s linear infinite;
  }
}

@keyframes twinkle {
  0% {
    opacity: 0.35;
    transform: translate3d(0, 0, 0);
  }
  45% {
    opacity: 0.65;
    transform: translate3d(-1.5%, 1.2%, 0);
  }
  100% {
    opacity: 0.35;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-2.5%, 2.5%, 0);
  }
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 220ms ease;
  z-index: 10;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid rgba(96, 165, 250, 0.65);
  outline-offset: 3px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(5, 10, 26, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

@supports not (backdrop-filter: blur(1px)) {
  .header {
    background: rgba(5, 10, 26, 0.94);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand__mark {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(167, 139, 250, 0.65) 35%, rgba(96, 165, 250, 0.22) 70%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 10px 30px rgba(96, 165, 250, 0.20);
}

.brand__name {
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav__link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.nav__link:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.nav__link:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.65);
  outline-offset: 2px;
}

.main {
  padding-bottom: 80px;
}

.hero {
  padding: 78px 0 44px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 28, 0.45);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.h1 {
  margin: 12px 0 10px;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.lead {
  margin: 0 0 18px;
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--muted);
  max-width: 60ch;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 18px;
}

.btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  padding: 11px 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  user-select: none;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.btn:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.65);
  outline-offset: 3px;
}

.btn[disabled],
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  border-color: rgba(96, 165, 250, 0.25);
  background:
    radial-gradient(140% 140% at 20% 20%, rgba(167, 139, 250, 0.30), transparent 50%),
    linear-gradient(135deg, rgba(96, 165, 250, 0.26), rgba(167, 139, 250, 0.18));
  box-shadow: 0 14px 40px rgba(96, 165, 250, 0.10);
}

.btn--primary:hover {
  border-color: rgba(96, 165, 250, 0.36);
  background:
    radial-gradient(140% 140% at 20% 20%, rgba(167, 139, 250, 0.36), transparent 54%),
    linear-gradient(135deg, rgba(96, 165, 250, 0.30), rgba(167, 139, 250, 0.22));
}

.btn--ghost {
  background: rgba(10, 14, 28, 0.35);
}

.hero__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
}

.meta {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 28, 0.35);
}

.meta dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.meta dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.section {
  padding: 44px 0;
}

.section__head {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.h2 {
  margin: 0;
  font-weight: 650;
  font-size: 22px;
  letter-spacing: 0.01em;
}

.h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.01em;
}

p {
  margin: 10px 0;
}

.muted {
  color: var(--muted);
  font-weight: 400;
}

.fineprint {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(10, 14, 28, 0.55);
  box-shadow: var(--shadow);
}

.card--glass {
  background: var(--glass);
  backdrop-filter: blur(12px) saturate(120%);
}

@supports not (backdrop-filter: blur(1px)) {
  .card--glass {
    background: var(--glass2);
  }
}

.hero__card {
  padding: 18px;
}

.checklist {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.checklist li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(96, 165, 250, 0.35) 50%, rgba(167, 139, 250, 0.20));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

.value {
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.value__kicker {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.56);
}

.value__title {
  display: block;
  margin-top: 6px;
  font-weight: 680;
  color: rgba(255, 255, 255, 0.90);
}

.value__desc {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.prose {
  max-width: 75ch;
}

.pillars {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pillar {
  padding: 16px;
}

.next-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.feature {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 20%, rgba(167, 139, 250, 0.18), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.feature__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.newsletter {
  padding: 18px;
}

.form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

input[type="email"] {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  color: var(--ink);
  outline: none;
}

input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

input[type="email"]:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.65);
  outline-offset: 2px;
}

input[type="email"]:disabled {
  opacity: 0.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.contact-card {
  padding: 18px;
}

.contact-card__main {
  margin: 10px 0 0;
}

.link {
  color: rgba(180, 205, 255, 0.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(180, 205, 255, 0.28);
}

.link:hover {
  border-bottom-color: rgba(180, 205, 255, 0.65);
}

.social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.social__link {
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.80);
  text-decoration: none;
  font-size: 14px;
}

.social__link:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.social__link[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 820px) {
  :root {
    --shadow: 0 18px 55px rgba(0, 0, 0, 0.52);
  }

  .hero {
    padding: 96px 0 54px;
  }

  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
    align-items: start;
  }

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

  .section__grid {
    grid-template-columns: 1.35fr 0.65fr;
    gap: 22px;
  }

  .values {
    grid-template-columns: repeat(3, 1fr);
  }

  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .next-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.kicker {
  margin: 18px 0 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.micro {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  max-width: 60ch;
}

.section-subhead {
  margin-top: 18px;
}

.newsletter .embed {
  margin-top: 14px;
}

/* ---------------------------
   Modern "pep" ohne Kitsch
   - klarere Akzente
   - bessere Interaktionsführung
---------------------------- */

:root{
  --accent: var(--cyan);
  --accent2: var(--violet);
  --glow: 0 0 0 1px rgba(34, 211, 238, 0.16), 0 18px 60px rgba(96, 165, 250, 0.14);
}

/* Headline: subtiler Akzent-Underline */
.h1, .h2 {
  position: relative;
}
.h1::after, .h2::after{
  content:"";
  display:block;
  height: 2px;
  width: min(180px, 38%);
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34,211,238,0.0), rgba(34,211,238,0.55), rgba(167,139,250,0.35), rgba(255,121,232,0.0));
  opacity: 0.85;
}

/* Links: etwas mehr “modern UI” */
.link{
  color: rgba(210, 235, 255, 0.95);
  border-bottom-color: rgba(34, 211, 238, 0.28);
}
.link:hover{
  border-bottom-color: rgba(34, 211, 238, 0.7);
}

/* Primary CTA: etwas klarerer Fokus / Glow */
.btn--primary{
  box-shadow: var(--glow);
}
.btn--primary:hover{
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.22), 0 22px 70px rgba(96, 165, 250, 0.18);
}

/* Cards: micro-lift + gradient border on hover (sehr subtil) */
.card--glass{
  position: relative;
}
@media (prefers-reduced-motion: no-preference) {
  .card--glass{
    transition: transform 220ms ease, border-color 220ms ease;
  }
  .card--glass:hover{
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.16);
  }
}

/* Newsletter-Form: am Desktop Input + Button nebeneinander */
@media (min-width: 520px){
  .newsletter .form{
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .newsletter .btn{
    padding-left: 18px;
    padding-right: 18px;
    white-space: nowrap;
  }
}

/* Nav: minimal klarer beim Hover */
.nav__link:hover{
  border-color: rgba(34, 211, 238, 0.12);
}

/* ===== Portrait (About section) ===== */
.portrait {
  padding: 18px;
}

.portrait__media {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5; /* clean portrait ratio */
  background: radial-gradient(120% 120% at 30% 20%, rgba(160, 165, 250, 0.18), rgba(11, 17, 32, 0.85));
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.portrait__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 20%; /* focus a bit higher (face) */
  filter: contrast(1.03) saturate(1.02);
  transform: scale(1.02); /* tiny upscale to avoid edge gaps */
}

.portrait__shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 450px at 20% 10%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,0.08), transparent 40%, rgba(255,255,255,0.06));
  mix-blend-mode: screen;
  opacity: 0.35;
}

.portrait__copy {
  margin-top: 14px;
}

/* Mobile: keep it nice */
@media (max-width: 860px) {
  .portrait {
    padding: 16px;
  }

  .portrait__media {
    aspect-ratio: 16 / 10; /* more cinematic on narrow screens */
  }

  .portrait__img {
    object-position: 50% 18%;
  }
}

/* ---------- Legal pages (Impressum / Datenschutz / Credits) ---------- */
.legal__card{
  padding: 22px;
  max-width: 920px;
  margin: 0 auto;
}

.legal__title{
  font-size: clamp(30px, 4vw, 44px);
}

.legal__prose{
  max-width: 80ch;
}

.legal__prose p{
  color: var(--muted);
}

.legal__prose h2,
.legal__prose h3{
  margin-top: 18px;
}

.legal__hr{
  border: 0;
  height: 1px;
  background: rgba(255,255,255,0.10);
  margin: 18px 0;
}

/* ===== Mobile polish (header + nav + hero + portrait) ===== */
@media (max-width: 520px){
  /* Hero: zentrierter Einstieg, aber Text bleibt lesbar */
  .hero{
    padding: 64px 0 34px;
  }
  .hero__copy{
    text-align: center;
  }
  .lead{
    margin-left: auto;
    margin-right: auto;
  }

  /* "Start in Vorbereitung" Pill: wirklich mittig */
  .pill{
    margin-left: auto;
    margin-right: auto;
    max-width: 34ch;
    justify-content: center;
    text-align: center;
  }

  /* Buttons: stacked, full width */
  .actions{
    justify-content: center;
  }
  .actions .btn{
    width: 100%;
    justify-content: center;
  }

  /* Portrait: besserer Crop + nicer Card */
  .portrait{
    padding: 14px;
  }
  .portrait__media{
    aspect-ratio: 4 / 5;     /* statt 16/10 – sonst wird Gesicht zu dominant/cut */
    border-radius: 22px;
  }
  .portrait__img{
    object-position: 50% 18%;
    transform: scale(1.03);
  }

  /* Werte-Karten: 1 Spalte, sauberer Abstand */
  .values{
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* =========================
   Modern Header + Mobile Drawer
   ========================= */

:root{
  --header-h: 64px;
}

/* Fix: Anchor scroll offset for sticky header */
html{
  scroll-padding-top: calc(var(--header-h) + 14px);
}
.section, .hero{
  scroll-margin-top: calc(var(--header-h) + 14px);
}

.header{
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Make header height predictable */
.header__inner{
  min-height: var(--header-h);
  padding: 12px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

/* Center brand (mobile-first) */
.brand--center{
  justify-self: center;
  min-width: 0;
}

.header__controls{
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand--center .brand__name{
  white-space: nowrap;
  overflow: visible;  /* avoid "Bewusst..." */
  text-overflow: clip;
  font-size: 15px;
}

/* Right hamburger */
.nav-toggle{
  justify-self: end;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.nav-toggle:hover{
  border-color: rgba(34, 211, 238, 0.18);
  background: rgba(255,255,255,0.06);
}
.nav-toggle:focus-visible{
  outline: 2px solid rgba(96,165,250,0.65);
  outline-offset: 3px;
}

/* Hamburger icon */
.nav-toggle__icon{
  width: 18px;
  height: 12px;
  display: block;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 2px no-repeat;
  opacity: 0.9;
}

/* Desktop nav hidden by default (mobile-first) */
.nav--desktop{
  display: none;
}

/* Drawer overlay */
.drawer{
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

/* Panel */
.drawer__panel{
  position: absolute;
  right: 12px;
  top: 12px;
  width: min(360px, calc(100% - 24px));
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(10, 14, 28, 0.88);
  box-shadow: 0 20px 70px rgba(0,0,0,0.55);
  overflow: hidden;
  transform: translateY(-6px) scale(0.99);
  transition: transform 180ms ease;
}

/* Drawer open state (set by JS: body.menu-open) */
body.menu-open .drawer{
  opacity: 1;
  pointer-events: auto;
}
body.menu-open .drawer__panel{
  transform: translateY(0) scale(1);
}

/* Drawer head */
.drawer__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.drawer__title{
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.92);
}
.drawer__close{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85);
  cursor: pointer;
}
.drawer__close:hover{
  background: rgba(255,255,255,0.06);
}

/* Links */
.drawer__nav{
  padding: 10px;
  display: grid;
  gap: 8px;
}
.drawer__link{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.86);
  text-decoration: none;
}
.drawer__link:hover{
  border-color: rgba(34,211,238,0.18);
  background: rgba(255,255,255,0.05);
}

/* Drawer footer meta links */
.drawer__foot{
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.drawer__meta{
  color: rgba(210,235,255,0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(34,211,238,0.22);
  font-size: 13px;
}
.drawer__meta:hover{
  border-bottom-color: rgba(34,211,238,0.65);
}

/* Desktop layout */
@media (min-width: 820px){
  :root{ --header-h: 68px; }

  .header__inner{
    grid-template-columns: auto 1fr auto;
  }

  .brand--center{
    justify-self: start;
  }

  .nav-toggle{
    display: none;
  }

  .nav--desktop{
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  /* drawer never shown on desktop */
  .drawer{ display: none; }
}

.legal { padding: 18px; max-width: 78ch; }
.legal h1 { margin: 0 0 12px; font-size: 28px; }
.legal h2 { margin-top: 18px; font-size: 18px; }
.legal ul { padding-left: 18px; }
.legal a { word-break: break-word; }

.lang-switch {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--muted);
  text-decoration: none;
}

.lang-switch:hover {
  border-color: rgba(34, 211, 238, 0.25);
  color: var(--ink);
}

/* =========================
   Footer (single source of truth)
   ========================= */

.footer{
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 10, 26, 0.72);
  backdrop-filter: blur(10px);
}

@supports not (backdrop-filter: blur(1px)) {
  .footer { background: rgba(5, 10, 26, 0.94); }
}

.footer__inner{
  padding: 20px 0 22px;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.footer__links{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 4px;
}

.footer__link{
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.footer__link:hover{
  color: rgba(255, 255, 255, 0.90);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.footer__note{
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.42);
}

.footer__copy{
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.62);
}

/* Desktop: two clear rows (links / meta) */
@media (min-width: 820px){
  .footer__inner{
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "links links"
      "note copy";
    align-items: center;
    text-align: left;
  }

  .footer__links{
    grid-area: links;
    justify-content: flex-start;
  }

  .footer__note{
    grid-area: note;
    justify-self: start;
    text-align: left;
    margin-top: 0;
  }

  .footer__copy{
    grid-area: copy;
    justify-self: end;
    text-align: right;
  }
}
