/* Registrierung + Einrichtungsassistent */
.reg { background: #fff; }
.reg-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.reg-links { padding: 28px clamp(20px, 6vw, 96px) 40px; display: flex; flex-direction: column; }
.reg-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 48px; }
.reg-abbrechen { font-size: 14px; font-weight: 600; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
#assistent { width: 100%; max-width: 560px; }
.schritt-plakette { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: var(--nacht); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.schritt-plakette::before { content: ""; width: 7px; height: 7px; background: var(--blau); }
.schritt-plakette.hell { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }
.reg-titel { font-size: clamp(36px, 4.4vw, 56px); color: var(--nacht); }
.fortschritt { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 22px 0 30px; }
.fortschritt i { height: 6px; border-radius: 2px; background: #E6E9F4; transition: background-color .3s; }
.fortschritt i.erledigt { background: var(--blau); }
.fortschritt i.jetzt { background: repeating-linear-gradient(90deg, var(--blau) 0 6px, #9DB2FF 6px 12px); background-size: 24px 100%; animation: laufband 1s linear infinite; }
@keyframes laufband { to { background-position: 24px 0; } }

.schritt { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.schritt.aktiv { display: block; animation: einblenden .35s ease; }
.hinweis-text { color: var(--text-2); margin: 0 0 22px; font-size: 16px; }
.klein-text { color: var(--text-2); font-size: 13px; margin: 14px 0 0; }
.klein-text a { color: var(--blau); text-decoration: underline; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.feld { margin-bottom: 16px; position: relative; }
.feldreihe { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feld label, .feldname { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.feld input, .feld select { width: 100%; height: 50px; border-radius: 12px; border: 1.5px solid var(--linie); background: #fff; padding: 0 14px; font: inherit; font-size: 16px; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.feld select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #6A7092 50%), linear-gradient(135deg, #6A7092 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.feld input:focus, .feld select:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 4px rgba(85,120,245,.15); }
.feld.fehler input, .feld.fehler select, .feld.fehler .adressfeld { border-color: #E5484D; }
.feld .fehlertext { display: block; color: #C7343A; font-size: 13px; margin-top: 6px; font-weight: 500; }
.feldhilfe { display: block; color: var(--text-2); font-size: 13px; margin-top: 6px; }
.feldhilfe.gut { color: #0B7A5A; font-weight: 600; }
.feldhilfe.schlecht { color: #C7343A; font-weight: 600; }
.mit-knopf { position: relative; }
.mit-knopf input { padding-right: 50px; }
.feldknopf { position: absolute; right: 6px; top: 6px; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; color: var(--text-2); }
.feldknopf:hover { background: var(--eis); }
.feldknopf svg { width: 20px; height: 20px; }
.staerke { height: 6px; border-radius: 99px; background: #EEF0F6; margin-top: 8px; overflow: hidden; }
.staerke i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .25s, background-color .25s; }
.adressfeld { display: flex; border: 1.5px solid var(--linie); border-radius: 12px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.adressfeld:focus-within { border-color: var(--blau); box-shadow: 0 0 0 4px rgba(85,120,245,.15); }
.adressfeld input { border: 0 !important; box-shadow: none !important; border-radius: 0; flex: 1; min-width: 0; }
.adressfeld span { display: flex; align-items: center; padding: 0 14px; background: var(--eis); color: var(--text-2); font-weight: 600; border-left: 1px solid var(--linie); white-space: nowrap; }
.haken-zeile { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); cursor: pointer; margin-top: 4px; }
.haken-zeile input { position: absolute; opacity: 0; }
.haken-zeile .kasten { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #C6CDE5; display: grid; place-items: center; color: transparent; flex: none; }
.haken-zeile .kasten svg { width: 14px; height: 14px; }
.haken-zeile input:checked + .kasten { background: var(--blau); border-color: var(--blau); color: #fff; }
.haken-zeile input:focus-visible + .kasten { outline: 3px solid var(--blau); outline-offset: 2px; }

/* Farbwahl */
.farbwahl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.farbe { width: 44px; height: 44px; border-radius: 12px; position: relative; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: transform .15s; }
.farbe:hover { transform: translateY(-2px); }
.farbe input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.farbe:has(input:checked) { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--nacht); }
.farbe:has(input:focus-visible) { outline: 3px solid var(--blau); outline-offset: 5px; }
.farbe.eigene { background: conic-gradient(from 0deg, #FF7D95, #FF946A, #FFD66B, #3FCBA3, #5578F5, #8A73F5, #FF7D95); }
.farbe.eigene input[type="color"] { width: 100%; height: 100%; }
/* Logo */
.ablage { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; border: 1.5px dashed #C6CDE5; cursor: pointer; transition: border-color .15s, background-color .15s; }
.ablage:hover { border-color: var(--blau); background: var(--blau-zart); }
.ablage input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ablage:focus-within { outline: 3px solid var(--blau); outline-offset: 2px; }
.ablage-bild { width: 56px; height: 56px; border-radius: 12px; background: var(--eis); display: grid; place-items: center; color: var(--blau); overflow: hidden; flex: none; }
.ablage-bild svg { width: 22px; height: 22px; }
.ablage-bild img { width: 100%; height: 100%; object-fit: contain; }
.ablage b { display: block; font-size: 15px; }
.ablage small { color: var(--text-2); font-size: 13px; }
/* Hintergründe */
.hintergrundwahl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hg { aspect-ratio: 4 / 3; border-radius: 12px; position: relative; cursor: pointer; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.hg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.hg span { position: absolute; left: 8px; bottom: 6px; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.hg:has(input:checked) { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--nacht); }
.hg:has(input:focus-visible) { outline: 3px solid var(--blau); outline-offset: 5px; }

/* Tarif */
.zahlweise { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 14px; background: var(--eis); margin-bottom: 18px; }
.zahlweise label { position: relative; cursor: pointer; }
.zahlweise input { position: absolute; opacity: 0; }
.zahlweise span { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 10px; font-weight: 650; color: var(--text-2); transition: background-color .2s, color .2s; }
.zahlweise input:checked + span { background: #fff; color: var(--nacht); box-shadow: 0 1px 3px rgba(11,16,51,.12); }
.zahlweise input:focus-visible + span { outline: 3px solid var(--blau); }
.zahlweise em { font-style: normal; font-size: 12px; font-weight: 700; background: #DDF7EE; color: #0B7A5A; padding: 2px 8px; border-radius: 99px; }
.kopfzahl { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--linie); margin: 4px 0 18px; font-weight: 650; }
.zaehler { display: flex; align-items: center; background: var(--eis); border-radius: 10px; }
.zaehler button { width: 42px; height: 42px; font-size: 20px; font-weight: 600; border-radius: 10px; }
.zaehler button:hover { background: #E4E8F5; }
.zaehler input { width: 64px; height: 42px; border: 0; background: #fff; text-align: center; font: inherit; font-weight: 700; font-size: 16px; -moz-appearance: textfield; }
.zaehler input::-webkit-inner-spin-button { -webkit-appearance: none; }
.zusammenfassung { background: var(--nacht); color: #fff; border-radius: 18px; padding: 24px; position: relative; overflow: hidden; isolation: isolate; }
.zusammenfassung::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 100% 0%, rgba(85,120,245,.45), transparent 70%); }
.zusammenfassung h2 { margin: 0 0 14px; font-size: 18px; letter-spacing: -0.02em; }
.zf-tabelle { border: 1px solid rgba(255,255,255,.14); border-radius: 12px; overflow: hidden; font-size: 14px; }
.zf-zeile { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 11px 14px; border-top: 1px solid rgba(255,255,255,.1); }
.zf-zeile:first-child { border-top: 0; }
.zf-zeile.kopf { color: #9AA3D6; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.04); }
.zf-zeile span:nth-child(2) { color: #C3CAEE; }
.zf-zeile span:last-child { text-align: right; min-width: 72px; font-variant-numeric: tabular-nums; font-weight: 600; }
.zf-gesamt { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; }
.zf-gesamt span { font-weight: 650; }
.zf-gesamt b { font-size: 34px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.zf-fuss { margin: 6px 0 0; color: #9AA3D6; font-size: 13px; text-align: right; }

.reg-knoepfe { display: flex; gap: 12px; margin-top: 28px; }
.reg-knoepfe .knopf.primaer { flex: 1; justify-content: center; height: 52px; }
.reg-knoepfe .knopf:disabled { opacity: .6; cursor: progress; }
.vorschau-hinweis { margin: 18px 0 0; font-size: 12px; color: #8A90AE; text-align: center; }

/* Fertig */
.fertig-karte { background: var(--nacht); color: #fff; border-radius: 22px; padding: 36px 32px; position: relative; overflow: hidden; isolation: isolate; }
.fertig-karte::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 70% at 100% 0%, rgba(85,120,245,.55), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(156,134,255,.35), transparent 70%); }
.fertig-karte .display { font-size: clamp(36px, 4vw, 52px); margin: 6px 0 14px; }
.fertig-text { color: #C3CAEE; margin: 0 0 24px; font-size: 16px; }
.fertig-text b { color: #fff; }
.fertig-schritte { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 16px; }
.fertig-schritte li { display: flex; gap: 14px; align-items: flex-start; }
.fertig-schritte li > b { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; font-size: 13px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); }
.fertig-schritte li.erledigt > b { background: var(--mint); border-color: var(--mint); color: #053D2D; }
.fertig-schritte li > b svg { width: 16px; height: 16px; }
.fertig-schritte small { display: block; color: #AEB6E3; font-size: 13px; margin-top: 2px; }
.reg.ist-fertig .fortschritt, .reg.ist-fertig .reg-titel, .reg.ist-fertig #schritt-plakette, .reg.ist-fertig .reg-knoepfe { display: none; }

/* Rechts: Kundenwelt */
.reg-rechts { position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 16px 16px 16px 0; }
.welt { --akzent: #5578F5; position: relative; height: 100%; border-radius: 26px; overflow: hidden; display: grid; place-items: center; padding: 48px; isolation: isolate; transition: background .5s ease; background: var(--welt-hg, linear-gradient(140deg, #D9E3FF 0%, #9DB2FF 50%, #5578F5 100%)); }
.welt::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(70% 70% at 70% 30%, #000, transparent); }
.welt.mit-bild::before { display: none; }
.welt-fenster { width: min(560px, 100%); border-radius: 20px; overflow: hidden; background: rgba(255,255,255,.55); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); box-shadow: 0 50px 90px -40px rgba(11,16,51,.55), inset 0 1px 0 rgba(255,255,255,.8); }
.welt-leiste { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.5); }
.punkte { display: flex; gap: 6px; } .punkte i { width: 10px; height: 10px; border-radius: 50%; background: rgba(11,16,51,.18); }
.welt-url { flex: 1; text-align: center; font-size: 12px; font-weight: 600; color: #3B4060; background: rgba(255,255,255,.6); border-radius: 8px; padding: 5px 10px; margin-right: 40px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.welt-app { display: grid; grid-template-columns: 160px 1fr; min-height: 300px; }
.welt-menue { padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; border-right: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.25); }
.welt-firma { display: flex; align-items: center; gap: 8px; padding: 2px 6px 12px; font-size: 13px; min-width: 0; }
.welt-firma b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.welt-logo { width: 28px; height: 28px; border-radius: 8px; background: var(--akzent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; overflow: hidden; transition: background-color .3s; }
.welt-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.welt-menue a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; color: #3B4060; font-weight: 500; transition: opacity .3s; }
.welt-menue a svg { width: 14px; height: 14px; }
.welt-menue a.aktiv { background: rgba(255,255,255,.85); color: var(--akzent); font-weight: 650; }
.welt-menue a.aus { opacity: .3; text-decoration: line-through; }
.welt-inhalt { padding: 18px; }
.welt-inhalt small { color: #4C5170; font-size: 12px; }
.welt-inhalt h3 { margin: 2px 0 14px; font-size: 22px; letter-spacing: -0.03em; }
.welt-stempel { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.8); border-radius: 14px; padding: 12px 12px 12px 16px; }
.welt-zeit { font-size: 26px; font-weight: 750; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.welt-knopf { background: var(--akzent); color: #fff; font-weight: 650; font-size: 13px; padding: 9px 16px; border-radius: 10px; transition: background-color .3s; }
.welt-kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.welt-kacheln div { background: rgba(255,255,255,.65); border-radius: 12px; padding: 10px 12px; }
.welt-kacheln b { display: block; font-size: 18px; letter-spacing: -0.02em; }
.welt-zitat { position: absolute; left: 40px; bottom: 40px; border-radius: 18px; padding: 20px 22px; color: #fff; background: rgba(6,9,32,.55); }
.welt-zitat ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-weight: 600; font-size: 15px; }
.welt-zitat li { display: flex; gap: 10px; align-items: center; }
.welt-zitat li svg { width: 18px; height: 18px; color: var(--mint); }

@media (max-width: 960px) {
  .reg-raster { grid-template-columns: 1fr; }
  .reg-rechts { position: relative; height: auto; padding: 0 16px 16px; order: 2; }
  .welt { padding: 40px 16px 160px; }
  .welt-fenster { transform: none; }
  .welt-zitat { left: 16px; right: 16px; bottom: 16px; }
  .reg-kopf { margin-bottom: 28px; }
}
@media (max-width: 520px) {
  .feldreihe { grid-template-columns: 1fr; gap: 0; }
  .hintergrundwahl { grid-template-columns: repeat(2, 1fr); }
  .welt-app { grid-template-columns: 1fr; }
  .welt-menue { display: none; }
  .zf-zeile { grid-template-columns: 1fr auto; }
  .zf-zeile span:nth-child(2) { display: none; }
  .fertig-karte { padding: 28px 20px; }
}
.feld label.ablage { display: flex; margin: 0; font-weight: 400; }
.feld label.farbe, .feld label.hg { margin: 0; }
[tabindex="-1"]:focus { outline: none; }
