/* Allgemeine Stile */
body {
    font-family: 'Arial', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Header */
h1, h2, h3, h4 {
    color: #0a4f76;
    margin-bottom: 15px;
}

h1 {
    text-align: center;
    font-size: 2rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
    margin-top: 30px;
}

/* Artikelansicht */
.article-section {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    border-top: 2px solid #ddd;
}

.article-section img {
    display: block;
    margin: 10px auto;
    max-width: 80%; /* Reduziert die Größe auf 50% der Container-Breite */
    height: auto;
    border-radius: 8px;
}

.article-section h3 {
    font-size: 1.5rem;
    color: #0a4f76;
    margin-bottom: 10px;
}

.article-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

.article-content {
    text-align: left; /* Inhalt bleibt lesbar */
    max-width: 80%;
    margin: 0 auto; /* Inhalt mittig setzen */
}

/* Links & Buttons */
a {
    color: #ff6600;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: underline;
    color: #cc5500;
}

button, input[type="submit"] {
    padding: 10px 15px;
    background-color: #0a4f76;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 10px;
    transition: all 0.3s ease;
}

button:hover, input[type="submit"]:hover {
    background-color: white;
}

/* Formular */
form {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
}

label {
    display: block;
    font-weight: bold;
    margin-top: 10px;
}

input[type="text"], input[type="file"], textarea, select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

textarea {
    height: 150px;
    resize: none;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination a {
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #0a4f76;
    color: #0a4f76;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #0a4f76;
    color: white;
}

/* Kommentare */
.comments {
    margin-top: 30px;
    padding: 20px;
    background: #e6f7ff;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.comment {
    padding: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.comment strong {
    font-weight: bold;
    color: #0a4f76;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    form {
        padding: 10px;
    }
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Einzelne Blog-Karte */
.blog-card {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.blog-card img {
    max-width: 150px;
    height: auto;
    border-radius: 5px;
}

.blog-card h2 {
    font-size: 1.2rem;
    margin: 10px 0;
}

.blog-card p {
    font-size: 0.9rem;
    color: #666;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 0.9rem;
    background-color: #0a4f76;
    color: white !important; /* Textfarbe auf Weiß setzen */
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: #063c57;
    color: white !important; /* Auch beim Hover weiß */
}


/* Stil für die neuesten Beiträge */
.latest-posts {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
}

/* Mobile Anpassung */
@media (max-width: 768px) {
    .latest-posts {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .latest-post {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 15px;
        text-align: center;
    }

    .latest-post img {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
    }
}

/* Einzelner Beitrag */
.latest-post {
    flex: 1;
    max-width: 32%;
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.latest-post:hover {
    transform: scale(1.03);
}

.latest-post img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.latest-post h4 {
    font-size: 1rem;
    margin: 10px 0;
}

.latest-post a {
    color: #0a4f76;
    text-decoration: none;
    font-weight: bold;
}

.latest-post a:hover {
    text-decoration: underline;
}

.short-description {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* Dynamische Abschnitte */
.section {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-top: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.add-section-btn {
    display: block;
    background-color: #28a745;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.add-section-btn:hover {
    background-color: #218838;
}

/* Erfolgsnachricht */
.success-message {
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    margin-bottom: 15px;
    border-radius: 5px;
    text-align: center;
}

        .navbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background-color: #005f9e;
            padding: 10px 80px;
            position: relative;
            z-index: 2000;
        }
        .navbar img {
            height: 50px;
        }
        .menu {
            display: flex;
            align-items: center;
            justify-content: center;
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .menu li {
            position: relative;
            margin: 0 30px;
            z-index: 1000;
        }
        .menu a {
            color: white;
            text-decoration: none;
            font-size: 20px;
            font-weight: bold;
            padding: 10px 15px;
            transition: background-color 0.3s ease;
        }
        .menu a:hover {
            background-color: rgba(255, 255, 255, 0.2);  /* Leichte Hintergrundänderung */
            border-radius: 5px;  /* Runde Ecken beim Hover */
        }
        .submenu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background-color: #004d80;
            list-style: none;
            padding: 10px 0;
            border-radius: 5px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            z-index: 3000;
        }
        .submenu a {
            padding: 10px 20px;
            display: block;
            color: white;
            text-decoration: none;
            transition: background-color 0.3s ease;
        }
        .submenu a:hover {
            background-color: #003366;  /* Hintergrund beim Hover dunkler */
            border-radius: 5px;
        }
        .menu li:hover .submenu {
            display: block;
        }
        .right-section {
            display: flex;
            align-items: center;
        }
        .icon img {
            height: 30px;
            margin-right: 15px;
        }
        .button {
            background-color: transparent;
            border: 2px solid white;
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            text-decoration: none;
            font-size: 16px;
            font-weight: bold;
            transition: background-color 0.3s, color 0.3s ease;
        }
        .button:hover {
            background-color: white;
            color: #005f9e;
        }
        
        /* Hamburger Menü */
        .hamburger {
            display: none;
            flex-direction: column;
            cursor: pointer;
        }
        .hamburger div {
            width: 30px;
            height: 4px;
            background-color: white;
            margin: 5px;
        }
        .mobile-menu {
            display: none;
            flex-direction: column;
            background-color: #005f9e;
            position: absolute;
            top: 60px;
            left: 0;
            width: 100%;
            z-index: 2500;
        }
    .mobile-menu a {
            padding: 15px;
            text-align: center;
            color: white;
            font-weight: bold;
            text-decoration: none;
            transition: background-color 0.3s ease;
        }
        .mobile-menu a:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }
        .mobile-menu.active {
            display: flex;
        }

        /* Responsive Ansicht */
        @media (max-width: 768px) {
            .menu, .right-section {
                display: none;
            }
            .hamburger {
                display: flex;
            }
            .submenu {
                position: static;
                background-color: #004d80;
                width: 100%;
                text-align: center;
                box-shadow: none;
            }
        .submenu a {
                padding: 15px;
                display: block;
                color: white;
                text-decoration: none;
            }
            .submenu a:hover {
                background-color: #003366;
            }
            .navbar {
                padding: 10px 30px;
            }
            .navbar img {
                margin: 0 auto;
            }
        }
        
footer {
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 40px 0;
    position: relative;
}


.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.footer-section {
    flex: 1;
    margin: 20px;
}

.footer-section h2 {
    color: #fff; /* Setzt die Überschriften auf Weiß */
    margin-bottom: 20px;
    border-bottom: 1px solid #555; /* Optional: dezente Unterstreichung */
    padding-bottom: 5px;
}


.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

.footer-section p, .footer-section a {
    margin: 0 0 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.social a {
    margin: 0 10px;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
}

.social a:hover {
    color: white;
}


/* Mobile Anpassung */
@media (max-width: 768px) {
    .cta-section {
        flex-direction: column;
        text-align: center;
        max-width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-text {
        max-width: 100%;
    }

    .cta-image img {
        max-width: 90%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    /* Button mittig ausrichten und Abstand zum Bild hinzufügen */
    .cta-button {
        display: block;
        margin: 20px auto 0 auto; /* 20px Abstand zum Bild */
        text-align: center;
    }
}

@media (max-width: 768px) {
    .cta-button {
        display: block;
        margin: 20px auto 20px auto; /* Oben und unten 20px Abstand */
        text-align: center;
        width: fit-content; /* Breite anpassen */
    }

    .cta-image {
        margin-top: 20px; /* Abstand zum Button */
    }
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: auto;
}

.cta-text {
    max-width: 50%;
    text-align: left;
}

.cta-text h2 {
    font-size: 24px;
    color: #0a4f76;
    margin-bottom: 10px;
}

.cta-text p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    padding: 12px 20px;
    background-color: #0a4f76;
    color: white;
    font-size: 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color:  #f9aa4e;
}

.cta-image img {
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-text {
        max-width: 100%;
    }

    .cta-image img {
        margin-top: 20px;
        max-width: 100%;
    }
}

.cta-top {
    width: 100%;
    background-color: #ffffff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}


@media (max-width: 768px) {
    .cta-top {
        flex-direction: column;
        text-align: center;
        max-width: 100%;
        padding: 15px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .cta-image img {
        max-width: 90%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
}

.center-button {
    display: block !important;
    text-align: center;
    margin-top: 20px;
}

.center-button .cta-button {
    display: inline-block;
    padding: 14px 25px;
    background-color: #0a4f76;
    color: white;
    font-size: 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.center-button .cta-button:hover {
    background-color: #063c57;
    color: gray !important; /* Schriftfarbe beim Hover grau */
}

/* Button-Styling */
.section-button {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    background-color: #0a4f76; /* Blaue Standardfarbe */
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

/* Button Hover-Effekt */
.section-button:hover {
    background-color:  #f9aa4e; /* Dunkleres Blau beim Hover */
}

/* Responsive Anpassung */
@media (max-width: 768px) {
    .section-button {
        width: 100%;
        text-align: center;
        padding: 15px;
    }
}

.image-source {
    font-size: 12px;
    color: #777;
    text-align: left;
    margin-top: 5px;
}

           /* Container für flexibles Layout */
.content-container {
    display: flex;
    flex-wrap: wrap; /* Damit die Elemente nicht über den Rand hinausgehen */
    justify-content: center;
}
        
        
/* Container für den gesamten Content */

.content-wrapper {
    display: flex;
    flex-wrap: wrap; /* Elemente umbrechen lassen */
    align-items: flex-start; /* Elemente am oberen Rand ausrichten */
    justify-content: space-between; /* Maximale Nutzung des Platzes */
    max-width: 1200px;
    margin: auto;
    gap: 20px;
    overflow: hidden; /* Begrenzt Inhalt innerhalb des Containers */
}

/* Hauptinhalt links */
.main-content {
    flex: 2;
    min-width: 65%;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-sizing: border-box; /* Stellt sicher, dass padding nicht die Breite vergrößert */
}




/* Rechte Spalte für die neuesten Beiträge */

.right-column {
    flex: 1;
    min-width: 30%;
    max-width: 350px;
    background: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    box-sizing: border-box;
}

/* Mobile Anpassung */
@media (max-width: 768px) {
    .right-column {
        min-width: 100%;
        max-width: 100%;
        text-align: center;
        padding: 20px;
        overflow: hidden;
    }
}

/* Verhindert das Rausragen von Texten */
.right-column h2, 
.right-column p {
    word-wrap: break-word; /* Lässt lange Wörter umbrechen */
    overflow-wrap: break-word; /* Alternative für neuere Browser */
    white-space: normal;
}


.latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

/* Mobile Anpassung */
@media (max-width: 768px) {
    .latest-posts-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }

    .latest-posts-row {
        flex-direction: column;
        align-items: center;
    }

    .latest-post {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
    }
}


/* Zeilencontainer für jeweils zwei Beiträge */
.latest-posts-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* Einzelner Blog-Post */
.latest-post {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.latest-post:hover {
    transform: scale(1.03);
}

.latest-post img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.latest-post h4 {
    font-size: 1rem;
    margin: 10px 0;
    font-weight: bold;
}
.latest-post p.short-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

/* Read More Button */
.latest-post .read-more {
    display: block;
    padding: 8px 12px;
    font-size: 0.9rem;
    background-color: #0a4f76;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.latest-post .read-more:hover {
    background-color: #063c57;
    color: white;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .latest-posts-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }

    .latest-posts-row {
        flex-direction: column;
        align-items: center;
    }

    .latest-post {
        width: 100%;
        max-width: 100%;
    }
}

/* Kommentar-Bereich */
.comments {
    margin-top: 30px;
    padding: 20px;
    background: #e6f7ff;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Einzelner Kommentar */
.comment {
    width: 100%;
    max-width: 80%;  /* Begrenzung der Kommentarbreite */
    padding: 15px;
    border-bottom: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Profilbild für Kommentare */
.comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Kommentar-Inhalt */
.comment-content {
    width: auto;
    max-width: 80%;
    display: inline-block;
    padding: 10px;
    background: #fff;
    border-radius: 5px;
}

/* Zeitstempel */
.timestamp {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

/* Name des Kommentierenden */
.comment-name {
    font-weight: bold;
    color: #0a4f76;
    font-size: 1rem;
    display: block;
    margin-bottom: 5px;
}

/* Kommentar-Text */
.comment-text {
    font-size: 1rem;
    color: #333;
    word-wrap: break-word;
}

/* Kommentarformular */
.comment-form {
    width: 100%;
    max-width: 600px; /* Begrenzung der Formularbreite */
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

/* Eingabefelder */
.comment-box-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 1rem;
    box-sizing: border-box;
    display: block; /* Alle Felder untereinander */
}

/* Button-Stil */
.comment-button {
    width: 100%;
    padding: 12px;
    background-color: #0a4f76;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.comment-button:hover {
    background-color: #063c57;
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .comment {
        max-width: 100%;
    }

    .comment-content {
        max-width: 90%;
    }

    .comment-form {
        max-width: 100%;
        padding: 15px;
    }

    .comment-avatar img {
        width: 40px;
        height: 40px;
        margin-bottom: 5px;
    }

    .comment-name {
        font-size: 1rem;
    }

    .comment-text {
        font-size: 0.95rem;
    }
}

.blog-category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.category-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #0a4f76;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.category-button:hover {
    background-color:  #f9aa4e;
}

/* Teilen-Button */
.share-container {
    position: fixed;
    right: 15px;
    bottom: 100px;
    z-index: 999;
}

.share-button {
    background-color: #0a4f76;
    color: white;
    border: none;
    padding: 12px 15px;
    font-size: 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.share-button:hover {
    background-color: #f9aa4e;
}

/* Teilen-Menü */
.share-menu {
    display: none;
    position: absolute;
    bottom: 60px;
    right: 0;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 160px;
}

.share-menu a, .copy-link {
    display: block;
    margin: 5px 0;
    padding: 8px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.share-menu a:hover, .copy-link:hover {
    background: #f9aa4e;
    color: white;
}

/* Responsive Anpassung */
@media (max-width: 768px) {
    .share-container {
        right: 10px;
        bottom: 80px;
    }
}
