/*
 * Radio LiSa Chat
 * Idee & Entwicklung: datOnkel & Posttommy
 * Kontakt: info@radio-lisa.de | www.Radio-LiSa.de
 * Copyright (c) Radio LiSa Team
 * Dieses Projekt ist urheberrechtlich geschuetzt und darf ohne ausdrueckliche
 * schriftliche Genehmigung nicht kopiert oder vervielfaeltigt werden.
 */

:root {
    --bg: #050713;
    --panel: rgba(8, 12, 30, .72);
    --panel-strong: rgba(10, 15, 38, .86);
    --line: rgba(255, 255, 255, .13);
    --line-strong: rgba(202, 79, 255, .48);
    --text: #f8fbff;
    --muted: rgba(248, 251, 255, .68);
    --pink: #ff2fcf;
    --pink2: #ff5cb8;
    --purple: #8f45ff;
    --blue: #3f7dff;
    --cyan: #35e3ff;
    --green: #35f0a6;
    --radius: 28px;
    --shadow: 0 28px 90px rgba(0, 0, 0, .52);
    --page: 1360px;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100%; margin: 0; }

body.login-page {
    min-height: 100svh;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 14% 20%, rgba(255, 47, 207, .20), transparent 28rem),
        radial-gradient(circle at 86% 12%, rgba(63, 125, 255, .18), transparent 32rem),
        linear-gradient(180deg, rgba(3, 6, 18, .76), rgba(3, 6, 18, .95)),
        url('../images/bilder/background.png') center / cover no-repeat fixed,
        var(--bg);
    overflow-x: hidden;
}

body.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, #000, transparent 75%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.page-shell {
    width: min(var(--page), calc(100vw - 32px));
    min-height: 100svh;
    margin: 0 auto;
    padding: 18px 0 24px;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: clamp(14px, 2vw, 22px);
}

.glass-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(11, 17, 42, .82), rgba(6, 9, 24, .62));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,47,207,.75), rgba(63,125,255,.2), rgba(53,227,255,.45), rgba(255,47,207,.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.topbar {
    min-height: 66px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand strong { display: block; font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1; }
.brand em { color: var(--pink); font-style: italic; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: .82rem; }

.brand-bars { display: inline-flex; align-items: end; gap: 4px; height: 42px; }
.brand-bars i { width: 7px; border-radius: 99px; background: linear-gradient(to top, var(--blue), var(--pink)); box-shadow: 0 0 18px rgba(255,47,207,.45); }
.brand-bars i:nth-child(1) { height: 18px; }
.brand-bars i:nth-child(2) { height: 31px; }
.brand-bars i:nth-child(3) { height: 42px; }
.brand-bars i:nth-child(4) { height: 27px; }
.brand-bars i:nth-child(5) { height: 34px; }

.top-nav { display: flex; align-items: center; gap: 8px; }
.top-nav a {
    padding: 10px 16px;
    border-radius: 16px;
    color: var(--muted);
    transition: .2s ease;
}
.top-nav a:hover { color: var(--text); background: rgba(255,255,255,.08); }

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
    gap: 22px;
    align-items: stretch;
}

.hero-visual {
    min-height: clamp(245px, 32vw, 390px);
    display: grid;
    place-items: center;
    padding: clamp(22px, 4vw, 52px);
}

.banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .92;
    filter: saturate(1.2) contrast(1.05);
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5,7,19,.28), rgba(5,7,19,.42), rgba(5,7,19,.68));
}

.hero-copy {
    position: relative;
    z-index: 1;
    width: min(740px, 100%);
    text-align: center;
    text-shadow: 0 14px 34px rgba(0,0,0,.65);
}
.hero-copy p { margin: 0 0 10px; color: rgba(255,255,255,.82); text-transform: uppercase; letter-spacing: .46em; font-weight: 800; }
.hero-copy h1 { margin: 0; font-size: clamp(4rem, 10vw, 9rem); line-height: .85; letter-spacing: -.08em; }
.hero-copy h1 span { color: var(--pink); filter: drop-shadow(0 0 26px rgba(255,47,207,.55)); }
.hero-copy strong { display: block; margin-top: 18px; color: rgba(255,255,255,.88); font-size: clamp(1.15rem, 2vw, 2rem); font-style: italic; font-weight: 500; }

.side-panel { display: grid; gap: 18px; }
.side-panel .info-card { height: 100%; }
.info-card { padding: 24px; }
.info-card h2 { margin: 0 0 18px; color: #e58cff; font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; }
.rule-list { margin: 0; padding: 0; list-style: none; counter-reset: rules; display: grid; gap: 12px; }
.rule-list li { counter-increment: rules; display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; color: rgba(255,255,255,.82); line-height: 1.35; }
.rule-list li::before { content: counter(rules, decimal-leading-zero); display: grid; place-items: center; height: 24px; border-radius: 999px; background: rgba(143,69,255,.68); color: #fff; font-size: .72rem; font-weight: 900; }

.ghost-button {
    width: 100%;
    min-height: 48px;
    margin-top: 20px;
    border: 1px solid rgba(255,47,207,.48);
    border-radius: 14px;
    color: #f08cff;
    background: rgba(255,47,207,.05);
    cursor: pointer;
}
.info-card a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; color: rgba(255,255,255,.84); border-bottom: 1px solid rgba(255,255,255,.08); }
.info-card a:last-child { border-bottom: 0; }
.info-card a span { color: var(--pink); font-size: 1.6rem; }

.login-layout { display: grid; justify-items: center; gap: 18px; margin-top: clamp(-72px, -5vw, -34px); position: relative; z-index: 2; }
.auth-card { width: min(820px, 100%); padding: 0; }
.auth-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(3,6,18,.42); }
.tab-btn {
    min-height: 70px;
    border: 0;
    color: rgba(255,255,255,.66);
    background: transparent;
    cursor: pointer;
    font-weight: 900;
    letter-spacing: .02em;
    transition: .22s ease;
}
.tab-btn:hover, .tab-btn.active { color: #fff; background: rgba(255,255,255,.06); box-shadow: inset 0 -2px 0 var(--pink); }

.alert {
    margin: 18px 22px 0;
    padding: 12px 14px;
    border-radius: 16px;
    color: #fff;
    background: rgba(255, 57, 90, .18);
    border: 1px solid rgba(255, 57, 90, .42);
    text-align: center;
}

.auth-panels { position: relative; min-height: 465px; }
.auth-panel {
    display: none;
    padding: 34px;
    animation: fadeIn .25s ease;
}
.auth-panel.active { display: block; }

.panel-title { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.panel-title.centered { display: block; text-align: center; }
.panel-title > span, .guest-icon {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,47,207,.38), rgba(143,69,255,.18));
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 0 34px rgba(255,47,207,.22);
    font-size: 1.8rem;
}
.guest-icon { margin: 0 auto 16px; width: 86px; height: 86px; font-size: 2.3rem; }
.panel-title h2 { margin: 0; font-size: clamp(1.35rem, 2vw, 1.75rem); }
.panel-title p { margin: 5px 0 0; color: var(--muted); }

form { display: grid; gap: 14px; }
form label:not(.rules-accept):not(.mini-check):not(.gender-group label) { display: grid; gap: 7px; color: var(--muted); font-size: .9rem; font-weight: 800; }
input[type="text"], input[type="password"], input:not([type]) {
    width: 100%;
    height: 50px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    padding: 0 15px;
    color: var(--text);
    outline: none;
    background: rgba(3, 8, 24, .74);
    transition: .2s ease;
}
input:focus { border-color: rgba(255,47,207,.75); box-shadow: 0 0 0 4px rgba(255,47,207,.12); }

.form-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .88rem; }
.form-line a { color: #ef7dff; }
.mini-check { display: inline-flex; align-items: center; gap: 8px; }

.gender-group { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gender-group label { cursor: pointer; }
.gender-group input { position: absolute; opacity: 0; pointer-events: none; }
.gender-group span {
    min-height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: rgba(255,255,255,.78);
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.045);
    transition: .2s ease;
    font-weight: 800;
    font-size: .88rem;
}
.gender-group input:checked + span { color: #fff; border-color: rgba(255,47,207,.78); background: rgba(255,47,207,.16); box-shadow: 0 0 24px rgba(255,47,207,.2); }

.rules-accept { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; color: var(--muted); line-height: 1.35; font-size: .88rem; }
.rules-accept input, .mini-check input { accent-color: var(--pink); }
.hint { padding: 12px 14px; border-radius: 14px; color: #b9d7ff; background: rgba(63,125,255,.12); border: 1px solid rgba(63,125,255,.28); font-size: .9rem; }
.primary-button {
    min-height: 54px;
    border: 0;
    border-radius: 15px;
    color: #fff;
    font-weight: 950;
    cursor: pointer;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    box-shadow: 0 16px 36px rgba(255,47,207,.24);
    transition: .18s ease;
}
.primary-button:hover { transform: translateY(-1px); filter: brightness(1.07); }

.feature-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    color: rgba(255,255,255,.76);
}
.feature-row span { padding: 12px 16px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }

.page-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: rgba(255,255,255,.58); font-size: .9rem; }
.page-footer nav { display: flex; gap: 22px; }


.bg-equalizer { position: fixed; left: 26px; bottom: 26px; display: flex; align-items: end; gap: 8px; opacity: .35; pointer-events: none; }
.bg-equalizer span { width: 14px; border-radius: 99px; background: linear-gradient(to top, var(--blue), var(--pink)); animation: bars 1.1s ease-in-out infinite alternate; }
.bg-equalizer span:nth-child(1) { height: 36px; animation-delay: .1s; }
.bg-equalizer span:nth-child(2) { height: 80px; animation-delay: .3s; }
.bg-equalizer span:nth-child(3) { height: 52px; animation-delay: .2s; }
.bg-equalizer span:nth-child(4) { height: 110px; animation-delay: .45s; }
.bg-equalizer span:nth-child(5) { height: 70px; animation-delay: .15s; }
.bg-equalizer span:nth-child(6) { height: 42px; animation-delay: .35s; }

.light-mode {
    --text: #101424;
    --muted: rgba(16,20,36,.68);
    background: linear-gradient(120deg, rgba(246,248,255,.86), rgba(248,242,255,.76)), url('../images/bilder/background.png') center / cover no-repeat fixed, #f7f8ff !important;
}
.light-mode .glass-card { background: rgba(255,255,255,.72); }
.light-mode input[type="text"], .light-mode input[type="password"], .light-mode input:not([type]) { color: #101424; background: rgba(255,255,255,.74); border-color: rgba(16,20,36,.14); }
.light-mode .mode-toggle { color: #101424; background: rgba(255,255,255,.7); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bars { to { transform: scaleY(.55); opacity: .65; } }

@media (max-width: 1100px) {
    .hero-section { grid-template-columns: 1fr; }
    .side-panel { grid-template-columns: 1fr 1fr; }
    .login-layout { margin-top: 0; }
}

@media (max-width: 760px) {
    .page-shell { width: min(100vw - 20px, var(--page)); padding-top: 10px; }
    .topbar { align-items: flex-start; flex-direction: column; }
    .top-nav { width: 100%; justify-content: space-between; }
    .hero-visual { min-height: 300px; }
    .side-panel { grid-template-columns: 1fr; }
    .auth-tabs { grid-template-columns: 1fr; }
    .tab-btn { min-height: 54px; }
    .auth-panels { min-height: 0; }
    .auth-panel { padding: 22px; }
    .gender-group { grid-template-columns: 1fr 1fr; }
    .page-footer { flex-direction: column; }
}

@media (max-width: 480px) {
    .hero-copy h1 { font-size: 3.4rem; }
    .hero-copy p { letter-spacing: .25em; }
    .panel-title { align-items: flex-start; }
    .panel-title > span { width: 52px; height: 52px; }
    .gender-group { grid-template-columns: 1fr; }
    .form-line { align-items: flex-start; flex-direction: column; }
}


/* ---------------------------------------------------------
   Radio LiSa clean responsive image integration
   Background: assets/images/bilder/background.png
   Header/Banner: assets/images/bilder/banner(2).png in index.php
--------------------------------------------------------- */

body.login-page {
    background:
        linear-gradient(180deg, rgba(2, 5, 14, .78) 0%, rgba(2, 5, 14, .94) 58%, rgba(2, 5, 14, .98) 100%),
        radial-gradient(circle at 16% 18%, rgba(255, 47, 207, .18), transparent 30rem),
        radial-gradient(circle at 88% 20%, rgba(53, 227, 255, .12), transparent 28rem),
        url('../images/bilder/background.png') center / cover no-repeat fixed,
        var(--bg);
}

body.login-page::before {
    opacity: .28;
}

.page-shell {
    min-height: 100svh;
    gap: clamp(14px, 2vw, 22px);
}

.topbar {
    position: sticky;
    top: 12px;
    z-index: 10;
    min-height: 66px;
    background: rgba(5, 8, 22, .68);
}

.hero-section {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
    align-items: stretch;
}

.hero-visual {
    min-height: clamp(260px, 33vw, 420px);
    padding: 0;
    isolation: isolate;
}

.banner-img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: .96;
    filter: saturate(1.05) contrast(1.04) brightness(.86);
}

.hero-visual::after {
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(5, 7, 19, .18), rgba(5, 7, 19, .38) 52%, rgba(5, 7, 19, .18)),
        linear-gradient(180deg, rgba(5, 7, 19, .06), rgba(5, 7, 19, .56));
}

.hero-copy {
    display: none;
}

.side-panel {
    grid-template-rows: auto 1fr;
}

.info-card,
.auth-card,
.topbar,
.hero-visual {
    border-color: rgba(150, 194, 255, .13);
}

.info-card {
    padding: clamp(18px, 2vw, 24px);
    background: rgba(5, 8, 22, .62);
}

.info-card h2 {
    margin-bottom: 16px;
}

.rule-list {
    gap: 10px;
}

.rule-list li {
    font-size: .94rem;
}

.login-layout {
    margin-top: clamp(-76px, -5vw, -42px);
}

.auth-card {
    width: min(820px, 100%);
    background: rgba(5, 8, 22, .74);
}

.auth-tabs {
    background: rgba(1, 4, 14, .38);
}

.tab-btn {
    min-height: 62px;
}

.auth-panels {
    min-height: 430px;
}

.auth-panel {
    padding: clamp(22px, 3vw, 34px);
}

.panel-title {
    margin-bottom: 18px;
}

form {
    gap: 12px;
}

input[type="text"],
input[type="password"],
input:not([type]) {
    height: 48px;
    background: rgba(3, 7, 20, .78);
}

.primary-button {
    min-height: 52px;
}

.feature-row {
    margin-top: 2px;
}

.feature-row span {
    background: rgba(5, 8, 22, .62);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.page-footer {
    padding: 4px 0;
}

.light-mode {
    background:
        linear-gradient(180deg, rgba(245, 248, 255, .72), rgba(235, 241, 255, .88)),
        url('../images/bilder/background.png') center / cover no-repeat fixed,
        #f7f8ff !important;
}

@media (max-width: 1100px) {
    .topbar {
        position: relative;
        top: 0;
    }

    .hero-section {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: clamp(220px, 42vw, 360px);
    }

    .side-panel {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .login-layout {
        margin-top: 0;
    }
}

@media (max-width: 760px) {
    body.login-page {
        background-attachment: scroll;
        background-position: center top;
    }

    .page-shell {
        width: min(100vw - 18px, var(--page));
        padding: 9px 0 18px;
    }

    .topbar {
        gap: 12px;
        padding: 13px;
        border-radius: 22px;
    }

    .brand strong {
        font-size: 1.35rem;
    }

    .brand small {
        font-size: .76rem;
    }

    .top-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .top-nav a {
        text-align: center;
        padding: 10px 8px;
        background: rgba(255,255,255,.045);
    }

    .hero-visual {
        min-height: 210px;
        border-radius: 22px;
    }

    .banner-img {
        object-fit: cover;
    }

    .side-panel {
        grid-template-columns: 1fr;
    }

    .info-card {
        border-radius: 22px;
    }

    .auth-card {
        border-radius: 22px;
    }

    .auth-tabs {
        grid-template-columns: repeat(3, 1fr);
        overflow: hidden;
    }

    .tab-btn {
        min-height: 54px;
        padding: 0 6px;
        font-size: .84rem;
    }

    .auth-panel {
        padding: 20px;
    }

    .panel-title,
    .panel-title.centered {
        text-align: left;
    }

    .panel-title.centered .guest-icon,
    .guest-icon {
        margin-left: 0;
        margin-right: 0;
    }

    .gender-group {
        grid-template-columns: 1fr 1fr;
    }

    .page-footer nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .bg-equalizer {
        display: none;
    }
}

@media (max-width: 480px) {
    .page-shell {
        width: min(100vw - 12px, var(--page));
    }

    .brand-bars {
        height: 34px;
        gap: 3px;
    }

    .brand-bars i {
        width: 6px;
    }

    .hero-visual {
        min-height: 160px;
    }

    .auth-tabs {
        grid-template-columns: 1fr;
    }

    .tab-btn {
        min-height: 48px;
    }

    .gender-group {
        grid-template-columns: 1fr;
    }

    .info-card,
    .auth-panel {
        padding: 16px;
    }

    .rule-list li {
        font-size: .88rem;
    }

    .feature-row span {
        width: 100%;
        text-align: center;
    }
}


/* Clean Radio-LiSa Anpassung: kein Light-Mode, keine Hilfe-Box */
.topbar {
    background: rgba(5, 9, 24, .58);
    min-height: 94px;
    padding: 12px 20px;
}
.hero-visual {
    border-color: rgba(255, 255, 255, .10);
}
.side-panel {
    min-height: 100%;
}
.rule-list {
    gap: 13px;
}
.auth-card {
    background: rgba(7, 12, 31, .72);
}
@media (max-width: 1100px) {
    .side-panel { grid-template-columns: 1fr; }
    .login-layout { margin-top: 0; }
}
@media (max-width: 760px) {
    body.login-page { background-attachment: scroll; }
    .hero-section { gap: 14px; }
    .hero-visual { min-height: 240px; }
    .banner-img { object-fit: cover; object-position: center; }
    .top-nav { justify-content: flex-start; flex-wrap: wrap; }
}

/* Header-Branding mit Bild */
.brand {
    min-width: 0;
    align-items: center;
}

.brand-logo {
    width: clamp(230px, 30vw, 420px);
    height: clamp(64px, 9vw, 112px);
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(2, 5, 14, .42);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .32);
    flex: 0 0 auto;
}

.brand > span:last-child {
    min-width: 0;
}

.brand strong {
    line-height: 1.05;
}

@media (max-width: 760px) {
    .topbar {
        min-height: 78px;
        padding: 10px 14px;
    }

    .brand {
        width: 100%;
        gap: 10px;
    }

    .brand-logo {
        width: 230px;
        height: 72px;
    }

    .brand strong {
        font-size: 1.2rem;
    }

    .brand small {
        font-size: .72rem;
        line-height: 1.2;
    }
}

@media (max-width: 420px) {
    .topbar {
        min-height: 68px;
    }

    .brand-logo {
        width: 180px;
        height: 56px;
    }

    .brand strong {
        font-size: 1.05rem;
    }

    .brand small {
        font-size: .68rem;
    }
}

/* Vollansicht ohne Seitenscrollen (Desktop) */
html,
body {
    height: 100%;
}

body.login-page {
    overflow: hidden;
}

.page-shell {
    height: 100svh;
    min-height: 100svh;
    padding: 6px 0 8px;
    gap: 8px;
    grid-template-rows: auto 1fr auto auto;
}

.topbar {
    min-height: 66px;
    padding: 6px 12px;
}

.hero-section {
    min-height: 0;
    gap: 10px;
    align-items: stretch;
}

.hero-section .hero-login-layout,
.hero-section .side-panel,
.hero-section .auth-card,
.hero-section .info-card {
    min-height: 0;
}

.hero-section .hero-login-layout {
    gap: 8px;
}

.auth-tabs .tab-btn {
    min-height: 40px;
    font-size: .86rem;
}

.auth-panels {
    min-height: 0;
    max-height: calc(100svh - 240px);
    overflow: auto;
}

.panel-title h2 {
    font-size: 1.06rem;
}

.panel-title p {
    font-size: .82rem;
}

.auth-panel {
    padding: 10px 12px;
}

.panel-title {
    margin-bottom: 8px;
}

form {
    gap: 8px;
}

input[type="text"],
input[type="password"],
input:not([type]) {
    height: 38px;
}

.primary-button {
    min-height: 40px;
}

.feature-row {
    gap: 6px;
}

.feature-row span {
    padding: 6px 10px;
    font-size: .82rem;
}

.page-footer {
    font-size: .76rem;
}

@media (max-height: 860px) {
    .auth-panel {
        padding: 14px 14px;
    }

    .panel-title > span,
    .guest-icon {
        width: 54px;
        height: 54px;
        font-size: 1.4rem;
    }

    .guest-icon {
        margin-bottom: 10px;
    }

    .panel-title h2 {
        font-size: 1.18rem;
    }

    .panel-title p {
        margin-top: 3px;
        font-size: .88rem;
    }
}

@media (max-width: 1100px), (max-height: 740px) {
    body.login-page {
        overflow: auto;
    }

    .page-shell {
        height: auto;
        min-height: 100svh;
    }

    .auth-panels {
        max-height: none;
        overflow: visible;
    }
}

/* Login-Block links neben Regeln */
.hero-section {
    --equal-box-height: calc(100svh - 170px);
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
    grid-template-rows: minmax(0, 1fr);
}

.hero-section .hero-login-layout {
    margin-top: 0;
    height: 100%;
    justify-items: stretch;
    align-content: start;
}

.hero-section .hero-login-layout .auth-card {
    width: 100%;
    height: var(--equal-box-height);
    max-height: var(--equal-box-height);
    margin: 0;
    display: grid;
    grid-template-rows: auto auto 1fr;
}

.hero-section .side-panel {
    height: 100%;
    align-content: start;
}

.hero-section .side-panel .info-card {
    height: var(--equal-box-height);
    max-height: var(--equal-box-height);
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
}


/* Mehr Transparenz fuer staerkere Background-Sichtbarkeit */
body.login-page {
    background:
        radial-gradient(circle at 14% 20%, rgba(255, 47, 207, .08), transparent 28rem),
        radial-gradient(circle at 86% 12%, rgba(63, 125, 255, .07), transparent 32rem),
        linear-gradient(180deg, rgba(3, 6, 18, .28), rgba(3, 6, 18, .45)),
        url('../images/bilder/background.png') center / cover no-repeat fixed,
        var(--bg);
}

.glass-card {
    background: linear-gradient(145deg, rgba(11, 17, 42, .42), rgba(6, 9, 24, .26));
}

.topbar {
    background: rgba(5, 9, 24, .28);
}

.auth-card {
    background: rgba(7, 12, 31, .36);
}

.info-card {
    background: rgba(7, 12, 31, .32);
}
.hero-section .side-panel .rule-list {
    min-height: 0;
    overflow: auto;
    gap: 8px;
    padding-right: 4px;
}

.hero-section .auth-panels {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow: auto;
}

.hero-section .auth-panel {
    padding: 8px 10px;
}

.hero-section .panel-title {
    margin-bottom: 6px;
}

.hero-section .panel-title > span,
.hero-section .guest-icon {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
}

.hero-section .guest-icon {
    margin: 0 auto 8px;
}

.hero-section .panel-title h2 {
    font-size: 1rem;
}

.hero-section .panel-title p {
    font-size: .78rem;
    margin-top: 2px;
}

.hero-section form {
    gap: 6px;
}

.hero-section input[type="text"],
.hero-section input[type="password"],
.hero-section input:not([type]) {
    height: 34px;
}

.hero-section .primary-button {
    min-height: 36px;
}

.hero-section .rules-accept,
.hero-section .hint,
.hero-section .form-line {
    font-size: .78rem;
}

.hero-section .info-card {
    padding: 14px;
}

.hero-section .info-card h2 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.hero-section .rule-list li {
    grid-template-columns: 24px 1fr;
    gap: 8px;
    font-size: .82rem;
    line-height: 1.25;
}

.hero-section .rule-list li::before {
    height: 20px;
    font-size: .64rem;
}

/* Cleanes Spacing zwischen allen Boxen */
.page-shell,
.hero-section,
.hero-section .hero-login-layout,
.side-panel,
.feature-row {
    --box-gap: 10px;
}

.page-shell {
    gap: var(--box-gap);
}

.hero-section {
    gap: var(--box-gap);
}

.hero-section .hero-login-layout {
    gap: var(--box-gap);
}

.side-panel {
    gap: var(--box-gap);
}

.feature-row {
    gap: var(--box-gap);
}

@media (max-width: 1100px) {
    .hero-section {
        --equal-box-height: auto;
    }

    .hero-section .hero-login-layout {
        margin-top: 0;
        height: auto;
    }

    .hero-section .hero-login-layout .auth-card,
    .hero-section .side-panel,
    .hero-section .side-panel .info-card {
        height: auto;
    }

    .hero-section .side-panel .info-card {
        overflow: visible;
    }
}
