/* Apus Systems – apus-systems.com
   Design system shared with the melioration24 landing page:
   Apus green, warm paper tones, Plus Jakarta Sans (self-hosted). */

/* ── Fonts ─────────────────────────────────────── */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-latin-italic.woff2') format('woff2');
}

/* ── Tokens ────────────────────────────────────── */
:root {
  --gruen: #a0be5f;
  --gruen-hover: #91b04d;
  --gruen-dunkel: #7a9d3e;
  --gruen-hell: #d6e6b5;
  --gruen-zart: #f2f7e8;
  --tinte: #2c3e1f;
  --text: #4a5a3d;
  --gedaempft: #7d8b72;
  --grau: #62686c;          /* logo grey */
  --blaugrau: #5a7d8c;      /* Geoinformatik accent */
  --papier: #fafcf6;
  --band: #f5f8ef;
  --nacht: #1f2d16;
  --weiss: #ffffff;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --radius-xl: 24px;
  --schatten: 0 2px 8px rgba(44, 62, 31, 0.06), 0 12px 32px rgba(44, 62, 31, 0.08);
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --breite: 1280px;
}

/* ── Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gruen-dunkel); text-decoration: none; }
p a, li a:not([class]) { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gruen-hell); }
p a:hover, li a:not([class]):hover { text-decoration-color: var(--gruen-dunkel); }
:focus-visible { outline: 3px solid var(--gruen-dunkel); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { color: var(--tinte); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { margin: 0 0 1em; }
.zahl, td.preis, .stat-zahl { font-variant-numeric: tabular-nums; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--tinte); color: var(--weiss); padding: 10px 18px; border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; }

/* Eyebrow – echoes the italic logo tagline "intelligent geocoding" */
.vorzeile {
  display: block;
  font-style: italic;
  font-weight: 600;
  font-size: 1rem;
  color: var(--gruen-dunkel);
  margin-bottom: 10px;
}

.container { max-width: var(--breite); margin: 0 auto; padding-left: clamp(20px, 4vw, 40px); padding-right: clamp(20px, 4vw, 40px); }

section { padding: clamp(56px, 8vw, 104px) 0; }
.band { background: var(--band); }

/* ── Buttons ───────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--gruen);
  color: var(--weiss);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 14px 28px;
  border-radius: 999px;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: var(--gruen-hover); transform: translateY(-1px); }
.btn--zweit {
  background: transparent;
  color: var(--tinte);
  box-shadow: inset 0 0 0 2px var(--gruen-hell);
}
.btn--zweit:hover { background: var(--gruen-zart); }
.btn--hell { background: var(--gruen); }
.btn--klein { padding: 9px 20px; font-size: 0.95rem; }
.btn-zeile { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.pfeil-link { font-weight: 700; color: var(--gruen-dunkel); white-space: nowrap; }
.pfeil-link::after { content: ' \2192'; }
.pfeil-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Header ────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 252, 246, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(160, 190, 95, 0.25);
  transition: background 0.25s, border-color 0.25s;
}
.brand .logo-hell { display: none; }

/* Over the home hero the header starts transparent (like the
   melioration24 landing) — the light background fades in on scroll. */
.site-header.ueber-hero {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.ueber-hero .brand .logo-dunkel { display: none; }
.ueber-hero .brand .logo-hell { display: block; }
.ueber-hero .nav-link { color: rgba(255, 255, 255, 0.92); }
.ueber-hero .nav-link:hover,
.ueber-hero .nav-link.aktiv { color: var(--weiss); background: rgba(255, 255, 255, 0.14); }
.ueber-hero .nav-punkt { background: var(--gruen-hell); }
.ueber-hero .nav-toggle { color: var(--weiss); border-color: rgba(255, 255, 255, 0.55); }
.ueber-hero .nav-toggle-box span { background: var(--weiss); }
.header-inner {
  max-width: var(--breite); margin: 0 auto;
  padding: 10px clamp(20px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand img { width: 150px; height: auto; }
.nav-liste { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  color: var(--text); font-weight: 600; font-size: 1rem;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--tinte); background: var(--gruen-zart); }
.nav-link.aktiv { color: var(--tinte); background: var(--gruen-zart); }
.nav-link--produkt { position: relative; }
.nav-punkt {
  position: absolute; top: 7px; right: 6px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gruen);
}
.nav-cta-li { margin-left: 10px; }
.nav-toggle { display: none; }

/* ── Mega menu ─────────────────────────────────── */
.hat-sub .mega {
  position: absolute;
  top: 100%;
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  background: var(--papier);
  border: 1px solid rgba(160, 190, 95, 0.3);
  border-top: none;
  border-radius: 0 0 var(--radius-l) var(--radius-l);
  box-shadow: 0 24px 48px rgba(44, 62, 31, 0.14);
  padding: 26px clamp(20px, 4vw, 40px) 30px;
  z-index: 90;
}
.hat-sub:hover .mega,
.hat-sub:focus-within .mega { visibility: visible; opacity: 1; transform: none; }
.mega--breit { left: 0; right: 0; }
.mega--breit .mega-inner {
  max-width: var(--breite); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.mega--schmal { min-width: 230px; border-radius: 0 0 var(--radius-m) var(--radius-m); }
.mega--rechts { right: 0; }
.lang-liste { list-style: none; margin: 0; padding: 0; min-width: 190px; }
.lang-liste a.aktiv { background: var(--gruen-zart); color: var(--tinte); font-weight: 700; }
.hat-sub { position: relative; }
/* the wide panel anchors to the header, not the list item */
.hat-sub--statisch { position: static; }
.mega-spalte { display: grid; gap: 2px; align-content: start; }
.mega .mega-spalte a {
  display: block; padding: 7px 10px; border-radius: var(--radius-s);
  color: var(--text); font-size: 0.97rem; font-weight: 500;
  text-decoration: none;
}
.mega .mega-spalte a:hover { background: var(--gruen-zart); color: var(--tinte); }
.mega-titel {
  font-weight: 800 !important;
  color: var(--tinte) !important;
  font-size: 1.02rem !important;
  margin-bottom: 4px;
}

/* ── Hero (Start) ──────────────────────────────── */
/* Layered like the melioration24 landing hero: photo at the back,
   a darkening scrim above it, the herringbone drawing above that,
   white text on top. Fills the first viewport below the header. */
.hero {
  position: relative;
  overflow: hidden;
  /* reicht unter den transparenten Header (sticky, ~88px hoch) */
  margin-top: -88px;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(clamp(40px, 6vw, 88px) + 88px) 0 clamp(48px, 7vw, 96px);
  background: var(--nacht); /* sichtbar, bis das Bild geladen ist */
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(31, 45, 22, 0.55) 0, rgba(31, 45, 22, 0) 240px),
    linear-gradient(100deg,
      rgba(31, 45, 22, 0.66) 0%,
      rgba(31, 45, 22, 0.48) 55%,
      rgba(31, 45, 22, 0.32) 100%);
}
.hero-linien {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 3; width: 100%; }
.hero-inhalt { position: relative; max-width: 720px; }
.hero .vorzeile { color: var(--gruen-hell); }
.hero h1 { color: var(--weiss); text-shadow: 0 2px 20px rgba(31, 45, 22, 0.45); }
.hero p.gross {
  font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 620px;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 12px rgba(31, 45, 22, 0.45);
}
.hero .btn-zeile { margin-top: 28px; }
.hero .btn--zweit {
  color: var(--weiss);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}
.hero .btn--zweit:hover { background: rgba(255, 255, 255, 0.14); }

/* ── Product band (dark) ───────────────────────── */
.produkt-band {
  background: var(--nacht);
  color: rgba(255, 255, 255, 0.88);
  overflow: hidden;
}
.produkt-band .vorzeile { color: var(--gruen-hell); }
.produkt-band h2 { color: var(--weiss); }
.produkt-band .produkt-raster {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.produkt-band p.gross { font-size: 1.12rem; }
.produkt-merkmale { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.produkt-merkmale li { padding-left: 26px; position: relative; }
.produkt-merkmale li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--gruen); border-bottom: 2.5px solid var(--gruen);
  transform: rotate(-45deg);
}
.produkt-band .frei-hinweis { color: var(--gruen-hell); font-weight: 700; }
.stores { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.stores img { height: 44px; width: auto; }
.stores .stores-hinweis { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin: 0; }

.screen-buehne { position: relative; min-height: 340px; }
.screen-web {
  border-radius: var(--radius-m);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.screen-phone {
  position: absolute; right: -8px; bottom: -40px;
  width: clamp(140px, 22%, 200px);
  border-radius: 22px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5);
  border: 3px solid #3a4433;
}

/* ── Cards (Leistungen) ────────────────────────── */
.karten-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.karte {
  position: relative;
  background: var(--weiss);
  border: 1px solid rgba(160, 190, 95, 0.3);
  border-radius: var(--radius-l);
  padding: 30px 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}
/* whole card is clickable: the arrow link stretches over the card */
.karte .pfeil-link::before { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.karte p a { position: relative; z-index: 1; }
.karte:hover { transform: translateY(-4px); box-shadow: var(--schatten); }
.karte h3 { margin: 0; }
.karte p { margin: 0; flex: 1; }
.karten-raster--zweier { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 960px; }
.karten-bild { border-radius: var(--radius-m); margin-bottom: 6px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.karten-ikone {
  width: 48px; height: 48px; border-radius: var(--radius-m);
  background: var(--gruen-zart);
  display: grid; place-items: center;
}
.karten-ikone svg { width: 26px; height: 26px; stroke: var(--gruen-dunkel); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── Stats ─────────────────────────────────────── */
.stat-zeile {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px; margin-top: 40px;
}
.stat { border-left: 3px solid var(--gruen); padding-left: 20px; }
.stat-zahl { font-size: 2.4rem; font-weight: 800; color: var(--tinte); line-height: 1.1; }
.stat p { margin: 4px 0 0; }

/* ── Split sections (text + image) ─────────────── */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.split--tauschen > :first-child { order: 2; }
.split img { border-radius: var(--radius-l); box-shadow: var(--schatten); }
.split ul { padding-left: 20px; margin: 0 0 1em; }
.split li { margin-bottom: 6px; }

/* ── Sub-page hero ─────────────────────────────── */
.seiten-kopf { padding: clamp(20px, 3vw, 36px) 0 clamp(8px, 2vw, 24px); }
.seiten-kopf p.gross { font-size: clamp(1.02rem, 1.8vw, 1.22rem); max-width: 760px; }

/* ── Breadcrumbs ───────────────────────────────── */
.brotkrumen { margin-bottom: 22px; }
.brotkrumen ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  font-size: 0.88rem;
}
.brotkrumen li { display: flex; align-items: center; gap: 4px; }
.brotkrumen li + li::before {
  content: '›';
  color: var(--gruen);
  font-weight: 700;
  padding: 0 4px;
}
.brotkrumen a {
  color: var(--gedaempft); font-weight: 600; text-decoration: none;
  padding: 3px 8px; border-radius: 999px;
  background: var(--gruen-zart);
  transition: color 0.15s, background 0.15s;
}
.brotkrumen a:hover { color: var(--tinte); background: var(--gruen-hell); }
.brotkrumen li[aria-current] { color: var(--tinte); font-weight: 700; padding: 3px 4px; }

/* ── Full-bleed image breaker ──────────────────── */
.breaker { position: relative; padding: 0; overflow: hidden; }
.breaker img {
  width: 100%; height: clamp(300px, 42vw, 520px);
  object-fit: cover; display: block;
}
.breaker-draens {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.breaker-text {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(31, 45, 22, 0) 45%, rgba(31, 45, 22, 0.55) 100%);
}
.breaker-text .container { width: 100%; padding-bottom: clamp(28px, 4vw, 52px); }
.breaker-text h2 {
  color: var(--weiss); margin: 0;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  text-shadow: 0 2px 16px rgba(31, 45, 22, 0.5);
}
.breaker-text p { color: rgba(255, 255, 255, 0.92); margin: 6px 0 0; text-shadow: 0 1px 8px rgba(31, 45, 22, 0.5); }

/* ── Prose / listing helpers ───────────────────── */
.prosa { max-width: 820px; }
.prosa ul { padding-left: 22px; }
.prosa li { margin-bottom: 8px; }

.merkmal-raster {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px; margin-top: 32px;
}
.merkmal {
  background: var(--weiss); border: 1px solid rgba(160, 190, 95, 0.3);
  border-radius: var(--radius-m); padding: 18px 20px;
}
.merkmal h3 { font-size: 1.02rem; margin-bottom: 4px; }
.merkmal p { margin: 0; font-size: 0.95rem; }

/* ── Price table ───────────────────────────────── */
.tabelle-umbruch { overflow-x: auto; margin-top: 28px; }
table.preise { width: 100%; border-collapse: collapse; background: var(--weiss); border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--schatten); }
table.preise th, table.preise td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--gruen-zart); }
table.preise th { background: var(--gruen-zart); color: var(--tinte); font-weight: 700; }
table.preise tr:last-child td { border-bottom: none; }
td.preis { font-weight: 700; color: var(--tinte); white-space: nowrap; }

/* ── Timeline (Auszeichnungen / Geschichte) ────── */
.zeitleiste { list-style: none; margin: 32px 0 0; padding: 0; position: relative; }
.zeitleiste::before {
  content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: var(--gruen-hell);
}
.zeitleiste li { position: relative; padding: 0 0 26px 36px; }
.zeitleiste li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gruen); border: 3px solid var(--papier);
}
.zeitleiste .wann { font-weight: 800; color: var(--tinte); display: block; }

/* ── Sitemap page ──────────────────────────────── */
.sitemap-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.sitemap-raster h2 { font-size: 1.1rem; }
.sitemap-raster ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

/* ── Talk list (Symposium) ─────────────────────── */
.vortrags-liste { list-style: none; margin: 24px 0 0; padding: 0; }
.vortrags-liste li {
  padding: 16px 0; border-bottom: 1px solid var(--gruen-zart);
}
.vortrags-liste li:last-child { border-bottom: none; }
.vortrags-liste strong { color: var(--tinte); }

/* ── Contact ───────────────────────────────────── */
.kontakt-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 36px; }
.kontakt-karte {
  background: var(--weiss); border: 1px solid rgba(160, 190, 95, 0.3);
  border-radius: var(--radius-l); padding: 26px 28px;
}
.kontakt-karte h2 { font-size: 1.1rem; margin-bottom: 10px; }
.kontakt-karte p { margin-bottom: 6px; }
.kontakt-karte a { font-weight: 600; }

/* ── CTA band ──────────────────────────────────── */
.cta-band { text-align: left; }
.cta-band .cta-kasten {
  background: linear-gradient(120deg, var(--gruen-zart), #eaf2da);
  border: 1px solid rgba(160, 190, 95, 0.4);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 28px; align-items: center;
}
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { margin: 0; }

/* ── Footer ────────────────────────────────────── */
.site-footer { background: var(--nacht); color: rgba(255, 255, 255, 0.78); }
.footer-inner { max-width: var(--breite); margin: 0 auto; padding: clamp(48px, 6vw, 72px) clamp(20px, 4vw, 40px) 28px; }
.footer-spalten { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); }
.footer-marke img { width: 150px; margin-bottom: 14px; }
.site-footer h2 { color: var(--weiss); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a:hover { color: var(--gruen-hell); }
.footer-produkt .btn { margin: 6px 0 18px; }
.footer-sozial { display: flex; gap: 16px; }
.footer-unten {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: clamp(36px, 5vw, 56px); padding-top: 22px;
  font-size: 0.92rem; color: rgba(255, 255, 255, 0.6);
}
.footer-unten p { margin: 0; }

/* ── Reveal on scroll ──────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .karte { transition: none; }
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 960px) {
  .produkt-band .produkt-raster, .split { grid-template-columns: 1fr; }
  .split--tauschen > :first-child { order: 0; }
  .screen-phone { right: 8px; bottom: -24px; }
  .footer-spalten { grid-template-columns: 1fr 1fr; }
  .cta-band .cta-kasten { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    background: none; border: 1px solid rgba(160, 190, 95, 0.5);
    border-radius: 999px; padding: 8px 16px;
    font: 600 0.95rem var(--font); color: var(--tinte); cursor: pointer;
  }
  .nav-toggle-box { display: grid; gap: 4px; }
  .nav-toggle-box span { display: block; width: 16px; height: 2px; background: var(--tinte); border-radius: 2px; }
  .nav-liste {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--papier);
    box-shadow: 0 16px 32px rgba(44, 62, 31, 0.12);
    border-bottom: 1px solid rgba(160, 190, 95, 0.3);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px clamp(20px, 4vw, 40px) calc(18px + env(safe-area-inset-bottom, 0px));
    /* Mit den aufgeklappten Untermenues wird die Liste laenger als der
       Bildschirm — sie muss in sich scrollen, sonst sind die unteren
       Eintraege nicht erreichbar. --kopf-h setzt main.js. */
    max-height: calc(100vh - var(--kopf-h, 74px));
    max-height: calc(100dvh - var(--kopf-h, 74px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .nav-liste.offen { display: flex; }
  .nav-link { display: block; padding: 12px 10px; border-radius: var(--radius-s); }
  /* Ueber dem Hero sind die Nav-Links weiss — im aufgeklappten Mobil-Menue
     liegen sie aber auf hellem Papier und waeren unlesbar. */
  .ueber-hero .nav-liste .nav-link { color: var(--text); }
  .ueber-hero .nav-liste .nav-link:hover,
  .ueber-hero .nav-liste .nav-link.aktiv { color: var(--tinte); background: var(--gruen-zart); }
  .ueber-hero .nav-liste .nav-punkt { background: var(--gruen); }
  /* submenu inline under its parent item */
  .hat-sub .mega {
    position: static; visibility: visible; opacity: 1; transform: none;
    background: transparent; border: none; box-shadow: none;
    padding: 0 0 6px 22px; transition: none;
  }
  /* Die zehn Sprachen sind mobil laenger als jedes andere Untermenue — sie
     bleiben zugeklappt und oeffnen sich erst auf Klick (siehe main.js). */
  .nav-sprache .mega { display: none; }
  .nav-sprache.offen .mega { display: block; }
  .nav-sprache > .nav-link::after {
    content: '\25BE';
    float: right;
    transition: transform 0.2s;
  }
  .nav-sprache.offen > .nav-link::after { transform: rotate(180deg); }
  .mega--breit .mega-inner { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .mega-spalte a { padding: 6px 10px; color: var(--gedaempft); }
  .mega-titel { margin-bottom: 0; }
  .nav-punkt { position: static; display: inline-block; margin-left: 8px; vertical-align: super; }
  .nav-cta-li { margin: 10px 0 0; }
  .nav-cta-li .btn { display: block; text-align: center; }
  .screen-buehne { min-height: 0; padding-bottom: 24px; }
  .screen-phone { width: 130px; bottom: -8px; }
  .footer-spalten { grid-template-columns: 1fr; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
