/* ===================================
   DISCO SWING - Modern Homepage CSS
   =================================== */

/* CSS Variables - Farben basierend auf Logo und Discokugel */
:root {
    --primary: #4a6fa5;
    --primary-dark: #2e4a7a;
    --primary-light: #a8c5e8;
    --primary-medium: #6a8fc5;
    --secondary: #3d5a8f;
    --accent: #6a8fc5; /* Mittelblau statt Orange - Discokugel-Farbe */
    --accent-light: #a8c5e8; /* Hellblau - Discokugel-Farbe */
    --dark: #1a1a2e;
    --dark-light: #16213e;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --white: #ffffff;
    --light: #f5f5f5;
    --gray: #e0e0e0;
    
    --gradient-primary: linear-gradient(135deg, #a8c5e8 0%, #6a8fc5 25%, #4a6fa5 50%, #3d5a8f 75%, #2e4a7a 100%);
    --gradient-accent: linear-gradient(135deg, #6a8fc5 0%, #4a6fa5 25%, #3d5a8f 50%, #2e4a7a 75%, #1e3a5f 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    --shadow-primary: 0 4px 20px rgba(74, 111, 165, 0.3);
    --shadow-accent: 0 4px 20px rgba(106, 143, 197, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    --transition: all 0.15s ease; /* Schneller für bessere Performance */
    --transition-slow: all 0.25s ease; /* Schneller */
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 150px;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    max-width: 100vw;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Wenn Container innerhalb einer Sektion mit 80% Breite ist, nutze 100% */
.events .container,
.rooms .container,
.courses .container,
.team .container,
.location .container,
.advertisement .container {
    max-width: 100%;
    width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.highlight {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    text-transform: none;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #a8c5e8 0%, #6a8fc5 25%, #4a6fa5 50%, #6a8fc5 75%, #a8c5e8 100%);
    background-size: 200% 200%;
    animation: gradientMove1 3s ease infinite;
    color: var(--white);
    border-color: #6a8fc5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(106, 143, 197, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #a8c5e8 0%, #6a8fc5 25%, #4a6fa5 50%, #6a8fc5 75%, #a8c5e8 100%);
    background-size: 200% 200%;
    animation: gradientMove2 3.5s ease infinite;
    color: var(--white);
    border-color: #6a8fc5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #6a8fc5 0%, #4a6fa5 25%, #2e4a7a 50%, #4a6fa5 75%, #6a8fc5 100%);
    color: var(--white);
    border-color: #4a6fa5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 143, 197, 0.4);
}

.global-audio-toggle {
    position: fixed;
    right: 16px;
    bottom: 96px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 2px solid #ffffff;
    border-radius: 10px;
    background: rgba(12, 22, 38, 0.88);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}

.global-audio-toggle.is-on {
    border-color: #7cfc00;
    color: #7cfc00;
}

.rooms-grid .room-card:first-child .room-content {
    position: relative;
}

.global-audio-toggle.in-rooms {
    position: absolute;
    top: 14px;
    right: 14px;
    bottom: auto;
    z-index: 20;
}

.btn-outline {
    background: linear-gradient(135deg, rgba(60, 60, 60, 0.9) 0%, rgba(80, 80, 80, 0.9) 50%, rgba(60, 60, 60, 0.9) 100%);
    background-size: 200% 200%;
    animation: gradientMove3 4s ease infinite;
    color: var(--white);
    border-color: rgba(100, 100, 100, 0.5);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(80, 80, 80, 0.95);
    color: var(--white);
    border-color: rgba(120, 120, 120, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-white {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 50%, #ffffff 100%);
    background-size: 200% 200%;
    animation: gradientMove4 2.5s ease infinite;
    color: var(--dark);
}

.btn-white:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 100%);
    background-size: 200% 200%;
    animation: gradientMove5 3.2s ease infinite;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--dark);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.light .section-title,
.section-header.light .section-description {
    color: var(--white);
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #a8c5e8 50%, #6a8fc5 100%);
    color: var(--primary-dark);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(106, 143, 197, 0.2);
}

.section-header.light .section-tag {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.section-title {
    margin-bottom: 16px;
}

.section-description {
    max-width: 990px; /* 10% breiter: 900px * 1.1 = 990px */
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ===================================
   NAVIGATION
   =================================== */
/* ===================================
   HEADER / NAVBAR
   =================================== */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 80% !important;
    height: auto; /* Dynamische Höhe basierend auf Logo + Navigation */
    min-height: auto; /* Keine minimale Höhe - vollständig dynamisch */
    z-index: 1000 !important;
    padding: 0;
    transition: none; /* Keine Transition für dynamische Höhe */
    background: linear-gradient(135deg, #4a6fa5 0%, #3d5a8f 25%, #2e4a7a 50%, #1e3a5f 75%, #162d4f 100%) !important;
    background-color: #1e3a5f !important;
    background-attachment: fixed !important;
    box-shadow: var(--shadow-md);
    overflow: visible;
    opacity: 1 !important;
    display: flex;
    flex-direction: column; /* Logo oben, Navigation darunter */
}

.navbar.scrolled {
    height: auto; /* Dynamische Höhe bleibt erhalten */
    background: linear-gradient(135deg, #4a6fa5 0%, #3d5a8f 25%, #2e4a7a 50%, #1e3a5f 75%, #162d4f 100%) !important;
    background-color: #1e3a5f !important;
    background-attachment: fixed !important;
    box-shadow: var(--shadow-md);
    opacity: 1 !important;
}

/* Discokugel - innerhalb nav-logo, neben dem Logo */
/* Discokugel - oben rechts im Header (Desktop) */
.header-disco-ball {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    height: auto;
    max-width: 200px; /* Maximale Breite verhindert riesige Discokugel */
    max-height: 200px; /* Maximale Höhe verhindert riesige Discokugel */
    object-fit: contain;
    z-index: 1001;
    transition: all 0.4s ease;
    filter: drop-shadow(0 10px 20px rgba(74, 111, 165, 0.3));
    animation: rotate 20s linear infinite, float 6s ease-in-out infinite;
}

.disco-ball-fallback-header {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    height: auto;
    max-width: 200px; /* Maximale Breite verhindert riesige Discokugel */
    max-height: 200px; /* Maximale Höhe verhindert riesige Discokugel */
    aspect-ratio: 1;
    background: radial-gradient(circle at 30% 30%, #fff 0%, #a8c5e8 20%, #6a8fc5 40%, #4a6fa5 60%, #2e4a7a 100%);
    border-radius: 50%;
    animation: rotate 20s linear infinite, float 6s ease-in-out infinite, sparkle 3s ease-in-out infinite;
    z-index: 1000;
    box-shadow: 0 0 60px rgba(74, 111, 165, 0.5), inset 0 0 100px rgba(255, 255, 255, 0.3);
    display: none;
}

/* Mobile Discokugel auf Desktop verstecken */
.nav-logo .header-disco-ball-mobile,
.nav-logo .disco-ball-fallback-header-mobile {
    display: none !important;
}

/* Navigation - direkt unter dem Logo (dynamisch positioniert) */
.nav-container {
    position: relative; /* Relativ zum Navbar-Container */
    top: auto; /* Keine absolute Positionierung - folgt dem Logo */
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none; /* Keine Transition für dynamische Position */
    background: linear-gradient(135deg, #4a6fa5 0%, #3d5a8f 25%, #2e4a7a 50%, #1e3a5f 75%, #162d4f 100%) !important;
    background-color: #1e3a5f !important;
    opacity: 1 !important;
    flex-shrink: 0; /* Verhindert Schrumpfen */
}

.navbar.scrolled .nav-container {
    /* Position bleibt gleich, wird per JavaScript gesetzt */
}

/* Logo - oberhalb der nav-container, zentriert, dynamische Breite */
.nav-logo {
    position: relative !important; /* Relativ zum Navbar-Container */
    top: auto !important;
    left: auto !important;
    transform: none !important;
    height: auto !important;
    width: 63.53vw !important;
    max-width: 63.53vw !important;
    margin: 0 auto !important; /* Zentriert durch margin auto */
    z-index: 1002 !important;
    display: block !important; /* Block für Desktop */
    padding: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: none; /* Keine Transition für dynamische Größe */
    flex-shrink: 0; /* Verhindert Schrumpfen */
}

.nav-logo .logo-img {
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    object-fit: contain;
    object-position: top center !important;
    transition: all 0.4s ease;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    filter: invert(1);
    box-sizing: border-box;
}

.nav-logo .logo-img-mobile {
    display: none !important;
}

/* Logo Slider für Mobile - ENTFERNT, nicht mehr verwendet */
.logo-slider-mobile {
    display: none !important;
}

/* Mobile Logo - doppelt so groß und permanent von links nach rechts animiert */
/* Erste Mobile Media Query - wird von späterer Media Query überschrieben */
@media (max-width: 768px) {
    /* Desktop Discokugel oben rechts verstecken */
    .header-disco-ball {
        display: none !important;
    }
    
    .disco-ball-fallback-header {
        display: none !important;
    }
    
    .nav-logo {
        width: auto !important;
        max-width: 60% !important;
        overflow: visible !important; /* Wichtig: Discokugel muss sichtbar sein */
        position: relative;
        display: flex !important;
        align-items: center !important; /* Vertikal zentrieren */
        justify-content: flex-start;
        gap: 10px !important; /* Abstand zwischen Discokugel und Logo */
    }
    
    .nav-logo .logo-img {
        display: none !important;
    }
    
    /* Mobile Discokugel in nav-logo anzeigen */
    .nav-logo .header-disco-ball-mobile {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        width: auto !important;
        height: auto !important;
        max-width: 60px !important;
        max-height: 60px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        z-index: 1001 !important;
        flex-shrink: 0 !important;
        order: -1 !important; /* Vor dem Logo anzeigen */
        animation: rotate 20s linear infinite, float 6s ease-in-out infinite;
        filter: drop-shadow(0 10px 20px rgba(74, 111, 165, 0.3));
    }
    
    .nav-logo .disco-ball-fallback-header-mobile {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        width: 60px !important;
        height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
        aspect-ratio: 1;
        background: radial-gradient(circle at 30% 30%, #fff 0%, #a8c5e8 20%, #6a8fc5 40%, #4a6fa5 60%, #2e4a7a 100%);
        border-radius: 50%;
        animation: rotate 20s linear infinite, float 6s ease-in-out infinite, sparkle 3s ease-in-out infinite;
        z-index: 1000 !important;
        box-shadow: 0 0 60px rgba(74, 111, 165, 0.5), inset 0 0 100px rgba(255, 255, 255, 0.3);
        flex-shrink: 0 !important;
        order: -1 !important; /* Vor dem Logo anzeigen */
    }
}

.nav-logo .logo-text-fallback {
    display: none;
}


.logo-text-fallback {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
    display: none;
}

.navbar.scrolled .logo-text-fallback {
    color: var(--dark);
}

/* Logo wird angezeigt wenn Bild nicht geladen */
.logo-img:not([src]),
.logo-img[src=""],
.logo-img[src*="logo.png"]:not([src]) {
    display: none;
}

.logo-img:not([src]) ~ .logo-text-fallback,
.logo-img[src=""] ~ .logo-text-fallback {
    display: inline-block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-link {
    padding: 10px 18px;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.navbar.scrolled .nav-link {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.nav-link:hover {
    background: rgba(74, 111, 165, 0.1);
    color: var(--primary);
}

.nav-link.btn-primary:hover {
    background: linear-gradient(135deg, #ff8c00 0%, #ff7f00 25%, #e67300 50%, #ff7f00 75%, #ff8c00 100%) !important;
    color: var(--white) !important;
}

.navbar.scrolled .nav-link:hover {
    background: var(--light);
    color: var(--primary);
}

.navbar.scrolled .nav-link.btn-primary:hover {
    background: linear-gradient(135deg, #ff8c00 0%, #ff7f00 25%, #e67300 50%, #ff7f00 75%, #ff8c00 100%) !important;
    color: var(--white) !important;
}

.nav-link.btn-primary {
    background: linear-gradient(135deg, #ff9800 0%, #ff8c00 30%, #ff7f00 60%, #e67300 100%) !important;
    background-size: 200% 200% !important;
    animation: gradientMove6 2.8s ease infinite !important;
    color: var(--white) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.nav-link.btn-primary:hover {
    background: linear-gradient(135deg, #ff8c00 0%, #ff7f00 25%, #e67300 50%, #ff7f00 75%, #ff8c00 100%) !important;
    color: var(--white) !important;
}

.navbar.scrolled .nav-link.btn-primary {
    background: linear-gradient(135deg, #ff9800 0%, #ff8c00 30%, #ff7f00 60%, #e67300 100%) !important;
    background-size: 200% 200% !important;
    animation: gradientMove6 2.8s ease infinite !important;
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

/* WICHTIG: Auf Mobile IMMER sichtbar machen */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex !important;
    }
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--dark);
}

/* WICHTIG: Auf Mobile IMMER weiße Linien für bessere Sichtbarkeit */
@media (max-width: 768px) {
    .nav-toggle span {
        background: #ffffff !important;
        height: 3px !important;
    }
    
    .navbar.scrolled .nav-toggle span {
        background: #ffffff !important;
    }
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 180px; /* Direkt unter der nav-container */
    background: #131322;
    overflow: visible;
    width: 80%;
    margin: 0 auto;
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    display: none;
    pointer-events: none;
    z-index: 15;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        #232334 0%,
        #1a1a2a 40%,
        #182133 66%,
        #3c5277 84%,
        #9dbbe3 94%,
        #f9fbff 100%
    );
}

.disco-ball-img {
    position: absolute;
    top: 10%;
    right: 8%;
    width: 250px;
    height: 250px;
    object-fit: contain;
    animation: rotate 20s linear infinite, float 6s ease-in-out infinite;
    z-index: 5;
    filter: drop-shadow(0 15px 30px rgba(74, 111, 165, 0.3));
}

.disco-ball-fallback {
    position: absolute;
    top: 10%;
    right: 8%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle at 30% 30%, #fff 0%, #a8c5e8 20%, #6a8fc5 40%, #4a6fa5 60%, #2e4a7a 100%);
    border-radius: 50%;
    animation: rotate 20s linear infinite, float 6s ease-in-out infinite, sparkle 3s ease-in-out infinite;
    z-index: 4;
    box-shadow: 0 0 60px rgba(74, 111, 165, 0.5), inset 0 0 100px rgba(255, 255, 255, 0.3);
    display: none;
}

.disco-ball-fallback::before {
    content: '';
    position: absolute;
    inset: 10%;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(255, 255, 255, 0.4) 0deg 3deg,
        transparent 3deg 6deg
    );
    border-radius: 50%;
}

.disco-ball-fallback.show {
    display: block;
}

.disco-ball-img {
    z-index: 6;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes sparkle {
    0%, 100% { box-shadow: 0 0 60px rgba(74, 111, 165, 0.5), inset 0 0 100px rgba(255, 255, 255, 0.3); }
    50% { box-shadow: 0 0 100px rgba(74, 111, 165, 0.8), inset 0 0 120px rgba(255, 255, 255, 0.5); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.light-rays {
    display: none !important;
}

.sparkles {
    display: none !important;
}

@keyframes sparkleTwinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes sparkleMove {
    0% { background-position: 0% 0%, 100% 100%, 50% 50%, 80% 20%, 20% 80%, 60% 40%; }
    100% { background-position: 100% 100%, 0% 0%, 50% 50%, 20% 80%, 80% 20%, 40% 60%; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px 20px 0 20px; /* Etwas Padding oben für bessere Sichtbarkeit */
    max-width: 100%;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
}

.hero-title {
    margin-bottom: 24px;
    overflow: visible;
    width: 100%;
}

.title-line {
    display: block;
    color: var(--white);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1s ease-out;
    letter-spacing: -1px;
}

.title-accent {
    display: block;
    font-family: 'Dancing Script', cursive;
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    color: var(--white);
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 20%, #ff9800 40%, #ff6d00 60%, #ff8c00 80%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: fadeInUp 1s ease-out 0.2s both, gradientShift 5s ease infinite;
    filter: none;
    margin-bottom: 8px;
    text-shadow: none;
    white-space: nowrap;
    opacity: 1;
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow: visible;
    word-break: keep-all;
    line-height: 1.2;
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
    text-overflow: clip;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.5)) brightness(1); }
    50% { filter: drop-shadow(0 6px 20px rgba(255, 215, 0, 0.8)) brightness(1.2); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.8vw, 1.7rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 50px;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.4s both;
    line-height: 1.7;
    max-width: 825px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle-left {
    display: block;
    text-align: left;
    line-height: 1;
    padding-left: 0;
    margin-left: -5%;
}

.hero-subtitle-right {
    display: block;
    text-align: right;
    line-height: 1;
    margin-top: 1rem;
    margin-left: 10%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 70px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-lg {
    padding: 22px 44px;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(74, 111, 165, 0.3);
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-lg:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(74, 111, 165, 0.4);
}

.btn-primary.btn-lg {
    background: linear-gradient(135deg, #a8c5e8 0%, #6a8fc5 25%, #4a6fa5 50%, #6a8fc5 75%, #a8c5e8 100%);
    background-size: 200% 200%;
    animation: gradientMove1 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Verschiedene Farbwechsel-Animationen für Buttons */
@keyframes gradientMove1 {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes gradientMove2 {
    0%, 100% { background-position: 50% 0%; }
    50% { background-position: 50% 100%; }
}

@keyframes gradientMove3 {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

@keyframes gradientMove4 {
    0%, 100% { background-position: 100% 50%; }
    50% { background-position: 0% 50%; }
}

@keyframes gradientMove5 {
    0%, 100% { background-position: 0% 100%; }
    50% { background-position: 100% 0%; }
}

@keyframes gradientMove6 {
    0%, 100% { background-position: 50% 0%; }
    25% { background-position: 100% 50%; }
    75% { background-position: 0% 50%; }
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 30;
    isolation: isolate;
    gap: 40px;
    flex-wrap: nowrap;
    animation: fadeInUp 1s ease-out 0.8s both;
    padding: 40px 60px;
    background: #3a5a8a;
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(20, 35, 65, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    max-width: 1400px;
    margin: 0 auto;
    border: 1px solid rgba(176, 206, 244, 0.45);
}

.stat {
    text-align: center;
    padding: 15px 20px;
    transition: transform 0.3s ease;
    flex: 1;
    min-width: 0;
}

.stat:hover {
    transform: scale(1.05);
}

.stat-prefix {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    white-space: nowrap;
    background: linear-gradient(135deg, #ff69b4 0%, #ffc0cb 15%, #87ceeb 30%, #a8c5e8 45%, #ffd700 60%, #9370db 75%, #dda0dd 90%, #ff69b4 100%);
    background-size: 200% 200%;
    animation: gradientMove 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 8px rgba(255, 105, 180, 0.4));
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.3;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
}

.scroll-indicator span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(26, 26, 46, 0.5);
    border-bottom: 2px solid rgba(26, 26, 46, 0.5);
    transform: rotate(45deg);
    animation: scrollDown 2s infinite;
}

.scroll-indicator span:nth-child(2) { animation-delay: 0.2s; }
.scroll-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes scrollDown {
    0% { opacity: 0; transform: rotate(45deg) translateY(-10px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translateY(10px); }
}

/* ===================================
   FEATURES SECTION
   =================================== */
.features {
    padding: 0;
    padding-top: 26px; /* Kein sichtbarer Leerstreifen */
    padding-bottom: 20px; /* Schmaler Streifen zwischen Features und Courses */
    background: #f9fbff;
    margin-top: 0;
    position: relative;
    z-index: 20;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: none;
    filter: none;
    pointer-events: none;
    transition: all 0.6s ease;
}

.features::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 33.33%;
    background: linear-gradient(to top, rgba(74, 111, 165, 0.2), rgba(74, 111, 165, 0.1), transparent);
    pointer-events: none;
    transition: all 0.6s ease;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.1) 0%, rgba(74, 111, 165, 0.05) 100%);
    border: 1px solid rgba(74, 111, 165, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff69b4 0%, #ffc0cb 15%, #87ceeb 30%, #a8c5e8 45%, #ffd700 60%, #9370db 75%, #dda0dd 90%, #ff69b4 100%);
    background-size: 200% 200%;
    animation: gradientMove 4s ease infinite;
    border-radius: 50%;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(255, 105, 180, 0.3);
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===================================
   COURSES SECTION
   =================================== */
.courses {
    padding: 0;
    padding-top: 20px; /* Schmaler Streifen */
    padding-bottom: 100px;
    background: var(--light);
    max-width: 80%;
    margin: 0 auto;
    position: relative;
}

.courses::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 33.33%;
    background: linear-gradient(to bottom, rgba(74, 111, 165, 0.1), rgba(74, 111, 165, 0.05), transparent);
    pointer-events: none;
    transition: all 0.6s ease;
}

.courses::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 33.33%;
    background: linear-gradient(to top, rgba(74, 111, 165, 0.25), rgba(74, 111, 165, 0.15), transparent);
    pointer-events: none;
    transition: all 0.6s ease;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.course-card {
    background: linear-gradient(135deg, rgba(168, 197, 232, 0.15) 0%, rgba(106, 143, 197, 0.1) 50%, rgba(74, 111, 165, 0.05) 100%);
    border: 1px solid rgba(106, 143, 197, 0.3);
    border-radius: var(--radius-lg);
    overflow: visible !important; /* course-card muss visible sein, damit Badges sichtbar sind */
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative; /* Für Badge-Positionierung */
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(106, 143, 197, 0.25);
    border-color: rgba(106, 143, 197, 0.5);
}

.course-card.featured {
    border: 2px solid #6a8fc5;
    background: linear-gradient(135deg, rgba(168, 197, 232, 0.2) 0%, rgba(106, 143, 197, 0.15) 50%, rgba(74, 111, 165, 0.1) 100%);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg); /* Nur unten runde Ecken, oben gerade */
}

.course-image {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #ffffff 0%, #a8c5e8 20%, #6a8fc5 40%, #4a6fa5 60%, #2e4a7a 80%, #1e3a5f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden !important; /* Badges werden am Rand abgeschnitten wenn sie über course-image hinausgehen */
}

/* Verschiedene Blautöne für die Kurskarten - stärkere Unterschiede mit Discokugel-Farben */
.courses-grid .course-card:nth-child(1) .course-image {
    background: linear-gradient(135deg, #a8c5e8 0%, #6a8fc5 30%, #4a6fa5 60%, #2e4a7a 90%, #1e3a5f 100%);
}

.course-card.featured .course-image {
    background: linear-gradient(135deg, #6a8fc5 0%, #4a6fa5 25%, #2e4a7a 50%, #1e3a5f 75%, #0f2a4f 100%);
}

.courses-grid .course-card:nth-child(3) .course-image {
    background: linear-gradient(135deg, #7a9fd5 0%, #6d8fc5 25%, #5e7fb5 50%, #4e6fa5 75%, #3e5f95 100%);
}

.course-badge {
    position: absolute;
    padding: 20px 40px; /* Doppelt so hoch: von 10px auf 20px */
    font-size: 0.95rem; /* Größer: von 0.75rem auf 0.95rem */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 10;
    white-space: nowrap;
    border-radius: 30px; /* Noch runder: von 20px auf 30px */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Badge "Beliebt" - leicht nach links gedreht (ca. 10-15°), überlappend an linker oberer Ecke, Orange ohne Animation */
.badge-beliebt {
    top: 0px; /* Um die Höhe des Badges nach oben verschoben (von 60px auf 0px) */
    left: -50px;
    background: linear-gradient(135deg, #ff9800 0%, #ff8c00 30%, #ff7f00 60%, #e67300 100%);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transform: rotate(-12deg); /* Leicht nach links gedreht (ca. 12°) */
    transform-origin: center;
    border: none;
    border-radius: 30px; /* Noch runder: von 20px auf 30px */
    box-shadow: 
        0 2px 8px rgba(255, 152, 0, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    width: 200px;
    padding: 24px 48px; /* Doppelt so hoch: von 12px auf 24px */
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem; /* Größer: von 0.75rem auf 0.95rem */
}

/* Entferne alle Pseudo-Elemente für professionelles Design */
.badge-beliebt::before,
.badge-beliebt::after {
    display: none;
}

/* Badge "Empfohlen" - leicht nach links gedreht (ca. 10-15°), überlappend an linker oberer Ecke, Discokugel-Farbe: Mittelblau */
.badge-empfohlen {
    top: 0px; /* Um die Höhe des Badges nach oben verschoben (von 60px auf 0px) */
    left: -50px;
    background: linear-gradient(135deg, #a8c5e8 0%, #6a8fc5 30%, #6a8fc5 70%, #4a6fa5 100%);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    transform: rotate(-12deg); /* Leicht nach links gedreht (ca. 12°) */
    transform-origin: center;
    border-radius: 30px; /* Noch runder: von 20px auf 30px */
    border: none;
    box-shadow: 
        0 2px 8px rgba(106, 143, 197, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    width: 200px;
    padding: 24px 48px; /* Doppelt so hoch: von 12px auf 24px */
    text-align: center;
    font-size: 0.95rem; /* Größer: von 0.75rem auf 0.95rem */
}

.badge-empfohlen::before,
.badge-empfohlen::after {
    display: none;
}

/* Badge "Neu" - stark nach rechts gedreht (ca. 75°), überlappend an rechter oberer Ecke, Discokugel-Farben */
.badge-neu {
    top: 0px; /* Um die Höhe des Badges nach oben verschoben (von 60px auf 0px) */
    right: -50px; /* Nach oben rechts verschoben */
    left: auto; /* Left entfernen */
    background: linear-gradient(135deg, #ff69b4 0%, #ffc0cb 15%, #87ceeb 30%, #a8c5e8 45%, #ffd700 60%, #9370db 75%, #dda0dd 90%, #ff69b4 100%);
    background-size: 200% 200%;
    animation: gradientMove 4s ease infinite;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transform: rotate(15deg); /* Um weitere 20° nach links gedreht (von 35° auf 15°) */
    transform-origin: center;
    border: none;
    border-radius: 30px; /* Noch runder: von 20px auf 30px */
    box-shadow: 
        0 2px 8px rgba(255, 105, 180, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    width: 200px;
    padding: 24px 48px; /* Doppelt so hoch: von 12px auf 24px */
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem; /* Größer: von 0.75rem auf 0.95rem */
}

.badge-neu::before,
.badge-neu::after {
    display: none;
}

.course-icon {
    font-size: 4rem;
    color: #6a8fc5; /* Mittelblau - Discokugel-Farbe */
    text-shadow: 0 2px 8px rgba(106, 143, 197, 0.5);
}

/* Icons in Badges weiß machen */
.badge-neu .course-icon,
.course-badge .course-icon {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Spezifische Icons weiß machen */
.fas.fa-laptop-house.course-icon,
.fas.fa-star.course-icon {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Pulsier-Effekt für Stern-Icons - unterschiedliche Animationen */
.fas.fa-star.course-icon {
    animation: pulseStar1 2s ease-in-out infinite;
}

/* Erster Stern - normale Geschwindigkeit */
.course-stars .course-icon:nth-child(1) {
    animation: pulseStar1 2s ease-in-out infinite;
}

/* Zweiter Stern - langsamere Geschwindigkeit mit Delay */
.course-stars .course-icon:nth-child(2) {
    animation: pulseStar2 2.5s ease-in-out infinite;
    animation-delay: 0.3s;
}

/* Einzelner Stern oder dritter Stern - schnellere Geschwindigkeit */
.fas.fa-star.course-icon:not(.course-stars .course-icon),
.course-stars .course-icon:nth-child(3) {
    animation: pulseStar3 1.8s ease-in-out infinite;
    animation-delay: 0.6s;
}

/* Keyframe-Animationen für unterschiedliches Pulsieren der Stern-Icons */
@keyframes pulseStar1 {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.9;
    }
}

@keyframes pulseStar2 {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.12);
        opacity: 0.85;
    }
}

@keyframes pulseStar3 {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.06);
        opacity: 0.92;
    }
}

/* Zwei Sterne für Fortgeschrittene */
.course-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.course-stars .course-icon {
    font-size: 3.5rem;
}

/* Online-Kurs Hintergrund heller */
.course-image-online {
    background: linear-gradient(135deg, #8aafd5 0%, #7d9fc5 25%, #6e8fb5 50%, #5e7fa5 75%, #4e6f95 100%) !important;
}

.course-content {
    padding: 30px;
}

.course-content h3 {
    margin-bottom: 12px;
}

.course-content > p {
    color: var(--text);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.course-features {
    margin-bottom: 24px;
}

.course-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text);
    font-size: 0.9rem;
}

.course-features i {
    color: var(--primary);
    font-size: 0.8rem;
}

.courses-cta {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.2) 0%, rgba(74, 111, 165, 0.15) 100%);
    border: 1px solid rgba(74, 111, 165, 0.3);
    border-radius: var(--radius-lg);
    color: var(--dark);
    text-align: center;
}

.cta-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    flex: 1;
    margin-bottom: 20px;
    text-align: left;
}

.cta-icon {
    font-size: 3rem;
    color: var(--primary);
}

.cta-content > div {
    flex: 1;
    text-align: left;
}

.cta-content h3 {
    color: var(--dark);
    margin-bottom: 8px;
}

.cta-content p {
    color: var(--text);
    max-width: 400px;
}

/* ===================================
   ADVERTISEMENT SECTION - Dynamisch an Viewport
   =================================== */
.advertisement {
    padding: clamp(20px, 3vh, 40px) 0;
    background: var(--white);
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    max-width: 80%;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
}

.advertisement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 33.33%;
    background: linear-gradient(to bottom, rgba(74, 111, 165, 0.1), rgba(74, 111, 165, 0.05), transparent);
    pointer-events: none;
    transition: all 0.6s ease;
}

.advertisement::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 33.33%;
    background: linear-gradient(to top, rgba(74, 111, 165, 0.25), rgba(74, 111, 165, 0.15), transparent);
    pointer-events: none;
    transition: all 0.6s ease;
}

.ad-container {
    width: 96%;
    max-width: 96%;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    /* Wird per JS dynamisch gesetzt */
    min-width: 280px;
    min-height: 350px;
}

.ad-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ===================================
   WEBSHOP SECTION
   =================================== */
.webshop-section {
    padding: 0;
    /* Oben: nur dynamisch per script.js (Navbar fixed), keine festen 150px */
    padding-top: 0;
    background: var(--white);
    min-height: 80vh;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
}

body.webshop-active .webshop-section {
    min-height: 0 !important;
}

.webshop-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    min-height: 80vh;
    background: var(--white);
    overflow: visible;
    padding: 0;
}

body.webshop-active .webshop-container {
    min-height: 0 !important;
}

/* Webshop-iframe */
.webshop-container iframe {
    width: 100%;
    min-height: 80vh;
    border: none;
    display: block;
    margin: 0 !important;
    vertical-align: top;
}

/*
 * scroll-padding-top auf html (150px) wirkt bei scrollIntoView auf #webshop-section:
 * grosse weisse Lücke zwischen fixem Header und iframe — im Webshop deaktivieren.
 */
html.webshop-active {
    scroll-padding-top: 0 !important;
}

/*
 * Webshop-Vollansicht: kein doppelter Body-Offset.
 * Iframe-Höhe = Inhalt (per postMessage aus embed), kein flex:1 / keine 80vh — sonst riesige weisse Fläche.
 */
body.webshop-active {
    padding-top: 0 !important;
}

body.webshop-active #webshop-section.webshop-section {
    margin-top: 0 !important;
    display: block;
    width: 100%;
}

body.webshop-active #webshop-container {
    display: block;
    width: 100%;
}

body.webshop-active #webshop-container iframe {
    display: block;
    width: 100%;
    border: none;
    margin: 0 !important;
    /* Höhe setzt Host per postMessage (echte Dokumenthöhe); bis dahin nur kleine Mindesthöhe */
    min-height: 200px !important;
}

body.webshop-active .footer {
    width: 100%;
    max-width: 100% !important;
}

/* Aufklappbare Leiste für Wochenansicht (Mobile) */
.week-view-toggle {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--primary);
    color: var(--white);
    padding: 16px 20px;
    z-index: 1001;
    cursor: pointer;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    display: none; /* Standardmäßig versteckt, wird per JavaScript angezeigt */
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.week-view-toggle:hover {
    background: var(--primary-dark);
}

.week-view-toggle-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
}

.week-view-toggle-text {
    font-size: 16px;
    font-weight: 500;
    flex: 1;
}

.week-view-toggle-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
    margin-left: 12px;
}

.week-view-toggle.expanded .week-view-toggle-icon {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .webshop-section {
        padding: 0;
        padding-top: 0;
        min-height: 60vh;
    }
    
    .webshop-container {
        min-height: 60vh;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
}

/* ===================================
   EVENTS SECTION
   =================================== */
.events {
    padding: 100px 0;
    background: linear-gradient(135deg, #4a6fa5 0%, #3d5a8f 25%, #2e4a7a 50%, #1e3a5f 75%, #162d4f 100%);
    max-width: 80%;
    margin: 0 auto;
    position: relative;
}

.events::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 33.33%;
    background: linear-gradient(to bottom, rgba(74, 111, 165, 0.15), rgba(74, 111, 165, 0.08), transparent);
    pointer-events: none;
    transition: all 0.6s ease;
}

.events::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 33.33%;
    background: linear-gradient(to top, rgba(74, 111, 165, 0.3), rgba(74, 111, 165, 0.2), transparent);
    pointer-events: none;
    transition: all 0.6s ease;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: stretch;
}

.event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    overflow: visible;
    transition: var(--transition);
    position: relative;
}

.event-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    transform: translateY(-5px);
}

.event-card.highlight {
    background: var(--gradient-primary);
    border: none;
}

.event-card .event-content {
    background: transparent;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.event-card .event-description {
    margin-top: 0;
}

.event-description img,
.event-card .event-description img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Event-Beschreibung: sichere Hervorhebungen (Editor span-Klassen, siehe Events-App) */
.event-description span.event-desc-hl-marker,
.event-card .event-description span.event-desc-hl-marker {
    display: inline;
    padding: 0.12em 0.38em;
    border-radius: 0.28em;
    font-weight: 600;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    background: rgba(250, 204, 21, 0.55) !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a;
}

/* Gelber Marker mit weichem Leuchten (TV + Homepage) */
.event-description span.event-desc-hl-glow,
.event-card .event-description span.event-desc-hl-glow {
    display: inline;
    padding: 0.12em 0.42em;
    border-radius: 0.32em;
    font-weight: 700;
    color: #1a1500 !important;
    -webkit-text-fill-color: #1a1500;
    background: rgba(253, 224, 71, 0.62) !important;
    text-shadow:
        0 0 6px rgba(254, 249, 195, 0.95),
        0 0 14px rgba(250, 204, 21, 0.85),
        0 0 26px rgba(250, 250, 100, 0.55);
    box-shadow:
        0 0 10px rgba(250, 204, 21, 0.65),
        0 0 24px rgba(254, 240, 138, 0.45),
        inset 0 0 8px rgba(255, 255, 220, 0.35);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.event-description span.event-desc-hl-tip,
.event-card .event-description span.event-desc-hl-tip {
    display: inline;
    padding: 0.12em 0.45em 0.12em 0.55em;
    border-radius: 0.25em;
    border-left: 0.28em solid rgba(13, 148, 136, 0.88);
    background: rgba(45, 212, 191, 0.28) !important;
    color: #064e3b !important;
    -webkit-text-fill-color: #064e3b;
    font-weight: 600;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.event-card.highlight .event-description span.event-desc-hl-tip {
    background: rgba(15, 118, 110, 0.4) !important;
    color: #ecfdf5 !important;
    -webkit-text-fill-color: #ecfdf5;
    border-left-color: rgba(167, 243, 208, 0.95);
}

.event-description span.event-desc-hl-warn,
.event-card .event-description span.event-desc-hl-warn {
    display: inline;
    padding: 0.12em 0.38em;
    border-radius: 0.28em;
    font-weight: 600;
    background: rgba(248, 113, 113, 0.45) !important;
    color: #1e0a0a !important;
    -webkit-text-fill-color: #1e0a0a;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.event-description span.event-desc-hl-key,
.event-card .event-description span.event-desc-hl-key {
    display: inline;
    font-weight: 800 !important;
    letter-spacing: 0.04em;
    text-transform: none;
    color: #fef08a !important;
    -webkit-text-fill-color: #fef08a;
    text-shadow: 0 0 12px rgba(250, 204, 21, 0.45);
}

.event-description span.event-desc-hl-box,
.event-card .event-description span.event-desc-hl-box {
    display: inline;
    padding: 0.2em 0.55em;
    border-radius: 0.35em;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(15, 23, 42, 0.35) !important;
    color: rgba(255, 255, 255, 0.98) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.98);
    font-weight: 600;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* —— Farbpalette Event-Beschreibung: Rot / Gelb / Grün / Orange × Marker, Leuchten, Info, Kasten, Schwerpunkt —— */
.event-description span[class^="event-desc-hl-"][class$="-marker"],
.event-card .event-description span[class^="event-desc-hl-"][class$="-marker"] {
    display: inline;
    padding: 0.12em 0.38em;
    border-radius: 0.28em;
    font-weight: 600;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
.event-description span.event-desc-hl-red-marker,
.event-card .event-description span.event-desc-hl-red-marker { background: rgba(248, 113, 113, 0.58) !important; color: #450a0a !important; -webkit-text-fill-color: #450a0a; }
.event-description span.event-desc-hl-yellow-marker,
.event-card .event-description span.event-desc-hl-yellow-marker { background: rgba(250, 204, 21, 0.58) !important; color: #1a1500 !important; -webkit-text-fill-color: #1a1500; }
.event-description span.event-desc-hl-green-marker,
.event-card .event-description span.event-desc-hl-green-marker { background: rgba(74, 222, 128, 0.52) !important; color: #14532d !important; -webkit-text-fill-color: #14532d; }
.event-description span.event-desc-hl-orange-marker,
.event-card .event-description span.event-desc-hl-orange-marker { background: rgba(251, 146, 60, 0.58) !important; color: #7c2d12 !important; -webkit-text-fill-color: #7c2d12; }

.event-description span[class^="event-desc-hl-"][class$="-glow"],
.event-card .event-description span[class^="event-desc-hl-"][class$="-glow"] {
    display: inline;
    padding: 0.12em 0.42em;
    border-radius: 0.32em;
    font-weight: 700;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
.event-description span.event-desc-hl-red-glow,
.event-card .event-description span.event-desc-hl-red-glow {
    color: #450a0a !important;
    -webkit-text-fill-color: #450a0a;
    background: rgba(254, 226, 226, 0.65) !important;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.9), 0 0 14px rgba(248, 113, 113, 0.85), 0 0 26px rgba(239, 68, 68, 0.45);
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.65), 0 0 22px rgba(254, 202, 202, 0.5), inset 0 0 8px rgba(255, 255, 255, 0.35);
}
.event-description span.event-desc-hl-yellow-glow,
.event-card .event-description span.event-desc-hl-yellow-glow {
    color: #1a1500 !important;
    -webkit-text-fill-color: #1a1500;
    background: rgba(253, 224, 71, 0.62) !important;
    text-shadow: 0 0 6px rgba(254, 249, 195, 0.95), 0 0 14px rgba(250, 204, 21, 0.85), 0 0 26px rgba(250, 250, 100, 0.55);
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.65), 0 0 24px rgba(254, 240, 138, 0.45), inset 0 0 8px rgba(255, 255, 220, 0.35);
}
.event-description span.event-desc-hl-green-glow,
.event-card .event-description span.event-desc-hl-green-glow {
    color: #052e16 !important;
    -webkit-text-fill-color: #052e16;
    background: rgba(187, 247, 208, 0.62) !important;
    text-shadow: 0 0 6px rgba(240, 253, 244, 0.95), 0 0 14px rgba(74, 222, 128, 0.8), 0 0 26px rgba(34, 197, 94, 0.45);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.6), 0 0 22px rgba(167, 243, 208, 0.45), inset 0 0 8px rgba(255, 255, 255, 0.35);
}
.event-description span.event-desc-hl-orange-glow,
.event-card .event-description span.event-desc-hl-orange-glow {
    color: #7c2d12 !important;
    -webkit-text-fill-color: #7c2d12;
    background: rgba(255, 237, 213, 0.68) !important;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.95), 0 0 14px rgba(251, 146, 60, 0.85), 0 0 26px rgba(251, 191, 36, 0.5);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.6), 0 0 22px rgba(254, 215, 170, 0.5), inset 0 0 8px rgba(255, 255, 255, 0.35);
}

.event-description span[class^="event-desc-hl-"][class$="-tip"],
.event-card .event-description span[class^="event-desc-hl-"][class$="-tip"] {
    display: inline;
    padding: 0.12em 0.45em 0.12em 0.55em;
    border-radius: 0.25em;
    font-weight: 600;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
.event-description span.event-desc-hl-red-tip,
.event-card .event-description span.event-desc-hl-red-tip { border-left: 0.28em solid #dc2626; background: rgba(254, 226, 226, 0.55) !important; color: #7f1d1d !important; -webkit-text-fill-color: #7f1d1d; }
.event-description span.event-desc-hl-yellow-tip,
.event-card .event-description span.event-desc-hl-yellow-tip { border-left: 0.28em solid #ca8a04; background: rgba(254, 249, 195, 0.62) !important; color: #713f12 !important; -webkit-text-fill-color: #713f12; }
.event-description span.event-desc-hl-green-tip,
.event-card .event-description span.event-desc-hl-green-tip { border-left: 0.28em solid #059669; background: rgba(209, 250, 229, 0.62) !important; color: #065f46 !important; -webkit-text-fill-color: #065f46; }
.event-description span.event-desc-hl-orange-tip,
.event-card .event-description span.event-desc-hl-orange-tip { border-left: 0.28em solid #ea580c; background: rgba(255, 237, 213, 0.72) !important; color: #9a3412 !important; -webkit-text-fill-color: #9a3412; }

.event-description span[class^="event-desc-hl-"][class$="-box"],
.event-card .event-description span[class^="event-desc-hl-"][class$="-box"] {
    display: inline;
    padding: 0.18em 0.5em;
    border-radius: 0.32em;
    font-weight: 600;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
.event-description span.event-desc-hl-red-box,
.event-card .event-description span.event-desc-hl-red-box { border: 1px solid #f87171; background: rgba(127, 29, 29, 0.35) !important; color: #fecaca !important; -webkit-text-fill-color: #fecaca; }
.event-description span.event-desc-hl-yellow-box,
.event-card .event-description span.event-desc-hl-yellow-box { border: 1px solid #eab308; background: rgba(66, 32, 6, 0.28) !important; color: #fef9c3 !important; -webkit-text-fill-color: #fef9c3; }
.event-description span.event-desc-hl-green-box,
.event-card .event-description span.event-desc-hl-green-box { border: 1px solid #34d399; background: rgba(6, 78, 59, 0.38) !important; color: #ecfdf5 !important; -webkit-text-fill-color: #ecfdf5; }
.event-description span.event-desc-hl-orange-box,
.event-card .event-description span.event-desc-hl-orange-box { border: 1px solid #fb923c; background: rgba(124, 45, 18, 0.38) !important; color: #ffedd5 !important; -webkit-text-fill-color: #ffedd5; }

.event-description span[class^="event-desc-hl-"][class$="-key"],
.event-card .event-description span[class^="event-desc-hl-"][class$="-key"] {
    display: inline;
    font-weight: 800 !important;
    letter-spacing: 0.04em;
}
.event-description span.event-desc-hl-red-key,
.event-card .event-description span.event-desc-hl-red-key { color: #fecaca !important; -webkit-text-fill-color: #fecaca; text-shadow: 0 0 10px rgba(248, 113, 113, 0.95), 0 0 22px rgba(239, 68, 68, 0.55); }
.event-description span.event-desc-hl-yellow-key,
.event-card .event-description span.event-desc-hl-yellow-key { color: #fef08a !important; -webkit-text-fill-color: #fef08a; text-shadow: 0 0 10px rgba(253, 224, 71, 0.95), 0 0 22px rgba(250, 204, 21, 0.55); }
.event-description span.event-desc-hl-green-key,
.event-card .event-description span.event-desc-hl-green-key { color: #86efac !important; -webkit-text-fill-color: #86efac; text-shadow: 0 0 10px rgba(74, 222, 128, 0.95), 0 0 22px rgba(34, 197, 94, 0.5); }
.event-description span.event-desc-hl-orange-key,
.event-card .event-description span.event-desc-hl-orange-key { color: #fdba74 !important; -webkit-text-fill-color: #fdba74; text-shadow: 0 0 10px rgba(251, 146, 60, 0.95), 0 0 22px rgba(249, 115, 22, 0.5); }

/* Hervorhebung „Neutral“: gleicher Stil-Typ (Kasten, Marker, …), nur ohne Akzentfarbe */
.event-description span.event-desc-hl-neutral-marker,
.event-card .event-description span.event-desc-hl-neutral-marker { background: rgba(148, 163, 184, 0.28) !important; color: #e2e8f0 !important; -webkit-text-fill-color: #e2e8f0; }
.event-description span.event-desc-hl-neutral-glow,
.event-card .event-description span.event-desc-hl-neutral-glow { background: rgba(148, 163, 184, 0.22) !important; color: #e2e8f0 !important; -webkit-text-fill-color: #e2e8f0; box-shadow: 0 0 10px rgba(148, 163, 184, 0.45), inset 0 0 6px rgba(255, 255, 255, 0.06); }
.event-description span.event-desc-hl-neutral-tip,
.event-card .event-description span.event-desc-hl-neutral-tip { border-left: 0.28em solid #94a3b8; background: rgba(30, 41, 59, 0.55) !important; color: #e2e8f0 !important; -webkit-text-fill-color: #e2e8f0; }
.event-description span.event-desc-hl-neutral-box,
.event-card .event-description span.event-desc-hl-neutral-box { border: 1px solid #94a3b8; background: rgba(241, 245, 249, 0.12) !important; color: #e2e8f0 !important; -webkit-text-fill-color: #e2e8f0; }
.event-description span.event-desc-hl-neutral-key,
.event-card .event-description span.event-desc-hl-neutral-key { color: #cbd5e1 !important; -webkit-text-fill-color: #cbd5e1; text-shadow: 0 0 8px rgba(148, 163, 184, 0.65); }

.event-card .event-details {
    flex-shrink: 0;
    margin-top: 0.85rem;
}

.event-card .event-content h3 {
    flex-shrink: 0;
    color: var(--white);
}

/* Homepage Events: Platzhalter-Namen – fett + kursiv, kein Leuchten */
.event-description mark.event-person-highlight,
.event-card .event-description mark.event-person-highlight {
    background: none !important;
    background-color: transparent !important;
    display: inline-flex;
    align-items: center;
    margin: 0 0.06em;
    padding: 0;
    border-radius: 0;
    font-weight: 700;
    font-style: italic;
    line-height: inherit;
    vertical-align: baseline;
    color: inherit;
    -webkit-text-fill-color: unset;
    text-shadow: none;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Rollen-Icons wie Events-API (event-role-*); Fallback K-Kugel */
.event-description mark.event-person-highlight::before,
.event-card .event-description mark.event-person-highlight::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 0.22em;
    font-style: normal;
    line-height: 1;
    vertical-align: middle;
}

.event-description mark.event-role-dj::before,
.event-card .event-description mark.event-role-dj::before {
    content: '🎧';
    width: auto;
    height: auto;
    min-width: 0;
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', system-ui, sans-serif;
    font-size: 1.05em;
    font-weight: 400;
    color: inherit;
    -webkit-text-fill-color: currentColor;
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.event-description mark.event-role-kasse::before,
.event-card .event-description mark.event-role-kasse::before {
    content: '💵';
    width: auto;
    height: auto;
    min-width: 0;
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', system-ui, sans-serif;
    font-size: 1.02em;
    font-weight: 400;
    color: inherit;
    -webkit-text-fill-color: currentColor;
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.event-description mark.event-role-bar::before,
.event-card .event-description mark.event-role-bar::before {
    content: '🍸';
    width: auto;
    height: auto;
    min-width: 0;
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', system-ui, sans-serif;
    font-size: 1.02em;
    font-weight: 400;
    color: inherit;
    -webkit-text-fill-color: currentColor;
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.event-description mark.event-role-leitung::before,
.event-card .event-description mark.event-role-leitung::before {
    content: '🎩';
    width: auto;
    height: auto;
    min-width: 0;
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', system-ui, sans-serif;
    font-size: 1.02em;
    font-weight: 400;
    color: inherit;
    -webkit-text-fill-color: currentColor;
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.event-description mark.event-role-grillmeister::before,
.event-card .event-description mark.event-role-grillmeister::before {
    content: '🍖';
    width: auto;
    height: auto;
    min-width: 0;
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', system-ui, sans-serif;
    font-size: 1em;
    font-weight: 400;
    color: inherit;
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.event-description mark.event-role-host::before,
.event-card .event-description mark.event-role-host::before {
    content: '🎤';
    width: auto;
    height: auto;
    min-width: 0;
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', system-ui, sans-serif;
    font-size: 1em;
    font-weight: 400;
    color: inherit;
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.event-description mark.event-role-einlass::before,
.event-card .event-description mark.event-role-einlass::before {
    content: '🚪';
    width: auto;
    height: auto;
    min-width: 0;
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', system-ui, sans-serif;
    font-size: 1em;
    font-weight: 400;
    color: inherit;
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.event-description mark.event-role-foto::before,
.event-card .event-description mark.event-role-foto::before {
    content: '📷';
    width: auto;
    height: auto;
    min-width: 0;
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', system-ui, sans-serif;
    font-size: 1em;
    font-weight: 400;
    color: inherit;
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.event-description mark.event-role-technik::before,
.event-card .event-description mark.event-role-technik::before {
    content: '🎛️';
    width: auto;
    height: auto;
    min-width: 0;
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', system-ui, sans-serif;
    font-size: 1em;
    font-weight: 400;
    color: inherit;
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.event-description mark.event-role-default::before,
.event-description mark.event-person-highlight:not([class*='event-role-'])::before,
.event-card .event-description mark.event-role-default::before,
.event-card .event-description mark.event-person-highlight:not([class*='event-role-'])::before {
    content: 'K';
    width: 1.12em;
    height: 1.12em;
    min-width: 1.12em;
    margin-right: 0.26em;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 0.55em;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #f8fafc;
    -webkit-text-fill-color: #f8fafc;
    vertical-align: middle;
    background: radial-gradient(circle at 32% 24%, #9ca3af 0%, #4b5563 14%, #1f2937 42%, #030712 88%, #000 100%);
    border-radius: 50%;
    box-shadow:
        inset 0.1em 0.12em 0.16em rgba(255, 255, 255, 0.26),
        inset -0.12em -0.16em 0.22em rgba(0, 0, 0, 0.62),
        0 0 0 0.07em #0a0a0a,
        0 0 0 0.1em rgba(255, 255, 255, 0.28);
    opacity: 1;
    -webkit-mask: none;
    mask: none;
    filter: none;
}

.event-card .event-content > p {
    color: rgba(255, 255, 255, 0.98);
}

.event-image {
    position: relative;
    width: 100%;
    height: 345px; /* 20% höher: 287.5px * 1.20 = 345px */
    overflow: hidden; /* Corner am Bildrand abschneiden */
    cursor: pointer;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.event-slider .slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.event-slider .slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.event-slider .slider-image {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.event-slider .slider-image.active {
    display: block;
}

.event-slider .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--dark);
    font-size: 1rem;
}

.event-slider .slider-btn:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.event-slider .slider-prev {
    left: 10px;
}

.event-slider .slider-next {
    right: 10px;
}

.event-slider .slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.event-slider .slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.event-slider .slider-dot.active {
    background-image: linear-gradient(white, black);
    transform: scale(1.2);
}

.event-date {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 25px;
    background: rgba(0, 0, 0, 1);
    backdrop-filter: none;
    transform: rotate(-45deg);
    transform-origin: top left;
    z-index: 20;
    border-radius: 0;
    min-width: 100px;
    width: auto;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.event-day {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    transform: rotate(45deg);
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

.event-month {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    transform: rotate(45deg);
    line-height: 1.2;
    margin-top: 2px;
    white-space: nowrap;
}

/* Abgerundete Ecke für Event-Datum (Tanznacht Chur und Disco Tanznacht) */
.event-date-corner {
    position: absolute;
    top: -20px;
    left: -80px;
    background: linear-gradient(180deg, rgba(255, 140, 0, 0.95) 0%, rgba(255, 140, 0, 0.95) 40%, rgba(255, 140, 0, 0.3) 70%, rgba(255, 140, 0, 0) 100%);
    backdrop-filter: blur(10px);
    padding: 30px 70px 40px 50px; /* Mehr horizontales Padding für breitere Ecke */
    border-radius: 8px;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(255, 140, 0, 0.4);
    border: none;
    transform: rotate(315deg);
    transform-origin: center center;
    animation: pulseOrange 2s ease-in-out infinite;
    min-width: 250px;
    min-height: 80px;
    width: auto;
    height: auto;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Rechteckig, wird am Bildrand abgeschnitten */
    display: flex;
    flex-direction: column;
    align-items: center; /* Zentriert ausrichten */
    justify-content: flex-end; /* Nach unten verschieben */
    gap: 8px; /* Mehr Abstand zwischen Tag und Datum */
    padding-bottom: 30px; /* Mehr Abstand vom unteren Rand */
    overflow: visible; /* Sicherstellen, dass Inhalt sichtbar ist */
}

@keyframes pulseOrange {
    0%, 100% {
        background: linear-gradient(180deg, rgba(255, 140, 0, 0.95) 0%, rgba(255, 140, 0, 0.95) 40%, rgba(255, 140, 0, 0.3) 70%, rgba(255, 140, 0, 0) 100%);
        box-shadow: 0 4px 16px rgba(255, 140, 0, 0.4);
        transform: rotate(315deg) scale(1);
    }
    50% {
        background: linear-gradient(180deg, rgba(255, 165, 0, 1) 0%, rgba(255, 165, 0, 0.95) 40%, rgba(255, 165, 0, 0.3) 70%, rgba(255, 165, 0, 0) 100%);
        box-shadow: 0 6px 24px rgba(255, 140, 0, 0.6);
        transform: rotate(315deg) scale(1.05);
    }
}

.event-date-day {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    letter-spacing: 1px;
    transform: rotate(45deg) !important; /* 135° - 90° = 45° nach links */
    display: block;
    text-align: center; /* Zentriert */
    line-height: 1;
    position: relative;
    z-index: 21; /* Über der Ecke */
    flex-shrink: 0; /* Verhindert, dass Tag schrumpft */
}

.event-date-date {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    letter-spacing: 0.5px;
    transform: rotate(45deg) !important; /* 135° - 90° = 45° nach links */
    display: block;
    text-align: center; /* Zentriert */
    line-height: 1;
    position: relative;
    z-index: 21; /* Über der Ecke */
    flex-shrink: 0; /* Verhindert, dass Datum schrumpft */
}

.event-content {
    flex: 1;
    padding: 24px;
    background: transparent;
}

.event-content h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.event-content > p {
    color: rgba(255, 255, 255, 0.98);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.event-card.highlight .event-content h3 {
    color: var(--white);
}

.event-card.highlight .event-content > p {
    color: rgba(255, 255, 255, 0.98);
}

.event-card .event-description,
.event-card .event-description p,
.event-card .event-description strong,
.event-card .event-description em {
    color: rgba(255, 255, 255, 0.98) !important;
}

.event-card .event-description {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.event-card .event-description p:last-child {
    margin-bottom: 0;
    margin-top: 1.25rem;
}

.event-card .event-description a {
    text-decoration: none;
}

.event-card .event-description a:hover {
    opacity: 0.85;
}

.event-card .event-description a .workshop-title {
    color: #a8c5e8;
    font-weight: 600;
}

.event-card .event-description a .workshop-text {
    color: #f0d060;
}

.event-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.event-details span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.98);
}

.event-details i {
    color: rgba(255, 255, 255, 0.95);
}

.event-card.highlight .event-details i {
    color: var(--white);
}


/* ===================================
   ROOMS SECTION
   =================================== */
.rooms {
    padding: 100px 0;
    background: var(--white);
    max-width: 80%;
    margin: 0 auto;
    position: relative;
}

.rooms::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 33.33%;
    background: linear-gradient(to bottom, rgba(74, 111, 165, 0.1), rgba(74, 111, 165, 0.05), transparent);
    pointer-events: none;
    transition: all 0.6s ease;
}

.rooms::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 33.33%;
    background: linear-gradient(to top, rgba(74, 111, 165, 0.25), rgba(74, 111, 165, 0.15), transparent);
    pointer-events: none;
    transition: all 0.6s ease;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 80%;
    margin: 0 auto;
    width: 100%;
}

.room-card {
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.1) 0%, rgba(74, 111, 165, 0.05) 100%);
    border: 1px solid rgba(74, 111, 165, 0.2);
    border-radius: var(--radius-lg) 0 var(--radius-lg) 0; /* oben rechts und unten links nicht rund */
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.room-card:hover {
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.15) 0%, rgba(74, 111, 165, 0.1) 100%);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.room-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--gradient-dark);
    max-width: 100%;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.slider-image {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    display: none;
    flex-shrink: 0;
    background: #000;
    /* Stelle sicher, dass Bilder korrekt skaliert werden */
    image-rendering: auto;
    /* Verhindere, dass Bilder zu groß werden */
    box-sizing: border-box;
}

.slider-image.active {
    display: block !important;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.slider-image:not(.active) {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Für verschachtelte img-Tags (falls vorhanden) */
.slider-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

.slider-track video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.slider-track iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    flex-shrink: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--dark);
    font-size: 1.2rem;
}

.slider-btn:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-image: linear-gradient(white, black);
    transform: scale(1.2);
}

.room-content {
    padding: 30px;
    background: var(--white);
    position: relative;
}

/* Ton nur auf dem Kursraum-Slider, wenn ein Video-Slide aktiv ist (nicht fix über der Seite) */
.room-slider .slider-container > .room-sound-toggle {
    position: absolute;
    bottom: 14px;
    right: 14px;
    top: auto;
    left: auto;
    z-index: 25;
    padding: 8px 12px;
    border: 2px solid #2e4a7a;
    border-radius: 8px;
    background: rgba(12, 22, 38, 0.9);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}

.room-sound-toggle.is-on {
    border-color: #7cfc00;
    color: #7cfc00;
}

.room-content h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1.125rem;
}

.room-floor {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: var(--radius-lg);
}

.room-content > p {
    color: var(--text);
    margin-bottom: 20px;
    font-size: 1.125rem;
    line-height: 1.6;
}

.room-features {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.room-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.703125rem;
    color: var(--text);
}

.room-features i {
    color: var(--primary);
}

/* Saal 4: 360°-Button oben rechts über der Feature-Zeile */
.room-features-wrap--has360 {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 6px 10px;
    align-items: end;
}

.room-features-wrap--has360 .room-360-btn {
    grid-column: 2;
    grid-row: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 5px 10px;
    min-width: 0;
    font-weight: 700;
    font-size: 0.65rem;
    line-height: 1.1;
    text-decoration: none;
    text-align: center;
    border-width: 1px;
    border-radius: 8px;
    box-shadow: none;
}

.room-features-wrap--has360 .room-360-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(106, 143, 197, 0.35);
}

.room-features-wrap--has360 .room-360-line1 {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    line-height: 1.05;
}

.room-features-wrap--has360 .room-360-line2 {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    opacity: 0.95;
    line-height: 1.05;
}

.room-features-wrap--has360 .room-features {
    grid-column: 1 / -1;
    grid-row: 2;
}

@media (max-width: 768px) {
    .room-features-wrap--has360 {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .room-features-wrap--has360 .room-360-btn {
        grid-column: 1;
        grid-row: 1;
        justify-self: end;
        margin-bottom: 4px;
    }

    .room-features-wrap--has360 .room-features {
        grid-column: 1;
        grid-row: 2;
    }
}

/* ===================================
   TEAM SECTION
   =================================== */
.team {
    padding: 100px 0;
    background: var(--light);
    max-width: 80%;
    margin: 0 auto;
    position: relative;
}

.team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 33.33%;
    background: linear-gradient(to bottom, rgba(74, 111, 165, 0.1), rgba(74, 111, 165, 0.05), transparent);
    pointer-events: none;
    transition: all 0.6s ease;
}

.team::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 33.33%;
    background: linear-gradient(to top, rgba(74, 111, 165, 0.25), rgba(74, 111, 165, 0.15), transparent);
    pointer-events: none;
    transition: all 0.6s ease;
}

.team .section-header {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.team-lead-spotlight {
    margin: 0 auto 1.5rem;
    max-width: 900px;
    padding: 1.35rem 1.5rem;
    border-radius: var(--radius-md);
    border: 2px solid rgba(74, 111, 165, 0.5);
    background: linear-gradient(135deg, rgba(106, 143, 197, 0.22) 0%, rgba(74, 111, 165, 0.12) 45%, rgba(255, 255, 255, 0.75) 100%);
    box-shadow: var(--shadow-md);
    font-size: clamp(1.05rem, 2.2vw, 1.24rem);
    line-height: 1.55;
    color: var(--dark);
    text-align: left;
    position: relative;
    z-index: 1;
}

.team-lead-spotlight strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.team-lead-spotlight .team-lead-tagline {
    display: block;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(74, 111, 165, 0.28);
    font-size: 0.94em;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.45;
}

.team .section-description.team-intro-follow {
    margin-top: 0.35rem;
    color: var(--text-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 525px)); /* Auto-fit für flexible Spaltenanzahl */
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    align-items: stretch;
}

/* Erste 2 Cards (André und Francine) zentrieren - erstelle eine zentrierte Zeile mit genau 2 Spalten */
.team-card-top-row {
    grid-row: 1;
}

/* Erste Card (André) */
.team-card-top-row:first-child {
    grid-column: 1;
}

/* Zweite Card (Francine) - wenn sie direkt nach der ersten kommt */
.team-card-top-row:nth-child(2) {
    grid-column: 2;
}

/* Alle anderen Cards (inkl. Charlotte) normal im Grid - können nebeneinander sein */
.team-card:not(.team-card-top-row) {
    grid-column: auto;
    grid-row: auto;
}

.team-card {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(168, 197, 232, 0.15) 0%, rgba(106, 143, 197, 0.1) 50%, rgba(74, 111, 165, 0.05) 100%);
    border: 1px solid rgba(106, 143, 197, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 525px; /* 25% kleiner: 700px * 0.75 = 525px */
    min-width: 450px; /* 25% kleiner: 600px * 0.75 = 450px */
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 32px rgba(106, 143, 197, 0.25);
    border-color: rgba(106, 143, 197, 0.5);
}

.team-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2d5016 0%, #1e3a0f 50%, #0f1f08 100%);
    border-radius: 50%;
    font-size: 3rem;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(45, 80, 22, 0.4);
    overflow: hidden;
    position: relative;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.team-avatar i {
    position: relative;
    z-index: 1;
    font-weight: 900; /* Font Awesome Solid Icons sind fett */
    font-style: normal; /* Kein Italic */
    display: inline-block;
    font-family: "Font Awesome 6 Free";
}

.team-card h3 {
    margin-bottom: 8px;
}

.team-role {
    display: block;
    color: #6a8fc5; /* Mittelblau - Discokugel-Farbe */
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.team-card > p {
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.team-description {
    color: var(--text);
    font-size: 0.95rem;
    margin-top: 12px;
    margin-bottom: 16px;
    flex-grow: 1;
    line-height: 1.6;
    display: block !important;
    min-height: 20px;
    cursor: help;
    position: relative;
}

.team-description:empty {
    display: none;
}

/* Stelle sicher, dass Beschreibung sichtbar ist wenn Inhalt vorhanden */
.team-card .team-description:not(:empty) {
    display: block !important;
    visibility: visible !important;
}

/* Tooltip für vollständigen Text */
.team-description[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: pre-wrap;
    max-width: 400px;
    width: max-content;
    z-index: 1000;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    word-wrap: break-word;
}

.team-description[title]:hover::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% - 1px);
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    z-index: 1001;
    pointer-events: none;
}

.team-motto {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: auto;
    margin-bottom: 0;
    display: block;
    cursor: help;
    position: relative;
    text-align: left;
}

/* "Mein Motto:" Text - kleiner, aber fett und linksbündig */
.team-motto strong:first-child {
    font-size: 0.85rem !important;
    font-weight: bold !important;
    font-style: normal !important;
    display: block;
    text-align: left;
    margin-bottom: 4px;
}

.team-motto:empty {
    display: none;
}

/* Tooltip für vollständigen Text beim Motto */
.team-motto[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: pre-wrap;
    max-width: 400px;
    width: max-content;
    z-index: 1000;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    word-wrap: break-word;
    font-style: normal;
}

.team-motto[title]:hover::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% - 1px);
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    z-index: 1001;
    pointer-events: none;
}

/* "mehr ..." Link Styling */
.team-description .team-show-more,
.team-motto .team-show-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-block;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    font-size: 50% !important;
}

.team-description .team-show-more:hover,
.team-motto .team-show-more:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Stelle sicher, dass der Link im Motto klickbar ist */
.team-motto .team-show-more {
    font-style: normal;
    margin-left: 4px;
}

/* Erster Buchstabe jedes Absatzes ist fett, doppelt so groß und kursiv */
.team-description strong:first-of-type,
.team-motto strong:first-of-type,
.team-text-popup-text strong:first-of-type {
    font-size: 2em;
    font-style: italic;
    font-weight: bold;
    line-height: 0.8;
    display: inline-block;
}

/* Erster Buchstabe in jedem Absatz (nach <br><br>) */
.team-description strong,
.team-motto strong,
.team-text-popup-text strong {
    font-size: 2em;
    font-style: italic;
    font-weight: bold;
    line-height: 0.8;
    display: inline-block;
}

/* Interne Links in Team-Texten */
.team-description a,
.team-motto a,
.team-text-popup-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.team-description a:hover,
.team-motto a:hover,
.team-text-popup-text a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.team-internal-link {
    cursor: pointer;
}

/* Popup für vollständigen Text */
.team-text-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.team-text-popup-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 600px;
    max-height: 80vh;
    width: 90%;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow-x: auto;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.team-text-popup-text {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.team-text-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.team-text-popup-close:hover {
    background: var(--light);
    color: var(--text);
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.team-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border-radius: 50%;
    color: var(--text-light);
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.team-cta {
    text-align: center;
}

/* ===================================
   LOCATION SECTION
   =================================== */
.location {
    padding: 100px 0;
    background: var(--white);
    max-width: 80%;
    margin: 0 auto;
    position: relative;
}

.location::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 33.33%;
    background: linear-gradient(to bottom, rgba(74, 111, 165, 0.1), rgba(74, 111, 165, 0.05), transparent);
    pointer-events: none;
    transition: all 0.6s ease;
}

.location::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 33.33%;
    background: linear-gradient(to top, rgba(74, 111, 165, 0.3), rgba(74, 111, 165, 0.2), transparent);
    pointer-events: none;
    transition: all 0.6s ease;
}

.location-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.location-info {
    border-radius: var(--radius-lg);
    padding: 20px;
    background: rgba(255, 255, 255, 0.3);
}

.location-info .section-tag,
.location-info .section-title {
    text-align: left;
}

.location-details {
    margin-top: 40px;
}

.location-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--gray);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.location-item:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.location-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.location-item i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.location-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--dark);
}

.location-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.location-item-with-video {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.location-address {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.location-address strong {
    display: block;
    margin-bottom: 4px;
    line-height: 1.2;
    font-weight: 600;
}

.location-video {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    /* Ausrichtung auf Höhe des "Adresse"-Labels durch align-items: flex-start */
    padding-top: 0;
    margin-top: 0;
}

/* Video Link für Anfahrt */
.video-link {
    display: block;
    padding: 0 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, #a8c5e8 0%, #6a8fc5 25%, #4a6fa5 50%, #6a8fc5 75%, #a8c5e8 100%);
    background-size: 200% 200%;
    animation: gradientMove 3s ease infinite;
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    /* Ausrichtung auf Höhe des "Adresse"-Labels */
    align-self: flex-start;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(106, 143, 197, 0.3);
    white-space: nowrap;
}

.video-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 143, 197, 0.4);
    text-decoration: none;
    color: var(--white);
}

.video-link i {
    margin-right: 8px;
}

/* Video Modal Popup */
.video-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.video-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    height: auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    overflow-x: auto;
    overflow-y: auto;
}

.video-modal-content video {
    width: 100%;
    height: auto;
    max-width: 800px;
    border-radius: var(--radius-md);
    display: block;
}

.video-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: var(--white);
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.video-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Aushilfe Modal */
.aushilfe-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.aushilfe-modal-content {
    position: relative;
    max-width: 600px;
    max-height: 90vh;
    width: 90%;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    overflow-x: auto;
    overflow-y: auto;
}

.aushilfe-modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.aushilfe-modal-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.aushilfe-modal-body {
    padding: 2rem;
    color: var(--text);
    line-height: 1.8;
}

.aushilfe-modal-body p {
    margin-bottom: 1rem;
}

.aushilfe-modal-body ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.aushilfe-modal-body li {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.aushilfe-modal-footer {
    padding: 1.5rem 2rem;
    background: var(--light);
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.aushilfe-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--white);
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

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

@media (max-width: 768px) {
    /* Deaktiviere Aushilfe-Popup komplett auf Mobile */
    .aushilfe-modal {
        display: none !important;
    }
    
    .aushilfe-modal-content {
        width: 95%;
        max-width: none;
    }
    
    .aushilfe-modal-header {
        padding: 1.5rem;
    }
    
    .aushilfe-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .aushilfe-modal-body {
        padding: 1.5rem;
    }
    
    .aushilfe-modal-footer {
        padding: 1rem;
        flex-direction: column;
    }
    
    .aushilfe-modal-footer .btn {
        width: 100%;
        min-height: 44px;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
    }
    
    .aushilfe-modal-close {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        top: 10px;
        right: 10px;
    }
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border-radius: 50%;
    color: var(--text);
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.location-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.location-map iframe {
    border-radius: var(--radius-lg);
    display: block;
}

.map-placeholder {
    height: 400px;
    background: var(--gradient-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: var(--white);
}

.map-placeholder i {
    font-size: 4rem;
    opacity: 0.5;
}

.map-placeholder p {
    opacity: 0.7;
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    max-width: 80%;
    margin: 0 auto;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 33.33%;
    background: linear-gradient(to bottom, rgba(74, 111, 165, 0.15), rgba(74, 111, 165, 0.08), transparent);
    pointer-events: none;
    transition: all 0.6s ease;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 33.33%;
    background: linear-gradient(to top, rgba(74, 111, 165, 0.35), rgba(74, 111, 165, 0.25), transparent);
    pointer-events: none;
    transition: all 0.6s ease;
}

.cta-wrapper {
    text-align: center;
    color: var(--white);
}

.cta-wrapper h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-wrapper > p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    padding: 20px 0 27px;
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    max-width: 80%;
    margin: 0 auto;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    margin-bottom: 16px;
    display: block;
    filter: invert(1);
}

.footer-brand > p {
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-links h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer-bottom i {
    color: var(--primary);
}

/* ===================================
   BACK TO TOP
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .courses-grid .course-card:last-child {
        grid-column: span 2;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/*
 * Tablet / schmaler Desktop: Menüzeile darf umbrechen (sonst overflow + body overflow-x:hidden = Abschneiden).
 */
@media (max-width: 1400px) and (min-width: 769px) {
    .navbar {
        width: 100% !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    .nav-container {
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 12px 10px !important;
        row-gap: 8px !important;
        column-gap: 6px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }

    .nav-menu {
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        white-space: normal !important;
        max-width: 100% !important;
        row-gap: 6px !important;
        column-gap: 6px !important;
        min-width: 0 !important;
    }

    .nav-menu > li {
        flex: 0 0 auto;
    }

    .nav-link {
        padding: 8px 12px !important;
        font-size: clamp(0.85rem, 0.4vw + 0.72rem, 1.05rem) !important;
    }

    .nav-link.btn-primary {
        white-space: nowrap !important;
    }
}

/* Tanzpartner-Embed (iframe): gleiche horizontale Spanne wie .navbar (80% zentriert / ab Tablet wie Navbar) */
#tanzpartner-gesucht-embed .tanzpartner-gesucht-embed-inner {
    width: 80%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

@media (max-width: 1400px) and (min-width: 769px) {
    #tanzpartner-gesucht-embed .tanzpartner-gesucht-embed-inner {
        width: 100%;
        max-width: 100vw;
    }
}

/* Tanzpartner-Embed aktiv: Scrollbalken im Hauptfenster ausblenden, Scrollen per Maus/Touch/Wheel bleibt */
html.discoswing-tp-embed-scrollbar-hidden {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
html.discoswing-tp-embed-scrollbar-hidden::-webkit-scrollbar {
    width: 0;
    height: 0;
}
html.discoswing-tp-embed-scrollbar-hidden body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
html.discoswing-tp-embed-scrollbar-hidden body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

@media (max-width: 768px) {
    #tanzpartner-gesucht-embed .tanzpartner-gesucht-embed-inner {
        width: 100%;
        max-width: 100vw;
        margin-left: 0;
        margin-right: 0;
    }

    /* ===================================
       MOBILE HEADER LAYOUT
       =================================== */
    /* Body - volle Breite, kein Rand, kein horizontaler Scroll */
    body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    html {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    /* Container - volle Breite, kein Padding */
    .container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Alle Sections - volle Breite, kein Rand */
    .features,
    .courses,
    .events,
    .rooms,
    .team,
    .location,
    .advertisement,
    .hero,
    .cta-section {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: 96px !important; /* 20% größer: 80px * 1.2 = 96px */
        min-height: 96px !important;
        padding: 0 !important;
        padding-left: 0 !important; /* Kein Padding links, damit Discokugel ganz links ist */
        padding-right: 15px !important; /* Padding nur rechts */
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: linear-gradient(to right, #334F81 0%, #45669C 100%) !important; /* Gradient aus Logo-M.jpg - von links nach rechts */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        z-index: 1000 !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }
    
    .navbar.scrolled {
        height: 96px !important; /* 20% größer */
        background: linear-gradient(to right, #334F81 0%, #45669C 100%) !important; /* Gradient aus Logo-M.jpg - von links nach rechts */
    }
    
    /* Logo für Mobile - mit Abstand zur Discokugel und Navigation positionieren */
    .nav-logo {
        position: relative !important;
        top: auto !important;
        left: 0 !important;
        transform: none !important;
        width: auto !important;
        max-width: calc(100vw - 90px - 80px) !important; /* Gesamtbreite minus Discokugel (90px) minus Navigation (80px) */
        height: auto !important;
        z-index: 1002 !important;
        margin: 0 !important;
        margin-left: 90px !important; /* Abstand für die Discokugel (80px + 10px) */
        margin-right: 80px !important; /* Abstand für die Navigation rechts */
        padding: 0 !important;
        flex: 0 0 auto !important;
        text-align: left !important;
        display: block !important; /* Block, da Discokugel jetzt außerhalb ist */
        overflow: hidden !important; /* Verhindert Überlauf */
    }
    
    /* Desktop Logo auf Mobile verstecken */
    .nav-logo .logo-img {
        display: none !important;
    }
    
    /* Logo.gif auf Mobile anzeigen (invertiert, animiert von links nach rechts) */
    .nav-logo .logo-img-mobile {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        max-width: none !important;
        min-height: 96px !important;
        height: 96px !important;
        max-height: 96px !important;
        object-fit: contain !important;
        object-position: left center !important;
        filter: invert(1) !important;
        animation: logoSlideMobile 32s linear infinite;
        position: relative;
        flex-shrink: 0 !important; /* Logo darf nicht schrumpfen */
        z-index: 2 !important; /* Über der Discokugel */
        margin: 0 !important;
        padding: 0 !important;
        will-change: transform !important; /* Performance-Optimierung für Animation */
    }
    
    @keyframes logoSlideMobile {
        0% {
            transform: translateX(0);
        }
        50% {
            transform: translateX(calc(100vw - 100% - 90px - 80px)); /* Stoppt vor Navigation (90px Discokugel + 80px Navigation) */
        }
        100% {
            transform: translateX(0);
        }
    }
    
    /* Discokugel für Mobile - oben rechts verstecken */
    .header-disco-ball {
        display: none !important; /* Auf Mobile oben rechts verstecken */
    }
    
    .disco-ball-fallback-header {
        display: none !important; /* Auf Mobile oben rechts verstecken */
    }
    
    /* Discokugel für Mobile - GANZ LINKS am Bildschirmrand (außerhalb nav-logo) */
    .nav-logo .header-disco-ball-mobile {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important; /* Fixed für Position am Bildschirmrand */
        left: 0 !important; /* Ganz links am Bildschirmrand */
        top: 15px !important; /* Weiter nach unten */
        width: auto !important;
        height: 80px !important;
        min-height: 70px !important;
        max-width: 80px !important;
        max-height: 80px !important;
        object-fit: contain !important;
        z-index: 1003 !important; /* Über der Navigation */
        animation: rotate 20s linear infinite, float 6s ease-in-out infinite;
        filter: drop-shadow(0 10px 20px rgba(74, 111, 165, 0.3));
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Blaue Fallback-Kugel komplett verstecken */
    .nav-logo .disco-ball-fallback-header-mobile {
        display: none !important; /* Komplett verstecken */
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Navigation Container für Mobile - rechts oben */
    .nav-container {
        position: absolute !important;
        top: 0 !important;
        left: auto !important;
        right: 0 !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        display: flex !important;
        align-items: flex-start !important; /* Oben ausrichten */
        justify-content: flex-end !important;
        height: auto !important;
        min-height: auto !important;
        z-index: 1003 !important;
    }
    
    .navbar.scrolled .nav-container {
        top: auto !important;
    }
    
    /* Hamburger Menu Button für Mobile - rechts oben */
    .nav-toggle {
        display: flex !important;
        z-index: 1004 !important;
        position: absolute !important;
        top: 10px !important; /* Oben positioniert */
        right: 10px !important; /* Rechts positioniert */
        margin: 0 !important;
        order: 999 !important;
        min-width: 44px !important; /* Mindest-Touch-Bereich für iOS */
        min-height: 44px !important; /* Mindest-Touch-Bereich für iOS */
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3) !important; /* Touch-Feedback für iOS */
        -webkit-user-select: none !important;
        user-select: none !important;
        touch-action: manipulation !important; /* Verhindert Doppel-Tap-Zoom */
    }
    
    /* iPhone-spezifischer Toggle-Button - größerer Touch-Bereich */
    .nav-toggle-iphone {
        min-width: 50px !important; /* Größerer Touch-Bereich für iPhone */
        min-height: 50px !important;
        padding: 12px !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.4) !important;
        touch-action: manipulation !important;
        -webkit-user-select: none !important;
        display: flex !important; /* WICHTIG: Flexbox für sichtbare Spans */
        flex-direction: column !important; /* Spans vertikal anordnen */
        gap: 5px !important; /* Abstand zwischen den Linien */
        user-select: none !important;
        cursor: pointer !important;
        transform: translateZ(0) !important; /* Hardware-Beschleunigung */
    }
    
    .nav-toggle-iphone:active {
        transform: translateZ(0) scale(0.95) !important;
        opacity: 0.8 !important;
    }
    
    .nav-toggle-iphone span {
        display: block !important; /* WICHTIG: Sichtbar machen */
        background: #ffffff !important; /* Explizit weiß */
        width: 28px !important; /* Etwas größer für bessere Sichtbarkeit */
        height: 3px !important;
        border-radius: 2px !important;
        transition: transform 0.3s ease, opacity 0.3s ease !important;
        opacity: 1 !important; /* Sichtbar */
        visibility: visible !important;
        transform: none !important; /* Keine Transformation wenn nicht aktiv */
    }
    
    /* WICHTIG: Spans als Hamburger-Linien wenn Menü geschlossen */
    .nav-toggle-iphone:not(.active) span {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: #ffffff !important;
    }
    
    .nav-toggle span {
        display: block !important; /* WICHTIG: Sichtbar machen */
        background: #ffffff !important; /* Explizit weiß */
        width: 25px !important;
        height: 3px !important;
        border-radius: 2px !important;
        transition: transform 0.3s ease, opacity 0.3s ease !important;
        opacity: 1 !important; /* Sichtbar */
        visibility: visible !important;
        transform: none !important; /* Keine Transformation wenn nicht aktiv */
    }
    
    /* WICHTIG: Spans als Hamburger-Linien wenn Menü geschlossen */
    .nav-toggle:not(.active) span {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: #ffffff !important;
    }
    
    /* Content Padding für Mobile - damit Header nicht verdeckt */
    /* Body Padding damit Content nicht verdeckt wird - nur oben */
    body {
        padding-top: 80px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
    }
    
    /* Hero Section Anpassung */
    .hero {
        margin-top: 0 !important;
        padding-top: 160px !important; /* Direkt unter nav-container */
        align-items: flex-start !important;
        min-height: calc(100vh - 80px) !important;
    }
    
    /* Alle Sections haben genug Abstand nach oben */
    .courses,
    .events,
    .rooms,
    .team,
    .location,
    .advertisement {
        padding-top: 60px !important;
    }
    
    .features {
        padding-top: 20px !important;
    }
    
    /* Team Section auf Mobile - volle Breite ohne Rand */
    .team {
        max-width: 100% !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .team-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
    }
    
    .team-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
    
    /* Hero Title Optimierung für Mobile - Text umbrechen */
    .title-accent {
        white-space: normal !important;
        word-break: break-word !important;
    }
    
    /* Hero Subtitle Optimierung für Mobile */
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.3rem);
        line-height: 1.5;
        margin-bottom: 40px;
        padding: 0 15px;
    }
    
    .hero-subtitle-left {
        text-align: center;
        line-height: 1.4;
        margin-bottom: 6px;
    }
    
    .hero-subtitle-right {
        text-align: center;
        line-height: 1.4;
        margin-top: 0.5rem;
    }
    
    .nav-menu {
        position: fixed !important;
        top: 96px !important; /* Startet direkt unter dem Header (96px Höhe) */
        right: -100% !important;
        transition: right 0.2s ease !important; /* Schnellere Transition für bessere Performance */
        will-change: right !important; /* Performance-Optimierung */
        width: 80% !important;
        max-width: 350px !important;
        height: calc(100vh - 96px) !important; /* Volle Höhe minus Header */
        background: #1e3a5f !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 20px 40px 40px !important;
        transition: right 0.2s ease !important; /* Schnellere Transition für bessere Performance */
        will-change: right !important; /* Performance-Optimierung */
        box-shadow: var(--shadow-lg) !important;
        z-index: 1005 !important; /* Über dem Header (z-index: 1000) */
        overflow-y: auto !important;
    }
    
    .nav-menu.active {
        right: 0 !important;
    }

    /* Ganze Zeile klickbar: <li> spannt über die Panelbreite (nicht nur Textbreite) */
    .nav-menu > li {
        width: 100% !important;
        max-width: 100% !important;
        align-self: stretch !important;
        box-sizing: border-box !important;
    }

    .nav-menu .nav-link {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* iPhone-spezifisches Menü - optimiert für Touch-Events - HÖHERE SPEZIFITÄT */
    ul.nav-menu.nav-menu-iphone,
    .nav-menu.nav-menu-iphone {
        position: fixed !important;
        top: 96px !important;
        right: -100% !important;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        width: 85% !important;
        max-width: 380px !important;
        height: calc(100vh - 96px) !important;
        background: #1e3a5f !important;
        display: flex !important; /* WICHTIG: Flexbox für sichtbares Menü */
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 25px 30px 40px !important;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5) !important;
        z-index: 1005 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important; /* Smooth scrolling auf iOS */
        transform: translateZ(0) !important; /* Hardware-Beschleunigung */
        backface-visibility: hidden !important; /* Verhindert Flackern */
        visibility: visible !important; /* Sichtbar machen */
        opacity: 1 !important; /* Volle Opazität */
        pointer-events: auto !important; /* WICHTIG: Ermöglicht Interaktion */
    }
    
    ul.nav-menu.nav-menu-iphone.active,
    .nav-menu.nav-menu-iphone.active {
        right: 0 !important;
        transform: translateZ(0) !important;
        display: flex !important; /* Sicherstellen, dass es angezeigt wird */
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important; /* WICHTIG: Ermöglicht Interaktion */
    }
    
    /* Zusätzliche Sicherheit: Überschreibe normale nav-menu Styles für iPhone */
    body.is-iphone .nav-menu.nav-menu-iphone {
        display: flex !important;
        pointer-events: auto !important;
    }
    
    body.is-iphone .nav-menu.nav-menu-iphone.active {
        right: 0 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    /* ÜBERSCHREIBE normale nav-menu Styles komplett für iPhone */
    body.is-iphone ul.nav-menu.nav-menu-iphone,
    body.is-iphone .nav-menu.nav-menu-iphone {
        position: fixed !important;
        display: flex !important;
    }
    
    body.is-iphone ul.nav-menu.nav-menu-iphone.active,
    body.is-iphone .nav-menu.nav-menu-iphone.active {
        right: 0 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav-link {
        color: #ffffff !important;
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        min-height: 44px !important; /* Mindest-Touch-Bereich für iOS */
        display: flex !important;
        align-items: center !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2) !important;
        touch-action: manipulation !important;
    }
    
    /* iPhone-spezifische Links - größere Touch-Bereiche */
    .nav-menu-iphone .nav-link {
        min-height: 50px !important; /* Größerer Touch-Bereich für iPhone */
        padding: 18px 0 !important;
        font-size: 1.1rem !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3) !important;
        touch-action: manipulation !important;
        -webkit-user-select: none !important;
        user-select: none !important;
        cursor: pointer !important;
        position: relative !important;
    }
    
    .nav-menu-iphone .nav-link:active {
        background: rgba(255, 255, 255, 0.15) !important;
        transform: scale(0.98) !important;
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
    }
    
    .nav-link.btn-primary {
        background: linear-gradient(135deg, #ff9800 0%, #ff8c00 30%, #ff7f00 60%, #e67300 100%);
        background-size: 200% 200%;
        animation: gradientMove 3s ease infinite;
        color: var(--white);
        border: none;
        border-radius: var(--radius-lg);
        margin-top: 20px;
        text-align: center;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle span {
        display: block !important; /* WICHTIG: Immer sichtbar */
        background: #ffffff !important; /* WICHTIG: Weiß auf dunklem Hintergrund */
        width: 25px !important;
        height: 3px !important;
        border-radius: 2px !important;
        transition: transform 0.15s ease, opacity 0.15s ease !important; /* Schnellere Transition */
        will-change: transform, opacity !important; /* Performance-Optimierung */
        opacity: 1 !important; /* Immer sichtbar */
        visibility: visible !important;
        transform: none !important; /* Keine Transformation standardmäßig */
    }
    
    /* WICHTIG: Spans als Hamburger-Linien wenn NICHT aktiv */
    .nav-toggle:not(.active) span:nth-child(1),
    .nav-toggle:not(.active) span:nth-child(2),
    .nav-toggle:not(.active) span:nth-child(3) {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: #ffffff !important;
        width: 25px !important;
        height: 3px !important;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .courses-grid .course-card:last-child {
        grid-column: auto;
    }
    
    .courses-cta {
        grid-template-columns: 1fr;
    }
    
    .cta-card {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .cta-content {
        flex-direction: column;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .location-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social,
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    /* Kompakter Footer: max. 2 Zeilen (Links eine Zeile, darunter nur Copyright) */
    .footer {
        max-width: 100% !important;
        padding: 6px 0 8px !important;
    }

    .footer .footer-simple-nav {
        padding: 0.2rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    }

    .footer .footer-simple-nav-inner {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 0.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 4px 2px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none;
    }

    .footer .footer-simple-nav-inner::-webkit-scrollbar {
        display: none;
    }

    .footer .footer-link {
        font-size: 0.72rem !important;
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    .footer .footer-simple-meta {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.2rem 6px 0 !important;
        gap: 0 !important;
        flex-wrap: nowrap !important;
    }

    .footer .footer-made {
        display: none !important;
    }

    .footer .footer-copyright {
        font-size: 0.65rem !important;
        text-align: center !important;
        line-height: 1.25 !important;
    }
    
    .hero-stats {
        flex-direction: column !important;
        gap: 20px !important;
        padding: 30px 20px !important;
    }
    
    .stat {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    /* ===================================
       KLEINE MOBILE SCREENS (HOCHFORMAT)
       =================================== */
    /* Body - volle Breite, kein Rand, kein horizontaler Scroll */
    body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    html {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    /* Container - volle Breite, kein Padding */
    .container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Alle Sections - volle Breite, kein Rand */
    .features,
    .courses,
    .events,
    .rooms,
    .team,
    .location,
    .advertisement,
    .hero,
    .cta-section {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .navbar {
        height: 84px !important; /* 20% größer: 70px * 1.2 = 84px */
        min-height: 84px !important;
        padding: 0 !important;
        padding-left: 0 !important; /* Kein Padding links, damit Discokugel ganz links ist */
        padding-right: 10px !important; /* Padding nur rechts */
        max-width: 100vw !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        justify-content: space-between !important;
        background: linear-gradient(to right, #334F81 0%, #45669C 100%) !important; /* Gradient aus Logo-M.jpg - von links nach rechts */
        display: flex !important;
        align-items: center !important;
    }
    
    /* Navigation Container für kleine Mobile - rechts ausrichten */
    .nav-container {
        justify-content: flex-end !important;
        margin-left: auto !important; /* Schiebt Container nach rechts */
        right: 0 !important;
    }
    
    /* Hamburger Menu Button für kleine Mobile - rechts oben */
    .nav-toggle {
        display: flex !important;
        z-index: 1004 !important;
        position: absolute !important;
        top: 10px !important; /* Oben positioniert */
        right: 10px !important; /* Rechts positioniert */
        margin: 0 !important;
        order: 999 !important;
        min-width: 44px !important; /* Mindest-Touch-Bereich für iOS */
        min-height: 44px !important; /* Mindest-Touch-Bereich für iOS */
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3) !important; /* Touch-Feedback für iOS */
        -webkit-user-select: none !important;
        user-select: none !important;
        touch-action: manipulation !important; /* Verhindert Doppel-Tap-Zoom */
    }
    
    /* iPhone-spezifischer Toggle für kleine Mobile */
    .nav-toggle-iphone {
        min-width: 50px !important;
        min-height: 50px !important;
        padding: 12px !important;
    }
    
    /* iPhone-spezifisches Menü für kleine Mobile */
    .nav-menu-iphone {
        width: 90% !important;
        max-width: 400px !important;
        padding: 20px 25px 35px !important;
    }
    
    .nav-menu-iphone .nav-link {
        min-height: 52px !important; /* Noch größerer Touch-Bereich auf kleinen Screens */
        padding: 20px 0 !important;
        font-size: 1.15rem !important;
    }
    
    .navbar.scrolled {
        height: 70px !important;
        background: linear-gradient(to right, #334F81 0%, #45669C 100%) !important; /* Gradient aus Logo-M.jpg - von links nach rechts */
    }
    
    .nav-logo {
        width: auto !important;
        max-width: calc(100vw - 82px - 70px) !important; /* Gesamtbreite minus Discokugel (82px) minus Navigation (70px) */
        padding: 0 !important;
        left: 0 !important;
        flex: 0 0 auto !important;
        text-align: left !important;
        display: block !important; /* Block, da Discokugel jetzt außerhalb ist */
        overflow: hidden !important; /* Verhindert Überlauf */
        margin-left: 82px !important; /* Abstand für die Discokugel (70px + 12px) */
        margin-right: 70px !important; /* Abstand für die Navigation rechts */
    }
    
    .nav-logo .logo-img {
        display: none !important;
    }
    
    /* Discokugel auf sehr kleinen Mobile-Geräten - GANZ LINKS am Bildschirmrand */
    .nav-logo .header-disco-ball-mobile {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important; /* Fixed für Position am Bildschirmrand */
        left: 0 !important; /* Ganz links am Bildschirmrand */
        top: 12px !important; /* Weiter nach unten */
        width: auto !important;
        height: 70px !important;
        min-height: 60px !important;
        max-width: 70px !important;
        max-height: 70px !important;
        object-fit: contain !important;
        z-index: 1003 !important; /* Über der Navigation */
        animation: rotate 20s linear infinite, float 6s ease-in-out infinite;
        filter: drop-shadow(0 10px 20px rgba(74, 111, 165, 0.3));
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Blaue Fallback-Kugel komplett verstecken */
    .nav-logo .disco-ball-fallback-header-mobile {
        display: none !important; /* Komplett verstecken */
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Logo.gif auf kleine Mobile anzeigen (invertiert, animiert) */
    .nav-logo .logo-img-mobile {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        max-width: none !important;
        min-height: 80px !important;
        height: 80px !important;
        max-height: 80px !important;
        object-fit: contain !important;
        object-position: left center !important;
        filter: invert(1) !important;
        animation: logoSlideMobileSmall 32s linear infinite;
        position: relative;
        flex-shrink: 0 !important; /* Logo darf nicht schrumpfen */
        z-index: 2 !important; /* Über der Discokugel */
        margin: 0 !important;
        padding: 0 !important;
        will-change: transform !important; /* Performance-Optimierung für Animation */
    }
    
    @keyframes logoSlideMobileSmall {
        0% {
            transform: translateX(0);
        }
        50% {
            transform: translateX(calc(100vw - 100% - 82px - 70px)); /* Stoppt vor Navigation (82px Discokugel + 70px Navigation) */
        }
        100% {
            transform: translateX(0);
        }
    }
    
    /* Discokugel für kleine Mobile - NICHT anzeigen */
    .nav-logo .header-disco-ball {
        display: none !important;
    }
    
    .nav-logo .disco-ball-fallback-header {
        display: none !important;
    }
    
    /* Webshop: kein fester Top-Padding — script.js setzt per inline nur die Navbar-Höhe */
    .webshop-section {
        padding-top: 0;
    }

    /* Mobile Menu für kleine Screens - startet unter Header */
    .nav-menu {
        top: 84px !important; /* Startet direkt unter dem Header (84px Höhe) */
        height: calc(100vh - 84px) !important; /* Volle Höhe minus Header */
        z-index: 1005 !important; /* Über dem Header */
    }
    
    /* Body Padding damit Content nicht verdeckt wird - nur oben */
    body {
        padding-top: 84px !important; /* 20% größer: 70px * 1.2 = 84px */
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
    }
    
    /* Hero Section Anpassung */
    .hero {
        padding-top: 140px !important; /* Direkt unter nav-container auf Mobile */
        align-items: flex-start !important;
        min-height: calc(100vh - 70px) !important;
    }
    
    /* Alle Sections haben genug Abstand nach oben */
    .courses,
    .events,
    .rooms,
    .team,
    .location,
    .advertisement {
        padding-top: 50px !important;
    }
    
    .features {
        padding-top: 20px !important;
    }
    
    /* Hero Title Optimierung für kleine Mobile - Text umbrechen */
    .title-accent {
        white-space: normal !important;
        word-break: break-word !important;
    }
    
    /* Hero Subtitle Optimierung für kleine Mobile Screens (Hochformat) */
    .hero-subtitle {
        font-size: clamp(0.9rem, 4.5vw, 1.2rem);
        line-height: 1.4;
        margin-bottom: 35px;
        padding: 0 10px;
    }
    
    .hero-subtitle-left {
        text-align: center;
        line-height: 1.3;
        margin-bottom: 8px;
        display: block;
    }
    
    .hero-subtitle-right {
        text-align: center;
        line-height: 1.3;
        display: block;
        margin-top: 0.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-lg {
        width: 100%;
        max-width: 280px;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        top: 10px;
        left: 10px;
        padding: 8px 12px;
    }
    
    /* Team Section auf kleinen Mobile - volle Breite ohne Rand */
    .team {
        max-width: 100% !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .team-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
    }
    
    .team-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
}

.termin-number {
    background-image: linear-gradient(white, black);
}
