:root {
    --color-white: #ffffff;
    --color-light-gray: #f8f9fa;
    --color-gray: #6c757d;
    --color-dark-gray: #343a40;
    --color-primary: #4CAF50; /* Grün */
    --color-primary-dark: #388E3C;
    --color-secondary: #2196F3; /* Blau */
    --color-secondary-dark: #1976D2;
    --font-family: 'Montserrat', 'Open Sans', sans-serif;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-dark-gray);
    overflow-x: hidden;
}

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

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.underline {
    height: 4px;
    width: 70px;
    background-color: var(--color-primary);
    margin: 0 auto;
    margin-top: 10px;
}

.underline.light {
    background-color: var(--color-white);
}

.rounded-img {
    border-radius: var(--border-radius);
}

.shadow {
    box-shadow: var(--box-shadow);
}

.bg-light {
    background-color: var(--color-light-gray);
}

.bg-primary {
    background-color: var(--color-primary);
}

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

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

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

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

.btn-light {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-light:hover {
    background-color: var(--color-light-gray);
}

.mt-4 {
    margin-top: 2rem;
}

/* Header & Navigation */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    text-align: center; /* Zentriert den gesamten Listeneintrag */
}

.nav-link {
    color: var(--color-dark-gray);
    padding: 10px 15px;
    font-weight: 600;
    text-align: center; /* Zentriert den Text im Link */
    display: inline-block; /* Wichtig für die korrekte Textausrichtung */
    width: 100%; /* Nimmt die volle Breite des Elternelements ein */
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-dark-gray);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/hero-cycling-group.jpg');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    margin-top: 73px; /* Height of the header */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* About Section */
.content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.text-content, .image-content {
    flex: 1;
}

.text-content p {
    margin-bottom: 1rem;
}

.content-wrapper.reverse {
    flex-direction: row-reverse;
}

/* Schedule Section */
.schedule-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.schedule-card {
    flex: 1;
    min-width: 300px;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.card-header {
    padding: 20px;
    text-align: center;
    color: var(--color-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
}

.card-header.summer {
    background-color: var(--color-primary);
}

.card-header.winter {
    background-color: var(--color-secondary);
}

.card-body {
    padding: 20px;
}

.card-body p {
    margin-bottom: 10px;
}

.info-box {
    margin-top: 30px;
    padding: 15px;
    background-color: #fff3cd;
    border-radius: var(--border-radius);
    border-left: 4px solid #ffc107;
}

/* Schedule Section - Moderne Version */
.schedule-tabs {
    margin-bottom: 30px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 15px;
}

.tab-btn {
    background: var(--color-white);
    border: 2px solid transparent;
    border-radius: 30px;
    padding: 12px 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.tab-btn i {
    font-size: 1.1rem;
}

.tab-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tab-btn.active[data-season="summer"] {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
    border-color: #4CAF50;
}

.tab-btn.active[data-season="winter"] {
    background: linear-gradient(135deg, #2196F3, #03A9F4);
    color: white;
    border-color: #2196F3;
}

.schedule-cards {
    position: relative;
    max-width: 650px;
    margin: 0 auto;
}

.schedule-card {
    background-color: var(--color-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(20px);
    visibility: hidden;
}

.schedule-card.active {
    opacity: 1;
    position: relative;
    transform: translateY(0);
    visibility: visible;
}

.card-header {
    padding: 30px 20px;
    text-align: center;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.card-header h3 {
    margin: 0;
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
    margin-bottom: 0; /* Kein Abstand unter dem Titel */
}

.card-header.summer {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
}

.card-header.winter {
    background: linear-gradient(135deg, #2196F3, #03A9F4);
}

.season-icon {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.season-icon i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.season-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 10px;
    vertical-align: middle;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-body {
    padding: 30px 20px;
}

.schedule-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.schedule-item:last-child {
    margin-bottom: 0;
}

.schedule-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background-color: var(--color-light-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.schedule-icon i {
    font-size: 1.2rem;
    color: var(--color-primary);
}

.schedule-detail h4 {
    margin: 0 0 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--color-gray);
    letter-spacing: 0.5px;
}

.schedule-detail p {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.card-footer {
    padding: 15px 20px 25px;
    text-align: center;
    border-top: 1px solid var(--color-light-gray);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.info-box {
    margin-top: 40px;
    background: linear-gradient(to right, #fff8e1, #fffde7);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #FFC107;
}

.info-icon {
    font-size: 2rem;
    color: #FFC107;
    margin-right: 20px;
    flex-shrink: 0;
}

.info-content p {
    margin: 0 0 10px;
}

.info-link {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.info-link:hover {
    color: var(--color-primary-dark);
}

.info-link:after {
    content: '→';
    transition: transform 0.3s ease;
}

.info-link:hover:after {
    transform: translateX(5px);
}

/* How We Ride Section */
.feature-item {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-right: 20px;
    width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.feature-text h3 {
    margin-bottom: 0.5rem;
}

/* Join Section */
.join-content {
    text-align: center;
}

.join-options {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.join-option {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.join-option i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.join-option h3 {
    margin-bottom: 15px;
}

.join-option p {
    margin-bottom: 20px;
}

/* Gallery Section */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 200px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
}

/* Contact Section */
.contact-card {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    max-width: 600px;
    margin: 0 auto;
}

.contact-image {
    flex-shrink: 0;
}

.contact-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.contact-info h3 {
    margin-bottom: 5px;
}

.contact-info p {
    color: var(--color-gray);
    margin-bottom: 15px;
}

.social-link {
    display: block;
    margin-bottom: 10px;
}

.social-link i {
    margin-right: 5px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #388E3C 0%, #1976D2 100%);
    color: var(--color-white);
    padding: 0 0 20px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
}

.footer-brand {
    grid-column: span 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo-img {
    height: 45px;
    margin-right: 12px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.footer-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.footer-slogan p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

.footer-nav, .footer-contact, .footer-social-box {
    grid-column: span 1;
}

.footer h4 {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 40px;
    background-color: var(--color-white);
    border-radius: 3px;
}

.footer ul {
    padding: 0;
}

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

.footer ul li a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer ul li a:hover {
    color: var(--color-white);
    transform: translateX(5px);
}

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

.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon-btn:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-credits {
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.8;
}

.footer-credits a {
    color: var(--color-white);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.footer-credits a:hover {
    color: var(--color-white);
    text-decoration-color: var(--color-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-brand {
        grid-column: span 2;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-nav, .footer-contact, .footer-social-box {
        text-align: center;
    }
    
    /* Hinzufügen dieser Regel für die Zentrierung des Social Icons */
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-brand, .footer-nav, .footer-contact, .footer-social-box {
        grid-column: span 1;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-credits {
        padding: 0 20px;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .section {
        padding: 60px 0;
    }

    .content-wrapper, .content-wrapper.reverse {
        flex-direction: column;
    }

    .image-content {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 73px;
        left: -100%;
        flex-direction: column;
        background-color: var(--color-white);
        width: 100%;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        transition: 0.3s;
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        display: block;
        padding: 15px 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .join-options {
        flex-direction: column;
        align-items: center;
    }

    .join-option {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-links a {
        display: block;
        margin: 10px 0;
    }
    
    .footer-divider {
        display: none;
    }
}

/* Responsive Anpassungen für die Schedule Section */
@media (max-width: 768px) {
    .tab-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
        max-width: 250px;
    }
    
    .schedule-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    .schedule-detail p {
        font-size: 1rem;
    }
    
    .info-box {
        flex-direction: column;
        text-align: center;
    }
    
    .info-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Legal Section Styles */
.legal-section {
    padding-top: 120px; /* Mehr Platz unter dem Header */
}

.legal-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.legal-content {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.legal-content h2 {
    color: var(--color-primary-dark);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--color-light-gray);
    padding-bottom: 10px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    color: var(--color-secondary-dark);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.legal-content p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-content ul li {
    margin-bottom: 8px;
    position: relative;
    list-style-type: disc;
}

.legal-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-content .index {
    background-color: var(--color-light-gray);
    border-radius: var(--border-radius);
    padding: 20px 30px;
    margin: 20px 0 30px;
}

.legal-content .index li {
    margin-bottom: 8px;
    list-style-type: none;
}

.legal-content .index-link {
    text-decoration: none;
    color: var(--color-secondary-dark);
    font-weight: 500;
}

.legal-content .index-link:hover {
    color: var(--color-primary);
}

.legal-content strong {
    color: var(--color-dark-gray);
}

.legal-content .seal {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--color-light-gray);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

.legal-content .seal a {
    color: var(--color-gray);
}

.back-link {
    text-align: center;
    margin: 30px 0;
}

/* Responsive anpassungen für Legal Section */
@media (max-width: 768px) {
    .legal-section {
        padding-top: 100px;
    }

    .legal-content {
        padding: 25px;
    }

    .legal-content h2 {
        font-size: 1.6rem;
    }

    .legal-content h3 {
        font-size: 1.3rem;
    }
}
