/* ==========================================================================
   NorviTech – Stylesheet
   Entwurf 2a: dunkel, durchgehender Farbverlauf, Glas-Kacheln, große Displaytypo
   ========================================================================== */

:root {
  --font-display: 'Space Grotesk', Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

  --c-bg-0: #0b1226;
  --c-bg-1: #0d1731;
  --c-bg-2: #10214a;
  --c-bg-3: #142c63;
  --c-blue: #0344d4;
  --c-blue-bright: #2f6bff;
  --c-accent: #8fb0ff;
  --c-ink: #050608;
  --c-text: #ffffff;
  --c-text-90: #eef1f8;
  --c-text-77: rgba(255, 255, 255, 0.77);
  --c-text-72: rgba(255, 255, 255, 0.72);
  --c-text-69: rgba(255, 255, 255, 0.69);
  --c-text-60: rgba(255, 255, 255, 0.6);
  --c-text-55: rgba(255, 255, 255, 0.55);
  --c-text-44: rgba(255, 255, 255, 0.44);

  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-radius: 22px;

  --container: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-gap: clamp(72px, 9vw, 120px);
  --card-gap: clamp(14px, 1.6vw, 22px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: #fff; color: var(--c-ink); padding: 10px 16px; border-radius: 999px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ---------- Page background ---------- */
.page {
  position: relative;
  isolation: isolate;
  overflow-x: clip; /* kein overflow:hidden – sonst verliert der Sticky-Header seinen Bezug zum Viewport */
  min-height: 100vh;
  background: linear-gradient(175deg, #0b1226 0%, #0d1731 16%, #10214a 34%, #142c63 50%, #12275a 64%, #0e1c3f 80%, #0a1123 100%);
}
.bg-glow {
  position: absolute; z-index: -1; pointer-events: none; border-radius: 50%;
}
.bg-glow--1 {
  top: 320px; right: -260px; width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.27) 0%, transparent 65%);
}
.bg-glow--2 {
  top: 2400px; left: -300px; width: 1000px; height: 1000px;
  background: radial-gradient(circle, rgba(10, 86, 255, 0.2) 0%, transparent 65%);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Typography helpers ---------- */
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 22px;
}
.h2 {
  font-size: clamp(32px, 4.2vw, 52px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}
.h2--tight { line-height: 1.05; margin-bottom: 22px; }
.h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.link-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
  transition: color 0.2s;
}
.link-mono:hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 15.5px; font-weight: 600; line-height: 1;
  padding: 17px 32px; border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--c-ink); }
.btn--light:hover { background: var(--c-ink); color: #fff; }
.btn--outline { border-color: rgba(255, 255, 255, 0.25); color: #fff; font-weight: 500; font-size: 15px; padding: 15px 26px; }
.btn--outline:hover { background: #fff; color: var(--c-ink); }
.btn--sm { font-size: 14.5px; padding: 12px 24px; }
.btn--lg { font-size: 15.5px; padding: 17px 32px; }

/* ---------- Glass cards ---------- */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* ==========================================================================
   Header (sticky glass pill, shrinks on scroll)
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 16px var(--gutter) 0;
  pointer-events: none;
}
.site-header__inner {
  pointer-events: auto;
  max-width: calc(var(--container) - 2 * var(--gutter));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px 22px 14px 26px;
  background: rgba(11, 18, 38, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: padding 0.35s var(--ease-out), background-color 0.35s, box-shadow 0.35s;
}
.site-header.is-scrolled .site-header__inner {
  padding: 9px 14px 9px 20px;
  background: rgba(11, 18, 38, 0.72);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.site-header__logo img { height: 46px; width: auto; transition: height 0.35s var(--ease-out); }
.site-header.is-scrolled .site-header__logo img { height: 36px; }

.site-nav { display: flex; gap: 32px; font-size: 14.5px; font-weight: 500; }
.site-nav a { color: var(--c-text-90); position: relative; transition: color 0.2s; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--c-accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.site-nav a:hover { color: var(--c-accent); }
.site-nav a:hover::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: 12px; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 50%;
  position: relative;
  border: 1px solid var(--glass-border);
  flex-shrink: 0;
}
.nav-toggle__bar {
  position: absolute; left: 13px; width: 18px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out);
}
.nav-toggle__bar:nth-child(1) { top: 17px; }
.nav-toggle__bar:nth-child(2) { top: 24px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { top: 20.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { top: 20.5px; transform: rotate(-45deg); }

/* Mobile navigation panel */
.mobile-nav {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(96px + env(safe-area-inset-top)) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background: rgba(9, 14, 32, 0.94);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav__links { display: flex; flex-direction: column; }
.mobile-nav__links a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 16px 0; border-bottom: 1px solid var(--glass-border);
  font-size: clamp(26px, 7vw, 36px); letter-spacing: -0.03em; font-weight: 500;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.mobile-nav__links a span { font-family: var(--font-mono); font-size: 12px; color: var(--c-accent); letter-spacing: 0.1em; }
.mobile-nav.is-open .mobile-nav__links a { opacity: 1; transform: none; }
.mobile-nav.is-open .mobile-nav__links a:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav.is-open .mobile-nav__links a:nth-child(2) { transition-delay: 0.1s; }
.mobile-nav.is-open .mobile-nav__links a:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav.is-open .mobile-nav__links a:nth-child(4) { transition-delay: 0.2s; }
.mobile-nav.is-open .mobile-nav__links a:nth-child(5) { transition-delay: 0.25s; }
.mobile-nav__footer { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.mobile-nav__footer .btn { width: 100%; justify-content: center; }
.mobile-nav__meta { font-size: 13.5px; line-height: 1.9; color: var(--c-text-60); }

/* ==========================================================================
   Hero – animated header
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  margin-top: calc(-1 * (46px + 30px + 16px)); /* sits under the sticky header */
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(150px, 22vh, 220px) 0 clamp(80px, 12vh, 140px);
  overflow: hidden;
}
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  transition: opacity 1.4s ease 0.2s;
  /* Linien und Glow laufen nach unten weich aus, damit der Seitenhintergrund
     ohne sichtbare Kante in die nächste Sektion übergeht. */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, rgba(0, 0, 0, 0.6) 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 50%, rgba(0, 0, 0, 0.6) 75%, transparent 100%);
}
.js .hero__canvas { opacity: 0; }
.js .hero__canvas.is-ready { opacity: 1; }
.hero__content { position: relative; z-index: 2; max-width: 1180px; margin-left: 0; }
.hero__eyebrow { margin-bottom: 30px; }
.hero__title {
  font-size: clamp(46px, 8vw, 112px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin-bottom: clamp(22px, 3vw, 30px);
  text-wrap: balance;
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__line > span { display: block; }
.hero__lead {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--c-text-77);
  max-width: 34em;
  margin-bottom: clamp(30px, 3.5vw, 42px);
}

/* staggered reveal on load */
.js [data-hero-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.hero.is-loaded [data-hero-reveal] { opacity: 1; transform: none; }
.hero.is-loaded [data-hero-reveal]:nth-of-type(1) { transition-delay: 0.1s; }
.hero.is-loaded .hero__line:nth-child(1) [data-hero-reveal] { transition-delay: 0.2s; }
.hero.is-loaded .hero__line:nth-child(2) [data-hero-reveal] { transition-delay: 0.32s; }
.hero.is-loaded .hero__lead { transition-delay: 0.5s; }
.hero.is-loaded .hero__content > div:last-child { transition-delay: 0.62s; }

.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 34px; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-text-55);
}
.hero__scroll-line { width: 56px; height: 1px; background: var(--c-text-44); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0; background: #fff;
  transform: translateX(-100%); animation: scroll-line 2.2s var(--ease-out) infinite;
}
@keyframes scroll-line { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 0 0 var(--section-gap); }
.section__head {
  display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.section__head .eyebrow { margin-bottom: 0; }
.section__head--tight { margin-bottom: 18px; }
.section__head--split { justify-content: space-between; align-items: flex-end; }
.section__head--split .eyebrow { margin-bottom: 20px; }
.section__lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--c-text-69); max-width: 46em; margin-bottom: 40px; }

/* Grid */
.grid { display: grid; gap: var(--card-gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Intro */
.intro { padding-top: clamp(40px, 6vw, 80px); }
.intro__grid {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 70px); align-items: end;
}
.intro__display {
  display: flex; flex-direction: column;
  font-size: clamp(52px, 6vw, 86px); line-height: 0.95; letter-spacing: -0.04em; font-weight: 500;
}
.intro__ghost { color: rgba(255, 255, 255, 0.18); }
.intro__text { font-size: clamp(20px, 2.1vw, 29px); line-height: 1.35; color: rgba(255, 255, 255, 0.86); text-wrap: pretty; }

/* Area cards */
.card--area {
  padding: clamp(20px, 2.4vw, 34px) clamp(20px, 2.4vw, 34px) clamp(24px, 2.6vw, 36px);
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
.card--area:hover { border-color: rgba(143, 176, 255, 0.5); transform: translateY(-3px); }
.card--area p { font-size: 16.5px; line-height: 1.6; color: var(--c-text-69); }
.card--area .link-mono { margin-top: 4px; }

/* Image placeholders (replace with <img>/<picture>) */
.placeholder {
  position: relative; width: 100%; border-radius: 14px;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 12px, rgba(255, 255, 255, 0.02) 12px 24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; align-items: flex-end; padding: 18px;
  overflow: hidden;
}
.placeholder--16-9 { aspect-ratio: 16 / 9; }
.placeholder--4-3 { aspect-ratio: 4 / 3; }
.placeholder__tag {
  font-size: 12px; color: var(--c-text-60); background: rgba(0, 0, 0, 0.33);
  padding: 6px 10px; border-radius: 4px;
}
.card--frame { padding: 18px; }
.card--frame__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }

/* Stats */
.stat { padding: 30px 28px 32px; }
.stat__value {
  font-size: clamp(44px, 4.4vw, 60px); line-height: 1; letter-spacing: -0.04em; font-weight: 500;
  margin-bottom: 16px; font-variant-numeric: tabular-nums;
}
.stat__label { font-size: 13px; line-height: 1.5; color: var(--c-text-60); }

/* Split (Arbeitsweise) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4.5vw, 60px); align-items: center; }
.split__lead { font-size: clamp(17px, 1.4vw, 18.5px); line-height: 1.6; color: var(--c-text-72); max-width: 34em; margin-bottom: 32px; }

/* Quotes */
.quotes { margin-bottom: clamp(24px, 3.5vw, 48px); }
.quote { margin: 0; padding: clamp(24px, 2.4vw, 34px); }
.quote p { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.5; color: var(--c-text-90); text-wrap: pretty; margin-bottom: 26px; }
.quote footer { font-size: 13px; color: var(--c-text-55); }

/* Client logos */
.logos { padding: 26px 34px; display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.logos__label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-text-55); }
.logos__row { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.logos__item { display: block; height: 24px; width: var(--w); background: rgba(255, 255, 255, 0.2); border-radius: 3px; }

/* Posts */
.post {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(22px, 2.2vw, 30px); color: #fff;
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
.post:hover { border-color: var(--c-accent); transform: translateY(-3px); }
.post__meta { font-size: 12.5px; color: var(--c-text-55); }
.post__title { font-size: clamp(20px, 1.7vw, 23px); line-height: 1.25; letter-spacing: -0.02em; }
.post p { font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.67); }

/* CTA */
.cta { text-align: center; padding-bottom: clamp(60px, 7vw, 90px); }
.cta__title { font-size: clamp(40px, 5.6vw, 74px); line-height: 1.02; letter-spacing: -0.04em; margin-bottom: 20px; }
.cta__lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--c-text-77); max-width: 30em; margin: 0 auto 38px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding-bottom: clamp(24px, 4vw, 90px); }
.site-footer__card { padding: clamp(28px, 3.2vw, 48px) clamp(22px, 3vw, 44px) clamp(24px, 2.5vw, 34px); }
.site-footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid var(--glass-border);
}
.site-footer__brand img { height: 26px; width: auto; margin-bottom: 20px; }
.site-footer__brand address { font-size: 13.5px; line-height: 1.9; color: var(--c-text-60); }
.site-footer__brand address a:hover { color: #fff; }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.site-footer__col a { color: var(--c-text-77); transition: color 0.2s; }
.site-footer__col a:hover { color: #fff; }
.site-footer__heading { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-text-44); margin-bottom: 6px; }
.site-footer__bottom {
  padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.js [data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
.grid > [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.grid > [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
.grid > [data-reveal]:nth-child(4) { transition-delay: 0.24s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { gap: 22px; font-size: 14px; }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .site-header__logo img { height: 38px; }
  .site-header.is-scrolled .site-header__logo img { height: 32px; }
  .site-header__inner { padding: 10px 10px 10px 18px; }
  .site-header.is-scrolled .site-header__inner { padding: 8px 8px 8px 16px; }

  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro__grid { grid-template-columns: 1fr; align-items: start; }
  .split { grid-template-columns: 1fr; }
  .split .card--frame { order: -1; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .hero { margin-top: calc(-1 * (38px + 22px + 16px)); }
}

@media (max-width: 640px) {
  .site-header__cta { display: none; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid > [data-reveal] { transition-delay: 0s !important; }
  .hero { min-height: 92svh; padding-top: 140px; }
  .hero__title { font-size: clamp(44px, 12.5vw, 64px); }
  .hero__scroll { display: none; }
  .section__head { gap: 10px; }
  .logos { gap: 22px 28px; padding: 22px 24px; }
  .logos__row { gap: 22px 28px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__bottom { flex-direction: column; }
  .btn--lg { width: 100%; justify-content: center; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 40px; }
}

/* ---------- Reduced motion ----------
   Bewegung reduzieren, nicht abschalten: Einblendungen nur als Fade,
   keine Verschiebungen/Parallax, Hero-Animation läuft gedrosselt (siehe JS). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-hero-reveal] { transform: none; transition: opacity 0.9s ease; }
  .hero__scroll-line::after { animation: none; transform: none; }
  .btn:hover, .card--area:hover, .post:hover { transform: none; }
  .mobile-nav__links a { transform: none; }
}

/* ==========================================================================
   Rechtliche Unterseiten (Impressum, Datenschutz)
   ========================================================================== */
.legal { padding-top: clamp(48px, 8vh, 110px); }
.legal__title {
  font-size: clamp(40px, 6vw, 84px); line-height: 0.98; letter-spacing: -0.04em; font-weight: 500;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.legal__card { max-width: 860px; padding: clamp(26px, 4vw, 56px); }
.legal__card h2 {
  font-size: clamp(19px, 1.8vw, 24px); letter-spacing: -0.02em; line-height: 1.2;
  margin: 36px 0 12px;
}
.legal__card h2:first-child { margin-top: 0; }
.legal__card p, .legal__card address {
  font-style: normal; font-size: 16.5px; line-height: 1.7; color: var(--c-text-77);
  margin-bottom: 18px; text-wrap: pretty;
}
.legal__card p:last-child { margin-bottom: 0; }
.legal__card strong { color: #fff; font-weight: 600; }
.legal__card a { color: var(--c-accent); transition: color 0.2s; }
.legal__card a:hover { color: #fff; }
.legal__back { display: inline-block; margin-top: 32px; }
.legal__card h3 {
  font-size: clamp(17px, 1.4vw, 19px); letter-spacing: -0.01em; line-height: 1.3; font-weight: 600;
  margin: 28px 0 10px;
}
.legal__card h4 {
  font-size: 16.5px; line-height: 1.4; font-weight: 600; color: #fff;
  margin: 20px 0 8px;
}
.legal__card ul { margin: 0 0 18px 1.2em; padding: 0; }
.legal__card li { font-size: 16.5px; line-height: 1.7; color: var(--c-text-77); margin-bottom: 8px; text-wrap: pretty; }
.legal__card a { overflow-wrap: anywhere; }
.legal__card--wide { max-width: 960px; }

/* ==========================================================================
   Sprachumschalter (Header)
   ========================================================================== */
.lang { position: relative; flex-shrink: 0; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px 0 10px; border-radius: 999px;
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; color: #fff;
  transition: background-color 0.2s, border-color 0.2s, height 0.35s var(--ease-out);
}
.lang__btn:hover, .lang__btn[aria-expanded="true"] { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); }
.site-header.is-scrolled .lang__btn { height: 36px; }
.lang__flag {
  width: 20px; height: 14px; border-radius: 3px; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.lang__menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  min-width: 168px; margin: 0; padding: 6px; list-style: none;
  background: rgba(11, 18, 38, 0.92); border: 1px solid var(--glass-border); border-radius: 16px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.lang__menu[hidden] { display: none; }
.lang__menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--c-text-90);
  transition: background-color 0.15s, color 0.15s;
}
.lang__menu a:hover, .lang__menu a:focus-visible { background: rgba(255, 255, 255, 0.08); color: #fff; outline: none; }
.lang__menu a[aria-current="true"] { color: var(--c-accent); }

/* Hinweis auf übersetzten Rechtsseiten */
.legal__note { font-size: 14px; color: var(--c-text-55); margin: -16px 0 28px; max-width: 60em; }
