:root {
    --ink: #1e241d;
    --muted: #687064;
    --line: #d9dfd2;
    --brand: #3f6d35;
    --brand-dark: #253f22;
    --wine: #7a2738;
    --warm: #f5efe3;
    --soft: #edf3e7;
    --paper: #fffdf8;
}

body {
    color: var(--ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--paper);
}

a {
    color: var(--brand-dark);
}

.btn-primary {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
}

.btn-outline-primary {
    --bs-btn-color: var(--brand-dark);
    --bs-btn-border-color: rgba(63, 109, 53, .45);
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
}

.navbar {
    background: rgba(255, 253, 248, .94) !important;
    backdrop-filter: blur(14px);
}

.navbar-brand img {
    width: auto;
    height: 52px;
    display: block;
}

.hero {
    position: relative;
    padding: 6rem 0 4.5rem;
    background:
        linear-gradient(90deg, rgba(19, 34, 18, .82), rgba(37, 63, 34, .44), rgba(255, 253, 248, .86)),
        url("/assets/img/bg.jpg") center / cover;
    color: #fff;
    overflow: hidden;
}

.page-hero {
    padding: 4.5rem 0 3rem;
    background:
        linear-gradient(120deg, rgba(237, 243, 231, .96), rgba(245, 239, 227, .9)),
        url("/assets/img/bg.jpg") center / cover;
}

.hero h1,
.page-hero h1 {
    font-size: clamp(2.25rem, 4vw, 4.25rem);
    line-height: 1.05;
    font-weight: 750;
    letter-spacing: 0;
}

.hero .lead {
    color: rgba(255, 255, 255, .88);
}

.hero-secondary-btn {
    --bs-btn-color: var(--brand-dark);
    --bs-btn-bg: #fffdf8;
    --bs-btn-border-color: #fffdf8;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--wine);
    --bs-btn-hover-border-color: var(--wine);
    font-weight: 700;
}

.hero-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 8px solid rgba(255, 253, 248, .86);
    box-shadow: 0 24px 60px rgba(10, 20, 8, .28);
}

.lead {
    color: var(--muted);
    max-width: 62rem;
}

.eyebrow {
    color: var(--wine);
    font-weight: 750;
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .08em;
    margin-bottom: .75rem;
}

.hero .eyebrow {
    color: #f6dd9b;
}

.section {
    padding: 4rem 0;
}

.section-heading {
    max-width: 680px;
    margin-bottom: 2rem;
}

.muted-band {
    background:
        linear-gradient(90deg, rgba(245, 239, 227, .96), rgba(237, 243, 231, .96));
    border-top: 1px solid rgba(63, 109, 53, .16);
    border-bottom: 1px solid rgba(63, 109, 53, .16);
}

.feature-card {
    position: relative;
    border: 1px solid rgba(63, 109, 53, .18);
    border-radius: 8px;
    overflow: hidden;
    background: #fffdf8;
    box-shadow: 0 14px 36px rgba(30, 36, 29, .08);
    transition: transform .18s ease, box-shadow .18s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 46px rgba(30, 36, 29, .12);
}

.feature-card .btn {
    position: relative;
    z-index: 2;
}

.feature-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.feature-card h2,
.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: .75rem;
}

.feature-card p {
    color: var(--muted);
}

.card-facts {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.card-facts span {
    background: var(--soft);
    color: var(--brand-dark);
    border: 1px solid rgba(63, 109, 53, .16);
    border-radius: 999px;
    padding: .35rem .65rem;
    font-size: .9rem;
    font-weight: 700;
}

.home-copy {
    background: #fff;
}

.highlight-panel {
    display: grid;
    gap: 1rem;
    border-left: 4px solid var(--wine);
    padding-left: 1.5rem;
}

.highlight-panel strong {
    display: block;
    color: var(--brand-dark);
    font-size: 1.05rem;
    margin-bottom: .25rem;
}

.highlight-panel p {
    color: var(--muted);
    margin: 0;
}

.faq-section {
    background: #fff;
}

.faq-group {
    height: 100%;
    border: 1px solid rgba(63, 109, 53, .18);
    border-radius: 8px;
    padding: 1.5rem;
    background: var(--paper);
    box-shadow: 0 12px 32px rgba(30, 36, 29, .07);
}

.faq-group h3 {
    color: var(--brand-dark);
    font-size: 1.25rem;
    margin-bottom: .75rem;
}

.faq-accordion {
    display: grid;
    gap: .6rem;
}

.faq-accordion .accordion-item {
    border: 1px solid rgba(63, 109, 53, .16);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.faq-accordion .accordion-button {
    color: var(--ink);
    background: #fff;
    font-weight: 700;
    box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--brand-dark);
    background: var(--soft);
}

.faq-accordion .accordion-button:focus {
    border-color: rgba(122, 39, 56, .35);
    box-shadow: 0 0 0 .2rem rgba(122, 39, 56, .12);
}

.nearby-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.nearby-card {
    background: var(--paper);
    border: 1px solid rgba(63, 109, 53, .18);
    border-radius: 8px;
    padding: 1.35rem;
    box-shadow: 0 12px 32px rgba(30, 36, 29, .07);
}

.nearby-card h3 {
    color: var(--brand-dark);
    font-size: 1.15rem;
    margin-bottom: .8rem;
}

.nearby-card ul {
    display: grid;
    gap: .45rem;
    margin: 0;
    padding-left: 1.15rem;
}

.textpage-html h1,
.textpage-html h2,
.textpage-html h3,
.textpage-html h4,
.textpage-html h5 {
    margin-top: 2rem;
    margin-bottom: .85rem;
    color: var(--brand-dark);
}

.textpage-html h1:first-child,
.textpage-html h2:first-child,
.textpage-html h3:first-child {
    margin-top: 0;
}

.textpage-html p,
.textpage-html li {
    color: var(--ink);
}

.textpage-html ul,
.textpage-html ol {
    margin-bottom: 1.2rem;
}

.quick-facts {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-start;
}

.quick-facts span {
    border: 1px solid rgba(27, 111, 106, .25);
    background: #fff;
    border-radius: 999px;
    padding: .45rem .75rem;
    font-weight: 650;
    color: var(--brand-dark);
}

.details-section {
    background: #fff;
}

.info-panel,
.price-panel {
    border: 1px solid rgba(63, 109, 53, .18);
    border-radius: 8px;
    padding: 2rem;
    background: var(--paper);
    box-shadow: 0 12px 34px rgba(30, 36, 29, .07);
}

.info-panel h3,
.price-panel h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail-list li {
    position: relative;
    padding-left: 1.35rem;
}

.detail-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .65em;
    width: .48rem;
    height: .48rem;
    border-radius: 50%;
    background: var(--wine);
}

.price-panel {
    background: linear-gradient(160deg, var(--brand-dark), #365d2f);
    color: #fff;
}

.price-panel p {
    color: rgba(255, 255, 255, .86);
}

.contact-options {
    border: 1px solid rgba(63, 109, 53, .18);
    border-radius: 8px;
    padding: 1rem;
    background: var(--paper);
}

.contact-options legend {
    float: none;
    width: auto;
    margin-bottom: .75rem;
    font-weight: 700;
}

.contact-option,
.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    min-height: 3rem;
    padding: .75rem;
    border: 1px solid rgba(63, 109, 53, .16);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.contact-option .form-check-input,
.privacy-check .form-check-input {
    margin-top: .2rem;
    flex: 0 0 auto;
}

.price-amount {
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1;
    font-weight: 800;
    margin: 1rem 0;
}

.price-note,
.price-options {
    font-weight: 700;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}

.apartment-gallery-section {
    padding-top: 4.5rem;
}

.gallery-container {
    max-width: 1640px;
    padding-left: clamp(1rem, 3vw, 3rem);
    padding-right: clamp(1rem, 3vw, 3rem);
}

.gallery-showcase {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: clamp(145px, 12vw, 220px);
    grid-auto-flow: dense;
    gap: clamp(.75rem, 1.2vw, 1.15rem);
    align-items: stretch;
}

.gallery-intro-tile {
    grid-column: span 3;
    grid-row: span 2;
    padding: clamp(1.5rem, 2.6vw, 3rem);
    background: transparent;
    align-self: stretch;
}

.gallery-intro-tile h2 {
    font-size: clamp(2rem, 3vw, 3.25rem);
    line-height: 1.08;
    margin-bottom: 1.25rem;
}

.gallery-intro-tile p {
    color: var(--ink);
    font-size: clamp(1rem, 1.2vw, 1.18rem);
    line-height: 1.6;
    max-width: 54rem;
}

.gallery-tile {
    min-height: 0;
}

.gallery-tile--standard {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-tile--landscape {
    grid-column: span 2;
    grid-row: span 1;
}

.gallery-tile--wide {
    grid-column: span 2;
    grid-row: span 1;
}

.gallery-tile--tall {
    grid-column: span 1;
    grid-row: span 2;
}

.gallery-tile--featured {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-button {
    border: 0;
    padding: 0;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
}

.gallery-button:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-button img,
.gallery-item {
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
    display: block;
    transition: transform .2s ease;
}

.gallery-grid .gallery-button img,
.gallery-grid .gallery-item {
    aspect-ratio: 4 / 3;
}

.gallery-showcase .gallery-button img,
.gallery-showcase .gallery-item {
    min-height: 0;
    border-radius: 8px;
}

.gallery-button:hover img {
    transform: scale(1.03);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 15, 18, .88);
    display: grid;
    place-items: center;
    padding: 2rem;
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-width: min(1100px, 92vw);
    max-height: 78vh;
    object-fit: contain;
}

.lightbox p {
    color: #fff;
    margin-top: 1rem;
}

.lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1.25rem;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 3rem;
    line-height: 1;
}

.placeholder-visual {
    min-height: 240px;
    display: grid;
    place-items: center;
    background: repeating-linear-gradient(45deg, #f3f5f6, #f3f5f6 12px, #e7ecef 12px, #e7ecef 24px);
    color: var(--muted);
    font-weight: 750;
}

.placeholder-visual.large {
    min-height: 420px;
    border-radius: 8px;
}

.map-shell {
    height: min(70vh, 640px);
    min-height: 420px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #f5f7f8;
}

#drdsgvo_map {
    width: 100%;
    height: 100%;
}

.narrow {
    max-width: 820px;
}

.site-footer {
    background: #202b1e;
    border-top: 1px solid var(--line);
    color: #fff;
}

.site-footer .text-muted,
.site-footer a {
    color: rgba(255, 255, 255, .76) !important;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .hero,
    .page-hero {
        padding: 3rem 0 2rem;
    }

    .section {
        padding: 2.75rem 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 170px;
    }

    .gallery-intro-tile,
    .gallery-tile--standard,
    .gallery-tile--landscape,
    .gallery-tile--wide,
    .gallery-tile--tall,
    .gallery-tile--featured {
        grid-column: span 2;
        grid-row: auto;
    }

    .gallery-intro-tile {
        padding: 0 0 1rem;
    }

    .gallery-button:first-child {
        grid-column: span 2;
    }

    .detail-list {
        grid-template-columns: 1fr;
    }

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

    .navbar-brand img {
        height: 44px;
    }
}
