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

body {
    display: flex;
    flex-direction: column;
}

main.container {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
}


* {
    box-sizing: border-box;
}

:root {
    --bg-main: #020617;
    --bg-card: #020617;
    --bg-elevated: #0b1220;
    --border-subtle: rgba(148, 163, 184, 0.35);
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --accent: #6366f1;
    --accent-soft: rgba(99, 102, 241, 0.16);
    --accent2: #22c55e;
    --danger: #ef4444;
    --shadow-strong: 0 20px 45px rgba(15, 23, 42, 0.9);
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 55%),
        radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.16), transparent 55%),
        var(--bg-main);
    color: var(--text-main);
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

/* HEADER / NAVIGATION */

.site-header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: conic-gradient(from 120deg, #4f46e5, #22c55e, #0ea5e9, #4f46e5);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
}

.brand-text {
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 0.98rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav a {
    font-size: 0.9rem;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--text-muted);
}

.nav a:hover {
    color: var(--text-main);
    background: rgba(15, 23, 42, 0.9);
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease, border-color 0.15s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #22c55e);
    color: #f9fafb;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.8);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
    text-decoration: none;
}

.btn-secondary {
    background: rgba(30, 64, 175, 0.16);
    color: var(--text-main);
    border-color: rgba(148, 163, 184, 0.45);
}

.btn-secondary:hover {
    background: rgba(37, 99, 235, 0.28);
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border-color: rgba(148, 163, 184, 0.65);
}

.btn-outline:hover {
    background: rgba(15, 23, 42, 0.85);
    text-decoration: none;
}

/* PAGE LAYOUT */

main.container {
    padding: 28px 16px 40px;
}

.page-shell {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.page-title {
    font-size: 1.4rem;
    margin: 0;
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 2px 0 0;
}

/* HERO / KARTEN */

.hero-card,
.card {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.1), transparent 55%),
                radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.16), transparent 55%),
                var(--bg-card);
    border-radius: 24px;
    padding: 22px 20px;
    box-shadow: var(--shadow-strong);
    border: 1px solid var(--border-subtle);
}

.card-narrow {
    max-width: 420px;
}

.hero-card h1 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.6rem;
}

.hero-card p {
    margin-top: 0;
    margin-bottom: 16px;
    color: #cbd5f5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 16px;
    color: #cbd5f5;
    font-size: 0.95rem;
}

.feature-list li {
    margin-bottom: 4px;
}

/* BADGES / TAGS */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-muted);
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.badge-admin {
    border-color: rgba(250, 204, 21, 0.7);
    color: #facc15;
}

/* TABELLEN (Downloads) */

.table-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 14px 14px 6px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-strong);
}

.table-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.table-header-row h2 {
    font-size: 1.05rem;
    margin: 0;
}

.table-header-row small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 6px;
    background: var(--bg-card);
    border-radius: 14px;
    overflow: hidden;
}

table th,
table td {
    padding: 9px 10px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.8);
    font-size: 0.9rem;
}

table th {
    background: rgba(15, 23, 42, 0.98);
    text-align: left;
    font-weight: 500;
    color: var(--text-muted);
}

table tr:last-child td {
    border-bottom: none;
}

table tbody tr:hover {
    background: rgba(15, 23, 42, 0.75);
}

.table-actions a {
    font-size: 0.88rem;
    color: #38bdf8;
}

.table-actions a:hover {
    color: #7dd3fc;
    text-decoration: none;
}

/* FORMULARE */

form {
    background: var(--bg-elevated);
    padding: 20px 18px;
    border-radius: 18px;
    box-shadow: var(--shadow-strong);
    border: 1px solid var(--border-subtle);
}

label {
    font-size: 0.85rem;
    color: var(--text-main);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"] {
    width: 100%;
    padding: 8px 10px;
    margin-top: 4px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.65);
    background: #020617;
    color: var(--text-main);
    font-size: 0.9rem;
}

input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-soft);
}

/* ALERTS */

.alert {
    padding: 10px 14px;
    margin-bottom: 15px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.alert-danger {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.6);
    color: #fecaca;
}

.alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.7);
    color: #bbf7d0;
}

/* FOOTER */

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #020617;
    border-top: 1px solid rgba(148, 163, 184, 0.32);
    padding: 10px 0 14px;
    text-align: center;
    z-index: 50;
}

.site-footer .container {
    text-align: center;
}

/* MOBILE */

@media (max-width: 640px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    main.container {
        padding-top: 22px;
        padding-bottom: 60px; /* Platz schaffen */
    }

    .hero-card,
    .card {
        padding: 18px 15px;
        border-radius: 18px;
    }

    form {
        padding: 16px 14px;
        border-radius: 16px;
    }

    .table-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Honeypot-Feld für Spam-Schutz (für echte Nutzer unsichtbar) */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}