/* Immobilien CaRe – Hauptstylesheet (ergänzt Bootstrap 5) */

@font-face {
    font-family: "Heebo";
    src: url("../fonts/heebo-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --gold: #dac08d;
    --gold-dark: #b89a5e;
    --gold-text: #86672c; /* Gold für Text auf hellem Grund (WCAG AA: 5,3:1) */
    --brown: #6d5f45;
    --ink: #111;
    --body: #5b5f66;
    --soft: #f7f4ee;

    --bs-body-font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-color: var(--body);
    --bs-link-color-rgb: 109, 95, 69;
    --bs-link-hover-color-rgb: 134, 103, 44;
}

html { scroll-behavior: smooth; }
body { line-height: 1.7; }
section[id], header[id] { scroll-margin-top: 80px; }

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 { color: var(--ink); font-weight: 600; }
.focus-box h3 { color: var(--gold); }
.text-gold { color: var(--gold-text) !important; }

.eyebrow {
    color: var(--gold-text);
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 600;
    font-size: .85rem;
    margin-bottom: .5rem;
}
.hero .eyebrow, .reviews .eyebrow { color: var(--gold); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1.25rem; }
.section { padding: 6rem 0; position: relative; }
.section-soft { background: var(--soft); }
.section-intro { max-width: 820px; }

/* Buttons */
.btn-gold {
    --bs-btn-bg: var(--gold);
    --bs-btn-border-color: var(--gold);
    --bs-btn-color: #111;
    --bs-btn-hover-bg: var(--gold-dark);
    --bs-btn-hover-border-color: var(--gold-dark);
    --bs-btn-hover-color: #111;
    --bs-btn-active-bg: var(--gold-dark);
    --bs-btn-active-border-color: var(--gold-dark);
    --bs-btn-focus-shadow-rgb: 218, 192, 141;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.btn-outline-gold {
    --bs-btn-color: var(--brown);
    --bs-btn-border-color: var(--gold);
    --bs-btn-hover-bg: var(--gold);
    --bs-btn-hover-border-color: var(--gold);
    --bs-btn-hover-color: #111;
    --bs-btn-active-bg: var(--gold-dark);
    --bs-btn-focus-shadow-rgb: 218, 192, 141;
    font-weight: 600;
}

/* Navigation */
.site-nav {
    transition: background-color .3s, padding .3s, box-shadow .3s;
    padding: 1rem 0;
}
.site-nav .navbar-brand img { height: 56px; width: auto; transition: height .3s; }
.site-nav .nav-link {
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: .06em;
    font-size: .9rem;
    color: #fff;
}
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--gold); }
.site-nav.scrolled, .is-subpage .site-nav, .site-nav.menu-open {
    background: rgba(0, 0, 0, .92);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, .2);
    padding: .5rem 0;
}
.site-nav.scrolled .navbar-brand img, .is-subpage .site-nav .navbar-brand img { height: 44px; }

.nav-call { align-items: center; white-space: nowrap; text-transform: none; letter-spacing: 0; }

/* Anruf-Button (nur Smartphone/Tablet) */
.call-fab {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1030;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--gold);
    color: #111;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
    text-decoration: none;
}
.call-fab:hover, .call-fab:focus { color: #111; background: var(--gold-dark); }

/* Hero */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    background: #000 center / cover no-repeat;
    position: relative;
    padding: 8rem 0 6rem;
}
.hero-overlay, .reviews-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.75), rgba(0,0,0,.6));
}
/* Das Bürofoto ist sehr hell (weiße Wände) – daher stärker und leicht warm abdunkeln.
   Stärke über --hero-dim anpassen (0 = keine Abdunklung, 1 = schwarz). */
.hero { --hero-dim: .78; }
.hero .hero-overlay {
    background:
        radial-gradient(ellipse at center, rgba(12, 10, 6, calc(var(--hero-dim) + .06)) 0%, rgba(12, 10, 6, var(--hero-dim)) 70%),
        linear-gradient(180deg, rgba(12, 10, 6, .25) 0%, rgba(12, 10, 6, 0) 30%, rgba(12, 10, 6, .2) 100%);
}
.hero h1 { color: #fff; }
.hero-lead { max-width: 680px; color: rgba(255,255,255,.85); }
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 2rem;
    animation: bounce 2s infinite;
}
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* Über uns */
.check-list li { margin-bottom: .6rem; font-weight: 500; color: var(--ink); }
.check-list i { color: var(--gold-text); margin-right: .5rem; }

/* Leistungen: Ablauf */
.process { counter-reset: step; position: relative; }
.process-step { position: relative; }
.process-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #111;
    color: var(--gold);
    font-weight: 700;
    font-size: 1.3rem;
    display: grid;
    place-items: center;
    position: relative;
    z-index: 1;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 0 6px var(--soft);
}
.process-body h4 { font-size: 1.05rem; }
.process-body h4 i { color: var(--gold-text); }
@media (min-width: 992px) {
    /* Verbindungslinie zwischen den Schritten */
    .process-step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 26px;
        left: calc(52px + 1.5rem);
        right: 0;
        border-top: 2px dashed var(--gold);
    }
}
@media (max-width: 991.98px) {
    .process-step { display: flex; gap: 1.25rem; }
    .process-num { flex: none; margin-bottom: 0; }
    .process-step:not(:last-child)::after {
        content: "";
        position: absolute;
        left: calc(26px + .75rem);
        top: 58px;
        bottom: -1.5rem;
        border-left: 2px dashed var(--gold);
    }
}
.promise {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #fff;
    border-left: 4px solid var(--gold);
    border-radius: .75rem;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 6px 30px rgba(0, 0, 0, .05);
}
.promise > i { font-size: 2.25rem; color: var(--gold-text); }

.focus-box {
    background: #111;
    color: #fff;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
}
.focus-box h3 { color: var(--gold); }
.focus-item { color: rgba(255,255,255,.9); font-weight: 500; }
.focus-item i { color: var(--gold); margin-right: .35rem; }

/* Referenzen */
.gallery-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.gallery-filter .btn.active { background: var(--gold); border-color: var(--gold); color: #111; }

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: .5rem;
    aspect-ratio: 4 / 3;
    background: var(--soft);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.06); }
#lightbox .modal-content { position: relative; }
#lightboxImg { max-height: 85vh; }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: rgba(0,0,0,.5);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
}
.lightbox-nav:hover { background: var(--gold); color: #111; }
.lightbox-nav.prev { left: .5rem; }
.lightbox-nav.next { right: .5rem; }
.modal-backdrop.show { opacity: .9; }

/* Call to action */
.cta { background: #fff; padding: 2rem 0 5rem; }
/* Kurze goldene Linie als Trenner zu den Referenzen darüber */
.cta .container::before { content: ""; display: block; width: 64px; height: 2px; background: var(--gold); margin: 0 auto 2.5rem; }
.cta .lead { color: var(--ink); }

/* Kundenbewertungen */
.reviews { background: #000 center / cover no-repeat fixed; }
.google-badge {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .5rem .75rem;
    background: #fff;
    color: #111;
    border-radius: 999px;
    padding: .6rem 1.25rem;
    text-decoration: none;
    box-shadow: 0 6px 30px rgba(0, 0, 0, .25);
    transition: transform .2s;
}
.google-badge:hover { transform: translateY(-2px); color: #111; }
.google-badge .bi-google { font-size: 1.2rem; }
@media (max-width: 575.98px) { .google-badge { border-radius: 1rem; } }
.google-score { font-weight: 700; font-size: 1.2rem; }
.google-cta { font-size: .85rem; color: var(--gold-text); font-weight: 600; }

.review-slider { position: relative; }
.review-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1rem .25rem 1.5rem;
    scrollbar-width: none;
}
.review-track::-webkit-scrollbar { display: none; }
.review-track:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.review-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(218, 192, 141, .3);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.75rem;
    color: #fff;
    margin: 0;
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) { .review-card { flex-basis: calc((100% - 1.5rem) / 2); } }
@media (min-width: 992px) { .review-card { flex-basis: calc((100% - 3rem) / 3); } }
.review-text {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: .75rem;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.review-card.expanded .review-text { -webkit-line-clamp: unset; }
.review-more {
    align-self: flex-start;
    background: none;
    border: 0;
    padding: 0;
    color: var(--gold);
    font-size: .9rem;
    text-decoration: underline;
    margin-bottom: 1rem;
}
.review-card figcaption { margin-top: auto; padding-top: .5rem; }
.review-card figcaption strong { color: var(--gold); display: block; }
.review-card figcaption span { color: rgba(255,255,255,.7); font-size: .9rem; }
.review-source { color: rgba(255,255,255,.6); }
.review-controls { display: flex; justify-content: center; gap: .75rem; }
.review-note { max-width: 720px; margin: 1.5rem auto 0; text-align: center; font-size: .8rem; color: rgba(255,255,255,.65); }
.review-note a { color: rgba(255,255,255,.85); }
.review-nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
    font-size: 1.2rem;
    transition: background-color .2s, color .2s;
}
.review-nav:hover:not(:disabled) { background: var(--gold); color: #111; }
.review-nav:disabled { opacity: .35; }

.stars { color: #f5b301; }

/* Kontakt */
.map-consent {
    height: 100%;
    min-height: 400px;
    background: var(--soft);
    border-radius: 1rem;
    overflow: hidden;
    display: grid;
    place-items: center;
}
.map-consent iframe { width: 100%; height: 100%; min-height: 400px; border: 0; }
.contact-form .form-control:focus, .contact-form .form-check-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 .25rem rgba(218,192,141,.35);
}
.contact-form .form-check-input:checked { background-color: var(--gold-dark); border-color: var(--gold-dark); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Unterseiten */
.page-header {
    background: #000 url("../img/hero.jpg") center 60% / cover no-repeat;
    position: relative;
    padding: 10rem 0 4rem;
}
.page-header::before { content: ""; position: absolute; inset: 0; background: rgba(12, 10, 6, .8); }
.page-header .container { position: relative; }
.legal-content { max-width: 860px; overflow-wrap: anywhere; }
.legal-content h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.legal-content h3 { font-size: 1.25rem; margin-top: 2rem; }
.legal-content h4 { font-size: 1.1rem; margin-top: 1.75rem; }

/* Muster-Widerrufsformular */
.withdrawal-form { border: 1px solid #ccc; padding: 2rem; margin-top: 3rem; }
.withdrawal-form h2 { margin-top: 0; }
.withdrawal-form .form-field { margin: 1.5rem 0 0; }
.withdrawal-form .form-line { border-bottom: 1px solid #555; height: 2rem; }
.withdrawal-form .form-line-tall { height: 3.5rem; }

@media print {
    .site-nav, .site-footer, .call-fab, .page-header, .no-print { display: none !important; }
    .section { padding: 0 !important; }
    /* Nur das Formular drucken (Button "Formular drucken") */
    body.print-form .legal-content > :not(.withdrawal-form) { display: none !important; }
    body.print-form .withdrawal-form { border: 0; padding: 0; margin: 0; }
}

/* Footer */
.site-footer {
    background: linear-gradient(rgba(0,0,0,.85), rgba(0,0,0,.92)), url("../img/hero.jpg") center 60% / cover no-repeat;
    color: rgba(255,255,255,.85);
    padding: 4rem 0 2rem;
}
.site-footer h4 { color: var(--gold); }
.site-footer address { line-height: 1.8; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-rule { border-color: var(--gold); opacity: 1; margin: 2.5rem 0 1.5rem; }
.footer-links .list-inline-item:not(:last-child) { margin-right: 1.5rem; }
.footer-legal { font-size: .8rem; color: rgba(255,255,255,.6); }

@media (max-width: 991.98px) {
    .section { padding: 4rem 0; }
    .reviews { background-attachment: scroll; }
    .site-nav .navbar-collapse { padding: 1rem 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-scroll { animation: none; }
}
