/* CURSIVUM Anmelde- und Einrichtungsseiten (login, reset, registrieren, tarif, onboarding) im hellen Marketing-Design.
   Versionierter Dateiname, bei Änderungen hochzählen und alle fünf Seiten anpassen. Seit auth-3 (auth-4: Custom-Design-Kacheln, Schrittanzeige nach der Zahlung): Einrichtungs-Assistent (onboarding.html). */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fonts/PlusJakartaSans-latin.woff2') format('woff2'); }
:root { --paper: #F6F2E9; --paper-2: #EFE9DC; --white: #FFFFFF; --ink: #0B2A21; --ink-2: #3F5149; --muted: #66756F; --line: rgba(11,42,33,0.14); --green: #0B3328; --gold: #F5E0A3; --gold-d: #8E6F22; --sage: #D9E1D2; --pad: clamp(18px, 5vw, 56px); --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; overflow-x: clip; opacity: 0; transition: opacity 0.25s ease; }
body.loaded { opacity: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopf und Fuß */
.atop { position: sticky; top: 0; z-index: 50; background: rgba(246,242,233,0.86); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.atop .awrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--pad); height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.alogo { display: block; width: 104px; flex: none; }
.alogo svg { display: block; width: 100%; height: auto; }
.aback { text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.aback:hover { color: var(--ink); text-decoration: underline; }
.abar { background: #08271E; color: rgba(255,255,255,0.7); padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
.abar .awrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--pad); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.abar .alogo { --la: var(--gold); --lb: #fff; opacity: 0.85; }
.abar nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.abar a { text-decoration: none; color: rgba(255,255,255,0.72); }
.abar a:hover { color: var(--gold); }

/* Inhalt */
main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(24px, 5vw, 56px) var(--pad) clamp(36px, 6vw, 72px); }
.card { width: 100%; max-width: 440px; background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 28px 50px -32px rgba(11,42,33,0.3); animation: aIn 0.6s cubic-bezier(.22,1,.36,1) both; }
@keyframes aIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
h1 { font: 700 clamp(26px, 4vw, 32px)/1.12 var(--sans); letter-spacing: -0.022em; margin: 0 0 20px; }
h2, h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.022em; }
label { display: block; margin: 18px 0 6px; font-size: 14px; font-weight: 700; color: var(--ink); text-align: left; }
form > label:first-child, form > label:first-of-type { margin-top: 0; }
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), select, textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); padding: 13px 15px; font: 500 16px var(--sans); color: var(--ink); transition: border-color 0.2s ease, background 0.2s ease; min-height: 50px; }
textarea { min-height: 100px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); background: #fff; }
input[type="color"] { width: 64px; height: 46px; padding: 3px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; }
button { font-family: var(--sans); }
button[type="submit"], .book-btn, .btn-solid { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 24px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--green); color: var(--gold); font: 700 16px var(--sans); cursor: pointer; transition: background 0.2s ease, transform 0.25s cubic-bezier(.22,1,.36,1), opacity 0.2s ease; }
button[type="submit"]:hover:not(:disabled), .book-btn:hover:not(:disabled) { background: #0e4234; transform: translateY(-2px); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
.error { display: none; margin-top: 14px; padding: 11px 14px; border-radius: 12px; background: #FBE9E7; color: #8c2b21; font-size: 14px; line-height: 1.5; }
.info { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #FBF3D9; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.text-link { display: block; margin-top: 18px; text-align: center; color: var(--ink-2); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.text-link:hover { color: var(--ink); text-decoration: underline; }
.hint { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 16px 0 0; text-align: left; }
.field-hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.check { display: flex; gap: 11px; align-items: flex-start; margin: 18px 0 0; cursor: pointer; color: var(--ink-2); font-size: 14px; line-height: 1.55; font-weight: 500; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--green); cursor: pointer; }
.check a { color: var(--gold-d); font-weight: 700; }
.btn-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: aSpin 0.6s linear infinite; vertical-align: -2px; margin-right: 8px; }
@keyframes aSpin { to { transform: rotate(360deg); } }

/* Registrieren: Werbeteil neben dem Formular */
.reg-grid { width: 100%; max-width: 1040px; display: grid; gap: 28px 72px; align-items: center; grid-template-columns: minmax(0, 1fr) 440px; grid-template-areas: "top card" "more card"; }
.reg-top { grid-area: top; align-self: end; }
.reg-more { grid-area: more; align-self: start; }
.reg-card { grid-area: card; justify-self: center; }
.reg-eyebrow { display: inline-block; margin: 0 0 14px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-d); }
.reg-top h2 { margin: 0 0 14px; font-size: clamp(28px, 3.8vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -0.022em; }
.reg-top h2 span { color: var(--gold-d); }
.reg-top p { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.7; max-width: 520px; }
.reg-more { align-self: start; margin-top: 8px; max-width: 520px; }
.reg-sub { margin: -8px 0 22px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.reg-card label { margin-top: 20px; }
.reg-card form > label:first-child { margin-top: 0; }
.reg-next-h { margin: 0 0 14px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-d); }
.reg-next { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.reg-next li { counter-increment: s; display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.45; }
.reg-next li::before { content: counter(s); flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--gold); font-size: 14px; font-weight: 800; }

/* Tarifwahl */
.wide { width: 100%; max-width: 920px; }
.wide h1 { text-align: center; font-size: clamp(28px, 4.4vw, 40px); margin-bottom: 10px; }
.lead { text-align: center; color: var(--ink-2); font-size: 16.5px; line-height: 1.65; max-width: 560px; margin: 0 auto 32px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: var(--white); }
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(26px, 4vw, 42px); text-align: left; }
.plan + .plan { border-left: 1px solid var(--line); background: linear-gradient(180deg, #FBF6E6, #FFFFFF 72%); }
.plan-badge { position: static; display: inline-block; align-self: flex-start; margin: 0 0 12px; padding: 3px 11px; border-radius: 999px; background: var(--green); color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; }
.plan h2 { margin: 0 0 4px; font-size: 26px; }
.plan .sub { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price .old { color: var(--muted); text-decoration: line-through; font-size: 17px; order: 2; }
.price .now { font-size: clamp(38px, 5vw, 50px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price .per { color: var(--muted); font-size: 14.5px; order: 3; }
.price-note { color: var(--muted); font-size: 13px; margin: 8px 0 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; flex: 1; }
.plan li { position: relative; padding-left: 27px; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.plan li::before { content: ""; position: absolute; left: 0; top: 7px; width: 13px; height: 7px; border-left: 2px solid var(--gold-d); border-bottom: 2px solid var(--gold-d); transform: rotate(-45deg); }
.plan .book-btn { margin-top: auto; }
.plan:not(.featured) .book-btn { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.plan:not(.featured) .book-btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.wide .hint { text-align: center; }

/* Marke einrichten */
main.ob { justify-content: flex-start; }
.card.ob-card { max-width: 660px; text-align: left; }
.ob-card h1 { text-align: left; }
p.desc { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; margin: 0 0 8px; }
.ob-card .plan-badge { align-self: auto; margin-bottom: 18px; background: #FBF3D9; color: var(--gold-d); border: 1px solid rgba(142,111,34,0.3); font-size: 12px; text-transform: uppercase; }
.section-label { margin: 34px 0 4px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--gold-d); font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.section-label.first { margin-top: 22px; padding-top: 0; border-top: 0; }
.ob-card label .hint { display: block; margin: 2px 0 0; font-weight: 500; font-size: 13px; color: var(--muted); }
.wait { text-align: center; color: var(--ink-2); font-size: 15px; line-height: 1.6; padding: 16px 0; }
.list-spinner-ring { width: 30px; height: 30px; margin: 0 auto 14px; border: 3px solid rgba(11,51,40,0.15); border-top-color: var(--green); border-radius: 50%; animation: aSpin 0.8s linear infinite; }

@media (max-width: 900px) {
  .reg-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "card" "more"; max-width: 480px; gap: 24px; }
  .reg-top { text-align: left; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  main { justify-content: flex-start; padding-top: 22px; }
  .card { border-radius: 24px; }
  .atop .awrap { height: 58px; }
  .alogo { width: 92px; }
  .abar .awrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .card { animation: none; } body { transition: none; } }

/* Einrichtungs-Assistent (onboarding.html) */
.card.wiz-card { max-width: 560px; text-align: left; }
.wiz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-d); }
.wiz-bar { height: 6px; border-radius: 999px; background: var(--paper-2); overflow: hidden; margin: 0 0 26px; }
.wiz-bar i { display: block; height: 100%; width: 0; background: var(--green); border-radius: 999px; transition: width 0.5s cubic-bezier(.22,1,.36,1); }
.wiz-step { display: none; }
.wiz-step.on { display: block; animation: wIn 0.45s cubic-bezier(.22,1,.36,1) both; }
.wiz-step.on.back { animation-name: wInBack; }
@keyframes wIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes wInBack { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.wiz-step h1 { margin: 0 0 8px; }
.wiz-lead { margin: 0 0 22px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.wiz-card label .hint { display: block; margin: 2px 0 0; font-weight: 500; font-size: 13px; color: var(--muted); }
.at-wrap { position: relative; }
.at-wrap > span { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.at-wrap input { padding-left: 33px !important; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sw { width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.sw:hover { transform: scale(1.08); }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink); }
.sw-own { display: inline-flex; align-items: center; gap: 8px; margin-left: 4px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.sw-own input[type="color"] { width: 40px; height: 40px; padding: 2px; border-radius: 50%; }
.logo-row { display: flex; align-items: center; gap: 16px; }
.logo-box { width: 84px; height: 84px; flex: none; display: grid; place-items: center; border: 1.5px dashed var(--line); border-radius: 16px; background: var(--paper); color: var(--muted); font-size: 12.5px; text-align: center; overflow: hidden; }
.logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 700 15px var(--sans); cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.btn-ghost:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choices label { position: relative; margin: 0; padding: 16px 16px 14px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--paper); cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; }
.choices label strong { display: block; font-size: 17px; }
.choices label span { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.45; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices label:has(input:checked) { border-color: var(--green); background: #fff; box-shadow: 0 0 0 1.5px var(--green); }
.choices label:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.wiz-actions { display: flex; flex-direction: row-reverse; gap: 12px; margin-top: 28px; }
.wiz-actions .btn-solid { margin-top: 0; width: auto; flex: 1; }
.pv-frame { position: relative; width: 100%; max-width: 330px; margin: 0 auto; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: var(--paper-2); box-shadow: 0 24px 44px -26px rgba(11,42,33,0.45); display: grid; place-items: center; }
.pv-frame img { width: 100%; height: 100%; object-fit: cover; animation: aIn 0.6s cubic-bezier(.22,1,.36,1) both; }
.pv-wait { text-align: center; color: var(--ink-2); font-size: 14.5px; padding: 20px; }
.pv-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 4px; }
.chip { min-height: 38px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink-2); font: 600 14px var(--sans); cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease; }
.chip:hover:not(:disabled) { border-color: var(--green); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--gold); }
.pv-note { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.55; }
.pay-brand { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: #FBF3D9; color: var(--ink-2); font-size: 14.5px; }
.tarif-pv { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 26px; }
.tarif-pv img { width: 84px; border-radius: 10px; box-shadow: 0 10px 22px -12px rgba(11,42,33,0.5); }
.tarif-pv a { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
@media (max-width: 560px) { .choices { grid-template-columns: 1fr; } .wiz-actions { flex-direction: column-reverse; } .wiz-actions .btn-ghost { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .wiz-step.on, .pv-frame img { animation: none; } .wiz-bar i { transition: none; } }

/* Custom-Design-Hinweis rechts neben der Vorschau (Schritt 3), auf dem Handy darunter */
.card.wiz-card { transition: max-width 0.45s cubic-bezier(.22,1,.36,1); }
.card.wiz-card.wide3 { max-width: 920px; }
.pv-layout { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 40px; align-items: start; }
.pv-main { min-width: 0; }
.cust { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, #FBF6E6, #FFFFFF 70%); text-align: left; }
.cust-k { margin: 0 0 6px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-d); }
.cust h2 { margin: 0 0 6px; font-size: 20px; line-height: 1.25; }
.cust p { margin: 0 0 14px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.cust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.cust-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; background: var(--paper-2); box-shadow: 0 8px 18px -12px rgba(11,42,33,0.5); }
.cust a { font-size: 14.5px; font-weight: 700; color: var(--gold-d); }
@media (max-width: 800px) { .pv-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; } .cust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .card.wiz-card { transition: none; } }

/* Prüfen-Schritt nach der Zahlung */
.sum { margin: 0 0 6px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.sum li { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sum b { display: block; font-size: 13px; color: var(--muted); font-weight: 700; }
.sum span { display: block; margin-top: 2px; font-size: 15px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.sum button { flex: none; border: 0; background: none; padding: 2px 0; color: var(--gold-d); font: 700 14px var(--sans); cursor: pointer; text-decoration: underline; }
