/* Folien Artist – Autofolierungs-Funnel */
:root {
  --red: #9d2328;
  --red-dark: #7e1a1f;
  --red-soft: #f6e7e8;
  --gold: #d7b56d;
  --ink: #0b0b0c;
  --navy: #12161f;
  --text: #16181d;
  --muted: #6b7280;
  --line: #e3e5ea;
  --bg: #ffffff;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }

/* Kopf */
.top {
  background: var(--ink);
  display: flex;
  justify-content: center;
  padding: 14px 16px 12px;
}
.top img { width: 150px; height: auto; }

.wrap {
  flex: 1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 16px 8px;
}

/* Fortschritts-Pille */
.pill {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  min-width: 270px;
  margin: 0 auto 22px;
  padding: 10px 22px 10px 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
}
.pill-text { flex: 1; text-align: center; }
.pill-pct { font-weight: 500; font-variant-numeric: tabular-nums; }
.pill-icon {
  position: relative;
  width: 28px;
  height: 28px;
  flex: none;
}
.spin {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .22);
  border-top-color: #fff;
  animation: spin 1s linear infinite;
}
.tick {
  position: absolute;
  inset: 0;
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transform: scale(.4);
  transition: opacity .25s, transform .25s;
}
.tick path, .badge path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.is-complete .spin { opacity: 0; }
.is-complete .tick { opacity: 1; transform: scale(1); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Überschriften */
.title {
  margin: 0 0 6px;
  text-align: center;
  font-size: clamp(28px, 8vw, 40px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.title.small { font-size: clamp(22px, 6vw, 30px); text-transform: none; letter-spacing: -.01em; }
.title em { font-style: normal; color: var(--red); }
.sub { margin: 0 0 22px; text-align: center; color: var(--muted); font-size: 17px; }
.sub.strong { margin-top: 18px; margin-bottom: 14px; font-weight: 700; font-size: 19px; }

/* Schritt-Wechsel */
.step.is-active.anim { animation: stepIn .35s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } }

/* Bild-Kacheln */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #1b1d22;
  transition: transform .4s;
}
.tile > span {
  padding: 10px 8px 11px;
  text-align: center;
  font-size: 17px;
  line-height: 1.25;
  border-top: 1px solid var(--line);
}
.tile input, .row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tile::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(0, 0, 0, .35);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
  transition: background .15s;
}
.tile:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16, 24, 40, .1); }
.tile:hover img { transform: scale(1.04); }
.tile:has(input:focus-visible), .row:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.tile:has(input:checked) { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.tile:has(input:checked) > span { font-weight: 700; color: var(--red); }
.tile:has(input:checked)::after {
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}

/* Listen-Auswahl (Zeitraum) */
.list { display: grid; gap: 12px; }
.row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 17px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.row .ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 10px;
  background: #f3f4f6;
  font-size: 21px;
}
.row:hover { border-color: #c9ccd3; }
.row:has(input:checked) { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); background: var(--red-soft); font-weight: 700; }

/* Formular */
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 14px;
}
.f { grid-column: 1 / -1; }
.f label { display: block; margin-bottom: 7px; font-size: 16px; font-weight: 500; }
.f small { color: var(--muted); font-weight: 400; }
.f input, .f select, .tel select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #d5d8de;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 17px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
.f input::placeholder { color: #8a8f99; }
.f input:focus, .f select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(157, 35, 40, .15); }
.f input[aria-invalid="true"] { border-color: #d92d20; background: #fff8f7; }
.tel { display: flex; }
.tel select {
  width: auto;
  flex: none;
  padding: 0 10px 0 12px;
  border-radius: 10px 0 0 10px;
  border-right: 0;
  background: #fafafa;
}
.tel input { border-radius: 0 10px 10px 0; min-width: 0; }
@media (min-width: 480px) { .f.half { grid-column: span 1; } }

.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.45;
  color: #4b5059;
  cursor: pointer;
}
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--red); }
.consent.invalid span { color: #d92d20; }

.promo {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fbf6ea;
  font-size: 15px;
  line-height: 1.45;
}
.err { margin: 14px 0 0; color: #d92d20; font-size: 15px; text-align: center; }

/* Navigation */
.nav { margin-top: 26px; }
.bar {
  height: 10px;
  border-radius: 99px;
  background: #e6e9ef;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: inherit;
  background: var(--navy);
  transition: width .45s cubic-bezier(.4, 0, .2, 1);
}
.btns {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, opacity .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--red); color: #fff; margin-left: auto; }
.btn.primary:hover { background: var(--red-dark); }
.btn.primary:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary.loading { opacity: .7; pointer-events: none; }
.btn.ghost { background: #fff; border-color: #d5d8de; color: var(--text); box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.btn.ghost:hover { background: #f7f7f8; }
.btn.wide { display: flex; width: 100%; margin: 0 0 12px; }

[data-step="1"] .btns, [data-step="3"] #next { display: none; }
[data-step="5"] .nav, [data-step="5"] .pill { display: none; }

/* Danke */
.done { text-align: center; padding-top: 10px; }
.badge {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  padding: 16px;
  border-radius: 50%;
  background: var(--red);
  animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both;
}
.badge path { stroke: #fff; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.summary {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  font-size: 15px;
  color: #4b5059;
}
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.summary dt { font-weight: 600; color: var(--text); }
.summary dd { margin: 0; }

/* Fuß */
.foot {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 16px 28px;
  text-align: center;
  font-size: 14px;
  color: #8a93a3;
}
.foot p { margin: 0 0 10px; }
.foot .links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 24px; font-size: 16px; }
.foot .links a { color: #7d8aa0; text-decoration: none; }
.foot .links a:hover { text-decoration: underline; }
.foot .meta { line-height: 1.45; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Cookie-Banner */
.cb {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 20;
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .06);
  animation: cbIn .3s ease both;
}
.cb-title { margin: 0 0 6px; font-weight: 800; font-size: 17px; }
.cb-text { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: #4b5059; }
.cb-text a { color: var(--red); }
.cb-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cb-btns .btn { min-height: 48px; padding: 0 12px; font-size: 16px; margin: 0; }
@keyframes cbIn { from { opacity: 0; transform: translateY(16px); } }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 10; }

@media (min-width: 640px) {
  .wrap { padding-top: 32px; }
  .top img { width: 170px; }
}

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