/* ===== Grundlayout ===== */
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f4f6f8;
    color: #333;
    line-height: 1.7;
    animation: fadeIn 0.8s ease-in-out;
}

/* Sanftes Laden */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Header ===== */
header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 25px 20px;
}

header h1 {
    margin: 0 0 15px 0;
    font-size: 1.6rem;
}

/* ===== Navigation ===== */
.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.nav a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.25s ease, transform 0.2s ease;
}

.nav a:hover,
.nav a:focus {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ===== Inhalt ===== */
main {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    animation: cardIn 0.6s ease;
}

/* Karten-Animation */
@keyframes cardIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

h2 {
    margin-top: 0;
    color: #2c3e50;
}

h3 {
    margin-top: 30px;
    color: #34495e;
}

ul {
    padding-left: 20px;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #777;
}

/* ===== Mobile Feinschliff ===== */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.3rem;
    }

    main {
        margin: 20px;
        padding: 20px;
    }
}
/* ===== Aktiver Menüpunkt ===== */
.page-home .nav-home,
.page-impressum .nav-impressum,
.page-datenschutz .nav-datenschutz {
    background: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-weight: 600;
    cursor: default;
}

/* Aktiver Punkt bewegt sich nicht */
.page-home .nav-home:hover,
.page-impressum .nav-impressum:hover,
.page-datenschutz .nav-datenschutz:hover {
    transform: none;
}
