/*
 * ANMELDEN, REGISTRIEREN, KENNWORT — EIN AUSSEHEN FÜR ALLE DREI PROGRAMME (14.09.2026).
 *
 * Der Wirt legte ein Telefonbild der Anmeldung vor: *„вот так надо делать везде, но регистрацию
 * сделай как на e-kasse, только проверь, чтобы всё удобно было и виднелось"*. Vorlage ist die
 * Anmeldung von e-kasse.eu (25.08.2026) — Zurück-Verweis, Überschrift, drei Anmeldezeichen,
 * helle Felder, und am Telefon der Knopf in einer festen Leiste unten.
 *
 * Diese Datei liegt byteweise gleich auf e-kasse.eu, e-tisch.eu und e-buchung.eu (Zwillings-
 * Probe). Die FARBE kommt aus `includes/anstrich.php` der Domain (`--lp-akzent`). Die Felder
 * haben die Form von `felder.php` (`.feld`, `.feld-huelle`) — e-kasse.eu schreibt dasselbe
 * Markup von Hand, damit EINE Regel beide trifft.
 *
 * Laden NACH landing.css (Kopfleiste, Schrift, Farbwörter).
 */

body.au-body {
    margin: 0; background: #fff; color: #1e293b;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}
.au-body *, .au-body *::before, .au-body *::after { box-sizing: border-box; }

/* ---------- Kopfleiste: Logo und EIN Knopf ---------- */
.au-kopf .lp-logo { white-space: nowrap; }
.au-kopf .lp-logo i { color: var(--lp-akzent, #3b82f6) !important; }

/* ---------- Die Fläche ---------- */
.au-box { background: #fff; }
.au-links { display: none; }
/* Unten so viel Platz, wie die feste Leiste hoch ist — gemessen vom Skript (`--au-leiste`), damit
   die letzte Zeile nie hinter dem Knopf liegt, egal wie lang die Fussnote umbricht. */
.au-rechts { max-width: 520px; margin: 0 auto; padding: 18px 20px calc(var(--au-leiste, 150px) + 28px); }

.au-zurueck {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
    color: #64748b; font-size: 14px; font-weight: 700; text-decoration: none;
}
.au-zurueck:hover { color: #1e293b; }
.au-titel { margin: 0 0 6px; font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--lp-kopf, #1e293b); }
.au-unter { margin: 0 0 18px; font-size: 15px; line-height: 1.5; color: #64748b; }
.au-unter a, .au-link { color: var(--lp-akzent, #3b82f6); font-weight: 700; text-decoration: none; }
.au-unter a:hover, .au-link:hover { text-decoration: underline; }

.au-fehler {
    display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; padding: 12px 14px;
    background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; color: #b91c1c; font-size: 14px; line-height: 1.45;
}
.au-fehler i { margin-top: 2px; }
.au-gut {
    display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; padding: 14px 16px;
    background: var(--lp-akzent-hell, #eff6ff); border-radius: 12px; color: #1e293b; font-size: 15px; line-height: 1.5;
}
.au-gut i { color: var(--lp-akzent, #3b82f6); margin-top: 3px; }

/* ---------- Anmelden über Google, Apple, Facebook ---------- */
.au-social { display: flex; gap: 10px; }
.au-social button {
    flex: 1 1 0; height: 48px; border: 0; border-radius: 10px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px;
    transition: filter .12s, transform .12s;
}
.au-social button:hover { filter: brightness(1.08); }
.au-social button:active { transform: scale(.98); }
.au-social .au-google { background: #d44638; }
.au-social .au-apple { background: #000; }
.au-social .au-facebook { background: #3b5998; }
.au-teiler { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #94a3b8; font-size: 13px; font-weight: 600; }
.au-teiler::before, .au-teiler::after { content: ""; flex: 1; height: 1px; background: #e2e8f0; }

/* ---------- Felder ---------- */
/* EIN Mass für die Feldhöhe: `felder.php` liest `--feld-hoehe` — hier wird nur die Variable
   gesetzt, keine zweite Zahl daneben (siehe PROJEKT.md: zwei Masse nebeneinander). */
.au-seite { --feld-hoehe: 52px; }
.au-seite .feld { margin-bottom: 16px; }
.au-seite .feld > label {
    display: block; margin-bottom: 7px; font-size: 12px; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; color: #475569;
}
.au-seite .feld-frei { font-weight: 500; letter-spacing: 0; text-transform: none; color: #94a3b8; }
.au-seite .feld-huelle { position: relative; display: block; }
.au-seite .feld-huelle > i {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%); z-index: 1;
    color: #94a3b8; font-size: 16px; pointer-events: none;
}
.au-seite .feld input:not([type="radio"]):not([type="checkbox"]),
.au-seite .feld select {
    width: 100%; height: var(--feld-hoehe, 52px); margin: 0; padding: 0 16px 0 46px;
    border: 1.5px solid transparent; border-radius: 12px; outline: none;
    background: #eef2f7; background: color-mix(in srgb, var(--lp-akzent, #3b82f6) 7%, #fff);
    color: #1e293b; font-family: inherit; font-size: 16px;   /* 16 px: sonst vergrössert iOS beim Tippen die Seite */
    transition: border-color .12s, box-shadow .12s, background-color .12s;
}
.au-seite .feld select { padding-right: 40px; appearance: none; -webkit-appearance: none; }
.au-seite .feld input::placeholder { color: #94a3b8; text-transform: none; }
.au-seite .feld input:not([type="radio"]):focus,
.au-seite .feld select:focus {
    background: #fff; border-color: var(--lp-akzent, #3b82f6);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--lp-akzent, #3b82f6) 16%, transparent);
}
/* Platz für das Auge. Genauso gewichtig wie die Feldregel oben (0-4-1) und NACH ihr — mit
   weniger Gewicht verlor sie gegen deren `padding`, und das Auge lag auf dem Platzhalter. */
.au-seite .feld .feld-huelle input[type="password"],
.au-seite .feld .feld-huelle input.au-mit-auge { padding-right: 50px; }
.au-seite .feld-falsch input { border-color: #ef4444; background: #fef2f2; }
.au-seite .feld-meldung { display: flex; gap: 6px; margin-top: 6px; color: #b91c1c; font-size: 13px; line-height: 1.4; }
.au-seite .feld-hinweis { margin-top: 5px; color: #94a3b8; font-size: 12.5px; }
/* Das Auge im Kennwortfeld — ein Knopf, gross genug für den Daumen. */
.au-auge {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%); z-index: 1;
    width: 42px; height: 42px; border: 0; border-radius: 10px; background: transparent;
    color: #94a3b8; font-size: 17px; cursor: pointer;
}
.au-auge:hover, .au-auge:focus-visible { color: #475569; background: rgba(15, 23, 42, .05); outline: none; }

.au-zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.au-zwei .feld { margin-bottom: 8px; }
/* Die Regel zum Kennwort steht UNTER den beiden Feldern — in einem halb so breiten Feld hätte
   sie als Platzhalter nicht Platz. */
.au-hinweis { margin: 0 0 16px; color: #94a3b8; font-size: 12.5px; line-height: 1.4; }

/* ---------- Auswahl als Marken (Konto, Betrieb) ---------- */
.au-wahl { display: flex; flex-wrap: wrap; gap: 8px; }
/* `felder.php` beschreibt JEDES `.feld label` als Überschrift (13 px, Abstand unten) — auch
   die Marken, die in einem `.feld` stehen. Hier wird das für sie zurückgenommen. */
.au-seite .au-chip {
    position: relative; flex: 1 1 auto; cursor: pointer;
    margin: 0; color: inherit; font-size: inherit; font-weight: inherit; letter-spacing: 0; text-transform: none;
}
.au-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.au-chip span {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 8px 12px;
    border: 1.5px solid #e2e8f0; border-radius: 10px; background: #fff;
    color: #475569; font-size: 14px; font-weight: 700; white-space: nowrap;
    transition: border-color .12s, background-color .12s, color .12s;
}
.au-chip span i { color: #94a3b8; }
.au-chip:hover span { border-color: #cbd5e1; }
.au-chip input:checked + span {
    border-color: var(--lp-akzent, #3b82f6); background: var(--lp-akzent-hell, #eff6ff); color: var(--lp-akzent-dunkel, #2563eb);
}
.au-chip input:checked + span i { color: var(--lp-akzent, #3b82f6); }
.au-chip input:focus-visible + span { box-shadow: 0 0 0 4px color-mix(in srgb, var(--lp-akzent, #3b82f6) 18%, transparent); }
.au-wahl-satz { margin: 7px 0 0; color: #94a3b8; font-size: 12.5px; line-height: 1.4; }

/* Das gewählte Paket, mitgenommen von der Preistafel. */
.au-paket {
    display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 10px 14px;
    background: var(--lp-akzent-hell, #eff6ff); border-radius: 10px; color: #1e293b; font-size: 14px; line-height: 1.4;
}
.au-paket > i { color: var(--lp-akzent, #3b82f6); }
.au-paket span { flex: 1; }
.au-paket a { color: var(--lp-akzent, #3b82f6); }

/* ---------- Der Abschluss: Knopf und Fussnote ---------- */
.au-abschluss { margin-top: 22px; }
.au-knopf {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px;
    border: 0; border-radius: 12px; background: var(--lp-akzent, #3b82f6); color: #fff; cursor: pointer;
    font-family: inherit; font-size: 17px; font-weight: 700; text-decoration: none;
    transition: background-color .12s, transform .12s;
}
.au-knopf:hover { background: var(--lp-akzent-dunkel, #2563eb); }
.au-knopf:active { transform: scale(.99); }
.au-knopf:disabled { opacity: .65; cursor: progress; }
.au-fussnote { margin: 8px 0 0; text-align: center; color: #94a3b8; font-size: 13px; line-height: 1.45; }
.au-fussnote a { color: var(--lp-akzent, #3b82f6); font-weight: 700; text-decoration: none; }
.au-recht { margin: 26px 0 0; text-align: center; color: #94a3b8; font-size: 12.5px; }
.au-recht a { color: #64748b; text-decoration: none; }
.au-recht a:hover { text-decoration: underline; }

/* Am Telefon steht der Knopf IMMER sichtbar unten — die Seite scrollt darüber hinweg. */
@media (max-width: 760px) {
    .au-abschluss {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        background: #fff; border-top: 1px solid #e2e8f0; box-shadow: 0 -10px 24px -12px rgba(15, 23, 42, .22);
    }
    .au-abschluss .au-fussnote { margin-top: 7px; }
}

/* ---------- Am Rechner: eine Karte mit zwei Hälften ---------- */
@media (min-width: 761px) {
    body.au-body { background: linear-gradient(180deg, var(--lp-akzent-hell, #eff6ff) 0%, #f8fafc 70%); }
    .au-seite { padding: 48px 24px 64px; }
    .au-box {
        display: flex; max-width: 980px; margin: 0 auto; overflow: hidden; border-radius: 18px;
        box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .35);
    }
    .au-links {
        display: flex; flex-direction: column; justify-content: center; flex: 1; padding: 48px 40px; color: #fff;
        background-color: var(--lp-kopf, #333b4f);
        background-image: radial-gradient(120% 90% at 0% 100%, color-mix(in srgb, var(--lp-akzent, #3b82f6) 38%, transparent) 0%, transparent 62%);
    }
    .au-links h2 { margin: 0 0 24px; font-size: 30px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
    .au-vorteile { margin: 0; padding: 0; list-style: none; }
    .au-vorteile li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: 15px; line-height: 1.45; opacity: .95; }
    .au-vorteile i { margin-top: 3px; color: var(--lp-akzent, #3b82f6); }
    .au-rechts { flex: 1.15; max-width: none; margin: 0; padding: 40px 48px 36px; }
}
