/* ==========================================================================
   1. SCHRIFTARTEN (Poppins) - LOKAL GELADEN
   ========================================================================== */

/*
 * Pfad-Logik von /css/style.css:
 * Gehe einen Ordner hoch (..) zum Hauptverzeichnis, dann in /fonts.
 * Pfad ist: ../fonts/
 */

/* Poppins Regular (Gewicht 400) */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.ttf') format('truetype'); 
    font-weight: 400;
    font-style: normal;
}

/* Poppins Italic (Gewicht 400) */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

/* Poppins Medium (Gewicht 500) */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

/* Poppins SemiBold (Gewicht 600) */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

/* Poppins Bold (Gewicht 700) */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Poppins Bold Italic (Gewicht 700) */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

/* * HINWEIS: Sie können nach diesem Muster alle weiteren Schnitte 
 * (z.B. Poppins-Light, Poppins-ExtraBold) hinzufügen, 
 * die Sie in Ihrem Screenshot haben.
 */


/* ==========================================================================
   2. GLOBALE STYLES & BODY
   ========================================================================== */

body {
    /* * Diese Regel bleibt gleich. 
     * Der Browser wählt jetzt automatisch die richtige .ttf-Datei, 
     * wenn Sie z.B. font-weight: 700; (Bold) verwenden.
     */
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   3. SPEZIFISCHE SEKTIONS-STYLES (Welcome Section)
   ========================================================================== */

.welcome-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.welcome-section h2 {
    /* Diese Regel nutzt jetzt automatisch Poppins-Bold.ttf (oder was 700 am nächsten kommt) */
    font-weight: 700; 
    color: #dc3545;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 2em;
}

.welcome-section p { margin-bottom: 15px; }
.welcome-section ul { list-style-type: disc; padding-left: 30px; margin-bottom: 20px; }
.welcome-section li { margin-bottom: 5px; }
.welcome-section strong { font-weight: 700; }


/* ==========================================================================
   4. STYLES FÜR DEN NEWSFEED (Frontend)
   ========================================================================== */
.news-container {
    max-width: 800px;
    margin: 40px auto;
}

.news-container h1 {
    font-weight: 700;
    color: #333; /* Etwas dezenter als die Welcome-Überschrift */
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.news-article {
    background-color: #ffffff;
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.news-article h2 {
    font-weight: 700;
    color: #dc3545; /* Gleiche Akzentfarbe wie Welcome-Section */
    margin-top: 0;
    font-size: 1.8em;
}

.news-article small {
    display: block;
    color: #777;
    margin-bottom: 15px;
}

.news-article p {
    margin-bottom: 0; /* Letztes Element im Artikel braucht keinen Abstand */
}

/* ==========================================================================
   5. NEU: STYLES FÜR DAS ADMIN-FORMULAR (Backend)
   ========================================================================== */
.admin-form {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.admin-form h1 {
    font-weight: 700;
    color: #dc3545;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    margin-top: 0;
}

.admin-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.admin-form input[type="text"],
.admin-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif; /* Schriftart erben */
    box-sizing: border-box; /* Wichtig für 100% Breite */
}

.admin-form button {
    background-color: #dc3545;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1em;
}

.admin-form button:hover {
    background-color: #c82333;
}

.admin-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.admin-form .back-link {
    margin-top: 20px;
    display: inline-block;
}