/* Sitehotel – Kunden-Anmeldung („Rezeption“), Layout layouts/reception.php
   Links eine gezeichnete Szene (Hotel am See), rechts das Formular.
   Tageszeit über data-tod, Jahreszeit über data-season (auth.js). Alles lokal, keine externen Ressourcen. */

/* ---------- Schriften ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/inter-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/inter-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/plus-jakarta-sans-LDIoaomQNQcsA88c7O9yZ4KMCoOg4Ko20yw.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/plus-jakarta-sans-LDIoaomQNQcsA88c7O9yZ4KMCoOg4Ko40yyygA.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens (wie Website) ---------- */
:root {
  --bg: #f4f7f5; --surface: #ffffff; --surface-2: #e8f0ec; --ink: #10241e; --ink-soft: #4b6058; --line: #d5e1db;
  --brand: #20c997; --brand-ink: #0b7457; --brand-wash: #d9f5ea; --on-brand: #ffffff;
  --amber-ink: #8a5200; --amber-wash: #fdeccc; --taken: #a3392b; --taken-wash: #fbe7e3;
  --f-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(16,36,30,.06), 0 12px 32px rgba(16,36,30,.08);
  --s-acc: var(--brand-ink);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#0a1411; --surface:#11201b; --surface-2:#172a24; --ink:#e6f0eb; --ink-soft:#9ab1a8; --line:#22362f;
    --brand:#2fd6a3; --brand-ink:#5ee3b9; --brand-wash:#123a2e; --on-brand:#04251b;
    --amber-ink:#ffc266; --amber-wash:#3a2a10; --taken:#f08a7a; --taken-wash:#3a1d18;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:#0a1411; --surface:#11201b; --surface-2:#172a24; --ink:#e6f0eb; --ink-soft:#9ab1a8; --line:#22362f;
  --brand:#2fd6a3; --brand-ink:#5ee3b9; --brand-wash:#123a2e; --on-brand:#04251b;
  --amber-ink:#ffc266; --amber-wash:#3a2a10; --taken:#f08a7a; --taken-wash:#3a1d18;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
  color-scheme: dark;
}

/* ---------- Basis ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 16px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); }

/* =====================================================================
   Szene
   ===================================================================== */
.scene {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  height: min(70vw, 480px); background: #2a3c63;

  /* Tageszeit (überschrieben unten) */
  --tint: #0b1430; --dim: 0%;
  --sky1: #4fa8e0; --sky2: #9fd6f2; --sky3: #dff2f5;
  --lake1: #69abc4; --lake2: #2f6f88;
  --orb1: rgba(255,243,196,.9); --orb2: rgba(255,236,170,0); --disc: #ffe27a;
  --cloud: #ffffff; --cloud-o: .95;
  --win-off: #8db3c6; --win-on: #fff0c2;
  --refl: .3; --stars: 0; --lamp: 0; --lamp-l: #e8e1c8;

  /* Landschaft (überschrieben je Jahreszeit) */
  --c-hill-far: #9cc8a4; --c-forest-far: #4f8f68; --c-hill-near: #7cb98a; --c-forest-near: #2f6b4b;
  --c-wall: #f6eddc; --c-wall2: #ecdcc2; --c-roof: #b5573e; --c-roof-edge: #8d3f2c; --c-roof-d: #8d4a3a;
  --c-shore: #d4c196; --c-path: #e2d2ad; --c-trunk: #6b4a33; --c-door: #6b4a33; --c-post: #39443f;
  --c-crown1: #4f9d5d; --c-crown2: #3e8a50; --c-crown3: #6cb672;
}
:root[data-tod="morning"] .scene {
  --tint: #ff9a6a; --dim: 10%;
  --sky1: #8fb8de; --sky2: #ffcfae; --sky3: #ffe6c9; --lake1: #a9c6d6; --lake2: #557f98;
  --orb1: rgba(255,217,160,.9); --orb2: rgba(255,190,120,0); --disc: #ffc27a;
  --cloud: #fff3ea; --win-off: #9fb6c4; --win-on: #ffe3a6; --refl: .32; --stars: 0;
}
:root[data-tod="evening"] .scene {
  --tint: #4a2c5e; --dim: 32%;
  --sky1: #2f3a72; --sky2: #d77a6c; --sky3: #ffbf86; --lake1: #7d6488; --lake2: #2b2c4f;
  --orb1: rgba(255,184,119,.9); --orb2: rgba(255,150,90,0); --disc: #ff9a5c;
  --cloud: #f4b3a3; --cloud-o: .85; --win-off: #5d5878; --win-on: #ffcf73; --refl: .4; --stars: .35;
  --lamp: 1; --lamp-l: #ffd98a;
}
:root[data-tod="night"] .scene {
  --tint: #0a1230; --dim: 60%;
  --sky1: #070d24; --sky2: #16244a; --sky3: #2a3c63; --lake1: #1a2848; --lake2: #070d1f;
  --orb1: rgba(240,235,200,.35); --orb2: rgba(240,235,200,0); --disc: #f1ead0;
  --cloud: #3a4a6e; --cloud-o: .55; --win-off: #2a3350; --win-on: #ffcf6e; --refl: .55; --stars: 1;
  --lamp: 1; --lamp-l: #ffd98a;
}

/* Jahreszeiten */
:root[data-season="herbst"] .scene {
  --c-hill-far: #c3b67e; --c-hill-near: #b0a465; --c-forest-far: #5d7d55; --c-forest-near: #3d5f40;
  --c-crown1: #e58a3a; --c-crown2: #c8622c; --c-crown3: #f2b444; --c-shore: #c9ab7a;
}
:root[data-season="fruehling"] .scene, :root[data-season="ostern"] .scene {
  --c-hill-far: #b4dca0; --c-hill-near: #94cc86;
  --c-crown1: #f5b8c9; --c-crown2: #ea93b0; --c-crown3: #fcd5e0;
}
:root[data-season="sommer"] .scene { --c-hill-far: #a8cf8c; --c-hill-near: #86bf72; }
:root[data-cold] .scene {
  --c-hill-far: #e3ecf2; --c-hill-near: #f0f5f8; --c-forest-far: #3d6b5a; --c-forest-near: #2b5546;
  --c-shore: #eef3f6; --c-path: #dfe7ec;
  --c-crown1: #dbe6ee; --c-crown2: #c7d6e1; --c-crown3: #eef4f8;
}

/* Bild */
.scene-svg { position: absolute; left: 50%; bottom: 0; height: max(180%, 112.5vw); width: auto; aspect-ratio: 8 / 9; transform: translate(-50%, 12%); display: block; z-index: 0; }
.scene-svg .sky-a { stop-color: var(--sky1); } .scene-svg .sky-b { stop-color: var(--sky2); } .scene-svg .sky-c { stop-color: var(--sky3); }
.scene-svg .lake-a { stop-color: var(--lake1); } .scene-svg .lake-b { stop-color: var(--lake2); }
.scene-svg .orb-a { stop-color: var(--orb1); } .scene-svg .orb-b { stop-color: var(--orb2); }
.scene-svg .warm-a { stop-color: rgba(255,210,120,.75); } .scene-svg .warm-b { stop-color: rgba(255,210,120,0); }

.stars { opacity: var(--stars); transition: opacity 1s; }
.star { fill: #fff; animation: twinkle 4s ease-in-out infinite; }
.star.t2 { animation-delay: -1s; animation-duration: 5s; } .star.t3 { animation-delay: -2.2s; animation-duration: 3.4s; } .star.t4 { animation-delay: -3s; animation-duration: 6s; }

.orb { transform-box: view-box; transition: transform 1.2s ease; }
.orb-disc { fill: var(--disc); }
:root[data-tod="morning"] .orb { transform: translate(-430px, 250px); }
:root[data-tod="day"] .orb { transform: translate(-80px, -40px); }
:root[data-tod="evening"] .orb { transform: translate(40px, 300px); }
:root[data-tod="night"] .orb-disc { mask: url(#m-moon); }

.cloud { fill: var(--cloud); opacity: var(--cloud-o); animation: drift 70s ease-in-out infinite alternate; }
.cloud.cl2 { animation-duration: 95s; animation-delay: -30s; } .cloud.cl3 { animation-duration: 120s; animation-delay: -60s; }

/* Alles „Gebaute“ wird abends/nachts in den Himmelston gemischt */
.hill-far     { fill: color-mix(in srgb, var(--tint) var(--dim), var(--c-hill-far)); }
.forest-far   { fill: color-mix(in srgb, var(--tint) var(--dim), var(--c-forest-far)); }
.hill-near    { fill: color-mix(in srgb, var(--tint) var(--dim), var(--c-hill-near)); }
.forest-near  { fill: color-mix(in srgb, var(--tint) var(--dim), var(--c-forest-near)); }
.wall         { fill: color-mix(in srgb, var(--tint) var(--dim), var(--c-wall)); }
.wall-2       { fill: color-mix(in srgb, var(--tint) var(--dim), var(--c-wall2)); }
.roof         { fill: color-mix(in srgb, var(--tint) var(--dim), var(--c-roof)); }
.roof-edge, .roof-flat { fill: color-mix(in srgb, var(--tint) var(--dim), var(--c-roof-edge)); }
.roof-d       { fill: color-mix(in srgb, var(--tint) var(--dim), var(--c-roof-d)); }
.sill         { fill: color-mix(in srgb, var(--tint) var(--dim), #d8c6a6); }
.door         { fill: color-mix(in srgb, var(--tint) var(--dim), var(--c-door)); }
.door-line    { fill: color-mix(in srgb, var(--tint) var(--dim), #4d3524); }
.canopy       { fill: color-mix(in srgb, var(--tint) var(--dim), #0b7457); }
.sign         { fill: #17a77d; }
.sign-t       { fill: #fff; font: 800 13px var(--f-display); letter-spacing: 2.5px; }
.shore        { fill: color-mix(in srgb, var(--tint) var(--dim), var(--c-shore)); }
.path         { fill: color-mix(in srgb, var(--tint) var(--dim), var(--c-path)); }
.trunk        { fill: color-mix(in srgb, var(--tint) var(--dim), var(--c-trunk)); }
.crown.c1     { fill: color-mix(in srgb, var(--tint) var(--dim), var(--c-crown1)); }
.crown.c2     { fill: color-mix(in srgb, var(--tint) var(--dim), var(--c-crown2)); }
.crown.c3     { fill: color-mix(in srgb, var(--tint) var(--dim), var(--c-crown3)); }
.post         { fill: color-mix(in srgb, var(--tint) var(--dim), var(--c-post)); }
.lake         { opacity: 1; }

/* Fenster: login.js schaltet .on */
.win { fill: var(--win-off); transition: fill 1.4s ease; }
.win.on { fill: var(--win-on); }
:root[data-tod="evening"] .win.on, :root[data-tod="night"] .win.on { filter: drop-shadow(0 0 4px rgba(255,196,96,.85)); }

.reflect { opacity: var(--refl); }
.sh { fill: rgba(255,255,255,.75); opacity: 0; animation: shimmer 5s ease-in-out infinite; }
.sh.t2 { animation-delay: -1.3s; } .sh.t3 { animation-delay: -2.6s; animation-duration: 6.5s; } .sh.t4 { animation-delay: -3.9s; animation-duration: 4.2s; }
:root[data-tod="night"] .sh { fill: rgba(255,214,140,.7); }

.lamp-glow { opacity: var(--lamp); transition: opacity 1s; }
.lamp-l { fill: var(--lamp-l); }

/* Saison-Elemente: standardmäßig aus */
.snowcap, .snowcap-r, .smoke, .garland, .wreath, .flowers, .boat { display: none; }
:root[data-cold] .snowcap, :root[data-cold] .snowcap-r { display: inline; }
:root[data-cold] .smoke, :root[data-season="herbst"] .smoke { display: inline; }
:root[data-season="advent"] .garland, :root[data-season="weihnachten"] .garland,
:root[data-season="advent"] .wreath, :root[data-season="weihnachten"] .wreath { display: inline; }
:root[data-season="fruehling"] .flowers, :root[data-season="ostern"] .flowers, :root[data-season="sommer"] .flowers { display: inline; }
:root[data-season="sommer"] .boat { display: inline; }

.snowcap { fill: none; stroke: color-mix(in srgb, var(--tint) calc(var(--dim) * .7), #fff); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.snowcap-r { fill: color-mix(in srgb, var(--tint) calc(var(--dim) * .7), #fff); }

.puff { fill: rgba(232,238,244,.55); filter: blur(3px); opacity: 0; transform-box: fill-box; transform-origin: center; animation: smoke 7s ease-out infinite; }
.puff.p2 { animation-delay: -1.75s; } .puff.p3 { animation-delay: -3.5s; } .puff.p4 { animation-delay: -5.25s; }

.g-wire { fill: none; stroke: #2a2a2a; stroke-width: 1.4; }
.gb { animation: blink 2.6s ease-in-out infinite; }
.gb.b1 { fill: #ff5a4f; } .gb.b2 { fill: #ffcd4a; animation-delay: -.7s; } .gb.b3 { fill: #4fd98a; animation-delay: -1.4s; } .gb.b4 { fill: #5aa8ff; animation-delay: -2s; }
:root[data-tod="evening"] .gb, :root[data-tod="night"] .gb { filter: drop-shadow(0 0 3px currentColor); }
.wreath circle:first-child { fill: none; stroke: #2f7a45; stroke-width: 5; }
.w-dot { fill: #d63a32; }

.fl.t1 { fill: #f28fb0; } .fl.t2 { fill: #ffd36a; } .fl.t3 { fill: #ffffff; } .fl.t4 { fill: #b99af0; }

.boat { animation: sail 48s ease-in-out infinite alternate; }
.boat-i { transform-box: fill-box; transform-origin: 50% 100%; animation: bob 4.5s ease-in-out infinite; }
.hull { fill: #7a4b30; } .mast { fill: #5a3a26; } .sail { fill: #fffdf6; } .sail-2 { fill: #f1e9d6; }

/* Partikel (wie Website) */
.scene-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.sp { position: absolute; top: 0; left: 0; width: var(--sz); height: var(--sz); will-change: transform; }
.sp-i { display: block; width: 100%; height: 100%; opacity: var(--o); animation: sp-sway var(--s) ease-in-out infinite alternate; }
.sp-i svg { display: block; width: 100%; height: 100%; fill: var(--pc); }
.sp-i .vein { fill: none; stroke: rgba(0,0,0,.2); stroke-width: 1.3; stroke-linecap: round; }
.sp-i.c1 { --pc: var(--s1); } .sp-i.c2 { --pc: var(--s2); } .sp-i.c3 { --pc: var(--s3); } .sp-i.c4 { --pc: var(--s4); }
.dot-snow, .dot-mote { display: block; width: 100%; height: 100%; border-radius: 50%; }
.dot-snow { background: #fff; box-shadow: 0 0 4px rgba(255,255,255,.6); }
.dot-mote { background: radial-gradient(circle, rgba(255,214,120,.95) 0, rgba(255,214,120,.4) 45%, rgba(255,214,120,0) 72%); transform: scale(1.8); }
.sp-fall { top: -30px; animation: sp-fall var(--d) linear var(--dl) infinite; }
.sp-rise { animation: sp-rise var(--d) ease-in-out var(--dl) infinite; }
.sp-twinkle { animation: sp-tw var(--d) ease-in-out var(--dl) infinite; }

:root { --s1: #ffffff; --s2: #ffffff; --s3: #ffffff; --s4: #ffffff; }
:root[data-season="herbst"] { --s-acc: #c46a1f; --s1: #e58a3a; --s2: #c8622c; --s3: #f2b444; --s4: #a3a43e; }
:root[data-season="advent"], :root[data-season="weihnachten"] { --s-acc: #c2413a; }
:root[data-season="winter"] { --s-acc: #3f86bd; }
:root[data-season="silvester"], :root[data-season="neujahr"] { --s-acc: #c9930c; --s1: #ffd166; --s2: #7ff0c8; --s3: #ff9ec0; --s4: #9cc4ff; }
:root[data-season="fruehling"] { --s-acc: #d0577f; --s1: #f7b8cb; --s2: #ef9cb8; --s3: #fcd5e0; --s4: #c6e6a8; }
:root[data-season="ostern"] { --s-acc: #d08a14; --s1: #f7b8cb; --s2: #f8d77a; --s3: #c6e6a8; --s4: #b4d4f6; }
:root[data-season="sommer"] { --s-acc: #d6900c; }

/* Gruß oben, Bildunterschrift unten */
.scene-top { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 3; }
@media (max-width: 759px) { .season-hi { font-size: 12px; padding: 4px 6px 4px 10px; } }
.season-hi { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 8px 6px 12px; border-radius: 999px; font: 600 13px/1.3 var(--f-body); color: #10241e; background: rgba(255,255,255,.86); box-shadow: 0 4px 18px rgba(0,0,0,.14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: rise-in .7s ease-out both; }
.season-ico { display: grid; place-items: center; color: var(--s-acc); flex: none; }
.season-ico svg { width: 16px; height: 16px; }
.season-txt { padding-right: 4px; }
.season-btn { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; margin: -2px 0; border: 0; border-radius: 50%; background: transparent; color: #4b6058; cursor: pointer; flex: none; }
.season-btn:hover { background: rgba(16,36,30,.08); color: #10241e; }
.season-btn svg { width: 14px; height: 14px; }
.season-btn .i-play, .season-btn[data-state="pause"] .i-pause { display: none; }
.season-btn[data-state="pause"] .i-play { display: block; }

.scene-cap { display: none; }
.scene::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(to bottom, rgba(6,14,24,.18), rgba(6,14,24,0) 22%); }

/* Pausieren: Knopf, Hintergrund-Tab, reduzierte Bewegung */
.fx-paused .scene *, .fx-paused .scene *::before, .fx-paused .scene *::after { animation-play-state: paused !important; }

/* =====================================================================
   Formular
   ===================================================================== */
.side { position: relative; z-index: 2; display: flex; flex-direction: column; margin-top: -22px; padding: 18px 20px 20px; background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: 0 -8px 24px rgba(0,0,0,.08); }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 20px/1 var(--f-display); letter-spacing: -.01em; }
.logo svg { width: 34px; height: 34px; flex: none; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang a { padding: 5px 10px; border-radius: 999px; color: var(--ink-soft); font: 700 12.5px/1 var(--f-body); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--brand-wash); color: var(--brand-ink); }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 19px; height: 19px; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; } :root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: block; } :root:not([data-theme="light"]) .i-moon { display: none; } }

.form-wrap { width: 100%; max-width: 430px; margin: 0 auto; padding: 26px 0 22px; }
.hello { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--brand-ink); font: 700 14.5px/1.3 var(--f-body); }
.hello svg { width: 18px; height: 18px; }
.form-wrap h1 { margin: 6px 0 8px; font: 800 clamp(27px, 3.2vw, 34px)/1.15 var(--f-display); letter-spacing: -.02em; }
.lead { margin: 0 0 24px; color: var(--ink-soft); font-size: 15.5px; }

.alert { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 20px; padding: 13px 15px; border-radius: 12px; background: var(--taken-wash); border: 1px solid color-mix(in srgb, var(--taken) 30%, transparent); font-size: 14.5px; line-height: 1.5; animation: shake .45s ease-out; }
.alert svg { width: 22px; height: 22px; color: var(--taken); flex: none; margin-top: 1px; }
.alert a { color: inherit; }

.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-weight: 600; font-size: 14.5px; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.small-link { font-size: 13.5px; }
.input { position: relative; }
.input input { width: 100%; height: 54px; padding: 0 16px 0 48px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: 400 16.5px var(--f-body); transition: border-color .15s, box-shadow .15s, background-color .15s; }
.input input::placeholder { color: color-mix(in srgb, var(--ink-soft) 70%, transparent); }
.input input:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.input input:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px var(--brand-wash); }
.in-ico { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.input:focus-within .in-ico { color: var(--brand-ink); }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink-soft); cursor: pointer; }
.eye:hover { background: var(--surface-2); color: var(--ink); }
.eye svg { width: 21px; height: 21px; }
.eye .i-hide, .eye[aria-pressed="true"] .i-show { display: none; }
.eye[aria-pressed="true"] .i-hide { display: block; }
.caps { display: flex; align-items: center; gap: 8px; margin: 9px 0 0; padding: 7px 11px; border-radius: 9px; background: var(--amber-wash); color: var(--amber-ink); font-weight: 600; font-size: 13.5px; animation: rise-in .25s ease-out; }
.caps svg { width: 16px; height: 16px; flex: none; }

.captcha-ph { display: grid; place-items: center; height: 66px; margin: 6px 0 18px; border: 1.5px dashed var(--line); border-radius: 10px; color: var(--ink-soft); font-size: 13px; text-align: center; }

.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 12px 18px; border-radius: 12px; font: 700 16.5px/1.2 var(--f-display); text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .15s, background-color .15s, border-color .15s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-main { border: 0; background: var(--brand-ink); color: var(--on-brand); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand-ink) 30%, transparent); }
.btn-main:hover { background: color-mix(in srgb, var(--brand-ink) 88%, #000); }
.btn-main:active { transform: translateY(1px); }
.btn-main svg { transition: transform .15s; }
.btn-main:hover svg { transform: translateX(3px); }
.btn-main[aria-busy="true"] { opacity: .75; cursor: progress; }

.or { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--ink-soft); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.btn-key { justify-content: flex-start; gap: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-align: left; }
.btn-key:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand-wash) 45%, var(--surface)); }
.btn-key > svg { box-sizing: content-box; width: 22px; height: 22px; padding: 9px; border-radius: 10px; background: var(--brand-wash); color: var(--brand-ink); }
.btn-key b { display: block; font-size: 16px; }
.btn-key small { display: block; margin-top: 2px; color: var(--ink-soft); font: 500 13px/1.35 var(--f-body); }

.register { margin: 22px 0 18px; text-align: center; color: var(--ink-soft); font-size: 15px; }
.help { display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--bg); color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.help svg { width: 20px; height: 20px; flex: none; color: var(--brand-ink); margin-top: 1px; }

.side-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.side-foot a { color: var(--ink-soft); font-weight: 500; }

/* =====================================================================
   Portal: weitere Bausteine (Registrierung, Reset, 2FA, Passkey, Absichern)
   ===================================================================== */
.d-none { display: none !important; }

/* Sprachwahl als kleines Formular (POST + CSRF) */
.lang { margin: 0; }
.lang button { padding: 5px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); font: 700 12.5px/1 var(--f-body); cursor: pointer; }
.lang button:hover { color: var(--ink); }
.lang button[aria-current="true"] { background: var(--brand-wash); color: var(--brand-ink); cursor: default; }

/* Meldungen: Fehler (Standard), Hinweis, Erfolg */
.alert b { display: block; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }
.alert-ok, .alert-info, .alert-success { background: var(--brand-wash); border-color: color-mix(in srgb, var(--brand) 40%, transparent); animation: rise-in .3s ease-out; }
.alert-ok svg, .alert-info svg, .alert-success svg { color: var(--brand-ink); }
.alert-warn { background: var(--amber-wash); border-color: color-mix(in srgb, var(--amber-ink) 30%, transparent); animation: rise-in .3s ease-out; }
.alert-warn svg { color: var(--amber-ink); }
.alert-danger { background: var(--taken-wash); }
.alert-status { display: block; text-align: center; font-weight: 600; }

/* Felder ohne Symbol links */
.input.plain input { padding-left: 16px; }
.input.has-eye input { padding-right: 54px; }
.input input[aria-invalid="true"], .input input.is-policy-fail { border-color: color-mix(in srgb, var(--taken) 60%, var(--line)); }
.input input.is-policy-ok { border-color: color-mix(in srgb, var(--brand) 70%, var(--line)); }
.hint { margin: 7px 0 0; color: var(--ink-soft); font-size: 13.5px; }

.row2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 14px; }
@media (min-width: 420px) { .row2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Sicherheitsprüfung */
.cf-wrap { display: flex; justify-content: center; min-height: 65px; margin: 4px 0 18px; }

/* Passwort-Stärke (auth-password-strength.js setzt is-ok / is-fail / is-empty und score-0..4) */
.pw-live { margin-top: 10px; }
.pw-strength { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); }
.pw-strength-track { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.pw-strength-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--taken); transition: width .25s, background-color .25s; }
.pw-strength.score-2 .pw-strength-fill { background: var(--amber-ink); }
.pw-strength.score-3 .pw-strength-fill, .pw-strength.score-4 .pw-strength-fill { background: var(--brand); }
.pw-strength-text { min-width: 6.5em; text-align: right; font-weight: 600; }
.pw-checklist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 14px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--ink-soft); }
@media (min-width: 420px) { .pw-checklist { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.pw-checklist li { display: flex; align-items: center; gap: 8px; }
.pw-icon { position: relative; flex: none; width: 16px; height: 16px; border: 1.5px solid var(--line); border-radius: 50%; transition: background-color .15s, border-color .15s; }
.pw-checklist li.is-ok { color: var(--ink); }
.pw-checklist li.is-ok .pw-icon { border-color: var(--brand-ink); background: var(--brand-ink); }
.pw-checklist li.is-ok .pw-icon::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid var(--on-brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pw-checklist li.is-fail .pw-icon { border-color: color-mix(in srgb, var(--taken) 70%, transparent); }
.pw-match { min-height: 1.4em; margin: 7px 0 0; font-size: 13.5px; font-weight: 600; }
.pw-match.is-ok { color: var(--brand-ink); }
.pw-match.is-fail { color: var(--taken); }

/* Zustimmung */
.check { display: flex; gap: 11px; align-items: flex-start; margin: 4px 0 18px; font-size: 14.5px; line-height: 1.5; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand-ink); cursor: pointer; }
.check label { cursor: pointer; }

/* Bestätigungscode */
.input input.otp { padding: 0 16px; text-align: center; font: 700 26px/1 var(--f-display); letter-spacing: .35em; height: 62px; }

/* Weitere Knöpfe und Links */
.btn-danger { border: 0; background: var(--taken); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--taken) 28%, transparent); }
.btn-danger:hover { background: color-mix(in srgb, var(--taken) 86%, #000); }
:root[data-theme="dark"] .btn-danger { color: #2a0f0a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-danger { color: #2a0f0a; } }
.btn-ghost { min-height: 46px; border: 0; background: transparent; color: var(--ink-soft); font: 600 14.5px/1.2 var(--f-body); text-decoration: underline; text-underline-offset: 3px; }
.btn-ghost:hover { color: var(--ink); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-key.is-main { justify-content: center; }
.back { margin: 20px 0 18px; text-align: center; font-size: 14.5px; }
.form-after { margin: 10px 0 18px; }

.big-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 14px; background: var(--brand-wash); color: var(--brand-ink); }
.big-ico svg { width: 26px; height: 26px; }
.big-ico.is-alarm { background: var(--taken-wash); color: var(--taken); }
.steps { margin: 0 0 22px; padding: 0; list-style: none; counter-reset: st; }
.steps li { position: relative; padding: 0 0 12px 40px; counter-increment: st; font-size: 15px; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--surface-2); color: var(--ink); font: 700 13.5px/1 var(--f-display); }

/* =====================================================================
   PC: zwei Hälften
   ===================================================================== */
@media (min-width: 760px) {
  .auth { grid-template-columns: minmax(0, 1.12fr) minmax(400px, 1fr); }
  .scene { position: sticky; top: 0; height: 100vh; height: 100dvh; }
  .scene-svg { left: 0; top: 0; width: 100%; height: 100%; aspect-ratio: auto; transform: none; }
  .scene-top { top: 24px; left: 24px; }
  .scene::after { background: linear-gradient(to top, rgba(6,14,24,.72), rgba(6,14,24,0) 34%), linear-gradient(to bottom, rgba(6,14,24,.16), rgba(6,14,24,0) 18%); }
  .scene-cap { display: block; position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 0 clamp(24px, 4vw, 52px) clamp(24px, 4vh, 44px); text-shadow: 0 1px 12px rgba(0,0,0,.35); animation: rise-in .9s .2s ease-out both; }
  .cap-big { font: 800 clamp(26px, 2.7vw, 38px)/1.1 var(--f-display); letter-spacing: -.02em; }
  .cap-sub { margin-top: 8px; max-width: 34em; font-size: 15.5px; opacity: .92; }
  .side { margin: 0; padding: 26px clamp(24px, 4vw, 56px) 22px; border-radius: 0; box-shadow: none; min-height: 100vh; min-height: 100dvh; }
  .form-wrap { margin: auto; padding: 40px 0; }
}

/* ---------- Bewegung ---------- */
@keyframes twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes drift { from { transform: translateX(-50px); } to { transform: translateX(60px); } }
@keyframes shimmer { 0%, 100% { opacity: 0; } 50% { opacity: .9; } }
@keyframes smoke { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 15% { opacity: .7; } 100% { opacity: 0; transform: translate(30px, -120px) scale(3.2); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes sail { from { transform: translateX(-120px); } to { transform: translateX(60px); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(3px) rotate(1.5deg); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes sp-fall { 0% { transform: translateY(0); opacity: 0; } 6% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(var(--fall, 640px)); opacity: 0; } }
@keyframes sp-rise { 0% { transform: translateY(24px); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(-48px); opacity: 0; } }
@keyframes sp-tw { 0%, 100% { transform: scale(.4) rotate(0); opacity: .1; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
@keyframes sp-sway { from { transform: translateX(calc(var(--sx) * -1)) rotate(calc(var(--r) * -1)); } to { transform: translateX(var(--sx)) rotate(var(--r)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .puff, .sh { opacity: 0; }
}

