/* ============================================================
   Architekt-Rendering — Design System
   Schweizer Grafikdesign: hell, präzise, zurückhaltend.
   Weiss dominiert · 1px-Linien · ein Akzent (#0065c9) · 8px-Raster
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-soft-2: #fafbfc;

  --ink: #13171d;
  --ink-soft: #454d58;
  --muted: #717985;
  --faint: #9aa2ac;

  --line: #e8eaee;
  --line-strong: #d4d9e0;
  --line-soft: #f1f2f4;

  --accent: #0065c9;
  --accent-dark: #04417e;
  --accent-soft: #eef4fb;
  --accent-line: #cfe0f2;

  --ok-bg: #eef7f0;
  --ok-text: #1c7c3f;
  --ok-line: #cfe8d6;
  --warn-bg: #fdf3e8;
  --warn-text: #96570f;
  --warn-line: #f0ddb8;
  --err-bg: #fdf0f0;
  --err-text: #b3261e;
  --err-line: #f0c4c4;

  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --shadow-xs: 0 1px 2px rgba(19, 23, 29, 0.04);
  --shadow-sm: 0 1px 2px rgba(19, 23, 29, 0.04), 0 2px 8px rgba(19, 23, 29, 0.05);
  --shadow-md: 0 2px 4px rgba(19, 23, 29, 0.05), 0 12px 28px rgba(19, 23, 29, 0.08);
  --shadow-accent: 0 4px 14px rgba(0, 101, 201, 0.22);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, sans-serif;

  --container: 1200px;
  --gutter: 24px;
}

/* ---------- Reset / Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--accent); color: #fff; }
.hidden { display: none !important; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, .dropzone:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
  white-space: nowrap;
  line-height: 1.3;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 18px rgba(0, 101, 201, 0.28);
  transform: translateY(-1px);
}
.btn-primary:disabled { background: #9db8d6; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-label { display: inline-flex; align-items: center; gap: 8px; }
.btn-ghost, .btn-ghost-dark {
  background: #fff;
  color: var(--ink-soft);
  border-color: var(--line-strong);
}
.btn-ghost:hover, .btn-ghost-dark:hover { border-color: var(--accent); color: var(--accent); }
.btn-secondary {
  background: #fff;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-secondary:hover { background: var(--accent-soft); }
.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-lg { padding: 14px 28px; font-size: 15.5px; }
.btn-sm { padding: 8px 15px; font-size: 13.5px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav.scrolled { box-shadow: var(--shadow-xs); }
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 13px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand { display: inline-flex; align-items: center; gap: 11px; }
.wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.6px;
  color: var(--ink);
  line-height: 1.1;
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}
.wordmark-by {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-logo-img {
  width: 32px; height: 32px;
  display: block;
}
.nav-logo {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.4px;
}
.nav-name { font-weight: 700; font-size: 15px; letter-spacing: -0.02em; }
.nav-name-sub { color: var(--muted); font-weight: 500; margin-left: 8px; letter-spacing: 0; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px 4px;
  cursor: pointer;
}
.nav-burger span { width: 20px; height: 1.5px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
.nav-switch {
  display: inline-flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.nav-switch-item {
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
  color: var(--muted);
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-switch-item:hover { color: var(--ink); }
.nav-switch-item.active {
  background: var(--ink);
  color: #fff;
}
/* Angebote: Einzel-Karte zentriert */
.angebote-grid-eins { max-width: 440px; grid-template-columns: 1fr; }
.angebote-grid-zwei { max-width: 860px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) {
  .angebote-grid-zwei { grid-template-columns: 1fr; max-width: 440px; }
}

/* ---------- Typo-Bausteine ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.eyebrow .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  flex-shrink: 0;
}
.section { padding: 112px var(--gutter); }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Sektion-Head: Editorial-Grid — Titel links, Text rechts, oben 1px Linie */
.section-head {
  max-width: var(--container);
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  column-gap: 64px;
  row-gap: 20px;
  align-items: end;
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
  text-align: left;
}
.section-head .eyebrow { grid-column: 1 / -1; }
h1, h2, h3 { overflow-wrap: break-word; }

/* Haupttitel der Unterseiten — dieselbe Typografie wie die Abschnittstitel.
   Ohne diese Regel fällt h1 auf die Browser-Vorgabe zurück und lange
   Komposita wie «Architekturvisualisierung» sprengen die Handybreite. */
.section-head h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  hyphens: auto;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
}
.section-sub { font-size: 15.5px; color: var(--muted); max-width: 46ch; }

/* ---------- Rechtstexte (Datenschutz) ---------- */
.legal { max-width: 700px; margin: 0 auto; }
.legal h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 38px 0 10px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal code {
  font-size: 13.5px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 1px 5px;
}
.legal p, .legal li { font-size: 15px; line-height: 1.75; color: var(--ink-soft); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 14px 20px; }
.legal li { margin-bottom: 5px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--accent); }
.legal .legal-meta { font-size: 13.5px; color: var(--faint); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-top: 1px solid var(--line); padding: 22px 0; }
.faq-item:first-child { border-top: 0; padding-top: 0; }
.faq-item h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 8px;
}
.faq-item p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin: 0; }
.faq-item a { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--bg);
  padding: 152px var(--gutter) 104px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* Grosse Desktops: Hero kompakter — Platz besser nutzen */
@media (min-width: 1440px) {
  .hero { padding: 128px var(--gutter) 72px; }
  .hero-inner-center { max-width: 960px; }
  .hero h1 { font-size: clamp(48px, 4.4vw, 68px); margin: 16px 0 20px; }
  .hero-sub { font-size: 17.5px; margin-bottom: 28px; }
  .hero-cta { margin-bottom: 36px; }
  .hero-wege { gap: 20px; padding-top: 22px; }
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 20%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 20%, black 30%, transparent 100%);
}
.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}
/* Zentrierte Hero-Variante (ohne Visual) */
.hero-inner-center {
  grid-template-columns: 1fr;
  max-width: 880px;
  text-align: center;
}
.hero-inner-center .hero-sub { margin-left: auto; margin-right: auto; }
.hero-inner-center .hero-cta { justify-content: center; }
.hero-inner-center .hero-wege { justify-content: center; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 62px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 20px 0 24px;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: 16.5px;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-wege {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}
.hero-weg {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  background: var(--bg-soft-2);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero-weg-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--accent);
}
.hero-weg strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--ink);
}
.hero-weg-desc { font-size: 13px; color: var(--muted); line-height: 1.45; }

/* Hero-Visual: präzises 2×2-Raster */
.hero-visual { position: relative; min-height: 520px; }
.hero-visual-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 100%;
}
.hero-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft-2);
  box-shadow: var(--shadow-xs);
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-main { grid-row: 1 / 3; }
.hero-card-tag {
  position: absolute;
  left: 12px; bottom: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 5px 10px;
  border-radius: 6px;
  box-shadow: var(--shadow-xs);
}
.hero-badge {
  position: absolute;
  left: -12px; bottom: -12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
}
.hero-badge-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-badge strong { display: block; font-size: 12.5px; line-height: 1.3; letter-spacing: -0.01em; }
.hero-badge div > span { font-size: 11px; color: var(--muted); }

/* ---------- Showcase ---------- */
.tabs {
  grid-column: 1 / -1;
  display: flex;
  gap: 28px;
  margin-top: 8px;
  border-bottom: 1px solid var(--line);
  width: fit-content;
}
.tab {
  border: none;
  background: transparent;
  padding: 10px 2px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

.showcase-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
/* Schlanke Variante: weniger, aber grössere Karten — ruhiger für Architekten */
.showcase-grid-3 {
  max-width: 1060px;
  gap: 28px;
}
/* Zwei Karten: nur geprüfte Paare, kein Füllmaterial */
.showcase-grid-2 {
  max-width: 1060px;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* ---------- Projekt-Blöcke (Ihr Bild, drei Richtungen) ---------- */
.projekt {
  max-width: 1060px;
  margin: 0 auto 56px;
}
.projekt:last-child { margin-bottom: 0; }
.projekt-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.projekt-head h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.projekt-note { font-size: 13.5px; color: var(--muted); }
.projekt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.projekt-grid .show-media {
  aspect-ratio: 4 / 3;
}
.projekt-grid .show-card figcaption {
  padding: 13px 15px 15px;
}
.projekt-grid .show-card strong {
  font-size: 15px;
}
.projekt-grid .show-desc {
  font-size: 12.5px;
}
@media (max-width: 1024px) {
  .projekt-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .projekt-grid { grid-template-columns: 1fr; }
  .projekt-head { flex-direction: column; gap: 4px; }
}

/* ---------- Projekteinstieg (klickbare Karte) ---------- */
.projekt-entry {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: var(--bg);
}
.projekt-entry:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.projekt-entry:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.projekt-entry-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.projekt-entry-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.projekt-entry:hover .projekt-entry-media img { transform: scale(1.03); }
.projekt-entry-overlay {
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(10, 15, 24, 0.88) 0%, rgba(10, 15, 24, 0.45) 38%, transparent 72%);
}
.entry-badge { z-index: 4; }
.projekt-entry-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 28px;
  color: #fff;
  z-index: 3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.projekt-entry-body .show-type {
  display: inline-block;
  background: rgba(10, 15, 24, 0.72);
  backdrop-filter: blur(6px);
  padding: 4px 12px;
  border-radius: 999px;
  color: #fff;
  opacity: 1;
  font-size: 11px;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.projekt-entry-body h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 4px 0 6px;
}
.projekt-entry-body p { font-size: 14.5px; color: rgba(255,255,255,0.85); max-width: 420px; margin-bottom: 10px; }
.projekt-entry-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 9px 18px;
  border-radius: 999px;
  transition: background 0.15s;
}
.projekt-entry:hover .projekt-entry-cta { background: var(--accent-dark); }
.projekt-entry-cta .arrow { transition: transform 0.2s; }
.projekt-entry:hover .projekt-entry-cta .arrow { transform: translateX(3px); }
.projekt-entry-hint {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  background: rgba(13, 20, 32, 0.6);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

/* ---------- Projekt-Modal ---------- */
.projekt-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.projekt-modal-backdrop { position: absolute; inset: 0; background: rgba(10, 14, 22, 0.82); backdrop-filter: blur(8px); animation: fadeIn 0.25s ease; }
.projekt-modal-card {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius-lg);
  max-width: 1060px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalUp 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  padding: 40px 44px 36px;
}
.projekt-modal-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 5;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s;
}
.projekt-modal-close:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.projekt-modal-head { margin-bottom: 30px; padding-right: 40px; }
.projekt-modal-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: -1.2px;
  margin: 6px 0 12px;
}
.projekt-modal-sub { font-size: 15.5px; color: var(--muted); max-width: 640px; }
.projekt-modal-section { margin-bottom: 34px; }
.projekt-modal-section h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink);
  margin-bottom: 16px;
}
.projekt-modal-note { font-size: 12.5px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }

.projekt-grid-3 { gap: 20px; }

/* ---------- Varianten-Wähler (Option 1) ---------- */
.variant-waehler {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}
.variant-main {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
}
.variant-main-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #eef1f5; }
.variant-main-media img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}
.variant-main-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(13, 20, 32, 0.78);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  z-index: 2;
}
.variant-main-view {
  position: absolute;
  bottom: 14px; right: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  z-index: 2;
}
.variant-main-desc {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 15px 18px 17px;
}
.variant-main-desc strong { font-size: 17px; font-weight: 650; letter-spacing: -0.3px; }
.variant-main-desc span { font-size: 14px; color: var(--muted); }

.variant-side { display: flex; flex-direction: column; gap: 18px; }
.variant-group-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 9px;
}
.variant-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
/* Vier Richtungen in einer Gruppe (Dachterrasse · Blick 2 hat vier) */
.variant-thumbs.variant-thumbs-4 { grid-template-columns: repeat(4, 1fr); }
.variant-thumb {
  position: relative;
  border: 2px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
  aspect-ratio: 4 / 3;
}
.variant-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.variant-thumb span {
  position: absolute;
  top: 6px; left: 6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(13, 20, 32, 0.7);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.variant-thumb:hover { border-color: var(--accent); transform: translateY(-2px); }
.variant-thumb.active { border-color: var(--accent); box-shadow: 0 0 0 2.5px rgba(0, 101, 201, 0.2); }
.variant-thumb.active span { background: var(--accent); }

.variant-orig { border-top: 1px solid var(--line-soft); padding-top: 16px; }
.variant-orig-hint { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--faint); }
.variant-orig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.variant-orig-btn {
  position: relative;
  width: 100%;
  border: 2px dashed var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.15s;
  aspect-ratio: 4 / 3;
}
.variant-orig-btn:hover { border-color: var(--accent); }
.variant-orig-btn img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.9; }
.variant-orig-label {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 20, 32, 0.6);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 4px;
  opacity: 0;
  transition: opacity 0.2s;
}
.variant-orig-btn:hover .variant-orig-label { opacity: 1; }
@media (max-width: 640px) {
  .variant-orig-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .variant-waehler { grid-template-columns: 1fr; }
}
.projekt-modal-foot {
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.projekt-modal-foot p { font-size: 14px; color: var(--muted); max-width: 560px; }
.projekt-modal-foot .btn { margin-top: 0; }
@media (max-width: 900px) {
  .projekt-modal-card { padding: 28px 22px; }
}
@media (max-width: 640px) {
  .projekt-entry-body { padding: 18px 20px; }
  .projekt-entry-body h3 { font-size: 24px; }
}
.showcase-grid-3 .show-media {
  aspect-ratio: 4 / 3;
}
.showcase-grid-3 .show-card figcaption {
  padding: 14px 16px 16px;
}
.showcase-grid-3 .show-card strong {
  font-size: 15.5px;
}
.showcase-grid-3 .show-desc {
  font-size: 13px;
}

/* ---------- Leise Galerie (Materialstudien) ---------- */
.section-gallery { padding-top: 8px; }
.section-gallery .section-head { margin-bottom: 40px; }
.section-gallery .section-head h2 { font-size: clamp(26px, 3.4vw, 34px); }
.gallery-strip {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.strip-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.strip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.strip-card .show-media { aspect-ratio: 4 / 3; }
.strip-card figcaption {
  padding: 12px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.strip-card strong { font-size: 15px; font-weight: 600; letter-spacing: -0.2px; }
.strip-card .show-type { margin-bottom: 0; font-size: 10.5px; }
.show-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  animation: fadeUp 0.5s ease both;
}
.show-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.show-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft-2); position: relative; }
.show-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.show-card:hover .show-media img { transform: scale(1.03); }
.show-media-video .play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--ink);
  border: 1px solid rgba(19, 23, 29, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.show-card:hover .play-btn { transform: translate(-50%, -50%) scale(1.08); background: var(--accent); color: #fff; }
.show-duration {
  position: absolute;
  right: 10px; bottom: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-xs);
}
.show-card figcaption { padding: 16px 18px 20px; }
.show-type {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 5px;
  margin-bottom: 10px;
}
.show-type.video { color: var(--ink-soft); background: var(--bg-soft); border: 1px solid var(--line); }
.show-card strong { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 4px; }
.show-desc { font-size: 13.5px; color: var(--muted); }

/* ---------- Vorher/Nachher-Karten (Skizze → Render) ---------- */
.show-compare-media { position: relative; }
.show-compare-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.45s ease; }
.show-compare-media .compare-before { position: relative; opacity: 1; }
.show-compare-media .compare-after { opacity: 0; }
.show-card:hover .compare-before { opacity: 0; }
.show-card:hover .compare-after { opacity: 1; }
.compare-badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 3;
  background: rgba(10, 15, 24, 0.85);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 5px 11px;
  border-radius: 999px;
  pointer-events: none;
}
/* Auto-Wechsel auf Touch-Geräten: Skizze ↔ Rendering im Intervall */
.show-compare.auto-compare .compare-before { animation: autoCompare 4.5s ease-in-out infinite; }
.show-compare.auto-compare .compare-after { animation: autoCompareAfter 4.5s ease-in-out infinite; }
@keyframes autoCompare {
  0%, 8% { opacity: 1; }
  45%, 55% { opacity: 0; }
  95%, 100% { opacity: 1; }
}
@keyframes autoCompareAfter {
  0%, 8% { opacity: 0; }
  45%, 55% { opacity: 1; }
  95%, 100% { opacity: 0; }
}

/* Skizze bekommt einen leichten Papier-Ton-Hover-Hinweis */
.show-compare .show-media::after {
  content: "⟲ Skizze";
  position: absolute;
  bottom: 10px; left: 10px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  transition: opacity 0.3s;
  pointer-events: none;
}
.show-compare:hover .show-media::after { opacity: 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Workflow ---------- */
.steps {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

/* Nur wenn wirklich Pfeile zwischen den Karten stehen, bekommen sie eine eigene
   schmale Spalte. Sonst würden drei Karten in ein Fünf-Spalten-Raster fallen und
   eine davon in die schmale auto-Spalte gequetscht. */
.steps:has(.step-arrow) {
  grid-template-columns: 1fr auto 1fr auto 1fr;
}
.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Weisser Pfeil auf blauem Grund: vorher war der Kreis hellblau auf hellgrau
     und ging optisch unter. So ist er ein deutliches Verbindungselement. */
  color: #fff;
}
.step-arrow svg {
  width: 42px;
  height: 42px;
  padding: 10px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
}
.step-icon svg { width: 22px; height: 22px; }
.step {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  position: relative;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.step:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
/* Verbindungslinie: läuft auf halber Höhe durch die ganze Sektion. Sie liegt
   hinter den Karten und ist nur in den Lücken sichtbar — dort, wo die Pfeile
   sitzen. So liest sich die Sektion als Weg, nicht als drei Einzelkarten. */
.steps { position: relative; }
.steps::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: var(--accent-line);
  z-index: 0;
}
.step { z-index: 1; }
.step-arrow { z-index: 1; }

/* Grosse, halbtransparente Nummer als ruhiger Blickfang hinter dem Text.
   Sie trägt die Reihenfolge, ohne mit der Überschrift zu konkurrieren. */
.step::after {
  content: attr(data-num);
  position: absolute;
  top: 8px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 68px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--accent);
  opacity: 0.14;
  pointer-events: none;
}
.step-icon svg { width: 22px; height: 22px; }
.step h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; margin-bottom: 8px; }
.step p { font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.workflow-note {
  max-width: var(--container);
  margin: 40px auto 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
}
.workflow-note-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.workflow-note-icon svg { width: 18px; height: 18px; }
.workflow-note p { font-size: 13.5px; color: var(--muted); padding-top: 6px; }
.workflow-note strong { color: var(--ink); font-weight: 600; }

/* ---------- Studio ---------- */
.studio {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 20px;
  align-items: start;
}
.studio-input, .studio-output {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.studio-input-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.studio-input-head h3 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.api-status {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.angebot-badge-neu { background: #0a8a3c; }
.api-status.ok { color: var(--ok-text); background: var(--ok-bg); border-color: var(--ok-line); }
.api-status.bad { color: var(--warn-text); background: var(--warn-bg); border-color: var(--warn-line); }

/* Dropzone */
.dropzone {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft-2);
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: var(--accent-soft); }
.dz-icon {
  width: 40px; height: 40px;
  margin: 0 auto 10px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dz-icon svg { width: 20px; height: 20px; }
.dz-empty p { font-size: 14px; }
.dz-hint { font-size: 12px; color: var(--muted); margin-top: 3px; }
.dz-preview { position: relative; width: 100%; }
.dz-preview img { max-height: 240px; max-width: 100%; border-radius: var(--radius); margin: 0 auto; border: 1px solid var(--line); }
.dz-remove {
  position: absolute;
  top: 8px; right: 8px;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(19, 23, 29, 0.72);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.dz-remove:hover { background: var(--accent); }

/* Formularelemente */
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 18px 0 8px;
}
.field-label .optional { color: var(--muted); font-weight: 500; }
.preset-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.preset-pill {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.preset-pill:hover { border-color: var(--accent); color: var(--accent); }
.preset-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.preset-pill .pill-emoji { margin-right: 5px; }

textarea, input[type="text"], .select {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea:focus, input[type="text"]:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 101, 201, 0.1);
}
textarea { resize: vertical; }
.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23717985' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  cursor: pointer;
}
.studio-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Galerie */
.empty-state { text-align: center; padding: 64px 20px; color: var(--muted); }
.empty-icon {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--faint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.empty-icon svg { width: 26px; height: 26px; }
.empty-state p { font-size: 15px; }
.empty-state .hint { font-size: 13px; margin-top: 6px; color: var(--faint); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); border-color: var(--line-strong); }
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.card-body { padding: 8px 10px; display: flex; justify-content: flex-end; }
.card-actions { display: flex; gap: 6px; }
.card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 101, 201, 0.14); }
.card.selected::after {
  content: "✓ gewählt";
  position: absolute;
  top: 8px; left: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 999px;
}
.btn-mini {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.btn-mini:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* Video-Bereich */
.studio-video {
  max-width: var(--container);
  margin: 20px auto 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.hint-text { font-size: 12.5px; color: var(--muted); }
.video-controls {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 14px;
  align-items: end;
}
.video-controls .field-label { margin-top: 0; }
.video-result { margin-top: 16px; }
.video-result video { width: 100%; max-height: 460px; border-radius: var(--radius); background: #000; border: 1px solid var(--line); }
.video-meta { font-size: 13px; color: var(--muted); margin-top: 8px; }
.video-pending {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 18px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  color: var(--accent-dark);
  font-size: 14px;
}

/* Spinner — heller Kontext; im Primary-Button weiss */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(0, 101, 201, 0.22);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
.btn-primary .spinner {
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Technik ---------- */
.tech-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tech-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.tech-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.tech-grid-zwei { max-width: 760px; grid-template-columns: repeat(2, 1fr); }
.tech-logo {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.tech-logo svg { width: 22px; height: 22px; }
.tech-card h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 8px; }
.tech-card p { font-size: 13.5px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--bg-soft-2);
  padding: 72px 40px;
}
.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.cta p { font-size: 15.5px; color: var(--muted); margin-bottom: 32px; }
.cta .hero-cta { justify-content: center; margin-bottom: 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 56px var(--gutter) 28px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand { margin-bottom: 10px; }
.footer-logo-img {
  width: 34px; height: 34px;
  display: block;
}
.footer-by {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--dark-line);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}
.footer-by a { color: rgba(255, 255, 255, 0.75); }
.footer-by a:hover { color: #7cc0ff; }
.footer-cookie { margin-top: 6px; }
.footer-cookie a { color: rgba(255, 255, 255, 0.75); text-decoration: underline; }
.footer-cookie a:hover { color: #7cc0ff; }
.footer-dr-logo {
  height: 22px;
  width: auto;
  display: block;
}
.footer-tag { font-size: 13px; color: var(--muted); }
.footer-tag-kontakt { margin-top: 10px; line-height: 1.7; }
.footer-tag-kontakt a { color: rgba(255,255,255,0.7); }
.footer-tag-kontakt a:hover { color: #7cc0ff; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13.5px; color: var(--ink-soft); transition: color 0.15s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--container);
  margin: 22px auto 0;
  font-size: 12px;
  color: var(--faint);
}

/* ---------- Video-Modal ---------- */
.video-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(19, 23, 29, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fadeIn 0.25s ease; }
.video-modal-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 860px;
  width: 100%;
  box-shadow: var(--shadow-md);
  animation: modalUp 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
.video-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 3;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.video-modal-close:hover { background: var(--accent); color: #fff; }
.video-modal-media { position: relative; aspect-ratio: 16 / 9; background: var(--bg-soft-2); }
.video-modal-media img { width: 100%; height: 100%; object-fit: cover; }
.video-modal-overlay {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(19, 23, 29, 0.18);
}
.video-modal-note {
  background: rgba(19, 23, 29, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
}
.video-modal-hint { padding: 13px 20px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalUp { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ---------- Error ---------- */
.error-msg {
  margin-top: 12px;
  font-size: 13px;
  color: var(--err-text);
  background: var(--err-bg);
  border: 1px solid var(--err-line);
  padding: 10px 14px;
  border-radius: var(--radius);
}

/* ---------- Video-Demo ---------- */
.section-video-demo { padding: 24px 24px 96px; }
.video-demo-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
}
.video-demo-media video {
  width: 100%;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.video-demo-text h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.video-demo-text p { font-size: 16px; color: var(--muted); margin-bottom: 24px; }
.video-demo-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.video-demo-list li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--ink-soft); }
.video-demo-list span { color: var(--accent); font-weight: 700; }
@media (max-width: 900px) {
  .video-demo-inner { grid-template-columns: 1fr; gap: 28px; }
}
.video-demo-btn { margin-top: 22px; width: fit-content; }
.video-demo-btn .arrow { transition: transform 0.2s; }
.video-demo-btn:hover .arrow { transform: translateX(3px); }

/* ---------- Video-Galerie-Seite ---------- */
.page-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 120px 24px 60px;
}
.page-hero-inner { max-width: var(--container); margin: 0 auto; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 700;
  letter-spacing: -1.4px;
  line-height: 1.08;
  margin-bottom: 14px;
}
.page-hero-sub { font-size: 16.5px; color: var(--muted); max-width: 560px; }
.page-section { padding-top: 72px; }

.showreel {
  max-width: var(--container);
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: center;
}
.showreel-media { position: relative; }
.showreel-media video {
  width: 100%;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.showreel-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(13, 20, 32, 0.75);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.showreel-text h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 14px;
}
.showreel-text p { font-size: 15.5px; color: var(--muted); margin-bottom: 20px; }
.videos-head { margin-bottom: 36px; }
.video-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.video-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  display: block;
}
.video-card figcaption { padding: 15px 18px 17px; }
.video-card strong { display: block; font-size: 16px; font-weight: 650; letter-spacing: -0.2px; margin-bottom: 3px; }
@media (max-width: 900px) {
  .showreel { grid-template-columns: 1fr; gap: 28px; }
  .video-grid { grid-template-columns: 1fr; }
}

/* ---------- Demo-Buchung ---------- */
.demo-card {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow-sm);
}
.demo-card-text h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 18px;
}
.demo-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.demo-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.demo-list span { color: var(--accent); font-weight: 700; }
.demo-card-action { display: flex; flex-direction: column; gap: 12px; }
.demo-card-action .btn { width: 100%; }
.demo-hint { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 4px; }
@media (max-width: 760px) {
  .demo-card { grid-template-columns: 1fr; padding: 30px 24px; gap: 26px; }
}

/* ---------- Kontakt ---------- */
.kontakt-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.kontakt-info h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 18px;
}
.kontakt-liste { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.kontakt-liste li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--ink-soft); }
.kontakt-liste a { color: var(--accent); font-weight: 500; }
.kontakt-liste a:hover { text-decoration: underline; }
.kontakt-ico { width: 20px; text-align: center; flex-shrink: 0; }
.kontakt-hinweis { font-size: 13.5px; color: var(--muted); }
.kontakt-hinweis a { color: var(--accent); }

.kontakt-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { margin-bottom: 14px; }
.form-field .field-label { margin-top: 0; }
.kontakt-form .select, .kontakt-form input, .kontakt-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 14.5px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.kontakt-form input:focus, .kontakt-form textarea:focus, .kontakt-form .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3.5px rgba(0, 101, 201, 0.12);
}
.form-hinweis { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 10px; }
@media (max-width: 900px) {
  .kontakt-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Angebote ---------- */
.angebote-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}
.angebot {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 26px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
.angebot:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.angebot-featured {
  border-color: var(--accent);
  border-width: 1.5px;
  box-shadow: 0 0 0 1px var(--accent), 0 8px 28px rgba(0, 101, 201, 0.10);
}
.angebot-featured:hover {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 1px var(--accent-dark), 0 12px 32px rgba(0, 101, 201, 0.14);
}
.angebot-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.angebot-badge-neu { background: #e5f4ea; color: #1c7c3f; }
.angebot-featured .angebot-badge { background: var(--accent); color: #fff; }
.angebot h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  padding-right: 60px;
}
.angebot-desc { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 22px; }
.angebot-preis {
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.preis-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -1.4px;
  color: var(--ink);
  line-height: 1;
}
.preis-label { font-size: 13px; color: var(--muted); }
.angebot-preis-zusatz {
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
  margin-bottom: 20px;
}
.angebot-preis-zusatz .preis-num { font-size: 26px; }
.angebot-liste {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
  flex-grow: 1;
  padding: 0;
}
.angebot-liste li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.angebot-liste .haken {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
}
.angebot-liste .haken svg { width: 9px; height: 9px; stroke: var(--accent); }
.angebot-featured .angebot-liste .haken { background: var(--accent); }
.angebot-featured .angebot-liste .haken svg { stroke: #fff; }
.angebot-liste strong { font-weight: 600; color: var(--ink); }
.angebot .btn { margin-top: auto; }

.angebote-hinweis {
  max-width: 720px;
  margin: 26px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .angebote-grid { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
}
@media (max-width: 640px) {
  .angebote-grid { grid-template-columns: 1fr; max-width: 440px; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { min-height: 0; max-width: 620px; margin: 0 auto; width: 100%; }
  .hero-visual-grid { height: auto; grid-template-rows: 1fr 1fr; }
  .hero-card-main, .hero-card-sm { min-height: 220px; }
  .steps,
  .steps:has(.step-arrow) { grid-template-columns: 1fr; max-width: 640px; }
  /* Linie senkrecht stellen, damit sie auch gestapelt als Weg lesbar bleibt */
  .steps::before { left: 50%; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .step-arrow { padding: 2px 0; }
  .step-arrow svg { transform: rotate(90deg); width: 38px; height: 38px; padding: 9px; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  .studio { grid-template-columns: 1fr; max-width: 720px; }
  .video-controls { grid-template-columns: 1fr; align-items: stretch; }
  .video-controls .video-prompt-wrap { grid-row: 2; }
  .video-controls .btn-secondary { grid-row: 3; justify-self: start; }
}
@media (max-width: 760px) {
  .section { padding: 72px 16px; }
  .hero { padding: 100px 16px 56px; }
  .hero h1 { font-size: clamp(28px, 7.5vw, 38px); letter-spacing: -0.03em; margin: 14px 0 16px; }
  .hero-sub { font-size: 15.5px; margin-bottom: 24px; }
  .hero-cta { margin-bottom: 30px; }
  .hero-cta .btn { width: 100%; }
  .hero-wege { grid-template-columns: 1fr; padding-top: 20px; gap: 12px; }
  .hero-weg { padding: 15px 16px; }
  .section-head { grid-template-columns: 1fr; column-gap: 0; }
  .section-head h1,
  .section-head h2 { grid-column: 1; }
  .section-head h1 { font-size: clamp(24px, 6.6vw, 32px); }
  .section-sub { grid-column: 1; }
  .hero-badge { position: static; margin-top: 20px; width: fit-content; }
  .showcase-grid { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .studio-options { grid-template-columns: 1fr; }
  .cta-inner { padding: 56px 24px; }

  /* Mobile-Nav: Burger + Panel */
  .nav-switch { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    box-shadow: var(--shadow-sm);
  }
  .nav-links a { padding: 12px 8px; border-top: 1px solid var(--line-soft); font-size: 15px; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-toggle:checked ~ .nav-actions .nav-burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-actions .nav-burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .nav-burger { display: flex; }
  .nav-name-sub { display: none; }
}


/* «Alle Beispiele»-Button unter dem Entwurf-Grid */
.showcase-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* Plan-/Modell-Eingaben vollständig zeigen statt beschneiden */
.show-fit-contain .compare-before {
  object-fit: contain;
  background: #ffffff;
}

/* Varianten-Sektion kompakter an die vorherige anbinden */
#galerie { padding-top: 24px; }

/* Autoplay-Showreel: Ton-Knopf über dem Video */
.video-demo-media { position: relative; }
.sound-toggle {
  position: absolute; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  font-family: var(--font-sans); font-size: 13px; font-weight: 500; line-height: 1;
  color: #ffffff; background: rgba(19, 23, 29, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  cursor: pointer; transition: background 0.16s ease;
}
.sound-toggle:hover { background: rgba(19, 23, 29, 0.9); }
.sound-toggle svg { width: 15px; height: 15px; flex: 0 0 auto; }
.sound-toggle .ico-on { display: none; }
.sound-toggle[aria-pressed="true"] .ico-off { display: none; }
.sound-toggle[aria-pressed="true"] .ico-on { display: inline-block; }

/* ---------- Bewegungsreduktion respektieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- FAQ als Aufklapper ---------- */
details.faq-item summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 36px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::marker { content: ""; }
details.faq-item summary h3 { display: inline; margin: 0; }
details.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
  font-weight: 400;
}
details.faq-item[open] summary::after { content: "–"; }
details.faq-item[open] summary h3 { color: var(--accent); }
details.faq-item > p { margin-top: 10px; }

/* ---------- Brotkrumen ---------- */
.breadcrumb {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--faint);
  margin: 0 0 4px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .crumb-here { color: var(--ink-soft); }
.breadcrumb .crumb-sep { color: var(--faint); }
