/* 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;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('../images/startbild.jpg') center center/cover no-repeat;
    color: white;
    padding: 100px 0 50px;
    position: relative;
}

.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 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.gallery-preview-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.gallery-preview-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.gallery-preview-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.gallery-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block; /* Entfernt weiße Streifen */
}

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

.gallery-preview-title {
    padding: 20px;
    text-align: center;
    font-weight: 600;
    color: #2c5530;
    background: white;
    font-size: 1.1rem;
    border-top: 1px solid #eee;
    transition: all 0.3s ease;
}

.gallery-preview-item:hover .gallery-preview-title {
    background: linear-gradient(135deg, #2c5530, #1e3a21);
    color: white;
}

.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin-top: 5%;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Folder Gallery Modal (Popup mit allen Bildern eines Ordners) */
.folder-gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

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

.folder-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

.folder-gallery-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.folder-gallery-close {
    color: #f1f1f1;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    padding: 0.5rem;
}

.folder-gallery-close:hover {
    color: #ccc;
}

.folder-gallery-body {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.folder-gallery-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.folder-gallery-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.folder-gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.folder-gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block; /* Entfernt weiße Streifen */
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.modal-header h3 {
    margin: 0;
    color: #2c5530;
}

.modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
}

/* Folder Gallery Grid - Minimalistisch */
.folder-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    padding: 15px;
}

.folder-gallery-item {
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    transition: opacity 0.2s ease;
    background: white;
    border: 1px solid #eee;
}

.folder-gallery-item:hover {
    opacity: 0.8;
}

.folder-gallery-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

/* Modal Design - Minimalistisch */
.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    background: #f8f9fa;
    color: #333;
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 500;
}

.modal-close {
    color: #666;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: #e9ecef;
}

.modal-body {
    padding: 20px;
    background: white;
}

/* Image Modal (Einzelnes Bild in groß) */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

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

.image-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

.image-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.image-modal-close {
    color: #f1f1f1;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    padding: 0.5rem;
}

.image-modal-close:hover {
    color: #ccc;
}

.image-modal-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    overflow: hidden;
}

.image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
}

.image-modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    object-position: center;
}

.image-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.image-prev-btn {
    left: 2rem;
}

.image-next-btn {
    right: 2rem;
}

.image-modal-footer {
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
}

#imageCounter {
    font-size: 1rem;
    opacity: 0.8;
}

/* 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 */
.calendar-day.selected-start {
    background: #4CAF50 !important;
    color: white !important;
    font-weight: bold !important;
}

.calendar-day.selected-end {
    background: #2196F3 !important;
    color: white !important;
    font-weight: bold !important;
}

.calendar-day.selected-range {
    background: #FF9800 !important;
    color: white !important;
    font-weight: bold !important;
    border: 2px solid #E65100 !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;
    transition: opacity 0.5s ease-in-out;
}
    border-radius: 10px;
}

/* 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;
}

.calendar-container button {
    outline: none;
}

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

.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: #ff6b6b;
}

.legend-color.available {
    background: #28a745;
}

.legend-color.today {
    background: #2196F3;
}

/* Calendar Booked Days */
.calendar-day.booked {
    background: #ff6b6b;
    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: #ff5252;
    transform: none;
}

.calendar-day.booked.other-month {
    background: #ff8a8a;
    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;
    border-bottom: 1px solid #e1e5e9;
    border-right: 1px solid #e1e5e9;
    transition: background 0.3s ease;
    font-size: 0.9rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

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

.calendar-day.past {
    color: #ccc;
    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;
}
