/* ===== GRUNDSETTING ===== */
:root {
    --bg: #0f1419;
    --bg-card: #1a2332;
    --accent: #5fa8d3;
    --accent-hell: #8fd0f0;
    --text: #e0e6ed;
    --text-dunkel: #a8b8cc;
    --grün: #2eb872;
    --rand: #2a3a4f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== KOPFBEREICH ===== */
header {
    background: linear-gradient(135deg, #152238 0%, #0f1419 100%);
    border-bottom: 1px solid var(--rand);
    padding: 2.5rem 1rem;
    text-align: center;
}

.header-inner h1 {
    font-size: 2.8rem;
    color: var(--accent);
    letter-spacing: 3px;
    margin-bottom: 0.3rem;
}

.header-inner p {
    color: var(--text-dunkel);
    font-size: 1.05rem;
}

/* ===== HAUPTBEREICH ===== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1rem;
}

.category {
    margin-bottom: 3.5rem;
}

.category h2 {
    font-size: 1.4rem;
    color: var(--accent-hell);
    margin-bottom: 1.2rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--rand);
}

/* ===== KARTEN-GITTER ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
}

/* ===== EINZELNE KARTE ===== */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--rand);
    border-radius: 12px;
    padding: 1.4rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.card h3 {
    font-size: 1.1rem;
    color: white;
}

.card p {
    color: var(--text-dunkel);
    font-size: 0.92rem;
    flex-grow: 1;
}

/* ===== BADGE ===== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
}

.badge.free {
    background-color: rgba(46, 184, 114, 0.15);
    color: #63e6a0;
}

/* ===== BUTTON ===== */
.btn {
    display: inline-block;
    padding: 0.6rem 1rem;
    background: linear-gradient(90deg, #2a4a6b, #35608a);
    color: white;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    margin-top: 0.3rem;
    transition: background 0.2s ease;
}

.btn:hover {
    background: linear-gradient(90deg, #35608a, #4078b3);
}

/* ===== FUSSBEREICH ===== */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--rand);
    color: var(--text-dunkel);
    font-size: 0.9rem;
}

/* ===== MOBIL ===== */
@media(max-width: 600px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}
