/*
Theme Name: Digital-SafeSpace - Haupt-Styles
Version: 1.0.0
Author: TitanEcho
*/

/* --- FARBPALETTE BASIEREND AUF LOGO: --- */
/* (Zur besseren Wartbarkeit als CSS-Variablen definiert) */
:root {
    --bg-primary: #080A14;          /* Sehr dunkles, tiefes Blau */
    --bg-secondary: #14172C;        /* Etwas hellere Boxen/Card Hintergrund */
    --accent-primary: #00D1FF;      /* Leuchtendes Cyan/Türkis */
    --accent-secondary: #33FFB0;    /* Helles Grün/Mint (Warm/Support) */
    --text-color: #E9ECEF;
}

/* Globale Styles und Reset */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary); 
    color: var(--text-color);
    line-height: 1.65;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

h1, h2 {
    font-weight: 800;
    color: var(--accent-primary); 
}

h3, h4 {
    color: var(--text-color);
    font-weight: 700;
}

.soft-glow {
    text-shadow: 0 0 5px rgba(0, 209, 255, 0.3);
    color: var(--text-color);
}

a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #66ffcc; /* Helleres Mint */
}

code {
    background-color: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 6px; 
    font-size: 0.9em;
    color: var(--accent-primary);
    font-weight: 600;
}

/* Header/Hero Section */
.hero {
    background: linear-gradient(160deg, var(--bg-secondary), var(--bg-primary)); 
    padding: 160px 0 100px; 
    text-align: center;
    border-bottom: 5px solid var(--accent-primary); 
    border-radius: 0 0 50px 50px; 
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.hero h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-secondary);
    color: var(--bg-primary); 
    padding: 18px 40px;
    border-radius: 12px; 
    font-size: 1.1em;
    font-weight: 800;
    transition: all 0.3s;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(51, 255, 176, 0.4); 
}

.cta-button:hover {
    background-color: #66ffcc;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(51, 255, 176, 0.6);
}

/* ------------------------------------- */
/* HAUPTINHALT GRID & WIDGET LOGIK */
/* ------------------------------------- */

.content-wrapper {
    padding: 60px 0;
}

.main-grid-container {
    display: grid;
    grid-template-columns: 1fr 350px; 
    gap: 50px;
}

.main-content {
    /* Haupt-Content Box */
    background-color: var(--bg-secondary);
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.sidebar-widget-container {
    /* Sticky Sidebar */
    align-self: start; 
    position: sticky;
    top: 50px; 
}

.widget-cta-button {
    display: block;
    width: 80%;
    margin: 20px auto 0;
    background-color: var(--accent-secondary);
    color: var(--bg-primary);
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    transition: background-color 0.3s;
}
.widget-cta-button:hover {
    background-color: #66ffcc;
}


/* INHALTSSEKTIONEN STYLING */
.section {
    padding: 40px 0;
    border-bottom: 1px dashed var(--bg-primary); 
}
.section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.section h2 {
    font-size: 2em;
    text-align: left;
    margin-bottom: 10px;
}

.accent-box {
    background-color: var(--bg-primary);
    border-left: 5px solid var(--accent-secondary); 
    padding: 25px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.2em;
    color: #c4c4c4;
    border-radius: 8px;
}

/* Feature Cards (ersetzt frühere .card) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background-color: var(--bg-primary);
    padding: 20px;
    border-radius: 10px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent-primary); 
}

.feature-card h3 {
    color: var(--accent-primary);
    font-size: 1.1em;
}

/* Channel List */
.channel-list {
    list-style: none;
    padding: 0;
}

.channel-list li {
    background-color: var(--bg-primary);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-primary); 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    color: #c4c4c4;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9em;
    border-top: 4px solid var(--accent-secondary);
    margin-top: 50px;
}

.legal-links a {
    color: #99aab5; 
    font-size: 0.85em;
    font-weight: 400;
    text-decoration: underline; 
    transition: color 0.3s;
}

.legal-links a:hover {
    color: var(--accent-primary); 
}

.disclaimer {
    color: #ff3399; /* Spezielle Akzentfarbe für Disclaimer */
    font-weight: 600;
    margin-top: 15px;
}

/* Responsivität */
@media (max-width: 900px) {
    .main-grid-container {
        grid-template-columns: 1fr; 
        gap: 0;
    }
    
    .sidebar-widget-container {
        position: static; 
        order: -1; 
        margin-bottom: 40px;
        text-align: center;
    }

    .widget-box {
        margin: 0 auto;
        max-width: 350px;
        width: 100%;
        border-width: 1px;
    }

    .widget-box iframe {
        width: 100%;
        height: 400px;
    }

    .main-content {
        padding: 30px 20px;
        margin-top: 0;
    }
}

/* --- ABSCHNITT 9: INNENSEITEN-HEADER-STYLING --- */

/* Der äußere Header-Container */
.site-header-inner {
    margin-bottom: 40px; 
    background-color: var(--bg-secondary); /* Die Box-Farbe */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border-bottom: 3px solid var(--accent-primary); /* Türkise Linie */
    border-radius: 0 0 16px 16px; /* Abrundung unten */
}

/* Container für Logo und Navigation auf Innenseiten */
.site-branding-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.site-branding h1 {
    font-size: 1.8em;
    margin: 0;
}

/* Navigations-Liste (stellt sicher, dass die Buttons nebeneinander sind) */
.main-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px; 
}

/* --- ABSCHNITT 10: BEITRAGS-ZUSAMMENFASSUNGEN (ARCHIVE) --- */

.page-header h1 {
    /* Archivtitel außerhalb der Box, nur zum Abgrenzen */
    font-size: 2.2em;
    margin-bottom: 20px;
}

/* Post Summary Box (nutzt .main-content für den Hintergrund) */
.post-summary-box {
    margin-bottom: 30px; 
    transition: all 0.3s ease;
    border-left: 5px solid var(--accent-secondary); /* Mint-Akzentlinie */
    padding: 30px;
}

/* Hover-Effekt, um die Post-Box zu akzentuieren */
.post-summary-box:hover {
    border-left-color: var(--accent-primary); /* Wechsel zu Cyan-Akzent beim Hover */
    box-shadow: 0 0 10px rgba(0, 209, 255, 0.2); 
}

.entry-title {
    margin-top: 0;
    margin-bottom: 5px;
}

.entry-title a {
    color: var(--text-color); /* Titel soll hellweiß sein */
    transition: color 0.3s;
}

.entry-title a:hover {
    color: var(--accent-primary); /* Türkis beim Hover */
}

.entry-content-summary {
    margin: 20px 0;
    color: #c4c4c4;
}

/* Paginierung Styling */
.pagination {
    text-align: center;
    padding: 20px 0;
}

.page-numbers {
    background-color: var(--bg-secondary);
    border: 1px solid var(--accent-secondary);
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 8px;
    color: var(--accent-secondary);
    transition: all 0.3s;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

/* Explizite Definition für den Weiterlesen-Button */
.read-more-button {
    /* Stellt sicher, dass der Button unter dem Text angezeigt wird */
    display: inline-block; 
    margin-top: 25px; /* Abstand zum Fließtext des Auszugs */
    
    /* Leichte Anpassung der Größe, da er nicht der Haupt-Hero-Button ist */
    padding: 12px 25px; 
    font-size: 0.9em;
}

/* Fix für Standard-WordPress "Weiterlesen"-Link, falls er ohne Excerpt generiert wird */
.entry-content-summary .read-more {
    display: inline-block;
    margin-top: 25px;
}

/* --- ABSCHNITT 11: FOOTER WIDGETS (NEU) --- */

footer {
    background-color: var(--bg-secondary);
    color: #c4c4c4;
    padding: 40px 0;
    font-size: 0.9em;
    border-top: 4px solid var(--accent-secondary);
    margin-top: 50px;
}

/* Flex-Grid für die 5 Spalten */
.footer-widgets-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--bg-primary); /* Trennlinie zum Disclaimer */
}

.footer-widget-column {
    flex: 1; /* Gleichmäßige Aufteilung */
    min-width: 150px;
}

/* Styling für die Widget-Boxen selbst */
.footer-widget-box {
    background-color: var(--bg-primary);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.footer-widget-box h4 {
    color: var(--accent-primary);
    font-size: 1.1em;
    margin-top: 0;
    border-bottom: 1px dashed var(--bg-secondary);
    padding-bottom: 5px;
}

.footer-disclaimer {
    /* Stellt sicher, dass der Disclaimer zentriert bleibt */
    text-align: center;
    padding-top: 20px;
}

/* Responsivität für Footer */
@media (max-width: 1000px) {
    .footer-widgets-grid {
        flex-wrap: wrap; /* Zeilenumbruch bei kleinerem Bildschirm */
        justify-content: center;
    }
    .footer-widget-column {
        flex: 1 1 45%; /* Max. 2 Spalten pro Reihe */
    }
}
@media (max-width: 600px) {
    .footer-widget-column {
        flex: 1 1 100%; /* Eine Spalte pro Reihe */
    }
}

/* --- ABSCHNITT 12: DYNAMISCHE SIDEBAR (sidebar-1) STYLING --- */

.sidebar-widgets-wrapper {
    /* Stellt sicher, dass die Sidebar-Widgets den nötigen Abstand haben */
    padding: 15px; 
}

/* Styling für die Widget-Boxen (im functions.php als .main-content definiert) */
.widget-area .widget {
    max-width: 100%;
    margin-bottom: 25px;
    padding: 0; /* padding wird bereits durch .main-content gegeben */
}

/* Titel für Sidebar-Widgets */
.widget-area .widget-title {
    color: var(--accent-primary); /* Cyan/Türkis */
    font-size: 1.3em;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--bg-primary); 
}

/* --- ABSCHNITT 13: KOMMENTARBEREICH STYLING --- */

/* Wrapper für den gesamten Kommentarbereich (muss die Box-Stile verwenden) */
#comments {
    margin-top: 40px;
    /* Nutzt die main-content-Klasse, wenn es nicht bereits von single.php umwickelt wird */
    background-color: var(--bg-secondary);
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    color: var(--text-color);
}

/* Titel für den Kommentarbereich */
#reply-title, .comments-title {
    color: var(--accent-primary);
    font-size: 1.8em;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Link-Styling im Kommentarbereich (z.B. "Edit your profile") */
#comments a {
    color: var(--accent-secondary); /* #33FFB0 */
}

/* --- Formularfelder (Textarea, Input) --- */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    /* Dunkler Hintergrund und helle Schrift für Eingabefelder */
    background-color: var(--bg-primary); /* #080A14 */
    color: var(--text-color); /* #E9ECEF */
    border: 1px solid var(--bg-accent); /* #14172C */
    padding: 12px;
    border-radius: 6px;
    width: 100%; /* Volle Breite */
    box-sizing: border-box; /* Padding wird in die Breite einbezogen */
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

.comment-form input[type="text"]:focus,
.comment-form textarea:focus {
    border-color: var(--accent-primary); /* #00D1FF beim Fokus */
    outline: none;
}

/* Label-Text für die Felder */
.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #c4c4c4;
}

/* --- Submit Button --- */
.form-submit input[type="submit"] {
    /* Button als CTA im Mint-Stil */
    display: inline-block;
    background-color: var(--accent-secondary); /* #33FFB0 */
    color: var(--bg-secondary);
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: uppercase;
}

.form-submit input[type="submit"]:hover {
    background-color: #66ffcc;
}

/* --- Kommentarliste (falls bereits Kommentare vorhanden sind) --- */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list li {
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 3px solid var(--accent-secondary);
}

.comment-author .fn {
    color: var(--accent-primary); /* #00D1FF */
    font-weight: 700;
}