/* ============================================================
   VS-PROMOTEC — Design System
   Konzept: Die Schiene als Strukturprinzip. Gerade Linien,
   präzise Biegeradien, eloxiertes Aluminium, ein Markenblau.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Farben — aus dem echten Logo extrahiert (#023079) + Werkstatt-Neutrals */
  --ink: #14161a;
  --ink-soft: #3a3d44;
  --paper: #faf9f6;
  --paper-dim: #f0eee9;
  --line: #d8d5cd;
  --line-strong: #b8b4aa;
  --steel: #8b8d92;
  --blue: #023079;
  --blue-bright: #0a4fc4;
  --blue-pale: #e8eefb;
  --white: #ffffff;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max: 1240px;
  --edge: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--blue); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

/* ============================================================
   Schienen-Motiv: die wiederkehrende horizontale Linie mit
   "Halterungs"-Clips, abgeleitet aus dem echten Profilbild.
   ============================================================ */

.rail-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.rail-rule::before,
.rail-rule::after {
  content: "";
  height: 2px;
  background: var(--line-strong);
  flex: 1;
}

.rail-clip {
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--blue);
  flex-shrink: 0;
}

.rail-divider {
  position: relative;
  height: 2px;
  background: var(--line);
  margin: 0;
}

.rail-divider .clip {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  background: var(--paper);
  border: 2px solid var(--line-strong);
  border-radius: 1px;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* Eyebrow label — encodes "this is a system spec", like a profile code */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--blue);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 2px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-bright); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--white); }

.btn-on-dark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-on-dark:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ============================================================
   Header / Nav
   ============================================================ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img { height: 26px; width: auto; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.18s ease;
}
.main-nav a:hover { color: var(--ink); }

.main-nav a.active { color: var(--ink); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--blue);
}

.nav-actions { display: flex; align-items: center; gap: 18px; }

.nav-cta {
  display: none;
}
@media (min-width: 860px) {
  .nav-cta { display: inline-flex; }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { display: block; }

@media (max-width: 859px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 76px; left: 0; right: 0; bottom: 0;
  background: var(--paper);
  z-index: 99;
  padding: 24px var(--edge) 40px;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}
.mobile-nav .btn { margin-top: 24px; width: 100%; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 76px;
  overflow: hidden;
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20,22,26,0.94) 0%, rgba(20,22,26,0.75) 38%, rgba(20,22,26,0.42) 65%, rgba(20,22,26,0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9fb8e8;
  margin-bottom: 28px;
}
.hero-eyebrow::before { content: ""; width: 18px; height: 2px; background: #9fb8e8; }

.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  color: var(--white);
  max-width: 16ch;
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: normal;
  color: #6fa0ff;
}

.hero-lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  max-width: 42ch;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stat {
  border-left: 2px solid rgba(255,255,255,0.25);
  padding-left: 16px;
}

.hero-stat .num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.hero-stat .label {
  display: block;
  font-size: 12.5px;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* ============================================================
   Signature element: drawn rail line, bends like the real profile
   ============================================================ */

.signature-rail {
  width: 100%;
  display: block;
  overflow: visible;
}

.signature-rail path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.signature-rail .clip-dot {
  fill: var(--blue);
}

.section-divider {
  position: relative;
  height: 64px;
  overflow: hidden;
}

/* ============================================================
   Section scaffolding
   ============================================================ */

.section {
  padding: 110px 0;
  position: relative;
}

.section-tight { padding: 80px 0; }

.section-dark {
  background: var(--ink);
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}

.section-head .lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-top: 18px;
  max-width: 52ch;
}

.section-dark .section-head .lead { color: rgba(255,255,255,0.7); }

/* ============================================================
   Über uns
   ============================================================ */

.about-image {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }

.about-text p {
  color: var(--ink-soft);
  margin-bottom: 18px;
  font-size: 1.02rem;
}

.about-text p:last-of-type { margin-bottom: 0; }

.fact-row {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.fact {
  border-left: 2px solid var(--blue);
  padding-left: 14px;
}
.fact .num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--ink);
}
.fact .label {
  font-size: 12.5px;
  color: var(--steel);
  letter-spacing: 0.03em;
}

/* ============================================================
   Leistungen — numbered like a real spec sheet (process order)
   ============================================================ */

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (max-width: 760px) {
  .service-list { grid-template-columns: 1fr; }
}

.service-item {
  background: var(--paper);
  padding: 40px;
  position: relative;
}

.service-step {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  display: block;
}

.service-item h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.service-item p {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* ============================================================
   Profile (Konfigurator-Auszug)
   ============================================================ */

.profile-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (max-width: 860px) {
  .profile-strip { grid-template-columns: 1fr; }
}

.profile-tile {
  background: var(--paper);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.profile-tile .render {
  background: var(--white);
  border: 1px solid var(--line);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  overflow: hidden;
}
.profile-tile .render img { width: 88%; }

.profile-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.profile-tile p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
}

.profile-link {
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.profile-link:hover { gap: 10px; }
.profile-link svg { transition: transform 0.18s ease; }

/* ============================================================
   Vorher/Nachher slider
   ============================================================ */

.compare {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 2px;
  cursor: ew-resize;
  user-select: none;
}
.compare .frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.compare .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.compare .after-wrap {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
}
.compare .after-wrap .frame {
  width: var(--compare-w, 1372px);
}

.compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--white);
  transform: translateX(-1px);
}
.compare-handle .grip {
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  background: var(--white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.compare-tag {
  position: absolute;
  top: 18px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(20,22,26,0.75);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 2px;
}
.compare-tag.before { left: 18px; }
.compare-tag.after { right: 18px; }

/* ============================================================
   Referenzen / Gallery preview
   ============================================================ */

.ref-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 6px;
}

.ref-grid a {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink);
}
.ref-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ref-grid a:hover img { transform: scale(1.06); }

.ref-grid a.big { grid-column: span 2; grid-row: span 2; }

@media (max-width: 760px) {
  .ref-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 160px); }
  .ref-grid a.big { grid-column: span 2; grid-row: span 1; }
}

/* ============================================================
   Kontakt
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.14);
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-main {
  padding: 56px;
  border-right: 1px solid rgba(255,255,255,0.14);
}
@media (max-width: 860px) {
  .contact-main { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.14); }
}

.contact-main h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 16px; }
.contact-main p { color: rgba(255,255,255,0.68); max-width: 40ch; margin-bottom: 32px; }

.contact-people {
  display: flex;
  flex-direction: column;
}

.contact-person {
  padding: 32px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.contact-person:last-child { border-bottom: none; }

.contact-person .role {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7fa6f0;
  margin-bottom: 8px;
  display: block;
}
.contact-person .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--white);
  display: block;
  margin-bottom: 10px;
}
.contact-person a {
  display: block;
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  font-size: 14.5px;
  margin-top: 4px;
}
.contact-person a:hover { color: var(--white); }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 72px 0 48px;
}

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; row-gap: 48px; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-brand-claim {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
  margin-top: 16px;
  margin-bottom: 24px;
}

.footer-social { display: flex; gap: 10px; }
.footer-col .footer-social a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-bottom: 0;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.footer-social a:hover { border-color: var(--white); color: var(--white); }
.footer-social svg { display: block; flex-shrink: 0; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}

.footer-col a, .footer-col p {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-bottom: 12px;
}
.footer-col a:hover { color: var(--white); }

.footer-col .name {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   Reveal-on-scroll
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   Utility
   ============================================================ */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* Manual line-breaks in headlines: a block-level span on desktop forces
   the break; on narrow screens it becomes inline so text wraps naturally. */
.lb {
  display: block;
}
@media (max-width: 700px) {
  .lb {
    display: inline;
  }
}

@media (max-width: 640px) {
  .hero-stats { gap: 28px; }
  .contact-main, .contact-person { padding: 32px 24px; }
}

/* ============================================================
   Galerie-Seite
   ============================================================ */

.page-hero {
  padding: 150px 0 60px;
  background: var(--ink);
  color: var(--white);
}
.page-hero .eyebrow { color: #7fa6f0; }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 16px; }
.page-hero p.lead { color: rgba(255,255,255,0.7); max-width: 56ch; font-size: 1.05rem; }

.gallery-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 2px;
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.18s ease;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 6px 0 100px;
}
@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

.gallery-item {
  position: relative;
  margin: 0;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--paper-dim);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item.is-hidden { display: none; }

.gallery-item-tag {
  position: absolute;
  bottom: 10px; left: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(20,22,26,0.78);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 2px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,11,13,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transform: translateY(-50%);
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-counter {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .lightbox { padding: 16px; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ============================================================
   Rechtliche Seiten (Impressum, Datenschutz, AGB)
   ============================================================ */

.legal-content {
  max-width: 760px;
  padding: 70px 0 120px;
}

.legal-notice {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-pale);
  padding: 6px 12px;
  border-radius: 2px;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 44px;
  margin-bottom: 14px;
}
.legal-content h2:first-of-type { margin-top: 36px; }

.legal-content p {
  color: var(--ink-soft);
  margin-bottom: 4px;
  line-height: 1.7;
}

.legal-content a { color: var(--blue); text-decoration: underline; }

/* ============================================================
   Profil-Konfigurator
   ============================================================ */

.configurator {
  border: 1px solid var(--line);
  background: var(--paper);
}

.config-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) {
  .config-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .config-tab { flex-shrink: 0; }
}

.config-tab {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper-dim);
  border: none;
  border-right: 1px solid var(--line);
  padding: 16px 22px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.config-tab:hover { color: var(--ink); }
.config-tab.active {
  background: var(--paper);
  color: var(--ink);
  position: relative;
}
.config-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--blue);
}

.config-body {
  display: grid;
  grid-template-columns: 280px 1fr;
}
@media (max-width: 760px) {
  .config-body { grid-template-columns: 1fr; }
}

.config-list {
  border-right: 1px solid var(--line);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
@media (max-width: 760px) {
  .config-list {
    border-right: none;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
  }
}

.config-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  font-family: var(--font-body);
  background: transparent;
  border: none;
  border-radius: 2px;
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.16s ease;
  white-space: nowrap;
}
.config-item:hover { background: var(--paper-dim); }
.config-item.active { background: var(--blue-pale); }
.config-item .code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
}
.config-item.active .code { color: var(--blue); }
.config-item .desc {
  font-size: 12px;
  color: var(--steel);
  white-space: normal;
}

.config-stage {
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.config-stage .render {
  background: var(--white);
  border: 1px solid var(--line);
  width: 100%;
  max-width: 460px;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  overflow: hidden;
}
.config-stage .render img {
  width: 84%;
  transition: opacity 0.2s ease;
}

.config-stage .code {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.config-stage .desc {
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.config-meta {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--steel);
  flex-wrap: wrap;
  justify-content: center;
}
.config-meta strong { color: var(--ink-soft); font-weight: 600; }

/* ============================================================
   Markenfilm (Tag/Nacht-Loop)
   ============================================================ */

.brandfilm {
  background: var(--ink);
  padding: 90px 0;
}

.brandfilm-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .brandfilm-grid { grid-template-columns: 1fr; gap: 32px; }
}

.brandfilm-text .eyebrow { color: #7fa6f0; }
.brandfilm-text h2 { color: var(--white); margin-bottom: 16px; }
.brandfilm-text p { color: rgba(255,255,255,0.68); max-width: 42ch; }

.brandfilm-video {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  aspect-ratio: 3/2;
  background: #000;
}
.brandfilm-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
