/*
 * gateway/assets/gateway.css - EIN Stylesheet des Kunden-Gateways (Anmeldung, Passwort vergessen, Status-/Sperrseite, Startseite).
 * v1.174.0 (Ralf 01.10.2026: "die Optik passt nicht - das kommt vom Admin - an das Design vom Frontend anpassen"): Werte 1:1 aus der
 * Kunden-App (fieldtakt-tenant assets/css/variables.css + .login-*): heller Grund, weisse Karte mit Rand und Schatten, Bildmarke +
 * Name, Felder/Knoepfe 38/44 px, Fokus gelb, Fusszeile als graue Leiste - wie die Anmeldeseite der App. Hell/Dunkel wie in der App
 * (gleiche Domain app.fieldtakt.com -> localStorage ft_theme, frame.php setzt data-theme). Keine Styles in den Seiten selbst.
 * Aendert sich das Design der Kunden-App, werden die Werte hier mitgezogen (CSS-Muster, Abschnitt Gateway).
 */
/* v1.409.0: Markenschrift Inter selbst gehostet (variabel, SIL OFL, gateway/assets/fonts/) - wie Kunden-App und Schaltzentrale */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/inter-latin-wght-normal.woff2") format("woff2"); }

:root {
    --navy: #12314D; --navy-hover: #245C8F; --navy-dark: #0F2A44; --yellow: #F2A900;
    --bg: #F5F6F4; --bg-subtle: #E8EDF1; --card: #ffffff; --ink: #17212B; --text2: #475569; --grey: #64748b;
    --line: #D9E0E7; --ctl-line: #C9D3DC; --plan: #E8EDF1;
    --radius: 8px; --radius-lg: 12px; --radius-xl: 16px; --ctl-h: 38px;
    --shadow: 0 10px 25px rgba(0,0,0,.08), 0 4px 10px rgba(0,0,0,.04); --focus: 0 0 0 3px rgba(242, 169, 0, .4);
    --err-bg: #fee2e2; --err-fg: #991b1b; --err-line: #fecaca; --ok-bg: #dcfce7; --ok-fg: #166534; --ok-line: #bbf7d0;
    --warn-bg: #fef3c7; --warn-fg: #92400e; --warn-line: #fde68a;
}
[data-theme="dark"] {
    --bg: #0f172a; --bg-subtle: #1e293b; --card: #1e293b; --ink: #f1f5f9; --text2: #cbd5e1; --grey: #94a3b8; --line: #334155; --ctl-line: #475569; --plan: #334155;
    --shadow: 0 10px 25px rgba(0,0,0,.4); --err-bg: rgba(239,68,68,.15); --err-fg: #f87171; --err-line: rgba(239,68,68,.3);
    --ok-bg: rgba(34,197,94,.15); --ok-fg: #4ade80; --ok-line: rgba(34,197,94,.3); --warn-bg: rgba(245,158,11,.15); --warn-fg: #fbbf24; --warn-line: rgba(245,158,11,.3);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
body { font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; background: var(--bg); color: var(--ink); min-height: 100vh; display: flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1.5; padding: 24px; }
.gw-wrap { width: 100%; max-width: 420px; } .gw-wrap.gw-status { max-width: 540px; }
.gw-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 32px 24px 0; box-shadow: var(--shadow); overflow: hidden; }
.gw-logo { text-align: center; margin-bottom: 4px; }
.gw-mark { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: var(--radius-lg); background: var(--navy); display: flex; align-items: center; justify-content: center; }
.gw-mark svg { width: 36px; height: 36px; display: block; }
.gw-name { font-size: 26px; font-weight: 800; letter-spacing: -.5px; color: var(--ink); line-height: 1.2; }
.gw-claim { text-align: center; color: var(--grey); font-size: 14px; margin: 4px 0 24px; }
.gw-field { margin-bottom: 16px; }
.gw-field label { display: block; font-size: 14px; font-weight: 600; color: var(--text2); margin-bottom: 6px; }
.gw-field input { width: 100%; height: var(--ctl-h); padding: 0 12px; border: 1px solid var(--ctl-line); border-radius: var(--radius); font: inherit; font-size: 15px; color: var(--ink); background: var(--card); transition: border-color .15s, box-shadow .15s; }
.gw-field input::placeholder { color: var(--grey); }
.gw-field input:focus { outline: none; border-color: var(--yellow); box-shadow: var(--focus); }
.gw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--ctl-h); padding: 0 16px; border-radius: var(--radius); border: 1px solid var(--ctl-line); background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s; }
.gw-btn:hover { border-color: var(--navy); color: var(--navy); }
[data-theme="dark"] .gw-btn:hover { color: var(--ink); border-color: var(--grey); }
.gw-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.gw-btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; } .gw-btn-primary:hover { background: var(--navy-hover); border-color: var(--navy-hover); color: #fff; box-shadow: 0 2px 8px rgba(18, 49, 77, .3); }
.gw-btn:disabled { opacity: .55; cursor: wait; } .gw-btn-full { width: 100%; height: 44px; font-size: 15px; margin-top: 8px; }
.gw-hint { text-align: center; margin-top: 16px; font-size: 13px; color: var(--grey); }
.gw-hint-top { margin-top: 0; margin-bottom: 16px; }   /* L3: Erklaerung ueber dem Formular "Passwort vergessen" */
.gw-forgot { text-align: center; margin-top: 12px; font-size: 14px; }
.gw-forgot a { color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
[data-theme="dark"] .gw-forgot a, [data-theme="dark"] .gw-footer a { color: var(--yellow); }
.gw-forgot a:hover, .gw-forgot a:focus-visible { text-decoration: underline; }
.gw-alert { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.gw-alert-error { background: var(--err-bg); color: var(--err-fg); border: 1px solid var(--err-line); } .gw-alert-ok { background: var(--ok-bg); color: var(--ok-fg); border: 1px solid var(--ok-line); }
.gw-footer { text-align: center; margin: 24px -24px 0; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--bg-subtle); font-size: 13px; color: var(--grey); }   /* graue Leiste wie in der App */
.gw-footer a { color: var(--navy); text-decoration: none; } .gw-footer a:hover { text-decoration: underline; }
/* Statusseite: Farbe je Zustand ueber die Klasse */
.gw-status { text-align: center; margin-top: 18px; --tone: var(--ink); --tone-bg: var(--plan); --tone-line: var(--line); }
.gw-st-red { --tone: var(--err-fg); --tone-bg: var(--err-bg); --tone-line: var(--err-line); } .gw-st-amber { --tone: var(--warn-fg); --tone-bg: var(--warn-bg); --tone-line: var(--warn-line); } .gw-st-grey { --tone: var(--text2); --tone-bg: var(--bg-subtle); --tone-line: var(--line); }
.gw-status-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--tone-bg); color: var(--tone); border: 1px solid var(--tone-line); margin-bottom: 14px; } .gw-status-icon .ico { width: 30px; height: 30px; }
.gw-status h1 { font-size: 22px; color: var(--tone); margin-bottom: 10px; }
.gw-company { display: inline-block; background: var(--plan); color: var(--navy); padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.gw-days { font-size: 20px; font-weight: 700; color: var(--tone); margin-bottom: 10px; } .gw-days small { display: block; font-size: 13px; font-weight: 400; color: var(--grey); }
.gw-msg { font-size: 15px; margin-bottom: 14px; }
.gw-detail { background: var(--tone-bg); border: 1px solid var(--tone-line); border-radius: var(--radius); padding: 14px 16px; font-size: 13.5px; color: var(--ink); text-align: left; }
.gw-reload { margin-top: 16px; font-size: 13px; color: var(--grey); display: flex; align-items: center; justify-content: center; gap: 8px; }
.gw-spin { width: 15px; height: 15px; border: 2px solid var(--line); border-top-color: var(--navy); border-radius: 50%; animation: gwspin .8s linear infinite; } @keyframes gwspin { to { transform: rotate(360deg); } }
.gw-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
@media (max-width: 480px) { body { padding: 12px; } .gw-card { padding: 26px 18px 0; } .gw-footer { margin: 20px -18px 0; } .gw-actions .gw-btn { width: 100%; } }
/* Wartungshinweis auf der Anmeldeseite (gleiche Optik wie die Vorschau in wartung.php) */
.gw-maint { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin-bottom: 18px; border-radius: var(--radius); background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-fg); font-size: 13.5px; line-height: 1.5; } .gw-maint .ico { flex: none; margin-top: 2px; }
/* Startseite fieldtakt.com (gateway/home.php, v1.71.0): breitere Karte, Claim als Ueberschrift, grosse Knoepfe, Impressum als Liste */
.gw-wrap.gw-home { max-width: 640px; } .gw-home .gw-card { padding: 36px 36px 0; text-align: center; } .gw-home .gw-footer { margin-left: -36px; margin-right: -36px; }
.gw-home-claim { font-size: 24px; line-height: 1.3; color: var(--ink); margin: 14px 0 12px; }
.gw-home-intro { font-size: 15.5px; color: var(--grey); margin: 0 auto 6px; max-width: 480px; }
.gw-home-actions { margin-top: 24px; } .gw-btn-lg { height: 48px; padding: 0 26px; font-size: 15px; }
.gw-lang { display: inline-block; margin-left: 10px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); text-decoration: none; font-size: 11.5px; font-weight: 600; } .gw-lang:hover { background: var(--plan); }
.gw-legal { text-align: left; margin: 8px auto 0; max-width: 480px; display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; font-size: 14.5px; }
.gw-legal dt { color: var(--grey); font-weight: 600; } .gw-legal dd { color: var(--ink); }
.gw-legal-text { text-align: left; font-size: 14.5px; line-height: 1.6; max-height: 60vh; overflow-y: auto; padding-right: 6px; }
@media (max-width: 480px) { .gw-legal { grid-template-columns: 1fr; gap: 2px 0; } .gw-legal dd { margin-bottom: 10px; } .gw-home .gw-card { padding: 26px 18px 0; } .gw-home .gw-footer { margin-left: -18px; margin-right: -18px; } }
