/* ── RESET & ROOT ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --steel: #2c3e50;
    --rust: #c0392b;
    --smoke: #f4f1ec;
    --iron: #7f8c8d;
    --gold: #d4a843;
    --fire: #222e2e;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    background: var(--smoke);
    color: var(--steel);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── HEADER ── */
header {
    background: var(--steel);
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 4px solid var(--rust);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: #fff;
}
.page-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--fire);
    margin: 1.4rem 0 0.4rem;
    padding-left: 0.75rem;
}

.page-content .subtitle {
    font-style: italic;
    color: var(--iron);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    padding-left: 0.75rem;
    line-height: 1.6;
}

header h1 a {
    color: #fff;
    text-decoration: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.home-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-icon img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s;
    display: block;
}

.home-icon:hover img {
    opacity: 0.7;
}

/* ── BURGER ── */
.burger {
    background: none;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 4px;
    padding: 6px 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── NAV ── */
nav#mobileMenu {
    background: var(--steel);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    position: fixed;
    top: 64px;
    width: 100%;
    z-index: 999;
}

nav#mobileMenu.open {
    max-height: 400px;
}

nav#mobileMenu ul {
    list-style: none;
    padding: 0.5rem 0;
}

nav#mobileMenu ul li a {
    display: block;
    padding: 0.75rem 2rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

nav#mobileMenu ul li a:hover {
    color: #fff;
    border-left-color: var(--rust);
    background: rgba(255,255,255,0.05);
    padding-left: 2.5rem;
}

/* ── MAIN ── */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 68px;
}

/* ── HERO SECTION ── */
.hero {
    width: 100%;
    background: linear-gradient(135deg, var(--steel) 0%, #1a252f 100%);
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── SLIDER ── */
.slider-section {
    width: 100%;
    max-width: 900px;
    padding: 2.5rem 1.5rem;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(44,62,80,0.25);
    background: #000;
    aspect-ratio: 16/9;
}

.slide-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.slide-track img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(44,62,80,0.75);
    border: none;
    color: white;
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(4px);
}

.slider-btn:hover {
    background: var(--rust);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--iron);
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.dot.active {
    background: var(--rust);
    transform: scale(1.3);
}

.slide-caption {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--iron);
    font-style: italic;
    min-height: 1.2em;
    transition: opacity 0.3s;
}

/* ── INFO CARDS ── */
.info-section {
    width: 100%;
    max-width: 900px;
    padding: 0 1.5rem 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border-top: 4px solid var(--rust);
    box-shadow: 0 4px 16px rgba(44,62,80,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(44,62,80,0.14);
}

.card-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--steel);
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.9rem;
    color: var(--iron);
    line-height: 1.6;
}

/* ── PAGE CONTENT (Geschichte, Rallye, Galerie, etc.) ── */
.page-hero {
    width: 100%;
    background: linear-gradient(135deg, var(--steel) 0%, #1a252f 100%);
    color: white;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
}

.page-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.page-hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: rgba(255,255,255,0.65);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

.page-content {
    width: 100%;
    max-width: 900px;
    padding: 2.5rem 1.5rem 3rem;
}

.page-content p {
    line-height: 1.8;
    margin-bottom: 1.2rem;
    color: var(--steel);
    font-size: 1rem;
}

.page-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--steel);
    margin: 2rem 0 0.75rem;
    border-left: 4px solid var(--rust);
    padding-left: 0.75rem;
}

/* ── GALERIE GRID ── */
.galerie-grid {
    width: 100%;
    max-width: 900px;
    padding: 2.5rem 1.5rem 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.galerie-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(44,62,80,0.12);
    background: var(--steel);
    aspect-ratio: 4/3;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.galerie-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(44,62,80,0.2);
}

.galerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.galerie-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(44,62,80,0.85));
    color: #fff;
    padding: 0.75rem 1rem 0.6rem;
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0;
    transition: opacity 0.3s;
}

.galerie-item:hover .galerie-item-caption {
    opacity: 1;
}

/* ── RALLYE / INTERACTIVE ── */
.rallye-intro {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border-top: 4px solid var(--rust);
    box-shadow: 0 4px 16px rgba(44,62,80,0.08);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--iron);
}

.rallye-station {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(44,62,80,0.08);
    margin-bottom: 1.25rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
}

.rallye-station:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(44,62,80,0.14);
}

.station-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--rust);
    min-width: 2.5rem;
    line-height: 1;
}

.station-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--steel);
    margin-bottom: 0.4rem;
}

.station-body p {
    font-size: 0.9rem;
    color: var(--iron);
    line-height: 1.6;
    margin: 0;
}

/* ── IMPRESSUM / KONTAKT ── */
.impressum-layout {
    width: 100%;
    max-width: 800px;
    padding: 2.5rem 1.5rem 3rem;
}

.impressum-layout h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--steel);
}

.impressum-layout h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--steel);
    border-left: 4px solid var(--rust);
    padding-left: 0.75rem;
}

.impressum-layout p {
    margin-bottom: 1em;
    line-height: 1.7;
    color: var(--iron);
}

.impressum-layout strong {
    color: var(--steel);
}

.impressum-logo {
    margin-top: 2rem;
}

.impressum-logo img {
    max-width: 180px;
    border-radius: 4px;
}

/* ── FOOTER ── */
footer {
    background: var(--steel);
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 1.25rem 2rem;
    font-size: 0.85rem;
    border-top: 4px solid var(--rust);
}

footer a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* ── UTILITIES ── */
ul {
    list-style: none;
}

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

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
    .rallye-station {
        flex-direction: column;
        gap: 0.5rem;
    }

    .galerie-grid {
        grid-template-columns: 1fr;
    }
}
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 16px;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 75vh;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.lightbox-caption {
    color: white;
    font-size: 1rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.leaflet-top,
.leaflet-bottom,
.leaflet-pane {
    z-index: 1 !important;
}

.websitegestaltung    {
    margin-left: 30px;
}
