:root {
  --tinte: #0b1220;
  --tinte-weich: #16213a;
  --papier: #ffffff;
  --papier-warm: #f7f6f2;
  --linie: #e3e6ee;
  --text: #16203a;
  --text-leise: #5c6885;
  --primaer: #1836b2;
  --akzent: #f5a623;
  --gruen: #0f766e;
  --gelb: #a16207;
  --radius: 18px;
  --schatten: 0 30px 70px -40px rgba(16, 24, 48, 0.55);

  /* Ein fester Takt für Abstände - vorher hatte jeder Abschnitt denselben Wert,
     dadurch gab es keinen Rhythmus. */
  --takt-s: 24px;
  --takt-m: 48px;
  --takt-l: 96px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--papier);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.13; letter-spacing: -0.024em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); font-weight: 850; max-width: 17ch; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }

.leise { color: var(--text-leise); font-weight: 500; }

:focus-visible {
  outline: 3px solid var(--primaer);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ------------------------------------------------------------------ Kopf */

.kopf {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px clamp(16px, 5vw, 64px);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--linie);
}
.wortmarke {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; text-decoration: none; font-size: 1.05rem;
  white-space: nowrap;
}
.wortmarke .punkt {
  width: 12px; height: 12px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--primaer), var(--akzent));
}
.kopf nav { display: flex; align-items: center; gap: 18px; font-weight: 600; font-size: 0.95rem; }
.kopf nav a { text-decoration: none; opacity: 0.84; padding: 11px 4px; }
.kopf nav a:hover { opacity: 1; }
.kopf .knopf { padding: 11px 22px; font-size: 0.92rem; }
.nur-klein { display: none; }

/* ------------------------------------------------------------------ Hero */

.hero {
  padding: clamp(48px, 7vw, 104px) clamp(16px, 5vw, 64px) clamp(44px, 6vw, 88px);
  background:
    radial-gradient(1100px 480px at 12% -10%, rgba(24,54,178,0.12), transparent 62%),
    radial-gradient(900px 420px at 92% 8%, rgba(245,166,35,0.13), transparent 60%),
    var(--papier-warm);
  border-bottom: 1px solid var(--linie);
}
.hero .innen {
  max-width: 1220px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 68px); align-items: center;
}
.hero .schild {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(24,54,178,0.09); color: var(--primaer);
  font-weight: 700; font-size: 0.9rem; margin-bottom: 22px;
}
.hero p.gross {
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  max-width: 34em;
  color: var(--text-leise);
}

/* Bewegtbild im Kopfbereich: Ein Videoanbieter, dessen Startseite kein Video
   zeigt, widerlegt sein eigenes Versprechen. */
.hero-video {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--schatten);
  background: #0b1220;
  aspect-ratio: 16 / 9;
}
.hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; }

.knopfreihe { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.knopf {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; text-decoration: none;
  font-weight: 750; font-size: 1rem; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
  min-height: 44px;
}
.knopf:hover { transform: translateY(-2px); }
.knopf.voll { background: var(--tinte); color: #fff; box-shadow: var(--schatten); }
.knopf.leer { border-color: var(--linie); background: #fff; }

/* --------------------------------------------------------------- Abschnitt */

section { padding: clamp(52px, 6.5vw, var(--takt-l)) clamp(16px, 5vw, 64px); }
section .innen { max-width: 1220px; margin: 0 auto; }
section.warm { background: var(--papier-warm); border-block: 1px solid var(--linie); }
section.dunkel {
  background: var(--tinte); color: #fff;
  border-block: none;
}
section.dunkel .leise, section.dunkel .abschnittskopf p { color: #9fb0d0; }
section.dunkel .schritt p { color: #9fb0d0; }
section.dunkel .schritt::before { background: var(--akzent); color: #111827; }

.abschnittskopf { max-width: 34em; margin-bottom: 40px; }
.abschnittskopf p { color: var(--text-leise); font-size: 1.05rem; }

/* ------------------------------------------------------------- Videokarten */

.videoreihe {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  /* Karten dürfen unterschiedlich hoch sein - sonst zieht das Hochformat
     die ganze Zeile auf und hinterlässt 350 px leeres Weiß. */
  align-items: start;
}
.videoreihe.hoch { grid-template-columns: repeat(auto-fill, minmax(240px, 260px)); }
.videokarte {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--schatten);
  display: flex; flex-direction: column;
}
.videokarte .buehne { position: relative; background: #0b1220; }
.videokarte video {
  width: 100%; display: block; background: #0b1220;
  aspect-ratio: 16 / 9; object-fit: contain;
}
.videokarte.hochkant video { aspect-ratio: 9 / 16; }
.videokarte .abspielen {
  position: absolute; inset: 0; margin: auto;
  width: 74px; height: 74px; border-radius: 50%;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  border: none; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.6);
  transition: transform .15s ease;
}
.videokarte .abspielen:hover { transform: scale(1.07); }
.videokarte .abspielen svg { width: 26px; height: 26px; margin-left: 4px; fill: #0b1220; }
.videokarte .text { padding: 20px 22px 24px; }
.videokarte .text h3 { margin-bottom: 4px; font-size: 1.2rem; }
.marken { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.marke {
  font-size: 0.82rem; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  background: #eef2ff; color: var(--primaer);
}
.marke.grau { background: #f1f3f8; color: var(--text-leise); }
.marke.gruen { background: #ecfdf5; color: var(--gruen); }

/* ---------------------------------------------------------------- Stilraster */

.stilraster {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  align-items: start;
}
.stilkarte {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 24px 22px; display: flex; flex-direction: column; gap: 8px;
}
.stilkarte .kopfzeile { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.stilkarte p { color: var(--text-leise); font-size: 1rem; margin: 0; }
.stilkarte .branchen { font-size: 0.88rem; color: var(--text-leise); padding-top: 8px; }
.stilkarte .anfrage { font-size: 0.88rem; color: var(--gelb); font-weight: 650; }

/* ------------------------------------------------------------------ Ablauf */

.schritte { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: schritt; }
.schritt { position: relative; padding-top: 52px; }
.schritt::before {
  counter-increment: schritt; content: counter(schritt);
  position: absolute; top: 0; left: 0;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tinte); color: #fff; font-weight: 800; font-size: 1rem;
}
.schritt p { color: var(--text-leise); font-size: 1rem; }

/* ------------------------------------------------------------------ Preise */

.preisraster { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: start; }
.preiskarte {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 28px 26px; display: flex; flex-direction: column; gap: 10px;
}
.preiskarte.hervor { border-color: var(--primaer); border-width: 2px; }
.preiskarte .betrag { font-size: 2rem; font-weight: 850; letter-spacing: -0.03em; }
.preiskarte ul { margin: 8px 0 0; padding-left: 18px; color: var(--text-leise); font-size: 0.97rem; }
.preiskarte li { margin-bottom: 6px; }

/* ------------------------------------------------------------------ Tabelle */

.tabellenrahmen { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; min-width: 520px; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--linie); }
th { font-weight: 750; color: var(--text-leise); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
tbody tr:hover { background: var(--papier-warm); }

/* ---------------------------------------------------------------- Formulare */

.anfrage-raster {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(32px,5vw,64px); align-items: start;
}
.formularkarte {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--schatten);
}
.formularkarte form { display: grid; gap: 14px; }
.formularkarte label { display: grid; gap: 6px; font-weight: 650; font-size: 0.95rem; }
.feldpaar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.honigtopf { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.kontaktzeile { font-size: 1.15rem; font-weight: 700; line-height: 1.9; }
.kontaktzeile a { text-decoration: none; color: var(--primaer); }
.kontaktzeile a:hover { text-decoration: underline; }
.klein { font-size: 0.86rem; }
.formular { display: grid; gap: 14px; }
.feld { display: grid; gap: 6px; }
.feld label { font-weight: 650; font-size: 0.95rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], textarea, select {
  width: 100%; padding: 14px 16px; font-size: 1rem;
  border: 1px solid var(--linie); border-radius: 12px; font-family: inherit;
  background: #fff; color: var(--text);
}
textarea { min-height: 130px; resize: vertical; }
button {
  padding: 15px 28px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--tinte); color: #fff; font-weight: 750; font-size: 1rem; font-family: inherit;
  min-height: 44px;
}
button.klein { padding: 10px 18px; font-size: 0.88rem; min-height: 0; }
button:hover { opacity: 0.92; }
.fehler { color: #b91c1c; font-weight: 600; margin-top: 12px; }
.erfolg {
  background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46;
  padding: 18px 22px; border-radius: 14px; font-weight: 600;
}
.karte-schmal {
  max-width: 430px; margin: 12vh auto; padding: 36px 32px;
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  box-shadow: var(--schatten);
}

/* ------------------------------------------------------------------ Werkbank */

.werkbank { padding: 44px clamp(16px, 5vw, 64px); max-width: 1220px; margin: 0 auto; }
.hinweis {
  border-left: 4px solid var(--akzent); background: #fffbf2;
  padding: 18px 22px; border-radius: 0 12px 12px 0; margin: 24px 0;
}
.hinweis strong { color: #92400e; }
pre {
  background: var(--tinte); color: #dbe3f4; padding: 20px; border-radius: 14px;
  overflow-x: auto; font-size: 0.86rem; line-height: 1.55;
}
.zustand { font-weight: 700; font-size: 0.85rem; }
.zustand.laeuft { color: var(--primaer); }
.zustand.fertig { color: var(--gruen); }
.zustand.fehler { color: #b91c1c; }

/* --------------------------------------------------------------- Rechtstext */

.rechtstext { max-width: 72ch; margin: 0 auto; padding: 56px clamp(16px,5vw,64px) 96px; }
.rechtstext h2 { font-size: 1.4rem; margin-top: 2em; }
.rechtstext p, .rechtstext li { color: var(--text-leise); }
.rechtstext .karte {
  background: var(--papier-warm); border: 1px solid var(--linie);
  border-radius: 14px; padding: 20px 24px; margin-bottom: 24px;
}
.rechtstext .karte p { color: var(--text); }

/* --------------------------------------------------------------------- Fuß */

.fuss {
  padding: 36px clamp(16px, 5vw, 64px);
  border-top: 1px solid var(--linie);
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between;
  font-size: 0.92rem; color: var(--text-leise);
}
.fuss a { text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fusslinks { display: flex; gap: 20px; flex-wrap: wrap; }

/* ------------------------------------------------------------ Kleine Geräte */

@media (max-width: 980px) {
  .hero .innen { grid-template-columns: minmax(0, 1fr); }
  .anfrage-raster { grid-template-columns: minmax(0, 1fr); }
  .abschluss .innen { grid-template-columns: minmax(0, 1fr); }
  .videoreihe { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .kopf { padding: 10px 16px; }
  .wortmarke .leise { display: none; }
  .kopf nav { gap: 12px; font-size: 0.88rem; }
  .kopf nav a.nur-gross { display: none; }
  .knopf .nur-gross { display: none; }
  .nur-klein { display: inline; }
  .kopf .knopf { padding: 10px 16px; font-size: 0.86rem; }
  h1 { max-width: none; }
  .marke { font-size: 0.8rem; }
  .hero .schild { font-size: 0.84rem; }
  .videoreihe.hoch { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .videoreihe.hoch .videokarte { max-width: 320px; }
  .feldpaar { grid-template-columns: 1fr; }
  .formularkarte { padding: 24px 20px; }
}

/* ------------------------------------------------------------- Dunkler Modus */

@media (prefers-color-scheme: dark) {
  :root {
    --papier: #0b1220; --papier-warm: #101a2e; --linie: #223052;
    --text: #e8edf9; --text-leise: #93a1c0;
    /* Die kräftigen Markenfarben bestehen auf dunklem Grund den Kontrastwert
       nicht - sie werden hier zentral aufgehellt, damit jede Stelle mitzieht. */
    --primaer: #7fa0ff; --gruen: #34d399; --gelb: #fbbf24;
  }
  body { background: var(--papier); }
  .kopf { background: rgba(11,18,32,0.88); }
  .videokarte, .stilkarte, .karte-schmal, .preiskarte { background: #101a2e; }
  .knopf.voll { background: var(--primaer); color: #0b1220; }
  .knopf.leer { background: #101a2e; }
  .marke { background: rgba(127,160,255,0.16); color: #b9ccff; }
  .marke.grau { background: #17233d; }
  .marke.gruen { background: rgba(52,211,153,0.16); color: #6ee7b7; }
  .hinweis { background: rgba(245,166,35,0.09); }
  .hinweis strong { color: var(--akzent); }
  input[type=text], input[type=email], input[type=tel], input[type=password], textarea, select {
    background: #0b1220; color: var(--text);
  }
  tbody tr:hover { background: #17233d; }
  .erfolg { background: rgba(52,211,153,0.12); border-color: rgba(52,211,153,0.4); color: #6ee7b7; }
  .rechtstext .karte { background: #101a2e; }
  section.dunkel { background: #060b16; }
}
