﻿/* Preise im einheitlichen Site-Font */
.card-text .price,
.table .fw-semibold,
.card-body .card-text:first-child {
    font-family: "Rubik", sans-serif;
}

.mb-3 > .invalid-feedback {
    min-height: 1.25rem;
}

/* Fixiert die Höhe des Wrappers auf Input-Höhe, damit top:50% stabil ist */
.field-wrap {
    min-height: calc(2.5rem + var(--bs-border-width,1px)*2);
}

/* Icon-Label zentriert im Input (nicht vom Feedback beeinflusst) */
.icon-label {
    position: absolute;
    left: .75rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    margin: 0;
    pointer-events: none;
}

/* Für Textarea: Icon oben ausrichten */
.icon-label-textarea {
    top: .9rem;
    transform: none;
}

.footer-hover a {
    color: inherit; /* oder deine normale Textfarbe */
    text-decoration: none; /* falls du kein Unterstreichen willst */
}

    .footer-hover a:hover {
        color: #fff !important; /* Weiß beim Hover */
    }

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #222;
    color: #fff;
    padding: 16px;
    box-shadow: 0 -4px 16px rgba(0,0,0,.2);
}

.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1 1 420px;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cookie-settings {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: #111;
    border-radius: 8px;
}

    .cookie-settings .form-check {
        margin-bottom: 6px;
    }

.cookie-banner a {
    color: #9bd;
}

.cookie-banner a {
    color: #00bfff; /* kräftiges Blau */
    text-decoration: underline; /* erkennbar, auch ohne Farbe */
}

    .cookie-banner a:hover {
        color: #fff; /* beim Hover hell */
    }

.card-img-top img {
    width: 100%;
    height: 200px; /* oder per Klasse variabel */
    object-fit: cover;
    aspect-ratio: 3/2;
}

/* Portrait-Bilder: unscharfer Cover-Hintergrund + scharfes Bild darüber */
.bg-img-portrait {
    position: relative;
    overflow: hidden;
}

/* Blur-Layer via ::before, erbt background-image vom Inline-Style */
.bg-img-portrait::before {
    content: '';
    position: absolute;
    inset: -30px;
    background: inherit;
    background-size: cover !important;
    background-position: center !important;
    filter: blur(30px);
    z-index: 0;
}

/* Scharfes Bild darüber: contain, volle Groesse */
.bg-img-portrait img {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    z-index: 1;
}

#calendarId .range.begin::before,
#calendarId .range.end::before,
#calendarId .item.begin::before,
#calendarId .item.end::before {
    content: none !important;
}

/* keine eigenen Hintergründe/Rundungen vom Plugin */
#calendarId .range,
#calendarId .item {
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    clip-path: none !important;
    box-shadow: none !important;
}

/* falls die Fork Background-Images auf day-content nutzt */
#calendarId .day .day-content {
    background-image: none !important;
}

/* sicherstellen, dass day-content die ganze Zelle füllt */
#calendarId .day,
#calendarId .day .day-content {
    position: relative;
}

    #calendarId .day .day-content {
        height: 100%;
        min-height: 100%;
        border-radius: 0 !important;
    }

    #calendarId .day .day-content {
        z-index: 2;
    }

#calendarId .range, #calendarId .item {
    z-index: 1 !important;
}

#calendarId .range,
#calendarId .item {
    display: none !important;
}

/* Zellen vorbereiten für unseren Overlay */
#calendarId .day,
#calendarId .day .day-content {
    position: relative;
}

    /* Unser Vollflächen-Overlay */
    #calendarId .day .day-content .ga-block {
        position: absolute;
        inset: 0;
        border-radius: 0 !important;
        clip-path: none !important;
        pointer-events: none;
        z-index: 1;
    }

    /* Tageszahl & Inhalt über dem Overlay zeigen */
    #calendarId .day .day-content > *:not(.ga-block) {
        position: relative;
        z-index: 2;
    }

.gm-style-iw {
    overflow: visible !important;
    max-height: none !important;
}

.gm-style-iw-d {
    overflow: visible !important;
    max-height: none !important;
}

#listing-detail-hero-1Map {
    min-height: 260px; /* oder was passt */
    height: 100%;
    /* optional statt height: aspect-ratio für responsive */
    aspect-ratio: 16 / 9;
}

.twic-blur {
    filter: blur(20px);
    transition: filter .3s ease;
}

    .twic-blur.is-loaded {
        filter: blur(0);
    }

.twic-bg {
    position: relative;
    overflow: hidden; /* damit das Overlay nicht „ausläuft“ */
    background-repeat: no-repeat;
    /* background-size/background-position setzen wir inline per style, aber hier nochmal als Fallback: */
    background-size: cover;
    background-position: center;
}

    .twic-bg::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: var(--twic-preview);
        background-size: inherit;
        background-position: inherit;
        background-repeat: no-repeat;
        filter: blur(20px);
        transform: scale(1.05); /* verhindert Rand-Artefakte beim Blur */
        transition: opacity .35s ease;
        opacity: 1;
        pointer-events: none;
    }

    .twic-bg.is-loaded::before {
        opacity: 0; /* Preview-Overlay ausblenden, wenn Hi-Res da ist */
    }

h1 {
    font-size: 2rem; /* oder px, em, was du nutzt */
}
/* Verhindert Umbrüche der Nav-Links */
.navbar .nav-link {
    white-space: nowrap;
}

/* Badge sauber oben rechts am Link „Meine Traumdomizile“ platzieren */
#bookmark-count {
    top: -0.25rem; /* leicht oberhalb */
    right: -0.5rem; /* leicht nach rechts raus */
}

/* Auf kleineren Screens darf die Liste wieder untereinander gehen (Bootstrap default).
   Ab lg erzwingen wir Zeile, Abstand, mittige Ausrichtung. */
@media (min-width: 992px) {
    .navbar-nav {
        flex-direction: row;
    }

        .navbar-nav .nav-item + .nav-item {
            margin-left: 1rem;
        }
    /* falls gap-* nicht greift */
}

/* Left column */
.left .section-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .2px;
    margin: 2px 0 14px 0;
}

.avatar {
    width: 154px;
    height: 154px;
    overflow: hidden;
    margin-bottom: 14px;
}

.hero {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 18px;
    margin: 6px 0 10px;
}

    .hero .intro {
        margin: 0;
    }


@media (max-width: 600px) {
    .hero {
        grid-template-columns: 1fr;
        align-items: start;
    }
}


.facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px 14px;
    margin: 8px 0 0;
}

    .facts dt {
        font-weight: 800;
    }

    .facts dd {
        margin: 0;
    }


.muted {
    color: var(--muted);
}


/* Right column */
.intro {
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 6px 0 0;
}


/* Optional: subtle page background framing like in the screenshot */
.frame {
    background: #fff;
    border-radius: 18px;
    padding: 12px;
}


@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b1020;
        --card: #0f172a;
        --text: #e5e7eb;
        --muted: #94a3b8;
        --ring: #1f2937;
        --shadow: 0 10px 30px rgba(0,0,0,.6);
    }

    .frame {
        background: #0b1020;
    }
}


/* --- Mobile only: Dropdown-Panel unter dem Header, weiß --- */
@media (max-width: 991.98px) {
    /* Basis-Layer: Header bleibt sichtbar, BG klickt nicht */
    header .header-bg {
        pointer-events: none;
        z-index: 0;
    }

    header .navbar .container-xl {
        position: relative;
    }
    /* Anker für Absolut-Panel */
    header .navbar-brand,
    header .navbar-end {
        position: relative;
        z-index: 2;
    }
    /* über BG */

    /* Das Collapse-Element selbst wird zum Positionierungs-Container */
    header .navbar-collapse {
        position: absolute;
        top: 100%; /* direkt unter dem Header */
        left: 0;
        right: 0;
        z-index: 3; /* über Header-BG, unter Button/Brand passt auch */
        padding: 0; /* Panel-Padding kommt auf die UL */
        background: transparent !important; /* Header nicht übermalen */
        box-shadow: none !important;
    }

        /* Weißes Panel nur für die Menü-Liste */
        header .navbar-collapse.show .navbar-nav {
            background: #fff !important;
            padding: 1rem;
            box-shadow: 0 8px 24px rgba(0,0,0,.12);
            border-radius: 0 0 12px 12px;
        }

        /* Lesbarkeit auf Weiß */
        header .navbar-collapse.show .nav-link {
            color: #000 !important;
        }

    /* Close-Button (rechts, schwarz) */
    header .btn-close-menu {
        filter: none !important;
        opacity: 1;
    }

        header .btn-close-menu .btn-close-icon,
        header .btn-close-menu .btn-close-icon::before,
        header .btn-close-menu .btn-close-icon::after {
            background-color: #000 !important;
        }
}
/* === Mobile (<992px): ausgeklapptes Menü weiß + lesbar === */
@media (max-width: 991.98px) {
    /* Nur das ausgeklappte Panel einfärben */
    header .collapse.navbar-collapse.show {
        display: block !important;
        background-color: #fff !important; /* <- weiß statt schwarz */
        position: relative;
        z-index: 1060;
        box-shadow: 0 8px 24px rgba(0,0,0,.12);
        padding: 0; /* Padding auf UL unten */
    }

        header .collapse.navbar-collapse.show .navbar-nav {
            background-color: #fff !important; /* falls Theme UL dunkel färbt */
            padding: 1rem;
            border-radius: 0 0 12px 12px;
        }

        header .collapse.navbar-collapse.show .nav-link {
            color: #000 !important; /* lesbar auf weiß */
        }

    /* Dinge, die Klicks fressen / dunkel „durchscheinen“ könnten */
    header .header-bg {
        pointer-events: none;
    }

    header .navbar {
        background: transparent !important;
    }
}
/* === Desktop (>=992px): wenn Header hell/weiß ist, Links schwarz === */
@media (min-width: 992px) {
    /* Falls dein Script/Theme auf Scroll die Klasse 'shadow' oder 'is-sticky' setzt */
    .header.shadow .nav-link,
    .header.is-sticky .nav-link,
    .header:hover .nav-link {
        color: #000 !important;
    }

    /* Optional: Logo-Varianten passend schalten, falls vorhanden */
    .header.shadow .navbar-brand-img-light,
    .header.is-sticky .navbar-brand-img-light,
    .header:hover .navbar-brand-img-light {
        display: none !important;
    }

    .header.shadow .navbar-brand-img-dark,
    .header.is-sticky .navbar-brand-img-dark,
    .header:hover .navbar-brand-img-dark {
        display: inline-block !important;
    }
}

/* Nur mobil: Close-Button korrekt darstellen */
@media (max-width: 991.98px) {
    /* 1) eigenes Span-X ausblenden, damit kein schwarzes Quadrat entsteht */
    header .btn-close-menu .btn-close-icon {
        display: none !important;
    }

    /* 2) Bootstrap-Button selbst zeigen: transparent, kein Block-Hintergrund */
    header .btn-close-menu {
        background-color: transparent !important; /* kein Kasten */
        box-shadow: none !important;
        border: 0;
        width: 1.5rem;
        height: 1.5rem;
        padding: .25rem;
        opacity: 1 !important; /* gut sichtbar */
        filter: none !important; /* keine Theme-Invertierung */
        color: #000 !important; /* BS ≥ 5.3 nutzt currentColor fürs X */
        /* Für BS 5.2/5.1: Farbe-Variante absichern */
        --bs-btn-close-color: #000;
        --bs-btn-close-opacity: 1;
        --bs-btn-close-hover-opacity: 1;
        --bs-btn-close-focus-shadow: none;
    }

    /* 3) Button rechtsbündig (falls Wrapper-Klasse fehlt) */
    header .navbar-end {
        margin-left: auto;
        display: flex;
        justify-content: end;
    }
}
@media (max-width: 991.98px) {
    /* Eigenes Span komplett aus – keine Linien/Blöcke mehr */
    header .btn-close-menu .btn-close-icon {
        display: none !important;
    }

    /* Button selbst: kein roter Punkt, kein Rahmen, schwarzes X */
    header .btn-close-menu {
        /* Reset: kein Hintergrundblock, kein Rand, kein Shadow */
        background-color: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        /* Größe/Hitbox */
        width: 32px;
        height: 32px;
        padding: 6px;
        /* Sichtbarkeit & keine Theme-Invertierung */
        opacity: 1 !important;
        filter: none !important;
        /* Farb-Variablen (falls dein Bootstrap sie nutzt) */
        --bs-btn-close-color: #000;
        --bs-btn-close-opacity: 1;
        --bs-btn-close-hover-opacity: 1;
        --bs-btn-close-focus-shadow: none;
        /* Hartes Override: eigenes schwarzes X als SVG-Hintergrund */
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 4 L12 12 M12 4 L4 12' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 16px 16px !important;
    }

    /* Rechtsbündig sicherstellen */
    header .navbar-end {
        margin-left: auto;
        display: flex;
        justify-content: flex-end;
        position: relative;
        z-index: 1061; /* über Backdrop */
    }
}
@media (max-width: 991.98px) {
    header .btn-close-menu {
        background-color: transparent !important;
    }

        header .btn-close-menu::after,
        header .btn-close-menu::before {
            display: none !important;
        }
}
@media (max-width: 991.98px) {
    /* Der Wrapper soll den Button ganz nach rechts schieben */
    header .navbar-end {
        margin-left: auto !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center;
        position: relative;
        z-index: 1061;
    }

    /* Button selbst etwas größer und ohne Offsets */
    header .btn-close-menu {
        margin: 0 !important;
        padding: 0 !important;
    }
}
@media (max-width: 991.98px) {
    /* Container als Flex anordnen: Brand links, Button rechts */
    header .navbar .container-xl {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Logo links fixieren */
    header .navbar-brand {
        margin-right: auto !important;
    }

    /* Button-Wrapper ganz rechts */
    header .navbar-end {
        margin-left: auto !important;
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        z-index: 1061;
    }

    /* Button selbst neutralisieren (keine zusätzlichen Margins) */
    header .btn-close-menu {
        margin: 0 !important;
    }
}
/* Mobil: Container als Flex, Brand links, Button hart nach rechts */
@media (max-width: 991.98px) {
    header .navbar .container-xl {
        display: flex;
        align-items: center;
        justify-content: space-between; /* trennt Brand (links) und navbar-end (rechts) */
        position: relative;
    }

    header .navbar-brand {
        margin-right: auto !important;
    }

    header .navbar-end {
        margin-left: auto !important;
        display: flex !important;
        align-items: center;
        justify-content: flex-end !important;
        z-index: 1061;
    }

    /* Button neutral (keine Offsets) */
    header .btn-close-menu {
        margin: 0 !important;
    }
}
/* === MOBIL: Burger (zu) / X (offen) — stabil === */
@media (max-width: 991.98px) {
    /* Wrapper sicher rechts */
    header .navbar .container-xl {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }

    header .navbar-brand {
        margin-right: auto !important;
    }

    header .navbar-end {
        margin-left: auto !important;
        display: flex !important;
        align-items: center;
        justify-content: flex-end !important;
        z-index: 1061;
    }

    /* Button reset – keine Theme-Artefakte */
    header .btn-close-menu {
        width: 36px;
        height: 36px;
        padding: 0;
        margin: 0 !important;
        background: transparent !important;
        background-image: none !important;
        border: 0 !important;
        box-shadow: none !important;
        outline: none !important;
        filter: none !important;
        position: relative;
        opacity: 1 !important;
    }

        /* WICHTIG: Icon-Träger immer sichtbar (frühere display:none killen) */
        header .btn-close-menu .btn-close-icon {
            display: block !important;
            position: relative;
            width: 24px;
            height: 2px;
            margin: 0 auto;
            background: #000;
            border-radius: 2px;
            transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease, opacity .2s ease;
        }

        /* ALLE alten Pseudo-Elemente der Themes neutralisieren */
        header .btn-close-menu::before,
        header .btn-close-menu::after,
        header .btn-close-menu *::before,
        header .btn-close-menu *::after {
            content: none !important;
            display: none !important;
            background: none !important;
            box-shadow: none !important;
            border: 0 !important;
        }

        /* ZU (collapsed): Hamburger mit 3 Linien */
        header .btn-close-menu.collapsed .btn-close-icon {
            box-shadow: 0 -7px 0 0 #000, /* oben */
            0 7px 0 0 #000; /* unten */
            transform: none;
            background: #000; /* mittlere Linie */
        }

        /* OFFEN (!collapsed): X */
        header .btn-close-menu:not(.collapsed) .btn-close-icon {
            background: transparent;
            box-shadow: none;
        }

            header .btn-close-menu:not(.collapsed) .btn-close-icon::before,
            header .btn-close-menu:not(.collapsed) .btn-close-icon::after {
                content: "";
                position: absolute;
                left: 50%;
                top: 50%;
                width: 24px;
                height: 2px;
                background: #000;
                border-radius: 2px;
                transform-origin: center;
            }

            header .btn-close-menu:not(.collapsed) .btn-close-icon::before {
                transform: translate(-50%, -50%) rotate(45deg);
            }

            header .btn-close-menu:not(.collapsed) .btn-close-icon::after {
                transform: translate(-50%, -50%) rotate(-45deg);
            }
}
