/**
 * CockpitOS Light Theme - Widget Header Component
 * 
 * Verantwortlichkeit: Gemeinsame Header-Struktur für alle Widgets
 * Verwendet von: Contact, Rental, Intro, Highlight Box, etc.
 * 
 * @package CockpitOS_MEC_Light_Theme
 * @version 1.0.0
 */

/* ========================================
   Widget Header (Gemeinsame Basis)
   ======================================== */

.cockpit-widget-header {
    text-align: center;
    margin-bottom: 60px;
}

/* ========================================
   Eyebrow Text
   ======================================== */

.cockpit-widget-eyebrow {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary, #dc2626) !important;
    margin-bottom: 12px;
    display: block;
}

/* ========================================
   Title
   ======================================== */

/* Widget Title nutzt globale Heading-Styles */
.cockpit-widget-title {
    /* Nutzt globale Heading-Styles (h1-h6) */
    /* font-size, font-weight, text-transform werden von h1-h6 geerbt */
    margin-bottom: var(--spacing-md);
    color: var(--color-accent, var(--color-primary-dark));
}

/* Sicherstellen, dass alle Heading-Tags innerhalb von .cockpit-widget-title die globalen Styles nutzen */
.cockpit-widget-title h1,
.cockpit-widget-title h2,
.cockpit-widget-title h3,
.cockpit-widget-title h4,
.cockpit-widget-title h5,
.cockpit-widget-title h6 {
    margin: 0;
    margin-bottom: 0; /* Überschreibt globale margin-bottom */
    /* font-size, font-weight, text-transform werden von globalen h1-h6 Styles geerbt */
    color: inherit;
}

/* Fallback für div-Tags (falls title_tag = 'div' verwendet wird) */
.cockpit-widget-title:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-4xl); /* Standard: h2 Größe */
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent, var(--color-primary-dark));
}

/* ========================================
   Description
   ======================================== */

.cockpit-widget-description {
    font-size: 1.125rem !important;
    color: #6b7280 !important;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.cockpit-widget-description p {
    margin: 0 0 1rem 0;
}

.cockpit-widget-description p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
    .cockpit-widget-title {
        font-size: 2rem !important;
    }
}

@media (max-width: 768px) {
    .cockpit-widget-header {
        margin-bottom: 40px;
    }
    
    .cockpit-widget-title {
        font-size: 1.75rem !important;
    }
    
    .cockpit-widget-description {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .cockpit-widget-title {
        font-size: 1.5rem !important;
    }
}

