/*
 * Restaurant-Anmeldung Letzdine Partner (views/website/pages/restaurant_login.php), Entwurf „C · Küchenlicht“ (19.11.2026).
 * Küchenfoto links, Glas-Karte rechts, Letzi winkt über der Karte. Hell/Dunkel über [data-theme] auf <html>
 * (gleiche Wahl wie im Restaurant-Backend, localStorage „rb-theme“), sonst Systemeinstellung. Ohne Bootstrap.
 */
@font-face {
    font-family: "Geist";
    src: url("../partner/fonts/geist-variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    --bg: #f4f6f9;
    --card: rgba(255, 255, 255, .9);
    --text: #0d1524;
    --muted: #566175;
    --line: rgba(13, 21, 36, .13);
    --line-strong: rgba(13, 21, 36, .28);
    --field: #ffffff;
    --accent: #0b77b4;
    --accent-h: #0a6fa8;
    --on: #ffffff;
    --focus: rgba(11, 119, 180, .24);
    --err-bg: #fdeeee;
    --err-line: #f2c4c7;
    --err: #a0111b;
    --ok-bg: #e6f6ee;
    --ok-line: #b9e3cc;
    --ok: #14663f;
    --veil: linear-gradient(90deg, rgba(244, 246, 249, 0) 0%, rgba(244, 246, 249, 0) 34%, rgba(244, 246, 249, .85) 54%, #f4f6f9 62%);
    --veil-m: linear-gradient(180deg, rgba(244, 246, 249, 0) 40%, #f4f6f9 100%);
    --shadow: 0 40px 80px -40px rgba(7, 17, 31, .55);
    --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #050a14;
    --card: rgba(13, 20, 33, .88);
    --text: #eef3f9;
    --muted: #98a4b7;
    --line: rgba(255, 255, 255, .13);
    --line-strong: rgba(255, 255, 255, .3);
    --field: #0c1422;
    --accent: #38b6ea;
    --accent-h: #62c6ef;
    --on: #04131d;
    --focus: rgba(56, 182, 234, .3);
    --err-bg: #2b1519;
    --err-line: #5c252c;
    --err: #ffb3b8;
    --ok-bg: #0f2a1d;
    --ok-line: #1f5a3c;
    --ok: #8ee8b6;
    --veil: linear-gradient(90deg, rgba(5, 10, 20, .35) 0%, rgba(5, 10, 20, .45) 34%, rgba(5, 10, 20, .9) 54%, #050a14 62%);
    --veil-m: linear-gradient(180deg, rgba(5, 10, 20, .2) 30%, #050a14 100%);
    --shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        color-scheme: dark;
        --bg: #050a14; --card: rgba(13, 20, 33, .88); --text: #eef3f9; --muted: #98a4b7;
        --line: rgba(255, 255, 255, .13); --line-strong: rgba(255, 255, 255, .3); --field: #0c1422;
        --accent: #38b6ea; --accent-h: #62c6ef; --on: #04131d; --focus: rgba(56, 182, 234, .3);
        --err-bg: #2b1519; --err-line: #5c252c; --err: #ffb3b8; --ok-bg: #0f2a1d; --ok-line: #1f5a3c; --ok: #8ee8b6;
        --veil: linear-gradient(90deg, rgba(5, 10, 20, .35) 0%, rgba(5, 10, 20, .45) 34%, rgba(5, 10, 20, .9) 54%, #050a14 62%);
        --veil-m: linear-gradient(180deg, rgba(5, 10, 20, .2) 30%, #050a14 100%);
        --shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
    }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body.rl {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.5 var(--font);
    letter-spacing: -.01em;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}
.rl a { color: var(--link, var(--accent)); }

/* ---------- Foto und Schleier ---------- */
.rl-photo {
    position: fixed;
    inset: 0 auto 0 0;
    width: 64vw;
    background: #c9d3dc url("img/kuechenpass.jpg") center 70% / cover no-repeat;
}
.rl-veil { position: fixed; inset: 0; background: var(--veil); pointer-events: none; }

/* ---------- Aufbau ---------- */
.rl-wrap {
    position: relative;
    display: grid;
    grid-template-columns: 1fr minmax(0, 460px);
    gap: 24px;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 28px clamp(20px, 5vw, 80px);
}
.rl-side { display: flex; flex-direction: column; justify-content: space-between; color: #fff; }
.rl-chip {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    background: rgba(7, 17, 31, .58);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    font-size: 13.5px;
    font-weight: 550;
}
.rl-chip img { width: 30px; height: 30px; border-radius: 50%; background: #fff; object-fit: cover; }
.rl-quote {
    max-width: 420px;
    margin: 0 0 8px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(7, 17, 31, .58);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    font-size: 15px;
    line-height: 1.5;
}
.rl-quote b { display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #7fd0f3; }

.rl-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.rl-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rl-logo { display: block; flex: none; }
.rl-logo img { display: block; height: 32px; width: auto; }
.rl-logo .is-dark { display: none; }
:root[data-theme="dark"] .rl-logo .is-light { display: none; }
:root[data-theme="dark"] .rl-logo .is-dark { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .rl-logo .is-light { display: none; }
    :root:not([data-theme]) .rl-logo .is-dark { display: block; }
}
.rl-tools { display: flex; gap: 6px; flex: none; }
.rl-seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.rl-seg a {
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.rl-seg a:hover { color: var(--text); }
.rl-seg a[aria-current] { background: var(--accent); color: var(--on); }
.rl-iconbtn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--muted);
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease;
}
.rl-iconbtn:hover { color: var(--text); border-color: var(--line-strong); }
.rl-iconbtn .is-sun { display: none; }
:root[data-theme="dark"] .rl-iconbtn .is-moon { display: none; }
:root[data-theme="dark"] .rl-iconbtn .is-sun { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .rl-iconbtn .is-moon { display: none; }
    :root:not([data-theme]) .rl-iconbtn .is-sun { display: block; }
}
.rl-seg a:focus-visible, .rl-iconbtn:focus-visible, .rl-eye:focus-visible, .rl-btn:focus-visible, .rl-card a:focus-visible, .rl-foot a:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

/* ---------- Karte ---------- */
.rl-cardwrap { position: relative; margin: auto 0; padding-top: 110px; }
.rl-peek {
    position: absolute;
    top: -8px;
    right: 26px;
    width: 150px;
    height: 150px;
    transform-origin: 50% 100%;
    animation: rl-wave 4.5s ease-in-out 1s infinite;
}
@keyframes rl-wave {
    0%, 30%, 100% { transform: rotate(0); }
    8% { transform: rotate(-4deg); }
    16% { transform: rotate(3deg); }
    24% { transform: rotate(-1deg); }
}
.rl-card {
    position: relative;
    z-index: 1;
    padding: 32px 30px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--card);
    -webkit-backdrop-filter: blur(26px) saturate(1.5);
    backdrop-filter: blur(26px) saturate(1.5);
    box-shadow: var(--shadow);
}
.rl-hi { margin: 0; font-size: 14px; font-weight: 600; color: var(--hi, var(--accent)); }
.rl-h1 { margin: 6px 0; font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -.04em; text-wrap: balance; }
.rl-sub { margin: 0 0 24px; font-size: 15px; color: var(--muted); text-wrap: pretty; }
.rl-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid var(--err-line);
    border-radius: 12px;
    background: var(--err-bg);
    color: var(--err);
    font-size: 14px;
    line-height: 1.45;
}
.rl-alert svg { flex: none; margin-top: 1px; }
.rl-alert.is-ok { border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok); }
.rl-form { margin: 0; }
.rl-field { display: grid; gap: 7px; margin: 0 0 14px; }
.rl-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rl-label { font-size: 13.5px; font-weight: 600; }
.rl-row a { font-size: 13.5px; font-weight: 550; text-decoration: none; }
.rl-row a:hover { text-decoration: underline; }
.rl-input {
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--field);
    color: var(--text);
    font: inherit;
    font-size: 16px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.rl-input:hover { border-color: var(--line-strong); }
.rl-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--focus); }
.rl-pw { position: relative; }
.rl-pw .rl-input { padding-right: 52px; }
.rl-eye {
    position: absolute;
    top: 4px;
    right: 4px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--muted);
    cursor: pointer;
}
.rl-eye:hover { color: var(--text); }
.rl-eye .is-off { display: none; }
.rl-eye[aria-pressed="true"] .is-on { display: none; }
.rl-eye[aria-pressed="true"] .is-off { display: block; }
.rl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 54px;
    margin: 6px 0 0;
    border: 0;
    border-radius: 14px;
    background: var(--accent);
    color: var(--on);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    box-shadow: 0 16px 30px -18px var(--btn-glow, rgba(11, 119, 180, .9));
    transition: background-color .15s ease, transform .15s cubic-bezier(.23, 1, .32, 1);
}
.rl-btn:hover { background: var(--accent-h); }
.rl-btn:active { transform: translateY(1px); }
.rl-btn .rl-busy { display: none; }
.rl-btn.is-busy { cursor: progress; }
.rl-btn.is-busy .rl-idle { display: none; }
.rl-btn.is-busy .rl-busy { display: inline-flex; align-items: center; gap: 10px; }
.rl-spin { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rl-spin .7s linear infinite; }
@keyframes rl-spin { to { transform: rotate(360deg); } }
.rl-new {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    margin-top: 22px;
    padding: 14px 16px;
    border: 1px dashed var(--line-strong);
    border-radius: 14px;
    font-size: 14px;
    color: var(--muted);
}
.rl-new a { font-weight: 650; text-decoration: none; white-space: nowrap; }
.rl-new a:hover { text-decoration: underline; }
.rl-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 14px; font-weight: 600; text-decoration: none; }
.rl-back:hover { text-decoration: underline; }
.rl-foot { display: flex; justify-content: center; gap: 16px; margin: 0; font-size: 12.5px; color: var(--muted); }
.rl-foot a { color: var(--muted); text-decoration: none; }
.rl-foot a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Tablet und Handy ---------- */
@media (max-width: 900px) {
    /* Foto läuft über eine Maske aus: keine Kante hinter der halbdurchsichtigen Karte. */
    .rl-photo {
        position: absolute;
        inset: 0 0 auto;
        width: auto;
        height: 46vh;
        -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
        mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
    }
    .rl-veil { position: absolute; inset: 0 0 auto; height: 46vh; background: var(--veil-m); opacity: .6; }
    .rl-wrap { display: block; min-height: 0; padding: 16px 16px 28px; }
    .rl-side { display: none; }
    .rl-col { max-width: 480px; margin: 0 auto; }
    .rl-top {
        position: relative;
        padding: 6px 6px 6px 12px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: var(--card);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }
    .rl-logo img { height: 28px; }
    .rl-cardwrap { margin-top: 70px; padding-top: 96px; }
    .rl-peek { top: 2px; right: 18px; width: 118px; height: 118px; }
    .rl-card { padding: 24px 20px; border-radius: 22px; }
    .rl-h1 { font-size: 27px; }
}
@media (max-width: 380px) {
    .rl-wrap { padding-left: 12px; padding-right: 12px; }
    .rl-top { padding-left: 10px; }
    .rl-logo img { height: 22px; }
    .rl-seg a { min-width: 32px; padding: 0 7px; }
    .rl-iconbtn { width: 34px; height: 34px; }
    .rl-card { padding: 22px 16px; }
    .rl-h1 { font-size: 25px; }
    .rl-new { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .rl-peek { animation: none; }
    .rl-spin { animation-duration: 1.6s; }
    .rl-btn, .rl-input, .rl-seg a { transition: none; }
}

/* ---------- Restopage-Adressen (my.restopage.eu, *.restopage.eu): gleiche Seite im Restopage-Look ----------
 * Farben, Schrift (Archivo, OFL – fonts/ARCHIVO-OFL.txt) und Logo wie restopage.eu/login; kein Letzi. */
@font-face {
    font-family: "Archivo";
    src: url("fonts/archivo-variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
body.rl--restopage {
    --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bg: #f4f8fa;
    --text: #1a282f;
    --muted: #4a5961;
    --line: rgba(26, 40, 47, .13);
    --line-strong: rgba(26, 40, 47, .3);
    --accent: #e30613;
    --accent-h: #b8040f;
    --on: #ffffff;
    --link: #1279ad;
    --hi: #e30613;
    --focus: rgba(26, 158, 218, .28);
    --btn-glow: rgba(227, 6, 19, .55);
    --veil: linear-gradient(90deg, rgba(244, 248, 250, 0) 0%, rgba(244, 248, 250, 0) 34%, rgba(244, 248, 250, .85) 54%, #f4f8fa 62%);
    --veil-m: linear-gradient(180deg, rgba(244, 248, 250, 0) 40%, #f4f8fa 100%);
}
:root[data-theme="dark"] body.rl--restopage {
    --bg: #0f1a20;
    --card: rgba(24, 37, 44, .9);
    --text: #eef3f5;
    --muted: #9fb0b8;
    --line: rgba(255, 255, 255, .13);
    --line-strong: rgba(255, 255, 255, .3);
    --field: #13222a;
    --accent: #e30613;
    --accent-h: #ff2a36;
    --on: #ffffff;
    --link: #4cb8ea;
    --hi: #ff5a64;
    --focus: rgba(76, 184, 234, .3);
    --veil: linear-gradient(90deg, rgba(15, 26, 32, .35) 0%, rgba(15, 26, 32, .45) 34%, rgba(15, 26, 32, .9) 54%, #0f1a20 62%);
    --veil-m: linear-gradient(180deg, rgba(15, 26, 32, .2) 30%, #0f1a20 100%);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) body.rl--restopage {
        --bg: #0f1a20; --card: rgba(24, 37, 44, .9); --text: #eef3f5; --muted: #9fb0b8;
        --line: rgba(255, 255, 255, .13); --line-strong: rgba(255, 255, 255, .3); --field: #13222a;
        --accent: #e30613; --accent-h: #ff2a36; --on: #ffffff; --link: #4cb8ea; --hi: #ff5a64; --focus: rgba(76, 184, 234, .3);
        --veil: linear-gradient(90deg, rgba(15, 26, 32, .35) 0%, rgba(15, 26, 32, .45) 34%, rgba(15, 26, 32, .9) 54%, #0f1a20 62%);
        --veil-m: linear-gradient(180deg, rgba(15, 26, 32, .2) 30%, #0f1a20 100%);
    }
}
.rl--restopage .rl-h1 { font-weight: 800; letter-spacing: -.03em; }
.rl--restopage .rl-quote b { color: #4cb8ea; }
.rl--restopage .rl-chip img { padding: 3px; }
.rl--restopage .rl-logo--rp img { height: 34px; }
.rl--restopage .rl-cardwrap { padding-top: 0; }
@media (max-width: 900px) {
    .rl--restopage .rl-cardwrap { margin-top: 160px; padding-top: 0; }
    .rl--restopage .rl-logo--rp img { height: 28px; }
}
@media (max-width: 380px) {
    .rl--restopage .rl-logo--rp img { height: 24px; }
}
