/*
Theme Name: DBH
Theme URI: https://blake-hofer.net
Author: Dominique Blake-Hofer
Description: Internes High-End Dashboard mit Terminal-Ästhetik.
Version: 1.2
Text Domain: dbh
*/

/* --- 1. GLOBALE VARIABLEN & RESET --- */
:root {
    --moss-dark: #606c38;
    --moss-bright: #84cc16;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --bg-main: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

html, body { 
    max-width: 100%; 
    overflow-x: hidden; 
    margin: 0; 
    padding: 0; 
    background-color: #f8fafc;
    color: var(--text-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.mono { font-family: 'JetBrains Mono', monospace; }

/* --- 2. DAS MASTER GRID --- */
.dashboard-grid { 
    display: grid !important; 
    grid-template-columns: repeat(12, 1fr) !important; 
    grid-auto-rows: 1fr !important; /* Erzwingt identische Zeilenhöhe */
    gap: 20px !important; 
    max-width: 1400px; 
    margin: 40px auto; 
    padding: 0 40px; 
    box-sizing: border-box; 
    align-items: stretch !important;
}

/* --- 3. CARDS & SECTIONS --- */
.glass-card { 
    background: white; 
    border: 1px solid var(--border); 
    border-radius: 15px; 
    padding: 30px !important; 
    box-shadow: var(--shadow-sm); 
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

/* Service-Karten (Obere Reihe) */
.service-card {
    grid-column: span 3;
    justify-content: flex-start !important; /* Inhalt oben halten */
    position: relative;
}

/* Text-Bereich innerhalb der Karte */
.service-card p {
    flex-grow: 1 !important; /* Drückt den Button-Container nach unten */
    margin: 10px 0 25px 0 !important;
    line-height: 1.5;
    min-height: 80px; /* Sicherer Mindestplatz für Texte */
}

/* Container für die Buttons am Boden der Karte */
.action-btn-container {
    margin-top: auto !important;
    display: flex;
    gap: 10px;
    width: 100%;
}

/* Showcase-Sektion (Untere Reihe) */
.showcase-section {
    grid-column: span 12 !important;
    grid-row: auto !important;
    margin-top: 40px !important;
}

.showcase-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    margin-top: 20px !important;
}

/* --- 4. BUTTONS --- */
.action-btn {
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid var(--moss-dark);
    background: var(--moss-dark);
    color: white;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.action-btn:hover {
    background: var(--moss-bright);
    border-color: var(--moss-bright);
}

/* --- 5. MODALS --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content { 
    background: white; 
    border-radius: 20px; 
    padding: 40px; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.5); 
    max-height: 90vh; 
    width: 95%; 
    max-width: 800px; 
    box-sizing: border-box; 
    overflow-y: auto;
}

.modal-close-btn { 
    margin-top: 30px; 
    padding: 12px 35px; 
    background: #64748b; 
    color: white; 
    border: none; 
    border-radius: 10px; 
    cursor: pointer; 
    font-weight: bold; 
    width: 100%; 
}

/* --- 6. ANIMATIONEN --- */
.terminal-cursor { 
    color: var(--moss-bright); 
    font-weight: bold;
    animation: blink-animation 1s steps(5, start) infinite; 
}

@keyframes blink-animation {
    to { visibility: hidden; }
}

/* --- 7. RESPONSIVE --- */
@media (max-width: 1100px) {
    .dashboard-grid { grid-template-columns: repeat(6, 1fr) !important; }
    .hero-section, .journal-section, .showcase-section { grid-column: span 6 !important; }
    .service-card { grid-column: span 3 !important; }
}

@media (max-width: 800px) {
    .dashboard-grid { grid-template-columns: 1fr !important; padding: 15px !important; }
    .hero-section, .journal-section, .showcase-section, .service-card { grid-column: span 1 !important; }
    .showcase-grid { grid-template-columns: 1fr !important; }
}