/* --- MODERN NAVY THEME (COMPLETE) --- */
:root {
    --bg-body: #0f172a;       /* Midnight Navy */
    --bg-card: #1e293b;       /* Card Navy */
    --bg-input: #0f172a;      /* Input Dark */
    --border-color: #334155;  /* Border Blue-Grey */
    --text-main: #f1f5f9;     /* White-ish */
    --text-label: #94a3b8;    /* Label Grey */
    --primary-grad-start: #3b82f6; 
    --primary-grad-end: #2563eb;   
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

/* --- LOGO --- */
.logo-container {
    text-align: center;
    margin-bottom: 25px;
}
.site-logo {
    max-height: 80px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
}

/* --- MAIN CONTAINER --- */
.main-container, .form-container {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 550px;
    position: relative;
}
.admin-wide { max-width: 1000px; }

h1, h2, h3, h4 { 
    color: var(--text-main); 
    text-align: center; 
    margin-top: 0; 
    font-weight: 700;
}

/* --- INPUTS & SELECTS (Pfeil verschoben) --- */
input, select {
    width: 100%;
    padding: 14px 16px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
}
input { background-image: none; }
input:focus, select:focus {
    outline: none;
    border-color: var(--primary-grad-start);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

label { 
    display: block; 
    margin-top: 20px; 
    margin-bottom: 8px;
    color: var(--text-label); 
    font-size: 0.75rem; 
    font-weight: 700;  
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
}

/* --- BUTTONS ALLGEMEIN --- */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-grad-start), var(--primary-grad-end));
    color: white;
    border: none;
    padding: 16px;
    margin-top: 35px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.submit-btn:hover { opacity: 0.95; box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4); }

.back-link { display: block; margin-top: 25px; text-align: center; text-decoration: none; color: var(--text-label); font-size: 0.9rem; }
.back-link:hover { color: white; text-decoration: underline; }

/* --- GLOBAL: HR AUSBLENDEN (Standard) --- */
hr { display: none; border: none; }
.step-box h4 { border-bottom: none !important; margin-bottom: 5px; }

/* --- ADMIN SPECIFIC --- */
.step-container { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; margin-bottom: 20px; }
.step-box { background: var(--bg-input); padding: 15px; border-radius: 8px; border: 1px solid var(--border-color); }
.or-divider { text-align: center; margin: 15px 0; font-size: 0.7rem; color: var(--text-label); font-weight: 800; }

.search-wrapper { display: flex; gap: 10px; margin-bottom: 20px; }
.filter-select { width: 30% !important; margin-top: 0; }
.search-bar { width: 70% !important; margin: 0 !important; }

table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 10px; color: #cbd5e1; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
th { background: #0f172a; padding: 15px; text-align: left; color: white; font-size: 0.8rem; text-transform: uppercase; border-bottom: 1px solid var(--border-color); }
td { padding: 15px; border-bottom: 1px solid var(--border-color); font-size: 0.9rem; background: var(--bg-card); }
tr:last-child td { border-bottom: none; }
.delete-btn { background: #ef4444; color: white; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; }

/* --- DASHBOARD SPECIFIC (Das was du wolltest) --- */
.section-title {
    color: var(--text-label);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px !important;
}

/* Sichtbare Trennlinie nur im Dashboard */
hr.dashboard-divider {
    display: block !important;
    border: none;
    border-top: 1px solid var(--border-color);
    opacity: 0.5;
    margin-top: 50px !important;
    margin-bottom: 30px !important;
}

.grid-buttons-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.btn-large {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    height: 120px;
    text-decoration: none;
    font-size: 1.1rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-icon { width: 36px; height: 36px; margin-bottom: 10px; fill: white; }

/* BLAUE BUTTONS (Daily) */
.btn-daily {
    background: rgba(37, 99, 235, 0.15) !important;
    border: 1px solid rgba(59, 130, 246, 0.6) !important;
}
.btn-daily:hover {
    background: rgba(37, 99, 235, 0.25) !important;
    border-color: #60a5fa !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4) !important;
}

/* DUNKLE BUTTONS (Weekly) */
.btn-weekly {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid var(--border-color) !important;
}
.btn-weekly:hover {
    background: var(--bg-card) !important;
    border-color: var(--text-label) !important;
    transform: translateY(-3px);
}

.hidden { display: none; }
@media (max-width: 600px) { .step-container, .grid-buttons-split { grid-template-columns: 1fr; } .search-wrapper { flex-direction: column; } .filter-select, .search-bar { width: 100% !important; } }

/* --- PLATFORM LOGOS IN HEADINGS --- */

/* Container für Icon + Überschrift */
.heading-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Abstand zwischen Logo und Text */
    margin-bottom: 30px; /* Abstand nach unten zum Formular */
    margin-top: -10px; /* Etwas näher ans Hauptlogo rücken */
}

/* Damit die Überschrift im Wrapper perfekt mittig sitzt */
.heading-wrapper h2 {
    margin: 0; 
    /* Optional: Falls du die Überschrift größer willst */
    /* font-size: 1.8rem; */ 
}

/* Styling für das Plattform-Icon in der Überschrift */
.platform-icon {
    width: 34px;
    height: 34px;
    fill: var(--text-main); /* Nimmt die weiße Textfarbe an */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); /* Leichter Schatten für Tiefe */
}

/* --- VIDEO TUTORIAL STYLES --- */

.video-btn {
    background: transparent;
    border: 1px solid var(--primary-grad-start); /* Blauer Rand */
    color: var(--primary-grad-start); /* Blaue Schrift */
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.video-btn:hover {
    background: rgba(59, 130, 246, 0.1); /* Leichter blauer Hintergrund beim Hover */
    transform: translateY(-2px);
}

/* Der Container für das Video (Standardmäßig versteckt) */
.video-wrapper {
    display: none; /* WICHTIG: Versteckt */
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

/* Klasse zum Anzeigen (wird per JS hinzugefügt) */
.video-wrapper.open {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* Kleines Icon im Button */
.icon-small { width: 18px; height: 18px; fill: currentColor; }