:root {
  --font-main: 'Inter', 'Segoe UI', sans-serif;
  --accent-neon: #e94560;
  --text-main: #f5f5f5;
  --text-muted: #dddddd;
}

body, html { 
  margin: 0; padding: 0; font-family: var(--font-main); color: var(--text-main); 
  background-color: #050505; overflow-x: hidden; scroll-behavior: smooth; 
}

/* Auth / Preview Styles */
#start-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; text-align: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}
#start-overlay.hidden { opacity: 0; visibility: hidden; }
.start-content h1 { font-size: 3.5rem; color: #e94560; margin-bottom: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: 2px;}
.start-content p { color: #aaa; margin-bottom: 40px; font-size: 1.2rem; }
.btn-primary { padding: 15px 40px; background: #e94560; color: #fff; font-size: 1.5rem; font-weight: 900; text-transform: uppercase; border: none; border-radius: 50px; cursor: pointer; transition: all 0.3s; letter-spacing: 2px;}
.btn-primary:hover { background: #fff; color: #e94560; transform: scale(1.05); }

.preview-blur {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(45deg, #1a1a2e, #16213e, #0f3460, #e94560); background-size: 400% 400%;
  filter: blur(15px); z-index: 1; opacity: 0.6;
}
.login-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; z-index: 10; background: rgba(0,0,0,0.6);
}
.login-box {
  background: rgba(10, 10, 10, 0.95); padding: 50px 40px; border-radius: 16px; text-align: center; border: 1px solid #333; box-shadow: 0 20px 50px rgba(0,0,0,0.9); max-width: 400px; width: 90%; backdrop-filter: blur(10px);
}
.login-box h1 { margin-top: 0; color: #fff; text-transform: uppercase; letter-spacing: 3px; font-weight: 900;}
.login-box p { color: var(--text-muted); margin-bottom: 30px; font-size: 14px;}
.login-box input {
  padding: 15px; border: 1px solid #444; border-radius: 8px; width: 100%; box-sizing: border-box; background: #1a1a1a; color: #fff; margin-bottom: 20px; font-size: 16px; text-align: center;
}
.login-box input:focus { outline: none; border-color: #fff; }
.login-box button {
  padding: 15px 30px; background-color: #fff; color: #000; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; font-weight: 900; width: 100%; transition: all 0.3s; text-transform: uppercase; letter-spacing: 1px;
}
.login-box button:hover { background-color: #ccc; transform: translateY(-2px); }
#login-error { color: #ff5e7e; margin-bottom: 15px; display: none; font-weight: bold; }

/* Sticky Header */
header.top-menu {
  position: fixed; top: 0; width: 100%; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(15px);
  padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; 
  z-index: 100; border-bottom: 1px solid rgba(255,255,255,0.05); box-sizing: border-box;
}
header.top-menu .logo { font-weight: 900; color: #fff; letter-spacing: 3px; text-transform: uppercase;}
header.top-menu nav { display: flex; gap: 25px; }
header.top-menu nav a { color: #ccc; text-decoration: none; font-size: 13px; font-weight: bold; text-transform: uppercase; letter-spacing: 1.5px; transition: color 0.3s; }
header.top-menu nav a:hover { color: #fff; }
.logout-btn { color: #888; text-decoration: none; font-size: 12px; font-weight: bold; text-transform: uppercase; border: 1px solid #444; padding: 5px 10px; border-radius: 20px; transition: all 0.3s;}
.logout-btn:hover { background: #fff; color: #000; border-color: #fff; }

/* --- TIMELINE (Links) --- */
.timeline-nav {
  position: fixed; left: 30px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 20px; z-index: 90;
  background: rgba(0,0,0,0.3); backdrop-filter: blur(12px); padding: 30px 15px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.timeline-nav::before {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%); top: 30px; bottom: 30px; width: 2px; background: rgba(255,255,255,0.15); z-index: -1;
}
.timeline-day-marker {
  color: var(--accent-neon); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; text-align: center; margin: 5px 0 -5px 0; background: rgba(0,0,0,0.8); padding: 4px 8px; border-radius: 10px; border: 1px solid rgba(233, 69, 96, 0.5); z-index: 2;
}
.timeline-dot {
  width: 12px; height: 12px; border-radius: 50%; background: #333; border: 2px solid #111; position: relative; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); text-decoration: none; margin: 0 auto; display: block; flex-shrink: 0;
}
.timeline-dot:hover, .timeline-dot.active {
  background: #fff; border-color: #fff; transform: scale(1.6); box-shadow: 0 0 15px rgba(255,255,255,0.8);
}
.timeline-label {
  position: absolute; left: 30px; top: 50%; transform: translateY(-50%) translateX(-15px); background: rgba(0,0,0,0.7); padding: 6px 15px; border-radius: 25px; color: #fff; font-size: 11px; font-weight: 800; white-space: nowrap; opacity: 0; pointer-events: none; transition: all 0.3s ease; backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.1); letter-spacing: 1px; text-transform: uppercase;
}
.timeline-dot:hover .timeline-label, .timeline-dot.active .timeline-label { opacity: 1; transform: translateY(-50%) translateX(0); }

/* --- SECTIONS BASE --- */
.content-wrapper { padding-left: 100px; }
.section { 
  padding: 100px 40px; min-height: 85vh; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; box-sizing: border-box; overflow: hidden;
}
.section h2 { font-size: 3rem; text-transform: uppercase; margin-bottom: 20px; text-align: center; font-weight: 900; letter-spacing: -1px; line-height: 1.1; max-width: 900px;}
.section p { max-width: 800px; text-align: center; font-size: 1.2rem; line-height: 1.8; margin-bottom: 20px; font-weight: 400;}

/* Floating Audio Control */
.floating-audio {
  position: fixed; bottom: 30px; right: 30px; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
  padding: 12px 25px; border-radius: 30px; border: 1px solid #444; color: #fff;
  cursor: pointer; z-index: 100; font-weight: bold; font-size: 14px; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5); transition: all 0.3s;
}
.floating-audio:hover { background: #fff; color: #000; border-color: #fff; transform: translateY(-3px); }
.floating-audio.playing { border-color: var(--accent-neon); box-shadow: 0 0 15px rgba(233, 69, 96, 0.4); }

/* Masonry Grid & Show More */
.masonry-grid {
  column-count: 3; column-gap: 20px; width: 100%; max-width: 1200px; margin-top: 30px;
}
.masonry-item {
  break-inside: avoid; margin-bottom: 20px; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.4);
  transition: transform 0.3s; position: relative;
}
.hidden-gallery-item { display: none; }
.masonry-item:hover { transform: scale(1.02); border-color: rgba(255,255,255,0.3); }
.masonry-item img { width: 100%; display: block; }

.btn-show-more {
  margin-top: 20px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3);
  color: #fff; padding: 12px 25px; border-radius: 30px; font-weight: bold; font-size: 14px;
  cursor: pointer; transition: all 0.3s; display: flex; align-items: center; gap: 10px;
}
.btn-show-more:hover { background: #fff; color: #000; }

/* Video Lazy Loading */
.video-wrapper { cursor: pointer; aspect-ratio: 9/16; background: #050505; }
.video-wrapper.landscape { aspect-ratio: 16/9; }
.video-poster { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; transition: filter 0.3s; }
.video-wrapper:hover .video-poster { filter: brightness(1.2); }
.video-wrapper video { width: 100%; height: 100%; object-fit: cover; display: block; }

.placeholder-box { width: 100%; max-width: 800px; height: 250px; background: rgba(0,0,0,0.4); border: 1px dashed rgba(255,255,255,0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-top: 30px; color: #888; font-weight: bold; }
.placeholder-img { display: flex; align-items: center; justify-content: center; color: #666; font-weight: bold; background: rgba(255,255,255,0.02); }

/* ========================================================
   DIE 15 SZENEN - MOODS & COLORS
   ======================================================== */

#intro { background: #050505; }
#intro h1 { font-size: 5vw; margin: 0; text-transform: uppercase; letter-spacing: 2px; color: #fff; font-weight: 900; text-align: center; line-height: 1; text-shadow: 0 0 30px rgba(255,255,255,0.2);}

#step1-fahrt { background: linear-gradient(180deg, #050505, #111a22); }
#step1-fahrt h2 { color: #8da9c4; }

#step2-bergwerk { 
  background-color: #1a1a1a; 
  background-image: repeating-linear-gradient(45deg, #151515 25%, transparent 25%, transparent 75%, #151515 75%, #151515), repeating-linear-gradient(45deg, #151515 25%, #1a1a1a 25%, #1a1a1a 75%, #151515 75%, #151515);
  background-size: 15px 15px; color: #aaa; 
}
#step2-bergwerk h2 { color: #666; text-shadow: 2px 2px 0 #000; }

#step3-bier { background: radial-gradient(circle at 50% 50%, #2b1111 0%, #0a0404 100%); border-top: 1px solid #4a1d1d; }
#step3-bier h2 { color: #ff9933; text-shadow: 0 0 15px rgba(255,153,51,0.3); }

#step4-rally { background: #1c1109; border-top: 3px solid #d47e15; }
#step4-rally h2 { color: #f2a65a; }

#step5-hotel { background: linear-gradient(135deg, #0a1f26, #040c0f); }
#step5-hotel h2 { color: #00f3ff; }

#step6-city { background: radial-gradient(circle at top right, #2b1055, #0a0a0a); border-top: 1px solid #8a2be2; }
#step6-city h2 { color: #ff00ea; text-shadow: 0 0 15px #ff00ea; }

#step7-tanz { background: linear-gradient(to bottom, #190930, #0d041a); }
#step7-tanz h2 { color: #b57edc; filter: drop-shadow(0 0 10px #b57edc); }

#step8-split { background: linear-gradient(90deg, #111 50%, #1a1a1a 50%); }
#step8-split h2 { color: #fff; letter-spacing: 5px; }

/* =========================================
   HERO
========================================= */
.hero {
    height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    background: url('../media.php?file=herobild.jpg') center center/cover no-repeat;
}
.hero::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6); z-index: 1;
}
.hero .container { position: relative; z-index: 2; text-align: center; }
.hero h1 { font-size: 4.5rem; margin-bottom: 20px; font-weight: 900; letter-spacing: -1px; text-transform: uppercase; text-shadow: 0 0 30px rgba(0,0,0,0.8); }

#step9-wonderland { 
  background: linear-gradient(135deg, #ff00cc, #333399, #00f3ff); background-size: 300% 300%; animation: Psychedelic 10s ease infinite; color: #fff; 
}
@keyframes Psychedelic { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
#step9-wonderland h2 { color: #fff; text-shadow: 3px 3px 0 #000, 6px 6px 0 #ff00ea; font-style: italic; transform: rotate(-2deg); }
#step9-wonderland p { font-weight: 600; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }

#step10-scooter { background: linear-gradient(180deg, #081c10, #0a170d); border-top: 2px solid #2ecc71; }
#step10-scooter h2 { color: #2ecc71; }

#step11-discgolf { background: #0b1a0e; }
#step11-discgolf h2 { color: #82cc8b; }

#step12-burger { background: radial-gradient(circle at center, #261f14, #0a0805); border-top: 1px solid #5a462d; }
#step12-burger h2 { color: #d4a373; }

#step13-party { 
  background: #0b0c10; 
  background-image: linear-gradient(45deg, transparent 48%, rgba(0, 243, 255, 0.05) 50%, transparent 52%), linear-gradient(-45deg, transparent 48%, rgba(255, 0, 234, 0.05) 50%, transparent 52%); 
  background-size: 60px 60px; border-top: 1px solid #00f3ff;
}
#step13-party h2 { color: #ffd700; text-shadow: 0 0 20px rgba(255,215,0,0.5); }

#step14-sturz { background: #000; border-top: 15px solid #800000; }
#step14-sturz h2 { color: #ff0000; text-shadow: 0 0 30px #ff0000; letter-spacing: 5px; }
#step14-sturz p { color: #ccc; }

#step15-abfahrt { background: linear-gradient(180deg, #11151c, #050505); }
#step15-abfahrt h2 { color: #6b7a8f; }

/* ======================================================== */

/* Buffalo Counter (Dunkelrot) */
#buffalo { background: #1a0505; border-top: 1px solid #330000; }
#buffalo h2 { color: #ff3333; }
.buffalo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; width: 100%; max-width: 900px; margin-top: 40px; }
.buffalo-card { background: #000; border: 2px solid #330000; border-radius: 12px; padding: 25px 10px; text-align: center; cursor: pointer; transition: all 0.2s; user-select: none; }
.buffalo-card:active { transform: scale(0.92); }
.buffalo-card.clicked { border-color: #ff3333; background: #220000; box-shadow: 0 0 20px rgba(255, 51, 51, 0.6); }
.buffalo-card h3 { margin: 0 0 10px 0; font-size: 1.1rem; color: #fff; text-transform: uppercase;}
.buffalo-card .count { font-size: 2.5rem; font-weight: 900; color: #ff3333; }
.total-sarcasm { margin-top: 20px; font-size: 1.2rem; color: #fff; background: #330000; padding: 10px 25px; border-radius: 30px; font-weight: bold; letter-spacing: 1px;}

/* Ehrenmänner & Männerpartie Profile */
#ehrenmaenner { background: #0a0a0a; border-top: 1px solid #222;}
#ehrenmaenner h2 { color: #eee; }
#maennerpartie { background: #0f1215; border-top: 1px solid #1a1f24; }
#maennerpartie h2 { color: #aaa; }

.crew-grid {
    display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; max-width: 1000px; margin-top: 30px;
}
.crew-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); 
    padding: 20px; border-radius: 16px; transition: transform 0.3s, background 0.3s;
    text-align: center; width: 180px; display: flex; flex-direction: column; align-items: center;
}
.crew-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-5px); }

.crew-avatar {
    width: 100px; height: 100px; border-radius: 50%; object-fit: cover; 
    margin-bottom: 15px; border: 3px solid #333; background: #000;
}
.ehrenmann .crew-avatar { border-color: #e94560; box-shadow: 0 0 15px rgba(233, 69, 96, 0.4); }
.crew-card h3 { margin: 0 0 5px 0; color: #fff; text-transform: uppercase; letter-spacing: 1px; font-size: 1.1rem; }
.crew-card p { margin: 0; color: #888; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; font-weight: bold;}
.ehrenmann h3 { color: #e94560; }

/* Random Buffalo Gamification Button */
.random-buffalo-btn {
  position: absolute; background: #e94560; color: #fff; border: 2px solid #fff;
  border-radius: 30px; padding: 10px 20px; font-weight: 900; font-size: 14px;
  cursor: pointer; box-shadow: 0 0 20px rgba(233, 69, 96, 0.8);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 10; text-transform: uppercase; animation: Pulse 2s infinite;
}
.random-buffalo-btn:hover { background: #ff0033; transform: scale(1.2) !important; }
@keyframes Pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); box-shadow: 0 0 30px rgba(233, 69, 96, 1); } 100% { transform: scale(1); } }

/* Mobile Optimization */
@media (max-width: 900px) {
    header.top-menu nav { display: none; }
    
    /* Timeline auf Mobile platzsparend an den linken Rand heften */
    .timeline-nav {
        left: 5px; right: auto; transform: translateY(-50%) scale(0.8);
        background: rgba(0,0,0,0.8); padding: 20px 8px; border-radius: 30px; gap: 12px;
    }
    .timeline-label { display: none; }
    
    /* Content schiebt sich rechts daneben, so verdeckt nichts */
    .content-wrapper { padding-left: 45px; }
    .section { padding: 80px 20px 80px 0; }
    .section h2 { font-size: 2.2rem; }
    
    .floating-audio { bottom: 20px; left: 20px; right: auto; padding: 10px 15px; font-size: 12px; z-index: 100; }
    .masonry-grid { column-count: 2; }
}

/* =========================================
   BEFORE / AFTER SLIDER
========================================= */
.ba-slider-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 3/4; /* Hochformat Portrait */
    margin: 30px auto;
    border-radius: 16px;
    background: #000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    overflow: hidden;
    touch-action: pan-y; /* Erlaubt vertikales Scrollen, blockiert horizontales Wischen fürs Sliden */
}
.ba-slider-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    pointer-events: none;
    user-select: none;
}
.ba-img-foreground {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}
.ba-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
    margin: 0;
}
.ba-slider-line {
    position: absolute;
    top: 0; left: 50%;
    width: 4px;
    height: 100%;
    background: #e94560;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 0 10px rgba(0,0,0,0.8);
}
.ba-slider-btn {
    position: absolute;
    top: 50%; left: 50%;
    width: 40px; height: 40px;
    background: #fff;
    border: 4px solid #e94560;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 6;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}
.ba-slider-btn::after, .ba-slider-btn::before {
    content: '';
    width: 0; height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}
.ba-slider-btn::before { border-right: 8px solid #e94560; margin-right: 4px; }
.ba-slider-btn::after { border-left: 8px solid #e94560; margin-left: 4px; }

/* =========================================
   BUFFALO GAMIFICATION - LOCKED IMAGES
========================================= */
.locked-buffalo {
    position: relative;
    pointer-events: none; /* Verhindert Klicks / Video-Playback im gesperrten Zustand */
}
.locked-buffalo img, .locked-buffalo .video-poster {
    filter: blur(15px) grayscale(50%);
    transition: filter 1.5s ease-in-out;
}
.lock-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-weight: 900; text-transform: uppercase; text-align: center;
    z-index: 5;
    transition: opacity 1.5s ease-in-out;
    border-radius: inherit;
    pointer-events: none;
}
.lock-overlay i { width: 48px; height: 48px; margin-bottom: 10px; color: #e94560; }
.lock-overlay span { font-size: 1.1rem; text-shadow: 0 0 10px #000; letter-spacing: 1px; }

