:root {
    --wald-dunkel: #2f5d42;
    --wald-mittel: #3f6f4f;
    --wald-hell: #5e8c6a;
    --hintergrund: #eef3ee;
    --karte: #ffffff;
    --text-dunkel: #2c3e2f;
}

/* ========================= Grundlayout ========================= */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--hintergrund);
    color: var(--text-dunkel);
}

/* ========================= Navbar ========================= */
.main-navbar {
    background: linear-gradient(135deg, var(--wald-mittel), var(--wald-dunkel));
    padding: 18px 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.navbar-logo {
    height: 55px;
    width: auto;
}

.brand-title {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.brand-text small {
    color: #e6f2eb;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: opacity 0.25s ease;
}

.navbar-nav .nav-link:hover {
    opacity: 0.85;
}

/* Aktive Tour im Dropdown */
.active-tour {
    background-color: var(--wald-mittel);
    color: white !important;
    border-radius: 12px;
}

/* ========================= Dropdown Menü ========================= */
.dropdown-menu {
    border: none;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.dropdown-item {
    border-radius: 12px;
    padding: 8px 14px;
    transition: background 0.25s ease, transform 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--hintergrund);
    transform: translateX(4px);
}

/* ========================= Tour-Bereich ========================= */
.tour h2 {
    font-weight: 600;
    margin-bottom: 10px;
}

/* Meta-Infos */
.tour-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.tour-meta i {
    margin-right: 6px;
    color: var(--wald-mittel);
}

/* ========================= Karten / Galerie ========================= */
.card {
    border: none;
    border-radius: 18px;
    background-color: var(--karte);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.card img {
    transition: filter 0.35s ease;
}

.card:hover img {
    filter: brightness(1.05);
}

/* ========================= Modal ========================= */
.modal-content {
    border-radius: 20px;
}

/* Pfeile */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50px;
    background: rgba(47, 93, 66, 0.7);
    border: none;
    color: white;
    font-size: 3rem;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 1050;
    transition: background 0.2s ease;
}

.nav-arrow:hover {
    background: rgba(47, 93, 66, 0.9);
}

.start-0 {
    left: 10px;
}

.end-0 {
    right: 10px;
}

/* ========================= Fade Animation Bildwechsel ========================= */
.fade-image {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.fade-image.visible {
    opacity: 1;
}

/* Hochkantbilder im Modal begrenzen */
#modalImage {
    max-height: 80vh;
    /* max 80% der Viewport-Höhe */
    width: auto;
    max-width: 100%;
    object-fit: contain;
	transform: scale(1.05);
}

.gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    /* Querformat */
    object-fit: cover;
}

.gallery img.portrait {
    aspect-ratio: 3 / 4;
}

/* ========================= Statistik-Karten ========================= */
.welcome-card {
    background: linear-gradient(135deg, #ffffff, #f3f7f3);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.map-box {
    height: 100%;
    min-height: 350px;
    border-radius: 18px;
    overflow: hidden;
}

.elevation-container {
    height: 100%;
    min-height: 350px;
    background: linear-gradient(to top, #eef3ee, #ffffff);
    border-radius: 18px;
    padding: 10px;
}

.elevation-container canvas {
    width: 100%;
    height: 100%;
}