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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background-color: #f4f4f4;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.logo-img {
    height: 50px; /* Beispielhöhe für das Logo */
    width: auto;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* Hero Section */

.hero-image{
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
.hero-section {
   /* background-color: #e9e9e9;*/
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #007bff;
}

/* Styling für den Paragraphen im Hero-Bereich (Vorherige Änderung) */
/* Styling für die H1-Überschrift im Hero-Bereich */
.hero-section h1 {
    background-color: rgba(0, 0, 0, 0.7); 
    color: white; 
    padding: 10px 15px; 
    border-radius: 5px; 
    /* WICHTIG: display auf 'block' setzen, damit es die ganze Breite einnimmt und die nächste Zeile erzwingt */
    display: block; 
    margin: 0 0 10px 0; /* Abstand nach unten hinzufügen */
    z-index: 20; 
    position: relative;
    font-size: 2.5em; 
}

/* Styling für den Paragraphen im Hero-Bereich */
.hero-section p {
    background-color: rgba(0, 0, 0, 0.7); 
    color: white; 
    padding: 10px 15px; 
    border-radius: 5px; 
    /* WICHTIG: display auf 'block' setzen, damit es eine eigene Zeile beginnt */
    display: block; 
    margin-top: 15px; /* Abstand zur H1, falls Sie 'margin' in der H1 verwenden */
    z-index: 20; 
    position: relative;
}

.hero-buttons .button {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin: 0 10px;
    text-decoration: none;
    display: inline-block;
}

.hero-buttons .button:hover {
    background-color: #0056b3;
}

/* Socials Section */
.socials-section {
    background-color: #f9f9f9;
    padding: 20px 0;
    text-align: center;
}

.social-nav a {
    margin: 0 10px;
    color: #666;
    text-decoration: none;
}

/* Info Grid Section */
.info-grid-section {
    padding: 60px 0;
    background-color: #fff;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-item {
    background-color: #f4f4f4;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.grid-item h2 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
}

.grid-item p {
    margin-bottom: 20px;
}

.read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* Testimonials Section */
.testimonials-section {
    background-color: #e9e9e9;
    padding: 60px 0;
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.testimonial {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    margin: 0; 
}

.testimonial p {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial cite {
    display: block;
    text-align: right;
    font-size: 0.9em;
    color: #666;
}

/* Footer */
.main-footer {
    background-color: #333;
    color: white;
    padding: 40px 0 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #555;
}

.footer-left {
    flex: 1;
    min-width: 250px;
}

.logo-img-footer {
    height: 60px; /* Beispielhöhe für das Logo im Footer */
    width: auto;
    margin-bottom: 15px;
}

.footer-left address {
    font-style: normal;
    font-size: 0.9em;
    line-height: 1.8;
} 

.footer-nav {
    flex: 2;
    min-width: 300px;
}

.footer-nav table {
    width: 100%;
    border-collapse: collapse;
}

.footer-nav th {
    text-align: left;
    padding-bottom: 10px;
    font-size: 1.1em;
    color: #bbb;
}

.footer-nav td {
    padding: 5px 0;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.9em;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    font-size: 0.8em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-legal-nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

.footer-legal-nav a:hover {
    text-decoration: underline;
}

/* Responsivität */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        margin-top: 15px;
        justify-content: center;
    }

    .hero-section h1 {
        font-size: 2em;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .button {
        margin: 0;
        width: 80%;
    }

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

    .footer-nav table {
        margin-top: 20px;
    }

    .footer-nav th, .footer-nav td {
        text-align: center;
    }

    .copyright {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .testimonials-container {
        flex-direction: column;
        align-items: center;
    }
}
/* Stile für das Kontaktformular */
.contact-form-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: calc(100% - 20px); /* Adjust for padding */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Include padding in width */
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 120px;
}

.form-group input[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    display: block; /* Makes button full width */
    width: 100%;
    transition: background-color 0.3s ease;
}

.form-group input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Responsive Anpassungen für das Formular */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 20px;
    }
}
/* Spezifische Stile für die Socials/Forum-Seite */

.forum-section {
    padding: 60px 0;
    background-color: #f0f2f5; /* Leichter Hintergrund für den Forum-Bereich */
}

.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.forum-header h2 {
    font-size: 2.2em;
    color: #333;
    margin: 0;
}

.create-post-button {
    background-color: #28a745; /* Grüne Farbe für "Neuen Beitrag erstellen" */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.create-post-button:hover {
    background-color: #218838;
}

.forum-post-list {
    display: grid;
    gap: 20px;
}

.forum-post-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 25px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.forum-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.post-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.post-category {
    background-color: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-weight: bold;
    margin-right: 10px;
    display: inline-block; /* Für korrekte Abstände */
}

.post-author {
    font-weight: bold;
}

.post-date {
    float: right; /* Datum rechts ausrichten */
}

.post-title {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
}

.post-title a {
    color: #333;
    text-decoration: none;
}

.post-title a:hover {
    color: #007bff;
    text-decoration: underline;
}

.post-excerpt {
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

.post-stats {
    font-size: 0.85em;
    color: #777;
}

.post-stats span {
    margin-right: 15px;
}

.post-stats .icon-comment:before { content: "💬 "; } 
.post-stats .icon-eye:before { content: "👁️ "; } 

.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    background-color: #e9ecef;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.pagination a:hover:not(.active) {
    background-color: #dee2e6;
}

.pagination a.active {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

/* Sektion für externe Social Media Links*/
.external-socials-section {
    padding: 40px 0;
    text-align: center;
    background-color: #fff; /* Kann beibehalten werden,  */
    margin-top: 40px; /* Abstand zum Forum-Bereich */
    border-top: 1px solid #eee;
}

.external-socials-section h2 {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: #333;
}

.social-nav {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.social-nav a {
    text-decoration: none;
    color: #007bff;
    font-size: 1.1em;
    font-weight: bold;
    transition: color 0.3s ease;
}

.social-nav a:hover {
    color: #0056b3;
}

/* Responsivität */
@media (max-width: 768px) {
    .forum-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .forum-header h2 {
        font-size: 1.8em;
    }

    .create-post-button {
        width: 100%;
        text-align: center;
    }

    .post-date {
        float: none;
        display: block;
        margin-top: 5px;
    }

    .pagination a {
        margin: 0 3px;
        padding: 6px 12px;
    }
}