
/* * VIERDREI GLOBAL STYLES
 * Version: 2.6 (Merged Fix)
 */

:root {
    --bg-color: #050505;
    --card-bg: #0a0a0a;
    --text-color: #f2f2f2;
    --text-muted: #888888;

    --brand-color: #00f3ff; /* Cyan Accent */
    --brand-hover: #00c4ce;
    --accent-color: #666;

    --danger-color: #ff3333;
    --success-color: #00ff66;
    --warning-color: #ffcc00;

    --grid-line: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(10, 10, 10, 0.95);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);

    --font-main: 'Inter', sans-serif;
    --font-tech: 'Space Mono', monospace;

    --header-height: 80px;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);

    /* Z-Index Management Layer */
    --z-bg: -1;
    --z-content: 10;
    --z-header: 1000;
    --z-overlay: 2000;
    --z-debug: 9999;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    padding-top: var(--header-height); /* Fix content jumping */
}

a { color: inherit; text-decoration: none; transition: 0.3s; cursor: pointer; }
a:hover { color: var(--brand-color); }

ul { list-style: none; }
img { max-width: 100%; display: block; }

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: #fff;
}

h1 { font-size: clamp(2rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

.mono-label {
    font-family: var(--font-tech);
    font-size: 0.75rem;
    color: var(--brand-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* =========================================
   LAYOUT & GRID
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: var(--z-content);
}

.section {
    padding: 80px 0;
    border-bottom: 1px solid var(--grid-line);
    position: relative;
}

/* Responsive Grid System */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}

.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

@media (max-width: 900px) {
    .col-4, .col-6, .col-8 { grid-column: span 12; }
    .section { padding: 60px 0; }
}

.mt-lg { margin-top: 4rem; }
.mt-md { margin-top: 2rem; }
.mt-sm { margin-top: 1rem; }
.mb-md { margin-bottom: 2rem; }

/* =========================================
   UI COMPONENTS
   ========================================= */
.btn, .btn-outline, .btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-tech);
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all 0.2s var(--ease);
    text-decoration: none;
}

.btn {
    background: #fff;
    color: #000;
}
.btn:hover {
    background: var(--brand-color);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}
.btn-outline:hover {
    border-color: var(--brand-color);
    color: var(--brand-color);
    background: rgba(0, 243, 255, 0.05);
}

.btn-danger {
    background: transparent;
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
}
.btn-danger:hover {
    background: var(--danger-color);
    color: #fff;
}

.btn-xs {
    padding: 4px 8px;
    font-size: 0.7rem;
    border: 1px solid #333;
    background: #111;
    color: #ccc;
}

/* Inputs */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: #ccc; }

.form-control {
    width: 100%;
    padding: 14px;
    background: #0f0f0f;
    border: 1px solid #333;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: 0.3s;
    border-radius: 4px;
}
.form-control:focus {
    border-color: var(--brand-color);
    background: #151515;
    outline: none;
    box-shadow: 0 0 0 1px var(--brand-color);
}
textarea.form-control { resize: vertical; min-height: 100px; }

/* File Input Custom Styling */
.file-drop-zone {
    border: 2px dashed #333;
    padding: 40px;
    text-align: center;
    background: rgba(255,255,255,0.02);
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}
.file-drop-zone:hover, .file-drop-zone.dragover, .file-drop-zone:focus {
    border-color: var(--brand-color);
    background: rgba(0, 243, 255, 0.05);
    outline: none;
}
.file-drop-zone:focus-visible {
    box-shadow: 0 0 0 4px rgba(0, 243, 255, 0.2);
}
.file-drop-zone:hover, .file-drop-zone.dragover {
    border-color: var(--brand-color);
    background: rgba(0, 243, 255, 0.05);
}
.file-drop-zone input[type="file"] {
    position: absolute; width: 100%; height: 100%; top: 0; left: 0; opacity: 0; cursor: pointer;
}

/* Cards & Content */
.timeline-item, .project-card, .auth-box {
    background: var(--card-bg);
    border: 1px solid #222;
    padding: 0;
    transition: transform 0.3s var(--ease);
}
.timeline-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
.timeline-img, .project-image {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
}
.timeline-content, .project-card h3 { padding: 20px; }

.auth-box { padding: 40px; }

/* =========================================
   HEADER & NAV
   ========================================= */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--grid-line);
    z-index: var(--z-header);
    display: flex;
    align-items: center;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-tech);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.nav-links a {
    margin-left: 30px;
    font-family: var(--font-tech);
    font-size: 0.85rem;
    text-transform: uppercase;
}
.nav-links a.active { color: var(--brand-color); }

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #000;
    z-index: var(--z-overlay);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.4s var(--ease);
}
.mobile-overlay.open { transform: translateY(0); }
.mobile-overlay a { font-size: 2rem; font-weight: bold; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
}

/* =========================================
   DASHBOARD & TABLES
   ========================================= */
.dash-content {
    background: #0a0a0a;
    padding: 2rem;
    border: 1px solid #333;
    min-height: 400px;
}

.dash-nav-btn {
    width: 100%;
    text-align: left;
    margin-bottom: 5px;
    justify-content: flex-start;
}
.dash-nav-btn.active {
    border-color: var(--brand-color);
    color: var(--brand-color);
    background: rgba(0,243,255,0.05);
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.user-table th, .user-table td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #222;
}
.user-table th { color: var(--text-muted); font-family: var(--font-tech); }

/* Tags */
.status-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}
.status-pending { background: rgba(255, 204, 0, 0.1); color: #ffcc00; border: 1px solid #ffcc00; }
.status-approved { background: rgba(0, 255, 102, 0.1); color: #00ff66; border: 1px solid #00ff66; }
.status-rejected { background: rgba(255, 51, 51, 0.1); color: #ff3333; border: 1px solid #ff3333; }

/* =========================================
   UTILITIES
   ========================================= */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Backgrounds */
.bg-layer { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: var(--z-bg); pointer-events: none; }
.background-image { background-image: url('bg-studio.jpg'); background-size: cover; opacity: 0.15; }
.background-overlay { background: radial-gradient(circle at center, transparent 0%, #050505 100%); }
.bg-lines {
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

/* =========================================
   DEBUG CONSOLE (MERGED)
   ========================================= */
.debug-console {
    position: fixed;
    top: calc(var(--header-height) + 10px);
    right: 10px;
    width: 380px;
    background: rgba(5, 5, 5, 0.98);
    border: 1px solid var(--grid-line);
    border-top: 2px solid var(--brand-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    z-index: var(--z-debug);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s var(--ease);
}

.debug-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #111;
    cursor: pointer;
    border-bottom: 1px solid #222;
}

.console-title { font-weight: bold; color: #fff; letter-spacing: 1px; }

.debug-content {
    display: none; /* Default hidden */
    height: 60vh;
    max-height: 600px;
    display: flex;
    flex-direction: column;
}

.debug-content.expanded { display: flex; } /* Toggle via JS */

.debug-nav { display: flex; border-bottom: 1px solid #333; }
.nav-btn {
    flex: 1;
    background: #0a0a0a;
    border: none;
    color: #666;
    padding: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    border-right: 1px solid #222;
}
.nav-btn:hover { color: #fff; }
.nav-btn.active {
    background: #1a1a1a;
    color: var(--brand-color);
    border-bottom: 2px solid var(--brand-color);
}

.debug-tab { display: none; padding: 10px; overflow-y: auto; flex-grow: 1; }
.debug-tab.active { display: block; }

.log-row {
    display: grid;
    grid-template-columns: 60px 1fr 40px;
    gap: 8px;
    padding: 4px 6px;
    border-bottom: 1px solid #1a1a1a;
    cursor: pointer;
}
.log-row:hover { background: #1a1a1a; }
.log-row.status-error { border-left: 3px solid var(--danger-color); background: rgba(255, 0, 0, 0.05); }
.log-row.status-success { border-left: 3px solid var(--success-color); }
.log-meta { display: flex; flex-direction: column; font-size: 10px; color: #666; }
.log-main { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #ccc; }

.inspector-panel {
    position: absolute;
    top: 40px; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.95);
    border-top: 1px solid var(--brand-color);
    padding: 10px;
    display: flex;
    flex-direction: column;
}
.inspector-panel.hidden { display: none; }
.inspector-header { display: flex; justify-content: space-between; margin-bottom: 10px; border-bottom: 1px dashed #444; padding-bottom: 5px; color: var(--brand-color); }
#inspectorContent { overflow: auto; font-family: monospace; color: #00ff66; white-space: pre-wrap; font-size: 11px; }

.sys-row { display: flex; justify-content: space-between; border-bottom: 1px dashed #222; padding: 3px 0; }
.sys-key { color: #666; }
.sys-val { color: #fff; font-weight: bold; }
.full-width { width: 100%; margin-top: 10px; padding: 8px; }
.status-badge.status-ok { color: #00ff66; border: 1px solid #00ff66; }
.status-badge.status-error { color: #ff3333; border: 1px solid #ff3333; }

/* =========================================
   ADMIN UI (MERGED)
   ========================================= */

/* Toggle Switch (Maintenance Mode) */
.switch-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #333;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--danger-color); /* Rot für Maintenance Mode */
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Live Console Overlay */
.console-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none; /* Standardmäßig versteckt */
    justify-content: center;
    align-items: center;
}

.console-overlay.active {
    display: flex;
}

.console-window {
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    background: #050505;
    border: 1px solid #333;
    border-top: 2px solid var(--brand-color);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    font-family: 'Courier New', monospace;
}

.console-header {
    padding: 10px 15px;
    background: #111;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.console-title {
    color: var(--brand-color);
    font-weight: bold;
    letter-spacing: 1px;
}

.console-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    color: #ccc;
    font-size: 13px;
    line-height: 1.4;
}

.log-entry {
    margin-bottom: 4px;
    border-bottom: 1px solid #111;
    padding-bottom: 2px;
    display: flex;
}

.log-time { color: #666; min-width: 140px; }
.log-ip { color: #444; min-width: 110px; }
.log-level { font-weight: bold; min-width: 80px; }

.level-INFO { color: #00f3ff; }
.level-WARNING { color: #ffcc00; }
.level-ERROR { color: #ff3333; }
.level-SYSTEM { color: #00ff66; }

.console-controls {
    padding: 10px;
    background: #111;
    border-top: 1px solid #333;
    display: flex;
    gap: 10px;
}
.admin-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-template-rows: 70px 1fr;
    height: 100vh;
    overflow: hidden;
    background-color: #050505;
}

/* Header (Top Bar) */
.admin-header {
    grid-column: 2;
    grid-row: 1;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--grid-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    backdrop-filter: blur(10px);
}

.admin-header h2 { margin: 0; font-size: 1rem; color: #888; letter-spacing: 2px; }

/* Sidebar */
.admin-sidebar {
    grid-column: 1;
    grid-row: 1 / -1;
    background: #020202;
    border-right: 1px solid var(--grid-line);
    display: flex;
    flex-direction: column;
    padding: 20px;
    z-index: 10;
}

.admin-logo {
    font-family: var(--font-tech);
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 40px;
    padding-left: 10px;
}
.admin-logo span { color: var(--brand-color); }

/* Navigation Items */
.admin-nav-group { margin-bottom: 30px; }
.nav-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #444;
    font-weight: bold;
    margin-bottom: 10px;
    padding-left: 10px;
    letter-spacing: 1px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: none;
    color: #888;
    font-family: var(--font-tech);
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: left;
}

.admin-nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.admin-nav-item.active {
    background: rgba(0, 243, 255, 0.1);
    color: var(--brand-color);
    border: 1px solid rgba(0, 243, 255, 0.2);
}

/* Content Area */
.admin-content {
    grid-column: 2;
    grid-row: 2;
    padding: 30px;
    overflow-y: auto;
    background-image:
        radial-gradient(circle at top right, rgba(0, 243, 255, 0.03) 0%, transparent 40%),
        linear-gradient(to bottom, #050505, #080808);
}

/* Card Style Containers */
.admin-card {
    background: #0f0f0f;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.admin-card h3 {
    margin-top: 0;
    font-size: 1rem;
    color: #fff;
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Artist List styling in Sidebar */
.mini-list {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 10px;
}
.mini-list li button {
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 0.8rem;
}
.mini-list li button:hover, .mini-list li button.active {
    color: var(--brand-color);
}

/* Form Styling Update */
.input-dark {
    background: #050505;
    border: 1px solid #333;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    width: 100%;
    font-family: var(--font-main);
}
.input-dark:focus { border-color: var(--brand-color); outline: none; }

/* Status Indicators */
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.dot-green { background: #00ff66; box-shadow: 0 0 5px #00ff66; }
.dot-red { background: #ff3333; box-shadow: 0 0 5px #ff3333; }
