/* ================================================================
   MEDIENHILFE24 - OPTIMIERTE CSS-DATEI
   Alle drei CSS-Dateien konsolidiert und Flexbox-Problem gelöst
   ================================================================ */

/* ================================================================
   1. CSS RESET UND BASIS-STYLES
   ================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    font-size: 18px;
    padding: 0;
    margin: 0;
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

.hidden {
    display: none !important;
}

/* ================================================================
   2. HEADER UND LOGO
   ================================================================ */
.header {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    color: white;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: bold;
}

.header p {
    font-size: 18px;
    opacity: 0.9;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B5E20;
    font-size: 24px;
}

/* Login-spezifisches Logo */
.logo-icon.login {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border-radius: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B5E20;
    font-size: 24px;
}

/* ================================================================
   3. NAVIGATION UND BUTTONS
   ================================================================ */
.navigation {
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-button {
    background: #333;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-button:hover {
    background: #1B5E20;
    transform: translateY(-2px);
}

.breadcrumb {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #1B5E20;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ================================================================
   4. HAUPT-BUTTONS UND KATEGORIEN
   ================================================================ */
.main-button {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 25px;
    margin: 15px 0;
    font-size: 22px;
    font-weight: bold;
    text-align: left;
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(27, 94, 32, 0.3);
    min-height: 80px;
}

.main-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(27, 94, 32, 0.4);
}

.button-icon {
    font-size: 32px;
    width: 50px;
    text-align: center;
}

.button-content {
    flex: 1;
}

.button-title {
    font-size: 22px;
    margin-bottom: 5px;
}

.button-description {
    font-size: 16px;
    opacity: 0.9;
    font-weight: normal;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 5px solid #1B5E20;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.sub-button {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 20px;
    margin: 12px 0;
    font-size: 18px;
    text-align: left;
    background: white;
    color: #333;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sub-button:hover {
    border-color: #1B5E20;
    background: #f8f9fa;
    transform: translateX(5px);
}

/* ================================================================
   5. LIZENZ-EINGABE UND FORMULARE
   ================================================================ */
.input-group {
    margin: 20px 0;
    text-align: center;
}

.input-group label {
    display: block;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.license-input {
    width: 300px;
    padding: 20px;
    font-size: 24px;
    text-align: center;
    border: 3px solid #ddd;
    border-radius: 12px;
    margin: 10px;
    letter-spacing: 3px;
    font-weight: bold;
}

.license-input:focus {
    outline: none;
    border-color: #1B5E20;
    box-shadow: 0 0 10px rgba(27, 94, 32, 0.3);
}

.submit-button {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    margin: 20px 10px;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(27, 94, 32, 0.4);
}

/* ================================================================
   6. VIDEO-PLAYER UND CONTROLS (FLEXBOX-PROBLEM GELÖST!)
   ================================================================ */
.video-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.video-title {
    font-size: 24px;
    font-weight: bold;
    color: #1B5E20;
    margin-bottom: 20px;
    text-align: center;
}

.video-iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ✅ FLEXBOX-PROBLEM DEFINITIV GELÖST! */
.video-controls {
    display: flex !important;
    gap: 20px !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    margin-top: 15px !important;
    padding: 15px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    border: 1px solid #dee2e6 !important;
}

.video-controls .nav-button {
    flex: 1 !important;
    min-width: 160px !important;
    max-width: 220px !important;
    margin: 0 !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
}

.video-controls .nav-button:first-child {
    background-color: #6c757d !important;
    color: white !important;
}

.video-controls .nav-button:last-child {
    background-color: #1B5E20 !important;
    color: white !important;
}

.video-controls .nav-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* ================================================================
   7. VIDEO-LISTE UND ITEMS
   ================================================================ */
.video-list {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.video-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.video-item:hover {
    border-color: #1B5E20;
    background: #f8f9fa;
    transform: translateY(-2px);
}

.video-thumbnail {
    width: 120px;
    height: 80px;
    background: #1B5E20;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.video-info {
    flex: 1;
}

.video-info h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.video-info p {
    color: #666;
    font-size: 16px;
}

/* ================================================================
   8. STATUS-MELDUNGEN UND FEEDBACK
   ================================================================ */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #f5c6cb;
    text-align: center;
    font-size: 18px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #c3e6cb;
    text-align: center;
    font-size: 18px;
}

.status-message {
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.status-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.status-warning {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffeaa7;
}

.status-grace {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.status-blocked {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

/* ================================================================
   9. ZUSÄTZLICHE KOMPONENTEN
   ================================================================ */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1B5E20;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.offline-banner {
    background: #ff9800;
    color: white;
    padding: 10px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

/* ================================================================
   10. RESPONSIVE DESIGN FÜR TABLETS UND MOBILE
   ================================================================ */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .main-button {
        font-size: 20px;
        padding: 20px;
    }
    
    .license-input {
        width: 250px;
        font-size: 20px;
    }
    
    /* Mobile Optimierung für Video-Controls */
    .video-controls {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .video-controls .nav-button {
        width: 100% !important;
        max-width: none !important;
        padding: 15px 20px !important;
        font-size: 18px !important;
    }
}

/* ================================================================
   ENDE DER OPTIMIERTEN CSS-DATEI
   Performance: 66% weniger HTTP-Requests
   Wartbarkeit: Alle Styles in einer Datei
   Flexbox-Problem: Definitiv gelöst!
   ================================================================ */
