/* Ferstl & Singerer Kanzleisysteme · Anmeldung (Variante A+B aus site/login)
   Baut auf styles.css auf (Tokens, Buttons, Nummernfeld, Telefon-Bühne).
   Eine Stufe feiner als die Landingpage: Haarlinien statt Rahmen, weichere Schatten,
   ruhigere Flächen, tabellarische Ziffern. Alles ohne echte Logik. */

:root {
  --hair: rgba(14, 28, 31, .08);
  --hair-d: rgba(255, 255, 255, .12);
  --r-l: 30px;
  --r-m: 22px;
  --r-s: 16px;
}

/* ---------- Grundgerüst ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--white); }
.login--dark { color: var(--white); }
.login--dark .logo { color: var(--white); }
.login--dark .logo__mark { background: var(--pist); }
.login--dark .logo__mark::after { background: var(--white); box-shadow: 0 0 0 2px var(--petrol-deep); }

.lbar { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; padding-inline: clamp(20px, 3vw, 44px); }
.lbar__right { display: flex; align-items: center; gap: 10px; font: 500 14px/1 var(--font); color: var(--muted); }
.login--dark .lbar__right { color: var(--on-dark-muted); }
.lmain { flex: 1; display: flex; flex-direction: column; }

.linkbtn { padding: 0; border: 0; background: none; font: 600 inherit; font-size: inherit; line-height: inherit; color: var(--petrol); cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .25s, color .2s; }
.linkbtn:hover { text-decoration-color: currentColor; }
.login--dark .linkbtn { color: var(--pist); }

/* ---------- Typo ---------- */
.eyebrow-l { margin: 0 0 12px; font: 700 12px/1.4 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--petrol); }
.login--dark .eyebrow-l { color: var(--pist); }
.h-l { margin: 0; font: 800 clamp(30px, 3.2vw, 40px)/1.08 var(--font); letter-spacing: -.035em; text-wrap: balance; }
.h-l .tone, .after h1 .tone { font: italic 400 1.06em/1 var(--sig); letter-spacing: 0; color: var(--petrol); }
.login--dark .h-l .tone { color: var(--pist); }
.p-l { margin: 14px 0 0; font: 400 16px/1.55 var(--font); color: var(--muted); }
.p-l b { color: var(--ink); font-weight: 700; }
.login--dark .p-l { color: var(--on-dark-muted); }
.login--dark .p-l b { color: var(--white); }
.lhint { margin: 12px 4px 0; font: 500 13.5px/1.5 var(--font); color: var(--muted); }
.lhint--err { margin-top: 10px; color: var(--danger); }
.lhint--err:empty { display: none; }
.login--dark .lhint { color: var(--on-dark-muted); }
.login--dark .lhint--err { color: #ffb8ab; }
.lrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 14px 0 0; font: 500 13.5px/1.4 var(--font); color: var(--muted); }
.login--dark .lrow { color: var(--on-dark-muted); }

/* ---------- Eingabefeld (gleiche DNA wie das Nummernfeld) ---------- */
.lform { margin: 0; }
.lfield { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 20px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1.5px rgba(14, 28, 31, .12), 0 16px 40px -16px rgba(7, 52, 58, .22); transition: box-shadow .25s; }
.lfield:focus-within { box-shadow: inset 0 0 0 2px var(--petrol), 0 16px 40px -16px rgba(7, 52, 58, .25); }
.lfield__ic { width: 18px; height: 18px; flex: none; color: var(--muted); stroke-width: 1.8; }
.lfield input { flex: 1; min-width: 0; padding: 10px 0; border: 0; outline: 0; background: transparent; font: 400 16.5px/1.4 var(--font); color: var(--ink); }
.lfield input::placeholder { color: var(--muted); opacity: 1; }
.lfield input:focus-visible { outline: 0; }
.lfield .go { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--petrol); color: var(--white); cursor: pointer; transition: background-color .25s, transform .25s var(--ease); }
.lfield .go svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.lfield .go:hover { background: var(--petrol-600); }
.lfield .go:hover svg { transform: translateX(2px); }
.lfield.is-error { box-shadow: inset 0 0 0 2px var(--danger), 0 16px 40px -16px rgba(7, 52, 58, .22); animation: hint .5s var(--ease); }
.login--dark .lfield { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.login--dark .lfield:focus-within { box-shadow: inset 0 0 0 1.5px var(--pist); }
.login--dark .lfield input { color: var(--white); }
.login--dark .lfield input::placeholder { color: var(--on-dark-muted); }
.login--dark .lfield .go { background: var(--pist); color: var(--petrol-deep); }
.login--dark .lfield .go:hover { background: #d4e69c; }

/* ---------- Ablauf ---------- */
.lstep { display: none; scroll-margin-bottom: 120px; }
.lstep.is-active { display: block; animation: stepIn .55s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } }

/* Optionen (Passkey, Code, Anruf) */
.opts { display: grid; gap: 10px; margin-top: 22px; }
.opt { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 14px; width: 100%; padding: 13px 16px 13px 13px; border: 0; border-radius: var(--r-m); background: var(--white); box-shadow: inset 0 0 0 1px var(--hair); font: inherit; color: inherit; text-align: left; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s, background-color .3s; }
.opt:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(11, 79, 85, .35), 0 20px 44px -24px rgba(7, 52, 58, .4); }
.opt__ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; background: var(--surface); color: var(--petrol); }
.opt__ic svg { width: 22px; height: 22px; stroke-width: 1.7; }
.opt--rec .opt__ic { background: var(--petrol); color: var(--white); }
.opt__t strong { display: block; font: 700 15.5px/1.3 var(--font); letter-spacing: -.01em; }
.opt__t em { display: block; margin-top: 2px; font: 400 13.5px/1.4 var(--font); font-style: normal; color: var(--muted); }
.opt__k { padding: 6px 10px; border-radius: 999px; background: var(--pist-soft); color: var(--petrol-deep); font: 700 11.5px/1 var(--font); white-space: nowrap; }
.opt__arrow { width: 18px; height: 18px; color: var(--muted); transition: transform .3s var(--ease); }
.opt:hover .opt__arrow { transform: translateX(3px); }
.login--dark .opt { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--hair-d); }
.login--dark .opt:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(200, 221, 138, .5); }
.login--dark .opt__ic { background: rgba(255, 255, 255, .08); color: var(--pist); }
.login--dark .opt--rec .opt__ic { background: var(--pist); color: var(--petrol-deep); }
.login--dark .opt__t em, .login--dark .opt__arrow { color: var(--on-dark-muted); }
.login--dark .opt__k { background: rgba(200, 221, 138, .18); color: var(--pist); }

/* Fremdanbieter */
.or { display: flex; align-items: center; gap: 14px; margin: 22px 0 0; font: 700 11.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.login--dark .or { color: var(--on-dark-muted); }
.login--dark .or::before, .login--dark .or::after { background: var(--hair-d); }
.idps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.idp { flex: 1 1 auto; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 18px; border: 0; border-radius: 999px; font: 500 15px/1.2 var(--font); cursor: pointer; transition: transform .25s var(--ease), background-color .25s; }
.idp:hover { transform: translateY(-1px); }
/* DATEV Design Guideline: heller Hintergrund #F6F7F9, Schrift #2C3335, Noto Sans Display 16px Medium, Logo 16–32 px. */
.idp--datev { background: #f6f7f9; color: #2c3335; box-shadow: inset 0 0 0 1px rgba(44, 51, 53, .08); font: 500 16px/1.2 "Noto Sans Display", var(--font); }
.idp--datev:hover { background: #eceff3; }
.idp--ms { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); }
.idp--ms:hover { background: var(--surface); }
.idp__logo { width: 20px; height: 20px; flex: none; border-radius: 5px; border: 1.5px dashed rgba(44, 51, 53, .35); } /* Platzhalter: Logos erst nach Nutzungsvertrag */
.login--dark .idp--ms { background: rgba(255, 255, 255, .06); color: var(--white); box-shadow: inset 0 0 0 1px var(--hair-d); }
.login--dark .idp--ms:hover { background: rgba(255, 255, 255, .1); }
.login--dark .idp--ms .idp__logo { border-color: rgba(255, 255, 255, .4); }

/* Code-Felder */
.code { display: flex; gap: 8px; margin-top: 18px; }
.code input { width: 50px; height: 60px; border: 0; border-radius: var(--r-s); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); font: 700 26px/1 var(--font); text-align: center; color: var(--ink); font-variant-numeric: tabular-nums; caret-color: var(--petrol); transition: box-shadow .2s, background-color .2s; }
.code input:focus { outline: 0; background: var(--white); box-shadow: inset 0 0 0 2px var(--petrol); }
.code input.is-filled { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--petrol); animation: pop .35s var(--ease); }
.code.is-ok input { background: var(--pist-soft); box-shadow: inset 0 0 0 1.5px var(--pist-600); }
.login--dark .code input { background: rgba(255, 255, 255, .06); color: var(--white); box-shadow: inset 0 0 0 1px var(--hair-d); caret-color: var(--pist); }
.login--dark .code input:focus, .login--dark .code input.is-filled { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px var(--pist); }
.login--dark .code.is-ok input { background: rgba(200, 221, 138, .18); }

/* Passkey-Abfrage (nachgestellter Systemdialog) */
.osprompt { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; margin-top: 20px; padding: 18px; border-radius: var(--r-m); background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair), 0 28px 64px -30px rgba(7, 52, 58, .45); }
.osprompt__ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: var(--surface); color: var(--petrol); }
.osprompt__ic svg { width: 28px; height: 28px; stroke-width: 1.6; }
.osprompt__ic .i-check { display: none; }
.osprompt:not(.is-ok) .osprompt__ic svg { animation: pulse 1.4s ease-in-out infinite; }
.osprompt.is-ok .osprompt__ic { background: var(--pist); color: var(--petrol-deep); }
.osprompt.is-ok .i-fp { display: none; }
.osprompt.is-ok .i-check { display: block; }
.osprompt__t strong { display: block; font: 700 15px/1.3 var(--font); }
.osprompt__t span { display: block; margin-top: 3px; font: 400 13px/1.4 var(--font); color: var(--muted); }
.osprompt__site { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--hair); font: 600 12.5px/1 var(--font); color: var(--muted); }
.osprompt__site svg { width: 14px; height: 14px; color: var(--petrol); }
@keyframes pulse { 50% { opacity: .4; transform: scale(.94); } }

/* Anruf-Karte (kompakt) */
.callcard { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px 14px; align-items: center; margin-top: 20px; padding: 18px; border-radius: var(--r-m); background: var(--petrol-deep); color: var(--white); }
.callcard .ring { width: 52px; height: 52px; background: var(--pist); color: var(--petrol-deep); }
.callcard .ring::before, .callcard .ring::after { border-color: var(--pist); }
.callcard.is-connected .ring svg { animation: none; }
.callcard.is-connected .ring::before, .callcard.is-connected .ring::after { display: none; }
.callcard.is-done .ring { background: var(--white); }
.callcard__t strong { display: block; font: 700 15px/1.3 var(--font); }
.callcard__t span { display: block; margin-top: 3px; font: 400 13px/1.4 var(--font); color: var(--on-dark-muted); }
.callcard__timer { font: 600 14px/1 var(--font); color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.callcard .lwave { grid-column: 1 / -1; height: 34px; color: var(--pist); }
.key1 { display: flex; align-items: center; gap: 10px; font: 500 13px/1.4 var(--font); color: var(--on-dark-muted); }
.callcard .key1 { grid-column: 1 / -1; }
.key1 kbd { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px var(--hair-d); font: 700 13px/1 var(--font); color: var(--white); transition: background-color .3s, color .3s; }
.key1.is-on kbd { background: var(--pist); color: var(--petrol-deep); }

/* Wellenform */
.lwave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 40px; color: var(--petrol); }
.lwave i { width: 3px; height: 100%; border-radius: 3px; background: currentColor; transform: scaleY(.1); will-change: transform; }

/* ---------- Variante A: Gespräch ---------- */
.v-a { background: radial-gradient(900px 520px at 6% -12%, var(--mint) 0%, transparent 62%), radial-gradient(700px 420px at 104% 108%, var(--pist-soft) 0%, transparent 62%), var(--white); }
.conv { width: min(620px, 100%); margin: 0 auto; padding: clamp(8px, 3vh, 40px) 20px 140px; }
.who { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.who__av { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--petrol); color: var(--pist); }
.who__av .lwave { height: 16px; gap: 2px; color: var(--pist); }
.who__av .lwave i { width: 2.5px; }
.who__t strong { display: block; font: 700 15px/1.2 var(--font); }
.who__t span { display: flex; align-items: center; gap: 7px; margin-top: 4px; font: 500 12.5px/1 var(--font); color: var(--muted); }
.who__t span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pist-600); box-shadow: 0 0 0 3px var(--pist-soft); }
.thread { display: flex; flex-direction: column; gap: 14px; }
.flow--stack .lstep { flex-direction: column; gap: 10px; }
.flow--stack .lstep.is-active, .flow--stack .lstep.is-done { display: flex; }
.flow--stack .lstep.is-done { animation: none; }
.ai { align-self: flex-start; max-width: 88%; margin: 0; padding: 13px 17px; border-radius: 20px 20px 20px 6px; background: var(--white); box-shadow: inset 0 0 0 1px var(--hair), 0 12px 32px -20px rgba(7, 52, 58, .3); font: 500 16px/1.45 var(--font); animation: pop .5s var(--ease) both; animation-delay: calc(var(--i, 0) * .38s); }
.ai + .ai { border-top-left-radius: 6px; }
.ai b { font-weight: 700; }
.is-done .ai { animation: none; }
.you { align-self: flex-end; max-width: 88%; margin: 0; padding: 13px 17px; border-radius: 20px 20px 6px 20px; background: var(--petrol); color: var(--white); font: 500 16px/1.45 var(--font); animation: pop .4s var(--ease); }
.turn__you { margin-top: 8px; animation: pop .5s var(--ease) both; animation-delay: calc(var(--n, 1) * .38s + .1s); }
.turn__said { display: none; justify-content: flex-end; }
.is-done .turn__you { display: none; }
.is-done .turn__said { display: flex; }
.thread .alt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.thread .alt .idp { flex: 0 1 auto; padding: 10px 16px; font-size: 14px; }
.thread .alt .idp--datev { font-size: 15px; }
.thread .alt__or { font: 700 11.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.thread .osprompt, .thread .callcard { margin-top: 6px; }
.thread .code { margin-top: 6px; }

/* ---------- Variante A+B: Gespräch links, Glas rechts ---------- */
.v-ab .lbar { position: absolute; left: 0; right: 0; top: 0; }
.v-ab .lmain { display: grid; grid-template-columns: minmax(440px, 48%) 1fr; align-items: start; min-height: 100vh; min-height: 100dvh; }
.v-ab .convpanel { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; min-height: 100dvh; padding: 104px clamp(24px, 5vw, 80px) 150px; background: radial-gradient(760px 480px at 0% -10%, var(--mint) 0%, transparent 60%), var(--white); }
.v-ab .conv { width: min(560px, 100%); padding: 0; margin: 0; }
.v-ab .glass { position: sticky; top: 0; height: 100vh; height: 100dvh; }
.v-ab .glass .stage { min-height: 0; height: 100%; }
.v-ab .glass .scene { width: min(640px, 94%); height: 640px; }
.v-ab .ai { box-shadow: inset 0 0 0 1px var(--hair), 0 14px 36px -22px rgba(7, 52, 58, .35); }

/* ---------- Variante B: Live-Ansicht hinter Glas ---------- */
.v-b .lbar { position: absolute; left: 0; right: 0; top: 0; }
.v-b .lmain { display: grid; grid-template-columns: minmax(400px, 46%) 1fr; min-height: 100vh; min-height: 100dvh; }
.panel { display: flex; align-items: center; padding: 110px clamp(24px, 6vw, 96px) 130px; }
.panel__box { width: min(480px, 100%); }
.panel .lfield { margin-top: 28px; }
.panel .back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; font-size: 13.5px; }
.panel .back svg { width: 14px; height: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 36px 0 0; padding: 0; list-style: none; font: 600 13px/1.3 var(--font); color: var(--muted); }
.facts li { display: flex; align-items: center; gap: 7px; }
.facts svg { width: 14px; height: 14px; color: var(--petrol); stroke-width: 2.4; }
.glass { position: relative; overflow: hidden; background-color: var(--petrol-deep); background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 28px 28px; color: var(--white); }
.glass::before { content: ""; position: absolute; inset: 0; background: radial-gradient(760px 540px at 50% 62%, rgba(200, 221, 138, .16), transparent 62%); pointer-events: none; }
.glass__badge { position: absolute; left: 50%; top: 28px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--white); font: 600 13px/1 var(--font); white-space: nowrap; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--hair-d); transform: translateX(-50%); transition: background-color .6s, color .6s; }
.glass__badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--pist); }
.glass.is-clear .glass__badge { background: var(--pist); color: var(--petrol-deep); }
.glass.is-clear .glass__badge i { background: var(--petrol-deep); }
.glass__badge .b-live, .glass.is-clear .glass__badge .b-demo { display: none; }
.glass.is-clear .glass__badge .b-live { display: inline; }
.glass .stage { height: 100%; min-height: 100vh; min-height: 100dvh; margin: 0; display: grid; place-items: center; perspective: 1800px; perspective-origin: 50% 32%; }
.glass .stage::before { display: none; }
.glass .scene { width: 720px; height: 700px; transform: rotateX(8deg) rotateY(-9deg) scale(.86); filter: blur(7px) saturate(.85); transition: transform 1.5s var(--ease), filter 1.3s var(--ease); }
.glass.is-clear .scene { transform: none; filter: none; }
.glass .device__screen .lwave { height: 56px; padding: 0 30px; color: var(--petrol); }
.glass .device__screen .lwave i { width: 4px; }
.glass .device__screen .lwave.is-caller { color: #9aa9ab; }
.glass .float-card { animation: bob 7s ease-in-out infinite; }
.glass .float-card--right { animation-delay: -3s; }

/* ---------- Variante C: Zugangsmedien ---------- */
.v-c { background: radial-gradient(1000px 600px at 50% -24%, var(--mint) 0%, transparent 62%), var(--white); }
.pick { width: min(1060px, 100%); margin: 0 auto; padding: clamp(16px, 5vh, 64px) 20px 140px; text-align: center; }
.pick .p-l { max-width: 560px; margin-inline: auto; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; perspective: 1400px; }
.mcard { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 330px; padding: 28px; border: 0; border-radius: var(--r-l); background: var(--white); box-shadow: inset 0 0 0 1px var(--hair), 0 30px 60px -44px rgba(7, 52, 58, .45); font: inherit; color: inherit; text-align: left; cursor: pointer; overflow: hidden; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: box-shadow .45s, transform .14s linear; }
.mcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(112deg, transparent 32%, rgba(255, 255, 255, .5) 48%, transparent 60%); transform: translateX(-130%); transition: transform 1s var(--ease); pointer-events: none; }
.mcard:hover::after { transform: translateX(130%); }
.mcard:hover { box-shadow: inset 0 0 0 1px rgba(11, 79, 85, .3), 0 46px 90px -46px rgba(7, 52, 58, .55); }
.mcard__ic { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: var(--surface); color: var(--petrol); transform: translateZ(36px); }
.mcard__ic svg { width: 30px; height: 30px; stroke-width: 1.6; }
.mcard__k { margin: 28px 0 0; font: 700 12px/1.4 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mcard h3 { margin: 6px 0 0; font: 800 24px/1.15 var(--font); letter-spacing: -.025em; }
.mcard p { margin: 8px 0 0; font: 400 14.5px/1.5 var(--font); color: var(--muted); }
.mcard__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 22px; font: 700 14px/1 var(--font); color: var(--petrol); }
.mcard__go svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.mcard:hover .mcard__go svg { transform: translateX(4px); }
.mcard--primary { background: var(--petrol); color: var(--white); box-shadow: 0 34px 70px -34px rgba(7, 52, 58, .7); }
.mcard--primary::after { background: linear-gradient(112deg, transparent 32%, rgba(255, 255, 255, .16) 48%, transparent 60%); }
.mcard--primary .mcard__ic { background: rgba(255, 255, 255, .12); color: var(--pist); }
.mcard--primary .mcard__k, .mcard--primary p { color: var(--on-dark-muted); }
.mcard--primary .mcard__go { color: var(--pist); }
.mcard--soft { background: var(--pist-soft); box-shadow: inset 0 0 0 1px rgba(169, 199, 96, .35), 0 30px 60px -44px rgba(7, 52, 58, .45); }
.mcard--soft .mcard__ic { background: var(--white); color: var(--petrol-deep); }
.mcard--datev .idp__logo { width: 24px; height: 24px; }
.pick .or, .pick .lfield { max-width: 520px; margin-inline: auto; }
.pick .lfield { margin-top: 18px; }
.chosen { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); font: 700 14px/1 var(--font); }
.chosen i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--petrol); color: var(--white); }
.chosen svg { width: 15px; height: 15px; stroke-width: 2; }
.chosen--ok i { background: var(--pist); color: var(--petrol-deep); }
.pick .lstep .h-l { margin-top: 20px; }
.pick .box { width: min(520px, 100%); margin: 8px auto 0; text-align: left; }
.pick .box .code { justify-content: center; }
.pick .box .lrow { justify-content: center; }

/* ---------- Variante D: Der Anruf ---------- */
.v-d { background-color: var(--petrol-deep); background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 28px 28px; }
.v-d::before { content: ""; position: fixed; inset: 0; background: radial-gradient(820px 620px at 50% 46%, rgba(200, 221, 138, .13), transparent 66%); pointer-events: none; }
.callpage { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 20px 150px; text-align: center; }
.callpage .lstep.is-active { width: 100%; display: flex; flex-direction: column; align-items: center; }
.callpage .p-l { max-width: 520px; }
.callpage .lform { width: min(520px, 100%); margin-top: 28px; }
.calt { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin: 26px 0 0; font: 500 14px/1.4 var(--font); color: var(--on-dark-muted); }
.rings { position: relative; width: 240px; height: 240px; display: grid; place-items: center; margin: 0 auto; }
.rings i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(200, 221, 138, .35); animation: ripple 2.8s ease-out infinite; }
.rings i:nth-child(2) { animation-delay: .95s; }
.rings i:nth-child(3) { animation-delay: 1.9s; }
.rings.is-connected i { animation-duration: 1.7s; border-color: rgba(200, 221, 138, .6); }
.rings.is-done i { animation: none; opacity: 0; }
.mark { position: relative; width: 116px; height: 116px; display: grid; place-items: center; border-radius: 50%; background: var(--pist); color: var(--petrol-deep); box-shadow: 0 30px 70px -24px rgba(200, 221, 138, .5); transform: scale(calc(1 + var(--amp, 0) * .07)); transition: transform .1s linear; }
.mark svg { width: 46px; height: 46px; stroke-width: 1.8; }
.mark .i-check { display: none; }
.rings.is-done .mark { background: var(--white); }
.rings.is-done .mark .i-phone { display: none; }
.rings.is-done .mark .i-check { display: block; }
.cstate { margin: 30px 0 0; font: 700 12px/1.4 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--pist); min-height: 1.4em; }
.cname { margin: 8px 0 0; font: 800 clamp(28px, 3.4vw, 40px)/1.1 var(--font); letter-spacing: -.035em; }
.cmeta { margin: 8px 0 0; font: 400 16px/1.5 var(--font); color: var(--on-dark-muted); }
.ctimer { margin: 10px 0 0; font: 600 15px/1 var(--font); color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.lwave--big { height: 64px; gap: 4px; margin-top: 26px; color: var(--pist); width: min(420px, 100%); }
.lwave--big i { width: 4px; }
.callpage .key1 { justify-content: center; margin-top: 22px; }
.callpage .code { justify-content: center; margin-top: 22px; }
.callpage .code input { width: 56px; height: 68px; font-size: 30px; }
.callpage .osprompt { width: min(460px, 100%); text-align: left; }

/* ---------- Variante E: Tresor ---------- */
.v-e { background-color: var(--petrol-deep); background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 28px 28px; }
.v-e::before { content: ""; position: fixed; inset: 0; background: radial-gradient(700px 500px at 50% 40%, rgba(11, 79, 85, .55), transparent 70%); pointer-events: none; }
.vaultwrap { position: relative; flex: 1; display: grid; grid-template-columns: 1fr minmax(360px, 464px) 1fr; align-items: center; gap: clamp(20px, 4vw, 56px); padding: 20px clamp(20px, 4vw, 56px) 150px; }
.vcol { display: flex; flex-direction: column; }
.vault { position: relative; padding: 36px; border-radius: 32px; background: rgba(255, 255, 255, .04); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 60px 120px -60px rgba(0, 0, 0, .7); }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.vault::before { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; background: conic-gradient(from var(--a), rgba(255, 255, 255, .1) 0 68%, var(--pist) 82%, rgba(255, 255, 255, .1) 92% 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: turn 7s linear infinite; pointer-events: none; }
@keyframes turn { to { --a: 360deg; } }
.vault__mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: rgba(200, 221, 138, .12); color: var(--pist); }
.vault__mark svg { width: 22px; height: 22px; stroke-width: 1.8; }
.vault .h-l { margin-top: 22px; font-size: 30px; }
.vault .lfield { margin-top: 24px; }
.vault .idps { margin-top: 12px; }
.vault .idp--datev { flex-basis: 100%; }
.vault__foot { margin: 22px 0 0; font: 400 13.5px/1.5 var(--font); color: var(--on-dark-muted); }
.vfacts { display: grid; gap: 10px; }
.vfacts--l { justify-self: end; }
.vfact { display: flex; align-items: center; gap: 12px; width: min(100%, 290px); padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--hair-d); font: 600 14px/1.3 var(--font); }
.vfact i { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(200, 221, 138, .12); color: var(--pist); }
.vfact svg { width: 17px; height: 17px; stroke-width: 1.8; }
.vfact span { display: block; margin-top: 2px; font: 400 12.5px/1.4 var(--font); color: var(--on-dark-muted); }
.lastlogin { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 0; font: 500 13px/1.4 var(--font); color: var(--on-dark-muted); }
.lastlogin svg { width: 14px; height: 14px; color: var(--pist); }

/* ---------- Tür 2: Noch kein Kunde ---------- */
.sheet, .modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: flex-end; justify-content: center; background: rgba(7, 52, 58, .5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.sheet.is-open, .modal.is-open { display: flex; animation: fade .3s; }
.modal { z-index: 95; align-items: center; padding: 20px; }
@keyframes fade { from { opacity: 0; } }
.sheet__card { width: min(880px, 100%); max-height: 92vh; overflow: auto; padding: clamp(24px, 4vw, 40px); border-radius: 32px 32px 0 0; background: var(--white); color: var(--ink); box-shadow: var(--shadow-2); animation: up .55s var(--ease); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet__head, .modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.sheet h2 { margin: 6px 0 0; font: 800 clamp(26px, 3vw, 34px)/1.1 var(--font); letter-spacing: -.035em; }
.sheet__lead { margin: 14px 0 0; max-width: 580px; font: 400 16px/1.55 var(--font); color: var(--muted); }
.x { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; transition: background-color .25s; }
.x:hover { background: var(--mint); }
.x svg { width: 16px; height: 16px; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.door { display: flex; flex-direction: column; padding: 26px; border-radius: 26px; background: var(--surface); }
.door--dark { background: var(--petrol-deep); color: var(--white); }
.door h3 { margin: 0; font: 800 19px/1.3 var(--font); letter-spacing: -.015em; }
.door p { margin: 6px 0 0; font: 400 14.5px/1.5 var(--font); color: var(--muted); }
.door--dark p { color: var(--on-dark-muted); }
.cal { margin-top: 18px; }
.cal__days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.cal__d { padding: 10px 4px 9px; border: 0; border-radius: 12px; background: var(--white); font: 600 11.5px/1.2 var(--font); color: var(--muted); text-align: center; cursor: pointer; transition: background-color .25s, color .25s; }
.cal__d b { display: block; margin-top: 3px; font: 800 17px/1 var(--font); color: var(--ink); font-variant-numeric: tabular-nums; }
.cal__d.is-on { background: var(--petrol); color: rgba(255, 255, 255, .7); }
.cal__d.is-on b { color: var(--white); }
.cal__slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cal__s { padding: 9px 13px; border: 0; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--hair); font: 600 13px/1 var(--font); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; transition: background-color .25s, box-shadow .25s; }
.cal__s.is-on { background: var(--pist); color: var(--petrol-deep); box-shadow: none; }
.door .btn { width: 100%; margin-top: 18px; }
.door .callme { margin: 18px 0 0; max-width: none; }
.door .callme__field { flex-wrap: wrap; border-radius: 28px; padding: 10px 10px 10px 20px; }
.door .callme__input { flex: 1 1 140px; padding-block: 8px; }
.door .callme__field .btn { flex: 1 1 100%; }
.has-overlay .vswitch { opacity: 0; pointer-events: none; transition: opacity .2s; }
.door .lhint { text-align: left; }
.sheet__foot { margin: 22px 0 0; font: 500 14px/1.5 var(--font); color: var(--muted); }
@media (min-width: 900px) { .sheet { align-items: center; padding: 24px; } .sheet__card { border-radius: 32px; } }

/* ---------- Weiterleitung (DATEV / Microsoft) ---------- */
.modal__card { width: min(520px, 100%); padding: 28px; border-radius: 28px; background: var(--white); color: var(--ink); box-shadow: var(--shadow-2); animation: pop .45s var(--ease); }
.modal__head h2 { margin: 0; font: 800 22px/1.2 var(--font); letter-spacing: -.02em; }
.modal__p { margin: 10px 0 0; font: 400 15px/1.5 var(--font); color: var(--muted); }
.media { display: grid; gap: 8px; margin-top: 18px; }
.modal[data-idp="ms"] .media { display: none; }
.media button { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: var(--r-s); background: var(--surface); font: inherit; color: inherit; text-align: left; cursor: pointer; transition: background-color .25s, transform .25s var(--ease); }
.media button:hover { background: var(--mint); transform: translateY(-1px); }
.media i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--white); color: var(--petrol); }
.media svg { width: 20px; height: 20px; stroke-width: 1.7; }
.media strong { display: block; font: 700 14.5px/1.3 var(--font); }
.media em { display: block; margin-top: 2px; font: 400 12.5px/1.4 var(--font); font-style: normal; color: var(--muted); }
.media .opt__arrow { width: 16px; height: 16px; }
.progress { height: 3px; margin-top: 22px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress span { display: block; width: 0; height: 100%; background: var(--petrol); transition: width 1.7s var(--ease); }
.modal.is-busy .progress span { width: 100%; }
.modal__note { margin: 14px 0 0; font: 400 12.5px/1.5 var(--font); color: var(--muted); }

/* ---------- Nach dem Login: Übergang ins Dashboard ---------- */
.after { position: fixed; inset: 0; z-index: 70; display: none; flex-direction: column; overflow: auto; background: var(--surface); color: var(--ink); }
.after.is-open { display: flex; animation: clear 1s var(--ease) both; }
@keyframes clear { from { opacity: 0; filter: blur(16px); transform: scale(1.03); } to { opacity: 1; filter: blur(0); transform: none; } }
.after__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding-inline: clamp(20px, 3vw, 44px); background: var(--white); border-bottom: 1px solid var(--line); }
.after__org { display: flex; align-items: center; gap: 12px; font: 500 14px/1 var(--font); color: var(--muted); }
.after__org b { color: var(--ink); font-weight: 700; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--petrol); font: 800 12.5px/1 var(--font); }
.after__body { width: 100%; max-width: 1200px; margin-inline: auto; padding: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 44px) 120px; }
.after h1 { margin: 0; font: 800 clamp(28px, 3.4vw, 40px)/1.1 var(--font); letter-spacing: -.035em; }
.after__sub { margin: 10px 0 0; font: 400 16px/1.5 var(--font); color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.tile { display: flex; flex-direction: column; min-height: 200px; padding: 22px; border-radius: var(--r-m); background: var(--white); box-shadow: inset 0 0 0 1px var(--hair); }
.tile__k { margin: 0; font: 700 12px/1.4 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tile__n { margin: 12px 0 0; font: 800 40px/1 var(--font); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.tile__l { margin: 6px 0 0; font: 400 14px/1.4 var(--font); color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin-top: auto; padding-top: 18px; }
.bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: var(--mint); height: var(--h, 40%); }
.bars i.is-hi { background: var(--petrol); }
.notes-m { display: grid; gap: 8px; margin-top: 14px; }
.notes-m div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); font: 600 13.5px/1.3 var(--font); }
.notes-m span { font-weight: 400; color: var(--muted); text-align: right; }
.tile--dark { background: var(--petrol-deep); color: var(--white); box-shadow: none; }
.tile--dark .tile__k, .tile--dark .tile__l { color: var(--on-dark-muted); }
.tile--dark .lwave { height: 56px; margin-top: auto; justify-content: flex-start; color: var(--pist); }

/* ---------- Varianten-Schalter (nur Prototyp) ---------- */
.vswitch { position: fixed; left: 50%; bottom: 18px; z-index: 100; display: flex; align-items: center; gap: 3px; padding: 5px; border-radius: 999px; background: rgba(14, 28, 31, .92); box-shadow: 0 20px 44px -16px rgba(0, 0, 0, .55); transform: translateX(-50%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.vswitch a, .vswitch button { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .72); font: 700 13px/1 var(--font); text-decoration: none; cursor: pointer; transition: background-color .25s, color .25s; }
.vswitch a:hover, .vswitch button:hover { color: var(--white); background: rgba(255, 255, 255, .09); }
.vswitch a.is-on { background: var(--pist); color: var(--petrol-deep); }
.vswitch .sep { width: 1px; height: 20px; margin: 0 4px; background: rgba(255, 255, 255, .16); }
.vswitch svg { width: 16px; height: 16px; }
.login .proto-tag { opacity: .7; }

/* ---------- Übersicht ---------- */
.ov { width: min(1100px, 100%); margin: 0 auto; padding: clamp(24px, 5vh, 64px) 20px 140px; }
.ov .p-l { max-width: 640px; }
.ov__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 40px; }
.ovcard { display: flex; flex-direction: column; border-radius: var(--r-l); background: var(--white); box-shadow: inset 0 0 0 1px var(--hair), 0 30px 60px -44px rgba(7, 52, 58, .4); color: inherit; text-decoration: none; overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s; }
.ovcard:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(11, 79, 85, .3), 0 44px 80px -44px rgba(7, 52, 58, .5); }
.ovcard__prev { position: relative; height: 176px; background: var(--surface); overflow: hidden; }
.ovcard__prev--dark { background-color: var(--petrol-deep); background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 14px 14px; }
.ovcard__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.ovcard__k { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--petrol); color: var(--white); font: 800 14px/1 var(--font); }
.ovcard h3 { margin: 14px 0 0; font: 800 20px/1.2 var(--font); letter-spacing: -.02em; }
.ovcard p { margin: 8px 0 0; font: 400 14.5px/1.5 var(--font); color: var(--muted); }
.ovcard .mcard__go { padding-top: 18px; }
.ovcard--rec .ovcard__k { background: var(--pist); color: var(--petrol-deep); }
.mini { position: absolute; border-radius: 8px; background: var(--white); box-shadow: inset 0 0 0 1px var(--hair); }
.mini--bub { border-radius: 12px 12px 12px 4px; }
.mini--you { border-radius: 12px 12px 4px 12px; background: var(--petrol); box-shadow: none; }
.mini--dark { background: var(--petrol-deep); box-shadow: none; }
.mini--pist { background: var(--pist); box-shadow: none; }
.mini--soft { background: var(--pist-soft); box-shadow: none; }
.mini--glass { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--hair-d); }
.mini--pill { border-radius: 999px; }
.mini--ring { border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 1px rgba(200, 221, 138, .35); }
.mini--line { height: 6px; border-radius: 3px; background: var(--line); box-shadow: none; }
.mini--vault { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--pist); }
.ov__note { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.ov__note div { font: 400 14px/1.55 var(--font); color: var(--muted); }
.ov__note strong { display: block; margin-bottom: 4px; font: 700 14px/1.4 var(--font); color: var(--ink); }

/* ---------- Responsiv ---------- */
@media (max-width: 1040px) {
  .vaultwrap { grid-template-columns: 1fr; gap: 24px; }
  .vcol { width: min(100%, 464px); margin-inline: auto; }
  .vfacts { grid-template-columns: 1fr 1fr; width: min(100%, 464px); margin-inline: auto; }
  .vfacts--l { justify-self: center; }
  .vfact { width: 100%; }
}
@media (max-width: 900px) {
  .v-b .lmain, .v-ab .lmain { grid-template-columns: 1fr; min-height: 0; }
  .glass { display: none; }
  .v-ab .convpanel { padding: 92px 20px 140px; }
  .panel { padding: 100px 24px 130px; }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .mcard { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 16px; padding: 20px; }
  .mcard__ic { width: 52px; height: 52px; border-radius: 16px; }
  .mcard__ic svg { width: 24px; height: 24px; }
  .mcard__k { width: calc(100% - 68px); margin: 0; }
  .mcard h3 { width: calc(100% - 68px); font-size: 20px; }
  .mcard p { width: 100%; }
  .mcard__go { padding-top: 12px; }
  .doors { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lbar { height: 68px; }
  .lbar__hide { display: none; }
  .h-l { font-size: 28px; }
  .code { gap: 6px; }
  .code input, .callpage .code input { width: 44px; height: 54px; font-size: 22px; }
  .callcard { grid-template-columns: 44px 1fr; }
  .callcard__timer { grid-column: 2; justify-self: start; }
  .rings { width: 200px; height: 200px; }
  .mark { width: 100px; height: 100px; }
  .vault { padding: 26px; }
  .v-a .alt .idp { flex: 1 1 100%; }
  .vfacts { grid-template-columns: 1fr; }
  .vswitch a, .vswitch button { min-width: 32px; height: 32px; padding: 0 10px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .lstep.is-active, .ai, .you, .turn__you, .osprompt, .modal__card, .sheet__card, .after.is-open, .code input.is-filled { animation: none; }
  .osprompt:not(.is-ok) .osprompt__ic svg, .rings i, .vault::before, .glass .float-card, .callcard .ring::before, .callcard .ring::after, .callcard .ring svg { animation: none; }
  .glass .scene { filter: none; transform: none; transition: none; }
  .mcard { transition: box-shadow .3s; transform: none; }
  .mcard::after { display: none; }
  .mark { transform: none; transition: none; }
}

/* ---------- Anpassungen für die vorläufige Website ---------- */
/* Manrope vom eigenen Server, kein Abruf bei Google. Instrument Serif und Noto Sans Display fallen auf Georgia bzw. Manrope zurück. */
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-var.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
.logo img { width: 30px; height: 30px; }
.lhint--idp:empty { display: none; }
.call__avatar svg { width: 26px; height: 26px; }
.v-ab .convpanel { position: relative; }
.lfoot { position: absolute; right: clamp(20px, 3vw, 44px); bottom: 20px; margin: 0; display: flex; gap: 18px; font: 500 12px/1.4 var(--font); }
.lfoot a { color: var(--tone); text-decoration: none; transition: color .2s; }
.lfoot a:hover { color: var(--ink); }
a.opt { text-decoration: none; }
