/* ==========================================================================
   1. Basis-Styles & Globale Elemente
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
        overflow-y: scroll; /* Erzwingt die Scrollbar-Rinne dauerhaft */
}


body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    flex-grow: 1;
    width: 100%;
    padding: 80px 20px 40px 20px; 
    background: linear-gradient(
        rgba(255, 255, 255, 0.75),
        rgba(255, 255, 255, 0.75)
    ),
    url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1600&q=80') no-repeat center center fixed;
    background-size: cover;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 715px;
    margin: 0 auto;
    text-align: center;
}

.logo {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto 24px auto;
    display: inline-block;
    object-fit: contain;
}

.contact-logo {
    width: 100%;
    max-width: 196px;
    height: auto;
    margin-bottom: 30px;
    object-fit: contain;
}

/* ==========================================================================
   2. Modernes Header & Navigations-Design (Kompakt auf Inhaltsbreite)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-container {
    max-width: 715px;
    width: 100%;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #0b3267;
}

.nav-links .nav-cta {
    background-color: #0b3267;
    color: #ffffff !important;
    padding: 7px 14px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.nav-links .nav-cta:hover {
    background-color: #0f172a;
    transform: translateY(-1px);
}

/* ==========================================================================
   3. Buttons & Interaktive Elemente (Startseite)
   ========================================================================== */
.button {
    display: inline-block;
    background-color: rgba(11, 50, 103, 0.15); 
    color: #0b3267;
    padding: 10px 24px; 
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    border: 2px solid rgba(11, 50, 103, 0.4); 
    transition: all 0.25s ease-in-out;
    margin: 10px 5px;
    cursor: pointer;
}

.button:hover {
    background-color: rgba(11, 50, 103, 0.85); 
    color: #ffffff;
    border-color: #0b3267;
}

#countdown {
    margin: 20px 0;
    font-weight: bold;
    color: #0b3267;
    background: rgba(255, 255, 255, 0.8);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 8px;
}

/* ==========================================================================
   4. Bilder-Galerie & Lightbox (Startseite)
   ========================================================================== */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 40px;
    width: 100%;
}

.image-gallery .gallery-link {
    display: block; 
    overflow: hidden; 
    border-radius: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(11, 50, 103, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease; 
    cursor: pointer; 
}

.gallery-item {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%;
    background-color: #ffffff;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out; 
}

.image-gallery .gallery-link:hover {
    border-color: rgba(11, 50, 103, 0.5); 
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 20px 25px -5px rgba(0, 0, 0, 0.1); 
}

.image-gallery .gallery-link:hover .gallery-item img {
    transform: scale(1.06); 
}

.custom-lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 40px; /* Standard-Abstand auf dem PC */
}

.custom-lightbox.active {
    display: flex;
}

.lightbox-content-wrapper {
    position: relative;
    display: inline-block;
    max-width: 80vw;  /* Nimmt auf dem PC maximal 80% der Breite ein */
    max-height: 85vh; /* Nimmt auf dem PC maximal 85% der Höhe ein */
}

.custom-lightbox img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    border-radius: 8px;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.2; 
    transition: opacity 0.25s ease, background-color 0.25s ease;
    z-index: 10;
}

.lightbox-close:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-close::before, .lightbox-close::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 16px;
    background-color: #fff;
}
.lightbox-close::before { transform: rotate(45deg); }
.lightbox-close::after { transform: rotate(-45deg); }


/* Dezente Bildbeschreibung in der Lightbox */
.lightbox-caption {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    padding: 8px 14px;
    font-size: 0.9rem;
    border-radius: 4px;
    letter-spacing: 0.3px;
    pointer-events: none; /* Verhindert Klicksperren auf das Element */
    backdrop-filter: blur(4px); /* Schicker Weichzeichner-Effekt dahinter */
}

/* Styling für die Lightbox-Pfeile (Standard / PC) */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 1.8rem; /* Dezenter auf dem PC */
    padding: 8px 12px;
    cursor: pointer;
    z-index: 10;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ==========================================================================
   5. Footer
   ========================================================================== */
.site-footer {
    background-color: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    padding: 20px;
    text-align: center;
    width: 100%;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #0b3267;
    text-decoration: underline;
}

/* ==========================================================================
   6. Container-Box & Typografie (Unterseiten)
   ========================================================================== */
.contact-box {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    width: 100%;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.contact-box h1 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: -0.02em;
}

.contact-box h2 {
    font-size: 18px;
    font-weight: 600;
    color: #0b3267;
    margin-top: 24px;
    margin-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 4px;
}

.contact-box p {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 12px;
}

.contact-box p.subtitle {
    text-align: center;
    margin-bottom: 32px;
    font-size: 16px;
}

.contact-box a {
    color: #0b3267;
    text-decoration: none;
    font-weight: 500;
}

.contact-box a:hover {
    text-decoration: underline;
}

.contact-box ul {
    margin-bottom: 12px;
    padding-left: 20px;
    color: #334155;
    font-size: 14.5px;
}

.contact-box li {
    margin-bottom: 4px;
}

.contact-box .button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 14px 24px;
    background-color: #1e293b;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    margin: 10px 0 0 0;
}

.contact-box .button:hover {
    background-color: #0f172a;
}

.back {
    margin-top: 24px;
    text-align: center;
}

.back .button {
    background-color: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    width: auto;
    border: none;
}

.back .button:hover {
    color: #1e293b;
    background-color: #f1f5f9;
}

/* ==========================================================================
   7. Formulare, Preistabellen & Flatpickr Kalender (Unterseiten / Buchen)
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
}

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

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    color: #1e293b;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
    cursor: text;
}

.success,
.error {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

.success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Preistabellen */
.price-section {
    margin-bottom: 32px;
}

.price-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: #0b3267;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-badge {
    font-size: 12px;
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}

.price-table tr {
    border-bottom: 1px solid #f1f5f9;
}

.price-table tr:last-child {
    border-bottom: none;
}

.price-table td {
    padding: 10px 0;
    font-size: 15px;
    color: #334155;
}

.price-table td.amount {
    text-align: right;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.notes-list {
    font-size: 13.5px;
    color: #64748b;
    margin-top: 8px;
    padding-left: 18px;
}

.notes-list li {
    margin-bottom: 4px;
}

/* Kalender-Spezifische Styles (Flatpickr Anpassungen) */
body .flatpickr-calendar .flatpickr-innerContainer .flatpickr-days .flatpickr-day.blocked-day,
body .flatpickr-calendar .flatpickr-innerContainer .flatpickr-days .flatpickr-day.blocked-day:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    text-decoration: line-through !important;
    border-color: #ef4444 !important;
    opacity: 0.85 !important;
    cursor: not-allowed !important;
}

body .flatpickr-calendar .flatpickr-innerContainer .flatpickr-days .flatpickr-day.reserved-day,
body .flatpickr-calendar .flatpickr-innerContainer .flatpickr-days .flatpickr-day.reserved-day:hover {
    background: #f97316 !important;
    color: #ffffff !important;
    border-color: #f97316 !important;
    opacity: 0.85 !important;
    cursor: not-allowed !important;
}

body .flatpickr-calendar .flatpickr-day.today {
    border-color: #3b82f6 !important;
}

.flatpickr-calendar .kalender-legende {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 10px 0;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.flatpickr-calendar .legende-item {
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}

.flatpickr-calendar .legende-kreis {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
    display: inline-block;
}

.flatpickr-calendar .legende-belegt {
    background-color: #ef4444;
}

.flatpickr-calendar .legende-reserviert {
    background-color: #f97316;
}

/* ==========================================================================
   8. Responsive Media Queries
   ========================================================================== */
@media (max-width: 768px) {
    .hero {
        height: auto !important;
        min-height: 100vh;
        padding: 70px 12px 20px 12px !important;
        background-attachment: scroll;
    }
    .logo { max-width: 240px; }
    .image-gallery { grid-template-columns: 1fr; gap: 12px; margin-top: 30px; }
    .image-gallery .gallery-link:hover .gallery-item img { transform: scale(1); }
    .gallery-item { padding-bottom: 0; height: 220px; }
    .footer-links { gap: 16px; }

    .container {
        width: 100% !important;
        max-width: 100% !important;
    }
    .contact-box {
        padding: 28px 20px !important;
        border-radius: 16px !important;
    }
    .contact-logo {
        width: 100%;
        max-width: 112px;
        height: auto;
        display: block;
        margin: 0 auto 30px auto;
        object-fit: contain;
    }

    .nav-container {
        padding: 8px 12px;
    }
    .nav-logo img {
        height: 28px;
    }
    .nav-links {
        gap: 10px;
    }
    .nav-links a {
        font-size: 13px;
    }
    .nav-links .nav-cta {
        padding: 5px 10px;
    }

    body .flatpickr-calendar {
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin-top: 8px !important;
    }

    /* --- Mobile Anpassungen für die Lightbox (maximal groß & kompakte Pfeile) --- */
    .custom-lightbox {
        padding: 5px; /* Fast gar kein Rand auf dem Handy */
    }

    .lightbox-content-wrapper {
        max-width: 98vw;  /* Nutzt fast den ganzen Handy-Bildschirm */
        max-height: 98vh;
    }

    .custom-lightbox img {
        max-height: 92vh; /* Bild wird auf dem Handy maximal groß gezogen */
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 1.2rem;   /* Kleinere Pfeile */
        padding: 6px 10px;   /* Kompakterer Abstand */
    }

    .lightbox-prev {
        left: 5px;          /* Näher an den Rand gerückt */
    }

    .lightbox-next {
        right: 5px;         /* Näher an den Rand gerückt */
    }

    @media (orientation: landscape) {
        .lightbox-content-wrapper {
            max-width: 100%;
            max-height: 100vh;
        }
        .custom-lightbox img {
            max-height: 100vh;
            border-radius: 0;
        }
        .lightbox-close {
            top: 10px;
            right: 10px;
            width: 32px;
            height: 32px;
            opacity: 0.4; 
        }
        .lightbox-close::before, .lightbox-close::after {
            height: 14px;
        }
    }
}