/* Landingpage Freebie. Designwerte von drautomation.de, siehe README.md. Zuerst fürs Handy. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(assets/schrift/outfit-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(assets/schrift/outfit-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0f1b2d;
  --text: #26344a;
  --slate: #3c4a5e;
  --gray: #8a97a8;
  --line: #e6ebf2;
  --blue: #1f6dff;
  --blue-2: #1b66f5;
  --kick: #16479e;
  --g: #12c08e;
  --t: #14a0a5;
  --b: #1866cc;
  --sky0: #f7d19a;
  --sky1: #fbe0b9;
  --sky2: #fef0dc;
  --sky3: #fffaf4;
  --err: #c0262d;
  --gut: clamp(20px, 5.2vw, 84px);
  --luft: clamp(72px, 11vw, 168px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --schatten: 0 30px 60px -36px rgba(15, 27, 45, .28), 0 2px 6px rgba(15, 27, 45, .04);
  --haken: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff linear-gradient(var(--sky0), var(--sky1) 24%, var(--sky2) 50%, var(--sky3) 78%, #fff) no-repeat;
  background-size: 100% 1500px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: .004em; }

.wrap { max-width: 1272px; margin: 0 auto; padding: 0 var(--gut); }

/* Hinweis, solange kein Endpunkt eingetragen ist */
.testmodus {
  margin: 0;
  padding: 10px var(--gut);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  color: #5c4100;
  background: #fff4d6;
  border-bottom: 1px solid #f2d68b;
}

/* Kopf mit Logo, ohne Navigation */
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.marke { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; letter-spacing: .005em; color: var(--ink); text-decoration: none; }
.marke img { width: 40px; height: 36px; }
.zurueck { font-size: 15px; font-weight: 500; color: var(--ink); }

/* Schrift-Bausteine */
.eyebrow, .kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--kick);
}
.eyebrow { font-size: 13px; }
h1 { font-size: clamp(34px, 3vw + 22px, 54px); line-height: 1.1; font-weight: 500; }
h1 > span, h1 > b { display: block; }
h1 b { font-weight: 650; }
h2 { font-size: clamp(30px, 1.6vw + 24px, 47.5px); line-height: 1.08; font-weight: 600; }
.unterzeile { margin: 18px 0 0; font-size: 17px; line-height: 1.5; color: var(--text); }

/* Buttons */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font: 600 16px/1.2 var(--font);
  letter-spacing: .01em;
  color: #fff;
  text-decoration: none;
  background: var(--blue);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 24px -10px rgba(31, 109, 255, .7);
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.knopf:hover { background: var(--blue-2); transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(31, 109, 255, .75); }
.knopf:focus-visible { outline: 3px solid rgba(31, 109, 255, .4); outline-offset: 3px; }
.knopf:disabled { opacity: .7; cursor: progress; transform: none; }
.knopf svg { width: 18px; height: 18px; }

/* Karten */
.karte { background: #fff; border: 1px solid rgba(15, 27, 45, .08); border-radius: 20px; box-shadow: var(--schatten); }

/* ---------- Kopfbereich (Hero) ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "text" "bild" "nutzen";
  gap: 28px;
  padding-top: 4px;
  padding-bottom: var(--luft);
}
.hero-text { grid-area: text; text-align: center; }
.hero-cta { margin-top: 24px; }
.hero-bild { grid-area: bild; }
.nutzen-block { grid-area: nutzen; }

/* Deckblatt als 3D-Broschüre: fertiges Bild aus build.py */
.hero-bild { position: relative; width: 100%; max-width: 560px; margin: 0 auto; }
.buch-bild { width: min(86vw, 360px); height: auto; margin: 0 auto; }

/* Was du bekommst */
.nutzen-titel { margin: 0 0 16px; font-size: 21px; font-weight: 600; line-height: 1.25; }
.nutzen { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.nutzen li { position: relative; padding-left: 36px; font-size: 17px; line-height: 1.5; color: var(--ink); }
.nutzen li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--haken) center / 13px no-repeat, linear-gradient(135deg, var(--g), var(--t) 50%, var(--b));
}
.umfang { margin: 18px 0 0; font-size: 14px; color: var(--slate); }
.nutzen-cta { margin: 24px 0 0; }
.nutzen-cta .knopf { width: 100%; }

/* Formular als Pop-up */
html:has(.popup[open]) { overflow: hidden; }
.popup {
  width: min(100% - 24px, 480px);
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 40px 80px -30px rgba(15, 27, 45, .55);
}
.popup::backdrop { background: rgba(15, 27, 45, .55); }
.popup[open] { animation: popup-auf .25s var(--ease); }
@keyframes popup-auf { from { opacity: 0; transform: translateY(16px); } }
.popup-innen { position: relative; padding: 28px 20px 24px; }
.popup-zu {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.popup-zu svg { width: 18px; height: 18px; }
.popup-zu:focus-visible { outline: 3px solid rgba(31, 109, 255, .4); outline-offset: 2px; }
.formular-titel { padding-right: 48px; font-size: 26px; line-height: 1.15; font-weight: 650; }
.formular-text { margin: 10px 0 0; font-size: 16px; line-height: 1.45; color: var(--slate); }
.feld { margin-top: 12px; }
.formular-text + form .feld:first-child { margin-top: 22px; }
.feld label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; }
.feld .feld-label { margin: 16px 0 8px; font-size: 14px; font-weight: 400; color: var(--slate); }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eingabe { position: relative; display: flex; align-items: stretch; }
.eingabe > svg { position: absolute; top: 50%; left: 16px; width: 20px; height: 20px; color: var(--gray); pointer-events: none; transform: translateY(-50%); }
.eingabe > svg + input { padding-left: 48px; }
.eingabe--tel select {
  flex: none;
  padding: 0 30px 0 16px;
  font: 600 16px/1 var(--font);
  color: var(--ink);
  background: #f6f8fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233c4a5e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") right 10px center / 14px no-repeat;
  border: 1.5px solid #cbd4e1;
  border-right: 0;
  border-radius: 12px 0 0 12px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.eingabe--tel select:focus { outline: none; border-color: var(--blue); }
.feld .eingabe--tel input { border-radius: 0 12px 12px 0; }
.feld input {
  width: 100%;
  padding: 15px 16px;
  font: 400 17px/1.3 var(--font);
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #cbd4e1;
  border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.feld input::placeholder { color: var(--gray); }
.feld input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 109, 255, .15); }
.feld input[aria-invalid="true"] { border-color: var(--err); }
.fehler { margin: 6px 0 0; font-size: 14px; font-weight: 500; color: var(--err); }

.popup form .knopf { width: 100%; gap: 12px; margin-top: 18px; padding: 18px 24px; font-size: 17px; }
.popup form .knopf svg { flex: none; width: 20px; height: 20px; }
.sicher { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; font-size: 14px; color: var(--slate); }
.sicher svg { flex: none; width: 17px; height: 17px; color: var(--blue); }
.popup-fuss { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; color: var(--gray); }
.popup-fuss p { margin: 0; }
.popup-fuss p + p { margin-top: 8px; }
.popup-fuss a { color: var(--slate); }
.formular-fehler { margin-top: 12px; text-align: center; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Referenzen ---------- */
.referenzen { padding-bottom: var(--luft); overflow-x: hidden; overflow-x: clip; }
.ref-liste { display: grid; gap: 22px; margin-top: 36px; }
.ref { display: flex; flex-direction: column; width: 92%; max-width: 720px; padding: 26px 24px 24px; }
.ref--links { justify-self: start; }
.ref--rechts { justify-self: end; background: var(--sky3); border-color: rgba(214, 182, 132, .35); }
.ref-label { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--kick); }
.ref-titel { margin: 10px 0 10px; font-size: clamp(25px, 1.4vw + 19px, 36px); line-height: 1.12; font-weight: 650; letter-spacing: -.005em; }
.ref--rechts .ref-titel { color: var(--kick); }
.ref-text { margin: 0 0 22px; font-size: 16px; color: var(--text); }
/* Beim Scrollen fahren die Karten von links bzw. rechts herein (nur mit JavaScript, siehe seite.js) */
.ref-anim .ref { opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.ref-anim .ref--links { transform: translateX(-80px); }
.ref-anim .ref--rechts { transform: translateX(80px); }
.ref-anim .ref.ist-da { opacity: 1; transform: none; }
.ref-wer { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.ref-gesichter { display: flex; flex: none; }
.ref-logo { display: grid; flex: none; place-items: center; width: 92px; height: 46px; padding: 6px 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.ref-logo img { width: auto; max-width: 100%; height: auto; max-height: 32px; }
.ref-gesichter img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.ref-gesichter img + img { margin-left: -12px; }
.ref-wer p { margin: 0; font-size: 14px; line-height: 1.35; color: var(--slate); }
.ref-wer strong { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.ref-cta { margin-top: 40px; text-align: center; }

/* ---------- Danke-Seite ---------- */
.danke-hero { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "bild"; gap: 28px; padding-top: 4px; padding-bottom: clamp(56px, 7vw, 96px); }
.danke-hero .hero-text .knopf { margin-top: 26px; }
.danke-hero .hero-bild { display: none; max-width: 420px; }
.rueckruf { margin: 22px auto 0; max-width: 30em; padding: 14px 18px; font-size: 16px; line-height: 1.45; color: var(--text); background: rgba(255, 255, 255, .7); border: 1px solid rgba(15, 27, 45, .08); border-radius: 14px; }
.rueckruf strong { color: var(--ink); font-weight: 600; }
.termin { padding-bottom: var(--luft); text-align: center; }
.termin .unterzeile { margin: 12px auto 0; }
.kalender { min-height: 640px; margin-top: 28px; overflow: hidden; text-align: left; }
.kalender-link { margin: 16px 0 0; font-size: 14px; }
.kalender-link a { color: var(--ink); font-weight: 500; }

/* ---------- Impressum, Datenschutz ---------- */
.recht-kopf { max-width: 820px; margin: 0 auto; padding: 24px var(--gut) 8px; }
.recht-kopf .unterzeile { margin-bottom: 0; }
.recht { max-width: 820px; margin: 0 auto; padding: 24px var(--gut) var(--luft); font-size: 16px; line-height: 1.65; color: var(--text); overflow-wrap: break-word; }
.recht h2 { margin: 40px 0 10px; font-size: 22px; line-height: 1.25; font-weight: 600; color: var(--ink); }
.recht h3 { margin: 28px 0 8px; font-size: 18px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.recht p, .recht ul { margin: 0 0 14px; }
.recht ul { padding-left: 22px; }
.recht strong { color: var(--ink); font-weight: 600; }
.recht hr { margin: 36px 0; border: 0; border-top: 1px solid var(--line); }
.recht a { color: var(--blue-2); overflow-wrap: anywhere; }
.recht .stand { display: inline-block; margin-bottom: 8px; font-size: 13px; color: var(--gray); }

/* ---------- Fußzeile ---------- */
.fuss { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--slate); border-top: 1px solid var(--line); }
.fuss-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.fuss nav { display: flex; gap: 22px; }
.fuss a { color: var(--slate); text-decoration: none; }
.fuss a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Ab Tablet ---------- */
@media (min-width: 640px) {
  .popup-innen { padding: 36px 34px 32px; }
  .ref { width: 82%; padding: 30px 32px 28px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  body { background-size: 100% 1100px; }
  .kopf { padding-top: 28px; padding-bottom: 28px; }
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "text bild" "nutzen bild";
    grid-template-rows: auto 1fr;
    column-gap: clamp(48px, 6vw, 96px);
    row-gap: 32px;
    align-items: start;
    padding-top: 32px;
  }
  .hero-text { text-align: left; }
  .unterzeile { max-width: 32em; }
  .hero-bild { position: sticky; top: 32px; align-self: start; margin: 0; max-width: 600px; }
  .buch-bild { width: 460px; }
  .nutzen-cta .knopf { width: auto; }
  .ref-liste { gap: 28px; }
  .ref { width: 66%; padding: 36px 40px 32px; }
  .danke-hero { grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); grid-template-areas: "text bild"; align-items: center; column-gap: clamp(48px, 6vw, 96px); padding-top: 32px; }
  .danke-hero .hero-bild { display: block; }
  .danke-hero .rueckruf { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
