/* ==================================== */
/* 1. GRUNDLAGEN & TYPOGRAPHIE           */
/* ==================================== */
body {
    font-family: Arial, sans-serif; /* Einfache, robuste Schrift */
    background-color: #f0f0f0; /* Heller Hintergrund für den Hauptinhalt */
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

a {
    color: #FF8C00; /* Leuchtendes Orange als elektrische Akzentfarbe */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #FFA500;
}

h1, h2, h3 {
    color: #2c3e50; /* Dunkle Überschrift */
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
}

/* ==================================== */
/* 2. HEADER & NAVIGATION               */
/* ==================================== */
.site-header {
    background-color: #2c3e50; /* Dunkelblau/Grau für den "Werktisch" */
    color: #ecf0f1;
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area a {
    color: #ecf0f1;
    text-decoration: none;
}

.tagline {
    font-style: italic;
    font-size: 0.8em;
    color: #bdc3c7;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.main-navigation li {
    margin-left: 20px;
}

.main-navigation a {
    color: #ecf0f1;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.main-navigation a:hover {
    background-color: #34495e;
    text-decoration: none;
}


/* ==================================== */
/* 3. HAUPTINHALT & KARTEN              */
/* ==================================== */
.content-wrapper {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.hero {
    background-color: #ecf0f1;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 8px;
    border: 1px solid #ddd;
    text-align: center;
}

.cta-button {
    display: inline-block;
    background-color: #FF8C00;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #FFA500;
    text-decoration: none;
}

.category-list {
    display: flex;
    gap: 20px; /* Abstand zwischen den Karten */
    flex-wrap: wrap;
    justify-content: center;
}

.category-card {
    flex-basis: calc(50% - 10px); /* 2 Karten pro Zeile (Desktop) */
    background-color: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ==================================== */
/* 4. FOOTER                            */
/* ==================================== */
.site-footer {
    background-color: #34495e; /* Dunkler als der Header für Abgrenzung */
    color: #bdc3c7;
    padding: 30px 20px 10px;
    margin-top: 50px;
}

.footer-widgets {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    padding-bottom: 20px;
}

.footer-column {
    flex-basis: 30%;
    margin-bottom: 20px;
}

.footer-column h3 {
    color: #ecf0f1;
    border-bottom: 1px solid #4a637d;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column a {
    color: #bdc3c7;
}

.copyright-bar {
    text-align: center;
    border-top: 1px solid #4a637d;
    padding-top: 10px;
    font-size: 0.8em;
}


/* ==================================== */
/* 5. FORMULARE & NEWSLETTER            */
/* ==================================== */
/* Generelle Formular-Elemente */
input[type="text"], 
input[type="email"], 
input[type="password"], 
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    box-sizing: border-box; 
    font-size: 1em;
}

/* Newsletter-Formular im Footer */
.newsletter-form input[type="email"] {
    width: calc(100% - 100px); 
    padding: 8px;
    margin-right: -4px; 
    border: 1px solid #FF8C00;
    border-right: none;
    border-radius: 4px 0 0 4px;
    vertical-align: middle;
}

.newsletter-form button {
    width: 100px;
    padding: 8px 0;
    background-color: #FF8C00;
    color: white;
    border: 1px solid #FF8C00;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
    vertical-align: middle;
}

.newsletter-form button:hover {
    background-color: #FFA500;
}

/* Suchfeld im Header */
.search-box input[type="text"] {
    width: 200px;
    padding: 5px 10px;
    border: 1px solid #bdc3c7;
    border-radius: 4px 0 0 4px;
    vertical-align: middle;
}

.search-box button {
    background-color: #34495e;
    color: #ecf0f1;
    padding: 5px 10px;
    border: 1px solid #34495e;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    vertical-align: middle;
}


/* ==================================== */
/* 6. ARTIKEL-ANSICHT & ZUSAMMENFASSUNG */
/* ==================================== */

/* Allgemeine Post-Elemente */
.post-summary, .single-post {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.post-meta {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-top: -10px;
    margin-bottom: 20px;
    border-bottom: none;
    padding-bottom: 0;
}

.read-more {
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.post-separator {
    border: 0;
    border-top: 1px dashed #ccc;
    margin: 30px 0;
}

/* ==================================== */
/* 7. KOMMENTARE & STATUS-BOXEN          */
/* ==================================== */

.comments-section {
    padding: 20px;
    background-color: #ecf0f1;
    border-radius: 8px;
    margin-top: 40px;
}

.comment-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #2c3e50;
}

.comment-list {
    margin-top: 20px;
}

.comment {
    border: 1px solid #bdc3c7;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    background-color: white;
}

.comment-meta {
    font-size: 0.85em;
    font-style: italic;
    color: #7f8c8d;
    margin-top: 0;
    margin-bottom: 5px;
}

/* Status-/Alert-Meldungen (für Newsletter-Antworten etc.) */
.success-box, .error-box, .info-box {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-weight: bold;
}

.success-box { 
    background: #d4edda; 
    color: #155724; 
    border: 1px solid #c3e6cb; 
}

.error-box { 
    background: #f8d7da; 
    color: #721c24; 
    border: 1px solid #f5c6cb; 
}

.info-box { 
    background: #cfe2ff; 
    color: #0a58ca; 
    border: 1px solid #b6d4fe; 
}


/* ==================================== */
/* 8. ADMIN-BEREICH                      */
/* ==================================== */

/* Generelle Admin-Navigation (zur Vermeidung von Inline-Styles) */
.admin-nav { 
    background: #2c3e50; 
    padding: 10px 0; 
    margin-bottom: 20px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.admin-nav ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: flex; 
    justify-content: center; 
}
.admin-nav ul li a { 
    color: white; 
    text-decoration: none; 
    padding: 10px 15px; 
    display: block; 
    transition: background-color 0.3s;
}
.admin-nav ul li a:hover { 
    background: #34495e; 
}

/* Statistik-Karten (Dashboard) */
.stat-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px; 
    margin-top: 30px; 
}
.stat-card { 
    background: #f4f4f4; 
    padding: 20px; 
    border-radius: 8px; 
    text-align: center; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
}
.stat-card h3 { 
    margin-top: 0; 
    color: #555; 
    font-size: 1em; 
}
.stat-card p { 
    font-size: 2.5em; 
    font-weight: bold; 
    margin: 5px 0 0; 
    color: #007bff; 
}
.stat-card.alert p { 
    color: #dc3545; /* Rot für neue Kommentare */
}

/* Admin Kommentar-Items (kommentare_uebersicht.php) */
.comment-item { 
    border: 1px solid #ccc; 
    padding: 15px; 
    margin-bottom: 20px; 
    border-radius: 5px; 
}
.comment-item.new { 
    border-left: 5px solid #ffc107; 
    background-color: #fffbe9; 
} /* Gelb für neue Kommentare */
.comment-item.approved { 
    border-left: 5px solid #28a745; 
    background-color: #f1fff1; 
} /* Grün für freigegebene Kommentare */
.comment-actions button { 
    margin-right: 10px; 
    padding: 5px 10px; 
    cursor: pointer; 
    border: none; 
    border-radius: 3px; 
}
.approve-btn { 
    background-color: #28a745; 
    color: white; 
}
.delete-btn { 
    background-color: #dc3545; 
    color: white; 
}


/* ==================================== */
/* 9. RESPONSIVENESS (Media Queries)    */
/* ==================================== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .main-navigation li {
        margin: 5px 10px;
    }
    .category-card {
        flex-basis: 100%; /* Eine Karte pro Zeile auf Mobilgeräten */
    }
    .footer-column {
        flex-basis: 100%;
        text-align: center;
    }
    .search-box {
        margin-top: 10px;
    }
    .newsletter-form input[type="email"],
    .newsletter-form button {
        width: 100%;
        margin-right: 0;
        border-radius: 4px;
        margin-bottom: 10px;
    }
}