/* SRS RENT — Online-Buchung. Gleiche Bauweise wie der SRS-Global-Fragebogen, in Babyblau wie das Logo. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #F3F9FC; --bg2: #DCEFF8; --card: #FFFFFF;
  --accent: #1F7FB0; --accent2: #3A9BCF; --accent-soft: rgba(31,127,176,.09);
  --fill: #8FD3F2; --fill2: #74C6EC; --on-fill: #0E2230; /* Babyblau aus dem Logo (Flächen) mit dunkler Schrift */
  --sun: #F2CF7A;
  --text: #0E2230; --muted: #3E5563; --subtle: #8496A1;
  --border: rgba(14,34,48,.11); --ok: #1F9D6B; --err: #C2413A;
  --ff-serif: 'Cormorant Garamond', Georgia, serif;
  --ff-sans: 'DM Sans', 'Inter', sans-serif;
  --ease: cubic-bezier(.16,1,.3,1);
}
html, body { min-height: 100%; }
html.embed, html.embed body { min-height: 0; }
html.embed main { min-height: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--ff-sans); font-weight: 300; font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
a { color: var(--accent2); }
button, input, textarea, select { font: inherit; color: inherit; }
b, strong { font-weight: 500; }

/* Kopfzeile */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(243,249,252,.93);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.top-inner { max-width: 760px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.top-logo img { height: 40px; width: auto; display: block; border-radius: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); font-size: 12px; font-weight: 500; letter-spacing: .04em; white-space: nowrap; }
.pill.price { background: var(--fill); color: var(--on-fill); opacity: 0; transform: translateY(-4px); transition: opacity .35s, transform .45s var(--ease); }
.pill.price.show { opacity: 1; transform: none; }
.progress { height: 3px; background: var(--bg2); }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--sun)); transition: width .6s var(--ease); }

/* Schritte */
main { max-width: 760px; margin: 0 auto; padding: 92px 20px 130px; min-height: 100dvh; }
.step { display: none; }
.step.active { display: block; animation: stepIn .5s var(--ease) both; }
.step.back.active { animation-name: stepInBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent2); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 24px; height: 1px; background: currentColor; }
h1, h2 { font-family: var(--ff-serif); font-weight: 300; line-height: 1.06; letter-spacing: -.01em; }
h1 { font-size: clamp(44px, 11vw, 74px); }
h2 { font-size: clamp(32px, 7.5vw, 48px); margin-bottom: 10px; }
h1 em, h2 em { font-style: italic; color: var(--accent2); }
h3 { font-size: 16px; font-weight: 500; margin-bottom: 12px; }
.hint { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.small { font-size: 13px; color: var(--subtle); margin-top: 10px; }

/* Intro */
.intro-hero { position: relative; border-radius: 6px; overflow: hidden; margin: 22px 0 26px; aspect-ratio: 16/8; background: var(--bg2); }
.intro-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.intro-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10,20,15,.45)); }
.intro-hero span { position: absolute; left: 16px; bottom: 14px; z-index: 1; color: #fff; font-size: 13px; letter-spacing: .04em; }
.intro-lead { font-size: 18px; color: var(--muted); margin: 16px 0 24px; max-width: 560px; }
.facts-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.fact { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 13px; color: var(--muted); background: var(--card); }
.fact svg { color: var(--accent2); flex: none; }
.intro-list { list-style: none; margin: 30px 0 0; display: grid; gap: 14px; }
.intro-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.intro-list .num { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(31,127,176,.35); color: var(--accent);
  display: grid; place-items: center; font-size: 12px; font-weight: 500; }
.intro-list strong { color: var(--text); }

/* Fahrzeugkarten */
.vehicles { display: grid; gap: 14px; }
.veh { position: relative; display: grid; grid-template-columns: 42% 1fr; text-align: left; cursor: pointer; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); border-radius: 6px; transition: border-color .25s, box-shadow .25s, transform .2s var(--ease); }
.veh:hover { border-color: rgba(31,127,176,.45); }
.veh:active { transform: scale(.99); }
.veh.on { border-color: var(--accent); box-shadow: 0 10px 30px rgba(31,127,176,.16); }
.veh img { width: 100%; height: 100%; min-height: 170px; object-fit: cover; display: block; }
.veh .body { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.veh .typ { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--subtle); }
.veh .nm { font-family: var(--ff-serif); font-size: 28px; line-height: 1.05; }
.veh .feat { font-size: 13.5px; color: var(--muted); }
.veh .from { margin-top: auto; font-size: 13px; color: var(--muted); }
.veh .from b { font-family: var(--ff-serif); font-size: 26px; color: var(--accent); font-weight: 400; }
.veh .badge { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px; background: var(--sun); color: #3A2A00; font-size: 11px; font-weight: 500; }
.veh .tick { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1.5px solid var(--border);
  display: grid; place-items: center; }
.veh.on .tick { background: var(--fill); border-color: var(--fill); color: var(--on-fill); }
@media (max-width: 560px) { .veh { grid-template-columns: 1fr; } .veh img { height: 180px; } }

/* Kalender */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); cursor: pointer; display: grid; place-items: center; }
.cal-nav:disabled { opacity: .3; pointer-events: none; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { .cal-months { grid-template-columns: 1fr; } .cal-months .month:nth-child(2) { display: none; } }
.month h4 { font-family: var(--ff-serif); font-size: 22px; font-weight: 400; text-align: center; margin-bottom: 8px; }
.grid7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.wd { font-size: 11px; color: var(--subtle); text-align: center; padding: 4px 0; letter-spacing: .06em; }
.day { position: relative; aspect-ratio: 1; border: 0; border-radius: 6px; background: var(--card); cursor: pointer; font-size: 14px; font-weight: 400;
  transition: background .15s, color .15s; }
.day:hover { background: #E4F4FB; }
.day.empty { visibility: hidden; }
.day.past, .day.block { color: #B9BDB8; background: transparent; cursor: not-allowed; }
.day.block { background: repeating-linear-gradient(135deg, #E3ECF1 0 4px, #F3F9FC 4px 8px); text-decoration: line-through; }
.day.wechsel-ab { background: linear-gradient(135deg, #E3ECF1 0 50%, var(--card) 50%); }   /* vormittags Rückgabe eines anderen Mieters */
.day.wechsel-rueck { background: linear-gradient(135deg, var(--card) 0 50%, #E3ECF1 50%); } /* nachmittags Abholung eines anderen Mieters */
.day.hol::after { content: ''; position: absolute; top: 5px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--sun); }
.day.range { background: #D3EEFA; border-radius: 0; }
.day.start, .day.end { background: var(--fill); color: var(--on-fill); font-weight: 500; }
.day.start { border-radius: 6px 0 0 6px; } .day.end { border-radius: 0 6px 6px 0; } .day.start.end { border-radius: 6px; }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--subtle); }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.cal-sum { margin-top: 18px; padding: 16px 18px; background: var(--card); border: 1px solid var(--border); border-radius: 6px; font-size: 15px; min-height: 58px; }
.cal-sum b { color: var(--accent); }
.cal-sum.err { border-color: rgba(194,65,58,.4); color: var(--err); }

/* Zähler */
.counters { display: grid; gap: 10px; }
.counter { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 6px; }
.counter .lbl small { display: block; color: var(--subtle); font-size: 12.5px; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); cursor: pointer; font-size: 20px; line-height: 1; }
.stepper button:disabled { opacity: .3; pointer-events: none; }
.stepper output { min-width: 22px; text-align: center; font-family: var(--ff-serif); font-size: 28px; }

/* Pakete */
.options { display: grid; gap: 10px; }
.opt { position: relative; width: 100%; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: 6px; text-align: left; cursor: pointer; font-size: 15px; font-weight: 400;
  transition: border-color .25s, background .25s, box-shadow .25s, transform .2s var(--ease); }
.opt:hover { border-color: rgba(31,127,176,.45); }
.opt:active { transform: scale(.99); }
.opt .ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 19px; }
.opt .lbl { flex: 1; line-height: 1.3; }
.opt .lbl small { display: block; color: var(--subtle); font-size: 12.5px; margin-top: 2px; font-weight: 300; }
.opt .pr { flex: none; font-size: 14px; color: var(--muted); white-space: nowrap; }
.opt .tick { flex: none; width: 22px; height: 22px; border-radius: 5px; border: 1.5px solid var(--border); display: grid; place-items: center; }
.opt .tick svg { opacity: 0; transform: scale(.4); transition: opacity .2s, transform .3s var(--ease); }
.opt.on { border-color: var(--fill2); background: #F0F9FD; box-shadow: 0 6px 22px rgba(31,127,176,.10); }
.opt.on .ico { background: var(--fill); color: var(--on-fill); }
.opt.on .tick { background: var(--fill); border-color: var(--fill); color: var(--on-fill); }
.opt.on .tick svg { opacity: 1; transform: none; }
.opt.locked { cursor: default; }
.opt.locked .pr::after { content: ' · Pflicht'; color: var(--accent2); }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; background: var(--card); padding: 3px; gap: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; }
.seg button.on { background: var(--fill); color: var(--on-fill); font-weight: 500; }
#standort { display: grid; grid-template-columns: 1fr 1fr; border-radius: 14px; width: 100%; }
#standort button { border-radius: 10px; }

/* Felder */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--subtle); margin-bottom: 7px; }
.field input, .field textarea, .field select { width: 100%; padding: 14px 15px; min-height: 52px; background: var(--card); border: 1px solid var(--border);
  border-radius: 6px; font-size: 16px; font-weight: 400; outline: none; transition: border-color .25s, box-shadow .25s; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input:disabled { background: var(--bg); color: var(--muted); }
.field textarea { min-height: 90px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .grid-2 { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; margin: 10px 0; }
.consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error-msg { color: var(--err); font-size: 14px; margin-top: 12px; min-height: 20px; }

/* Preisübersicht */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 20px; margin-bottom: 14px; }
.pos { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pos td { padding: 8px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.pos td:last-child { text-align: right; white-space: nowrap; padding-left: 14px; }
.pos .sum td { border-bottom: 0; padding-top: 14px; font-weight: 500; font-size: 17px; }
.pos .sum td:last-child { font-family: var(--ff-serif); font-size: 30px; color: var(--accent); font-weight: 400; }
.pos .mwst td { border: 0; font-size: 12.5px; color: var(--subtle); padding-top: 0; }
.list { padding-left: 18px; display: grid; gap: 8px; font-size: 14.5px; color: var(--muted); }
.summary-head { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; }
.summary-head img { width: 120px; height: 86px; object-fit: cover; border-radius: 4px; }
.summary-head small { display: block; color: var(--subtle); font-size: 12px; }

/* Fußleiste */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(243,249,252,.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .45s var(--ease); }
.bar.show { transform: none; }
.bar-inner { max-width: 760px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 4px; cursor: pointer;
  font-size: 15px; font-weight: 500; letter-spacing: .02em; border: 1px solid transparent; text-decoration: none;
  transition: background .25s, opacity .25s, transform .2s var(--ease), box-shadow .25s; }
.btn-primary { flex: 1; background: var(--fill); color: var(--on-fill); font-weight: 500; }
.btn-primary:hover { background: var(--fill2); box-shadow: 0 10px 30px rgba(31,127,176,.25); }
.btn-primary:disabled { opacity: .35; pointer-events: none; }
.btn-back { width: 54px; padding: 0; background: transparent; border-color: var(--border); color: var(--muted); }
.btn-start { width: 100%; font-size: 16px; min-height: 60px; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); margin: 6px 6px 0 0; }
.bar-price { display: none; flex-direction: column; line-height: 1.15; padding-right: 4px; }
.bar-price small { font-size: 11px; color: var(--subtle); }
.bar-price b { font-family: var(--ff-serif); font-size: 24px; font-weight: 400; color: var(--accent); }
.bar-price.show { display: flex; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(14,34,48,.25); border-top-color: var(--on-fill); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Danke */
.done-mark { width: 76px; height: 76px; border-radius: 50%; background: var(--fill); color: var(--on-fill); display: grid; place-items: center; margin-bottom: 24px;
  box-shadow: 0 16px 50px rgba(31,127,176,.35); animation: popIn .7s var(--ease) both .1s; }
@keyframes popIn { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.timeline { list-style: none; margin-top: 26px; border-left: 1px solid var(--border); padding-left: 22px; display: grid; gap: 20px; }
.timeline li { position: relative; }
.timeline li::before { content: ''; position: absolute; left: -27px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--accent); }
.timeline li:first-child::before { background: var(--fill); border-color: var(--accent); }
.timeline b { display: block; font-size: 15px; }
.timeline span { color: var(--muted); font-size: 14px; }
canvas#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; }
.foot { margin-top: 40px; font-size: 12px; color: var(--subtle); display: flex; gap: 16px; flex-wrap: wrap; }
.foot a { color: inherit; }

/* Angebot / Vertrag / Verwaltung */
body.doc main.wrap { padding-bottom: 60px; }
.hero-card { padding: 0; overflow: hidden; }
.hero-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.hero-card .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; padding: 18px 20px; }
.hero-card .facts small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--subtle); }
.note { padding: 14px 16px; border-radius: 6px; margin-bottom: 18px; background: #FFF7E3; border: 1px solid #F0D99A; font-size: 15px; }
.note.ok { background: #EAF5EF; border-color: #A9D3BC; }
.note.err { background: #FCEDEC; border-color: #EDB3AF; color: #8E2A25; }
.sigpad { position: relative; height: 180px; border: 1px dashed rgba(31,127,176,.45); border-radius: 6px; background: #F8FCFE; touch-action: none; }
.sigpad canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.sigpad .link { position: absolute; top: 8px; right: 10px; border: 0; background: none; color: var(--accent2); font-size: 13px; cursor: pointer; }
.sigpad .sigline { position: absolute; left: 16px; right: 16px; bottom: 30px; border-top: 1px solid #C9CEC9; padding-top: 4px; font-size: 11px; color: var(--subtle); pointer-events: none; }
.sigimg { max-width: 320px; width: 100%; border-bottom: 1px solid var(--border); margin: 8px 0 12px; }

@media print {
  .top, .bar, .btn, form, .foot a { display: none !important; }
  body { background: #fff; } main { padding: 0 !important; } .card { border: 0; padding: 0 0 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
