/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header und Navigation */
header {
    background-color: #1e4a7a;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #a8d4f5;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(30, 74, 122, 0.5), rgba(30, 74, 122, 0.6)), url('images/hesselberg_panorama.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Sections */
.section {
    padding: 4rem 0;
    background-color: white;
    margin-bottom: 2rem;
}

.section:nth-child(even) {
    background-color: #fafafa;
}

.section h2 {
    color: #1e4a7a;
    font-size: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #3b7bbf;
}

.section > .container > p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

@media (max-width: 1024px) {
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: 1fr;
    }
}

/* Kontakt Section */
.kontakt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.kontakt-box {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-left: 4px solid #3b7bbf;
}

.kontakt-box h3 {
    color: #1e4a7a;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.kontakt-box p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.kontakt-box a {
    color: #3b7bbf;
    text-decoration: none;
    transition: color 0.3s ease;
}

.kontakt-box a:hover {
    color: #1e4a7a;
    text-decoration: underline;
}

.datenschutz-box {
    background-color: #f0f4f8;
    padding: 2rem;
    margin-top: 2rem;
    border-radius: 8px;
    border-left: 4px solid #3b7bbf;
}

.datenschutz-box h3 {
    color: #1e4a7a;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.datenschutz-box p {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.8;
}

/* Anfahrt Section */
.anfahrt-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    align-items: start;
}

.anfahrt-text h3 {
    color: #1e4a7a;
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.anfahrt-text h3:first-child {
    margin-top: 0;
}

.anfahrt-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.anfahrt-text a {
    color: #3b7bbf;
    text-decoration: none;
    transition: color 0.3s ease;
}

.anfahrt-text a:hover {
    color: #1e4a7a;
    text-decoration: underline;
}

.maps-button {
    display: inline-block;
    background-color: #3b7bbf;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.maps-button:hover {
    background-color: #1e4a7a;
    transform: translateY(-2px);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.map-container iframe {
    height: 500px;
}

@media (max-width: 768px) {
    .anfahrt-content {
        grid-template-columns: 1fr;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #a8d4f5;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    padding: 16px;
    user-select: none;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #a8d4f5;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.lightbox-caption {
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 1.1rem;
    max-width: 80%;
}

/* Termine Box */
.termine-box {
    background-color: #f9f9f9;
    border-left: 4px solid #3b7bbf;
    padding: 2rem;
    margin-top: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.termine-box h3 {
    color: #1e4a7a;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.termine-box p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.termine-box em {
    color: #555;
    display: block;
    margin-bottom: 1.5rem;
}

/* Tour Items */
.tour-item {
    background-color: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tour-item h4 {
    color: #1e4a7a;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.tour-item h3 {
    color: #1e4a7a;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tour-item p {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    color: #555;
}

.tour-info {
    font-weight: bold;
    color: #3b7bbf !important;
    margin-top: 1rem;
}

.termine-liste {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(8, auto);
    grid-auto-flow: column;
    gap: 1rem;
}

.termine-liste li {
    padding: 1rem;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.datum {
    font-weight: bold;
    color: #3b7bbf;
    font-size: 1rem;
}

.beschreibung {
    color: #555;
    font-size: 1.05rem;
}

.hinweis {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #fff8e1;
    border-left: 4px solid #ffa726;
    border-radius: 4px;
}

.hinweis strong {
    color: #f57c00;
    display: block;
    margin-bottom: 0.5rem;
}

.hinweis ul {
    margin-left: 1.5rem;
    list-style-type: disc;
}

.hinweis li {
    margin: 0.3rem 0;
}

/* Footer */
footer {
    background-color: #1e4a7a;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .termine-liste {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-auto-flow: row;
    }
    
    .termine-liste li {
        padding: 0.75rem;
    }
    
    .datum {
        font-size: 0.9rem;
    }
    
    .beschreibung {
        font-size: 0.95rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll Padding für Sticky Header */
html {
    scroll-padding-top: 100px;
}