/* --- LOCAL FONTS (DSGVO COMPLIANT) --- */
/* Wichtig: Schriftdateien müssen in assets/fonts/ liegen! */
@font-face {
    font-family: 'Outfit';
    src: url('../fonts/outfit-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('../fonts/outfit-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('../fonts/outfit-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #f39200;
    --primary-gradient: linear-gradient(135deg, #f39200 0%, #ffb347 100%);
    --secondary-color: #4a5c66;
    --dark-grey: #2c3e50;
    --light-grey: #f8fafc;
    --white: #ffffff;
    --error: #ef4444;
    --success: #10b981;
    --blue: #3d86ad;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--light-grey);
    color: var(--dark-grey);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 32px;
    font-weight: 900;
    color: var(--secondary-color);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary-color);
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.03);
    transition: box-shadow 0.3s ease;
}

.card ul {
    margin: 20px 0;
    padding-left: 25px;
}

.card li {
    margin-bottom: 10px;
    color: #475569;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1e293b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #64748b;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #fdfdfd;
    appearance: none; /* Remove default browser styling */
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234a5c66'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 45px;
}

input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(243, 146, 0, 0.1);
    background: white;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(243, 146, 0, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(243, 146, 0, 0.4);
    filter: brightness(1.05);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(74, 92, 102, 0.2);
}

.btn-secondary:hover {
    background: #3b4a52;
    box-shadow: 0 8px 15px rgba(74, 92, 102, 0.3);
}

.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fee2e2;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #dcfce7;
}

footer {
    margin-top: 80px;
    padding: 60px 0;
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
}

footer p {
    margin-bottom: 10px;
    opacity: 0.8;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.video-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.03);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.video-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}
.pagination a, .pagination span {
    padding: 10px 18px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    transition: all 0.2s;
}
.pagination a:hover {
    background: #f1f5f9;
    border-color: var(--primary-color);
}
.pagination .active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.search-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.tag-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 6px;
    font-size: 11px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-thumb:hover video {
    transform: scale(1.05);
}

.video-info {
    padding: 24px;
}

.video-title {
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.video-meta {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 20px;
}

.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-admin { background: #fee2e2; color: #ef4444; }
.badge-manager { background: #fef3c7; color: #d97706; }
.badge-viewer { background: #dcfce7; color: #16a34a; }

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    padding: 0;
    border-radius: 24px;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.2s;
}

.close-modal:hover {
    background: rgba(0,0,0,0.8);
}

/* Dropzone Styles */
.upload-dropzone {
    border: 2px dashed #e2e8f0;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    position: relative;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
    background: #f1f5f9;
    border-color: var(--primary-color);
}

.upload-dropzone h3 {
    margin: 10px 0 5px 0;
    color: var(--secondary-color);
}

.upload-dropzone p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

/* Enhanced Dropzone Borders */
.upload-dropzone {
    border: 3px dashed #cbd5e1 !important; /* Darker dash */
    background: #fdfdfd;
}

.upload-dropzone.dragover {
    border-color: var(--primary-color) !important;
    background: rgba(243, 146, 0, 0.05) !important;
}

.dropzone-btn {
    display: inline-block;
    background: #e2e8f0;
    color: #475569;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.2s;
}

.upload-dropzone:hover .dropzone-btn {
    background: var(--primary-color);
    color: white;
}
