/* Generell */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    scroll-behavior: smooth;
}

body{

  overflow-x: hidden !important;
}
/* Homesektion */
.home-slideshow-container {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide.next {
    opacity: 1;
    z-index: 3;
}

/* Overlay für bessere Textlesbarkeit */
.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}



.welcome-text {
    text-align: center;
    color: white;
    z-index: 15;
    padding: 20px;
    position: relative;
    pointer-events: auto;
}

.welcome-text h1 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.9);
    animation: fadeInUp 1.5s ease-out;
    letter-spacing: 2px;
    line-height: 1.1;
	color: white;
}

.welcome-text p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    animation: fadeInUp 1.5s ease-out 0.5s both;
    margin-bottom: 35px;
    letter-spacing: 1px;
    line-height: 1.4;
}

.book-now-btn {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    border: none;
    padding: 18px 45px;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
    animation: fadeInUp 1.5s ease-out 1s both;
}

.book-now-btn:hover {
    background: linear-gradient(135deg, #357abd, #2c5f99);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(74, 144, 226, 0.4);
}

.book-now-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(74, 144, 226, 0.3);
}

/* Arrow Animation */
.arrow {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 20;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.arrow span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 4px solid white;
    border-right: 4px solid white;
    transform: rotate(45deg);
    animation: arrowAnimate 2s infinite;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7));
}

.arrow span:nth-child(2) {
    animation-delay: -0.2s;
}

.arrow span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes arrowAnimate {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

/* Animationen */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-text h1 {
        font-size: 3.2rem;
        letter-spacing: 1px;
    }
    
    .welcome-text p {
        font-size: 1.4rem;
        margin-bottom: 30px;
        letter-spacing: 0.5px;
    }
    
    .book-now-btn {
        padding: 15px 35px;
        font-size: 1.2rem;
        letter-spacing: 1.5px;
    }
    
    .arrow {
        bottom: 40px;
        gap: 6px;
    }
    
    .arrow span {
        width: 16px;
        height: 16px;
        border-bottom: 3px solid white;
        border-right: 3px solid white;
    }
}

@media (max-width: 480px) {
    .welcome-text h1 {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .welcome-text p {
        font-size: 1.2rem;
        margin-bottom: 25px;
        letter-spacing: 0.3px;
    }
    
    .book-now-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    
    .arrow {
        bottom: 30px;
        gap: 5px;
    }
    
    .arrow span {
        width: 14px;
        height: 14px;
        border-bottom: 2px solid white;
        border-right: 2px solid white;
    }
}



/* slideshow */
.background-slide{
    background-color: rgba(187, 181, 181, 0.247);
	padding-bottom: 100px;
	padding-top: 100px;
	padding-left: 24px;
	padding-right: 24px;
}

/* Main Container für das gesamte Layout */
.main-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    align-items: stretch; /* Sorgt für gleiche Höhen */
    padding-top: 100px;
}

.slideshow-container {
    flex: 1.86; /* Slideshow nimmt 65% der Breite (65/35 = 1.86) */
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-width: 0; /* Für bessere Responsivität */
    max-height: 60vh; /* Maximale Höhe wie Info-Panel */
    display: flex;
    flex-direction: column;

}

/* Main Image Container */
.main-image-container {
    position: relative;
    width: 100%;
    height: 50vh; /* Responsive Höhe basierend auf Viewport */
    min-height: 400px; /* Mindesthöhe */
    max-height: 600px; /* Maximale Höhe */
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease-in-out;
}

/* Navigation Buttons */
.nav-button {
    position: absolute;
    top:50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

/* Slide Counter */
.slide-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Thumbnail Container */
.thumbnail-container {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: white;
    overflow: visible; /* Geändert von overflow-x: auto */
    justify-content: space-between;
    flex-wrap: nowrap;
}

/* Individual Thumbnails */
.thumbnail {
    flex: 1 1 auto;
    min-width: 60px;
    max-width: 100px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #0071c2;
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(0, 113, 194, 0.2);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* More Button (Image with Overlay) */
.thumbnail.more-button {
    position: relative;
    overflow: hidden;
}

.thumbnail.more-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail.more-button:hover {
    opacity: 1;
    transform: scale(1.05);
}

.more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    pointer-events: none;
}

.more-count {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 95vw;
    max-height: 95vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
}

.image-modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.close-btn {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.close-btn:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    transform: scale(1.1);
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
    background: #fafafa;
}

.grid-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.grid-item:hover {
    transform: scale(1.08) perspective(1000px) rotateX(2deg) rotateY(2deg);
    border-color: #0071c2;
    box-shadow: 0 15px 40px rgba(0, 113, 194, 0.3);
    z-index: 10;
}

.grid-item.active {
    border-color: #0071c2;
    box-shadow: 0 8px 25px rgba(0, 113, 194, 0.4);
    transform: scale(1.02);
}

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

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

.grid-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, rgba(0, 113, 194, 0.9), rgba(0, 149, 246, 0.9));
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.grid-item:hover .grid-overlay {
    opacity: 1;
    transform: scale(1.1);
}

.grid-item.active .grid-overlay {
    background: linear-gradient(135deg, #28a745, #20c997);
    transform: scale(1.05);
}

/* Lightbox Hint */
.grid-item::after {
    content: "Click for fullscreen";
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.grid-item:hover::after {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .main-image-container {
        height: 300px;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .thumbnail {
        width: 70px;
        height: 50px;
    }
    
    .thumbnail-container {
        padding: 12px;
        gap: 6px;
    }
    
    .more-overlay {
        font-size: 12px;
    }
    
    /* Modal Responsive */
    .modal-content {
        max-width: 98vw;
        max-height: 98vh;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        padding: 20px;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .grid-item:hover {
        transform: scale(1.05);
    }
}

@media (max-width: 480px) {
    .main-image-container {
        height: 250px;
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .slide-counter {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .more-overlay {
        font-size: 11px;
    }
    
    /* Modal for very small screens */
    .image-grid {
        /* Auf kleinen Bildschirmen mindestens 2 Spalten erzwingen */
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 15px;
        max-height: 60vh;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .close-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .grid-item:hover {
        transform: scale(1.03);
    }
}

/* Custom Scrollbar for Modal */
.image-grid::-webkit-scrollbar {
    width: 8px;
}

/* Default behavior for modal grid: larger cells on desktop */
.image-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Force at least 2 columns on small screens as a robust fallback */
@media (max-width: 480px) {
    .image-grid {
        /* Use !important to override any inline styles or other rules */
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
        padding: 16px;
    }
}

/* Slightly adjust for very narrow screens to keep spacing */
@media (max-width: 360px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        padding: 12px;
    }
}

/* Extra specific rules to override any other stylesheet: ensure modal grid shows 2 columns on small devices */
@media (max-width: 550px) {
    #imageModal .image-grid,
    .image-modal .image-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 12px !important;
    }
}

.image-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.image-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0071c2, #0095f6);
    border-radius: 10px;
}

.image-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #005a9e, #007acc);
}

/* Additional Hover Effects for Grid */
.image-grid:hover .grid-item:not(:hover) {
    opacity: 0.7;
    transform: scale(0.98);
}

.image-grid .grid-item {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Warp Effect Animation */
@keyframes warpIn {
    0% {
        transform: scale(0.8) perspective(1000px) rotateX(45deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) perspective(1000px) rotateX(0deg);
        opacity: 1;
    }
}

.grid-item {
    animation: warpIn 0.5s ease-out;
    animation-fill-mode: both;
}

.grid-item:nth-child(1) { animation-delay: 0.1s; }
.grid-item:nth-child(2) { animation-delay: 0.15s; }
.grid-item:nth-child(3) { animation-delay: 0.2s; }
.grid-item:nth-child(4) { animation-delay: 0.25s; }
.grid-item:nth-child(5) { animation-delay: 0.3s; }
.grid-item:nth-child(6) { animation-delay: 0.35s; }
.grid-item:nth-child(7) { animation-delay: 0.4s; }
.grid-item:nth-child(8) { animation-delay: 0.45s; }
.grid-item:nth-child(9) { animation-delay: 0.5s; }
.grid-item:nth-child(n+10) { animation-delay: 0.55s; }

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 80vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox.show .lightbox-content {
    transform: scale(1);
}

.lightbox-image {
    min-width: 50vw;
    max-width: 50vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

/* Lightbox Navigation - Positioned next to image */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 2001;
}

.lightbox-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: calc(50% - 30vw - 70px);
}

.lightbox-next {
    right: calc(50% - 30vw - 70px);
}

/* Lightbox Controls */
.lightbox-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.lightbox-close,
.lightbox-fullscreen,
.lightbox-slideshow {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.lightbox-close:hover,
.lightbox-fullscreen:hover,
.lightbox-slideshow:hover {
    background: white;
    transform: scale(1.1);
}

.lightbox-close:hover {
    background: #dc3545;
    color: white;
}

.lightbox-slideshow:hover {
    background: #0071c2;
    color: white;
}

/* Lightbox Info */
.lightbox-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Responsive Lightbox */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .lightbox-prev {
        left: 30px;
    }
    
    .lightbox-next {
        right: 30px;
    }
    
    .lightbox-content {
        max-width: 85vw;
        max-height: 85vh;
    }
    
    .lightbox-controls {
        top: 10px;
        right: 10px;
    }
    
    .lightbox-close,
    .lightbox-fullscreen {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .lightbox-info {
        bottom: 10px;
        font-size: 12px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .lightbox-prev {
        left: 20px;
    }
    
    .lightbox-next {
        right: 20px;
    }
    
    .lightbox-content {
        max-width: 90vw;
        max-height: 80vh;
    }
    
    .lightbox-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Fade Animation for Image Changes */
.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1;
}

/* Auto-play Indicator */
.auto-play-indicator {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 6px;
    border-radius: 10px;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.auto-play-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Info Panel Styles */
.info-panel {
    flex: 1; /* Info-Panel nimmt 1/3 der Breite */
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0; /* Für bessere Responsivität */
    max-height: 60vh; /* Maximale Höhe wie Slideshow */
}

/* Reviews Section */
.reviews-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 24px;
    flex: 2; /* 2/3 des verfügbaren Platzes */
    overflow-y: auto; /* Scrolling bei Bedarf */
    min-height: 300px; /* Mindesthöhe */
}

.reviews-section h3 {
    margin: 0;
    font-size: 18px; /* Vergrößert von 16px auf 18px */
    font-weight: 600;
    color: #333;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px; /* Vergrößert von 20px auf 30px, da mehr Platz vorhanden */
}

.rating-score {
    font-size: 28px; /* Vergrößert von 24px auf 28px */
    font-weight: 700;
    color: #0071c2;
    background: white;
    padding: 8px 14px; /* Vergrößert von 6px 12px auf 8px 14px */
    border-radius: 8px; /* Vergrößert von 6px auf 8px */
    border: 2px solid #0071c2;
}

.rating-summary {
    margin-bottom: 24px; /* Vergrößert von 16px auf 24px */
    padding: 16px; /* Vergrößert von 12px auf 16px */
    background: linear-gradient(135deg, #0071c2, #005a9a);
    border-radius: 12px; /* Vergrößert von 8px auf 12px */
    color: white;
}

.rating-details {
    display: flex;
    flex-direction: column;
}

.rating-text {
    font-size: 15px; /* Vergrößert von 14px auf 15px */
    font-weight: 600;
}

.rating-count {
    font-size: 13px; /* Vergrößert von 12px auf 13px */
    opacity: 0.9;
}

.review-categories {
    margin-bottom: 30px; /* Vergrößert von 24px auf 30px für mehr Abstand */
}

.review-item {
    display: flex;
    align-items: center;
    gap: 10px; /* Vergrößert von 8px auf 10px */
    margin-bottom: 12px; /* Vergrößert von 8px auf 12px */
    font-size: 13px; /* Vergrößert von 12px auf 13px */
}

.review-item span:first-child {
    min-width: 75px; /* Vergrößert von 70px auf 75px */
    color: #666;
}

.review-item span:last-child {
    min-width: 28px; /* Vergrößert von 25px auf 28px */
    font-weight: 600;
    color: #0071c2;
}

.rating-bar {
    flex: 1;
    height: 7px; /* Vergrößert von 6px auf 7px */
    background: #e9ecef;
    border-radius: 4px; /* Vergrößert von 3px auf 4px */
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 4px; /* Vergrößert von 3px auf 4px */
    transition: width 0.3s ease;
}

.recent-reviews {
    border-top: 1px solid #e9ecef;
    padding-top: 20px; /* Vergrößert von 12px auf 20px */
    overflow: hidden; /* Verhindert Scrolling und versteckt Überläufe */
    height: 160px; /* Erhöhte Höhe für bessere Platznutzung */
    position: relative; /* Für absolute Positionierung der Slideshow */
    width: 100%; /* Sicherstellen dass Container volle Breite hat */
}

.reviews-slideshow {
    position: relative; /* Für absolute Positionierung der Reviews */
    width: 100%; /* Normale Breite */
    height: 100%; /* Volle Höhe des Containers nutzen */
    overflow: hidden; /* Verhindert horizontalen Überlauf */
}

.review {
    position: absolute; /* Absolute Positionierung */
    top: 0;
    left: 0;
    margin-bottom: 0; /* Kein Bottom-Margin für bessere Platznutzung */
    padding: 18px; /* Erhöhtes Padding für bessere Optik */
    padding-left: 22px; /* Extra Padding links für visuellen Effekt der Border */
    background: #f8f9fa;
    border-radius: 8px; /* Vergrößert von 6px auf 8px */
    border: none; /* Keine echte Border */
    box-shadow: inset 4px 0 0 #0071c2; /* Border als inset box-shadow */
    width: 100%; /* Jede Review nimmt die volle Breite des Containers */
    box-sizing: border-box;
    height: 100%; /* Volle Höhe des Containers nutzen */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Inhalt oben beginnen */
    overflow: hidden; /* Verhindert Überlauf */
    opacity: 0; /* Standardmäßig unsichtbar */
    transition: opacity 0.5s ease-in-out; /* Smooth fade transition */
}

.review.active {
    opacity: 1; /* Aktive Review ist sichtbar */
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px; /* Etwas mehr Abstand für bessere Optik */
    flex-shrink: 0; /* Header soll nicht schrumpfen */
}

.review-header strong {
    color: #333;
    font-weight: 600;
    font-size: 14px; /* Leicht vergrößert für bessere Lesbarkeit */
}

.review-date {
    color: #666;
    font-size: 12px; /* Leicht vergrößert */
}

.review p {
    margin: 0;
    color: #555;
    line-height: 1.4; /* Bessere Lesbarkeit */
    font-style: italic;
    font-size: 13px; /* Größerer Text für bessere Lesbarkeit */
    overflow: hidden; /* Kein Scroll */
    display: -webkit-box;
    -webkit-line-clamp: 5; /* Bis zu 5 Zeilen für bessere Platznutzung */
    line-clamp: 5; /* Standard property for compatibility */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis; /* ... am Ende wenn Text zu lang */
    flex-grow: 1; /* Text nimmt verfügbaren Platz ein */
}

/* Maps Section */
.maps-section {
    border-radius: 12px;
    padding: 0; /* Kein Padding - Karte nimmt komplette Fläche ein */
    flex: 1; /* Nimmt den verfügbaren Platz ein */
    display: flex;
    flex-direction: column;
    min-height: 0; /* Wichtig für Flexbox */
    overflow: hidden; /* Für saubere Ecken */
}

.map-container {
    width: calc(100% + 1px); /* 1px breiter um den weißen Pixel zu überdecken */
    height: 100%; /* Nimmt die komplette Höhe ein */
    flex: 1; /* Nimmt den gesamten verfügbaren Platz ein */
    border-radius: 0; /* Keine Rundung für perfekte Anpassung */
    overflow: hidden;
    min-height: 150px; /* Mindesthöhe für die Karte */
    margin-right: -1px; /* Kompensiert die extra Breite */
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.location-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    transition: background-color 0.2s ease;
}

.location-item:hover {
    background: #e9ecef;
}

.location-icon {
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-container {
        flex-direction: column;
        max-width: 800px;
        max-height: none; /* Entferne Höhenbeschränkung für Mobilgeräte */
    }
    
    .slideshow-container {
        max-height: 70vh; /* Größere Höhe für bessere Sichtbarkeit */
        min-height: 400px; /* Mindesthöhe gewährleisten */
        flex: none; /* Entferne flex-grow */
        width: 100%; /* Volle Breite */
    }
    
    .main-image-container {
        height: 60vh; /* Angepasste Höhe für bessere Sichtbarkeit */
        min-height: 350px;
        max-height: 500px;
    }
    
    .info-panel {
        max-width: none;
        max-height: none; /* Entferne Höhenbeschränkung */
        display: block; /* Ändere von flex zu block für bessere Kontrolle */
    }
    
    .maps-section {
        height: 400px; /* Reduzierte Höhe um 1/5 (von 500px auf 400px) */
        flex: none; /* Entferne flex-Verhalten */
        margin-top: 20px; /* Abstand zur Reviews-Sektion */
    }
    
    .location-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 10px;
        gap: 15px;
    }
    
    .slideshow-container {
        max-height: 60vh; /* Angepasste Höhe für Tablets */
        min-height: 300px;
    }
    
    .main-image-container {
        height: 50vh;
        min-height: 250px;
        max-height: 400px;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .thumbnail-container {
        padding: 12px;
        gap: 6px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    
    .rating-summary {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .review-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .location-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 670px) {
    .main-container {
        max-width: 100%;
        padding: 10px;
        gap: 15px;
    }
    
    .info-panel {
        max-width: 100%;
        width: 100%;
    }
    
    .maps-section {
        width: 100%;
        max-width: 100%;
        height: 350px;
        flex: none;
        margin-top: 20px;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 16px;
        padding-bottom: 16px;
    }
    
    .map-container {
        width: 100%;
        height: 100%;
        margin-right: 0;
    }
    
    .map-container iframe {
        width: 100%;
        height: 100%;
    }
    
    .slideshow-container {
        width: 100%;
        max-width: 100%;
    }
}

/* Amenities Section */
.amenities-container {
    max-width: 1600px;
    margin: 30px auto 0;
    padding: 0; /* Kein Padding für volle Breite */
    width: 100%;
    padding-bottom: 100px;
}

.amenities-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1600px; /* Volle Breite nutzen */
    margin: 0 auto;
    padding: 0; /* Kein Padding mehr */

}

.amenity-row {
    display: flex;
    gap: 16px;
    width: 100%;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    flex: 1; /* Teilt sich den verfügbaren Platz in der Reihe */
    min-width: 0; /* Erlaubt Schrumpfen */
    white-space: nowrap;
}

/* Spezielle Gewichtung für unterschiedliche Größen */
.amenity-item.size-small { flex: 0.8; }
.amenity-item.size-medium { flex: 1; }
.amenity-item.size-large { flex: 1.5; }
.amenity-item.size-xlarge { flex: 2; }

.amenity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.amenity-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: none;
}

.amenity-icon svg {
    width: 24px;
    height: 24px;
    fill: #6a6a6a;
}

.amenity-text {
    font-size: 16px;
    font-weight: 400;
    color: #262626;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive Design für Amenities */
@media screen and (max-width: 1400px) {
    .amenities-container {
        padding: 0 20px; /* Füge Padding für kleinere Bildschirme hinzu */
    }
    
    .amenities-grid {
        gap: 14px;
    }
    
    .amenity-row {
        gap: 14px;
    }
    
    .amenity-item {
        padding: 14px;
    }
    
    .amenity-text {
        font-size: 15px;
    }
}

@media screen and (max-width: 1200px) {
    .amenities-container {
        max-width: 800px; /* Gleiche Breite wie main-container */
        margin: 30px auto 0; /* Zentriert wie main-container */
        padding: 0; /* Kein extra Padding, da main-container schon responsive ist */
    }
    
    .amenities-grid {
        gap: 12px;
    }
    
    .amenity-row {
        gap: 12px;
    }
    
    .amenity-item {
        padding: 12px;
        white-space: normal; /* Erlaubt Textumbruch */
    }
    
    .amenity-text {
        font-size: 14px;
        line-height: 1.3;
    }
}

@media screen and (max-width: 900px) {
    .amenities-container {
        padding: 0; /* Kein Padding, da body schon 20px hat */
    }
    
    .amenities-grid {
        gap: 10px;
    }
    
    .amenity-row {
        gap: 10px;
    }
    
    .amenity-item {
        padding: 10px;
    }
    
    .amenity-icon {
        width: 22px;
        height: 22px;
    }
    
    .amenity-icon img {
        width: 22px;
        height: 22px;
    }
    
    .amenity-text {
        font-size: 13px;
    }
}

@media screen and (max-width: 600px) {
    .amenities-grid {
        gap: 8px;
    }
    
    .amenity-row {
        flex-direction: column; /* Stapelt Boxen vertikal auf Mobile */
        gap: 8px;
    }
    
    .amenity-item {
        padding: 8px;
        flex: 1; /* Alle gleich groß auf Mobile */
    }
    
    .amenity-icon {
        width: 20px;
        height: 20px;
    }
    
    .amenity-icon img {
        width: 20px;
        height: 20px;
    }
    
    .amenity-text {
        font-size: 12px;
        line-height: 1.2;
    }
}


/* calendar */

.justinbimbimstefanbambam{
	max-width: 1600px;
    display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.container {
    max-width: 1000px;
	margin: 0 auto;

}

/* Header */
.calendar-header {
    background: #fff;
    color: #2c3e50;
    padding: 25px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.calendar-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.calendar-header p {
    font-size: 1rem;
    opacity: 0.7;
    color: #6c757d;
}

/* Calendar Wrapper */
.calendar-wrapper {
    padding: 25px;
    position: relative;
}

/* Navigation */
.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.month-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.nav-btn {
    background: #6c757d;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.nav-btn:hover {
    background: #495057;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Calendar Grid */



.calendar-grid {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 10px;
}

.weekday {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: #7f8c8d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 40px;
    font-size: 0.9rem;
}

/* Day States */
.day.available {
    background: #e8f5e8;
    color: #27ae60;
    border: 2px solid transparent;
}

.day.available:hover {
    background: #d5f4d5;
    transform: scale(1.05);
    border-color: #27ae60;
}

.day.occupied {
    background: #fee;
    color: #dc3545;
    cursor: not-allowed;
    border: 1px solid #f8d7da;
}

.day.past {
    background: #ecf0f1;
    color: #bdc3c7;
    cursor: not-allowed;
}

.day.selected {
    z-index: 5;
    background: #0071c2;
    color: white;
    transform: scale(1.02);
}

.day.in-range {
    background: #e6f3ff;
    color: #0071c2;
    z-index: 5 !important;
}

.day.range-start {
    background: #0071c2;
    color: white;
    border-radius: 6px 0 0 6px;
    z-index: 5 !important;
}

.day.range-end {
    background: #0071c2;
    color: white;
    border-radius: 0 6px 6px 0; 
    z-index: 5 !important;
}

.day.range-start.range-end {
    border-radius: 6px;
    z-index: 5 !important;
}

.day.other-month {
    opacity: 0.3;
    pointer-events: none;
}

/* Selection Info */
.selection-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}

.selected-dates {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
}

.booking-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.book-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.book-btn:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.book-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.selected-dates {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
}

.date-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    min-width: 130px;
    min-height: 70px;
    position: relative;
    transition: all 0.2s ease;
}

.date-display {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.nights-display,
.availability-display,
.price-display,
.total-cost-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    min-width: 80px;
    min-height: 70px;
}

.nights-display label,
.availability-display label,
.price-display label,
.total-cost-display label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.nights-display span {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0071c2;
    text-align: center;
}

.availability-display span {
    font-size: 1rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.availability-display .available {
    background: #d4edda;
    color: #155724;
}

.availability-display .occupied {
    background: #f8d7da;
    color: #721c24;
}

.availability-display .unavailable {
    background: #f1f1f1;
    color: #6c757d;
}

.availability-display .booked {
    background: #d1ecf1;
    color: #0c5460;
}



.price-display span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #28a745;
    text-align: center;
}

.total-cost-display span {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0071c2;
    text-align: center;
}

.date-input label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.date-input span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.date-separator {
    font-size: 1.2rem;
    color: #0071c2;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
}

.reset-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.reset-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Legend */
.legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #6c757d;
}

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

.legend-color.available {
    background: #e8f5e8;
}

.legend-color.occupied {
    background: #fee;
    border-color: #f8d7da;
}

.day.half-occupied { position: relative; }

/* Use a pseudo-element for clean half-box overlays (doesn't block clicks) */
.day.half-occupied::before {
    content: '';
    position: absolute;
    left: 4px; /* leave a small gap to show cell border */
    right: 4px;
    width: calc(100% - 8px);
    height: 50%;
    z-index: 1;
    pointer-events: none; /* allow clicks through to the cell */
    transition: background-color 0.18s ease, opacity 0.18s ease;
}

/* AM occupied: shade upper half */
.day.occupied-am.half-occupied::before {
    top: 4px;
    border-radius: 6px 6px 0 0;
    background: rgba(220,53,69,0.14);
}

/* PM occupied: shade lower half */
.day.occupied-pm.half-occupied::before {
    bottom: 4px;
    border-radius: 0 0 6px 6px;
    background: rgba(220,53,69,0.14);
}

/* Booking-specific diagonal halves
   - booking-range-start: right half filled with red along diagonal from bottom-left to top-right
   - booking-range-end: left half filled with red along diagonal from bottom-right to top-left
   These use a pseudo-element so they don't block clicks and sit visually above the base color.
*/
.day.booking-range-start::before,
.day.booking-range-end::before {
    content: '';
    position: absolute;
    /* fill the full cell so start/end match other day box sizes */
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    /* place behind the day text so numbers remain visible */
    z-index: 0;
    pointer-events: none;
    border-radius: 6px;
}

/* Right-side diagonal (start) */
.day.booking-range-start::before {
    /* Use the same pale backgrounds as the legend so start/end match other
       day states: left/bottom = available (pale green), right/top = occupied (pale red). */
    background: linear-gradient(to top right, #e8f5e8 50%, #fee 50%);
}

/* Left-side diagonal (end) */
.day.booking-range-end::before {
    /* Reverse of the start: left/top = occupied (pale red), right/bottom = available (pale green) */
    background: linear-gradient(to top right, #fee 50%, #e8f5e8 50%);
}

/* Ensure day text and label sit above the diagonal background */
.day.booking-range-start,
.day.booking-range-end {
    /* make these positioned so z-index takes effect and the pseudo-element
       (::before) sits behind the day content (day number). Keep this element
       at a low z-index so selection overlays can reliably appear above it. */
    position: relative;
    z-index: 1;
    color: #27ae60; /* rgb(39,174,96) used elsewhere for available hover */
    font-weight: 700;
}

/* If a day is selected (full or half), hide the booking-range diagonal
   background so the selection background is shown instead. Use display:none
   with !important to reliably override the existing ::before gradient. */
.day.booking-range-start.selected::before,
.day.booking-range-end.selected::before,
.day.booking-range-start.selected-am::before,
.day.booking-range-end.selected-am::before,
.day.booking-range-start.selected-pm::before,
.day.booking-range-end.selected-pm::before {
    display: none !important;
}

/* Ensure half/diagonal cells are clickable (override any occupied/past styles) */
.day.booking-range-start,
.day.booking-range-end,
.day.half-occupied {
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Ensure the visible day number is above any ::before overlays */
.day .day-number {
    position: relative;
    z-index: 3; /* above pseudo-element (which uses z-index:0) and above .slot-label (z-index:3 as well) */

}

/* Make the day number green for available days to match the available styling */
.day.available .day-number {
    color: #27ae60; /* rgb(39,174,96) used elsewhere for available hover */
    font-weight: 700;
}

/* Ensure booking start/end text (if any) remains visible on top */
.day.booking-range-start .slot-label,
.day.booking-range-end .slot-label {
    z-index: 3;
}

/* Small AM/PM label in the corner to make intent explicit */
.day .slot-label {
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 10px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 10px;
    background: rgba(255,255,255,0.95);
    color: #c82333;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    pointer-events: none;
    z-index: 3; /* above occupancy overlay */
}

/* Legend entries for half-days */
.legend-color.half-am {
    background: linear-gradient(to bottom, rgba(220,53,69,0.6) 0%, rgba(220,53,69,0.6) 50%, transparent 50%);
}

.legend-color.half-pm {
    background: linear-gradient(to top, rgba(220,53,69,0.6) 0%, rgba(220,53,69,0.6) 50%, transparent 50%);
}

/* Half-selection (start = PM selected, end = AM selected) */
.day.selected-pm::after {
    content: '';
    position: absolute;
    left: 4px;
    right: 4px;
    height: 50%;
    bottom: 4px;
    border-radius: 0 0 6px 6px;
    background: rgba(0,123,255,0.28);
    pointer-events: none;
    /* make selection overlay win over booking-range diagonal backgrounds */
    z-index: 10010 !important; /* place above booking-range diagonal background and day-number */
    box-shadow: inset 0 0 0 1px rgba(0,123,255,0.12);
}

.day.selected-am::after {
    content: '';
    position: absolute;
    left: 4px;
    right: 4px;
    height: 50%;
    top: 4px;
    border-radius: 6px 6px 0 0;
    background: rgba(0,123,255,0.28);
    pointer-events: none;
    /* make selection overlay win over booking-range diagonal backgrounds */
    z-index: 10010 !important; /* place above booking-range diagonal background and day-number */
    box-shadow: inset 0 0 0 1px rgba(0,123,255,0.12);
}

/* Ensure selected text is visible */
.day.selected-pm, .day.selected-am {
    position: relative;
    /* ensure the element itself is above booking-range elements when needed */
    z-index: 10009 !important; /* create stacking context slightly below the ::after pseudo */
    color: #0456a8 !important;
    border: 2px solid rgba(0,123,255,0.45);
    box-shadow: 0 6px 18px rgba(0,123,255,0.08);
    background-clip: padding-box; /* keep border from covering rounded corners */
}

/* Ensure selected half shows above booking-range diagonal when both are present */
.day.booking-range-start.selected-pm::after,
.day.booking-range-end.selected-pm::after,
.day.booking-range-start.selected-am::after,
.day.booking-range-end.selected-am::after {
    /* extra-specific rule to guarantee the selection overlay appears above
       booking-range diagonal halves when both classes are present. */
    z-index: 10011 !important; /* ensure selection overlay wins when combined with booking-range diagonal */
}

.legend-color.selected {
    background: #0071c2;
}

.legend-color.past {
    background: #ecf0f1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        margin: 10px auto;
    }
    
    .calendar-wrapper {
        padding: 30px;
    }
    
    .calendar-header {
        padding: 30px;
    }
    
    .calendar-header h1 {
        font-size: 2rem;
    }
}

/* Text-Größen für kleinere Bildschirme anpassen um Überlauf zu vermeiden */
@media (max-width: 975px) {
    .date-input {
        min-width: 110px;
        min-height: 65px;
        padding: 10px 15px;
    }
    
    .date-input label,
    .nights-display label,
    .availability-display label,
    .price-display label,
    .total-cost-display label {
        font-size: 0.75rem;
    }
    
    .date-display {
        font-size: 1rem;
    }
    
    .nights-display span {
        font-size: 1.1rem;
    }
    
    .availability-display span {
        font-size: 0.9rem;
        padding: 3px 6px;
    }
    
    .price-display span {
        font-size: 1rem;
    }
    
    .total-cost-display span {
        font-size: 1.1rem;
    }
    
    .nights-display,
    .availability-display,
    .price-display,
    .total-cost-display {
        min-width: 70px;
        min-height: 65px;
        padding: 10px 15px;
    }
    
    .selected-dates {
        gap: 15px;
    }
}

/* Neues Layout ab 850px */
@media (max-width: 850px) {
    .selected-dates {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
        gap: 15px;
        width: 100%;
    }
    
    /* Check-in Container - volle Breite */
    .date-input:nth-child(1) {
        order: 1;
        width: 100%;
        flex-basis: 100%;
    }
    
    /* Pfeil */
    .date-separator {
        order: 2;
        transform: rotate(90deg);
        font-size: 1.5rem;
        margin: 0;
        width: 100%;
        flex-basis: 100%;
        text-align: center;
        min-height: auto;
        height: auto;
        padding: 0;
    }
    
    /* Check-out Container - volle Breite */
    .date-input:nth-child(3) {
        order: 3;
        width: 100%;
        flex-basis: 100%;
    }
    
    /* Info-Kästen - 2x2 Layout */
    .nights-display {
        order: 4;
        width: calc(50% - 7.5px);
        flex-basis: calc(50% - 7.5px);
    }
    
    .availability-display {
        order: 5;
        width: calc(50% - 7.5px);
        flex-basis: calc(50% - 7.5px);
    }
    
    .price-display {
        order: 6;
        width: calc(50% - 7.5px);
        flex-basis: calc(50% - 7.5px);
    }
    
    .total-cost-display {
        order: 7;
        width: calc(50% - 7.5px);
        flex-basis: calc(50% - 7.5px);
    }
}

/* Kleinere Anpassungen für sehr kleine Bildschirme */
@media (max-width: 770px) {
    .nights-display,
    .availability-display,
    .price-display,
    .total-cost-display {
        width: calc(50% - 7.5px);
        min-height: 60px;
    }
}


@media (max-width: 768px) {
    
    .calendar-wrapper {
        padding: 20px;
    }
    
    .calendar-header {
        padding: 20px;
    }
    
    .calendar-header h1 {
        font-size: 1.8rem;
    }
    
    .month-title {
        font-size: 1.5rem;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .weekday {
        padding: 10px 5px;
        font-size: 0.8rem;
    }
    
    .day {
        min-height: 40px;
        font-size: 0.9rem;
    }
    
    .selection-info {
        flex-direction: column;
        gap: 20px;
    }
    
    /* Keep the layout from 850px breakpoint */
    .selected-dates {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        width: 100%;
    }

    .date-input {
        width: 100%;
        max-width: none;
    }
    
    .nights-display,
    .availability-display,
    .price-display,
    .total-cost-display {
        width: calc(50% - 7.5px);
        min-width: auto;
        min-height: 60px;
    }
    
    .booking-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .book-btn,
    .reset-btn {
        width: 100%;
    }
    
    .legend {
        gap: 15px;
    }
    
    .legend-item {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .calendar-header h1 {
        font-size: 1.5rem;
    }
    
    .calendar-header p {
        font-size: 1rem;
    }
    
    .month-title {
        font-size: 1.3rem;
    }
    
    .weekday {
        padding: 8px 2px;
        font-size: 0.7rem;
    }
    
    .day {
        min-height: 35px;
        font-size: 0.8rem;
    }
    
    .legend {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* Animationen */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.days {
    animation: fadeIn 0.3s ease;
}

/* Hover Effekte für bessere UX */
.day.available::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    background: linear-gradient(45deg, transparent 49%, rgba(39, 174, 96, 0.1) 50%, transparent 51%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.day.available:hover::before {
    opacity: 1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #ffffff;
    margin: 3% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 1600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease-out;
    box-sizing: border-box;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.close {
    font-size: 24px;
    font-weight: 400;
    cursor: pointer;
    color: #6c757d;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close:hover {
    color: #495057;
    background: #e9ecef;
}

.modal-body {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.booking-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.booking-summary h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: #0071c2;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #0071c2;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-section {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    width: 100%;
    box-sizing: border-box;
}

.form-section h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid #0071c2;
    padding-bottom: 8px;
}

.form-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.form-group label {
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background: #fff;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0071c2;
    box-shadow: 0 0 0 3px rgba(0, 113, 194, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.additional-guests {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    width: 100%;
    box-sizing: border-box;
}

.additional-guests h4 {
    margin: 0 0 15px 0;
    color: #0071c2;
    font-size: 1rem;
    font-weight: 600;
}

.guest-field {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: end;
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    width: 100%;
    box-sizing: border-box;
}

.guest-field:last-child {
    margin-bottom: 0;
}

.guest-number {
    font-weight: 600;
    color: #495057;
    min-width: 80px;
    padding: 12px 0;
    font-size: 0.9rem;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.cancel-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.confirm-booking-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.confirm-booking-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-width: none;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 10px;
    }
    
    .guest-field {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    
    .guest-number {
        min-width: auto;
        padding: 5px 0;
        text-align: center;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .cancel-btn,
    .confirm-booking-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 2% auto;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .form-section,
    .booking-summary,
    .additional-guests {
        padding: 12px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px;
    }
}

/* Payment Method Styles */
.payment-method-selection {
    margin-bottom: 25px;
}

.payment-method-selection h4 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
}

.payment-methods {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.payment-method-option {
    flex: 1;
    cursor: pointer;
    position: relative;
}

.payment-method-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.payment-method-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #495057;
}

.payment-method-option input[type="radio"]:checked + .payment-method-label {
    border-color: #007bff;
    background: #f8f9fa;
    color: #007bff;
}

.payment-method-label:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.payment-fields {
    transition: all 0.3s ease;
}

/* PayPal Specific Styles */
.paypal-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.paypal-info h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}

.paypal-info p {
    margin: 0 0 20px 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.paypal-button-container {
    max-width: 300px;
    margin: 0 auto;
}

/* Mobile adjustments for payment methods */
@media (max-width: 768px) {
    .payment-methods {
        flex-direction: column;
        gap: 10px;
    }
    
    .payment-method-label {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .paypal-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .payment-method-label {
        padding: 10px;
    }
    
    .paypal-info h4 {
        font-size: 1rem;
    }
    
    .paypal-info p {
        font-size: 0.85rem;
    }
}

/* Price Breakdown Styles */
.price-breakdown {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.price-breakdown h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #495057;
    font-weight: 600;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 0.9rem;
    color: #6c757d;
    border-bottom: 1px solid #e9ecef;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 5px;
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    border-top: 2px solid #dee2e6;
    margin-top: 10px;
}

.price-breakdown-modal {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.price-breakdown-modal h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #495057;
    font-weight: 600;
}

.price-breakdown-modal .breakdown-item {
    font-size: 0.85rem;
    padding: 3px 0;
}

.price-breakdown-modal .breakdown-total {
    font-size: 0.95rem;
    padding: 8px 0 3px;
}

/* Loading State */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-radius: 8px;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    padding: 40px 20px;
}

.loading-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    font-size: 1.2rem;
    color: #495057;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f8f9fa;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

.loading-text {
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: #495057;
}

.loading-subtext {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 400;
}

@keyframes loadingProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* API Status Indicator */
.api-status {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.api-status.show {
    opacity: 1;
}

.api-status.online {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.api-status.offline {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.api-status.loading {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
    .price-breakdown, .price-breakdown-modal {
        padding: 12px;
        margin-top: 12px;
    }
    
    .breakdown-item {
        font-size: 0.85rem;
    }
    
    .breakdown-total {
        font-size: 0.95rem;
    }
    
    .refresh-data-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .price-breakdown h4, .price-breakdown-modal h4 {
        font-size: 0.9rem;
    }
    
    .breakdown-item {
        font-size: 0.8rem;
    }
    
    .breakdown-total {
        font-size: 0.9rem;
    }
}

/* Information Section */

.info-section {
    background: rgb(61 85 109 / 25%);
    padding: 48px 16px;
    color: #03314b;

}
.info-inner {
    margin: 0 auto;
}
.info-header { text-align: center; margin-bottom: 22px; }

.info-tabs {
    display: inline-flex;
    gap: 14px;
    background: rgba(255,255,255,0.7);
    padding: 8px;
    border-radius: 40px;
    box-shadow: 0 6px 18px rgba(2,27,38,0.04);
}
.info-tab {
    background: transparent;
    border: none;
    padding: 10px 18px;
    font-weight: 700;
    color: #05506d;
    cursor: pointer;
    border-radius: 28px;
    transition: transform .24s ease, color .18s ease, background .18s ease;
    position: relative;
    font-size: 1rem;
}
/* .info-tab:hover { transform: translateY(-4px); } */
.info-tab.active {
    /* background: linear-gradient(90deg,#0071c2 0%, #0095f6 100%); */
    color: #ffffff;
    /* box-shadow: 0 8px 24px rgba(0,113,194,0.16); */
}

.info-content {
    position: relative;
    min-height: 180px;
    margin-top: 0; /* remove extra top offset so cards align with sidebar */
    /* make info-content take remaining vertical space inside .info-main */
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.info-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 22px;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(2,27,38,0.06);
    color: #04303a;
    transform: translateY(12px) scale(.995);
    opacity: 0;
    pointer-events: none;
    transition: transform .42s cubic-bezier(.2,.9,.2,1), opacity .32s ease;
    /* allow card to fill the parent's height and scroll internally when needed */
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
}
.info-card.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.info-card h3 { margin-top: 0; color: #023047; }
.info-card p { line-height: 1.6; margin-bottom: 12px; }
.info-card ul { margin: 0; padding-left: 18px; }
.info-card li { margin-bottom: 6px; }

@media (max-width: 700px) {
    .info-tabs { gap: 10px; padding: 6px; }
    .info-tab { padding: 8px 12px; font-size: .95rem; }
    .info-card { padding: 16px; position: static; opacity: 1; transform: none; pointer-events: auto; }
    .info-content { min-height: auto; }
}

/* Sidebar for Information Section */
/* Information Section */
.info-section {
    background: rgb(61 85 109 / 25%);
    padding: 48px 16px;
    color: #03314b;
}
.info-inner {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.info-header { text-align: center; margin-bottom: 22px; }

/* Tabs */
.info-tabs {
    position: relative;
    display: inline-flex;
    gap: 14px;
    background: rgba(255,255,255,0.7);
    padding: 8px;
    border-radius: 40px;
    box-shadow: 0 6px 18px rgba(2,27,38,0.04);
    overflow: hidden;
}

/* Sliding blue background */
.info-tabs::before {
    content: "";
    position: absolute;
    bottom: 5%;
    left: var(--slider-left, 0);
    width: var(--slider-width, 0);
    height: 90%;
    border-radius: 40px;
    background: linear-gradient(90deg,#0071c2 0%, #0095f6 100%);
    box-shadow: 0 6px 18px rgba(0,113,194,0.16);
    transition: left 0.35s ease, width 0.35s ease;
    z-index: 0;
}

.info-tab {
    position: relative;
    z-index: 1;
    background: transparent;
    border: none;
    padding: 10px 18px;
    font-weight: 700;
    color: #05506d;
    cursor: pointer;
    border-radius: 28px;
    transition: color .18s ease;
    font-size: 1rem;
}
/* .info-tab:hover { transform: translateY(-4px); } */
.info-tab.active { color: #ffffff; }

/* Info Content */
.info-content {
    position: relative;
    min-height: 180px;
    margin-top: 0;
    min-height: 35vh
}
.info-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 22px;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(2,27,38,0.06);
    color: #04303a;
    transform: translateY(12px) scale(.995);
    opacity: 0;
    pointer-events: none;
    transition: transform .42s cubic-bezier(.2,.9,.2,1), opacity .32s ease;
    height: 100%;
}
.info-card.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.info-card h3 { margin-top: 0; color: #023047; }
.info-card p { line-height: 1.6; margin-bottom: 12px; }

/* Sidebar */
.info-body {
    display: flex;
    gap: 18px;
    /* stretch children so sidebar and main area always match height */
    align-items: stretch;
    padding-left: 70px;
    padding-right: 70px;
}

@media (max-width: 1150px) {
    .info-body {
        padding-left: 10px;
        padding-right: 10px;
    }
}


.info-sidebar {
    width: 25%;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(2,27,38,0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    /* allow flex parent to control the height and avoid forcing a minimum height */
    min-height: 0;
    align-self: stretch;
}

/* Vertical sliding background */
.info-sidebar::before {
    content: "";
    position: absolute;
    top: var(--side-top, 0);
    left: 2.5%;
    width: 95%;
    height: var(--side-height, 0);
    border-radius: 8px;
    background: linear-gradient(90deg,#0071c2 0%, #0095f6 100%);
    box-shadow: 0 8px 24px rgba(0,113,194,0.16);
    transition: top 0.35s ease, height 0.35s ease;
    z-index: 0;
}

.sidebar-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-item {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: background .18s ease, transform .12s ease;
    color: #03314b;
}

.sidebar-item .icon { font-size: 18px; width: 26px; display:inline-block }
.sidebar-item .label { font-weight: 600; font-size: 0.98rem }

/* .sidebar-item:hover { transform: translateX(4px); } */
.sidebar-item.active { color: #ffffff; }

.sidebar-detail { display: none !important; }
.info-main {
    flex: 1;
    width: 75%;
    /* allow the main area to grow/shrink inside the flex container and enable
       its children (.info-content) to fill the available height */
    min-height: 0;
    display: flex;
    flex-direction: column;
}
/* Responsive */
/* @media (max-width: 900px) {
    .info-body { flex-direction: column; }
    .info-sidebar {
        width: 100%;
        order: 1;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
        padding: 8px;
        align-items: start;
    }
    .sidebar-group { display: contents; }
    .sidebar-item {
        background: linear-gradient(180deg,#ffffff,#f7fbff);
        border-radius: 10px;
        box-shadow: 0 6px 18px rgba(2,27,38,0.04);
    }
    .info-main { order: 2; width: 100%; }
    .info-card {
        position: static !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        width: 100%;
        padding: 16px;
        margin-top: 8px;
    }
} */

/* Topic list */
.topic-list {
    list-style: none;
    margin: 10px 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.topic-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: linear-gradient(180deg,#ffffff,#f7fbff);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(2,27,38,0.04);
}
.topic-item .icon { font-size: 18px; width: 30px; display:inline-block }
.topic-item .txt { font-weight: 600; color: #03314b }

@media (max-width: 900px) {
    .sidebar-item .icon {
        display: none ;
    }
}

@media (max-width: 780px) {
    .sidebar-item .icon {
        display: inline-block;
    }

        .sidebar-item .label {
        display: none;
    }

    .info-sidebar{
            width: auto;
        }
}

/* Verbesserte Darstellung für die Lightbox / Einzelbild auf Mobilgeräten */
@media (max-width: 480px) {
    /* Mehr Platz für das Bild: größere max-width / max-height, bleibt aber innerhalb des Viewports */
    .lightbox-content {
        padding: 10px;
        max-width: 96vw;
        box-sizing: border-box;
    }

    .lightbox-image {
        /* Auf Mobilgeräten das Bild deutlich größer anzeigen, aber nie über den Viewport hinaus */
        min-width: 70vw;
        max-width: 90vw;
        width: auto;
        height: auto;
        max-height: calc(100vh - 140px); /* Platz für Header/Controls */
        object-fit: contain;
        border-radius: 12px;
        display: block;
        margin: 0 auto;
    }

    /* Navigation-Buttons näher an den Rändern, damit das Bild nicht überlappt wird */
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .lightbox-controls {
        top: 8px;
        right: 8px;
    }

    .lightbox-info {
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* Positioniere die Lightbox-Navigationspfeile unter dem Bild bei sehr schmalen Bildschirmen
   Ziel: unter 550px sollen die Prev/Next-Schaltflächen unterhalb des Bildes zentriert angezeigt werden
*/
@media (max-width: 550px) {
    /* Stelle sicher, dass die Lightbox-Inhalte vertikal gestapelt und zentriert sind */
    .lightbox-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding-bottom: 96px; /* Platz für die Buttons unter dem Bild schaffen */
    }

    .lightbox-image {
        max-width: 90vw;
        width: auto;
        min-width: 0;
        height: auto;
        max-height: calc(100vh - 160px);
        margin: 0 auto;
        display: block;
    }

    /* Die eigentlichen Navigationsknöpfe zentral unter dem Bild platzieren */
    .lightbox-prev,
    .lightbox-next {
        position: absolute;
        top: auto;
        bottom: 20%;
        /* Beibehalten des visuellen Stils, aber etwas kleiner auf Mobile */
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    /* Links/rechts relativ zur Mitte des Viewports (Bild ist in Lightbox zentriert) */
    .lightbox-prev {
        left: calc(20% - 46px);
    }

    .lightbox-next {
        left: calc(80% + 2px);
    }

    /* Controls oben/rechts ggf. kleiner platzieren, damit sie nicht mit Bild kollidieren */
    .lightbox-controls {
        top: 8px;
        right: 8px;
    }
    .lightbox-image{
        width: 100%;
    }
}