/* FR/MND Fernwartung – Anmeldeseite im Signature-Stil (Stein, Tinte, Pink, Bodoni + Inter) */
:root {
  --stone: #d8d4cd; --paper: #f4f2ee; --ink: #1c1a18; --muted: #6a645d; --line: #c9c3ba; --pink: #e6338a; --pink-text: #b81f6b;
  --ok: #2f7d4f; --bad: #b3261e; --warn: #9a6a00;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --stone: #22201d; --paper: #2b2925; --ink: #f1ede6; --muted: #b3aca2; --line: #45413b; --pink-text: #ff7ab8; --ok: #6cc28d; --bad: #ff8a80; --warn: #e2b85a; color-scheme: dark; }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--stone); color: var(--ink); font: 400 16px/1.45 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }

.fw-bar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 16px; background: var(--ink); color: var(--paper); font-size: 14px; }
.fw-mark { font-family: 'Bodoni Moda', Bodoni, 'Didot', Georgia, serif; font-size: 18px; letter-spacing: 0.02em; white-space: nowrap; }
.fw-mark em { font-style: italic; color: var(--pink); }
.fw-box { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0.85; }
.fw-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #888; }
.fw-dot.on { background: #4cc27a; }
.fw-dot.off { background: #e0574f; }
.fw-grow { flex: 1; }
.fw-link { min-height: 44px; padding: 0 12px; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

.fw-banner { padding: 10px 16px; background: var(--pink); color: #fff; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.fw-banner button { min-height: 40px; padding: 0 14px; border: 1px solid #fff; border-radius: 999px; background: transparent; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

.fw-screen { display: grid; place-items: center; min-height: calc(100vh - 48px); padding: 24px 16px; }
.fw-screen.fw-off { display: none; }
.fw-card { width: min(440px, 100%); padding: 28px 24px; border-radius: 18px; background: var(--paper); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12); }
.fw-card h1 { margin: 0 0 4px; font: 400 32px/1.1 'Bodoni Moda', Bodoni, Didot, Georgia, serif; }
.fw-card h1 em { color: var(--pink-text); }
.fw-card p { margin: 10px 0; }
.fw-muted { color: var(--muted); font-size: 14px; }
.fw-field { display: grid; gap: 6px; margin: 16px 0 0; }
.fw-field span { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.fw-field input { min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--stone); color: var(--ink); font: inherit; font-size: 17px; }
.fw-field input:focus { outline: 2px solid var(--pink); outline-offset: 1px; }
.fw-code-input { letter-spacing: 0.18em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.fw-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 20px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: inherit; font-weight: 600; cursor: pointer; }
.fw-btn:disabled { opacity: 0.5; cursor: default; }
.fw-btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.fw-msg { margin-top: 14px; font-size: 14px; color: var(--bad); }
.fw-msg.ok { color: var(--ok); }
.fw-bigcode { margin: 18px 0; font: 600 44px/1 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: 0.12em; text-align: center; }
.fw-steps { margin: 12px 0 0; padding-left: 20px; }
.fw-steps li { margin: 6px 0; }
.fw-boxes { display: grid; gap: 10px; margin-top: 16px; }
.fw-boxes button { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--stone); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }

body.fw-menu { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
#menu { position: relative; flex: 1; min-height: 0; }
#menu:empty { display: none; }
