/* Allgemeines Layout */
body {
    font-family: 'Poppins', 'Arial', sans-serif;
    background-color: #1B1B1B;
    color: #EAEAEA;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Links & Buttons */
a {
    color: #0077FF;
    text-decoration: none;
    transition: color 0.3s;
}

    a:hover {
        color: #00A3FF;
    }

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-primary {
    background: #3D2C8D;
    color: white;
    border: none;
}

    .btn-primary:hover {
        background: #5A3EC8;
        transform: scale(1.05);
    }

/* --- Layout-Styling --- */
.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background: #3D2C8D;
    padding: 1rem 2rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Container */
.container {
    max-width: 1500px;
    margin: auto;
    padding: 1rem;
}

/* Cards */
.card {
    background: #252525;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.card-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Formulare */
input, textarea {
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.5rem;
    border: 1px solid #3D2C8D;
    border-radius: 4px;
    background: #2C2C2C;
    color: white;
}

    input:focus, textarea:focus {
        border-color: #0077FF;
        outline: none;
        box-shadow: 0 0 5px #0077FF;
    }

/* --- Grundlegende Navbar-Styling --- */
.navbar {
    width: 100%;
    position: sticky;
    top: 0;
    left: 0;
    background: #2A1F5D;
    padding: 0.5rem 1.5rem; /* Weniger Padding */
    height: 75px; /* Fixierte Höhe */
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #ddd;
    z-index: 1000;
    color: #F0F0F0;
}

/* --- Logo --- */
.navbar-brand {
    font-size: 1.2rem;
    font-weight: bold;
    color: #FFFFFF;
    text-decoration: none;
}

.navbar .container {
    display: flex;
    justify-content: space-between; /* Links und rechts ausrichten */
    align-items: center; /* Vertikal zentrieren */
    width: 100%;
}

.nav-left {
    display: flex;
    align-items: center; /* Vertikal zentrieren */
}

    .nav-left img {
        height: 40px; /* Feste Höhe für das Logo */
        width: auto;
        margin-right: 10px; /* Abstand zum Text */
    }

/* --- Desktop Navigation --- */
.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #F0F0F0;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    transition: color 0.3s;
}

    .nav-link:hover {
        color: #FFD700;
    }

/* --- Icons für Suche & Login --- */
.nav-icons {
    display: flex;
    gap: 1.2rem;
}

    .nav-icons i {
        font-size: 1.4rem;
        color: #F0F0F0;
        transition: color 0.3s;
    }

        .nav-icons i:hover {
            color: #FFD700;
        }

/* --- Mobile Navigation (ausgeblendet standardmäßig) --- */
.menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

.navbar-toggler {
    display: none;
    color: #F0F0F0;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 75px;
    right: 20px;
    background: #2A1F5D;
    color: #2A1F5D;
    width: 220px;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    gap: 1rem;
}

/* --- Mobile Menü sichtbar wenn Checkbox aktiv --- */
.navbar-toggler:checked ~ .mobile-menu {
    display: flex;
}

/* --- Responsive Anpassungen --- */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .menu-icon {
        display: block;
    }

    .nav-icons {
        display: none;
    }
}

/* --- Grundstruktur der Blog-Seite --- */
.blog-container {
    display: flex;
    max-width: 1500px;
    margin: auto;
    padding: 1rem;
}

/* --- Sidebar Navigation --- */
.sidebar {
    width: 250px; /* Breite der Sidebar */
    border-right: 2px solid white; /* Weiße Linie, die die Sidebar vom Hauptinhalt trennt */
    padding-right: 20px;
    padding-left: 20px;
}

.blog-nav {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

    .blog-nav .nav-link {
        display: block;
        padding: 10px;
        text-decoration: none;
        color: #F0F0F0;
        transition: background-color 0.3s;
    }

        .blog-nav .nav-link:hover {
            background-color: #2A1F5D; /* Leichte Hervorhebung beim Hover */
        }

/* --- Hauptbereich für den Blogartikel --- */
.main-content {
    margin-left: 20px;
    flex-grow: 1; /* Der Hauptbereich wächst, um den restlichen Platz zu füllen */
}

    .main-content h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .main-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

.white-line {
    width: 75%;
    height: 2px;
    background-color: #F0F0F0;
    margin: 10px 0;
}

/* Einfaches Styling für das Formular */
form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 15px;
}

input, select, button {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
}

button {
    cursor: pointer;
}