:root {
  --paper: #f6f1e7;
  --paper-2: #efe7d7;
  --ink: #1c1a17;
  --ink-soft: #5a5247;
  --line: #d9cfba;
  --orange: #e87722;
  --orange-dark: #c9621a;
  --yellow: #f2b705;
  --wood: #a9763f;
  --wood-light: #cf9b63;
  --metal: #2a2825;
  --metal-dark: #15140f;
  --shadow: 0 18px 40px -22px rgba(28, 26, 23, 0.45);
  --radius: 14px;
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-mark, .hero-logo, .footer-brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin: 0; }
h3 { font-size: 1.2rem; margin: 0 0 0.4rem; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }

.brand-24 { color: var(--orange); }

.eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.7rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(232, 119, 34, 0.8);
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(246, 241, 231, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 42px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.8rem); }
.site-nav a { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.site-nav a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--orange); }

/* ===== Hero (Vollbreite) ===== */
.hero { width: 100%; margin: 0; padding: 0; }
.hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;       /* exakt wie Video & Foto -> Video komplett sichtbar, kein Beschnitt, keine Balken */
  overflow: hidden;
  background: #0a0908;
  display: flex;
  align-items: center;        /* Text mittig vor dem Container */
  justify-content: center;
  text-align: center;
}
.hero-media { position: absolute; inset: 0; z-index: 1; }
.hero-video, .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;     /* Bühne ist 16:9 wie das Video -> füllt randlos UND ohne Beschnitt */
  object-position: center;
}
.hero-photo {
  z-index: 2;
  transition: opacity 0.6s ease;
}
/* Während das Aufbau-Video läuft, ist das Standbild ausgeblendet */
.hero-stage.is-playing .hero-photo { opacity: 0; }
/* Abdunkelung hinter der Schrift – erscheint zusammen mit dem Text (während des Aufbaus aus) */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(ellipse 78% 80% at 50% 50%, rgba(10, 9, 8, 0.6) 0%, rgba(10, 9, 8, 0.34) 46%, rgba(10, 9, 8, 0.06) 100%);
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-stage.text-in .hero-scrim { opacity: 1; }
.hero-content {
  position: relative;
  z-index: 4;
  width: 100%;
  color: #fff;
  opacity: 0;                 /* bleibt aus, bis der Aufbau fertig ist -> dann eingeblendet */
}
.hero-content-in {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 3.4rem);
}
.hero-content h1 { color: #fff; text-shadow: 0 2px 22px rgba(0, 0, 0, 0.7); }
.hero-content .lead { font-size: 1.12rem; color: rgba(255, 255, 255, 0.92); max-width: 34rem; margin: 0 auto; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.hero-content .eyebrow-light { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6); }
.eyebrow-light { color: var(--orange); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 1.6rem; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper-2); }

/* Auf schmalen Screens: Video als 16:9-Block oben, Text darunter (kein Overlay -> nichts wird abgeschnitten) */
@media (max-width: 680px) {
  .hero-stage { aspect-ratio: auto; display: block; }
  .hero-media { position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 9; }
  .hero-scrim { display: none; }
  .hero-content { padding: 0.6rem 0 1.4rem; }
  .hero-content h1, .hero-content .lead, .hero-content .eyebrow-light { text-shadow: none; }
}

.hero-replay {
  position: absolute;
  z-index: 5;
  right: clamp(0.8rem, 2vw, 1.4rem);
  top: clamp(0.8rem, 2vw, 1.4rem);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: rgba(10, 9, 8, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease, background 0.15s ease;
}
.hero-stage:hover .hero-replay { opacity: 1; }
.hero-replay:hover { background: rgba(10, 9, 8, 0.7); }

/* Headline mittig vor dem Container einblenden – ausgelöst, wenn der Aufbau fertig ist */
.hero-stage.text-in .hero-content {
  opacity: 1;
  animation: heroReveal 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(22px) scale(0.965); filter: blur(5px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stage.text-in .hero-content { animation: none; }
  .hero-stage.text-in .hero-scrim { transition: none; }
  .hero-video { display: none; }
}

/* ===== Galerie ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}
.g-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.g-item:hover img { transform: scale(1.04); }
.g-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 1rem 0.85rem;
  font-size: 0.86rem;
  color: #fff;
  background: linear-gradient(to top, rgba(10, 9, 8, 0.9), rgba(10, 9, 8, 0));
}
.gallery-grid .g-item:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.gallery-grid .g-item:nth-child(2) { grid-column: 2; grid-row: 1; }
.gallery-grid .g-item:nth-child(3) { grid-column: 3 / span 2; grid-row: 1; }
.gallery-grid .g-item:nth-child(4) { grid-column: 2 / span 2; grid-row: 2; }
.gallery-grid .g-item:nth-child(5) { grid-column: 4; grid-row: 2; }

/* ===== Sections ===== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 4vw, 2.5rem);
}
.section-head { max-width: 38rem; margin-bottom: 2.4rem; }
.section-lead { color: var(--ink-soft); font-size: 1.05rem; margin-top: 0.7rem; }

/* ===== Konzept ===== */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}
.concept-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.concept-card h3 { color: var(--ink); }
.concept-card p { color: var(--ink-soft); margin: 0; font-size: 0.96rem; }
.concept-card.card-highlight {
  border-color: var(--orange);
  border-top: 3px solid var(--orange);
  background: linear-gradient(180deg, #fff, #fff6ec);
}

/* ===== Umsatz-Band ===== */
.revenue-band {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(2.6rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem);
}
.revenue-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.6rem, 5vw, 4rem);
  align-items: center;
}
.revenue-figure { border-right: 1px solid rgba(255, 255, 255, 0.15); padding-right: clamp(1.6rem, 5vw, 4rem); }
.revenue-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.5rem;
}
.revenue-number {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1;
  color: var(--orange);
}
.revenue-unit { display: block; margin-top: 0.6rem; color: rgba(255, 255, 255, 0.82); font-size: 1.02rem; }
.revenue-text p { color: rgba(255, 255, 255, 0.88); font-size: 1.08rem; }
.disclaimer { font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); margin-bottom: 0; }

/* ===== Finanzierung ===== */
.finance-note {
  margin: 1.6rem 0 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
}
.finance-note strong { color: var(--ink); }

/* ===== Konfigurator ===== */
.config-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.config-preview {
  position: sticky;
  top: 90px;
  background: linear-gradient(160deg, #fff, var(--paper-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.preview-stage { width: 100%; }
.preview-stage svg { width: 100%; height: auto; display: block; }
.preview-note { font-size: 0.8rem; color: var(--ink-soft); margin: 1rem 0 0; text-align: center; }

.config-options { display: flex; flex-direction: column; gap: 1.6rem; }
.opt-group { border: none; padding: 0; margin: 0; }
.opt-group legend {
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.opt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.opt { cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  height: 100%;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.opt:hover .opt-card { border-color: var(--metal-dark); }
.opt input:checked + .opt-card {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 119, 34, 0.14);
}
.opt input:focus-visible + .opt-card { outline: 2px solid var(--ink); outline-offset: 2px; }
.opt-title { font-weight: 600; font-size: 0.98rem; }
.opt-desc { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.4; }

/* ===== Zusammenfassung ===== */
.config-summary {
  margin-top: 2.4rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 1.8rem clamp(1.4rem, 3vw, 2.2rem);
  display: grid;
  gap: 1.2rem;
  align-items: center;
  grid-template-columns: 1fr auto;
}
.config-summary h3 { color: #fff; grid-column: 1 / -1; margin: 0; }
.summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.summary-list li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
}
.summary-list li strong { color: var(--yellow); font-weight: 600; }

/* ===== Ablauf ===== */
.steps-list {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}
.steps-list li {
  position: relative;
  padding-top: 1.6rem;
  border-top: 3px solid var(--orange);
}
.steps-list h3 { color: var(--ink); }
.steps-list p { color: var(--ink-soft); margin: 0; }

/* ===== Anfrage ===== */
.request-card {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.6rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}
.request-intro p { color: var(--ink-soft); }
.request-config {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.request-config span {
  font-size: 0.85rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}
.request-config span strong { color: var(--orange); }

.request-form { display: flex; flex-direction: column; gap: 0.9rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field span { font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); }
.field input, .field textarea {
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 119, 34, 0.12);
}
.form-consent { font-size: 0.82rem; line-height: 1.5; color: var(--ink-soft); margin: 0.2rem 0 0; }
.form-consent a { color: var(--orange); }
.form-consent a:hover { text-decoration: underline; }
.form-hint { font-size: 0.9rem; margin: 0.4rem 0 0; min-height: 1.2rem; }
.form-hint.ok { color: #2e7d32; }
.form-hint.err { color: var(--orange); }

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 3rem 1rem 2.5rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}
.footer-logo { height: 46px; width: auto; margin: 0 auto 0.6rem; display: block; }
.site-footer p { color: var(--ink-soft); margin: 0.4rem 0 0; }
.footer-company { font-size: 0.9rem; line-height: 1.7; margin-top: 1rem; }
.footer-company strong { color: var(--ink); }
.footer-company a { color: var(--orange); }
.footer-company a:hover { text-decoration: underline; }
.footer-links { display: flex; justify-content: center; gap: 1.4rem; margin-top: 1rem; }
.footer-links a { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }
.footer-links a:hover { color: var(--orange); }
.footer-meta { font-size: 0.82rem; }

/* ===== Rechtstexte (Impressum / Datenschutz) ===== */
.legal {
  max-width: 50rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem) 3rem;
}
.legal-back { display: inline-block; font-size: 0.9rem; font-weight: 500; color: var(--orange); margin-bottom: 1.2rem; }
.legal-back:hover { text-decoration: underline; }
.legal h1 { margin-bottom: 1.8rem; }
.legal section { margin-bottom: 1.8rem; }
.legal h2 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.legal p { color: var(--ink-soft); margin: 0 0 0.6rem; }
.legal a { color: var(--orange); }
.legal a:hover { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .config-layout { grid-template-columns: 1fr; }
  .config-preview { position: static; }
  .request-card { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-grid .g-item:nth-child(n) { grid-column: auto; grid-row: auto; }
  .gallery-grid .g-item:nth-child(1) { grid-column: 1 / span 2; grid-row: auto; }
  .revenue-inner { grid-template-columns: 1fr; gap: 1.2rem; }
  .revenue-figure { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.15); padding-right: 0; padding-bottom: 1.2rem; }
}
@media (max-width: 540px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .opt-row { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .config-summary { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .g-item:nth-child(1) { grid-column: 1; }
}
