:root {
    --bg: #0a0d10;
    --bg-elev: #12171c;
    --bg-elev-2: #1a2129;
    --border: #232b33;
    --text: #e7ecef;
    --text-muted: #8b98a3;
    --accent: #22e6c8;
    --accent-dim: rgba(34, 230, 200, 0.15);
    --green: #3ddc84;
    --amber: #f5b942;
    --grey: #7b8792;

    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    min-height: 100vh;
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
}

/* Spotlight glow — dezenter "Center Stage"-Akzent */
.spotlight {
    position: fixed;
    top: -30vh;
    left: 50%;
    transform: translateX(-50%);
    width: 140vw;
    height: 70vh;
    max-width: 1400px;
    background: radial-gradient(ellipse at center, var(--accent-dim) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.wrapper {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1rem 3rem;
}

/* ── Header ─────────────────────────── */
header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.75rem;
}

.logo {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.06em;
    color: var(--text);
}

.logo span {
    color: var(--accent);
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.today-block {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.today-time {
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.logout-btn {
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--border);
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    white-space: nowrap;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.logout-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ── Page title ─────────────────────── */
.page-title {
    margin-bottom: 1.5rem;
}

.page-title h1 {
    font-family: var(--font-display);
    font-size: 1.9rem;
    letter-spacing: 0.03em;
    font-weight: 400;
}

.page-title p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* ── Project grid ───────────────────── */
.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 980px) {
    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    text-align: left;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-height: 44px;
    transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.project-card:hover,
.project-card:focus-visible {
    border-color: var(--accent);
    background: var(--bg-elev-2);
    transform: translateY(-2px);
    outline: none;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.project-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.project-name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ── Status badges ──────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-live { color: var(--green); background: rgba(61, 220, 132, 0.1); border-color: rgba(61, 220, 132, 0.25); }
.status-aktiv { color: var(--accent); background: var(--accent-dim); border-color: rgba(34, 230, 200, 0.25); }
.status-in_entwicklung { color: var(--amber); background: rgba(245, 185, 66, 0.1); border-color: rgba(245, 185, 66, 0.25); }
.status-konzeption { color: var(--grey); background: rgba(123, 135, 146, 0.12); border-color: rgba(123, 135, 146, 0.25); }

/* ── Modal ──────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 8, 0.75);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

@media (min-width: 640px) {
    .modal-overlay {
        align-items: center;
    }
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
    padding: 2rem 1.5rem 1.75rem;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

@media (min-width: 640px) {
    .modal {
        border-radius: 16px;
    }
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.5rem;
}

.modal-close:hover {
    color: var(--text);
}

.modal-icon {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    margin: 0.6rem 0 0.5rem;
}

.modal-desc {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.modal-path {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.modal-path code {
    background: var(--bg-elev-2);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.modal-link {
    display: inline-block;
    color: var(--bg);
    background: var(--accent);
    text-decoration: none;
    font-weight: 700;
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.modal-nolink {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

/* ── Footer ─────────────────────────── */
footer {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: center;
}

footer a {
    color: var(--text-muted);
}

/* ── Login page ─────────────────────── */
.login-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.login-box {
    position: relative;
    z-index: 1;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.login-logo {
    font-family: var(--font-display);
    font-size: 2.4rem;
    letter-spacing: 0.06em;
}

.login-logo span {
    color: var(--accent);
}

.login-sub {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.75rem;
}

.login-error {
    background: rgba(220, 61, 84, 0.12);
    border: 1px solid rgba(220, 61, 84, 0.3);
    color: #ff8a95;
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.login-form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.login-form input {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.7rem 0.8rem;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    min-height: 44px;
}

.login-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.login-form button {
    margin-top: 0.5rem;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 8px;
    padding: 0.8rem;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    min-height: 44px;
}

.login-footer {
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: center;
}
