body {
    background-color: #333;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #333;
}

::-webkit-scrollbar-thumb {
    background: #e17709;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.woff2') format('woff2'),
         url('../fonts/Roboto-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Bold.woff2') format('woff2'),
         url('../fonts/Roboto-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    line-height: 1.6;
    color: #333;
}

header {
    background: linear-gradient(135deg, #000000 0%, #e17709 50%, #000000 100%);
    padding: 90px 20px 20px 20px; /* Oberes Padding auf 90px erhöht, um genügend Platz für die Navbar zu schaffen */
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../pic/bike/bike1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

/* Anpassung für mobile Geräte */
@media (max-width: 768px) {
    header::before {
        background-position: center center;
        background-size: cover;
        background-attachment: scroll; /* Verhindert fixierte Hintergründe auf mobilen Geräten */
    }
}

header > * {
    position: relative;
    z-index: 1;
}

header img {
    max-width: 250px;
    border-radius: 50%;
    border: 2px solid #e17709;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Navigation styles */
nav {
    background-color: #333;
    position: fixed; /* Von sticky zu fixed geändert */
    top: 0;
    left: 0; /* Hinzugefügt, um sicherzustellen, dass die Navigation links sitzt */
    z-index: 1000;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

section {
    padding: 2rem 1rem;
    text-align: center;
}

/* Event-Beschreibung Styling */
.event-description {
    max-width: 1000px;
    margin: 2rem auto;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: left;
    line-height: 1.8;
    border-left: 5px solid #e17709;
    position: relative;
    overflow: hidden;
}

.event-description-header {
    padding: 15px 35px 15px 35px;
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(225, 119, 9, 0.2);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.event-description-header:hover {
    background-color: rgba(225, 119, 9, 0.05);
}

.event-description-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2em;
    font-weight: 600;
}

.event-description-toggle {
    color: #e17709;
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.event-description-toggle.active {
    transform: rotate(180deg);
}

.event-description-content {
    padding: 0 35px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.event-description-content.active {
    max-height: 1000px;
    padding: 20px 35px;
}

.event-description p {
    color: #333;
    font-size: 1.1em;
    margin: 0;
    font-weight: 400;
    text-align: justify;
}

@media (max-width: 768px) {
    .event-description {
        margin: 1.5rem 15px;
        border-radius: 6px;
    }
    
    .event-description-header {
        padding: 12px 15px 12px 25px;
    }
    
    .event-description-content.active {
        padding: 15px 25px;
    }
    
    .event-description p {
        font-size: 1em;
        text-align: left;
    }
    
    .menu-icon {
        font-size: 1.6rem; /* Etwas größeres Symbol */
    }
    
    /* Verstecke das Wort "Menü" in der mobilen Ansicht */
    .menu-icon::after {
        content: "";
        display: inline;
    }
    
    .menu-icon span {
        display: none; /* Versteckt den Text "Menü" */
    }
}

.slideshow-container {
    max-width: 600px;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.slideshow-container img {
    width: 100%;
    display: none;
}

.slideshow-container img.active {
    display: block;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 50%;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

footer {
    background: linear-gradient(135deg, #000000 0%, #333333 50%, #000000 100%);
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../pic/bike/bike4.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

footer .footer-content, 
footer p, 
footer .footer-content ul,
footer .footer-link {
    position: relative;
    z-index: 1;
}

footer .footer-content ul {
    list-style-type: none;
    padding: 0;
}

footer .footer-content ul li {
    display: inline;
    margin: 0 10px;
}

footer .footer-content ul li a {
    color: #e17709;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .footer-content ul li a:hover {
    color: #fff;
    text-decoration: none;
}

footer p {
    color: #fff;
}

.footer-link {
    color: #FFA500; /* Orange */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #FFFFFF; /* Weiß */
}

/* Slideshow-Container Styling */
.slideshow-container {
    position: relative;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
    background-color: #000;
    border-radius: 8px;
}

.slideshow-image {
    display: none;
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.slideshow-image.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0.4 }
    to { opacity: 1 }
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    border: none;
    outline: none;
    z-index: 2;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(225, 119, 9, 0.8);
}

.image-counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background-color: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 2;
}

.fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px;
    cursor: pointer;
    z-index: 2;
}

.fullscreen-btn:hover {
    background-color: rgba(225, 119, 9, 0.8);
}

.progress-dots {
    text-align: center;
    padding: 10px 0;
    background-color: rgba(0,0,0,0.7);
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.dot {
    display: inline-block;
    height: 10px;
    width: 10px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: #e17709;
}

.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen .slideshow-image.active {
    max-height: 95vh;
}

.fullscreen .exit-fullscreen {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(225, 119, 9, 0.8);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 10000;
    font-size: 16px;
}

.swipe-area {
    position: absolute;
    height: 100%;
    width: 50%;
    top: 0;
    z-index: 1;
}

.swipe-left {
    left: 0;
}

.swipe-right {
    right: 0;
}

@media (max-width: 768px) {
    .prev, .next {
        padding: 8px;
        font-size: 16px;
    }
    
    .image-counter {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    .dot {
        height: 8px;
        width: 8px;
    }
}

/* Mobile Vollbild Fallback */
.mobile-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999 !important;
    background-color: black !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.mobile-fullscreen .slideshow-image.active {
    max-height: 95vh !important;
}

.mobile-fullscreen .exit-fullscreen {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(225, 119, 9, 0.8);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 10000;
    font-size: 18px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .mobile-fullscreen .prev, 
    .mobile-fullscreen .next {
        padding: 12px;
        font-size: 18px;
    }
    
    .mobile-fullscreen .image-counter {
        bottom: 20px;
        font-size: 14px;
        padding: 5px 10px;
    }
}