/* FBM Header Premium - Frontend Styles */
/* IDENTISCH zum Journal-System */

/* ===== HEADER - ORIGINAL JOURNAL STYLE ===== */
.fbm-journal-header {
    background: #2d5be3;
    color: white;
    padding: 40px 30px;
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

/* Dynamische Farben werden über Inline-Styles gesetzt */
.fbm-journal-header[style*="background"] {
    /* Inline-Styles haben Vorrang über CSS */
}

.fbm-journal-header-content {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.fbm-journal-header-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* FontAwesome Icons */
.fbm-journal-header-icon i {
    color: white;
    transition: all 0.3s ease;
    font-size: 2.5rem;
    line-height: 1;
}

/* Dynamische Icon-Container-Farben */
.fbm-journal-header[style*="background"] .fbm-journal-header-icon {
    background: rgba(255, 255, 255, 0.2);
}

/* Für dunkle Hintergründe */
.fbm-journal-header[style*="background: #"] .fbm-journal-header-icon {
    background: rgba(255, 255, 255, 0.2);
}

/* Für helle Hintergründe */
.fbm-journal-header[style*="background: #fff"] .fbm-journal-header-icon,
.fbm-journal-header[style*="background: #f"] .fbm-journal-header-icon {
    background: rgba(0, 0, 0, 0.1);
}

/* Icon-Container-Größe wird über Inline-Styles gesetzt */
.fbm-journal-header-icon[style*="width"] {
    /* Inline-Styles haben Vorrang */
}

.fbm-journal-header-text h1 {
    margin: 0 0 8px 0;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.1;
    color: white !important;
}

.fbm-journal-header-text .subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    margin: 0;
    line-height: 1.4;
    color: white !important;
}

/* Dynamische Textfarben werden über Inline-Styles gesetzt */
.fbm-journal-header[style*="color"] .fbm-journal-header-text h1,
.fbm-journal-header[style*="color"] .fbm-journal-header-text .subtitle,
.fbm-journal-header[style*="color"] .fbm-journal-header-greeting {
    color: inherit !important;
}

/* Zusätzlicher Content */
.fbm-journal-header-additional-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 0 0 12px 12px;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.fbm-journal-header-additional-content p {
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.fbm-journal-header-additional-content p:last-child {
    margin-bottom: 0;
}

/* Benachrichtigungen */
.fbm-journal-header-notifications {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 0 0 12px 12px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.fbm-journal-header-notifications p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Begrüßung */
.fbm-journal-header-greeting {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .fbm-journal-header {
        padding: 20px;
    }
    
    .fbm-journal-header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .fbm-journal-header-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    /* Icon-Container-Größe für mobile Geräte anpassen */
    .fbm-journal-header-icon[style*="width"] {
        /* Inline-Styles haben Vorrang, aber responsive Anpassungen */
        min-width: 50px;
        min-height: 50px;
        max-width: 100px;
        max-height: 100px;
    }
    
    .fbm-journal-header-text h1 {
        font-size: 2rem;
    }
    
    .fbm-journal-header-text .subtitle {
        font-size: 1.1rem;
    }
    
    .fbm-journal-header-greeting {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .fbm-journal-header {
        padding: 15px;
    }
    
    .fbm-journal-header-content {
        gap: 15px;
    }
    
    .fbm-journal-header-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .fbm-journal-header-icon i {
        font-size: 1.5rem;
    }
    
    /* Icon-Container-Größe für sehr kleine Bildschirme anpassen */
    .fbm-journal-header-icon[style*="width"] {
        /* Inline-Styles haben Vorrang, aber responsive Anpassungen */
        min-width: 40px;
        min-height: 40px;
        max-width: 80px;
        max-height: 80px;
    }
    
    .fbm-journal-header-text h1 {
        font-size: 1.75rem;
    }
    
    .fbm-journal-header-text .subtitle {
        font-size: 1rem;
    }
    
    .fbm-journal-header-greeting {
        font-size: 0.9rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.fbm-journal-header {
    animation: fadeIn 0.6s ease-out;
}

.fbm-journal-header-icon {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.fbm-journal-header-text {
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.fbm-journal-header-additional-content {
    animation: fadeIn 0.8s ease-out 0.6s both;
}

.fbm-journal-header-notifications {
    animation: fadeIn 0.8s ease-out 0.8s both;
}

/* Hover-Effekte */
.fbm-journal-header:hover .fbm-journal-header-icon {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.3);
}

/* Focus-States für Accessibility */
.fbm-journal-header:focus-within {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}