/* RolloRollo – Kunden-Funnel. Mobile first, eine Spalte. Keine Inline-Styles nötig (CSP). */
:root {
  --bg: #F3F4EF;
  --card: #FFFFFF;
  --ink: #16181D;
  --ink-2: #43463F;
  --muted: #5B5E56;
  --faint: #6B6E66;
  --line: #E3E5DD;
  --line-2: #D5D7CF;
  --seg: #E6E8E0;
  --tip: #E9EBE3;
  --accent: #FFCD3C;
  --accent-soft: #FFF4CC;
  --err: #B42318;
  --err-soft: #FDECEA;
  --r: 14px;
  --r-l: 18px;
  --display: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); -webkit-text-size-adjust: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.app { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
@media (min-width: 520px) { .app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }

/* Kopf */
.top { display: flex; align-items: center; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 10px; min-height: 68px; }
.top-side { width: 44px; }
.top-step { text-align: right; font-size: 13px; font-weight: 600; color: var(--muted); }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); display: grid; place-items: center; padding: 0; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.logo-mark { display: inline-flex; }
.logo-mark svg { display: block; }
.logo-word { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.5px; }
.progress { margin: 0 20px 6px; height: 6px; border-radius: 99px; background: #E1E3DA; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .25s ease; }
.progress[data-p="1"] span { width: 33.3%; } .progress[data-p="2"] span { width: 66.6%; } .progress[data-p="3"] span { width: 100%; }

/* Inhalt */
.main { flex: 1; padding: 14px 20px 24px; }
.stack { display: flex; flex-direction: column; gap: 22px; }
.stack-s { display: flex; flex-direction: column; gap: 12px; }
h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1.02; letter-spacing: -1.2px; text-wrap: balance; }
h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.1; letter-spacing: -0.6px; text-wrap: balance; }
.lead { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.sub { font-size: 14px; line-height: 1.45; color: var(--muted); margin: -16px 0 0; }
.small { font-size: 13px; line-height: 1.45; color: var(--muted); }
.fine { font-size: 12px; color: var(--faint); text-align: center; margin: 0; }
.muted { font-weight: 400; color: var(--muted); }
.badge { align-self: flex-start; background: var(--accent); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; }
.badge-s { padding: 3px 10px; font-size: 12px; }
.badge-dark { background: var(--ink); color: #fff; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px; }
.card-strong { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-l); padding: 16px; }
.info { display: flex; gap: 10px; background: var(--accent-soft); border-radius: var(--r); padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.info svg { flex-shrink: 0; margin-top: 1px; }
.note { background: var(--accent-soft); border-radius: var(--r); padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.note-err { background: var(--err-soft); color: var(--err); }
.tip { font-size: 13px; line-height: 1.45; color: var(--ink-2); background: var(--tip); border-radius: 12px; padding: 10px 12px; }
.tip strong { color: var(--ink); }
.tips { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.empty { background: var(--card); border: 2px dashed var(--line-2); border-radius: var(--r-l); padding: 18px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; }

/* Start */
.start { padding-top: 28px; }
.steps { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.steps li { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.num { width: 28px; height: 28px; border-radius: 99px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }

/* Fragen */
.q { display: flex; flex-direction: column; gap: 10px; }
.q-label { font-weight: 600; font-size: 15px; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .progress span { transition: none; } }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills-col { flex-direction: column; align-items: flex-start; }
.pill { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); font-size: 15px; font-weight: 500; text-align: left; line-height: 1.3; }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.pill-ghost { background: transparent; border-style: dashed; border-color: #B9BCB2; }
.pill-ghost[aria-pressed="true"] { border-style: dashed; }
.pill-s { min-height: 36px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
.pills-s { flex-wrap: nowrap; gap: 6px; }

.seg { display: grid; gap: 4px; background: var(--seg); border-radius: var(--r); padding: 4px; }
.seg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seg button { min-height: 44px; border: none; border-radius: 10px; background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 500; padding: 6px 4px; }
.seg-4 button { font-size: 13px; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(22, 24, 29, .08); }
.seg-t { display: block; font-weight: 700; font-size: 13px; }
.seg-s { display: block; font-size: 11px; font-weight: 500; opacity: .8; line-height: 1.3; margin-top: 2px; }

.input, select { height: 52px; width: 100%; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--card); padding: 0 14px; font-size: 16px; }
select { padding: 0 10px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: 15px; }
.field .err { color: var(--err); }

/* Fahrzeugform */
.forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.formcard { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 12px 12px 14px; border-radius: var(--r-l); border: 2px solid var(--line); background: var(--card); }
.formcard[aria-pressed="true"] { border-color: var(--ink); background: var(--accent-soft); }
.formcard-t { font-weight: 700; font-size: 15px; }
.formcard-h { font-size: 12px; line-height: 1.35; color: var(--muted); }

/* Reifengrösse */
.sizecard { display: flex; gap: 14px; align-items: flex-start; }
.sizecard > svg { flex-shrink: 0; }
.sizecard-txt { display: flex; flex-direction: column; gap: 4px; }
.size { font-family: var(--display); font-weight: 800; font-size: 24px; }
.btn-inline { align-self: flex-start; border: none; background: none; padding: 6px 0; min-height: 32px; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sizehelp { display: flex; align-items: center; gap: 14px; }
.sizehelp svg { flex-shrink: 0; }
.sizehelp p { margin: 0; font-size: 14px; line-height: 1.45; }
.sizes { display: flex; align-items: flex-end; gap: 8px; }
.slash { font-family: var(--display); font-weight: 800; font-size: 22px; padding-bottom: 12px; }
.select { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.select label { font-size: 13px; font-weight: 600; color: var(--muted); }

/* Rad oder Reifen */
.optcard { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; border-radius: var(--r-l); border: 2px solid var(--line); background: var(--card); }
.optcard[aria-pressed="true"] { border-color: var(--ink); background: var(--accent-soft); }
.optcard svg { flex-shrink: 0; }
.optcard-txt { display: flex; flex-direction: column; gap: 4px; }
.optcard-txt strong { font-size: 16px; }
.optcard-txt span { font-size: 13px; line-height: 1.4; color: var(--ink-2); }

/* Ratgeber */
.extra-head { background: var(--ink); color: #fff; border-radius: 20px; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.extra-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.extra-head .badge { background: var(--accent); color: var(--ink); }
.extra-title { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.5px; }
.extra-head p { margin: 0; font-size: 14px; line-height: 1.45; color: #D9DBD3; }
.btn-skip { min-height: 44px; padding: 0 4px; border: none; background: none; color: #fff; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rec-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.rec-title { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.15; }
.bullets { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bullets li { display: flex; gap: 8px; font-size: 14px; line-height: 1.45; }
.bullets li::before { content: ''; width: 6px; height: 6px; border-radius: 9px; background: var(--ink); margin-top: 8px; flex-shrink: 0; }
.checks { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; }
.checks svg { flex-shrink: 0; margin-top: 2px; }
.checks strong { display: block; font-weight: 600; }
.checks span span { display: block; font-size: 13px; color: var(--muted); }

/* PLZ */
.suggest { list-style: none; margin: 0; padding: 4px; background: var(--card); border: 1.5px solid var(--line-2); border-radius: var(--r); }
.suggest button { width: 100%; min-height: 44px; text-align: left; border: none; background: none; border-radius: 10px; padding: 0 10px; font-size: 15px; }
.suggest button:hover, .suggest button:focus-visible { background: var(--bg); }
.chip-sel { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px 0 16px; border-radius: 999px; border: none; background: var(--ink); color: #fff; font-size: 16px; font-weight: 600; }

/* Termine */
.days { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 4px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { width: 58px; min-height: 72px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: var(--r); border: 1.5px solid var(--line-2); background: var(--card); padding: 6px 0; }
.day-t { font-size: 12px; font-weight: 600; }
.day-m { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1; }
.day-b { font-size: 11px; font-weight: 600; }
.day-full { background: transparent; border-style: dashed; border-color: #C9CCC3; color: var(--faint); }
.day[aria-pressed="true"] { background: var(--ink); border: 1.5px solid var(--ink); color: #fff; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.row-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.count { font-size: 14px; font-weight: 700; }
.garage { background: var(--card); border: 2px solid var(--line); border-radius: var(--r-l); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.garage.is-sel { border-color: var(--ink); }
.garage-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.garage-id { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.garage-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.garage-name { margin: 0; font-size: 17px; font-weight: 700; }
.garage-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; text-align: right; }
.garage-price strong { font-family: var(--display); font-weight: 800; font-size: 22px; white-space: nowrap; }
.tags { font-size: 13px; color: var(--ink-2); }
.slots { display: grid; gap: 8px; }
.slots-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.slots-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.slot { min-height: 44px; padding: 0 6px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--bg); font-size: 14px; font-weight: 600; }
.slot[aria-pressed="true"], .leave[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.leaves { display: flex; flex-direction: column; gap: 8px; }
.leave { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--bg); }
.leave strong { font-size: 14px; }
.leave span { font-size: 13px; line-height: 1.4; }
.loading { color: var(--muted); font-size: 15px; padding: 24px 0; text-align: center; }

/* Kontakt */
.summary-card { display: flex; flex-direction: column; gap: 4px; }
.summary-card strong { font-size: 16px; }
.summary-card span { font-size: 14px; color: var(--ink-2); }

/* Abschluss */
.done-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 8px 0 4px; }
.done-ic { width: 64px; height: 64px; border-radius: 999px; background: var(--accent); display: grid; place-items: center; }
.done-head h2 { font-size: 30px; }
.done-head p { margin: 0; max-width: 300px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.remind { background: var(--ink); color: #fff; border-radius: var(--r-l); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.remind strong { font-size: 17px; }
.remind p { margin: 0; font-size: 14px; line-height: 1.45; color: #D9DBD3; }
.summary { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; text-align: right; }

/* Buttons */
.foot { position: sticky; bottom: 0; padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 4px; background: var(--bg); border-top: 1px solid var(--line); }
.btn-primary { height: 54px; border: none; border-radius: var(--r); background: var(--ink); color: #fff; font-size: 17px; font-weight: 700; }
.btn-primary:disabled { background: var(--line-2); color: var(--muted); }
.btn-link { height: 44px; border: none; background: none; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.btn-dark { min-height: 44px; padding: 0 16px; border: none; border-radius: 12px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; }
.btn-accent { height: 50px; border: none; border-radius: 12px; background: var(--accent); color: var(--ink); font-size: 16px; font-weight: 700; }
.btn-outline { height: 48px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: transparent; font-size: 15px; font-weight: 600; }

/* Rechtliche Seiten */
.legal { max-width: 680px; margin: 0 auto; padding: 24px 20px 48px; line-height: 1.6; }
.legal h1 { font-size: 32px; margin-bottom: 16px; }
.legal h2 { font-size: 20px; margin-top: 28px; }
.legal a { color: var(--ink); }
/* Platzhalter – vor dem Livegang ersetzen */
.ph { background: #FDECEA; outline: 2px dashed #B42318; border-radius: 4px; padding: 0 4px; }
.site-foot { display: flex; gap: 16px; justify-content: center; padding: 16px 20px 24px; font-size: 13px; }
.site-foot a { color: var(--muted); }

/* ---------- Layout-Gerüst (mobil: eine Spalte wie bisher) ---------- */
.layout { flex: 1; display: flex; flex-direction: column; }
.col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.side { display: none; }

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  .app { max-width: 1120px; border: none; }
  .top { padding: 28px 40px 16px; }
  .progress { margin: 0 40px 8px; }
  h1 { font-size: 64px; letter-spacing: -2px; }
  h2 { font-size: 36px; letter-spacing: -0.8px; }

  .layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding: 0 40px; align-items: start; }
  .layout.has-side { grid-template-columns: minmax(0, 1fr) 320px; }
  .main { padding: 28px 0 24px; }

  /* Weiter-Button: normaler Button unter dem Inhalt statt Leiste am unteren Rand */
  .foot { position: static; background: transparent; border-top: none; padding: 8px 0 56px; flex-direction: row; align-items: center; gap: 20px; }
  .btn-primary { padding: 0 36px; min-width: 300px; }

  /* Seitenleiste "Deine Angaben" */
  .side { display: block; position: sticky; top: 24px; margin-top: 28px; }
  .side-card { display: flex; flex-direction: column; gap: 16px; padding: 20px; }
  .side-title { font-family: var(--display); font-weight: 800; font-size: 20px; }
  .side-list { margin: 0; display: flex; flex-direction: column; gap: 14px; }
  .side-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .side-row dt { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
  .side-row dd { margin: 0; grid-column: 1; font-size: 15px; font-weight: 600; line-height: 1.4; }
  .side-row .btn-inline { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 13px; }

  /* Start: Text links, Ablauf rechts */
  .step-start .main > .start { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 64px; row-gap: 24px; align-items: end; padding-top: 56px; }
  .step-start .main > .start > :not(.steps) { grid-column: 1; }
  .step-start .main > .start > .badge { justify-self: start; }
  .step-start .main > .start > .steps { grid-column: 2; grid-row: 1 / span 3; align-self: end; padding: 28px; gap: 18px; }
  .step-start .main > .start .steps li { font-size: 17px; }
  .step-start .foot { padding-bottom: 24px; }

  /* Fragen: Formkarten in einer Reihe, Tagesleiste umbrechen statt scrollen */
  .forms { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .days { margin: 0; padding: 2px 0 4px; flex-wrap: wrap; overflow: visible; }

  /* Abschluss: zwei Spalten */
  .step-done .main > .stack { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 40px; align-items: start; }
  .step-done .main > .stack > .done-head,
  .step-done .main > .stack > .card-strong { grid-column: 1 / -1; }
  .step-done .main > .stack > .btn-outline { grid-column: 1 / -1; justify-self: center; padding: 0 32px; }
  .step-done .card-strong .checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
}

/* Breite Desktops: Garagen nebeneinander */
@media (min-width: 1100px) {
  .step-result .main > .stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; align-items: start; }
  .step-result .main > .stack > :not(.garage) { grid-column: 1 / -1; }
}
