/* =========================================
   LOKALE SCHRIFTARTEN
   ========================================= */
@font-face {
    font-family: 'Nunito Sans';
    src: url('fonts/NunitoSans-Regular.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Nunito Sans';
    src: url('fonts/NunitoSans-SemiBold.woff2') format('woff2');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Nunito Sans';
    src: url('fonts/NunitoSans-ExtraBold.woff2') format('woff2');
    font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Oswald';
    src: url('fonts/Oswald-Medium.woff2') format('woff2');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Oswald';
    src: url('fonts/Oswald-Bold.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
}

/* =========================================
   FARBPALETTE & VARIABLEN
   ========================================= */
:root {
    --bg-dark-1: rgba(8, 10, 8, 0.95); 
    --bg-dark-2: rgba(22, 26, 22, 0.95);  
    --bg-dark-3: rgba(4, 5, 4, 0.95); 
    
    --primary-green: #8bc34a; 
    --cancel-red: #f44336; 
    
    --text-light: #f4f1e1;
    --text-muted: #9aa894;
    
    --nav-height: 70px; 
    --ticker-height: 35px; 
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Nunito Sans', sans-serif; scroll-behavior: smooth; }
h1, h2, h3, h4, .ticker-wrap, nav a, .footer-title, .date-badge, .badge-next, #stat-active-label, .stat-num { font-family: 'Oswald', sans-serif; }
body, html { color: var(--text-light); line-height: 1.6; overflow-x: hidden; background-color: #030403; }
html.no-scroll, body.no-scroll { overflow: hidden !important; }

body.intro-active { overflow: hidden !important; height: 100vh !important; position: fixed; width: 100%; }
body.intro-active .floating-action-buttons { display: none !important; }
body.intro-active .top-ticker-bar { opacity: 0 !important; transform: translateY(-100%) !important; pointer-events: none !important; }
body.intro-active .swipe-arrow { opacity: 0 !important; pointer-events: none !important; visibility: hidden !important; }

body::before {
    content: ""; position: fixed; top: -5%; left: -5%; width: 110%; height: 110%; 
    background: url('https://s1.directupload.eu/images/260628/n8hv9zxt.png') center/cover no-repeat;
    filter: blur(30px) brightness(0.15); z-index: -2;
}

/* =========================================
   1. DER VORHANG UND DAS LOGO
   ========================================= */
#intro-overlay { position: fixed; inset: 0; background-color: #050705; z-index: 9998; transition: opacity 1.5s ease-in-out; }
#intro-overlay.hidden-overlay { opacity: 0; pointer-events: none; }

#scroll-indicator { position: fixed; bottom: 5%; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; z-index: 10000; opacity: 1; transition: opacity 0.5s ease; cursor: pointer; }
#scroll-indicator.hidden-btn { opacity: 0; pointer-events: none; }
@keyframes scroll-bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(10px); } 60% { transform: translateY(5px); } }

#animated-logo { --lw: min(90vw, 400px); position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90vw; max-width: 400px; z-index: 9999; display: block; transition: all 1.5s cubic-bezier(0.25, 1, 0.5, 1); }
#animated-logo img { width: 100%; height: auto; display: block; opacity: 0; transition: opacity .5s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease; image-rendering: auto; }
/* Logo erst zeigen, wenn es vollständig geladen und dekodiert ist (kein Verschwommen-dann-scharf) */
#animated-logo.logo-ready img { opacity: 1; }
#scroll-indicator { transition: opacity .5s ease; }
/* gerade Pixelwerte, damit das Logo beim Zentrieren nicht auf halben Pixeln liegt (sonst wirkt es unscharf) */
@supports (width: round(down, 10.5px, 2px)) {
  #animated-logo:not(.shrink) { --lw: round(down, min(90vw, 400px), 2px); width: var(--lw); }
  #animated-logo:not(.shrink) img { height: round(down, calc(var(--lw) * 0.9767), 2px); }
}
#animated-logo.shrink { top: calc(var(--ticker-height) + 10px); left: 50%; transform: translate(-50%, 0); width: 60px; }
#animated-logo.shrink:hover img { transform: scale(1.1); filter: drop-shadow(0px 5px 10px rgba(0,0,0,0.2)); }

/* =========================================
   TOP-TICKER
   ========================================= */
.top-ticker-bar { position: fixed; top: 0; left: 0; width: 100%; height: var(--ticker-height); background: var(--primary-green); color: #111; z-index: 10001; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-family: 'Oswald', sans-serif; box-shadow: 0 2px 10px rgba(0,0,0,0.5); opacity: 1; transform: translateY(0); transition: opacity 0.4s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s; }
.top-ticker-bar.ticker-cancelled { background: var(--cancel-red) !important; color: white !important; }
.ticker-mask { display: flex; align-items: center; width: 100%; height: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%); }
.ticker-move { display: flex; width: max-content; animation: ticker 35s linear infinite; }
.ticker-item { display: flex; padding: 0; align-items: center; height: 100%; }
.ticker-item span { margin-right: 50px; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .top-ticker-bar:hover .ticker-move { animation-play-state: paused; cursor: pointer; } }
@keyframes ticker { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-50%, 0, 0); } }

/* =========================================
   2. DAS GETEILTE MENÜ
   ========================================= */
.meine-navigation { width: 100%; height: var(--nav-height); display: flex; justify-content: center; align-items: center; background-color: #ffffff; position: fixed; top: var(--ticker-height); left: 0; z-index: 9000; border-bottom: 1px solid #e0e0e0; opacity: 0; animation: fadeInHeader 0.5s ease 2s forwards; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
@keyframes fadeInHeader { to { opacity: 1; } }
.main-nav-container { display: flex; width: 100%; max-width: 1400px; justify-content: center; align-items: center; position: relative; }
.nav-left, .nav-right { list-style: none; display: flex; align-items: center; gap: clamp(1rem, 1.8vw, 2rem); margin: 0; padding: 0; flex: 1; }
.nav-left { justify-content: flex-end; padding-right: 1.5rem; }
.nav-right { justify-content: flex-start; padding-left: 1.5rem; }
.logo-spacer { width: 90px; flex-shrink: 0; transition: width 0.4s ease; }
nav a { color: #111; text-decoration: none; font-weight: 700; font-size: clamp(0.85rem, 1.1vw, 1.05rem); text-transform: uppercase; letter-spacing: clamp(0.6px, 0.1vw, 1.5px); padding: 10px 0; transition: color 0.3s ease; white-space: nowrap; }
nav a:hover { color: var(--primary-green); }
nav a.active-nav { color: var(--primary-green); border-bottom: 2px solid var(--primary-green); }
.mobile-menu-label { display: none; } 

/* =========================================
   HERO SECTION
   ========================================= */
.hero { margin-top: calc(var(--nav-height) + var(--ticker-height)); height: calc(80vh - var(--nav-height) - var(--ticker-height)); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 5%; position: relative; overflow: hidden; background: url('https://s1.directupload.eu/images/260629/nc4xvzo9.jpg') center/cover no-repeat; background-color: var(--bg-dark-1); border-bottom: none; }
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 1; }
.hero h1 { font-size: 6rem; margin-bottom: 1rem; line-height: 1.1; text-transform: uppercase; letter-spacing: -2px; text-shadow: 2px 4px 20px rgba(0,0,0,0.9); position: relative; z-index: 2; }
.hero h1 span { color: var(--primary-green); }
.hero p { font-size: 1.3rem; color: var(--text-light); max-width: 750px; margin-bottom: 2.5rem; text-shadow: 1px 2px 10px rgba(0,0,0,0.8); position: relative; z-index: 2; }

/* =========================================
   SEKTIONEN & LASERSCHWERT TITEL
   ========================================= */
section { padding: 6rem 5%; border-bottom: 1px solid rgba(255,255,255,0.05); scroll-margin-top: calc(var(--nav-height) + var(--ticker-height)); }
#rides { background-color: var(--bg-dark-1); }
#stats { background-color: var(--bg-dark-2); overflow: hidden; position: relative; } 
#guides { background-color: var(--bg-dark-3); }
#sends { background-color: var(--bg-dark-1); }
#minigame { background-color: var(--bg-dark-2); position: relative; overflow: hidden; border-top: 2px solid var(--primary-green); }
#join { background-color: var(--bg-dark-1); }
#kontakt { background-color: var(--bg-dark-3); border-bottom: none; } 
#support { background-color: var(--bg-dark-1); border-top: 1px solid rgba(255,255,255,0.05); } 

.section-title { max-width: 100%; font-size: 3rem; margin: 0 auto 3rem auto; text-transform: uppercase; text-shadow: 2px 2px 10px rgba(0,0,0,0.8); display: block; width: max-content; text-align: center; position: relative; padding-bottom: 10px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 4px; background: #fff; border-radius: 2px; box-shadow: 0 0 10px var(--primary-green), 0 0 20px var(--primary-green), 0 0 30px var(--primary-green); transition: width 2.5s cubic-bezier(0.25, 1, 0.5, 1); }
.section-title.lightsaber-on::after { width: 100%; }

.forest-outline-divider {
    width: 100%; height: 35px; margin: 15px 0; padding: 0; position: relative; z-index: 5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='35' viewBox='0 0 300 35' preserveAspectRatio='none'%3E%3Cpath d='M0,35 l2,-6 l-1,2 l3,-8 l-1,3 l4,-12 l2,10 l-1,-3 l3,8 l-1,-2 l4,-15 l-1,3 l3,-10 l2,12 l-1,-4 l3,10 l-1,-2 l5,-18 l-1,4 l3,-12 l3,15 l-1,-4 l4,12 l-1,-2 l3,-9 l-1,2 l5,-22 l-1,5 l4,-12 l3,18 l-1,-5 l4,14 l-1,-3 l4,-11 l-1,2 l6,-25 l-2,6 l4,-10 l3,20 l-1,-5 l5,16 l-2,-4 l4,-13 l-1,3 l5,-20 l-2,6 l4,-14 l4,22 l-2,-6 l5,18 l-2,-4 l3,-11 l-1,2 l6,-24 l-2,5 l4,-11 l4,20 l-1,-5 l5,15 l-2,-3 l3,-9 l-1,2 l5,-19 l-2,5 l4,-12 l3,18 l-1,-5 l4,13 l-2,-3 l3,-10 l-1,2 l4,-16 l-2,4 l3,-10 l3,15 l-1,-4 l4,11 l-1,-2 l2,-6 l-1,2 l4,-12 l-1,3 l3,-8 l2,10 l-1,-3 l3,8 l-1,-2 l3,-5 l2,5' fill='none' stroke='%238bc34a' stroke-width='0.8' stroke-linejoin='miter' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: repeat-x; background-position: bottom; background-size: 300px 100%; opacity: 0.65; pointer-events: none;
}

/* =========================================
   STATISTIK ROLLBAND (3D)
   ========================================= */
.stats-rollband-wrapper { display: flex; align-items: center; justify-content: center; gap: 4rem; max-width: 1200px; margin: 0 auto; perspective: 1200px; min-height: 400px; }
.stats-stage-container { flex: 1; position: relative; height: 250px; width: 100%; display: flex; align-items: center; justify-content: center; transform-style: preserve-3d; }
.stat-card { position: absolute; width: 250px; height: 200px; background: rgba(30, 40, 30, 0.95); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; display: flex; justify-content: center; align-items: center; transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 0 15px rgba(139, 195, 74, 0.1); cursor: pointer; backface-visibility: hidden; }
.stat-card:hover { border-color: var(--primary-green); }
.stat-num { font-family: 'Oswald', sans-serif; font-weight: 700; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.9); transition: all 0.6s ease; white-space: nowrap; }
.stat-num[data-length="1"], .stat-num[data-length="2"], .stat-num[data-length="3"] { font-size: 6rem; }
.stat-num[data-length="4"] { font-size: 4.5rem; }
.stat-num[data-length="5"] { font-size: 3.8rem; }
.stat-num[data-length="6"], .stat-num[data-length="7"] { font-size: 3rem; }
.stat-card.active-card { border-color: var(--primary-green); }
.stat-card.active-card .stat-num { color: var(--primary-green); -webkit-text-stroke: 0; text-shadow: 0 0 20px rgba(139, 195, 74, 0.5); }
.stats-info-panel { flex: 1; display: flex; flex-direction: column; justify-content: center; z-index: 20; }
#stat-active-label { font-size: 2.5rem; color: var(--text-light); margin-bottom: 0.5rem; text-transform: uppercase; font-family: 'Oswald', sans-serif; line-height: 1.2; }

/* =========================================
   SWIPE-PFEILE & RIDES 
   ========================================= */
.swipe-arrow { display: flex; position: absolute; top: 50%; transform: translateY(-50%); background: var(--primary-green); color: #111; border: none; width: 45px; height: 45px; border-radius: 50%; font-size: 1.4rem; font-weight: bold; z-index: 9999; box-shadow: 0 4px 15px rgba(0,0,0,0.6); cursor: pointer; justify-content: center; align-items: center; transition: opacity 0.3s ease, transform 0.3s ease; }
.swipe-arrow:hover { transform: translateY(-50%) scale(1.1); }
.swipe-arrow.left { left: 15px; }
.swipe-arrow.right { right: 15px; }
.mobile-swipe-wrapper { position: relative; width: 100vw; margin-left: calc(-50vw + 50%); }

@media (min-width: 601px) {
    #guides .mobile-swipe-wrapper { width: 100%; margin-left: 0; }
    #guides .swipe-arrow { display: none !important; }
    #dynamic-rides-container { -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%); }
}

.rides-container { position: relative; } 
.mobile-home-btn { display: flex; position: absolute; top: -15px; left: 50%; transform: translateX(-50%) scale(0.8); background: #111; border: 1px solid var(--primary-green); color: var(--text-light); padding: 6px 16px; border-radius: 20px; font-family: 'Oswald', sans-serif; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; z-index: 100; box-shadow: 0 4px 10px rgba(0,0,0,0.6); cursor: pointer; align-items: center; justify-content: center; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease, background 0.3s; opacity: 0; pointer-events: none; white-space: nowrap; gap: 8px; }
.mobile-home-btn:active { background: var(--primary-green); color: #111; }

.grid-container { position: relative; display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important; scroll-snap-type: x mandatory !important; -webkit-overflow-scrolling: touch !important; scrollbar-width: none !important; padding: 40px 5vw 60px 5vw !important; gap: 30px !important; scroll-behavior: smooth; }
.grid-container::-webkit-scrollbar { display: none; }
.grid-container::before, .grid-container::after { content: ''; flex: 0 0 calc(50vw - 175px); }
.grid-container .ride-card { flex: 0 0 350px !important; scroll-snap-align: center !important; margin: 15px 0 0 0 !important; }

.equipment-box { margin: 0 auto 4rem auto; width: 100%; max-width: 900px; padding: 1.5rem 2.5rem !important; box-sizing: border-box; }
.equipment-header h3 { font-size: 1.4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 10px; }

.glass-card { background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.1); padding: 2.5rem; border-radius: 12px; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 10px 30px rgba(0,0,0,0.5); display: flex; flex-direction: column; position: relative; }
.glass-card:not(.equipment-box):not(.game-box):hover { transform: scale(1.03) translateY(-5px); background: rgba(0, 0, 0, 0.6); border-color: var(--primary-green); box-shadow: 0 20px 50px rgba(139, 195, 74, 0.2); z-index: 5; }
.equipment-box:hover { background: rgba(0, 0, 0, 0.6) !important; box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important; border-color: var(--primary-green) !important; z-index: 1 !important; }

/* NEU: BARBER POLE FÜR DEN HOT SEAT */
.neon-border-box { position: relative; border: 1px solid var(--primary-green) !important; box-shadow: 0 0 30px rgba(139, 195, 74, 0.35) !important; background: #080a08 !important; border-radius: 12px; overflow: hidden; }
.neon-border-box::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(139, 195, 74, 0.12), rgba(139, 195, 74, 0.12) 20px, transparent 20px, transparent 40px); background-size: 57px 57px; animation: barberpole 3s linear infinite; z-index: 0; pointer-events: none; border-radius: inherit; }
.neon-border-box > * { position: relative; z-index: 1; }

/* HOT SEAT SPEZIFISCH: KEIN HOVER MEHR */
#hot-seat-box:hover { transform: none !important; box-shadow: 0 0 30px rgba(139, 195, 74, 0.35) !important; border-color: var(--primary-green) !important; background: #080a08 !important; }

.ride-progress-container { margin-top: 0.5rem; margin-bottom: 1.5rem; font-family: 'Nunito Sans', sans-serif; background: rgba(0,0,0,0.2); padding: 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); }
.ride-progress-header { display: flex; justify-content: space-between; align-items: center; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 0.9rem; letter-spacing: 1px; margin-bottom: 8px; color: var(--text-light); }
.ride-progress-battery { position: relative; display: flex; gap: 3px; border: 2px solid rgba(255, 255, 255, 0.6); border-radius: 6px; padding: 3px; height: 22px; width: calc(100% - 6px); margin-bottom: 8px; }
.ride-progress-battery::after { content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); width: 4px; height: 10px; background: rgba(255, 255, 255, 0.6); border-radius: 0 3px 3px 0; }
.ride-progress-segment { flex: 1; background: rgba(255, 255, 255, 0.1); border-radius: 2px; transition: background 0.3s ease; }
.ride-progress-segment.active { background: var(--card-color, var(--primary-green)); box-shadow: 0 0 8px var(--card-color, rgba(139, 195, 74, 0.4)); }
.ride-progress-subtext { font-size: 0.8rem; color: var(--text-muted); font-style: italic; line-height: 1.3; }

.ride-past { opacity: 0.75; filter: grayscale(100%); transition: all 0.4s ease; border: 1px solid rgba(255, 255, 255, 0.25) !important; cursor: pointer; }
.ride-past:hover { opacity: 1 !important; transform: translateY(-5px) !important; filter: grayscale(0%); box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important; border-color: rgba(255, 255, 255, 0.8) !important; z-index: 1; }

.ride-next { cursor: pointer; } 
@media (min-width: 601px) {
    .ride-next { position: sticky !important; left: 5vw; right: 5vw; z-index: 50; background: #080a08 !important; border: 1px solid var(--card-color, var(--primary-green)) !important; box-shadow: 0 0 30px var(--card-color, rgba(139, 195, 74, 0.35)) !important; transform: scale(1.02) translateY(-2px); }
    .ride-next:hover { transform: scale(1.05) translateY(-5px) !important; box-shadow: 0 0 50px var(--card-color, rgba(139, 195, 74, 0.5)) !important; }
}
@media (max-width: 600px) {
    .ride-next { position: relative !important; left: auto; right: auto; border: 1px solid var(--card-color, var(--primary-green)) !important; box-shadow: 0 0 30px var(--card-color, rgba(139, 195, 74, 0.35)) !important; background: #080a08 !important; transform: scale(1.02) translateY(-2px); z-index: 10; }
    .ride-next:hover { transform: scale(1.05) translateY(-5px) !important; box-shadow: 0 0 50px var(--card-color, rgba(139, 195, 74, 0.5)) !important; }
}

.ride-next::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(139, 195, 74, 0.12), rgba(139, 195, 74, 0.12) 20px, transparent 20px, transparent 40px); background-size: 57px 57px; animation: barberpole 3s linear infinite; z-index: 0; pointer-events: none; border-radius: inherit; }
.ride-next > * { position: relative; z-index: 1; }
@keyframes barberpole { 0% { background-position: 0 0; } 100% { background-position: 57px 57px; } }

.ride-future { border: 1px solid var(--card-color, rgba(255, 255, 255, 0.1)) !important; }
.ride-future:hover { opacity: 1 !important; transform: translateY(-5px) !important; box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px var(--card-color, var(--primary-green)) !important; border-color: var(--card-color, var(--primary-green)) !important; }

.ride-cancelled { border: 1px solid var(--cancel-red) !important; background: rgba(244, 67, 54, 0.1) !important; box-shadow: 0 0 20px rgba(244, 67, 54, 0.2) !important; }
.ride-cancelled .date-badge, .ride-cancelled .badge-next { background: var(--cancel-red) !important; color: white; }
.ride-status.cancelled-text { color: var(--cancel-red); font-size: 1.1rem; }

.badge-next { position: absolute; top: -15px; right: 15px; background: var(--primary-green); color: #111; padding: 5px 15px; border-radius: 20px; font-weight: 700; font-size: 1rem; letter-spacing: 1px; text-transform: uppercase; animation: pulse-badge 2s infinite; box-shadow: 0 5px 15px rgba(0,0,0,0.5); z-index: 20; }
@keyframes pulse-badge { 0% { box-shadow: 0 0 0 0 rgba(139, 195, 74, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(139, 195, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(139, 195, 74, 0); } }

.date-badge { background: var(--card-color, var(--primary-green)); color: #111; font-weight: 700; font-size: 1.4rem; padding: 5px 15px; border-radius: 6px; display: inline-block; margin-bottom: 1rem; align-self: flex-start; }
.ride-status { color: var(--primary-green); font-weight: bold; margin-top: auto; margin-bottom: 0; padding-top: 15px; }
.glass-card h3 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.glass-card h4 { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1rem; font-weight: normal; }
.btn-group { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; width: 100%; align-items: center; }

.glass-card .btn-maps { flex: 1; background: transparent; color: var(--text-light); padding: 0.6rem 1rem; text-decoration: none; border-radius: 6px; font-weight: bold; border: 1px solid var(--card-color, var(--primary-green)); transition: all 0.3s ease; cursor: pointer; text-align: center; }
.glass-card .btn-maps:hover { background: var(--card-color, var(--primary-green)); color: #111; }
.btn-share { flex: 0 0 auto; background: transparent; color: var(--text-light); padding: 0.6rem; text-decoration: none; border-radius: 6px; border: 1px solid rgba(255,255,255,0.2); transition: all 0.3s ease; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; height: 44px; width: 44px; }
.btn-share:hover { background: rgba(255,255,255,0.1); border-color: white; }

.hide-share-btn .btn-share { display: none !important; }
.prepare-share { filter: none !important; opacity: 1 !important; transform: none !important; transition: none !important; background-color: #121612 !important; }
.btn-rules { display: inline-block; background: transparent; color: var(--primary-green); border: 1px solid var(--primary-green); padding: 0.6rem 1.2rem; border-radius: 6px; font-weight: bold; cursor: pointer; transition: all 0.3s ease; margin-bottom: 1rem; }
.btn-rules:hover { background: var(--primary-green) !important; color: #111 !important; box-shadow: 0 0 15px rgba(139, 195, 74, 0.4) !important; }

/* =========================================
   GUIDES (TINDER KARTEN AM HANDY)
   ========================================= */
.guides-container { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-bottom: 3rem; }
.guide-card { --base-y: 0px; transform: translateY(var(--base-y)); border: 1px solid rgba(255,255,255,0.1); overflow: hidden; padding: 0; display: flex; flex-direction: column; cursor: pointer; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; background: rgba(0,0,0,0.4); }

@media (min-width: 901px) {
    .guide-card:hover { transform: scale(1.05) translateY(calc(var(--base-y) - 8px)) !important; box-shadow: 0 25px 50px rgba(139, 195, 74, 0.2) !important; z-index: 10; border-color: var(--primary-green); }
}
@media (min-width: 1024px) {
    .guides-container { grid-template-columns: repeat(3, 1fr); row-gap: 3rem; column-gap: 2.5rem; padding-top: 6rem; max-width: 1200px; margin: 0 auto; }
    .guide-card:nth-child(1) { order: 2; --base-y: -90px; }
    .guide-card:nth-child(5) { order: 5; --base-y: -90px; }
    .guide-card:nth-child(2) { order: 1; }
    .guide-card:nth-child(3) { order: 3; }
    .guide-card:nth-child(4) { order: 4; }
    .guide-card:nth-child(6) { order: 6; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .guides-container { grid-template-columns: repeat(2, 1fr); padding-top: 4rem; }
    .guide-card:nth-child(even) { --base-y: -50px; }
}

@media (max-width: 900px) {
    #guides .mobile-swipe-wrapper { width: 100vw; margin-left: calc(-50vw + 50%); position: relative; }
    #guides .swipe-arrow { display: none !important; }
    .mobile-guide-nav { display: none !important; }
    
    #guides-swipe-box { position: relative; height: 680px; width: 100%; max-width: 380px; margin: 0 auto; display: block !important; padding: 0 !important; overflow: visible !important; touch-action: pan-y; }
    .guide-card { position: absolute !important; top: 0; left: 0; width: 100% !important; height: auto !important; min-height: 550px; margin: 0 !important; cursor: grab; background: #111511 !important; border: 1px solid var(--primary-green) !important; box-shadow: 0 10px 30px rgba(0,0,0,0.8) !important; overflow: visible !important; padding-bottom: 2rem !important; }
    .guide-card:active { cursor: grabbing; }
    .guide-img { aspect-ratio: 16/10 !important; border-radius: 12px 12px 0 0; }
}

.guide-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 15%; filter: grayscale(40%) sepia(15%) brightness(0.85); transition: all 0.5s ease; pointer-events: none; }
@media (min-width: 768px) { .guide-img { aspect-ratio: 3 / 2; } }
@media (min-width: 901px) { .guide-card:hover .guide-img { filter: grayscale(0%) sepia(0%) brightness(1.05); } }

.guide-info { padding: 1.5rem; flex-grow: 1; width: 100%; display: flex; flex-direction: column; text-align: left; pointer-events: none; }
.guide-info h3 { font-size: 1.8rem; color: var(--text-light); margin-bottom: 5px; width: 100%; }
.guide-info h3 .last-name { font-weight: 300; color: var(--text-muted); font-size: 1.4rem; }
.guide-info .age { color: var(--primary-green); font-weight: bold; margin-bottom: 15px; display: block; width: 100%; }
.guide-stats { list-style: none; margin-bottom: 15px; color: var(--text-muted); width: 100%; }
.guide-stats li { margin-bottom: 5px; font-size: 0.95rem; }
.guide-stats strong { color: var(--text-light); }
.quote { font-style: italic; color: #fff; border-left: 3px solid var(--primary-green); padding-left: 10px; width: 100%; margin-top: auto; }
.guide-contact { margin-top: 15px; margin-bottom: 15px; font-size: 0.85rem; color: var(--text-light); border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; line-height: 1.5; width: 100%; word-wrap: break-word; pointer-events: auto;}
.guide-contact a { color: var(--primary-green); text-decoration: none; font-weight: 600; }
.guide-link { color: var(--primary-green); text-decoration: underline; text-decoration-style: dotted; cursor: pointer; transition: color 0.3s ease; pointer-events: auto;}

/* =========================================
   MODALS & CAROUSELS
   ========================================= */
.custom-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(5px); z-index: 10001; display: flex; justify-content: center; align-items: flex-start; opacity: 0; pointer-events: none; transition: opacity 0.3s; overflow: auto; padding: 5vh 1rem; }
.custom-modal.active { opacity: 1; pointer-events: auto; }
.modal-content { background: var(--bg-dark-1); border: 1px solid var(--primary-green); padding: 2.5rem 2rem; border-radius: 12px; max-width: 600px; width: 100%; position: relative; box-shadow: 0 10px 40px rgba(139, 195, 74, 0.2); margin: auto; }
@media (min-width: 900px) { #legal-modal .modal-content { max-width: 800px; } }

.modal-close { position: fixed; top: 20px; right: 20px; background: rgba(0,0,0,0.7); color: white; border: 2px solid var(--primary-green); border-radius: 50%; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; cursor: pointer; z-index: 10005; transition: 0.3s; }
.modal-close:hover { background: var(--primary-green); color: #111; transform: scale(1.1); }
.guide-side-nav { width: 250px; opacity: 0.4; filter: grayscale(80%) blur(2px); transform: scale(0.85); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer; border-radius: 12px; flex-shrink: 0; }
.guide-side-nav:hover { opacity: 0.9; filter: grayscale(0%) blur(0); transform: scale(0.95); }
.guide-side-nav .guide-card { --base-y: 0px !important; transform: none !important; margin: 0 !important; pointer-events: none; }
.guide-side-nav .guide-img { height: 180px; }
@media (max-width: 1024px) { .hidden-mobile { display: none !important; } }
.guide-card.in-modal { background: transparent; border: none; box-shadow: none; cursor: default; flex-direction: column; height: auto; --base-y: 0px; transform: none !important; margin: 0 !important; }
.guide-card.in-modal:hover { transform: none !important; box-shadow: none !important; z-index: 1; border-color: transparent; }
.guide-card.in-modal .guide-img { width: 100%; height: auto; aspect-ratio: 4/5; border-radius: 12px 12px 0 0; filter: none; object-fit: cover; }
.guide-card.in-modal .guide-info { padding: 2rem; width: 100%; }
.guide-card.in-modal h3 { font-size: 2.5rem; }
@media (min-width: 768px) {
    .guide-carousel-wrapper { padding: 0 40px; align-items: center; } 
    .guide-card.in-modal { flex-direction: row; align-items: stretch; margin: 0 auto; max-width: 90vw; }
    .guide-card.in-modal .guide-img { width: 45%; height: 100%; aspect-ratio: auto; min-height: 450px; border-radius: 12px 0 0 12px; }
    .guide-card.in-modal .guide-info { width: 55%; padding: 3rem; justify-content: center; display: flex; flex-direction: column; }
}
.guide-carousel-wrapper { display: flex; justify-content: center; align-items: flex-start; gap: 20px; width: 100%; max-width: 1400px; margin: auto; }
#guide-modal-container { background: var(--bg-dark-1); border: 1px solid var(--primary-green); border-radius: 12px; overflow: hidden; flex: 1; max-width: 850px; box-shadow: 0 10px 40px rgba(139, 195, 74, 0.2); }
@media (max-width: 767px) {
    .custom-modal { align-items: flex-start; padding-top: 5vh; padding-bottom: 5vh; }
    .guide-carousel-wrapper { align-items: flex-start !important; margin: 0 auto; width: 100%; }
    #guide-modal-container { max-height: none; overflow: visible; }
    .modal-content { margin: 0 auto; max-height: none; overflow: visible; }
    .guide-card.in-modal { height: max-content; }
}

.legal-text h4 { margin-top: 1.5rem; margin-bottom: 0.5rem; color: var(--primary-green); }
.legal-text p { margin-bottom: 1rem; color: var(--text-muted); font-size: 0.95rem; }
.legal-text a { color: var(--primary-green); }

#lightbox-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 100002; display: flex; justify-content: center; align-items: center; flex-direction: row; opacity: 0; pointer-events: none; transition: opacity 0.3s; overflow: hidden; }
#lightbox-modal.active { opacity: 1; pointer-events: auto; }
.lightbox-gallery-container { display: flex; align-items: center; justify-content: center; gap: 40px; width: 100%; }
.lightbox-img-side { max-width: 15vw; max-height: 60vh; border-radius: 8px; cursor: pointer; opacity: 0.6; filter: blur(2px); transition: all 0.4s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.lightbox-img-side:hover { opacity: 0.95; filter: blur(0px); transform: scale(1.05); }
#lightbox-img { max-width: 60vw; max-height: 85vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,1); z-index: 100003; border: 1px solid var(--primary-green); }
.lightbox-btn { position: fixed; background: rgba(0,0,0,0.7); border: 2px solid var(--primary-green); color: white; border-radius: 50%; width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; cursor: pointer; transition: all 0.3s; z-index: 100004; }
.lightbox-btn:hover { background: var(--primary-green); color: #111; transform: translateY(-50%) scale(1.1); }
.lightbox-close-btn { top: 20px; right: 20px; transform: none !important; }
.lightbox-close-btn:hover { transform: scale(1.1) !important; }
.lightbox-prev { left: 3vw; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 3vw; top: 50%; transform: translateY(-50%); }

/* =========================================
   EPIC SENDS (GALERIE - DENSE GRID OHNE LÜCKEN)
   ========================================= */
#gallery-wrapper { position: relative; padding-bottom: 20px; }
.gallery-collapsed #dynamic-gallery .masonry-item:nth-child(n+11) { display: none; }

#gallery-close-btn-fixed {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: var(--primary-green); color: #111; font-weight: bold; padding: 10px 20px;
    border-radius: 30px; z-index: 9999; box-shadow: 0 5px 15px rgba(0,0,0,0.6); border: none; cursor: pointer; display: none;
    font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 1px; transition: transform 0.3s ease;
}
#gallery-close-btn-fixed:hover { transform: translateX(-50%) scale(1.05); }

.masonry { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1.5rem; grid-auto-flow: dense; }
.masonry-item { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.8); border: 1px solid rgba(255,255,255,0.1); }
.masonry-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; cursor: zoom-in; }
.masonry-item:hover img { transform: scale(1.08); }

.masonry-item:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }
.masonry-item:nth-child(7n+2) { grid-column: span 1; grid-row: span 1; }
.masonry-item:nth-child(7n+3) { grid-column: span 1; grid-row: span 1; }
.masonry-item:nth-child(7n+4) { grid-column: span 2; grid-row: span 1; }
.masonry-item:nth-child(7n+5) { grid-column: span 1; grid-row: span 1; }
.masonry-item:nth-child(7n+6) { grid-column: span 1; grid-row: span 1; }
.masonry-item:nth-child(7n)   { grid-column: span 2; grid-row: span 1; }

@media (max-width: 900px) {
    .masonry { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
    .masonry-item:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; }
    .masonry-item:nth-child(5n+2) { grid-column: span 1; grid-row: span 1; }
    .masonry-item:nth-child(5n+3) { grid-column: span 1; grid-row: span 2; }
    .masonry-item:nth-child(5n+4) { grid-column: span 2; grid-row: span 1; }
    .masonry-item:nth-child(5n)   { grid-column: span 1; grid-row: span 1; }
}
@media (max-width: 600px) {
    .masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 10px; }
    .masonry-item:nth-child(4n+1) { grid-column: span 2; grid-row: span 2; }
    .masonry-item:nth-child(4n+2) { grid-column: span 1; grid-row: span 1; }
    .masonry-item:nth-child(4n+3) { grid-column: span 1; grid-row: span 1; }
    .masonry-item:nth-child(4n)   { grid-column: span 2; grid-row: span 1; }
}

/* =========================================
   JOIN US
   ========================================= */
.join-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin: 0 auto; }
@media (min-width: 900px) { .join-grid { grid-template-columns: 1fr 1fr; max-width: 1300px; } }
.join-box { text-align: center; border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.5); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2rem; transition: all 0.3s ease; }
.join-box h3 { font-size: 2rem; margin-bottom: 1rem; color: var(--primary-green); transition: color 0.3s ease; }
.join-box p { font-size: 1.1rem; margin-bottom: 2rem; color: var(--text-light); }
.join-box.whatsapp-box:hover { background: rgba(37, 211, 102, 0.15); border-color: #25D366; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.2); }
.join-box.whatsapp-box:hover h3 { color: #25D366; }
.join-box.strava-box:hover { background: rgba(252, 76, 2, 0.15); border-color: #fc4c02; box-shadow: 0 10px 30px rgba(252, 76, 2, 0.2); }
.join-box.strava-box:hover h3 { color: #fc4c02; }
.btn-whatsapp { display: inline-flex; align-items: center; gap: 10px; background: #25D366; color: #111; padding: 1rem 2rem; font-size: 1.1rem; font-weight: bold; text-decoration: none; border-radius: 4px; transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 1.5rem; text-transform: uppercase; }
.btn-whatsapp:hover { transform: scale(1.05); box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4); }
.btn-strava { display: inline-flex; align-items: center; gap: 10px; background: #fc4c02; color: #fff; padding: 1rem 2rem; font-size: 1.1rem; font-weight: bold; text-decoration: none; border-radius: 4px; transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 1.5rem; text-transform: uppercase; }
.btn-strava:hover { transform: scale(1.05); box-shadow: 0 10px 25px rgba(252, 76, 2, 0.4); }
.qr-code img { border-radius: 10px; border: 1px solid var(--primary-green); background: white; padding: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }

.floating-action-buttons { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 15px; z-index: 9999; }
.fab-btn { width: 55px; height: 55px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white; text-decoration: none; box-shadow: 0 5px 20px rgba(0,0,0,0.6); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer; border: none; }
.fab-wa { background: #25D366; }
.fab-wa:hover { background: #1ebe5d; transform: scale(1.15); box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4); }

/* =========================================
   KONTAKT FORMULAR 
   ========================================= */
.contact-split-container { display: grid; grid-template-columns: 1fr; gap: 2rem; max-width: 1300px; margin: 0 auto; transition: all 0.5s ease; }
@media (min-width: 900px) { .contact-split-container { grid-template-columns: 1.8fr 1fr; } .game-split-container { grid-template-columns: 1.5fr 1fr; } }

.contact-form-box h3 { font-family: 'Oswald', sans-serif; font-size: 1.8rem; margin-bottom: 1.5rem; text-transform: uppercase; color: var(--text-light); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } }

.input-group label { display: block; font-size: 0.75rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.input-group input, .input-group select, .input-group textarea { width: 100%; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); padding: 14px; border-radius: 4px; color: var(--text-light); font-size: 1rem; transition: border-color 0.3s; font-family: 'Nunito Sans', sans-serif; -webkit-appearance: none; appearance: none; }
.input-group select { background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%238bc34a%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 1rem top 50%; background-size: 0.85rem auto; padding-right: 2.5rem; }
.input-group select option { background: var(--bg-dark-1); color: var(--text-light); }
.input-group input:focus, .input-group select:focus, .input-group textarea:focus { outline: none; border-color: var(--primary-green); }
.btn-submit-contact { width: 100%; background: var(--primary-green); color: #111; font-family: 'Oswald', sans-serif; font-size: 1.2rem; font-weight: 700; text-transform: uppercase; padding: 15px; border: none; border-radius: 4px; margin-top: 1.5rem; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; }
.btn-submit-contact:hover { transform: scale(1.02); box-shadow: 0 5px 15px rgba(139, 195, 74, 0.4); }
.form-disclaimer { font-size: 0.8rem; color: var(--text-muted); margin-top: 1rem; line-height: 1.5; }
.form-disclaimer a { color: var(--text-muted); text-decoration: underline; cursor: pointer; transition: color 0.3s; }
.form-disclaimer a:hover { color: var(--primary-green); }

.contact-info-box h4 { color: var(--primary-green); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.5rem; }
.contact-address { color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; margin-bottom: 2rem; }
.contact-details-list { list-style: none; padding: 0; margin: 0 0 2rem 0; }
.contact-details-list li { display: flex; align-items: flex-start; gap: 15px; padding: 1rem 0; }
.contact-details-list .icon { font-size: 1.3rem; filter: grayscale(100%) opacity(0.5); }
.contact-details-list .label { display: block; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; margin-bottom: 4px; }
.contact-details-list .value { display: block; font-size: 0.95rem; color: var(--text-light); font-weight: 600; }

.btn-wa-direct { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; background: #25D366; color: #111; font-family: 'Oswald', sans-serif; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; padding: 15px; border-radius: 4px; text-decoration: none; transition: transform 0.3s, box-shadow 0.3s; }
.btn-wa-direct:hover { transform: scale(1.02); box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4); }

/* =========================================
   MINI GAME: RIDE & GRILL 
   ========================================= */
#game-container {
    width: 100%; height: 60vh; min-height: 500px; max-height: 650px;
    position: relative; overflow: hidden; 
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8)), url('https://s1.directupload.eu/images/260629/nc4xvzo9.jpg') center/cover !important;
    cursor: pointer; touch-action: pan-y;
}

#game-player {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    transition: left 0.05s ease-out; z-index: 10; pointer-events: none;
    filter: drop-shadow(0px 5px 10px rgba(0,0,0,0.8));
}
.game-item { position: absolute; font-size: 2rem; z-index: 5; user-select: none; pointer-events: none; }

.lives-container { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; z-index: 15; text-shadow: 2px 2px 5px rgba(0,0,0,0.8); }
.lives-container span { margin-left: 5px; }

#game-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.85); z-index: 20;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
#game-overlay.solid-bg { background: var(--bg-dark-1) !important; }

.btn-game {
    background: var(--primary-green); color: #111; border: none; padding: 12px 25px;
    font-family: 'Oswald', sans-serif; font-size: 1.3rem; font-weight: 700; border-radius: 6px; cursor: pointer; text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s; margin-top: 15px; box-shadow: 0 5px 15px rgba(139, 195, 74, 0.4);
}
.btn-game:hover { transform: scale(1.05); box-shadow: 0 10px 25px rgba(139, 195, 74, 0.6); }

/* Game Over Screen & Schocker Animation */
#game-over-screen {
    display:none; text-align:center; width: 95%; max-width: 550px; padding: 20px; 
    border-radius: 12px; z-index: 30; position: relative; box-sizing: border-box; 
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px) rotate(-2deg); }
    20%, 40%, 60%, 80% { transform: translateX(10px) rotate(2deg); }
}

/* Neon-Glow und Kronen-Animationen für das Podium */
.podium-block-0.is-me { box-shadow: 0 -5px 25px -5px gold, inset 0 10px 25px -10px gold !important; border-color: gold !important; background: rgba(255, 215, 0, 0.15) !important; color: gold !important; }
.podium-block-1.is-me { box-shadow: 0 -5px 25px -5px silver, inset 0 10px 25px -10px silver !important; border-color: silver !important; background: rgba(192, 192, 192, 0.15) !important; color: silver !important;}
.podium-block-2.is-me { box-shadow: 0 -5px 25px -5px #cd7f32, inset 0 10px 25px -10px #cd7f32 !important; border-color: #cd7f32 !important; background: rgba(205, 127, 50, 0.15) !important; color: #cd7f32 !important;}

@keyframes bounceCrown { 0% { transform: translateY(0); } 100% { transform: translateY(-8px) scale(1.1); } }
.crown-icon { font-size: 2rem; position: absolute; top: -38px; left: 50%; margin-left: -1rem; animation: bounceCrown 0.6s infinite alternate; }

/* =========================================
   TRAIL SUPPORT & FOOTER
   ========================================= */
.support-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4rem; }
.support-logo { background: transparent; padding: 1rem; border-radius: 0; transition: all 0.4s ease; filter: grayscale(100%) opacity(0.7); display: flex; align-items: center; justify-content: center; }
.support-logo:hover { filter: grayscale(0%) opacity(1) drop-shadow(0 10px 15px rgba(255,255,255,0.1)); transform: translateY(-8px) scale(1.05); }
.support-logo img { max-height: 100px; width: auto; transition: all 0.3s ease; }
.support-logo.fgv-logo img { max-height: 140px; }
.support-logo.ritzel-logo img { max-height: 135px; }
.support-logo.bikepark-logo img { max-height: 120px; }

footer { background-color: #050705; padding: 4rem 5% 2rem 5%; border-top: 3px solid var(--primary-green); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-title { font-size: 1.2rem; color: var(--primary-green); margin-bottom: 1.5rem; text-transform: uppercase; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; cursor: pointer; }
.footer-links a:hover { color: var(--primary-green); }
.footer-contact p { color: var(--text-muted); margin-bottom: 0.5rem; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); color: var(--text-muted); font-size: 0.9rem; }

/* =========================================
   MOBILE NAVIGATION 
   ========================================= */
.hamburger { display: none; background: transparent; border: none; cursor: pointer; z-index: 1001; }
.hamburger span { width: 100%; display: block; border-radius: 10px; transition: all 0.3s linear; transform-origin: 1px; }

.mobile-nav-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh; background-color: #f8f9fa; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; transform: translateY(-100%); visibility: hidden; transition: transform 0.4s ease-in-out 0.4s, visibility 0s linear 0.8s; z-index: 2000000; overflow-y: auto; }
.mobile-nav-overlay.open { transform: translateY(0); visibility: visible; transition: transform 0.4s ease-in-out 0s, visibility 0s linear 0s; }
.mobile-nav-header { width: 100%; height: 60px; flex-shrink: 0; background-color: #111; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; border-bottom: 1px solid var(--primary-green); }
.mobile-nav-logo { font-family: 'Oswald', sans-serif; font-size: 1.8rem; color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: -1px; text-shadow: 1px 2px 5px rgba(0,0,0,0.5); }
.mobile-nav-logo span { color: var(--primary-green); }
.mobile-nav-close { background: none; border: none; color: #fff; font-size: 1.6rem; font-weight: 300; cursor: pointer; padding: 5px; display: flex; align-items: center; justify-content: center; outline: none; }
.mobile-nav-overlay ul { list-style: none; text-align: left; width: 100%; padding: 0 20px; margin-top: 10px; }
/* Einfahren (Ausfahrten zuerst ... Kontakt zuletzt) */
.mobile-nav-overlay li { opacity: 0; transform: translateX(-60px); transition: opacity 0.2s ease, transform 0.25s ease; border-bottom: 1px solid rgba(0,0,0,0.08); }
.mobile-nav-overlay.open li { opacity: 1; transform: translateX(0); transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.mobile-nav-overlay.open li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-overlay.open li:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav-overlay.open li:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav-overlay.open li:nth-child(4) { transition-delay: 0.4s; }
.mobile-nav-overlay.open li:nth-child(5) { transition-delay: 0.5s; }
.mobile-nav-overlay.open li:nth-child(6) { transition-delay: 0.6s; }
.mobile-nav-overlay.open li:nth-child(7) { transition-delay: 0.7s; }
.mobile-nav-overlay.open li:nth-child(8) { transition-delay: 0.8s; }
/* Ausfahren: von unten nach oben, Kontakt geht als Erstes raus, danach fährt das Overlay hoch */
.mobile-nav-overlay:not(.open) li:nth-child(8) { transition-delay: 0s; }
.mobile-nav-overlay:not(.open) li:nth-child(7) { transition-delay: 0.02s; }
.mobile-nav-overlay:not(.open) li:nth-child(6) { transition-delay: 0.05s; }
.mobile-nav-overlay:not(.open) li:nth-child(5) { transition-delay: 0.10s; }
.mobile-nav-overlay:not(.open) li:nth-child(4) { transition-delay: 0.15s; }
.mobile-nav-overlay:not(.open) li:nth-child(3) { transition-delay: 0.20s; }
.mobile-nav-overlay:not(.open) li:nth-child(2) { transition-delay: 0.25s; }
.mobile-nav-overlay:not(.open) li:nth-child(1) { transition-delay: 0.30s; }
.mobile-nav-overlay a { font-size: 1.2rem; margin: 15px 0; display: block; color: #111; text-decoration: none; font-family: 'Oswald', sans-serif; text-transform: uppercase; font-weight: 600; }
.mobile-nav-overlay a:hover { color: var(--primary-green); }

/* =========================================
   RESPONSIVE DESIGN 
   ========================================= */
@media (max-width: 1100px) {
    .nav-left, .nav-right, .logo-spacer { display: none; } header { justify-content: center; }
    :root { --nav-height: 50px; }
    .meine-navigation { justify-content: flex-start; }
    #animated-logo.shrink { width: 40px; left: 15px; top: calc(var(--ticker-height) + 5px); transform: none; }
    .hamburger { display: flex; flex-direction: column; justify-content: space-between; position: absolute; left: 65px; top: 50%; transform: translateY(-50%); width: 22px; height: 16px; }
    .hamburger span { background: #111; height: 2px; }
    .mobile-menu-label { display: block; position: absolute; left: 100px; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 0.85rem; color: #111; text-transform: uppercase; letter-spacing: 1px; }
}
@media (max-width: 950px) { .hero p, .meeting-point-alert, #sends > p, #kontakt > p, #support > p { font-size: 1rem !important; line-height: 1.6; } }

@media (max-width: 900px) {

    .hero h1 { font-size: 4rem; }
    
    .join-grid { grid-template-columns: 1fr; }
    .lightbox-img-side { display: none; }
    #lightbox-img { max-width: 95vw; max-height: 70vh; margin-bottom: 10px; } 
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    
    .stats-rollband-wrapper { flex-direction: column; gap: 2rem; padding-bottom: 2rem; margin-top: 10rem; margin-bottom: 2rem; }
    .stats-stage-container { height: 250px; } 
    .stats-info-panel { text-align: center; margin-top: 1rem; }
    .stat-card { width: 160px; height: 130px; }
    
    #game-container { width: 100vw; margin-left: calc(-50vw + 50%); border-radius: 0; border-left: none; border-right: none; }
    .game-split-container { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .equipment-header h3 { font-size: 1.15rem !important; }
    .mobile-home-btn {
        display: flex; position: absolute; top: -15px; left: 50%; transform: translateX(-50%) scale(0.8);
        background: #111; border: 1px solid var(--primary-green); color: var(--text-light);
        padding: 6px 16px; border-radius: 20px; font-family: 'Oswald', sans-serif; font-size: 0.9rem;
        font-weight: 700; text-transform: uppercase; letter-spacing: 1px; z-index: 100;
        box-shadow: 0 4px 10px rgba(0,0,0,0.6); cursor: pointer; align-items: center; justify-content: center;
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease, background 0.3s;
        opacity: 0; pointer-events: none; white-space: nowrap; gap: 8px;
    }
    .mobile-home-btn:active { background: var(--primary-green); color: #111; }

    .hero { height: auto; min-height: calc(100vh - var(--nav-height) - var(--ticker-height)); padding-top: 3rem; padding-bottom: 7rem; justify-content: center; }
    .hero h1 { font-size: 2.8rem; margin-top: 2rem; } 
    section { padding: 4rem 5% 3rem 5%; }
    .section-title { font-size: 1.8rem; margin-bottom: 1.8rem; }
    .top-ticker-bar { font-size: 0.85rem; } 
    .glass-card { padding: 1.8rem !important; }
    .swipe-arrow {
        display: flex; position: absolute; top: 50%; transform: translateY(-50%); background: var(--primary-green); color: #111; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; font-weight: bold; z-index: 9999; box-shadow: 0 4px 10px rgba(0,0,0,0.5); cursor: pointer; justify-content: center; align-items: center;
    }
    .swipe-arrow.left { left: 5px; }
    .swipe-arrow.right { right: 5px; }
    
    #rides .mobile-swipe-wrapper { position: relative; width: 100vw; margin-left: calc(-50vw + 50%); }
    
    .grid-container::before, .grid-container::after { content: '' !important; flex: 0 0 2.5vw !important; }

    .grid-container {
        display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important;
        scroll-snap-type: x mandatory !important; -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important; padding: 40px 5vw 40px 5vw !important; gap: 15px !important; scroll-behavior: smooth;
    }
    .grid-container::-webkit-scrollbar { display: none; }
    .grid-container .ride-card { flex: 0 0 85vw !important; margin: 15px 0 0 0 !important; }
    
    .support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; justify-items: center; align-items: center; }
    .support-logo { padding: 0.5rem; width: 100%; height: 100%; }
    .support-logo img { max-height: 45px !important; }
    .support-logo.fgv-logo img { max-height: 65px !important; }
    .support-logo.initiator img { max-height: 55px !important; }
    .support-logo.ritzel-logo img { max-height: 65px !important; }
    .support-logo.bikepark-logo img { max-height: 60px !important; }
    
    .stat-num[data-length="1"], .stat-num[data-length="2"], .stat-num[data-length="3"] { font-size: 3.5rem; }
    .stat-num[data-length="4"] { font-size: 2.8rem; }
    .stat-num[data-length="5"] { font-size: 2.3rem; }
    .stat-num[data-length="6"], .stat-num[data-length="7"] { font-size: 1.8rem; }
    #stat-active-label { font-size: 1.8rem; }
}

/* =========================================
   AUSKLAPPBARES HINWEISFELD
   ========================================= */
.ride-info-text { color: var(--text-light); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; white-space: pre-line; overflow-wrap: anywhere; }
.ride-info.expanded .ride-info-text { -webkit-line-clamp: unset; line-clamp: unset; display: block; }
.ride-info-toggle { display: none; background: none; border: none; padding: 2px 0 0 0; margin-top: 2px; color: var(--primary-green); font-family: 'Oswald', sans-serif; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; text-decoration: underline; text-decoration-style: dotted; }
.ride-info.has-more .ride-info-toggle { display: inline-block; }

/* Mehrtägige Termine: Datum darf umbrechen */
.date-badge.multi-day { line-height: 1.25; }
.date-badge .multi-day-label { display: block; font-size: 0.8rem; font-weight: normal; letter-spacing: 1px; text-transform: uppercase; opacity: 0.85; }

/* Beim Teilen als Bild immer den kompletten Hinweis zeigen */
.prepare-share .ride-info-text { -webkit-line-clamp: unset; line-clamp: unset; display: block; }
.prepare-share .ride-info-toggle { display: none !important; }

/* Ausfahrten: Filter, Typ-Label, Plaetze, Anmeldung */
.ride-filter { display: flex; justify-content: center; gap: 10px; margin: 0 auto 1.8rem; flex-wrap: wrap; }
.ride-filter button { background: transparent; border: 1px solid rgba(255,255,255,0.25); color: var(--text-muted); padding: 0.5rem 1.1rem; border-radius: 4px; font-family: 'Oswald', sans-serif; letter-spacing: 1px; text-transform: uppercase; font-size: 0.9rem; cursor: pointer; transition: 0.25s; }
.ride-filter button:hover { color: var(--text-light); border-color: var(--primary-green); }
.ride-filter button.active { background: var(--primary-green); border-color: var(--primary-green); color: #111; }
.ride-type { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-family: 'Oswald', sans-serif; font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 10px; border-radius: 3px; margin-bottom: 0.8rem; border: 1px solid rgba(255,255,255,0.2); color: var(--text-muted); }
.ride-type-tour { background: var(--primary-green); border-color: var(--primary-green); color: #111; }
.ride-type-kurs { background: #d9b44a; border-color: #d9b44a; color: #111; }
.ride-type-special { background: #e8e4d0; border-color: #e8e4d0; color: #111; }
.ride-seats { font-size: 0.95rem; color: var(--text-light); margin: 0.4rem 0 0.6rem; }
.ride-seats.full { color: var(--cancel-red); font-weight: 700; }
.ride-price { font-size: 0.95rem; color: var(--text-light); margin-bottom: 0.4rem; }
.btn-signup { width: 100%; background: var(--primary-green); color: #111; border: none; border-radius: 6px; padding: 0.7rem 1rem; font-family: 'Oswald', sans-serif; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; margin: 0.4rem 0 0.8rem; transition: 0.25s; }
.btn-signup:hover:not(:disabled) { filter: brightness(1.1); }
.btn-signup:disabled { background: #333; color: #888; cursor: not-allowed; }
.signup-form label { display: block; font-size: 0.85rem; color: var(--text-muted); margin: 0.9rem 0 0.3rem; }
.signup-form input[type=text], .signup-form input[type=email] { width: 100%; padding: 0.7rem; border-radius: 6px; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.4); color: var(--text-light); font-size: 1rem; }
.signup-form .su-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; line-height: 1.4; }
.signup-form .su-check input { margin-top: 3px; }
.su-msg { min-height: 1.4em; color: var(--cancel-red); font-size: 0.9rem; margin: 0.6rem 0; }
.su-msg.ok { color: var(--primary-green); }
.su-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.8rem; }
#game-lives svg { display: inline-block; vertical-align: middle; }
.game-item svg { display: block; }
.ride-seats { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--primary-green); }
.ride-seats.full { color: var(--cancel-red); }
.signup-form textarea { font-family: inherit; }
.signup-form input.su-err, .signup-form textarea.su-err { border-color: var(--cancel-red) !important; box-shadow: 0 0 0 1px var(--cancel-red); }
.signup-form .su-check.su-err { color: var(--cancel-red); }
.su-msg.error { color: var(--cancel-red); font-weight: 700; }
.su-thanks { text-align: center; padding: 0.5rem 0 0; }
.su-thanks-icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: var(--primary-green); color: #111; display: flex; align-items: center; justify-content: center; font-size: 2rem; animation: suPop 0.5s ease-out; }
.su-thanks h4 { font-size: 1.6rem; margin-bottom: 0.8rem; }
.su-thanks p { color: var(--text-muted); margin-bottom: 0.8rem; line-height: 1.5; }
.su-thanks strong { color: var(--text-light); }
@keyframes suPop { 0% { transform: scale(0.3); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
.su-waitnote { background: rgba(255,213,79,0.12); border: 1px solid #ffd54f; color: #ffd54f; padding: 0.7rem 0.9rem; border-radius: 6px; font-size: 0.9rem; line-height: 1.5; margin-bottom: 0.6rem; }
.signup-form input[type=email].su-err { border-color: var(--cancel-red) !important; box-shadow: 0 0 0 1px var(--cancel-red); }
.input-group textarea { resize: none; }
.signup-form textarea { resize: none !important; }
.contact-form-box .su-thanks { padding: 1rem 0; }
.ride-seats { display: block; color: var(--seat-color, var(--primary-green)); }
.ride-seats .seat-line { display: flex; align-items: center; gap: 6px; }
.ride-seats .seat-bar { display: block; height: 5px; margin-top: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.ride-seats .seat-bar i { display: block; height: 100%; background: var(--seat-color, var(--primary-green)); border-radius: 3px; transition: width 0.6s ease; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: #161a16; border: 1px solid var(--primary-green); color: var(--text-light); padding: 10px 18px; border-radius: 6px; z-index: 100000; opacity: 0; transition: opacity 0.3s; }
.toast.show { opacity: 1; }

.badge-next { max-width: 62%; text-align: center; line-height: 1.2; }
.btn-details { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; background: transparent; border: 1px solid rgba(255,255,255,0.2); color: var(--text-light); border-radius: 6px; padding: 0.6rem 1rem; font-family: 'Oswald', sans-serif; letter-spacing: 1px; text-transform: uppercase; font-size: 0.9rem; cursor: pointer; margin: 0.4rem 0 0.8rem; transition: 0.25s; }
.btn-details:hover { border-color: var(--primary-green); color: var(--primary-green); }
.rd-title { font-size: 1.4rem; margin: 0 0 1rem; color: var(--text-light); }
.rd-rows { border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; overflow: hidden; margin-bottom: 1.2rem; }
.rd-row { display: flex; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.rd-row:last-child { border-bottom: none; }
.rd-k { flex: 0 0 90px; color: var(--text-muted); font-size: 0.85rem; padding-top: 2px; }
.rd-v { flex: 1; color: var(--text-light); line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.rd-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.rd-actions .btn-signup { flex: 1 1 100%; margin: 0 0 4px; }
.rd-actions .btn-maps { flex: 1; }
#legal-modal .modal-content { margin: auto; }
.ride-type-cancelled { background: var(--cancel-red); border-color: var(--cancel-red); color: #fff; }
.ride-tags { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; margin-bottom: 0.8rem; }
.ride-tags .ride-type { margin-bottom: 0; }
.ride-dav { font-family: 'Oswald', sans-serif; font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 10px; border-radius: 3px; border: 1px solid rgba(255,255,255,0.25); color: var(--text-muted); }
.ride-dav-yes { border-color: var(--primary-green); color: var(--primary-green); }
.rd-sub { color: var(--text-muted); font-size: 0.85rem; }
.su-notice { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); color: var(--text-muted); padding: 0.7rem 0.9rem; border-radius: 6px; font-size: 0.88rem; line-height: 1.5; margin-bottom: 0.6rem; }
.su-notice strong { color: var(--text-light); }

/* Preiszeile auf der Karte */
.ride-price { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.ride-price .ic { color: var(--primary-green); }
.ride-price strong { color: var(--text-light); font-weight: 600; }
.ride-price-member { color: var(--text-muted); }

.modal-close.modal-back { width: auto; height: 45px; border-radius: 25px; padding: 0 1.1rem; font-size: 1rem; font-weight: 600; gap: 0.4rem; }
.su-priceline { margin: 0.2rem 0 0.4rem; font-size: 0.95rem; color: var(--text-muted); }
.su-priceline strong { color: var(--primary-green); }
.ride-dav-fuehrung, .ride-dav-ausbildung { border-color: var(--primary-green); color: var(--primary-green); }

@media (max-width: 600px) {
  .rd-row { flex-direction: column; gap: 3px; padding: 9px 14px; }
  .rd-k { flex: none; padding-top: 0; font-size: 0.72rem; letter-spacing: 1.2px; text-transform: uppercase; }
}
@media (max-width: 600px) {
  #legal-modal { padding: 3vh 0.5rem; }
  #legal-modal .modal-content { padding: 1.6rem 0.9rem 1.4rem; }
  #legal-modal .rd-rows { margin-left: -0.2rem; margin-right: -0.2rem; }
  #legal-modal .rd-row { display: block; padding: 9px 12px; }
  #legal-modal .rd-k { display: block; margin-bottom: 3px; font-size: 0.72rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--primary-green); }
  #legal-modal .rd-v { display: block; width: 100%; }
}

/* Karten werden auf eigener Ebene gezeichnet, damit spaet geladene Inhalte (freie Plaetze) sofort sichtbar sind */
.ride-card { -webkit-transform: translateZ(0); transform: translateZ(0); backface-visibility: hidden; }
.ride-seats { min-height: 1.4rem; }

/* =========================================
   APP-FEELING (Smartphone)
   ========================================= */
#tabbar, .app-title, #ptr, .install-banner { display: none; }
@media (hover: none) { * { -webkit-tap-highlight-color: transparent; } }
html.is-app { overscroll-behavior-y: none; }   /* nur html, NICHT body: sonst blockiert body das vertikale Scrollen */
@media (max-width: 767px) {
    html { scroll-padding-bottom: 80px; }
    body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); -webkit-text-size-adjust: 100%; }
    .floating-action-buttons { bottom: calc(80px + env(safe-area-inset-bottom)); right: 14px; }
    .fab-btn { width: 50px; height: 50px; }

    /* Kopfzeile: dunkel, kompakt, mit Wortmarke statt Burger */
    .meine-navigation { background-color: rgba(10,12,10,0.96) !important; border-bottom: 1px solid rgba(139,195,74,0.25) !important; backdrop-filter: blur(12px); }
    .hamburger, .mobile-menu-label { display: none !important; }
    .app-title { display: block; position: absolute; left: 66px; top: 50%; transform: translateY(-50%); font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.3rem; letter-spacing: 1px; text-transform: uppercase; color: #fff; line-height: 1; pointer-events: none; }
    .app-title span { color: var(--primary-green); }

    /* Untere Tab-Leiste */
    #tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9500; background: rgba(10,12,10,0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid rgba(139,195,74,0.28); padding: 5px 6px calc(5px + env(safe-area-inset-bottom)); transition: transform 0.45s cubic-bezier(0.32,0.72,0,1); user-select: none; -webkit-user-select: none; }
    body.intro-active #tabbar { transform: translateY(110%); }
    #tabbar a, #tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-muted); background: none; border: 0; padding: 7px 0 5px; border-radius: 14px; position: relative; text-decoration: none; font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 0.62rem; letter-spacing: 0.6px; text-transform: uppercase; line-height: 1.2; cursor: pointer; transition: color 0.2s, transform 0.12s; }
    #tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1); }
    #tabbar .dots svg { fill: currentColor; stroke: none; }
    #tabbar a:active, #tabbar button:active { transform: scale(0.9); }
    #tabbar .active { color: var(--primary-green); }
    #tabbar .active svg { transform: translateY(-2px) scale(1.08); }
    #tabbar .active::before { content: ''; position: absolute; top: -6px; left: 50%; width: 26px; height: 3px; margin-left: -13px; border-radius: 0 0 4px 4px; background: var(--primary-green); box-shadow: 0 0 10px var(--primary-green); }

    /* Berührungs-Feedback */
    button, .btn-maps, .btn-share, .btn-rules, .btn-submit-contact { touch-action: manipulation; transition: transform 0.12s, background 0.2s, color 0.2s, border-color 0.2s; }
    button:active, .btn-maps:active, .btn-share:active, .btn-rules:active, .btn-submit-contact:active { transform: scale(0.96); }

    /* Info-Boxen & Anmeldung als Bottom-Sheet */
    #legal-modal { align-items: flex-end; padding: 0; overflow: hidden; background: rgba(0,0,0,0.7); }
    #legal-modal .modal-content { margin: 0 6px calc(6px + env(safe-area-inset-bottom)); width: calc(100% - 12px); max-width: none; max-height: 90vh; max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; border-radius: 22px; padding: 1.7rem 1rem 1.4rem; transform: translateY(110%); transition: transform 0.38s cubic-bezier(0.32,0.72,0,1); box-shadow: 0 -10px 40px rgba(139,195,74,0.18); }
    #legal-modal.active .modal-content { transform: none; }
    #legal-modal .modal-content::before { content: ''; position: absolute; top: 8px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: rgba(255,255,255,0.28); }
    #legal-modal .modal-close { position: sticky; top: 4px; float: right; z-index: 5; width: 38px; height: 38px; margin: -0.3rem -0.1rem 0 0.5rem; font-size: 1rem; }
    #legal-modal .modal-close.modal-back { float: left; width: auto; height: 38px; margin: -0.3rem 0.5rem 0 -0.1rem; }
    #legal-title { clear: both; padding-top: 0.5rem; font-size: 1.5rem !important; }

    /* Steckbrief-Fenster: sanftes Hochgleiten */
    #guide-modal #guide-modal-container { transform: translateY(46px); transition: transform 0.4s cubic-bezier(0.32,0.72,0,1); }
    #guide-modal.active #guide-modal-container { transform: none; }

    /* Install-Hinweis */
    .install-banner { display: flex; align-items: center; gap: 12px; position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 9600; padding: 10px 12px; border-radius: 16px; background: rgba(18,22,18,0.97); border: 1px solid var(--primary-green); box-shadow: 0 10px 40px rgba(0,0,0,0.7), 0 0 20px rgba(139,195,74,0.25); transform: translateY(160%); opacity: 0; transition: transform 0.5s cubic-bezier(0.32,0.72,0,1), opacity 0.4s; }
    .install-banner.in { transform: none; opacity: 1; }
    .install-banner img { border-radius: 10px; flex-shrink: 0; }
    .ib-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
    .ib-txt strong { color: var(--text-light); font-size: 0.92rem; }
    .ib-txt span { color: var(--text-muted); font-size: 0.78rem; }
    .ib-txt b { color: var(--primary-green); }
    .ib-go { background: var(--primary-green); color: #111; border: 0; border-radius: 10px; padding: 9px 12px; font-weight: 800; font-size: 0.82rem; cursor: pointer; white-space: nowrap; }
    .ib-x { background: none; border: 0; color: var(--text-muted); font-size: 1rem; padding: 6px; cursor: pointer; }

    /* Pull-to-Refresh (App-Modus) */
    #ptr { display: block; position: fixed; top: calc(var(--ticker-height) + var(--nav-height)); left: 50%; width: 36px; height: 36px; margin-top: -30px; border-radius: 50%; background: #121612; border: 2px solid var(--primary-green); z-index: 9400; opacity: 0; transform: translate(-50%, 0); transition: opacity 0.2s; pointer-events: none; }
    #ptr.show { opacity: 1; }
    #ptr span { position: absolute; inset: 7px; border-radius: 50%; border: 2px solid rgba(139,195,74,0.35); border-top-color: var(--primary-green); }
    #ptr.ready span { border-color: var(--primary-green); }
    #ptr.spin span { animation: ptrspin 0.7s linear infinite; }
    @keyframes ptrspin { to { transform: rotate(360deg); } }
}

@media (max-width: 767px) {
    .ih-wrap { position: fixed; inset: 0; z-index: 2100000; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,0.75); backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.3s; padding: 0; }
    .ih-wrap.in { opacity: 1; }
    .ih-card { width: 100%; background: var(--bg-dark-1); border: 1px solid var(--primary-green); border-bottom: none; border-radius: 22px 22px 0 0; padding: 1.6rem 1.3rem calc(1.4rem + env(safe-area-inset-bottom)); text-align: center; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.32,0.72,0,1); }
    .ih-wrap.in .ih-card { transform: none; }
    .ih-card img { border-radius: 14px; margin-bottom: 0.6rem; }
    .ih-card h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }
    .ih-card ol { text-align: left; margin: 0 0 1rem 1.3rem; color: var(--text-light); line-height: 1.7; }
    .ih-card p { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 1rem; }
    .ih-card b { color: var(--primary-green); }
    .ih-ok { background: var(--primary-green); color: #111; border: 0; border-radius: 12px; padding: 12px 30px; font-weight: 800; font-size: 1rem; width: 100%; cursor: pointer; }
}

/* Galerie: OnlyTrails-Logo unten rechts in jedem Bild */
.masonry-item::before, .lb-frame::before { content: ''; position: absolute; right: 0; bottom: 0; width: clamp(64px, 26%, 120px); aspect-ratio: 1; background: radial-gradient(circle at 100% 100%, rgba(0,0,0,.30) 0%, rgba(0,0,0,.12) 45%, rgba(0,0,0,0) 75%); pointer-events: none; border-radius: 0 0 inherit; }
.masonry-item::after, .lb-frame::after { content: ''; position: absolute; right: 9px; bottom: 9px; width: clamp(26px, 10%, 44px); aspect-ratio: 1; background: url('assets/logo.webp') center / contain no-repeat; filter: drop-shadow(0 1px 3px rgba(0,0,0,.55)); opacity: .62; pointer-events: none; transition: opacity .3s; }
.masonry-item:hover::after { opacity: .9; }
.lb-frame { position: relative; display: inline-block; line-height: 0; }
.lb-frame::before { width: clamp(90px, 22%, 190px); }
.lb-frame::after { right: 14px; bottom: 14px; width: clamp(34px, 8%, 64px); }
.lb-frame #lightbox-img { margin-bottom: 0; display: block; }
@media (max-width: 768px) { .lb-frame { margin-bottom: 10px; } .lb-frame::after { right: 8px; bottom: 8px; } }

/* Regel-Kacheln */
.rule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 0.4rem; }
.rule-card { position: relative; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 1.1rem 1rem 1rem; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease; animation: rule-in .45s ease both; animation-delay: calc(var(--i, 0) * 45ms); overflow: hidden; }
.rule-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, rgba(139,195,74,0.14), transparent 60%); opacity: .6; pointer-events: none; transition: opacity .25s; }
.rule-num { position: absolute; top: 10px; right: 14px; font-family: 'Oswald', sans-serif; font-size: 1.5rem; font-weight: 700; color: rgba(139,195,74,0.28); letter-spacing: 1px; }
.rule-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: rgba(139,195,74,0.12); border: 1px solid rgba(139,195,74,0.35); color: var(--primary-green); margin-bottom: 0.8rem; transition: transform .25s ease, background .25s ease; }
.legal-text .rule-card h5 { margin: 0 0 0.35rem; font-family: 'Oswald', sans-serif; font-size: 1.05rem; letter-spacing: .3px; color: var(--text-light); text-transform: uppercase; }
.legal-text .rule-card p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--text-muted); }
.rule-foot { margin: 1.1rem 0 0; font-size: 0.82rem !important; text-align: center; }
@media (hover: hover) {
  .rule-card:hover { transform: translateY(-4px); border-color: var(--primary-green); box-shadow: 0 0 0 1px rgba(139,195,74,0.25), 0 10px 26px rgba(0,0,0,0.5), 0 0 22px rgba(139,195,74,0.18); background: rgba(139,195,74,0.05); }
  .rule-card:hover::before { opacity: 1; }
  .rule-card:hover .rule-ico { transform: rotate(-6deg) scale(1.08); background: rgba(139,195,74,0.22); }
}
.rule-card:active { transform: scale(.98); }
@keyframes rule-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .rule-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .rule-card { padding: 0.9rem 0.8rem; } .legal-text .rule-card h5 { font-size: .95rem; } .legal-text .rule-card p { font-size: .82rem; } }
@media (max-width: 380px) { .rule-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .rule-card { animation: none; } }

/* =========================================
   SCROLLBARS IM OnlyTrails-DESIGN
   ========================================= */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0b0d0a; border-left: 1px solid rgba(139,195,74,0.08); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #8bc34a, #4f7a22); border-radius: 10px; border: 2px solid #0b0d0a; min-height: 40px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #a5d85f, #6a9a30); box-shadow: 0 0 10px rgba(139,195,74,0.5); }
::-webkit-scrollbar-corner { background: #0b0d0a; }
#legal-modal .modal-content::-webkit-scrollbar, .custom-modal::-webkit-scrollbar { width: 6px; }
#legal-modal .modal-content::-webkit-scrollbar-track { background: transparent; border: 0; margin: 14px 0; }
#legal-modal .modal-content::-webkit-scrollbar-thumb { border: 0; }
/* Firefox */
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: #8bc34a #0b0d0a; }
}

/* Regel-Kacheln: Zahl als Barber-Pole, Desktop breit & zentriert */
.rule-num { background: linear-gradient(135deg, #8bc34a 25%, #f4f1e1 25% 50%, #8bc34a 50% 75%, #f4f1e1 75%); background-size: 14px 14px; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: barber-pole .7s linear infinite; text-shadow: none; opacity: .95; }
@keyframes barber-pole { to { background-position: 14px 0; } }
.rule-top { display: contents; }
@media (prefers-reduced-motion: reduce) { .rule-num { animation: none; } }

@media (min-width: 900px) {
  #legal-modal.rules-wide .modal-content { max-width: min(1240px, 95vw); padding: 2rem 2rem 1.6rem; }
  #legal-modal.rules-wide #legal-title { text-align: center; margin: 0 0 1.4rem; }
  #legal-modal.rules-wide .rule-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 0; }
  #legal-modal.rules-wide .rule-card { text-align: center; padding: 1.1rem 0.9rem 1rem; display: flex; flex-direction: column; align-items: center; }
  #legal-modal.rules-wide .rule-top { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 0.8rem; }
  #legal-modal.rules-wide .rule-ico { margin-bottom: 0; width: 54px; height: 54px; }
  #legal-modal.rules-wide .rule-num { position: static; font-size: 2.6rem; line-height: 1; font-weight: 800; letter-spacing: 1px; }
  #legal-modal.rules-wide .rule-card h5 { font-size: 1rem; }
  #legal-modal.rules-wide .rule-card p { font-size: .86rem; }
}
/* Handy: Zahl wie vorher oben rechts, Scrollbar am Sheet */
@media (max-width: 899px) {
  .rule-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 0.8rem; }
  .rule-top .rule-ico { margin-bottom: 0; flex: none; }
  .rule-num { position: static; font-size: 2.6rem; line-height: 1; font-weight: 800; letter-spacing: 0; }
}
@media (max-width: 380px) { .rule-num { font-size: 2.3rem; } }

/* Hintergrund nicht mitscrollen, solange ein Info-Fenster offen ist */
html:has(#legal-modal.active), body:has(#legal-modal.active) { overflow: hidden; }
#legal-modal { overscroll-behavior: contain; }
@media (max-width: 899px) { #legal-modal .modal-content { scrollbar-gutter: auto; } #legal-modal .modal-content::-webkit-scrollbar { width: 5px; } #legal-modal .modal-content::-webkit-scrollbar-track { margin: 22px 0; } }

/* Ring-Statistik vergangener Ausfahrten */
.ring-stats { margin: 1.4rem 0; padding: 14px 10px 10px; background: rgba(0,0,0,0.5); border: 1px solid rgba(139,195,74,0.3); border-radius: 10px; }
.ring-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ring-item { text-align: center; min-width: 0; }
.ring-item svg { width: 100%; max-width: 78px; height: auto; display: block; margin: 0 auto; }
.ring-bg { fill: none; stroke: rgba(255,255,255,0.09); stroke-width: 7; }
.ring-arc { fill: none; stroke: var(--rc, var(--primary-green)); stroke-width: 7; stroke-linecap: round; }
.ring-item text { fill: var(--text-light); font-weight: 700; font-family: inherit; }
.ring-l { font-size: 0.68rem; color: var(--text-muted); margin-top: 3px; line-height: 1.2; }
.ring-d { font-size: 0.7rem; min-height: 1em; margin-top: 2px; color: var(--text-muted); font-weight: 600; }
.ring-d.up { color: var(--primary-green); }
.ring-d.down { color: #e57373; }
.ring-foot { margin: 10px 0 0 !important; font-size: 0.68rem !important; line-height: 1.35; color: var(--text-muted); text-align: center; }
@media (max-width: 360px) { .ring-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; } }

/* Handy: Ausfahrten-Karten kompakter, nichts hinter Ticker/Navi/Tabbar */
@media (max-width: 600px) {
  html { scroll-padding-top: calc(var(--ticker-height) + var(--nav-height) + 8px); scroll-padding-bottom: 90px; }
  #rides { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
  .grid-container { padding-top: 22px !important; padding-bottom: 26px !important; }
  .grid-container .ride-card { padding: 1.05rem 1.05rem 0.95rem !important; font-size: 0.92rem; }
  .ride-card h3 { font-size: 1.12rem !important; margin-bottom: 0.3rem !important; line-height: 1.25; }
  .ride-card h4 { font-size: 0.9rem !important; margin-bottom: 0.55rem !important; }
  .ride-card p, .ride-card .ride-info-text { font-size: 0.88rem; }
  .ride-next, .ride-next:hover { transform: none !important; }
  .ring-stats { margin: 0.8rem 0 !important; padding: 10px 6px 8px; }
  .ring-item svg { max-width: 62px; }
  .ring-l { font-size: 0.62rem; }
  .ring-foot { display: none; }
}
