/* ============================================================
   main.css – STO YouTube-Begleitseite
   Dark Space Theme – reines CSS, kein Framework
   ============================================================ */

/* --- CSS-Variablen (einfach anpassen) --- */
:root {
    --bg-base:        #1e1e2e;
    --bg-dark:        #16213e;
    --bg-card:        #252535;
    --bg-nav:         #151512;

    --accent:         #ce9b3e;
    --accent-hover:   #81d4fa;
    --accent-dim:     rgba(79, 195, 247, 0.15);

    --text-body:      #c9d1d9;
    --text-heading:   #e6edf3;
    --text-muted:     #8b949e;
    --text-link:      #4fc3f7;

    --border:         rgba(196, 158, 92, 0.12);
    --border-strong:  rgba(196, 158, 92, 0.3);

    --sidebar-width:  220px;
    --header-height:  280px;

    --radius:         4px;
    --transition:     0.2s ease;
}

/* --- Reset & Basis --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
 
html {
    font-size: 16px;
    scroll-behavior: smooth;
}
 
body {
    background-color: var(--bg-base);
    color: var(--text-body);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
 
a {
    color: var(--text-link);
    text-decoration: none;
    transition: color var(--transition);
}
 
a:hover {
    color: var(--accent-hover);
}
 
ul {
    list-style: none;
}
 
/* ============================================================
   NAVIGATION
   ============================================================ */
.main-nav {
    background-color: var(--bg-nav);
    border-bottom: 1px solid var(--border-strong);
    position: sticky;
    top: 0;
    z-index: 100;
}
 
.nav-list {
    display: flex;
    align-items: stretch;
    width: 100%;
    padding: 0 1.5rem;
}
 
.nav-item {
    position: relative;
}
 
.nav-item > a {
    display: block;
    padding: 0.9rem 1.1rem;
    color: var(--text-body);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}
 
.nav-item > a:hover,
.nav-item:hover > a {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
 
/* Dropdown */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-strong);
    border-top: 2px solid var(--accent);
    z-index: 200;
}
 
.nav-item:hover .dropdown {
    display: block;
}
 
.dropdown li a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text-body);
    font-size: 0.875rem;
    border-left: 2px solid transparent;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}
 
.dropdown li a:hover {
    background-color: var(--accent-dim);
    border-left-color: var(--accent);
    color: var(--accent-hover);
}
 
/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    height: var(--header-height);
    background-color: var(--bg-dark);
    background-image: url('../images/space-bg.jpg'); /* dein Weltraum-Wallpaper */
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* Parallax-Effekt: Hintergrund scrollt nicht mit */
    position: relative;
    border-bottom: 2px solid var(--accent);
    overflow: hidden;
}
 
/* Charakter-Diashow Container */
.header-logo {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    width: auto;
    z-index: 2;
}

.char-slide {
    position: absolute;
    bottom: 0;
    right: 439px;  /* genau die Logo-Breite */
    height: 100%;
    width: auto;
    object-fit: contain;
    object-position: bottom;
}
 
/* Einzelne Charakterbilder */
.char-slide {
    position: absolute;
    bottom: 0;
    right: 5%;        /* Charaktere rechts im Header positioniert */
    height: 100%;     /* volle Header-Höhe */
    width: auto;      /* Seitenverhältnis bleibt erhalten */
    object-fit: contain;
    object-position: bottom;
}
 
.header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(20, 20, 20, 0.85) 0%,
        rgba(20, 20, 20, 0.4) 25%,
        rgba(20, 20, 20, 0.0) 500%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem 2.5rem;
}
 
.site-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: 0.06em;
    text-shadow: 0 0 20px rgba(79, 195, 247, 0.4);
}
 
.site-tagline {
    font-size: 0.9rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.3rem;
    opacity: 0.85;
}
 
/* ============================================================
   LAYOUT WRAPPER (Sidebar + Content)
   ============================================================ */
.layout-wrapper {
    display: flex;
    flex: 1;
    width: 100%;
    padding: 1.5rem;
    gap: 1.5rem;
    align-items: flex-start;
}
 
/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
 
.sidebar-block {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    padding: 1rem;
}
 
.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}
 
.sidebar-user {
    font-size: 0.875rem;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}
 
.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
 
.sidebar-links a {
    font-size: 0.875rem;
    color: var(--text-body);
    padding: 0.2rem 0;
    border-left: 2px solid transparent;
    padding-left: 0.5rem;
    transition: color var(--transition), border-color var(--transition);
}
 
.sidebar-links a:hover {
    color: var(--accent-hover);
    border-left-color: var(--accent);
}
 
/* Login-Formular */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
 
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
 
.form-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
 
.form-group input {
    background-color: var(--bg-base);
    border: 1px solid var(--border-strong);
    color: var(--text-body);
    padding: 0.4rem 0.6rem;
    font-size: 0.875rem;
    border-radius: var(--radius);
    outline: none;
    transition: border-color var(--transition);
    width: 100%;
}
 
.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-dim);
}
 
.btn-login {
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: var(--radius);
    transition: background-color var(--transition), color var(--transition);
    margin-top: 0.2rem;
}
 
.btn-login:hover {
    background-color: var(--accent);
    color: var(--bg-dark);
}
 
/* ============================================================
   HAUPTINHALT
   ============================================================ */
.main-content {
    flex: 1;
    min-width: 0;
}
 
.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
 
.main-content p {
    margin-bottom: 1rem;
    color: var(--text-body);
}
 
.main-content h3 {
    color: var(--text-heading);
    margin: 1.5rem 0 0.5rem;
}
 
/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-strong);
    margin-top: auto;
}
 
.footer-inner {
    width: 100%;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
 
.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}
 
.footer-links {
    display: flex;
    gap: 1.25rem;
}
 
.footer-links a {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color var(--transition);
}
 
.footer-links a:hover {
    color: var(--accent);
}
 
/* ============================================================
   RESPONSIVE (einfache Mobile-Anpassung)
   ============================================================ */
@media (max-width: 768px) {
    .layout-wrapper {
        flex-direction: column;
        padding: 1rem;
    }
 
    .sidebar {
        width: 100%;
    }
 
    .nav-list {
        flex-wrap: wrap;
        padding: 0 0.5rem;
    }
 
    .nav-item > a {
        padding: 0.7rem 0.7rem;
        font-size: 0.8rem;
    }
 
    .site-title {
        font-size: 1.4rem;
    }
 
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}