/* css/index.css */

/* --- Spezifische Stile für die Frontend-Startseite (index.php) --- */

/* Bereich für das Hauptlogo */
.logo-section {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--background-color); /* Weißer Hintergrund */
}

.logo-section img {
    max-width: 20%; /* Adjusted: Reduced max-width for the logo */
    height: auto;
    display: block; /* Entfernt zusätzlichen Platz unter dem Bild */
    margin: 0 auto; /* Zentriert das Bild */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Leichter Schatten */
    border-radius: 8px; /* Abgerundete Ecken */
}

/* Willkommensbereich */
.willkommen {
    text-align: center;
    padding: 50px 20px;
    background-color: var(--light-bg-color); /* Sehr helles Grau */
    margin-bottom: 30px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.willkommen h1 {
    color: var(--primary-color); /* Primäre Akzentfarbe */
    font-size: 2.8em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.willkommen p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15em;
    line-height: 1.8;
    color: var(--text-color);
}

/* News-Bereich */
.news {
    padding: 30px 20px;
    background-color: var(--background-color);
    display: grid; /* Grid-Layout für News-Boxen */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive Spalten */
    gap: 30px; /* Abstand zwischen den News-Boxen */
    /* To center the grid container itself, you might need to adjust the parent of .news or add max-width and margin: auto here if it's not already centered by its parent */
    max-width: 1200px; /* Example: Limit overall width of news section */
    margin: 0 auto; /* Example: Center the news section */
}

.news-box {
    background-color: var(--light-bg-color); /* Heller Hintergrund für jede News-Box */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* Sanfter Schatten */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Inhalt vertikal anordnen */
}

.news-box:hover {
    transform: translateY(-5px); /* Leichter Schwebe-Effekt beim Hover */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); /* Stärkerer Schatten */
}

.news-box h3 {
    color: var(--primary-color-dark); /* Dunkleres Violett für Titel */
    font-size: 1.8em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.news-meta {
    display: block; /* Sorgt dafür, dass es in einer neuen Zeile steht */
    font-size: 0.9em;
    color: var(--light-text-color);
    margin-bottom: 15px;
}

.news-image {
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-box p {
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--text-color);
    flex-grow: 1; /* Sorgt dafür, dass der Text den verfügbaren Platz ausfüllt */
    margin-bottom: 20px; /* Abstand vor dem PDF-Link */
}

.news-pdf-link {
    text-align: center;
    margin-top: auto; /* Schiebt den Link an den unteren Rand der Box */
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.news-pdf-link a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    display: flex; /* Für Icon und Text nebeneinander */
    flex-direction: column; /* Icon und Text untereinander */
    align-items: center;
}

.news-pdf-link a:hover {
    color: var(--primary-color-dark);
}

.news-pdf-preview {
    max-width: 150px; /* Kleinere Vorschaubilder */
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 10px;
    transition: transform 0.2s ease;
}

.news-pdf-link a:hover .news-pdf-preview {
    transform: scale(1.05); /* Leichter Zoom-Effekt beim Hover */
}

.news-pdf-link p {
    margin-top: 0;
    font-size: 1em;
    color: var(--primary-color); /* Text des Links in Primärfarbe */
}

/* Anpassungen für den "Button primary-button" im PDF-Link, falls kein Vorschaubild vorhanden */
.news-pdf-link .button.primary-button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
}

.news-pdf-link .button.primary-button:hover {
    background-color: var(--primary-color-dark);
}


/* Responsive Anpassungen für index.css */
@media (max-width: 768px) {
    .logo-section {
        padding: 20px 10px;
    }

    .logo-section img { /* Adjusted: Make logo smaller on smaller screens too */
        max-width: 80%;
    }

    .willkommen {
        padding: 30px 15px;
    }

    .willkommen h1 {
        font-size: 2.2em;
    }

    .willkommen p {
        font-size: 1em;
    }

    .news {
        grid-template-columns: 1fr; /* Eine Spalte auf kleineren Bildschirmen */
        padding: 20px 15px;
    }

    .news-box {
        padding: 20px;
    }

    .news-box h3 {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .willkommen h1 {
        font-size: 1.8em;
    }
    .logo-section img { /* Adjusted: Even smaller logo on very small screens */
        max-width: 90%;
    }
}