/* Nanegate.TNG – Design nach Brand-Board und gedruckter Visitenkarte:
   Cinzel (Überschriften, Wortmarke) + Manrope (Text); Tannengrün mit Papierstruktur als Markenfläche,
   Gold nur als Akzent (wie die Heißfolie), Maroon für die Haltung, Creme für Lesestrecken, Nacht für Tiefe.
   Schatten grün getönt, 8-px-Raster, Buttons als Gold-Glas-Pillen. */
:root {
  --green: #163d2e;
  --green-deep: #0f2b21;
  --green-dark: #0b1f18;
  --maroon: #7a1f2c;
  --gold: #c9a24b;
  --gold-light: #e8cd85;
  --gold-dark: #9a772a;
  --cream: #f2efe9;
  --night: #0a0a0b;

  --text-dim: rgba(242, 239, 233, 0.74);
  --ink: #163d2e;
  --ink-dim: rgba(10, 10, 11, 0.70);
  --line-dark: rgba(242, 239, 233, 0.14);
  --line-light: rgba(22, 61, 46, 0.16);
  --shadow: rgba(4, 22, 15, 0.55);

  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --container: 1360px;
  --gutter: clamp(20px, 5vw, 80px);
  --section: clamp(88px, 10vw, 160px);
  --nav-h: 84px;
  --r-l: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --z-nav: 50;
  --z-grain: 60;
  --z-skip: 70;
}

*, *::before, *::after { box-sizing: border-box; }
html.menu-lock, html.menu-lock body { overflow: hidden; overscroll-behavior: none; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--green-dark);
  color: var(--cream);
  font: 400 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Papierstruktur wie der matte Bilderdruck der Visitenkarte */
body::after {
  content: ""; position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.section--light :focus-visible { outline-color: var(--maroon); }

.skip { position: absolute; top: 8px; inset-inline-start: 8px; z-index: var(--z-skip); background: var(--gold); color: var(--night); padding: 8px 16px; border-radius: 999px; transform: translateY(-300%); }
.skip:focus { transform: none; }

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

/* ---------- Typografie ---------- */
.label {
  display: block;
  font-size: 12px; font-weight: 600; line-height: 1.4;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.h1, .h2, .h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; }
.h1 { font-size: clamp(36px, 5.2vw, 78px); line-height: 1.08; letter-spacing: 0.01em; }
.h2 { font-size: clamp(28px, 3.5vw, 52px); line-height: 1.12; letter-spacing: 0.01em; }
.h3 { font-size: clamp(21px, 1.9vw, 28px); font-weight: 600; line-height: 1.3; letter-spacing: 0.02em; }
.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.7; color: var(--text-dim); max-width: 60ch; }
.big { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.7; max-width: 62ch; }
p { text-wrap: pretty; }
.h1 + .lede, .h2 + .lede, .h3 + p { margin-top: 24px; }

/* ---------- Buttons: 3D-Glas-Pillen ----------
   Halbtransparente Füllung, Unschärfe dahinter, Lichtkante oben, Tiefe unten, grün getönter Schwebeschatten;
   neigt sich per JS zur Maus (--rx/--ry), Lichtreflex folgt dem Zeiger (--mx/--my). */
.btn {
  --glass: rgba(242, 239, 233, 0.12);
  --glass-2: rgba(242, 239, 233, 0.03);
  --edge: rgba(242, 239, 233, 0.26);
  --glow: var(--shadow);
  --rx: 0deg; --ry: 0deg; --lift: 0px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px; padding: 0 30px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--cream);
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  border: 1px solid var(--edge); border-radius: 999px; cursor: pointer;
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.40),
    inset 0 -1px 0 rgba(0, 0, 0, 0.30),
    inset 0 -12px 20px -12px rgba(4, 22, 15, 0.50),
    0 1px 1px rgba(4, 22, 15, 0.35),
    0 16px 30px -14px var(--glow);
  transform: perspective(600px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0 0 52% 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0));
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(140px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.34), transparent 65%);
  opacity: 0; transition: opacity .25s var(--ease);
}
.btn:hover { --lift: -3px; filter: brightness(1.07); }
.btn:hover::after { opacity: 1; }
.btn:active {
  --lift: 1px; transition-duration: .08s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 3px 10px rgba(4, 22, 15, 0.45), 0 4px 10px -6px var(--glow);
}
/* Gold = Hauptaktion (wie „Leistungen ansehen“ im Brand-Board), Folienverlauf wie auf der Karte */
.btn-primary, .btn-gold {
  --glass: rgba(240, 218, 150, 0.97); --glass-2: rgba(190, 150, 62, 0.92);
  --edge: rgba(255, 246, 216, 0.80); --glow: rgba(154, 119, 42, 0.60);
  color: var(--night);
}
.btn-ghost { /* Standard-Glas */ }
.btn-outline {
  --glass: rgba(22, 61, 46, 0.08); --glass-2: rgba(22, 61, 46, 0.02); --edge: rgba(22, 61, 46, 0.35); --glow: rgba(22, 61, 46, 0.30);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(22, 61, 46, 0.12), 0 14px 30px -14px var(--glow);
}
.btn-outline::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0)); }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 48px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: var(--z-nav); height: var(--nav-h);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .nav.menu-open { background: rgba(11, 31, 24, 0.90); border-bottom-color: var(--line-dark); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 48px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 56px; width: auto; }
.nav-links { display: flex; gap: 36px; margin-inline-end: auto; }
.nav-links a:not(.btn) {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim); padding: 8px 0; position: relative; transition: color .2s;
}
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:not(.btn):hover, .nav-links a[aria-current] { color: var(--cream); }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.lang {
  display: flex; padding: 3px; border-radius: 999px;
  background: rgba(242, 239, 233, 0.07); border: 1px solid rgba(242, 239, 233, 0.16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.lang button {
  background: none; border: 0; border-radius: 999px; cursor: pointer; padding: 6px 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--text-dim);
  transition: color .2s, background-color .2s;
  position: relative;
}
/* Tap-Fläche ≥44px hoch, unsichtbar; liegt unter den Nachbarknöpfen, damit deren sichtbare Fläche Vorrang hat */
.lang button::before { content: ""; position: absolute; inset: -6px; z-index: -1; }
.lang button[aria-pressed="true"] { color: var(--gold-light); background: rgba(201, 162, 75, 0.18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.nav-shop { min-height: 42px; padding: 0 22px; font-size: 13px; }
.nav-shop-mobile, .nav-toggle { display: none; }
.nav-toggle { width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--cream); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 56px) 0 calc(var(--section) + 16px);
  background:
    radial-gradient(50% 60% at 76% 45%, rgba(232, 205, 133, 0.14), transparent 70%),
    radial-gradient(45% 55% at 5% 100%, rgba(122, 31, 44, 0.26), transparent 70%),
    linear-gradient(180deg, var(--green) 0%, var(--green-deep) 100%);
  overflow: hidden;
}
.hero:not(.hero--page) { min-height: min(100dvh, 980px); display: flex; align-items: center; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero-crest { justify-self: center; }
.hero-crest .crest3d { --crest-size: clamp(220px, 28vw, 380px); }
.hero--page { padding-bottom: 112px; min-height: min(78dvh, 720px); display: flex; align-items: flex-end; }
.hero--page > .container { position: relative; z-index: 1; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; transform: scale(1.12); animation: kenburns 24s var(--ease) both; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 43, 33, .55) 0%, rgba(15, 43, 33, .72) 55%, var(--green-deep) 100%), linear-gradient(90deg, rgba(11, 31, 24, .85) 0%, transparent 70%); }
[dir="rtl"] .hero-bg::after { background: linear-gradient(180deg, rgba(15, 43, 33, .55) 0%, rgba(15, 43, 33, .72) 55%, var(--green-deep) 100%), linear-gradient(270deg, rgba(11, 31, 24, .85) 0%, transparent 70%); }
@keyframes kenburns { from { transform: scale(1.22) translate3d(-1.5%, 1%, 0); } to { transform: scale(1.12); } }
.crumbs { margin-bottom: 40px; color: var(--text-dim); }
.crumbs a { color: var(--gold); }
.crumbs a:hover { color: var(--gold-light); }
.page-head { display: flex; align-items: flex-start; gap: 24px; }
.page-head .h1 { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.page-head .icon { width: 44px; height: 44px; color: var(--gold); flex-shrink: 0; margin-top: 0.2em; }
.hero--page .lede { margin-top: 32px; max-width: 58ch; }

/* ---------- Kennzahlen ---------- */
.stats { background: var(--green-dark); border-bottom: 1px solid var(--line-dark); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stats-grid > div { padding: 44px 32px 48px; border-inline-start: 1px solid var(--line-dark); }
.stats-grid > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stats strong { display: block; font-family: var(--display); font-size: clamp(22px, 2.3vw, 34px); font-weight: 700; letter-spacing: 0.02em; color: var(--gold-light); margin-bottom: 8px; font-variant-numeric: tabular-nums lining-nums; }
.stats span { font-size: 14px; color: var(--text-dim); }

/* ---------- Abschnitte ---------- */
.section { padding: var(--section) 0 calc(var(--section) + 16px); }
.section--dark { background: var(--night); }
.section--green { background: linear-gradient(180deg, var(--green) 0%, var(--green-deep) 100%); }
.section--maroon .label, .hero .label { color: var(--gold-light); }
.section--maroon { background: radial-gradient(70% 90% at 90% 10%, rgba(165, 45, 61, 0.55), transparent 70%), var(--maroon); }
.section--light { background: var(--cream); color: var(--night); }
.section--light .label { color: var(--maroon); }
.section--light .h2, .section--light .h3 { color: var(--ink); }
.section--light .lede, .section--light p:not(.label) { color: var(--ink-dim); }
.section--light .big { color: var(--night); }
.section-head { margin-bottom: 64px; max-width: 880px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 128px); }
.split > div { border-top: 1px solid var(--line-light); padding-top: 40px; }
.section--dark .split > div { border-top-color: var(--line-dark); }

/* Materialeinkauf & Logistik: Icon-Paar (Einkauf/Transport) über dem Qualitätssatz */
.logi-icons { display: flex; gap: 24px; color: var(--gold); margin-bottom: 32px; }
.logi-icons .icon { width: 44px; height: 44px; }

/* Haltung: großes Zitat, bewusst asymmetrisch eingerückt */
.statement { max-width: 1040px; margin-inline-start: clamp(0px, 8vw, 120px); }
.statement .h2 { font-size: clamp(30px, 4.2vw, 62px); line-height: 1.14; }
.statement .lede { margin-top: 32px; color: rgba(242, 239, 233, 0.82); }

/* Über uns: Text + Foto der gedruckten Visitenkarte */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(48px, 7vw, 112px); align-items: center; }
.about-img { margin: 0; }
.about-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-l); box-shadow: 0 40px 80px -30px rgba(22, 61, 46, 0.55); }

/* ---------- Leistungs-Kacheln ---------- */
.svc-grid { perspective: 1400px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); border-inline-start: 1px solid var(--line-dark); }
.svc {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: 40px 32px 32px; min-height: 360px;
  border-inline-end: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  -webkit-transform-style: preserve-3d; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: background-color .35s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.svc:hover { z-index: 2; box-shadow: 0 30px 60px -30px var(--shadow); }
.svc .icon, .svc h3 { transition: transform .5s var(--ease); }
.svc:hover .icon { transform: translateZ(48px) scale(1.08); }
.svc:hover h3 { transform: translateZ(24px); }
.svc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
/* Lichtkegel folgt dem Zeiger (--mx/--my aus script.js) */
.svc::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(201, 162, 75, 0.12), transparent 70%); }
.svc:hover { background: rgba(22, 61, 46, 0.35); }
.svc:hover::before { transform: scaleX(1); }
.svc:hover::after { opacity: 1; }
.svc-num { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.svc .icon { color: var(--gold); margin: 16px 0 8px; }
.svc h3 { font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: 0.02em; }
.svc p { font-size: 15px; color: var(--text-dim); }
.svc-more { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.svc .arrow { transition: transform .3s var(--ease); }
.svc:hover .arrow { transform: translateX(6px); }
.svc--gold { background: linear-gradient(160deg, rgba(201, 162, 75, 0.18), transparent 60%); }
.svc--gold::before { transform: scaleX(1); }
.svc--gold .svc-more { color: var(--gold-light); }
.svc--cta { background: var(--green); }
.svc--cta:hover { background: #1b4a38; }
.svc--cta::before { display: none; }
.svc--cta .svc-num, .svc--cta p { color: rgba(242, 239, 233, 0.8); }
.svc--cta .svc-more { color: var(--gold-light); }
.svc--cta h3 { margin-top: 48px; }
.svc-grid--compact { grid-template-columns: repeat(3, 1fr); }
.svc-grid--compact .svc { min-height: 240px; }

/* ---------- Warum ---------- */
.why li { display: grid; grid-template-columns: 96px 1fr; align-items: baseline; padding: 30px 0; border-top: 1px solid var(--line-dark); font-size: clamp(19px, 1.9vw, 26px); font-weight: 500; line-height: 1.4; }
.why li:last-child { border-bottom: 1px solid var(--line-dark); }
.why-num { font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: 0.1em; color: var(--gold); }

/* ---------- Standorte ---------- */
.locs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-light); }
.loc { padding: 48px 0 0; }
.loc + .loc { padding-inline-start: 48px; border-inline-start: 1px solid var(--line-light); }
.loc .h3 { font-size: clamp(30px, 3.6vw, 52px); font-weight: 700; }
.loc .label { margin-bottom: 16px; }

/* ---------- Detailseite ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(48px, 8vw, 128px); align-items: center; }
.detail-crest { justify-self: center; }
.detail-crest .crest3d { --crest-size: clamp(180px, 20vw, 280px); }
.checks { margin-top: 40px; border-top: 1px solid var(--line-light); }
.checks li { position: relative; padding-block: 20px; padding-inline: 40px 0; border-bottom: 1px solid var(--line-light); font-size: 17px; color: var(--night); }
.checks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 31px; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.checks + .big { margin-top: 40px; }
.note { margin-top: 32px; padding-inline-start: 24px; border-inline-start: 2px solid var(--gold); font-size: 15px; }

/* ---------- Impressum / Datenschutz ---------- */
.hero--legal { min-height: 0; padding-bottom: clamp(56px, 8vw, 96px); }
.legal { max-width: 70ch; overflow-wrap: anywhere; hyphens: auto; }
.legal-meta { font-size: 14px; padding-bottom: 24px; border-bottom: 1px solid var(--line-light); }
.legal-meta span { display: block; }
.legal .h3 { margin-block: 48px 16px; }
.section--light .legal p:not(.label), .legal li { font-size: 17px; line-height: 1.75; color: var(--night); }
.legal p + p { margin-top: 14px; }
.legal ul { margin-block: 12px; padding-inline-start: 1.3em; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal li::marker { color: var(--gold-dark); }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 128px); align-items: start; }
.contact-list { margin-top: 48px; border-top: 1px solid var(--line-dark); }
.contact-list a { display: flex; align-items: center; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line-dark); transition: color .2s; }
.contact-list a:hover { color: var(--gold-light); }
.contact-list svg { color: var(--gold); flex-shrink: 0; }
.contact-list small { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.form {
  display: grid; gap: 24px; padding: clamp(32px, 4vw, 56px); border-radius: var(--r-l);
  background: linear-gradient(180deg, rgba(22, 61, 46, 0.55), rgba(11, 31, 24, 0.55));
  border: 1px solid var(--line-dark); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 40px 80px -40px var(--shadow);
}
.form label { display: grid; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 0; background: transparent; border: 0; border-bottom: 1px solid rgba(242, 239, 233, 0.45); border-radius: 0;
  font-size: 16px; letter-spacing: normal; text-transform: none; color: var(--cream);
}
.form select option { background: var(--green-dark); }
.form input::placeholder, .form textarea::placeholder { color: rgba(242, 239, 233, 0.58); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--gold); }
.form input:user-invalid { border-bottom-color: #e8918f; }
.form textarea { resize: vertical; }
.form .btn { margin-top: 8px; }
.form .btn + .btn { margin-top: -8px; }

/* ---------- Footer ---------- */
.footer { background: var(--night); border-top: 1px solid var(--line-dark); padding: 96px 0 40px; font-size: 14px; color: var(--text-dim); }
.footer-top { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.footer .brand img { height: auto; width: 200px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.footer .label { margin-bottom: 20px; }
.footer li + li { margin-top: 10px; }
.footer a:hover { color: var(--cream); }
/* Größere Tap-Fläche ohne Layoutänderung (negativer Rand gleicht das Padding aus) */
.footer li a { display: inline-block; padding-block: 11px; margin-block: -11px; }
.footer-bottom { margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--line-dark); font-size: 12px; letter-spacing: 0.06em; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-legal a { display: inline-block; padding-block: 11px; margin-block: -11px; }

/* ---------- Einblenden (gestaffelt) ---------- */
.js .reveal { opacity: 0; transform: perspective(1200px) translate3d(0, 48px, -80px) rotateX(12deg); transform-origin: 50% 100%; transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
/* Kennzahlen klappen hoch, „Warum“-Punkte schwingen von der Seite herein – gestaffelt */
.js .flip, .js .swing { opacity: 0; transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js .flip { transform: perspective(900px) rotateX(-75deg); transform-origin: 50% 0; }
.js .swing { transform: perspective(1200px) rotateY(28deg) translateX(-24px); transform-origin: 0 50%; }
[dir="rtl"] .js .swing, .js[dir="rtl"] .swing { transform: perspective(1200px) rotateY(-28deg) translateX(24px); transform-origin: 100% 50%; }
.js .flip.is-visible, .js .swing.is-visible { opacity: 1; transform: none; }
/* Start-Hero: Text und Wappen verschieben sich gegenläufig zur Maus (--px/--py aus script.js) */
.depth { transform: translate3d(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -8px), 0); transition: transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal + .reveal { transition-delay: .12s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .flip, .js .swing { opacity: 1; transform: none; transition: none; }
  .hero-bg img { animation: none; }
  .depth { transform: none; }
  * { transition-duration: 0s !important; }
}

/* Scroll-Parallax (Chrome/Edge/Safari 26+): Fotoebene und Wappen bleiben beim Scrollen zurück → Tiefe */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-bg, .hero-crest { animation: sink linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .hero-copy { animation: rise linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
}
@keyframes sink { to { transform: translate3d(0, 28%, -1px) scale(.96); opacity: .4; } }
@keyframes rise { to { transform: translate3d(0, -12%, 0); opacity: 0; } }

/* Kartenszene an die Seite anpassen: Hinweis in Maroon (Kontrast), in RTL ohne Sperrung */
.about .cardscene[data-flip-label]::after { color: var(--maroon); font-weight: 600; }
[dir="rtl"] .about .cardscene[data-flip-label]::after { letter-spacing: 0; font-size: .9rem; }
@media (max-width: 1024px) { .about .cardscene { width: 100%; } }

/* ---------- Arabisch (RTL) ---------- */
[dir="rtl"] body, [dir="rtl"] .h1, [dir="rtl"] .h2, [dir="rtl"] .h3, [dir="rtl"] .svc h3, [dir="rtl"] .stats strong, [dir="rtl"] .why-num { font-family: "IBM Plex Sans Arabic", var(--font); }
[dir="rtl"] body * { letter-spacing: 0 !important; } /* Sperrung zerreißt die verbundene arabische Schrift */
[dir="rtl"] .h1, [dir="rtl"] .h2 { line-height: 1.35; font-weight: 600; }
[dir="rtl"] .h3, [dir="rtl"] .svc h3 { line-height: 1.5; }
[dir="rtl"] .lede, [dir="rtl"] .big, [dir="rtl"] p { line-height: 1.9; }
[dir="rtl"] .label, [dir="rtl"] .svc-more, [dir="rtl"] .nav-links a:not(.btn) { font-size: 14px; }
[dir="rtl"] .arrow { transform: scaleX(-1); }
[dir="rtl"] .svc:hover .arrow { transform: scaleX(-1) translateX(6px); }
[dir="rtl"] .nav-links a:not(.btn)::after, [dir="rtl"] .svc::before { transform-origin: right; }

/* ---------- 3D-Seitenwechsel ----------
   Seiten drehen sich wie ein Würfel weiter statt zu springen (View Transitions API:
   Chrome/Edge, Safari 18.2+; ältere Browser wechseln normal). Kopfzeile bleibt stehen. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .nav { view-transition-name: nav; }
  ::view-transition { background: #07150f; }
  ::view-transition-group(nav) { animation-duration: 0s; }
  ::view-transition-old(root), ::view-transition-new(root) { mix-blend-mode: normal; backface-visibility: hidden; animation-duration: .9s; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); animation-fill-mode: both; }
  ::view-transition-old(root) { transform-origin: 100% 50%; animation-name: cube-out; }
  ::view-transition-new(root) { transform-origin: 0% 50%; animation-name: cube-in; }
  html[dir="rtl"]::view-transition-old(root) { transform-origin: 0% 50%; animation-name: cube-out-rtl; }
  html[dir="rtl"]::view-transition-new(root) { transform-origin: 100% 50%; animation-name: cube-in-rtl; }
}
/* Menüsprünge innerhalb der Seite: Würfel dreht senkrecht (data-vt aus script.js) */
@media (prefers-reduced-motion: no-preference) {
  html[data-vt="down"]::view-transition-old(root) { transform-origin: 50% 100%; animation-name: cube-up-out; }
  html[data-vt="down"]::view-transition-new(root) { transform-origin: 50% 0%; animation-name: cube-up-in; }
  html[data-vt="up"]::view-transition-old(root) { transform-origin: 50% 0%; animation-name: cube-down-out; }
  html[data-vt="up"]::view-transition-new(root) { transform-origin: 50% 100%; animation-name: cube-down-in; }
}
.vt-instant .reveal, .vt-instant .flip, .vt-instant .swing { transition: none !important; }
@keyframes cube-up-out { to { transform: perspective(2000px) translateY(-100%) rotateX(90deg); filter: brightness(.35); } }
@keyframes cube-up-in { from { transform: perspective(2000px) translateY(100%) rotateX(-90deg); filter: brightness(.35); } }
@keyframes cube-down-out { to { transform: perspective(2000px) translateY(100%) rotateX(-90deg); filter: brightness(.35); } }
@keyframes cube-down-in { from { transform: perspective(2000px) translateY(-100%) rotateX(90deg); filter: brightness(.35); } }
@keyframes cube-out { to { transform: perspective(2000px) translateX(-100%) rotateY(-90deg); filter: brightness(.35); } }
@keyframes cube-in { from { transform: perspective(2000px) translateX(100%) rotateY(90deg); filter: brightness(.35); } }
@keyframes cube-out-rtl { to { transform: perspective(2000px) translateX(100%) rotateY(90deg); filter: brightness(.35); } }
@keyframes cube-in-rtl { from { transform: perspective(2000px) translateX(-100%) rotateY(-90deg); filter: brightness(.35); } }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 24px; }
}
@media (max-width: 1024px) {
  :root { --nav-h: 72px; }
  .brand img { height: 46px; }
  .nav-inner { gap: 16px; justify-content: space-between; }
  .nav-toggle { display: block; }
  .nav-shop { display: none; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 16px var(--gutter) 32px;
    background: rgba(11, 31, 24, 0.98); border-bottom: 1px solid var(--line-dark);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav-links.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav-links a:not(.btn) { padding: 18px 0; border-bottom: 1px solid var(--line-dark); font-size: 13px; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-shop-mobile { display: inline-flex; margin-top: 24px; }
  .hero-inner, .detail, .contact, .split, .footer-top, .about { grid-template-columns: 1fr; }
  .hero-crest { order: -1; }
  .hero-crest .crest3d { --crest-size: min(52vw, 230px); }
  .detail-crest { display: none; }
  .statement { margin-inline-start: 0; }
  .svc-grid--compact { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .brand img { height: 36px; }
  .nav-inner, .nav-right { gap: 8px; }
  .page-head { flex-direction: column; gap: 16px; }
  .hero--page .h1 { font-size: clamp(28px, 8.4vw, 36px); }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid > div { border-inline-start: 0; border-top: 1px solid var(--line-dark); padding: 28px 0; }
  .stats-grid > div:first-child { border-top: 0; }
  .svc-grid, .svc-grid--compact { grid-template-columns: 1fr; }
  .svc { min-height: 0; padding: 32px 24px; }
  .why li { grid-template-columns: 56px 1fr; padding: 24px 0; }
  .locs { grid-template-columns: 1fr; }
  .loc + .loc { padding-inline-start: 0; border-inline-start: 0; margin-top: 48px; border-top: 1px solid var(--line-light); }
  .footer-cols { grid-template-columns: 1fr; gap: 40px; }
  .actions .btn { width: 100%; }
  .lang button { padding: 6px 7px; }
}
/* schmale Handys bis 480px: Logo kleiner, damit der Menü-Button nicht abgeschnitten wird */
@media (max-width: 480px) {
  .brand img { height: 28px; }
  .lang button { padding: 6px 5px; letter-spacing: 0.04em; }
}
