:root {
    --container-max-width: 1100px; /* Erhöhte Breite um 10% */
    --sidebar-bg-color: #f5f5f5;
    --sidebar-padding: 20px;
    --sidebar-border-radius: 10px;
    --sidebar-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --sidebar-link-color: #333;
    --sidebar-link-hover-color: #F5B25B;
    --btn-back-bg-color: #F5B25B;
    --btn-back-border-color: #F5B25B;
    --btn-back-hover-bg-color: #d9943f;
    --btn-back-hover-border-color: #d9943f;
}

/* Container Breite erhöhen */
.container {
    max-width: var(--container-max-width) !important; /* Wichtig: !important, um Bootstrap zu überschreiben */
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Sidebar-Stil */
.sidebar {
    background-color: var(--sidebar-bg-color);
    padding: var(--sidebar-padding);
    border-radius: var(--sidebar-border-radius);
    box-shadow: var(--sidebar-box-shadow);
    margin-top: 20px;
}

.sidebar a {
    color: var(--sidebar-link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: var(--sidebar-link-hover-color);
    text-decoration: underline;
}

/* Zurück zur Übersicht Button */
.btn-back {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    border: 2px solid var(--btn-back-border-color);
    border-radius: 5px;
    background-color: var(--btn-back-bg-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    margin-top: 10px;
    margin-bottom: 10px;
}

.btn-back:hover {
    background-color: var(--btn-back-hover-bg-color);
    border-color: var(--btn-back-hover-border-color);
    color: #fff;
}

/* Blog-Post Bild-Stil */
.post-image {
    width: 100%;
    max-width: 800px;
    margin: 20px 0;
    height: auto; /* Automatische Höhe für responsives Design */
    object-fit: contain; /* Verhindert Zuschneiden des Bildes */
    object-position: center; /* Bild wird zentriert */
    border: 1px solid #ddd; /* Optional: Hinzufügen eines Rahmens */
    border-radius: 10px; /* Abgerundete Ecken für ein moderneres Aussehen */
    background-color: #f9f9f9; /* Optional: Hintergrundfarbe des Containers */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Dezenter Schatten für Tiefe */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Verhindert Überlaufen von Inhalten */
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Bildfüllung ohne Verzerrung */
    transition: transform 0.3s ease;
}

.post-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Meta-Bereich */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px; /* Erhöhter Abstand nach oben */
    font-size: 0.95em;
    color: #555;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.post-meta-section {
    margin-bottom: 10px;
}

.post-meta-label {
    font-weight: 600;
    margin-right: 5px;
    color: #333;
}

.post-category, .post-tag {
    color: #F5B25B;
    text-decoration: none;
    margin-right: 12px;
    transition: color 0.3s ease;
}

.post-category:hover, .post-tag:hover {
    color: #d9943f;
    text-decoration: underline;
}

.post-sharing a {
    color: #F5B25B;
    text-decoration: none;
    margin-right: 12px;
    font-size: 0.95em;
    padding: 6px 12px;
    border-radius: 5px;
    background-color: #f0f0f0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.post-sharing a:hover {
    background-color: #F5B25B;
    color: #fff;
}

/* Kommentare */
#comments {
    margin-top: 40px;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

#comments h3 {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.comment {
    margin-bottom: 20px;
}

.comment p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}

/* Responsive Anpassungen */

@media (max-width: 992px) {
    .container {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .sidebar {
        margin-top: 20px;
    }

    .btn-back {
        width: 100%;
        text-align: center;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-meta-section {
        margin-bottom: 15px;
    }
}
