/* ==========================================================================
   THE BOX DANCE STUDIO - MAIN STYLESHEET (DARK MODE & APPLE GLASS)
   ========================================================================== */

/* --- 1. CSS VARIABLEN (ZUM SCHNELLEN ANPASSEN) --- */
:root {
    /* Farben für Dark Mode */
    --color-bg: #0a0a0c;           /* Sehr tiefes, edles Dunkelgrau/Schwarz */
    --color-text-main: #f5f5f7;    /* Helles Apple-Grau für Texte */
    --color-text-muted: #a0a0a5;   /* Gedimmter Text für Details */
    --color-black: #000000;
    --color-white: #ffffff;
    --color-red: #e60000;
    
    /* Glas-Effekte Dark Mode */
    --glass-bg-dark: rgba(20, 20, 22, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);

    /* Typografie */
    --font-main: 'Inter', sans-serif;
    
    /* Abstände & Layout */
    --spacing-sm: 0.5rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    --max-width: 1200px;

    /* Effekte */
    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-soft: 12px;
    --radius-widget: 24px;
}

/* --- 2. RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* --- 3. TYPOGRAFIE --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
}

.text-red {
    color: var(--color-red);
}

/* --- 4. BUTTONS (Apple Glassmorphism Dark) --- */
.btn-primary {
    display: inline-block;
    background: rgba(230, 0, 0, 0.85); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--color-white);
    padding: 14px 30px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 100px;
    box-shadow: 0 8px 32px rgba(230, 0, 0, 0.25);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary:hover {
    background: rgba(230, 0, 0, 1);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(230, 0, 0, 0.5);
}

.btn-secondary {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--color-white);
    padding: 14px 30px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--glass-highlight);
    border-radius: 100px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* --- 5. HEADER & NAVIGATION (Dark Glass) --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg-dark);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--color-white);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
    color: var(--color-text-main);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-red);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-red);
}

/* --- 6. MOBILE BURGER MENU --- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-white); /* Striche in Weiß */
    transition: var(--transition-fast);
}

/* --- 7. FOOTER --- */
.main-footer {
    background-color: var(--color-black);
    padding: var(--spacing-xl) 20px var(--spacing-md);
    margin-top: var(--spacing-xl);
    border-top: 1px solid #1a1a1a;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-col h3, .footer-col h4 {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.footer-col h4 {
    font-size: 1.1rem;
    border-bottom: 2px solid var(--color-red);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col p, .footer-col address, .footer-col a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-style: normal;
}

.footer-col a:hover {
    color: var(--color-red);
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #1a1a1a;
    padding-top: var(--spacing-md);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* --- 9. HERO SECTION --- */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: -70px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75); /* Etwas dunkler im Dark Mode */
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--color-white);
    padding: 0 20px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: var(--spacing-sm);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-main);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* --- 10. INTRO SECTION --- */
.intro-section {
    padding: var(--spacing-xl) 20px;
    background-color: var(--color-bg);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.intro-text h2 {
    font-size: 3rem;
}

.intro-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-soft);
    box-shadow: 15px 15px 0px var(--color-black);
    transition: transform var(--transition-fast);
}

.intro-image img:hover {
    transform: translate(-5px, -5px);
    box-shadow: 20px 20px 0px var(--color-red);
}

/* --- 12. UNTERSEITEN HEADER --- */
.subpage {
    padding-top: 100px;
    min-height: 80vh;
}

.page-header {
    background-color: #111113; /* Sehr dunkles Grau für Unterseiten-Kopf */
    padding: var(--spacing-xl) 20px;
    text-align: center;
    border-bottom: 1px solid #1f1f22;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

/* --- 13. STUNDENPLAN (Dark Widgets) --- */
.schedule-section {
    padding: var(--spacing-xl) 20px;
}

.location-title {
    font-size: 2rem;
    border-bottom: 3px solid var(--color-text-main);
    padding-bottom: 10px;
    margin-bottom: var(--spacing-md);
    display: inline-block;
}

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

.course-card {
    background: rgba(30, 30, 32, 0.4); /* Dunkles transparentes Glas */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); /* Feine Lichtkante */
    border-radius: var(--radius-widget);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05); 
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    border-color: rgba(230, 0, 0, 0.4); /* Roter Glow bei Hover */
}

.course-time {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.course-name {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--color-white);
}

.course-details {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* --- 14. RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 4rem; }
    .intro-text h2 { font-size: 2.5rem; }
    .intro-grid { gap: var(--spacing-lg); }
}

@media (max-width: 768px) {
    .main-nav {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 15, 17, 0.95); /* Dunkles Glas für Mobile Menü */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
        padding: 30px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all var(--transition-smooth);
    }
    
    .main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        width: 100%;
    }

    .mobile-menu-btn { display: flex; }
    .btn-primary.header-btn { display: none; }
    
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content p { font-size: 1rem; }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary { width: 100%; }
    
    .intro-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .intro-text h2 { font-size: 2.2rem; }
    .intro-image img {
        box-shadow: 10px 10px 0px var(--color-black);
        margin-top: 20px;
    }
    
    .page-header h1 { font-size: 2.5rem; }
}
