/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: #2c5530;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2c5530;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #2c5530;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    border-radius: 6px;
}

.hamburger:focus-visible {
    outline: 2px solid #2c5530;
    outline-offset: 2px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section – optimiertes Bild (WebP mit JPEG-Fallback) */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #2c5530;
    background-image: url('../images/startbild-1920.jpg');
    background-image: image-set(url('../images/startbild-1920.webp') type('image/webp'), url('../images/startbild-1920.jpg') type('image/jpeg'));
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: white;
    padding: 100px 0 50px;
    position: relative;
}

@media (max-width: 768px) {
    .hero {
        background-image: url('../images/startbild-1920.jpg');
        background-image: image-set(url('../images/startbild-900.webp') type('image/webp'), url('../images/startbild-1920.jpg') type('image/jpeg'));
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #2c5530;
    color: white;
}

.btn-primary:hover {
    background: #1e3a21;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(44, 85, 48, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2c5530;
    transform: translateY(-2px);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #2c5530;
}

/* Wohnung Section */
.wohnung-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.wohnung-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c5530;
}

.features-list {
    list-style: none;
    margin-top: 2rem;
}

.features-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.features-list i {
    color: #2c5530;
    font-size: 1.2rem;
    width: 20px;
}

.wohnung-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* ===========================================================================
   Galerie – Übersicht, Ordner-Modal & Lightbox (modern, minimalistisch)
   ======================================================================== */

/* Übersicht: jeder Bilderordner als Bildkachel mit Titel-Overlay */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    padding: 0.5rem 0;
}

.gallery-preview-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: #eef1ee;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-preview-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.gallery-preview-image {
    position: absolute;
    inset: 0;
}

.gallery-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Verlauf für gute Lesbarkeit des Titels über dem Bild */
.gallery-preview-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 50%);
    pointer-events: none;
}

.gallery-preview-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 1.1rem 1.2rem;
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Ordner-Modal: Overlay mit Bildraster eines Ordners */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(18, 22, 18, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    padding: clamp(0.75rem, 3vw, 3rem);
    overflow-y: auto;
    animation: galFade 0.25s ease;
}

.modal-content {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    animation: galRise 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid #eef0ee;
    background: #fff;
}

.modal-header h3 {
    margin: 0;
    color: #2c5530;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.modal-close {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #f3f5f3;
    color: #555;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.25s ease;
}

.modal-close:hover {
    background: #2c5530;
    color: #fff;
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.25rem;
    background: #fff;
}

/* Bildraster im Ordner-Modal */
.folder-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.folder-gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #eef1ee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.folder-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.folder-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.folder-gallery-item:hover img {
    transform: scale(1.07);
}

/* Lightbox: einzelnes Bild in groß */
.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2001;
    background: rgba(0, 0, 0, 0.92);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: galFade 0.25s ease;
}

.image-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.image-modal-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

.image-modal-header h3 {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.image-modal-close {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.25s ease;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: rotate(90deg);
}

.image-modal-body {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 4.5rem clamp(3.75rem, 8vw, 5.5rem);
    box-sizing: border-box;
}

.image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
}

.image-modal-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: galFade 0.3s ease;
}

.image-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.image-nav-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.image-prev-btn {
    left: clamp(0.5rem, 2vw, 2rem);
}

.image-next-btn {
    right: clamp(0.5rem, 2vw, 2rem);
}

.image-prev-btn:hover {
    transform: translateY(-50%) translateX(-3px);
}

.image-next-btn:hover {
    transform: translateY(-50%) translateX(3px);
}

.image-modal-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 1.25rem;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
    pointer-events: none;
}

#imageCounter {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

/* Hintergrund-Scrollen sperren, solange ein Galerie-Overlay offen ist */
body.modal-open {
    overflow: hidden;
}

/* Sanfte Einblend-Animationen für Galerie-Overlays */
@keyframes galFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes galRise {
    from { opacity: 0; transform: translateY(16px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Galerie auf kleinen Bildschirmen */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .gallery-preview-title {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }

    .folder-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .modal {
        padding: 0.75rem;
    }

    .modal-content {
        border-radius: 16px;
    }

    .modal-header {
        padding: 0.9rem 1.1rem;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 0.75rem;
    }

    .image-modal-header {
        padding: 0.9rem 1.1rem;
    }

    .image-modal-body {
        padding: 4rem 3.5rem;
    }

    .image-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
    }
}

/* No images message */
.no-images {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

.no-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: #f8f9fa;
    color: #666;
    font-style: italic;
    border: 2px dashed #ddd;
}

/* Kalender-Auswahl Styles (Farben WCAG-AA-konform: weißer Text ≥ 4,5:1) */
.calendar-day.selected-start,
.calendar-day.selected-end {
    background: #1565C0 !important;
    color: white !important;
    font-weight: bold !important;
}

.calendar-day.selected-range {
    background: #BF360C !important;
    color: white !important;
    font-weight: bold !important;
}

/* Kalender-Navigation */
.calendar-nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 15px !important;
    background: #2c5530 !important;
    color: white !important;
    border-radius: 8px 8px 0 0 !important;
    position: relative !important;
    margin-bottom: 0 !important;
    min-height: 50px !important;
}

.calendar-nav-btn {
    background: transparent !important;
    border: none !important;
    color: white !important;
    font-size: 24px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    padding: 8px 12px !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
    min-width: 40px !important;
    text-align: center !important;
    z-index: 10 !important;
    line-height: 1 !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

.calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.1) !important;
}

.calendar-nav-btn:active {
    transform: scale(0.95) !important;
}

.calendar-month {
    font-weight: bold !important;
    font-size: 18px !important;
    color: white !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1 !important;
    pointer-events: none !important;
    white-space: nowrap !important;
    max-width: 200px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Slideshow Styles */
.slideshow-container {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.slideshow-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: opacity 0.5s ease-in-out;
}

/* Lage Section */
.lage-content {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    align-items: flex-start;
}

/* Aktivitäten Section */
.aktivitaeten-content {
    margin-top: 2rem;
}

.aktivitaeten-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.aktivitaeten-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e8f5e8;
}

.aktivitaeten-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.aktivitaeten-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.aktivitaeten-icon i {
    font-size: 3rem;
    color: #2c5530;
    background: #e8f5e8;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.aktivitaeten-card h3 {
    color: #2c5530;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.3rem;
}

.aktivitaeten-card ul {
    list-style: none;
    padding: 0;
}

.aktivitaeten-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.aktivitaeten-card li:last-child {
    border-bottom: none;
}

.aktivitaeten-highlight {
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 2rem;
}

.aktivitaeten-highlight h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.aktivitaeten-highlight p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .aktivitaeten-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .aktivitaeten-card {
        padding: 1.5rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .aktivitaeten-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.lage-info {
    flex: 1;
    height: 100%;
}

.lage-map {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.lage-info h3 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #2c5530;
}

.lage-info h4 {
    font-size: 1.4rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: #2c5530;
}

.lage-info h4:first-of-type {
    margin-top: 2rem;
}

.lage-info ul {
    list-style: none;
    margin-top: 2rem;
}

.lage-info li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lage-info i {
    color: #2c5530;
    font-size: 1.2rem;
    width: 20px;
}

#map {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Preise Section */
.preise-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.preise-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c5530;
}

.preise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.preise-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.preise-card:hover {
    transform: translateY(-5px);
}

.preise-card h4 {
    color: #2c5530;
    margin-bottom: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5530;
    margin-bottom: 0.5rem;
}

.preise-details p {
    margin: 0.5rem 0;
}

/* Kalender */
.kalender-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.kalender-container h3 {
    color: #2c5530;
    margin-bottom: 1rem;
}

#calendar {
    width: 100%;
    min-height: 300px;
}

/* Buchung Section */
.buchung-content {
    max-width: 600px;
    margin: 0 auto;
}

.buchung-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

/* Form Row für nebeneinander angeordnete Felder */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5530;
}

.price-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.price-summary h4 {
    color: #2c5530;
    margin-bottom: 1rem;
}

/* Kontakt Section */
.kontakt-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.kontakt-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c5530;
}

.kontakt-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.kontakt-item i {
    font-size: 1.5rem;
    color: #2c5530;
    width: 30px;
}

.kontakt-item h4 {
    color: #2c5530;
    margin-bottom: 0.5rem;
}

.kontakt-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background: #2c5530;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 0 50px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .wohnung-grid,
    .lage-content,
    .preise-content,
    .kontakt-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .buchung-form {
        padding: 2rem;
    }

    .preise-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }

    .buchung-form {
        padding: 1.5rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Calendar Container */
.calendar-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.calendar-container {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

/* Kalender-Container Isolation */
.calendar-container * {
    box-sizing: border-box;
}

/* Sichtbarer Fokusring für Tastaturbedienung */
.calendar-container button:focus-visible,
.gallery-preview-item:focus-visible,
.folder-gallery-item:focus-visible {
    outline: 3px solid #1565C0;
    outline-offset: -3px;
}

.calendar-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin: 1rem 0 0;
    font-size: 0.9rem;
    color: #555;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.legend-color.booked {
    background: #C62828;
}

.legend-color.available {
    background: #2e7d32;
}

.legend-color.selected {
    background: #BF360C;
}

.legend-color.today {
    background: #1565C0;
}

/* Calendar Booked Days */
.calendar-day.booked {
    background: #C62828;
    color: white;
    cursor: not-allowed;
    position: relative;
}

.calendar-day.booked::after {
    content: '🔒';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 8px;
    opacity: 0.8;
}

.calendar-day.booked:hover {
    background: #b71c1c;
    transform: none;
}

.calendar-day.booked.other-month {
    background: #d35454;
    color: white;
}

/* Calendar Grid */
.simple-calendar {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #2c5530;
    color: white;
}

.calendar-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.calendar-header button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.calendar-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8f9fa;
}

        .calendar-day-header {
            padding: 0.5rem;
            text-align: center;
            font-weight: 600;
            color: #2c5530;
            border-bottom: 1px solid #e1e5e9;
            font-size: 0.9rem;
            display: grid;
            grid-template-columns: repeat(7, 1fr);
        }
        .calendar-day-header > div {
            padding: 5px;
        }

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    padding: 0.5rem;
    text-align: center;
    cursor: pointer;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 0.9rem;
    border: 0;
    border-bottom: 1px solid #e1e5e9;
    border-right: 1px solid #e1e5e9;
    transition: background 0.3s ease;
    min-height: 40px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day:hover:not(.other-month):not(.past):not(.booked):not([disabled]) {
    background: #e8f5e8;
}

.calendar-day[disabled] {
    cursor: not-allowed;
}

.calendar-day.other-month {
    color: #767676;
    background: #f8f9fa;
}

.calendar-day.today {
    background: #1565C0;
    color: white;
    font-weight: 600;
}

.calendar-day.past {
    color: #767676;
    background: #f8f9fa;
    cursor: not-allowed;
}

/* Success Popup Styles */
.success-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #d4edda;
    border: 2px solid #c3e6cb;
    color: #155724;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 10000;
    text-align: center;
    min-width: 300px;
    max-width: 500px;
    animation: popupFadeIn 0.3s ease-out;
}

.success-popup h3 {
    margin: 0 0 15px 0;
    color: #155724;
    font-size: 24px;
}

.success-popup p {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.5;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes popupFadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

.success-popup.fade-out {
    animation: popupFadeOut 0.3s ease-in;
}

/* Karten-Einwilligung (Zwei-Klick-Lösung) */
.map-consent {
    width: 100%;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.map-consent p {
    max-width: 420px;
    color: #555;
    margin: 0;
}

.map-consent .btn {
    cursor: pointer;
}

/* Honeypot-Feld (für Menschen unsichtbar, fängt Bots) */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Datenschutzhinweis an Formularen */
.form-privacy {
    font-size: 0.85rem;
    color: #666;
    margin: 1rem 0;
}

.form-privacy a {
    color: #2c5530;
}

/* Hinweis-/Fehlerboxen (Formular-Feedback) */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffe69c;
    color: #664d03;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
    text-align: center;
}
