/* ==========================================================================
   DigiTour – Stylesheet
   Aufbau: 1. Grundlagen  2. Layout  3. Komponenten  4. Seiten  5. Responsive
   Farben, Abstände und Radien als Variablen in :root – dort zentral anpassen.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #071018;
  --bg-raised: #0c1822;
  --panel: #0f1d29;
  --panel-2: #132433;
  --text: #f3f7fa;
  --text-soft: #c3cfd8;
  --muted: #9aabb8;           /* min. 4.5:1 Kontrast auf --bg */
  --line: rgba(255, 255, 255, .11);
  --line-strong: rgba(255, 255, 255, .24);
  --accent: #2f8cff;           /* Logo-Blau */
  --accent-hover: #4b9dff;
  --accent-soft: #8cc4ff;
  --accent-ink: #04121f;
  --ok: #3ccf91;
  --error: #ff8a80;
  --surface: rgba(255, 255, 255, .04);       /* Buttons, Tabellenkopf */
  --surface-soft: var(--surface-soft);  /* Karten, Boxen */
  --surface-hover: rgba(255, 255, 255, .04);
  --line-hover: rgba(255, 255, 255, .45);
  --header-bg: rgba(7, 16, 24, .82);
  --footer-bg: #050c12;
  --field-bg: rgba(0, 0, 0, .25);
  --placeholder: #6f8291;
  --status-bg: rgba(255, 138, 128, .12);
  --status-line: rgba(255, 138, 128, .4);
  --status-text: #ffd2cd;
  --menu-shadow: -24px 0 60px rgba(0, 0, 0, .45);
  --toggle-track: rgba(255, 255, 255, .22);
  color-scheme: dark;

  --radius: 22px;
  --radius-sm: 14px;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --shadow: 0 24px 70px rgba(0, 0, 0, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Helles Design: gesetzt per <html data-theme="light"> (assets/js/theme.js, folgt dem Gerät oder der Wahl im Menü) */
:root[data-theme="light"] {
  --bg: #f5f7fa;
  --bg-raised: #ffffff;
  --panel: #e9eef4;
  --panel-2: #ffffff;
  --text: #0b1620;
  --text-soft: #34444f;
  --muted: #56666f;           /* min. 4.5:1 Kontrast auf --bg */
  --line: rgba(11, 22, 32, .11);
  --line-strong: rgba(11, 22, 32, .22);
  --accent: #1a6fe0;           /* etwas dunkler als das Logo-Blau, damit weisse Schrift gut lesbar bleibt */
  --accent-hover: #1560c7;
  --accent-soft: #1559b8;
  --ok: #138a5c;
  --error: #c2352b;
  --surface: #ffffff;
  --surface-soft: #ffffff;
  --surface-hover: #ffffff;
  --line-hover: rgba(11, 22, 32, .4);
  --header-bg: rgba(245, 247, 250, .85);
  --footer-bg: #eaeff5;
  --field-bg: #ffffff;
  --placeholder: #7b8a95;
  --status-bg: rgba(194, 53, 43, .07);
  --status-line: rgba(194, 53, 43, .35);
  --status-text: #8f1f16;
  --shadow: 0 24px 60px rgba(16, 38, 64, .16);
  --menu-shadow: -24px 0 60px rgba(16, 38, 64, .18);
  --toggle-track: #c9d2dc;
  color-scheme: light;
}
/* Flächen auf Fotos und blauem Grund bleiben auch im hellen Design dunkel mit heller Schrift */
:root[data-theme="light"] :is(.media-card, .tour, .cta-box, .lightbox, .mini-prices .featured, .price-cards .featured) {
  --text: #f3f7fa;
  --text-soft: #c3cfd8;
  --muted: #b5c3cf;
  --accent-soft: #8cc4ff;
  --line: rgba(255, 255, 255, .11);
  --line-strong: rgba(255, 255, 255, .24);
  color: var(--text);
}
:root[data-theme="light"] :is(.mini-prices .featured, .price-cards .featured) { --accent-soft: #fff; }
:root[data-theme="light"] .media-card { border-color: transparent; }
:root[data-theme="light"] .eyebrow::before { box-shadow: none; }
:root[data-theme="light"] .mobile-cta { box-shadow: 0 12px 30px rgba(16, 38, 64, .28); }

/* Logo: je Design die passende Variante */
.logo-dark { display: none; }
:root[data-theme="light"] .logo-white { display: none; }
:root[data-theme="light"] .logo-dark { display: block; }

/* 1. Grundlagen ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p a, li a, .prose a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.03em; font-weight: 700; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
.accent { color: var(--accent-soft); }

:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* 2. Layout ---------------------------------------------------------------- */
.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { max-width: 860px; }
.section { padding-block: var(--section); border-top: 1px solid var(--line); }
.section-tight { padding-block: calc(var(--section) * .6); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }

.section-head { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2, .h2 { font-size: clamp(34px, 4.6vw, 60px); margin-top: 14px; }
.h2.spaced { margin-bottom: 32px; }
.pricing-teaser .h2 { margin-bottom: 18px; }
.section-head > p { color: var(--muted); margin: 0; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.lead { font-size: clamp(18px, 1.9vw, 21px); color: var(--text-soft); max-width: 680px; }

/* 3. Komponenten ----------------------------------------------------------- */
/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-weight: 650; font-size: 15px; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--line-hover); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-light { background: #fff; border-color: #fff; color: #08121a; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.text-link { font-weight: 650; font-size: 15px; color: var(--accent-soft); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Header & Navigation */
/* Der Weichzeichner liegt auf ::before: backdrop-filter direkt auf dem Header würde das fixierte Handy-Menü in den Header einsperren */
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--header-bg); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); }
.nav-wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 40px; width: auto; }
.navlinks { display: flex; align-items: center; gap: 26px; }
.navlinks > a:not(.btn) { font-size: 15px; color: var(--text-soft); position: relative; padding-block: 6px; transition: color .2s; }
.navlinks > a:not(.btn):hover, .navlinks > a[aria-current="page"] { color: var(--text); }
/* Unterstrich: wächst beim Hovern von links ein, bei der aktiven Seite immer sichtbar */
.navlinks > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.navlinks > a:not(.btn):hover::after, .navlinks > a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* Hell/Dunkel-Umschalter: Desktop als Symbol neben dem Anfrage-Button, Handy unten im Menü */
.theme-toggle { position: relative; flex: none; width: 52px; height: 30px; padding: 0; border: 0; border-radius: 999px; background: var(--toggle-track); cursor: pointer; transition: background .25s var(--ease); }
:root:not([data-theme="light"]) .theme-toggle { background: var(--accent); }
.theme-toggle:hover { filter: brightness(1.08); }
.theme-knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #f0a500; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); display: grid; place-items: center; transition: transform .25s var(--ease); }
:root:not([data-theme="light"]) .theme-knob { transform: translateX(22px); color: var(--accent); }
.theme-knob svg { width: 14px; height: 14px; }
.theme-toggle .icon-moon, :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
:root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }

/* Chips & Listen */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--text-soft); }
.check-list { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; color: var(--text-soft); }
.check-list li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--accent-soft); background: rgba(47, 140, 255, .14); margin-top: 1px; }

/* Karten mit Bild */
.media-card { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); isolation: isolate; }
.media-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.media-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 10, 16, .1) 20%, rgba(4, 10, 16, .92) 85%); }
.media-card:hover > img { transform: scale(1.04); }

/* Matterport-Vorschau (lädt erst nach Klick) */
.tour { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.tour-poster { width: 100%; height: 100%; object-fit: cover; opacity: .6; filter: blur(4px); transform: scale(1.04); }
.tour iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; border: 0; background: linear-gradient(180deg, rgba(4, 10, 16, .15), rgba(4, 10, 16, .55)); cursor: pointer; text-align: center; color: #fff; font-weight: 700; font-size: 18px; }
.tour-play small { display: block; font-weight: 500; font-size: 13px; color: var(--text-soft); }
.tour-play-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); font-size: 22px; padding-left: 4px; box-shadow: 0 0 0 10px rgba(47, 140, 255, .22); transition: transform .25s var(--ease); }
.tour-play:hover .tour-play-icon { transform: scale(1.08); }

/* CTA-Box */
.cta-section { padding-block: var(--section); }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(32px, 6vw, 64px); border-radius: calc(var(--radius) + 6px); background: radial-gradient(circle at 85% 0%, rgba(140, 196, 255, .35), transparent 45%), linear-gradient(135deg, #1f6fd6, #0c3f86); }
.cta-box h2 { font-size: clamp(30px, 4vw, 52px); margin-top: 12px; max-width: 720px; }
.cta-box .eyebrow { color: #d6e8ff; }
.cta-box .eyebrow::before { background: #fff; box-shadow: none; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-soft); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 650; font-size: 18px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; translate: 0 -50%; font-size: 24px; font-weight: 400; color: var(--accent-soft); transition: rotate .2s; }
.faq-item[open] summary::after { rotate: 45deg; }
.faq-item > div { padding: 0 22px 20px; color: var(--text-soft); }
.faq-item > div p:last-child { margin: 0; }

/* Mobile CTA (unten fixiert, nur auf kleinen Bildschirmen) */
.mobile-cta { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-top: 64px; background: var(--footer-bg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { height: 36px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 340px; }
.footer-mail { font-weight: 650; color: var(--accent-soft); }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.site-footer nav a { color: var(--text-soft); }
.site-footer nav a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-block: 22px; color: var(--muted); font-size: 14px; }

/* Einblend-Animation */
/* main.js setzt .pending nur bei Elementen ausserhalb des Bildschirms -> kein Flackern, ohne JS alles sichtbar */
.reveal.pending { opacity: 0; transform: translateY(18px); }
.reveal.pending.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* 4. Seiten ---------------------------------------------------------------- */
/* Startseite: Hero */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(46px, 7vw, 96px); letter-spacing: -.055em; line-height: .95; margin: 22px 0 26px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.hero-proof b { display: block; color: var(--text); font-size: 17px; }
.hero-media { aspect-ratio: 4 / 4.4; border-radius: calc(var(--radius) + 10px); box-shadow: var(--shadow); display: flex; align-items: flex-end; padding: 24px; }
.hero-media .media-label { display: flex; justify-content: space-between; align-items: end; gap: 16px; width: 100%; font-size: 14px; color: var(--text-soft); }
.hero-media .media-label strong { color: #fff; }

/* Leistungs-Karten */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { min-height: 460px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.service-card .num { font-size: 13px; color: var(--text-soft); font-weight: 600; }
.service-card h3 { font-size: 28px; margin-bottom: 10px; }
.service-card p { color: var(--text-soft); }

/* Projekt-Streifen */
.photo-strip { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 12px; }
.photo-strip a { border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.photo-strip a:first-child { grid-row: span 2; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.photo-strip a:hover img { transform: scale(1.05); }

/* Zielgruppen */
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.audience-grid a { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; min-height: 250px; display: flex; flex-direction: column; background: var(--surface-soft); transition: border-color .25s, transform .25s var(--ease), background .25s; }
.audience-grid a:hover { border-color: var(--line-strong); background: var(--surface-hover); transform: translateY(-4px); }
.audience-grid .num { color: var(--accent-soft); font-size: 13px; font-weight: 700; }
.audience-grid h3 { font-size: 22px; margin: auto 0 10px; }
.audience-grid p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* Preis-Teaser */
.pricing-teaser .container { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.pricing-teaser p { color: var(--muted); }
.mini-prices { display: grid; gap: 12px; }
.mini-prices > a { display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 24px; transition: border-color .2s; }
.mini-prices > a:hover { border-color: var(--line-strong); }
.mini-prices span { color: var(--text-soft); }
.mini-prices small { display: block; color: var(--muted); font-size: 13px; }
.mini-prices strong { font-size: 24px; letter-spacing: -.03em; white-space: nowrap; }
.mini-prices .featured { background: var(--accent); border-color: var(--accent); }
.mini-prices .featured span, .mini-prices .featured small { color: #e6f1ff; }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
.steps li { list-style: none; border-top: 2px solid var(--line); padding-top: 22px; }
.steps li::before { counter-increment: step; content: "0" counter(step); display: block; color: var(--accent-soft); font-weight: 700; font-size: 14px; margin-bottom: 30px; }
.steps h3 { font-size: 22px; margin-bottom: 8px; }
.steps p { color: var(--muted); }
ol.steps { padding: 0; margin: 0; }

/* Unterseiten-Hero */
.page-hero { padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(42px, 6.5vw, 86px); letter-spacing: -.05em; line-height: .98; margin: 22px 0 24px; }
.back-link { display: block; width: fit-content; margin-bottom: 26px; color: var(--muted); font-size: 15px; }
.back-link:hover { color: var(--text); }

/* Leistungen */
.service-detail .num { color: var(--accent-soft); font-weight: 700; font-size: 14px; }
.service-detail h2 { font-size: clamp(34px, 4.4vw, 56px); margin: 10px 0 18px; }
.service-detail p { color: var(--text-soft); }
.split.reverse > :first-child { order: 2; }
.photo-stack { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; align-items: end; }
.photo-stack img { border-radius: var(--radius-sm); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.photo-stack img + img { aspect-ratio: 3 / 4; }
.rounded { border-radius: var(--radius); }
.bundle-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px; background: var(--surface-soft); font-size: 19px; font-weight: 650; }
.bundle-strip i { font-style: normal; color: var(--accent-soft); }
.bundle-strip strong { margin-left: auto; font-size: 26px; }

/* Für wen */
.solution-list { display: grid; gap: 14px; }
.solution-list article { display: grid; grid-template-columns: 280px 1fr; gap: 40px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-soft); scroll-margin-top: 100px; }
.solution-list article img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.solution-list article > div { padding: 32px 32px 32px 0; }
.solution-list h2 { font-size: clamp(26px, 3vw, 36px); margin: 12px 0 14px; }
.solution-list p { color: var(--text-soft); }

/* Preise */
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.price-cards article { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.price-cards h2 { font-size: 28px; margin-top: 10px; }
.price-cards .price { font-size: 38px; font-weight: 750; letter-spacing: -.04em; }
.price-cards p { color: var(--muted); flex: 1; }
.price-cards .featured { background: var(--accent); border-color: var(--accent); }
.price-cards .featured p, .price-cards .featured .eyebrow { color: #e6f1ff; }
.price-cards .featured .eyebrow::before { background: #fff; box-shadow: none; }
.badge { position: absolute; top: 22px; right: 22px; font-size: 11px; font-weight: 800; letter-spacing: .12em; background: rgba(255, 255, 255, .18); padding: 4px 10px; border-radius: 999px; }
.estimator { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 24px 24px; background: var(--surface-soft); }
.estimator fieldset { border: 0; padding: 0; margin: 0; }
.choice { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.choice input { accent-color: var(--accent); width: 20px; height: 20px; }
.choice b { font-size: 15px; font-weight: 650; }
.estimate-total { padding: 24px 0 18px; }
.estimate-total span, .estimate-total small { display: block; color: var(--muted); font-size: 14px; }
.estimate-total strong { display: block; font-size: 44px; letter-spacing: -.04em; margin: 4px 0; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.price-table caption { text-align: left; padding: 18px 22px; font-weight: 700; font-size: 18px; border-bottom: 1px solid var(--line); }
.price-table th, .price-table td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--surface); }
.price-table td { color: var(--text-soft); }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }
.price-table td:last-child { color: var(--text); font-weight: 700; }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table .group th { background: rgba(47, 140, 255, .08); color: var(--accent-soft); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.note { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* Projekte */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.project-card { min-height: 420px; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; }
.project-card.large { grid-column: span 2; min-height: 540px; }
.project-card .meta { color: var(--text-soft); font-size: 14px; }
.project-card h2 { font-size: clamp(28px, 3.4vw, 44px); margin: 6px 0 12px; }
.project-card strong { font-size: 15px; color: var(--accent-soft); }
.project-hero { padding-block: clamp(40px, 6vw, 72px) 0; }
.project-title { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.project-title h1 { font-size: clamp(42px, 6.5vw, 86px); letter-spacing: -.05em; margin-top: 14px; }
.case { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.case h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 12px 0 16px; }
.case p { color: var(--text-soft); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin: 26px 0; }
.facts div { background: var(--bg); padding: 14px 16px; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 650; }

/* Galerie */
.gallery-group + .gallery-group { margin-top: clamp(48px, 7vw, 80px); }
.gallery-group h2 { font-size: clamp(26px, 3vw, 36px); margin: 8px 0 22px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery button { padding: 0; border: 0; background: var(--panel); border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.gallery button:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 300; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(3, 7, 11, .96); color: #fff; }
.lightbox::backdrop { background: rgba(3, 7, 11, .9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; color: var(--text-soft); font-size: 15px; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 72px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .06); color: #fff; font-size: 24px; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255, 255, 255, .14); }
.lb-prev, .lb-next { position: absolute; top: 50%; translate: 0 -50%; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-caption { text-align: center; padding: 14px; color: var(--muted); font-size: 14px; }

/* Über uns */
.about-image { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.value-grid article { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: var(--surface-soft); }
.value-grid .num { color: var(--accent-soft); font-weight: 700; font-size: 14px; }
.value-grid h3 { font-size: 24px; margin: 26px 0 10px; }
.value-grid p { color: var(--muted); margin: 0; }
.company-card { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); background: linear-gradient(135deg, var(--panel-2), var(--bg-raised)); }
.company-card h2 { font-size: clamp(30px, 4vw, 48px); margin-top: 12px; }
.company-card p { color: var(--text-soft); margin: 0 0 8px; }

/* Kontakt */
.contact-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.project-form { display: grid; gap: 18px; }
.form-step { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); background: var(--surface-soft); margin: 0; min-width: 0; }
.form-step legend { padding: 0; float: left; width: 100%; margin-bottom: 20px; }
.form-step legend span { display: block; color: var(--accent-soft); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.form-step legend strong { display: block; font-size: 26px; letter-spacing: -.02em; margin-top: 6px; }
.form-step > :not(legend) { clear: both; }
.select-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.select-grid label { position: relative; cursor: pointer; }
.select-grid input { position: absolute; opacity: 0; inset: 0; }
.select-grid span { display: block; height: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 16px; font-weight: 650; transition: border-color .2s, background .2s; }
.select-grid small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); margin-top: 4px; }
.select-grid input:checked + span { border-color: var(--accent); background: rgba(47, 140, 255, .14); }
.select-grid input:checked + span::after { content: "✓"; position: absolute; top: 12px; right: 14px; color: var(--accent-soft); font-weight: 800; }
.select-grid input:focus-visible + span { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--text-soft); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--field-bg); padding: 12px 14px; color: var(--text); }
.field textarea { resize: vertical; min-height: 130px; }
.field select option { background: var(--panel); }
.field input:focus, .field select, .field textarea:focus { border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { border-radius: 12px; padding: 14px 16px; background: var(--status-bg); border: 1px solid var(--status-line); color: var(--status-text); }
.form-status:empty { display: none; }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form-submit p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; min-width: 220px; }
.contact-aside { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: linear-gradient(160deg, var(--panel-2), var(--bg-raised)); }
.contact-aside h2 { font-size: 24px; margin: 12px 0 10px; }
.contact-aside .mail-big { display: inline-block; font-size: 19px; font-weight: 700; color: var(--accent-soft); margin-bottom: 18px; word-break: break-all; }
.contact-aside dl { margin: 0; border-top: 1px solid var(--line); }
.contact-aside dl div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-aside dt { font-size: 13px; color: var(--muted); }
.contact-aside dd { margin: 2px 0 0; font-weight: 600; }

/* Danke / 404 */
.message-page { min-height: 62vh; display: grid; place-items: center; padding-block: var(--section); text-align: center; }
.message-page h1 { font-size: clamp(42px, 6vw, 76px); letter-spacing: -.05em; margin: 18px 0; }
.message-page .lead { margin-inline: auto; }
.message-page .actions { justify-content: center; }
.success-icon { width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; background: rgba(60, 207, 145, .15); color: var(--ok); }

/* Rechtstexte */
.prose { max-width: 820px; color: var(--text-soft); font-size: 16.5px; }
.prose h1 { font-size: clamp(38px, 5vw, 60px); color: var(--text); margin-bottom: 26px; }
.prose h2 { font-size: 26px; color: var(--text); margin: 44px 0 14px; scroll-margin-top: 100px; }
.prose h3 { font-size: 19px; color: var(--text); margin: 28px 0 10px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }

/* 5. Responsive ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .navlinks { gap: 18px; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .select-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav-wrap { height: 66px; }
  .brand img { height: 34px; }
  .nav-toggle { display: grid; gap: 6px; place-content: center; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; cursor: pointer; position: relative; z-index: 102; }
  .nav-toggle .bar { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease); }
  .nav-toggle[aria-expanded="true"] .bar:nth-of-type(2) { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-of-type(3) { transform: translateY(-4px) rotate(-45deg); }
  /* Handy-Menü: Seitenmenü von rechts, Seite dahinter abgedunkelt */
  .navlinks { position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); z-index: 101; flex-direction: column; align-items: stretch; gap: 0; padding: 84px 24px calc(28px + env(safe-area-inset-bottom, 0px)); background: var(--bg-raised); border-left: 1px solid var(--line); box-shadow: var(--menu-shadow); overflow-y: auto; overscroll-behavior: contain; visibility: hidden; transform: translateX(100%); transition: transform .3s var(--ease), visibility 0s .3s; }
  .navlinks.open { visibility: visible; transform: none; transition: transform .3s var(--ease); }
  .navlinks > a:not(.btn) { font-size: 21px; font-weight: 650; color: var(--text); padding: 15px 0; border-bottom: 1px solid var(--line); }
  .navlinks > a:not(.btn)::after { display: none; }
  .navlinks > a[aria-current="page"] { color: var(--accent-soft); }
  .navlinks .btn { margin: 24px 0; min-height: 52px; font-size: 16px; }
  .navlinks .theme-toggle { margin-top: auto; align-self: flex-end; }
  body::after { content: ""; position: fixed; inset: 0; z-index: 99; background: rgba(2, 6, 10, .6); opacity: 0; pointer-events: none; transition: opacity .3s; }
  body.nav-open::after { opacity: 1; pointer-events: auto; }

  .hero-grid, .split, .pricing-teaser .container, .case, .contact-layout, .company-card { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .hero-media { aspect-ratio: 4 / 3; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .service-grid, .steps, .value-grid, .price-cards { grid-template-columns: 1fr; }
  .service-card { min-height: 380px; }
  .photo-strip { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 160px 160px; }
  .photo-strip a:first-child { grid-column: span 2; grid-row: auto; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card.large { grid-column: auto; min-height: 420px; }
  .project-card { min-height: 340px; }
  .solution-list article { grid-template-columns: 1fr; gap: 0; }
  .solution-list article img { min-height: 0; aspect-ratio: 16 / 9; }
  .solution-list article > div { padding: 26px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .contact-aside { position: static; }
  .bundle-strip strong { margin-left: 0; width: 100%; }

  /* fixierter Anfrage-Button unten */
  .mobile-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; min-height: 54px; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); transition: transform .3s var(--ease); }
  .mobile-cta.hidden { transform: translateY(120px); }
  .site-footer { padding-bottom: 80px; }
  .lb-stage { padding: 0 8px; }
  .lb-prev, .lb-next { top: auto; bottom: -62px; translate: none; }
  .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); }
  .lightbox[open] { grid-template-rows: auto 1fr 90px; }
  .lb-caption { padding-top: 70px; }
}

@media (max-width: 560px) {
  /* Preistabelle auf dem Handy als Liste: Leistung + Preis in einer Zeile, Umfang darunter */
  .table-wrap { overflow: visible; }
  .price-table { min-width: 0; }
  .price-table thead { display: none; }
  .price-table tr { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .price-table tbody tr:last-child { border-bottom: 0; }
  .price-table tbody + tbody tr.group { border-top: 1px solid var(--line); }
  .price-table th, .price-table td { padding: 0; border: 0; }
  .price-table td:nth-child(1) { grid-column: 1; grid-row: 1; color: var(--text); font-weight: 600; }
  .price-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: 14px; color: var(--muted); margin-top: 2px; }
  .price-table td:nth-child(3) { grid-column: 2; grid-row: 1; }
  .price-table .group { display: block; padding: 10px 18px; background: rgba(47, 140, 255, .08); }
  .price-table .group th { display: block; background: none; text-align: left; }
  .form-row, .footer-grid { grid-template-columns: 1fr; }
  .select-grid { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr; }
  .hero-proof { gap: 14px 24px; }
  .gallery { grid-template-columns: 1fr; }
  .tour-play { font-size: 16px; }
  .audience-grid { grid-template-columns: 1fr; }
  .audience-grid a { min-height: 0; }
  .audience-grid h3 { margin-top: 28px; }
  .tour-play-icon { width: 60px; height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal.pending { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .mobile-cta, .cta-section { display: none; }
  body { background: #fff; color: #000; }
}
