/* Allgemeine Stile */
body {
    margin: 0;
    padding: 0;
    height: 100%; /* Volle Höhe des Viewports */
    width: 100%; /* Volle Breite des Viewports */
    display: flex;
    flex-direction: column;
    background-color: rgb(255, 255, 255);
}

.no-style-link, .no-style-link1 {
    text-decoration: none;
    color: inherit;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    font-family: 'Times New Roman', Times, serif;
    padding: 20px;
    z-index: 1000; /* Stellt sicher, dass der Header über anderen Elementen liegt */
}

header h1 {
    margin: 0;
    font-size: 40px;
    color: blue;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0px;
    width: 250px;
    height: 30%;
    background-color: #44444400;
    padding: 20px 10px;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar nav ul li {
    margin-bottom: 10px;
}

.sidebar nav ul li a {
    color: black;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 5px;
    font-size: 28px;
}



/* Fettdarstellung für aktive Menüpunkte */
.sidebar nav ul li a.active {
    font-weight: bold;
}

/* Gelber Textmarker für aktive Menüpunkte in Submenüs */
.sidebar nav ul li a.active-submenu {
    font-weight: bold; /* Optional: Fettgedruckt für bessere Sichtbarkeit */
}


/* Submenüs */
.submenu {
    display: none;
    background-color: rgba(135, 206, 250, 0);
    margin-left: 10px !important; /* Einrückung nach rechts */
    padding-left: 10px !important; /* Optional: zusätzlicher Abstand vom Rand */
}

.submenu li {
    margin-bottom: 0px !important;  /* Verringert den Abstand zwischen den Menüpunkten */
}

/* Überschreibende Regel für Links */
.sidebar .submenu a {
    font-size: 20px; /* Diese Regel könnte die Schriftgröße überschreiben */
    padding: 5px 8px !important;  /* Verringert den Innenabstand der Links */
    line-height: 1.2 !important;  /* Engerer Zeilenabstand */
}

.submenu li a {
    font-size: 14px;
}

.submenu .submenu {
    margin-left: 20px; /* Einrückung für Unter-Submenüs */
    background-color: #55555500; /* Dunklerer Hintergrund für Unter-Submenüs */
    border-radius: 5px;
    padding: 5px 0;
}

.submenu .submenu a {
    padding: 4px 6px; /* Kleinere Abstände für Unter-Submenüs */
    font-size: 14px; /* Kleinere Schriftgröße für Unter-Submenüs */
}

.sidebar nav ul li ul li ul li a {
    font-family: Helvetica;
}

.sidebar nav ul li ul li ul li a:hover {
    text-decoration: underline #f5e505 !important;
}

/* Kontaktbereich */
.contact {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 10px 20px;
    font-size: 28px;
    z-index: 10;
}

.contact a {
    color: rgb(255, 145, 0);
    text-decoration: none;
}

/* Blog-Spezifische Stile (NEU) */
.blog-container {
    position: relative;
    width: 1200px; /* Feste Breite statt max-width */
    margin: 150px auto 100px;
    padding: 20px;
    font-family: 'Times New Roman', Times, serif;
    box-sizing: border-box; /* Wichtig für konstante Breite */
}

.blog-container h2 {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
    width: 100%; /* Feste Breite beibehalten */
}

.blog-post {
    width: 100%; /* Nimmt die volle Breite des Containers ein */
    box-sizing: border-box; /* Inklusive Padding in der Breite */
}

/* Füge diese Media-Query hinzu für mobile Anpassungen */
@media (max-width: 700px) {
    .blog-container {
        width: 90%;
        margin: 120px auto 80px;
    }
}

.blog-post details {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
    position: relative;
}

.blog-post details[open] {
    padding-bottom: 40px;
}

.blog-post summary {
    list-style: none;
    cursor: pointer;
}

.blog-post summary::-webkit-details-marker {
    display: none;
}

.custom-arrow {
    display: block;
    width: 20px;
    height: 20px;
    margin: 10px auto 0;
    position: relative;
}

.custom-arrow::before,
.custom-arrow::after {
    content: '';
    position: absolute;
    background-color: rgb(255, 145, 0);
    transition: all 0.3s;
}

.custom-arrow::before {
    width: 2px;
    height: 15px;
    left: 9px;
    top: 0;
}

.custom-arrow::after {
    width: 15px;
    height: 2px;
    left: 0;
    top: 9px;
}

details[open] .custom-arrow::before {
    transform: rotate(90deg);
}

.post-preview {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

details[open] .post-preview {
    display: none;
}

.post-full {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    padding-top: 15px;
    animation: fadeIn 0.3s ease-out;
    text-align: justify;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.post-header {
    margin-bottom: 10px;
}

.blog-post h3 {
    font-size: 24px;
    margin: 0 0 5px 0;
    color: #222;
}

.blog-post time {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.post-image {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    display: block;
}

.read-more {
    color: rgb(255, 145, 0);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 15px;
}

.read-more:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #57505000;
    color: #000;
    padding: 10px;
    text-align: center;
    box-sizing: border-box;
}

/* Mobile Anpassungen für news.css */
@media (max-width: 768px) {
    /* Header Anpassungen */
    header {
        position: relative;
        padding: 15px;
    }

    header h1 {
        font-size: 28px;
    }

    /* Sidebar Anpassungen */
    .sidebar {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        padding: 10px;
        margin-bottom: 20px;
        background-color: transparent;
    }

    .sidebar nav ul li a {
        font-size: 22px;
        padding: 8px;
    }

    .sidebar .submenu a {
        font-size: 18px;
    }

    /* Blog Container Anpassungen */
    .blog-container {
        width: 90%;
        margin: 20px auto;
        padding: 15px;
    }

    .blog-container h2 {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .blog-post h3 {
        font-size: 20px;
    }

    .contact {
        position: fixed;
        bottom: 10px;
        left: 10px;
        font-size: 24px; /* Originalgröße beibehalten */
        z-index: 100;
    }

    /* 2. Footer anpassen */
    footer {
        position: fixed;
        bottom: 10px;
        right: 10px;
        width: auto;
        background-color: transparent;
        padding: 0;
        text-align: right;
    }
    footer p {
        margin: 0;
        font-size: 12px;
        color: #000;
    }
}

    /* Bildoptimierung */
    .post-image {
        max-width: 100%;
        height: auto;
    }


/* Feinjustierung für sehr kleine Geräte */
@media (max-width: 480px) {
    .sidebar nav ul li a {
        font-size: 20px;
    }

    .blog-container {
        width: 95%;
        padding: 10px;
    }

    .blog-post h3 {
        font-size: 18px;
    }

    .post-full, .post-preview {
        font-size: 15px;
        line-height: 1.5;
    }
}