:root {
    --bg-color: #050816;
    --bg-gradient-1: #0f172a;
    --bg-gradient-2: #020617;

    --accent-green: #22c55e;
    --accent-green-soft: rgba(34, 197, 94, 0.1);
    --accent-yellow: #facc15;
    --accent-blue: #38bdf8;

    --card-bg: rgba(15, 23, 42, 0.92);
    --card-border: rgba(148, 163, 184, 0.25);
    --card-shadow: 0 24px 60px rgba(15, 23, 42, 0.7);

    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --text-strong: #f9fafb;

    --input-bg: rgba(15, 23, 42, 0.7);
    --input-border: rgba(148, 163, 184, 0.7);
    --input-border-focus: #22c55e;

    --danger: #f97373;
    --danger-bg: rgba(248, 113, 113, 0.08);

    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    --transition-fast: 0.18s ease-out;
    --transition-card: 0.25s ease-out;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 sans-serif;
    background: radial-gradient(circle at top left, #052e16 0, transparent 45%),
                radial-gradient(circle at bottom right, #0f172a 0, transparent 50%),
                linear-gradient(145deg, var(--bg-gradient-1), var(--bg-gradient-2));
    color: var(--text-main);
}

/* Layout Wrapper */

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    padding: 24px clamp(16px, 4vw, 40px);
}

/* Hintergrundblobs */

.bg-blob {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    filter: blur(40px);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.bg-blob--left {
    background: radial-gradient(circle, #22c55e 0, transparent 70%);
    top: -80px;
    left: -120px;
}

.bg-blob--right {
    background: radial-gradient(circle, #0ea5e9 0, transparent 70%);
    bottom: -120px;
    right: -120px;
}

/* Header / Branding */

.header {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto 32px auto;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 16px;
    background: radial-gradient(circle at 30% 0%, var(--accent-yellow), #fb923c);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 45px rgba(250, 204, 21, 0.35);
}

.logo-icon svg {
    width: 26px;
    height: 26px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text__title {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-strong);
}

.logo-text__subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Main Layout */

.main-layout {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 40px);
    align-items: stretch;
}

@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Login Card */

.login-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    padding: clamp(22px, 3vw, 28px);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        rgba(34, 197, 94, 0.1),
        transparent 40%,
        rgba(56, 189, 248, 0.07)
    );
    opacity: 0.7;
    mix-blend-mode: soft-light;
}

.login-card__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-strong);
}

.login-card__subtitle {
    margin: 4px 0 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Alert */

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.85rem;
}

.alert--error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(248, 113, 113, 0.4);
}

.alert__icon {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid var(--danger);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Form */

.login-form {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    border-radius: var(--radius-lg);
    padding: 11px 12px 11px 38px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
                background var(--transition-fast), transform var(--transition-fast);
}

.input-wrapper input::placeholder {
    color: rgba(148, 163, 184, 0.75);
}

.input-wrapper input:focus {
    border-color: var(--input-border-focus);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.3);
    background: rgba(15, 23, 42, 0.95);
    transform: translateY(-1px);
}

.input-icon {
    position: absolute;
    left: 11px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.input-icon svg {
    width: 18px;
    height: 18px;
    fill: rgba(148, 163, 184, 0.9);
}

/* Buttons / Footer */

.form-footer {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    border: none;
    border-radius: var(--radius-pill);
    padding: 11px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform var(--transition-card), box-shadow var(--transition-card),
                background var(--transition-card), color var(--transition-card);
}

.btn--primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #052e16;
    box-shadow: 0 16px 38px rgba(22, 163, 74, 0.45);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 48px rgba(22, 163, 74, 0.65);
}

.btn--primary:active {
    transform: translateY(0);
    box-shadow: 0 12px 30px rgba(22, 163, 74, 0.4);
}

.form-footer__hint {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Meta Infos in Card */

.login-card__meta {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(148, 163, 184, 0.4);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.login-card__meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-label {
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.meta-value {
    font-size: 0.85rem;
    color: var(--text-main);
    text-decoration: none;
}

.meta-value:hover {
    color: var(--accent-green);
}

/* Info Panel */

.info-panel {
    position: relative;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 55%),
                radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.12), transparent 55%),
                rgba(15, 23, 42, 0.85);
    padding: clamp(22px, 3vw, 28px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-panel__badge {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: rgba(22, 163, 74, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-green);
}

.info-panel h2 {
    margin: 6px 0 0 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-strong);
}

.info-panel p {
    margin: 6px 0 4px 0;
    font-size: 0.9rem;
    color: var(--text-main);
}

/* Info-Liste */

.info-list {
    list-style: none;
    margin: 8px 0 4px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.info-list__icon {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-pill);
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.info-list h3 {
    margin: 0 0 2px 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-strong);
}

.info-list p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Links im Info Panel */

.info-panel__links {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.link-ghost {
    color: var(--accent-blue);
    text-decoration: none;
    position: relative;
}

.link-ghost::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--accent-blue);
    transition: width var(--transition-fast);
}

.link-ghost:hover::after {
    width: 100%;
}

.dot-divider {
    color: rgba(148, 163, 184, 0.7);
}

/* Footer */

.footer {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    width: 100%;
    margin: 32px auto 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.8);
}

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

.footer a {
    color: rgba(148, 163, 184, 0.9);
    text-decoration: none;
}

.footer a:hover {
    color: var(--text-main);
}

/* Responsiv */

@media (max-width: 600px) {
    .page-wrapper {
        padding: 18px 14px 22px 14px;
    }

    .header {
        margin-bottom: 20px;
    }

    .login-card,
    .info-panel {
        border-radius: 18px;
    }

    .footer {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }
}

/* === EEG Control: Header, Logo, Navigation & Abstände === */

/* Header als Capsule mit Logo links und Navigation rechts davon */
.header {
    position: sticky;
    top: 16px;
    z-index: 10;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto 32px auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    border-radius: 999px;
    background: radial-gradient(circle at top left, rgba(15,23,42,0.96), rgba(2,6,23,0.96));
    border: 1px solid rgba(148,163,184,0.4);
    box-shadow: 0 18px 40px rgba(15,23,42,0.85);
    backdrop-filter: blur(16px);
}

/* Logo-Pille: oben/unten wenig Rand, rechts etwas mehr Platz */
.header__logo {
    display: flex;
    align-items: center;
}

.header__logo-img-wrap {
    height: 72px;
    padding: 6px 26px 6px 18px; /* oben/unten 6px, rechts mehr Rand */
    border-radius: 999px;
    background: radial-gradient(circle at 10% 0%, #22c55e, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.header__logo-img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Navigation rechts vom Logo, vertikal zentriert */
.header__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    margin-left: 12px;
}

.header__nav a {
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    color: var(--text-muted);
    border: 1px solid transparent;
    transition:
        background 0.18s ease-out,
        color 0.18s ease-out,
        transform 0.18s ease-out,
        border-color 0.18s ease-out,
        box-shadow 0.18s ease-out;
}

.header__nav a:hover {
    color: var(--text-main);
    border-color: rgba(148,163,184,0.6);
    box-shadow: 0 10px 24px rgba(15,23,42,0.7);
    transform: translateY(-1px);
}

/* Login-Button exakt im Stil des "Anmelden"-Buttons */
.header__nav-cta {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #052e16 !important;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    border: none;
    box-shadow: 0 16px 38px rgba(22, 163, 74, 0.45);
}

.header__nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 48px rgba(22, 163, 74, 0.65);
}

/* Abstände & Höhe der Sections für klare Trennung mit Hintergrundgrafik */
.section {
    position: relative;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    min-height: calc(100vh - 120px);
    padding: clamp(60px, 12vh, 96px) 0;
}

.section + .section {
    margin-top: clamp(32px, 6vh, 56px);
}

.section--hero {
    padding-top: clamp(40px, 14vh, 100px);
}

/* Link-Design einheitlich für Kontakt, Login-Hinweise und Impressum */
.contact-line a,
.impressum-grid a,
.login-card a {
    color: var(--accent-blue);
    text-decoration: none;
}

.contact-line a:hover,
.impressum-grid a:hover,
.login-card a:hover {
    text-decoration: underline;
}

/* Keine obere Linie beim Impressum */
.section--impressum {
    border-top: none;
}

/* Responsiv: Header untereinander stapeln */
@media (max-width: 700px) {
    .header {
        top: 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        border-radius: 24px;
    }
}
