/* Grundlegende Einstellungen */
:root {
    --primary-color: #08468e;
    --secondary-color: #1d1d1f;
    --third-color: #366396;
    --light-gray: #f5f5f7;
    --medium-gray: #86868b;
    --dark-gray: #333333;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 5rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--third-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btna {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 30px;
    font-size: 0.9rem;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btna:hover {
    background-color: var(--third-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btnb {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: 30px;
font-size: 0.9rem;
    text-align: center;
    transition: var(--transition);
    border: 3px solid var(--primary-color) ;
    cursor: pointer;
}

.btnb:hover {
    background-color: var(--third-color);
    border: 3px solid var(--white);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}





.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    z-index: 1000;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);

}

.logo img {
    max-height: 60px; /* Passen Sie die Höhe nach Bedarf an */
    width: auto;
}


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

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: var(--secondary-color);
    font-weight: 500;
    position: relative;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover:after,
.nav-menu a.active:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

/* Header */
.main-header {
    
    position: relative;
    overflow: hidden;
}

.hero {
    background-image: url("../images/index/hero-backround.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
}

.hero-content .btn {
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

/* Übersicht der Ferienhäuser */
.overview {
    background-color: var(--white);
}

.house-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.house-card {
    flex: 1 1 400px;
    max-width: 550px;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.house-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}



.house-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.house-card:hover .house-image img {
    transform: scale(1.05);
}

.house-info {
    padding: 2rem;
}

.house-info h3 {
    margin-bottom: 0.5rem;
}

.house-info p {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
}

.price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Ferienwohnungen */
.apartments {
    background-color: var(--light-gray);
}

.apartment-section {
    margin-bottom: 4rem;
}

.apartment-section:last-child {
    margin-bottom: 0;
}

.section-title {
    text-align: left;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--medium-gray);
}

.apartment-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.apartment-card {
    flex: 1 1 300px;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.apartment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.na-apartment-image {
    height: 300px;
    overflow: hidden;
}

.na-apartment-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mn-apartment-image {
    height: 200px;
    overflow: hidden;
}

.mn-apartment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.apartment-card:hover .apartment-image img {
    transform: scale(1.05);
}

.apartment-info {
    padding: 1.5rem;
}

.apartment-info h4 {
    margin-bottom: 0.5rem;
}

.apartment-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
}

.apartment-features span {
    background-color: var(--light-gray);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.apartment-features span .icon {
   width: 16px; /* Kleinere Größe für die Icons */
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
    display: inline-block;
    
}

/* Highlights */
.highlights {
    background-color: var(--white);
}

.highlight-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.highlight-card {
    flex: 1 1 300px;
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background-color: var(--light-gray);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.highlight-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px; /* Feste Höhe für konsistente Ausrichtung */
}

.highlight-icon .icon {
    width: 60px; /* Größere Icons */
    height: 60px;
}

.highlight-card h3 {
    margin-bottom: 0.5rem;
    margin-top: 0.5rem; /* Konsistenter Abstand nach dem Icon */
}
}

.highlight-card p {
    color: var(--medium-gray);
}

/* CTA Section */
.cta {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
}

.cta h2 {
    color: var(--white);
}

.cta p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.cta .btn {
    background-color: var(--white);
    color: var(--primary-color);
}

.cta .btn:hover {
    background-color: var(--light-gray);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1 1 200px;
}

.footer-section h3 {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-section p {
    
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.footer-section p a {
    color: white;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.footer-section .icon {
   width: 25px;
    height: 25px;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

.footer-section i {
    margin-right: 10px;
    color: var(--primary-color);
}

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

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

.footer-section ul li a {
    color: var(--light-gray);
}

.footer-section ul li a:hover {
    color: black;
}

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

.social-icons a {
 display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
    overflow: hidden;
    position: relative; /* Wichtig für Zentrierung */

}

.social-icons a img.icon{
 width: 24px;
    height: 24px;
    object-fit: contain;
    position: absolute; /* Position absolut für Zentrierung */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

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

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
     h3 {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
    }
        .menu-toggle {
        display: block;
    }
    
    .nav-menu {
       position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        transition: 0.4s;
        text-align: center;
        /* Diese Zeile hinzufügen: */
        display: none;
    }
    
    .nav-menu.active {
        top: 100px;
        /* Diese Zeile hinzufügen: */
        display: block;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
     .hero {
        height: 60vh !important;
        min-height: 300px; /* Mindesthöhe für bessere Darstellung */
    }
}

@media (max-width: 768px) {

    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .house-card, 
    .apartment-card, 
    .highlight-card {
        flex: 1 1 100%;
    }
    
    .footer-section {
        flex: 1 1 100%;
    }
}


/* Testimonials Section - Langsamere Animation und breiterer Bereich */
.testimonials {
    background-color: var(--light-gray);
    padding: 5rem 0;
    overflow: hidden;
    position: relative;
}

.testimonials h2 {
    margin-bottom: 3rem;
}

.testimonials-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.testimonial-description{
        
    font-size: 1.2rem;
    color: var(--medium-gray);
    text-align: center;

}

/* Gradienten für Ein- und Ausblenden - schmaler für breiteren sichtbaren Bereich */
.testimonials-container:before,
.testimonials-container:after {
    content: '';
    position: absolute;
    top: 0;
    width: 10%; /* Von 15% auf 10% reduziert für breiteren sichtbaren Bereich */
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.testimonials-container:before {
    left: 0;
    background: linear-gradient(to right, var(--light-gray), transparent);
}

.testimonials-container:after {
    right: 0;
    background: linear-gradient(to left, var(--light-gray), transparent);
}

/* Der Track bewegt sich kontinuierlich */
.testimonial-track {
    display: flex;
    gap: 30px; /* Vergrößert von 20px auf 30px für mehr Abstand */
    padding: 20px 0;
}

/* Jede Slide hat eine feste Breite */
.testimonial-slide {
    flex: 0 0 auto;
    width: 350px;
    transition: opacity 0.5s ease;
}

/* Karten-Styling */
.testimonial-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.testimonial-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid var(--primary-color);
}

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

.testimonial-info h4 {
    margin: 0 0 5px;
    font-size: 1.1rem;
}

.testimonial-source {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.source-icon {
    height: 16px;
    margin-right: 5px;
}

.testimonial-rating {
    display: flex;
    align-items: center;
}

.testimonial-rating .icon {
    width: 16px; /* Kleinere Größe für die Sterne */
    height: 16px;
    margin-right: 2px; /* Kleiner Abstand zwischen den Sternen */
    display: inline-block;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--dark-gray);
}

.testimonial-date {
    font-size: 0.8rem;
    color: var(--medium-gray);
    text-align: right;
    margin: 0;
}

/* Container breiter machen für Desktop */
@media (min-width: 1200px) {
    .testimonials .container {
        max-width: 1400px; /* Erhöht von 1200px für breiteren Bereich */
    }
}

/* Responsive Design für Testimonials */
@media (max-width: 992px) {
    .testimonial-slide {
        width: 320px;
    }
}

@media (max-width: 768px) {
    .testimonial-slide {
        width: 280px;
    }
    
    .testimonial-image {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .testimonial-slide {
        width: 260px;
    }
    
    .testimonial-image {
        width: 50px;
        height: 50px;
    }
    
    .testimonial-info h4 {
        font-size: 1rem;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
    }
}
/* Freizeitaktivitäten Bereich */
.activities {
    background-color: var(--white);
    padding: 5rem 0;
    padding-bottom: 0px;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--medium-gray);
    font-size: 1.1rem;
}

.activities-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: var(--light-gray);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-gray);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background: #e0e0e2;
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.activity-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.activity-image {
    height: 200px;
    overflow: hidden;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.activity-card:hover .activity-image img {
    transform: scale(1.05);
}

.activity-content {
    padding: 1.5rem;
}

.activity-content h3 {
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--medium-gray);
    align-items: center;
    white-space: nowrap;
}

.activity-meta i {
    color: var(--primary-color);
    margin-right: 5px;
}

.activity-content p {
    margin-bottom: 1.2rem;
    color: var(--dark-gray);
}

.activity-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.activity-features span {
    font-size: 0.9rem;
    color: var(--dark-gray);
    align-items: center;
    white-space: nowrap;
}

.activity-features i {
    color: var(--primary-color);
    margin-right: 5px;
}




.activity-meta .icon,
.activity-features .icon {
    width: 16px;
    height: 16px;
}

.favorite-badge .icon {
    width: 20px;
    height: 20px;
}

/* Explizite Anpassungen für die Aktivitäts-Meta und Features */
.activity-meta span,
.activity-features span {
    display: inline-flex !important; /* Erzwingt inline-flex */
    align-items: center !important;
    margin-right: 10px;
}
/* Zusätzliche Anpassungen für die Container */
.activity-meta,
.activity-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}
/* Responsive Design für Aktivitäten */
@media (max-width: 992px) {
    .activities-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    
  
}

@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
  
}

@media (max-width: 576px) {
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.7rem 1.2rem;
    }
    
 
}
/* Zusätzliche Stile für Favoriten und Restaurants */
.activity-card {
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
}

.favorite-badge {
    position: absolute;
    top: 10px; /* Geändert von -10px auf 10px */
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
    display: flex;
}

.favorite-badge i {
    color: white;
    margin-right: 5px;
}


/* Staggered animation for cards */
.activity-card:nth-child(1) { transition-delay: 0.05s; }
.activity-card:nth-child(2) { transition-delay: 0.1s; }
.activity-card:nth-child(3) { transition-delay: 0.15s; }
.activity-card:nth-child(4) { transition-delay: 0.2s; }
.activity-card:nth-child(5) { transition-delay: 0.25s; }
.activity-card:nth-child(6) { transition-delay: 0.3s; }
.activity-card:nth-child(7) { transition-delay: 0.35s; }
.activity-card:nth-child(8) { transition-delay: 0.4s; }
.activity-card:nth-child(9) { transition-delay: 0.45s; }
.activity-card:nth-child(10) { transition-delay: 0.5s; }
.activity-card:nth-child(11) { transition-delay: 0.55s; }
.activity-card:nth-child(12) { transition-delay: 0.6s; }

/* Kontaktbereich */

.contact {
    padding-bottom: 3rem; /* Reduziert den Abstand am unteren Rand des Kontaktbereichs */

}
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

/* Gastgeber-Bereich */
.hosts-section {
    margin-bottom: 3rem;
}

.hosts-container {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.host-image {
    flex: 0 0 200px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.host-info h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.host-info p {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

/* Kontaktdetails */
.contact-details {
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    flex: 0 0 50px;
    height: 50px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    padding: 0;
    box-sizing: border-box;
    position: relative; /* Für absolute Positionierung des Icons */
}
.contact-icon .icon{
   width: 24px;
    height: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Perfekte Zentrierung */
    padding: 0;
    margin: 0;
}
.contact-text h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-text p {
    margin-bottom: 0.3rem;
    color: var(--dark-gray);
}

.contact-text .note {
    font-size: 0.9rem;
    color: var(--medium-gray);
}



/* Kontaktformular mit korrigiertem Hintergrund */
.contact-form-container {
    background-color: var(--light-gray);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    height: auto;
    max-height: 875px; /* Ihre erfolgreiche Höhe */
    overflow: visible;
}

.hosts-section h3 {
    padding-top: 2.5rem;
}


.contact-form {
    display: block; /* Ändert von flex zu block */
    height: auto;
}

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

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="date"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e2;
    border-radius: 8px;
    background-color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    color: var(--secondary-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form textarea {
    height: 150px; /* Erhöhte Höhe für das Textfeld */
    resize: vertical; /* Erlaubt dem Benutzer, die Größe anzupassen */
}


.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.contact-form .form-group:last-of-type {
    margin-bottom: 0;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group.half {
    flex: 1;
}


/* Checkbox Styling */
.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-group.checkbox input {
    margin-top: 5px;
    margin-right: 10px;
    flex-shrink: 0;
}

.form-group.checkbox label {
    font-weight: normal;
    font-size: 0.9rem;
    line-height: 1.4;
}

.form-group.checkbox a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-submit {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.form-note {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.8rem;
    color: var(--medium-gray);
    text-align: right;
    padding-bottom: 0; /* Explizit kein Padding am unteren Rand */
}




/* Responsive Design für den Kontaktbereich */
@media (max-width: 1200px) {
    .contact-container {
        gap: 2rem;
    }
    
    .host-image {
        flex: 0 0 150px;
        height: 150px;
    }
}

@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hosts-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .host-image {
        width: 200px;
        margin: 0 auto;
    }
    
    .host-info {
        text-align: center;
    }
    
    .contact-details {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
  
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .contact-details {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    

}

/* Scroll-Padding für fixierte Navbar */
html {
    scroll-padding-top: 80px; /* Sollte der Höhe Ihrer Navbar entsprechen */
}

/* Sichtbare Anker für die Abschnitte */
section[id] {
    scroll-margin-top: 80px; /* Sollte der Höhe Ihrer Navbar entsprechen */
}
/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    padding: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cookie-header h3 {
    margin: 0;
}

.cookie-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--medium-gray);
    transition: color 0.3s ease;
}

.cookie-close:hover {
    color: var(--dark-gray);
}
.cookie-close img{
max-height: 20px;
}

.cookie-options {
    margin: 1.5rem 0;
}

.cookie-option {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option label {
    font-weight: 600;
    margin-left: 0.5rem;
}

.cookie-description {
    margin-top: 0.5rem;
    margin-left: 1.8rem;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.cookie-policy-link {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-actions button {
    flex: 1;
    min-width: 120px;
}

/* Floating Cookie Settings Button */
.cookie-settings-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 998;
    font-size: 1.3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: scale(0);
}

.cookie-settings-float.show {
    opacity: 1;
    transform: scale(1);
}

.cookie-settings-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}
.cookie-settings-float img.icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Responsive Styles */
@media (max-width: 576px) {
    .cookie-actions {
        flex-direction: column;
    }
    
    .cookie-content {
        padding: 1rem;
    }
}

/* Nordapart Seite Styles */

/* Header für Unterseiten */
.sub-header {
    height: 40vh;
    background-image: url('../images/Meer.webp');
    background-size: cover;
    
    
    background-position: center;
    
    background-repeat: no-repeat;


    position: relative;
    display: flex;
    align-items: center;         /* vertikal zentrieren */
    justify-content: center;     /* horizontal zentrieren */
}

.sub-header:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
}

.page-title {
    margin-top: 100px; 
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
    color: var(--white);
}

.page-title h1 {
    font-size: 3rem;
    margin: 0;
    animation: fadeInUp 1s ease;
}

/* Hausübersicht */
.house-overview {
    padding: 5rem 0;
    background-color: var(--white);
}

.house-description {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.house-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.house-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Neu: auch vertikal zentrieren */
    text-align: center;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%; /* optional, falls die Höhe variiert */
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature .icon {
    width: 40px;
    height: 40px;
    display: block;
    margin-bottom: 1rem;
    margin-left: 0; /* WICHTIG: kein left-margin! */
    margin-right: 0; /* WICHTIG: kein right-margin! */
    object-fit: contain;
}

.feature h4 {
    margin-bottom: 0.5rem;
}

.house-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.house-image img {
    
    height: 300px;
    display: block;
    transition: transform 0.5s ease;
}

.house-image:hover img {
    transform: scale(1.03);
}

/* Wichtige Informationen */
.important-info {
    padding: 5rem 0;
    background: linear-gradient(180deg,var(--white) 0%, var(--light-gray) 20%, var(--light-gray) 90%, var(--white) 100%);
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(4, 1.5fr);
    gap: 1rem;
    margin-top: 3rem;
}

.info-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.info-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    position: relative; /* für absolute Zentrierung falls nötig */
}

.info-icon img {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
    margin-left: 6px;
    
    /* Kein margin! */
}

.info-card h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.info-card ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}
.info-card ul li:before {
    content: none;
}

.info-card ul li {
    margin-bottom: 0.8rem;
    position: relative;
}



/* Preisübersicht */
.pricing {
    padding: 5rem 0;
    background-color: var(--white);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--medium-gray);
}

.price-table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
}

.price-table thead {
    background-color: var(--primary-color);
    color: var(--white);
}

.price-table th, .price-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #e0e0e2;
}

.price-table tbody tr:nth-child(even) {
    background-color: var(--light-gray);
}

.price-table tbody tr:hover {
    background-color: rgba(0, 113, 227, 0.05);
}

.price-table tfoot {
    background-color: var(--light-gray);
    font-style: italic;
}

.price-notes {
    color: var(--medium-gray);
}

.price-notes p {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--medium-gray);
    gap: 8px; /* sorgt für gleichmäßigen Abstand */
}

.price-notes .icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    margin: 0; /* Kein margin-left! */
}

/* Ferienwohnungen Details */

/* Galerie-Grundstil */
.gallery-container {
  max-width: 1000px;
  margin: 0 auto;
  margin-bottom: 1rem;
}

/* Hauptbild-Container */
.main-image-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 66.67%; /* 3:2 Verhältnis für Querformat */
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.portrait-gallery .main-image-container {
  padding-bottom: 150%; /* 2:3 Verhältnis für Hochformat */
}

.main-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

/* Navigation Buttons */
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  z-index: 2;
}

.nav-button:hover {
  background-color: rgba(255, 255, 255, 0.9);
}


.prev-button {
  left: 15px;
    display: flex;
  align-items: center;
  justify-content: center;
}

.next-button {
  right: 15px;
    display: flex;
  align-items: center;
  justify-content: center;
}

.next-button img,
.prev-button img , 
.fullscreen-button img {

padding: 7px;
}

.fullscreen-content .next-button img,
.fullscreen-content .prev-button img
{
padding: 0px;
    margin-left: 5px;
   
}

.fullscreen-button {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  z-index: 2;
}

.fullscreen-button:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

/* Thumbnails */
.thumbnails-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 5px 0;
  scrollbar-width: thin;
}

.thumbnail {
  flex: 0 0 auto;
  width: 80px;
  height: 60px;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.thumbnail:hover {
  opacity: 0.9;
  transform: translateY(-3px);
}

.thumbnail.active {
  opacity: 1;
  border-color: var(--primary-color);
}

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

/* Fullscreen Overlay */
.fullscreen-overlay {
     position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;

}

.fullscreen-overlay.active {
  opacity: 1;
  visibility: visible;
}

.fullscreen-content {
position: relative;
    max-width: 85%;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.close-fullscreen {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
 
}

.fullscreen-prev {
  left: -50px;
}

.fullscreen-next {
  right: -50px;
}

/* Responsive Design */
@media (min-width: 769px) {
  .portrait-gallery {
    display: none;
  }
}

@media (max-width: 768px) {
  .landscape-gallery {
    display: none;
  }
  
  .portrait-gallery {
    display: block;
  }
  
  .thumbnail {
    width: 60px;
    height: 45px;
  }
}

.apartment-details {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.apartment-details:nth-child(odd) {
    background-color: var(--white);
}

.apartment-gallery {
    margin-bottom: 3rem;
}


.apartment-info-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
}

.apartment-description h3 {
    margin-bottom: 1.5rem;
}

.apartment-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 10px;
}

.apartment-details:nth-child(odd) .apartment-specs {
    background-color: var(--light-gray);
}

.spec-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.spec-item i {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-right: 0.8rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    background-color: var(--white);
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.apartment-details:nth-child(odd) .feature-item {
    background-color: var(--light-gray);
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-item i {
    color: var(--primary-color);
    margin-right: 0.8rem;
}

.apartment-booking {
    align-self: start;
}

.booking-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.apartment-details:nth-child(odd) .booking-card {
    background-color: var(--light-gray);
}

.booking-card h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.price-from {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.price-from span {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

.price-from-info {
   color: var(--medium-gray);
    font-size: 0.75 rem;
    text-align: center;
    margin-bottom: 0;
   
}



.availability-calendar {
    width: 100%;
    height: 435px;
    margin-bottom: 1.5rem;
    border-radius: 5px;
   
    
}

.availability-calendar iframe {
    width: 100%;
    height: 100%;
    border: none;
   
}

.btn-block {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    text-align: center;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Lage und Anreise */
.location-info {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.location-grid {
    display: grid;
    grid-template-columns: 2fr 2fr; /* 60% / 40% */
    gap: 3rem;
    align-items: start;
}
.maps-grid-container {
    display: grid;
    grid-template-columns: 2fr 2fr; /* 60% Maps, 40% Text */
    gap: 2rem;
    align-items: start;
    margin-top: 2rem;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.location-item h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.location-item h3 i {
    color: var(--primary-color);
    margin-right: 0.8rem;
}

.location-item ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.location-item ul li {
    margin-bottom: 0.5rem;
    position: relative;
}

.location-item ul li:before {
   content: none;
}

/* FAQ */
.faq {
    padding: 5rem 0;
    background-color: var(--white);
}

.accordion {
    max-width: 800px;
    margin: 3rem auto 0;
}

.accordion-item {
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.accordion-item button {
    color: var(--primary-color);
}

.accordion-header {
    width: 100%;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header p {
    margin: 1rem;
    line-height: 1.6;
    color: var(--dark-gray);
}
.accordion-header:hover {
    background-color: rgba(0, 113, 227, 0.05);
}

.accordion-header i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.accordion-header.active img {
    transform: rotate(180deg);
}

.accordion-content {
    background-color: var(--light-gray);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.active {
    padding:1rem;
    max-height: 500px;
}
/* Neue Stile für den Text im Akkordeon */
.accordion-content p {
    margin: 1rem;
    line-height: 1.6;
    color: var(--dark-gray);
}

/* CTA */
.cta {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cta .btn {
    background-color: var(--white);
    color: var(--primary-color);
}

.cta .btn:hover {
    background-color: var(--light-gray);
}

.cta .btn-primary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.cta .btn-primary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Responsive Design für die Nordapart-Seite */
@media (max-width: 1200px) {
    .house-description {
        gap: 2rem;
    }
    
    .info-cards {
        gap: 1.5rem;
    }
    
    .apartment-info-grid {
        gap: 2rem;
    }
}

@media (max-width: 992px) {

    
    .page-title h1 {
        font-size: 2.5rem;
    }
    
    .house-description {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .house-text {
        order: 2;
    }
    
    .house-image {
        order: 1;
       
    }
    
    .info-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .apartment-info-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
   .location-grid,
    .maps-grid-container {
        grid-template-columns: 1fr; /* Auf mobilen Geräten gestapelt */
        gap: 2rem;
    }
    
    .map-info {
        margin-top: 1rem;
    }
    
}

@media (max-width: 768px) {
    .house-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    .location-grid,
    .maps-grid-container {
        gap: 1.5rem;
    }
    
    .map-info {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {

    
    .page-title h1 {
        font-size: 2rem;
    }
    
    
    .apartment-specs {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Bildergalerie Styles */
.photo-gallery {
    padding: 5rem 0;
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    gap: 15px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

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

/* Querformatbilder nehmen 2 Spalten ein */
.gallery-item.landscape {
    grid-column: span 2;
}

/* Hochformatbilder nehmen 2 Zeilen ein */
.gallery-item.portrait {
    grid-row: span 2;
}

/* Responsive Anpassungen */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        grid-auto-rows: 200px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 150px;
        gap: 10px;
    }
    
    /* Auf kleinen Bildschirmen nehmen alle Bilder nur eine Spalte ein */
    .gallery-item.landscape {
        grid-column: span 1;
    }
}
 /* Bildergalerie Styles - angepasst an das Gesamtdesign */
.photo-gallery {
    padding: 5rem 0;
    background-color: var(--white);
}

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

.grid-wrapper {
    display: grid;
    grid-gap: 15px; /* Etwas größerer Abstand für bessere Lesbarkeit */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
}

.grid-wrapper > div {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 10px; /* Abgerundete Ecken wie bei anderen Elementen */
    box-shadow: var(--shadow); /* Konsistenter Schatten wie bei anderen Elementen */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-wrapper > div:hover {
    transform: translateY(-5px); /* Hover-Effekt wie bei anderen Elementen */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.grid-wrapper > div > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s ease;
}

.grid-wrapper > div:hover > img {
    transform: scale(1.05); /* Zoom-Effekt beim Hover wie bei anderen Bildern */
}

.grid-wrapper .wide {
    grid-column: span 2;
}

.grid-wrapper .tall {
    grid-row: span 2;
}

.grid-wrapper .big {
    grid-column: span 2;
    grid-row: span 2;
}

/* Responsive Anpassungen */
@media (max-width: 992px) {
    .innergridl {
        padding: 15px;
    }
    
    .grid-wrapper {
        grid-gap: 12px;
    }
    .hosts-section h3 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .innergridl {
        padding: 10px;
    }
    
    .grid-wrapper {
        grid-gap: 10px;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
     
}

@media (max-width: 576px) {
    .grid-wrapper {
        grid-gap: 8px;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        grid-auto-rows: 150px;
    }
}
    
.legal-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.legal-content h2 {
    color: var(--primary-color);
     text-align: left;
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--light-gray);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.legal-content p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
    color: var(--dark-gray);
}

.legal-content ul, 
.legal-content ol {
    margin-bottom: 1.5rem;
    margin-left: 2rem;
    color: var(--dark-gray);
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: #005bbf;
}

.legal-content .date-info {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
    font-style: italic;
    color: var(--medium-gray);
    text-align: right;
}
.icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
}

/* Fade-in-up Animation Styles */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

 .error-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 5rem 2rem;
            min-height: 60vh;
        }
        
        .error-image {
            max-width: 300px;
            margin-bottom: 2rem;
        }
        
        .error-title {
            font-size: 3rem;
            margin-bottom: 1rem;
            color: var(--primary-color);
        }
        
        .error-message {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            max-width: 600px;
        }
        
        .error-options {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            justify-content: center;
            margin-top: 1rem;
        }
        
        @media (max-width: 768px) {
            .error-title {
                font-size: 2.5rem;
            }
            
            .error-image {
                max-width: 200px;
            }
        }

/* Verbesserter Button-Style für Maps */
#enable-maps-button {
    position: relative;
    overflow: hidden;
}

#enable-maps-button:active {
    transform: scale(0.98);
}

#enable-maps-button:hover {
    background-color: var(--third-color);
    box-shadow: 0 4px 15px rgba(8, 70, 142, 0.3);
}

/* Loading-Indikator für Maps-Button */
#enable-maps-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

#enable-maps-button.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Google Maps Integration Styles */
.maps-section {
    width: 100%;
}

.maps-section h3 {
   margin-bottom: 1.5rem;
    text-align: center;

}
.map-info {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: fit-content; /* Wichtig: passt sich dem Inhalt an */
}

.map-info h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.map-info p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.map-info .icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    color: var(--primary-color);
}
.map-placeholder {
    width: 100%;
    background-color: var(--light-gray);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--medium-gray);
    margin-bottom: 1rem;
    transition: var(--transition);
    
     
}

.map-placeholder:hover {
    border-color: var(--primary-color);
    background-color: #f0f4f8;
}

.placeholder-content {
    text-align: center;
    max-width: 400px;
   
}

.placeholder-icon {
   margin-bottom: 1rem;
    font-size: 3rem;
}

.placeholder-content h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.placeholder-content p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.privacy-note {
    font-size: 0.8rem !important;
    color: var(--medium-gray) !important;
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}

.privacy-note a {
    color: var(--primary-color);
    text-decoration: underline;
}

.privacy-note a:hover {
    color: var(--secondary-color);
}

.map-container {
    width: 100%;
    height: 665px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    border: 1px solid #e0e0e2;
}

.map-container iframe {
    border-radius: 15px;
}

/* Loading Animation für Kartenübergang */
.map-loading {
    opacity: 0.5;
    pointer-events: none;
}

.map-loaded {
    animation: mapFadeIn 0.8s ease-in-out;
}

@keyframes mapFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design für Maps */
@media (max-width: 768px) {
    .map-placeholder,
    .map-container {
        height: 300px;
    }
    
    .placeholder-content {
        padding: 1.5rem;
    }
    
    .placeholder-content h4 {
        font-size: 1.2rem;
    }
    
    .placeholder-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .map-placeholder,
    .map-container {
        height: 250px;
    }
    
    .placeholder-content {
        padding: 1rem;
    }
}

.popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s;
}

.popup-content {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 15px;
  text-align: center;
  max-width: 350px;
  box-shadow: var(--shadow);
  position: relative;
}

.popup-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary-color);
  cursor: pointer;
  line-height: 1;
}

.popup-overlay.hidden {
  display: none;
}
@media screen and (max-width: 600px) {
  .price-table, .price-table thead, .price-table tbody, .price-table th, .price-table td, .price-table tr {
    display: block;
    width: 100%;
  }
  .price-table thead tr {
    display: none;
  }
  .price-table tr {
    margin-bottom: 1rem;
    border-radius: 8px;
    background: var(--light-gray);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 0.5rem 0.5rem;
  }
    .price-table td {
    display: flex;
    align-items: center;
    border: none;
    padding: 0.5rem 1rem;
    position: relative;
    text-align: left;
    min-height: 36px;
    width: 100%;
    font-size: 1rem;
    box-sizing: border-box;
  }
  .price-table td:before {
    content: attr(data-label);
    font-weight: bold;
    color:var(--primary-color);
    width: 110px;       /* Feste Breite für alle Labels */
    min-width: 110px;   /* Optional, falls Label länger */
    margin-right: 3rem; /* Abstand zum Wert */
    text-align: left;
    flex-shrink: 0;
    display: inline-block;
  }
  .price-table td > * {
    margin-left: 3rem;     /* Keine zusätzliche Einrückung */
  }
    
    
    .booking-card {
    padding: 1rem;
}
}


/* Responsive Design für Maps */
@media (max-width: 768px) {
    .map-placeholder,
    .map-container {
        height: 300px;
    }
    
    .placeholder-content {
        padding: 1.5rem;
    }
    
    .placeholder-content h4 {
        font-size: 1.2rem;
    }
    
    .placeholder-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
   
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
   
   .placeholder-icon {
   margin-bottom: 1rem;
    font-size: 1rem;
}
    .important-info {
    padding-top: 3rem;
        padding-bottom: 0.5rem;
}
    .house-overview {
    padding-bottom: 0px;
}
    
    .apartment-details {
    padding-top: 1.5rem 0em 0em 0em;
}
    .dateFilter{
         white-space: pre;
    }
}