/* Konferenz-Portal: Anmeldung, Registrierung und (vorerst) Dashboard.
   Gleiche Familie wie das Hotel-Portal (Gold, Inter, Glas-Karte), eigener Hintergrund. */
:root {
    --gold: #c5a059;
    --gold-dunkel: #8a6a1f;
    --dunkel: #1c1c1e;
    --nacht: 12, 22, 38;            /* Blauton des Hintergrunds, als RGB für rgba() */
    --text: #1a1a1a;
    --text-muted: #6e6e73;
    --weiss: #ffffff;
    --glas: rgba(255, 255, 255, 0.82);
    --glas-rand: rgba(255, 255, 255, 0.55);
    --fehler: #c0392b;
    --erfolg: #1e8449;
    --info: #2471a3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: rgb(var(--nacht));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── HINTERGRUND ── */
.konferenz-bg {
    position: fixed;
    inset: 0;
    background: url('../img/konferenz-saal.jpg') no-repeat center center;
    background-size: cover;
    z-index: -1;
}

.konferenz-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
            rgba(var(--nacht), 0.55) 0%,
            rgba(var(--nacht), 0.72) 55%,
            rgba(var(--nacht), 0.88) 100%);
}

/* ── KOPFZEILE ── */
header {
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--weiss);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.logo i,
.logo span span {
    color: var(--gold);
}

.lang-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-btn {
    color: var(--weiss);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    transition: all 0.25s;
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--gold);
    color: var(--dunkel);
    border-color: var(--gold);
}

/* ── KARTE ── */
.auth-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem 3rem;
}

.auth-card {
    background: var(--glas);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    width: 100%;
    max-width: 520px;
    padding: 3rem 2.5rem 2.5rem;
    border-radius: 28px;
    border: 1px solid var(--glas-rand);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    animation: einblenden 0.6s ease-out;
}

@keyframes einblenden {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--dunkel);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ── TABS ── */
.auth-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1.8rem;
}

.auth-tab {
    flex: 1;
    border: none;
    background: none;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 10px 0;
    border-radius: 10px;
    transition: all 0.25s;
}

.auth-tab.active {
    background: var(--weiss);
    color: var(--dunkel);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ── MELDUNGEN ── */
.alert {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.4rem;
    font-size: 0.88rem;
    line-height: 1.45;
    text-align: center;
    border: 1px solid;
}

.alert-error { color: var(--fehler); background: rgba(192, 57, 43, 0.08); border-color: rgba(192, 57, 43, 0.5); }
.alert-success { color: var(--erfolg); background: rgba(30, 132, 73, 0.08); border-color: rgba(30, 132, 73, 0.5); }
.alert-info { color: var(--info); background: rgba(36, 113, 163, 0.08); border-color: rgba(36, 113, 163, 0.5); }

/* ── FORMULAR ── */
.form-section {
    margin-top: 1.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.form-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.form-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dunkel);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title i {
    color: var(--gold);
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-grid--plz {
    grid-template-columns: 1fr 2fr;
}

label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 0.9rem;
    pointer-events: none;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.92rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--dunkel);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

textarea {
    resize: vertical;
    min-height: 84px;
    line-height: 1.45;
}

select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c5a059' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.input-wrapper input {
    padding-left: 40px;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.75;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--weiss);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.feld-hinweis {
    margin-top: 6px;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-muted);
}

.datenschutz-hinweis {
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

.datenschutz-hinweis a {
    color: var(--gold-dunkel);
    font-weight: 500;
}

/* Passwort anzeigen: Auge rechts im Feld */
.pw-feld {
    position: relative;
}

.pw-feld input {
    padding-right: 46px;
}

.pw-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
}

.pw-toggle:hover,
.pw-toggle:focus-visible {
    color: var(--dunkel);
    background: rgba(0, 0, 0, 0.05);
    outline: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.83rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
}

.remember-label input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--gold);
}

.link-text {
    border: none;
    background: none;
    padding: 0;
    font-family: inherit;
    color: var(--gold-dunkel);
    font-weight: 500;
    font-size: 0.83rem;
    cursor: pointer;
}

.link-text:hover,
.link-text:focus-visible {
    text-decoration: underline;
    outline: none;
}

.knopf-zeile {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

/* ── KNOPF ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 1.4rem;
}

.btn-premium {
    background: var(--dunkel);
    color: var(--weiss);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.btn-premium:hover:not(:disabled) {
    background: var(--gold);
    color: var(--dunkel);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(197, 160, 89, 0.3);
}

.btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* ── CODE ── */
.code-input {
    letter-spacing: 12px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-dunkel);
    text-align: center;
}

/* ── NACH DER BESTÄTIGUNG ── */
.fertig-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--erfolg);
    background: rgba(46, 204, 113, 0.15);
}

.fertig-schritte {
    list-style: none;
    display: grid;
    gap: 10px;
}

.fertig-schritte li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.fertig-schritte li i {
    margin-top: 2px;
    width: 18px;
    text-align: center;
    color: var(--gold);
}

.fertig-schritte li.erledigt,
.fertig-schritte li.aktiv {
    color: var(--dunkel);
}

.fertig-schritte li.erledigt i {
    color: var(--erfolg);
}

.fertig-schritte li.aktiv {
    font-weight: 600;
}

/* ── FUSS ── */
.footer-links {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.78rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--gold-dunkel);
    text-decoration: underline;
}

.footer-links .trenner {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.footer-text {
    text-align: center;
    margin-top: 0.6rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── VORTEILE (nur breite Bildschirme) ── */
.vorteile {
    display: none;
}

@media (min-width: 1100px) {
    .auth-container {
        gap: 4rem;
        align-items: flex-start;
        padding-top: 2rem;
    }

    .vorteile {
        display: block;
        position: sticky;
        top: 2rem;
        max-width: 430px;
        padding: 2.2rem;
        border-radius: 28px;
        background: rgba(var(--nacht), 0.55);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: var(--weiss);
        animation: einblenden 0.6s ease-out;
    }

    .vorteile h2 {
        font-size: 1.75rem;
        line-height: 1.2;
        letter-spacing: -0.5px;
        margin-bottom: 0.8rem;
    }

    .vorteile-text {
        font-size: 0.95rem;
        line-height: 1.55;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 1.6rem;
    }

    .vorteile ul {
        list-style: none;
        display: grid;
        gap: 1.1rem;
    }

    .vorteile li {
        display: flex;
        gap: 14px;
        align-items: flex-start;
    }

    .vorteile li i {
        flex-shrink: 0;
        width: 38px;
        height: 38px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(197, 160, 89, 0.18);
        color: var(--gold);
        font-size: 0.95rem;
    }

    .vorteile li strong {
        display: block;
        font-size: 0.95rem;
        margin-bottom: 2px;
    }

    .vorteile li span {
        font-size: 0.85rem;
        line-height: 1.45;
        color: rgba(255, 255, 255, 0.75);
    }
}

/* ── SCHMALE BILDSCHIRME ── */
@media (max-width: 600px) {
    header {
        padding: 1rem 16px;
    }

    .logo {
        font-size: 1.15rem;
    }

    .auth-container {
        padding: 0.5rem 16px 2rem;
    }

    .auth-card {
        padding: 2.2rem 1.4rem 2rem;
        border-radius: 22px;
    }

    .auth-header h1 {
        font-size: 1.45rem;
    }

    .form-grid,
    .form-grid--plz {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
