/* Anmeldung, Freischaltung und Paywall (js/zz-auth.js), gilt für auswertung.html und portal.html.
   Desktop: links Nutzenversprechen, rechts Formular. Handy: Formular zuerst, Nutzen darunter. */
.gate:has(.auth2),#app:has(.auth2){padding:0}
body:has(.auth2){padding:0;background-image:none}
.auth2{--brand:#0f766e;--brand-ink:#fff;min-height:100vh;min-height:100dvh;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);background:var(--bg)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .auth2{--brand:#2dd4bf;--brand-ink:#06121a}}
:root[data-theme="dark"] .auth2{--brand:#2dd4bf;--brand-ink:#06121a}
.a2-pitch{position:relative;overflow:hidden;padding:56px clamp(24px,5vw,72px);display:flex;flex-direction:column;justify-content:center;gap:22px;color:#e9f3f2;background:radial-gradient(900px 500px at 0% 0%,rgba(45,212,191,.28),transparent 60%),radial-gradient(700px 500px at 100% 100%,rgba(37,99,235,.30),transparent 60%),#0b1a24}
.a2-brand{display:flex;align-items:center;gap:10px;font:700 14px var(--body);letter-spacing:.02em;color:#fff}
.a2-brand .logo,.a2-card .logo{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(135deg,#14b8a6,#2563eb);color:#fff}
.a2-brand .logo svg{width:20px;height:20px}
.a2-pitch h2{font:700 clamp(28px,3.4vw,42px)/1.1 var(--display);letter-spacing:-.025em;color:#fff;max-width:16ch}
.a2-pitch .lead{font-size:17px;line-height:1.55;color:#b9cfd0;max-width:44ch}
.a2-ben{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:14px;max-width:46ch}
.a2-ben li{display:flex;gap:12px;align-items:flex-start}
.a2-ben .bi{width:24px;height:24px;border-radius:50%;flex:none;display:grid;place-items:center;background:rgba(45,212,191,.18);color:#5eead4;margin-top:1px}
.a2-ben .bi svg{width:14px;height:14px}
.a2-ben b{display:block;color:#fff;font-weight:700}
.a2-ben small{display:block;color:#9fb8ba;font-size:14px;line-height:1.45}
.a2-prod{display:flex;margin-top:10px}
.a2-prod img{width:76px;height:76px;object-fit:contain;background:#fff;border-radius:18px;padding:6px;border:3px solid #0b1a24;margin-left:-12px;box-shadow:0 10px 24px -12px rgba(0,0,0,.6)}
.a2-prod img:first-child{margin-left:0}
.a2-main{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px 24px}
.a2-card{width:100%;max-width:420px;margin-top:auto}
.a2-card h1{font:700 30px/1.15 var(--display);letter-spacing:-.02em;margin:0}
.a2-card .sub{color:var(--muted);margin:8px 0 22px;line-height:1.5}
.a2-card form{display:flex;flex-direction:column;gap:14px}
.a2-card label span.l{display:flex;justify-content:space-between;align-items:baseline;gap:8px;text-transform:none;letter-spacing:0;font:600 14px var(--body);color:var(--ink);margin-bottom:6px}
.a2-card label .opt{font-weight:500;color:var(--muted);font-size:13px}
.a2-card input{padding:13px 14px;font-size:16px;border-radius:12px;background:var(--surface);border:1.5px solid var(--line)}
.a2-card input:focus{border-color:var(--brand);box-shadow:0 0 0 4px color-mix(in srgb,var(--brand) 18%,transparent);outline:none}
.a2-card .fg{font:600 13px var(--body);color:var(--brand);text-decoration:none}
.a2-card .fg:hover{text-decoration:underline}
.pwrap{position:relative;display:block}
.pwrap input{padding-right:48px}
.pwt{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;background:transparent;color:var(--muted);border-radius:8px;cursor:pointer;display:grid;place-items:center}
.pwt svg{width:20px;height:20px}.pwt.on{color:var(--brand)}
.pwt:focus-visible{outline:3px solid var(--focus)}
.a2-tabs{display:grid;grid-template-columns:1fr 1fr;background:var(--surface2);border-radius:12px;padding:4px;margin-bottom:20px}
.a2-tabs button{border:0;background:transparent;padding:10px;border-radius:9px;font:600 14px var(--body);color:var(--muted);cursor:pointer}
.a2-tabs button[aria-selected="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.a2-cta{display:flex;align-items:center;justify-content:center;width:100%;border:0;border-radius:12px;padding:14px 20px;font:700 16px var(--body);cursor:pointer;background:var(--brand);color:var(--brand-ink);text-decoration:none;box-shadow:0 8px 20px -10px color-mix(in srgb,var(--brand) 80%,transparent);transition:transform .1s,opacity .15s;margin-top:4px}
.a2-cta:hover{opacity:.92}.a2-cta:active{transform:scale(.99)}
.a2-cta[disabled]{opacity:.65;cursor:progress}
.a2-cta.busy::before{content:"";width:16px;height:16px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;margin-right:10px;animation:a2spin .7s linear infinite}
@keyframes a2spin{to{transform:rotate(360deg)}}
.a2-sec{display:inline-flex;align-items:center;gap:8px;border:1.5px solid var(--line);background:var(--surface);color:var(--ink);border-radius:12px;padding:11px 16px;font:600 14px var(--body);cursor:pointer;text-decoration:none}
.a2-sec svg{width:18px;height:18px}
.a2-sec:hover{background:var(--surface2)}
.a2-row{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:12px}
.a2-err{background:var(--red-bg);color:var(--red);border-radius:10px;padding:10px 12px;font-size:14px;font-weight:600;margin:0}
.a2-ok{background:var(--green-bg);color:var(--green);border-radius:10px;padding:10px 12px;font-size:14px;font-weight:600;margin:0}
.a2-alt{text-align:center;color:var(--muted);font-size:14px;margin-top:20px}
.a2-alt a,.a2-fine a{color:var(--brand);font-weight:600}
.a2-master{text-align:center;margin-top:8px;font-size:12px}
.a2-master a{color:var(--muted)}
.a2-fine{font-size:12.5px;color:var(--muted);text-align:center;margin:2px 0 0}
.a2-foot{margin-top:auto;padding-top:28px;font-size:12px;color:var(--muted)}
.a2-foot a{color:var(--muted)}
.a2-card .banner{margin:0 0 16px}
.a2-ic{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;background:color-mix(in srgb,var(--brand) 12%,var(--surface));color:var(--brand);margin-bottom:16px}
.a2-ic svg{width:28px;height:28px}
.a2-ic.warn{background:var(--red-bg);color:var(--red)}
.a2-ic.star{background:var(--amber-bg);color:var(--amber)}
.a2-code{font:600 28px var(--mono)!important;letter-spacing:.45em;text-align:center;padding:14px!important}
/* Weg zum Zugang */
.journey{list-style:none;margin:0 0 24px;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:6px;counter-reset:j}
.journey li{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;position:relative;font-size:12px;color:var(--muted)}
.journey li+li::before{content:"";position:absolute;top:13px;right:calc(50% + 16px);width:calc(100% - 26px);height:2px;background:var(--line)}
.journey li.done+li::before,.journey li.done+li.now::before{background:var(--brand)}
.journey .jd{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font:700 12px var(--body);background:var(--surface2);border:1.5px solid var(--line);color:var(--muted);position:relative;z-index:1}
.journey .jd svg{width:14px;height:14px}
.journey li.done .jd{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
.journey li.now .jd{border-color:var(--brand);color:var(--brand);box-shadow:0 0 0 4px color-mix(in srgb,var(--brand) 16%,transparent)}
.journey li.now .jt{color:var(--ink);font-weight:700}
/* Paywall-Karte */
.a2-plan{border:1.5px solid var(--brand);border-radius:16px;padding:18px;margin-bottom:16px;background:color-mix(in srgb,var(--brand) 5%,var(--surface))}
.a2-plan-h{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:12px}
.a2-plan-h>b{font:700 18px var(--display)}
.a2-price b{font:700 26px var(--display)}.a2-price span{color:var(--muted);font-size:14px;margin-left:4px}
.a2-plan ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.a2-plan li{display:flex;gap:10px;align-items:flex-start;font-size:14.5px}
.a2-plan li svg{width:18px;height:18px;flex:none;color:var(--brand);margin-top:1px}
@media (max-width:880px){
  .auth2{grid-template-columns:1fr}
  .a2-main{order:-1;padding:28px 16px 8px;justify-content:flex-start}
  .a2-pitch{padding:36px 20px 40px;gap:16px}
  .a2-pitch h2{font-size:26px}
  .a2-foot{padding-top:16px}
}
@media (prefers-reduced-motion:reduce){.a2-cta.busy::before{animation:none}}
@media (max-width:880px){.a2-card{margin-top:0}}
body.flow.locked{padding-bottom:0}
.a2-opts{display:grid;gap:8px;margin-bottom:12px}
.a2-opt{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 16px;border:1.5px solid var(--line);border-radius:14px;cursor:pointer;background:var(--surface)}
.a2-opt input{position:absolute;opacity:0;pointer-events:none}
.a2-opt:has(input:checked){border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 16%,transparent)}
.a2-opt:has(input:focus-visible){outline:3px solid var(--focus)}
.a2-opt .ot{font:700 15px var(--body);display:flex;align-items:center;gap:8px}
.a2-opt .ot em{font-style:normal;font:700 11px var(--body);background:var(--green-bg);color:var(--green);padding:3px 8px;border-radius:999px}
.a2-opt .op{color:var(--muted);font-size:13px}.a2-opt .op b{color:var(--ink);font:700 18px var(--display)}
