/* Grundlegende Stile */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, #005f73 0%, #0a9396 100%);
    color: white;
    padding: 2.5rem 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
}

h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.2rem;
    font-weight: 600;
}

.subtitle {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 300;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    background-color: white;
}

/* Sprachschalter */
.language-switcher {
    text-align: center;
    padding: 1rem;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95rem;
}

.language-switcher .active-lang {
    font-weight: 600;
    color: #005f73;
}

.language-switcher a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.language-switcher a:hover {
    color: #005f73;
}

/* Galerie */
.gallery {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #fff;
}

.main-image {
    max-width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.gallery-hint {
    margin-top: 1rem;
    color: #666;
    font-size: 0.95rem;
    font-style: italic;
}

/* Video Section */
.video-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.video-section h3 {
    color: #005f73;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.floor-plan-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 900px) {
    .floor-plan-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .floor-plan-container {
        grid-template-columns: 1fr;
    }
}

.video-wrapper {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-wrapper video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: #000;
}

.floor-plan-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.floor-plan-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.video-caption {
    text-align: center;
    margin-top: 0.75rem;
    margin-bottom: 0;
    color: #005f73;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Highlights Banner */
.highlights-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #e0f2f1 0%, #f1f8f6 100%);
    border-top: 3px solid #0a9396;
    border-bottom: 3px solid #0a9396;
}

.highlight-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.highlight-item div:last-child {
    font-size: 0.9rem;
    font-weight: 600;
    color: #005f73;
    line-height: 1.4;
}

.highlight-link {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.4rem 0.8rem;
    background-color: #005f73;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.highlight-link:hover {
    background-color: #0a9396;
    transform: translateY(-2px);
}

/* Exposé */
.expose {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 1rem;
}

.expose-text {
    flex: 2;
    min-width: 300px;
}

.expose-text h2 {
    color: #005f73;
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 3px solid #0a9396;
    padding-bottom: 0.5rem;
}

.expose-text h3 {
    color: #005f73;
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.intro-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 1.5rem;
}

/* Info-Boxen */
.info-box {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.important-info {
    background-color: #e8f4f8;
    border-left: 4px solid #0a9396;
}

.energy-info {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.info-box h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.info-grid div {
    padding: 0.5rem;
}

/* Feature-Listen */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Raumaufteilung */
.floor-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.floor {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.floor h4 {
    color: #005f73;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 2px solid #0a9396;
    padding-bottom: 0.5rem;
}

.floor ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.floor li {
    padding: 0.4rem 0;
    color: #555;
}

.key-data {
    flex: 1;
    min-width: 280px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 1rem;
    align-self: flex-start;
}

.key-data h3 {
    margin-top: 0;
    color: #005f73;
    border-bottom: 3px solid #0a9396;
    padding-bottom: 0.5rem;
    font-size: 1.3rem;
}

.key-data-section {
    margin-bottom: 1.5rem;
}

.key-data-section h4 {
    color: #005f73;
    font-size: 1rem;
    margin-bottom: 0.7rem;
    margin-top: 0;
}

.key-data ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-data li {
    margin-bottom: 0.6rem;
    padding: 0.3rem 0;
    font-size: 0.95rem;
}

.price-section {
    background-color: #e8f4f8;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #0a9396;
}

.price-section ul {
    margin-top: 0.5rem;
}

.total-rent {
    font-size: 1.1rem;
    color: #005f73;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 2px solid #0a9396;
}

.availability-section {
    text-align: center;
    background-color: #fff3cd;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #ffc107;
}

.availability-date {
    font-size: 1.2rem;
    font-weight: 600;
    color: #856404;
    margin: 0.5rem 0 0 0;
}

/* Call-to-Action Button */
.cta-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #005f73 0%, #0a9396 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    margin-top: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Kontaktformular */
.contact-section {
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-top: 2rem;
}

.contact-section h2 {
    text-align: center;
    color: #005f73;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-intro {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #005f73;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0a9396;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #005f73 0%, #0a9396 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.form-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    color: #005f73;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.contact-detail {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.contact-detail:last-of-type {
    border-bottom: none;
}

.contact-detail strong {
    display: block;
    color: #005f73;
    margin-bottom: 0.5rem;
}

.contact-detail a {
    color: #0a9396;
    text-decoration: none;
    word-break: break-word;
}

.contact-detail a:hover {
    text-decoration: underline;
}

.info-box-small {
    background-color: #e8f4f8;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.info-box-small p {
    margin-top: 0;
    font-weight: 600;
    color: #005f73;
}

.info-box-small ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
}

.info-box-small li {
    margin-bottom: 0.3rem;
    color: #555;
}

/* Download-Link */
.download-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.6rem 1.2rem;
    background-color: #005f73;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.download-link:hover {
    background-color: #0a9396;
    transform: translateY(-2px);
}

/* Modal für Bildergalerie */
.modal {
    display: none; /* Versteckt standardmäßig */
    position: fixed; /* Bleibt an Ort und Stelle */
    z-index: 1000; /* Über allem anderen */
    padding-top: 50px; /* Abstand von oben */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Scrollen ermöglichen, falls Bild zu groß */
    background-color: rgba(0,0,0,0.9); /* Schwarzer Hintergrund mit Transparenz */
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

/* Bildunterschrift im Modal */
.modal-caption {
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 30px; /* Feste Höhe, um Sprünge zu vermeiden */
}

.close-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Navigationspfeile */
.prev-button, .next-button {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next-button {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-button {
    left: 0;
}

.prev-button:hover, .next-button:hover {
    background-color: rgba(0,0,0,0.8);
}

footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 2rem 1rem;
    margin-top: 0;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.footer-section h4 {
    color: #0a9396;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.footer-section a {
    color: #0a9396;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-small {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .highlights-banner {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .floor-layout {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .key-data {
        position: static;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.4rem;
    }
    
    .highlights-banner {
        grid-template-columns: 1fr;
    }
    
    .expose {
        padding: 1rem;
    }
    
    .contact-section {
        padding: 2rem 1rem;
    }
}
