/* ============================================================
   DENSTEWIL UG — Corporate Website
   Design tokens, type, layout & components
   Fonts: Saira (display), Hanken Grotesk (body), JetBrains Mono (labels)
   NOTE (DSGVO): Im Entwurf via Google-Fonts-CDN. Für die Produktion
   müssen die Schriften LOKAL gehostet werden (kein US-Server-Call).
   ============================================================ */

:root {
  /* Surfaces — tiefes Petrol-Teal */
  --bg-900: #06232A;
  --bg-850: #082A2F;
  --bg-800: #0B353B;
  --bg-750: #0E3F46;
  --bg-700: #114851;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-2: rgba(201, 162, 78, 0.05);

  /* Gold accent */
  --gold: #C9A24E;
  --gold-hi: #E6C77A;
  --gold-deep: #9C7A33;
  --gold-soft: rgba(201, 162, 78, 0.14);
  --gold-line: rgba(201, 162, 78, 0.28);

  /* Text */
  --text: #E8E6DF;
  --text-2: #C7C3B7;
  --text-muted: #9A9382;
  --tan: #C2A876;

  /* Type */
  --f-display: "Saira", "Saira Expanded", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Spacing & shape */
  --container: 1240px;
  --radius: 4px;
  --radius-lg: 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --gold-grad: linear-gradient(135deg, #E6C77A 0%, #C9A24E 45%, #9C7A33 100%);
  --header-h: 84px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-body);
  background: var(--bg-850);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient gradient field behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(201, 162, 78, 0.10), transparent 60%),
    radial-gradient(900px 600px at 8% 12%, rgba(17, 72, 81, 0.55), transparent 55%),
    radial-gradient(1200px 900px at 50% 120%, rgba(201, 162, 78, 0.06), transparent 60%),
    linear-gradient(180deg, var(--bg-850), var(--bg-900));
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: var(--bg-900); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.04;
  margin: 0;
  letter-spacing: -0.01em;
}

.display {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.h-section {
  font-size: clamp(2rem, 4vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600;
}

/* Eyebrow label — the card's signature wide-tracked caps */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--text-2);
  line-height: 1.65;
  max-width: 60ch;
}

p { margin: 0 0 1.1em; color: var(--text-2); }
strong { color: var(--text); font-weight: 600; }

.gold-text {
  background: linear-gradient(120deg, var(--gold-hi), var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  /* Safe-Area: im Landscape bleibt der Inhalt frei vom Notch/abgerundeten Rand */
  padding-left: max(clamp(20px, 5vw, 48px), env(safe-area-inset-left));
  padding-right: max(clamp(20px, 5vw, 48px), env(safe-area-inset-right));
}

section { position: relative; }
.section-pad { padding-block: clamp(70px, 11vw, 140px); }

.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line) 18%, var(--gold-line) 82%, transparent);
  border: 0;
  margin: 0;
}

/* ---------- Chevron mark ---------- */
.chev-mark {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.chev-mark svg { display: block; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  /* Safe-Area: Inhalt rutscht nicht unter Notch/Statusleiste (viewport-fit=cover) */
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease), height 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  height: calc(68px + env(safe-area-inset-top, 0px));
  background: rgba(8, 42, 47, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--gold-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-logo {
  height: 42px;
  width: auto;
  display: block;
  transition: height 0.4s var(--ease), filter 0.4s var(--ease), transform 0.4s var(--ease);
}
.site-header.scrolled .brand-logo { height: 34px; }
.brand:hover .brand-logo { filter: brightness(1.12); transform: translateY(-1px); }
.site-footer .brand-logo { height: 46px; }
.brand .chev-mark { transition: transform 0.5s var(--ease); }
.brand:hover .chev-mark { transform: translateX(-3px); }
.brand-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text);
  padding-left: 14px;
  margin-left: 2px;
  border-left: 1px solid var(--gold-line);
  line-height: 1;
}
.brand-name b { color: var(--gold); font-weight: 600; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
}
.nav a {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-hi); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 1.5px;
  background: var(--gold);
  transform: translate(-50%, -50%);
  transition: 0.3s var(--ease);
}
.nav-toggle span::before { transform: translate(-50%, -7px); }
.nav-toggle span::after { transform: translate(-50%, 5px); }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle.open span::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 15px;
  font-family: var(--f-mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: var(--pad-y) 30px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  font-weight: 500;
  white-space: nowrap;
}
.btn svg { transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(-4px); }

.btn-primary {
  background: var(--gold-grad);
  color: #1a1206;
  box-shadow: 0 8px 28px rgba(201, 162, 78, 0.22);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(201, 162, 78, 0.34); }
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
  background: transparent;
  color: var(--gold-hi);
  border-color: var(--gold-line);
}
.btn-ghost:hover { border-color: var(--gold); background: var(--gold-soft); transform: translateY(-2px); }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(201, 162, 78, 0.16);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 220px at var(--mx, 80%) var(--my, 0%), var(--gold-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.card:hover::before { opacity: 1; }
.card .card-no {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.7;
}
.card h3 {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 18px 0 14px;
}
.card p { font-size: 0.97rem; margin-bottom: 0; }
.card-ico {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  color: var(--gold);
  transition: 0.45s var(--ease);
}
.card:hover .card-ico { background: var(--gold-soft); transform: translateX(-2px); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--gold-line);
  background: linear-gradient(180deg, transparent, rgba(6,35,42,0.7));
  padding-block: 64px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
}
.footer-grid h4 {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col p { font-size: 0.92rem; color: var(--text-muted); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-links a, .footer-links button {
  font-family: var(--f-body);
  font-size: 0.92rem;
  color: var(--text-2);
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.footer-links a:hover, .footer-links button:hover { color: var(--gold-hi); padding-left: 6px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(201,162,78,0.12);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ---------- Reveal animation ----------
   Visible by DEFAULT. The hidden initial state only applies when the
   page has added `.js-anim` to <html> (synchronously, in <head>),
   so content is never permanently blank if JS/IO misbehaves. */
.reveal { opacity: 1; transform: none; }
.js-anim .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js-anim .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;        /* Fallback für ältere Browser */
  min-height: 100svh;       /* berücksichtigt mobile Browser-UI-Leisten */
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(50px, 9vw, 110px));
  padding-bottom: clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -8%; top: 10%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--gold-soft), transparent 65%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 700;
  margin: 22px 0 24px;
}

/* breadcrumb */
.crumb { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.crumb b { color: var(--gold); font-weight: 500; }

/* ---------- Generic grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(30px, 5vw, 72px); align-items: center; }

/* Stat row */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat .num { font-family: var(--f-display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; color: var(--gold-hi); line-height: 1; }
.stat .lbl { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); margin-top: 12px; }

/* Feature list with chevron bullets */
.feat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.feat-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); font-size: 1rem; }
.feat-list li svg { flex: none; margin-top: 5px; color: var(--gold); }

/* ---------- Consent banner ---------- */
.consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  transform: translateY(110%);
  transition: transform 0.6s var(--ease);
}
.consent.show { transform: none; }
.consent-inner {
  max-width: var(--container);
  margin-top: 0;
  /* Safe-Area: Abstand zum Home-Indicator unten */
  margin-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  margin-inline: clamp(12px, 4vw, 48px);
  background: rgba(10, 50, 56, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(0,0,0,0.5);
  padding: 26px 28px;
}
.consent h4 { font-family: var(--f-display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.05rem; margin-bottom: 8px; }
.consent p { font-size: 0.88rem; color: var(--text-2); margin: 0; }
.consent p a { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.consent .btn { --pad-y: 12px; padding-inline: 22px; font-size: 0.72rem; }
.consent-top { display: flex; gap: 28px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }

/* granular options */
.consent-opts { display: none; margin-top: 18px; border-top: 1px solid rgba(201,162,78,0.14); padding-top: 18px; gap: 14px; flex-direction: column; }
.consent-opts.show { display: flex; }
.opt-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.opt-row .opt-txt strong { display: block; font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); }
.opt-row .opt-txt span { font-size: 0.84rem; color: var(--text-muted); }

/* toggle switch */
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; border-radius: 20px; background: rgba(255,255,255,0.1); border: 1px solid var(--gold-line); transition: 0.3s; cursor: pointer; }
.switch .track::before { content: ""; position: absolute; left: 3px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border-radius: 50%; background: var(--text-muted); transition: 0.3s var(--ease); }
.switch input:checked + .track { background: var(--gold-soft); border-color: var(--gold); }
.switch input:checked + .track::before { background: var(--gold); left: 23px; }
.switch input:disabled + .track { opacity: 0.6; cursor: not-allowed; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field label { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tan); }
.field label .req { color: var(--gold); }
.field input, .field textarea {
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--text);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,162,78,0.18);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.field.err input, .field.err textarea { border-color: #e07a5f; }
.field .msg { font-size: 0.78rem; color: #e8a18d; display: none; }
.field.err .msg { display: block; }

.checkbox-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 24px; }
.checkbox-row input { margin-top: 4px; accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.checkbox-row label { font-size: 0.86rem; color: var(--text-muted); line-height: 1.5; }
.checkbox-row a { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 2px; }

.form-note { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--text-muted); margin-top: 8px; }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.show { display: block; animation: pop 0.5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

/* Prose for legal pages */
.prose { max-width: 860px; }
.prose h2 { font-size: 1.4rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 44px 0 14px; color: var(--text); }
.prose h3 { font-size: 1.05rem; margin: 28px 0 10px; color: var(--gold-hi); font-family: var(--f-body); font-weight: 700; letter-spacing: 0; text-transform: none; }
.prose p, .prose li { font-size: 0.98rem; color: var(--text-2); }
.prose a { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose .meta-block { background: var(--panel); border: 1px solid rgba(201,162,78,0.14); border-radius: var(--radius-lg); padding: 26px 30px; margin: 24px 0; }
.prose .meta-block p { margin: 0; line-height: 1.8; }

/* CTA band */
.cta-band {
  position: relative;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  padding: clamp(44px, 7vw, 86px);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(17,72,81,0.6), rgba(6,35,42,0.4));
}
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 18px; }
.cta-band .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* contact info tiles */
.info-tile { display: flex; gap: 18px; align-items: flex-start; padding: 24px 0; border-bottom: 1px solid rgba(201,162,78,0.12); }
.info-tile .ico { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border: 1px solid var(--gold-line); border-radius: var(--radius); color: var(--gold); }
.info-tile .lbl { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.info-tile .val { font-size: 1.05rem; color: var(--text); margin-top: 4px; }
.info-tile a.val:hover { color: var(--gold-hi); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 340px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: max(40px, calc(env(safe-area-inset-top, 0px) + 40px)) 40px 40px;
    /* Solider Hintergrund: der dahinterliegende Inhalt scheint nicht durch */
    background: var(--bg-850);
    border-left: 1px solid var(--gold-line);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.45);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
  }
  .nav.open { transform: none; }
  .nav a { font-size: 0.92rem; }
  .nav-cta { margin-left: 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .brand-name { font-size: 1rem; letter-spacing: 0.26em; }
  .brand-logo { height: 34px; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Bugfix: Header darf bei offenem Menü KEINEN backdrop-filter haben –
     sonst wird der (gescrollte) Header zum Containing-Block für das fixed
     Nav-Panel, das dann auf Header-Höhe zusammenfällt und den Inhalt
     dahinter durchscheinen lässt. */
  .nav-open .site-header,
  .nav-open .site-header.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
  }

  /* Scrim: dunkelt den restlichen Seiteninhalt ab und fängt Klicks zum Schließen */
  .nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(4, 22, 27, 0.66);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
  }
  .nav-open .nav-scrim { opacity: 1; pointer-events: auto; }

  /* Seite nicht mehr scrollen, solange das Menü offen ist */
  .nav-open,
  .nav-open body { overflow: hidden; }
}

@media (max-width: 560px) {
  /* Fix #1: vierspaltiges Grid (z. B. Prozess-Schritte) einspaltig */
  .grid-4 { grid-template-columns: 1fr; }

  /* Fix #3: erzwungene Zeilenumbrüche in Headlines auf schmalen Screens
     auflösen, damit der Text natürlich fließt statt zu überlaufen */
  br.br-soft { display: none; }

  /* Fix #6: CTA-Buttons gestapelt und in voller Breite (bessere Tap-Fläche) */
  .hero-actions,
  .cta-band .actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn,
  .cta-band .actions .btn { width: 100%; justify-content: center; }
}

/* Fix #7: Hover-Effekte auf Touch-Geräten neutralisieren, damit der
   angehobene/leuchtende Zustand nach dem Antippen nicht „kleben" bleibt */
@media (hover: none) {
  .card:hover { transform: none; box-shadow: none; }
  .card:hover::before { opacity: 0; }
  .card:hover .card-ico { transform: none; }
  .btn-primary:hover,
  .btn-ghost:hover { transform: none; }
}
