/* Playfair Display — self-hosted (kein Google-Server-Kontakt) */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/playfair-display-v40-latin-regular.woff2') format('woff2'),
         url('fonts/playfair-display-v40-latin-regular.woff') format('woff');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    src: url('fonts/playfair-display-v40-latin-italic.woff2') format('woff2'),
         url('fonts/playfair-display-v40-latin-italic.woff') format('woff');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    src: url('fonts/playfair-display-v40-latin-600.woff2') format('woff2'),
         url('fonts/playfair-display-v40-latin-600.woff') format('woff');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/playfair-display-v40-latin-700.woff2') format('woff2'),
         url('fonts/playfair-display-v40-latin-700.woff') format('woff');
}

:root {
    --primary: #1a2a3a;
    --accent: #c5a059;
    --white: #ffffff;
    --light-gray: #f4f4f4;
    --text: #333;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    color: var(--text);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Überschriften mit Playfair Display (self-hosted, kein externer Request) */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: var(--white);
    border-bottom: 2px solid var(--light-gray);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.4rem;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: bold;
}

.logo span {
    color: var(--accent);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-circle {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

nav a {
    margin-left: 25px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
}

/* Hero */
.hero {
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(rgba(26, 42, 58, 0.4), rgba(26, 42, 58, 0.4)),
        url('hero.webp');
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

/* Hero-CTA Button */
.hero-cta {
    margin-top: 25px;
    background: var(--primary);
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 14px 36px;
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.hero-cta:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Hero auf Unterseiten (kleiner) */
.hero-sub {
    height: 35vh;
    min-height: 280px;
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero-sub h1 {
    font-size: 2.4rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    margin: 0 8%;
}

/* Wohnungs-Sektion */
.container {
    padding: 60px 8%;
    max-width: 1200px;
    margin: auto;
}

h2 {
    text-align: center;
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 40px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.card-img {
    height: 250px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

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

.card-content {
    padding: 20px;
    text-align: center;
}

.card-content h3 {
    margin: 0 0 10px 0;
    color: var(--primary);
}

.card-content p {
    font-size: 0.9rem;
    color: #666;
}

/* Zurück-Link */
.back-link {
    display: inline-block;
    margin: 20px 8% 0;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--primary);
}

/* Umgebung-Sektion */
.umgebung {
    background: var(--light-gray);
    padding: 60px 8%;
}

.highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    list-style: none;
    padding: 0;
}

.highlight-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    flex: 1 1 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Modal (Legal) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: sticky;
    top: 10px;
    float: right;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary);
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    padding: 0 5px;
    border-radius: 5px;
}

.modal-content button {
    transition: all 0.3s ease;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: var(--primary);
    color: white;
    padding: 20px;
    border-radius: 8px;
    z-index: 2000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cookie-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.btn-acc {
    background: var(--accent);
    border: none;
    padding: 10px;
    cursor: pointer;
    flex: 1;
    font-weight: bold;
}

.btn-lea {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 10px;
    cursor: pointer;
    flex: 1;
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 40px 8%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.footer-info p {
    margin: 8px 0;
    font-size: 0.95rem;
}

.footer-links {
    text-align: right;
}

.footer-links a {
    color: var(--accent);
    text-decoration: none;
    display: inline-block;
    margin: 5px 0;
    margin-left: 20px;
}

/* Galerie auf Wohnungsseiten */
.gallery-section {
    padding: 60px 8%;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.gallery-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

/* Slider-Steuerung unter dem Bild */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 15px;
}

.slider-nav-btn {
    background: var(--primary);
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    line-height: 1;
}

.slider-nav-btn:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
}

.image-counter {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

/* Leistungen Liste */
.leistungen {
    background: var(--light-gray);
    padding: 60px 8%;
}

.leistungen ul {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
}

.leistungen li {
    padding: 10px 0;
    font-weight: 500;
    color: var(--primary);
}

.leistungen li::before {
    content: "✓ ";
    color: var(--accent);
    font-weight: bold;
}

/* Kontaktformular */
.contact-form-grid {
    max-width: 600px;
    margin: 0 auto;
    background: var(--light-gray);
    padding: 40px;
    border-radius: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.form-group select {
    background: white;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    width: 100%;
    background: var(--primary);
    color: var(--accent);
    border: none;
    padding: 15px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.submit-btn:hover {
    background: var(--accent);
    color: var(--primary);
}

/* Wohnungstext */
.wohnung-text {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.wohnung-text strong {
    color: var(--primary);
}

/* Responsive: Desktop ab 768px */
@media (min-width: 768px) {
    /* Name + E-Mail nebeneinander im Kontaktformular */
    .form-row-2col {
        grid-template-columns: 1fr 1fr;
    }

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

    .footer-links {
        text-align: right;
    }
}

/* Responsive: Tablet/Mobile bis 768px */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px 5%;
    }

    nav {
        margin-top: 15px;
    }

    nav a {
        margin-left: 15px;
        margin-right: 15px;
    }

    .hero {
        height: 50vh;
        min-height: 350px;
    }

    .hero-sub {
        height: 30vh;
        min-height: 220px;
    }

    .hero-sub h1 {
        font-size: 1.8rem;
    }

    .container {
        padding: 40px 5%;
    }

    h2 {
        font-size: 1.6rem;
    }

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

    .gallery-image {
        height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links a {
        margin: 5px 10px;
    }
}

/* Responsive: kleine Handys bis 480px */
@media (max-width: 480px) {
    .hero {
        min-height: 300px;
    }

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

    .hero p {
        font-size: 0.9rem;
        padding: 0 15px;
    }

    .hero-sub h1 {
        font-size: 1.3rem;
    }

    .hero-cta {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .container {
        padding: 30px 4%;
    }

    .card {
        margin: 0 -4%;
        border-radius: 0;
    }

    .gallery-image {
        height: 220px;
    }

    .slider-nav-btn {
        padding: 8px 16px;
        font-size: 1rem;
    }

    .contact-form-grid {
        padding: 25px;
        margin: 0 -4%;
        border-radius: 0;
    }

    .logo-container {
        gap: 10px;
    }

    .logo-circle {
        width: 60px;
        height: 60px;
    }

    .logo {
        font-size: 1.1rem;
    }
}