/* ================================
   Grundfarben, Schatten & Variablen
   ================================ */
:root {
    --bg: #F5F2EB;
    --bg-alt: #E9E3D6;
    --text: #2E2E2E;
    --accent: #D8B878;
    --accent-dark: #B08F5A;
    --green: #4A5F3D;
    --brown: #6B4F3A;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.12);
    --radius: 10px;
    --transition: 0.3s ease;
}

/* ================================
   Reset & Grundlayout
   ================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* ================================
   Header & Navigation
   ================================ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: rgba(245, 242, 235, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

nav a:hover::after {
    width: 100%;
}

/* ================================
   Hero-Bereich
   ================================ */
.hero {
    position: relative;
    height: 90vh;
    background-image: url("bilder/hero.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    margin-top: 70px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.45),
        rgba(0,0,0,0.6)
    );
}

.hero-text {
    position: relative;
    max-width: 700px;
    text-align: center;
    color: #fff;
}

.hero-text h1 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    margin-bottom: 10px;
}

/* ================================
   Parallax-Sektion
   ================================ */
.parallax-section {
    position: relative;
    height: 50vh;
    background-image: url("bilder/hero.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* WICHTIG: Ohne diese Zeile KEIN Parallax */
    background-attachment: fixed;

    margin: 0;
}

.parallax-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
}

.parallax-text {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 2rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* ================================
   Buttons
   ================================ */
.btn-primary {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.18);
}

/* ================================
   Filterleiste
   ================================ */
.route-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
    justify-content: center;
}

.filter-btn {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent);
    color: #fff;
}

/* ================================
   Allgemeine Sektionen
   ================================ */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section-alt {
    background: var(--bg-alt);
    border-radius: 40px;
    margin: 40px 0;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--green);
}

.section-intro {
    max-width: 700px;
    margin-bottom: 40px;
}

/* ================================
   Slider (Swiper)
   ================================ */
.slider-section {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px 40px;
}

.slider-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--brown);
}

.swiper {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.swiper-slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.swiper-slide {
    opacity: 0 !important;
    transition: opacity 1.2s ease-in-out;
}

.swiper-slide-active {
    opacity: 1 !important;
}

/* ================================
   Karten-Layout (Reitwege)
   ================================ */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.15);
}

.card h3 {
    margin-top: 0;
    color: var(--brown);
}

/* ================================
   Karten (Reitwege)
   ================================ */
#reitkarte {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    margin-top: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#reitkarte:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}

/* ================================
   Accordion
   ================================ */
.accordion {
    max-width: 800px;
}

.accordion-item {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 10px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 14px 18px;
    background: #fff;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.accordion-header::after {
    content: "+";
    font-weight: 700;
}

.accordion-item.active .accordion-header::after {
    content: "–";
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 18px;
    transition: max-height var(--transition), padding var(--transition);
}

.accordion-item.active .accordion-content {
    padding: 0 18px 14px;
}

/* ================================
   Timeline
   ================================ */
.timeline {
    position: relative;
    margin-top: 30px;
    padding-left: 20px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 30px;
}

.timeline-dot {
    position: absolute;
    left: 2px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(216,184,120,0.3);
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--brown);
}

/* ================================
   Footer & Kontaktformular
   ================================ */
.footer {
    background: #2E2E2E;
    color: #fff;
    padding: 60px 20px 30px;
    margin-top: 40px;
    text-align: center;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto 20px;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

input,
textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 0.95rem;
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 768px) {
    .main-header {
        padding: 0 16px;
    }

    nav a {
        margin-left: 10px;
        font-size: 0.85rem;
    }

    .hero {
        height: 80vh;
    }

    .form-row {
        flex-direction: column;
    }
}

/* ================================
   Sidebar (statt Popup)
   ================================ */
#sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    z-index: 900;
}

#sidebar-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 12px rgba(0,0,0,0.2);
    padding: 20px;
    transition: right 0.35s ease;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar.open {
    right: 0;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    float: right;
}

#sidebar-image {
    width: 100%;
    border-radius: 6px;
    margin: 15px 0;
}
