/* Hero: zweispaltiges Layout auch ohne vollständige Tailwind-Utility-Klassen (Export / Vorschau) */
.objekt-hero-inner-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0;
}

@media (min-width: 1024px) {
    .objekt-hero-inner-grid {
        grid-template-columns: minmax(0, 1.65fr) minmax(15rem, 1fr);
    }
}

.floorplans-slider-wrapper .floorplans-slider {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.floorplans-slider-wrapper .floorplans-slider > div {
    display: flex;
    min-width: 0;
    gap: 0.75rem;
}

.floorplans-slider-wrapper .floorplans-slide {
    flex-shrink: 0;
}

/* Single floor plan: no carousel arrows, full-width slide */
.floorplans-slider-wrapper--single .floorplans-slider-prev,
.floorplans-slider-wrapper--single .floorplans-slider-next {
    display: none !important;
}

.floorplans-slider-wrapper--single .floorplans-slider {
    padding-left: 0;
    padding-right: 0;
}

/* Legacy white modal removed — floor plan lightbox uses objekt-gallery-lightbox.css */

button.floorplan-lightbox-open.floorplan-schematic {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0.5rem 0.75rem;
    cursor: zoom-in;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color 0.15s ease;
}

@media (min-width: 640px) {
    button.floorplan-lightbox-open.floorplan-schematic {
        padding: 0.75rem;
    }
}

button.floorplan-lightbox-open.floorplan-schematic:hover {
    background-color: #f0eef8;
}

button.floorplan-lightbox-open.floorplan-schematic:focus-visible {
    outline: 2px solid rgba(24, 25, 56, 0.45);
    outline-offset: -2px;
}

.floorplan-schematic--image .floorplan-schematic-img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Floor plan fullscreen uses .objekt-gallery-lightbox (see objekt-gallery-lightbox.css) */

/* Objekt-Galerie: Hauptbild + Thumbnails darunter (eine Spalte) */
.objekt-gallery-layout {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background-color: #e0d9ce;
}

/* Hauptbereich: horizontal wischen (mobil) */
.objekt-gallery-main--stage {
    touch-action: pan-x pinch-zoom;
}

/* Thumbnail-Leiste: Pfeile + Scrollbereich, keine sichtbare Scrollbar */
.objekt-gallery-layout .objekt-gallery-thumbs {
    padding: 0;
    margin: 0;
    background-color: #e0d9ce;
}

.objekt-gallery-thumbs-wrap {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 5rem;
}

.objekt-gallery-strip-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    margin: 0;
    padding: 0;
    border: none;
    cursor: pointer;
    color: #3d4a63;
    background: linear-gradient(to bottom, #ebe4dc 0%, #ddd4ca 100%);
    transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.objekt-gallery-strip-arrow:hover:not(:disabled) {
    background: linear-gradient(to bottom, #f5f2eb 0%, #e8dfd4 100%);
    color: #1e3a5f;
}

.objekt-gallery-strip-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.objekt-gallery-strip-arrow:focus-visible {
    outline: 2px solid #5c7ab0;
    outline-offset: 2px;
}

.objekt-gallery-thumbs-wrap:not(.objekt-gallery-thumbs-wrap--scrollable) .objekt-gallery-strip-arrow {
    display: none;
}

.objekt-gallery-thumbs-scroll {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
}

.objekt-gallery-thumbs-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.objekt-gallery-thumbs-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 2px;
    padding: 2px;
    min-height: 5rem;
}

.objekt-gallery-layout .objekt-gallery-thumb {
    position: relative;
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 4.75rem;
    aspect-ratio: 4 / 3;
    min-height: 3.5rem;
    padding: 0;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.18s ease;
}

@media (min-width: 640px) {
    .objekt-gallery-strip-arrow {
        width: 2.25rem;
    }

    .objekt-gallery-layout .objekt-gallery-thumb {
        width: 5.5rem;
    }
}

@media (min-width: 1024px) {
    .objekt-gallery-layout .objekt-gallery-thumb {
        width: 6.25rem;
    }
}

.objekt-gallery-thumb-img {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

/* Hover: leichte Einrahmung + Zoom — kein „ausgeblichenes“ Opacity */
.objekt-gallery-layout .objekt-gallery-thumb:hover[aria-pressed="false"] {
    box-shadow: inset 0 0 0 2px rgba(61, 74, 99, 0.35);
}

.objekt-gallery-layout .objekt-gallery-thumb:hover[aria-pressed="false"] .objekt-gallery-thumb-img {
    transform: scale(1.05);
}

/* Editorial hero: square gallery (see objekt-single-haus.html / body.objekt-expose) */
.objekt-expose-hero .objekt-gallery-main,
.objekt-expose-hero .objekt-gallery-layout .objekt-gallery-thumbs-wrap,
.objekt-expose-hero .objekt-gallery-layout .objekt-gallery-thumbs-scroll {
    border-radius: 0;
}

/* Abschnittstitel: Linie – Text – Linie (wie Referenz-Expose) */
.expose-section-rule {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.75rem;
}

.expose-section-rule::before,
.expose-section-rule::after {
    content: "";
    flex: 1 1 0;
    height: 1px;
    background-color: #d4cbc0;
}

.expose-section-rule__text {
    flex-shrink: 0;
    max-width: min(100%, 20rem);
    text-align: center;
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-size: 1.0625rem;
    font-style: italic;
    font-weight: 500;
    color: #4a433c;
    letter-spacing: 0.03em;
}

@media (min-width: 768px) {
    .expose-section-rule__text {
        font-size: 1.125rem;
    }
}

/* „Auf einen Blick“: Accordion + Kennworttabelle */
.expose-eckdaten-accordion {
    border-radius: 0;
    border: 1px solid #e5dfd3;
    background-color: #faf8f4;
    overflow: hidden;
}

.expose-eckdaten-accordion summary {
    display: flex;
    cursor: pointer;
    list-style: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem 0.9rem 1.1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #dac076;
    user-select: none;
}

.expose-eckdaten-accordion summary::-webkit-details-marker {
    display: none;
}

.expose-eckdaten-accordion summary::after {
    content: "";
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid #b8a88e;
    border-bottom: 2px solid #b8a88e;
    transform: rotate(45deg);
    margin-top: -0.2rem;
    transition: transform 0.2s ease;
}

.expose-eckdaten-accordion[open] summary::after {
    transform: rotate(225deg);
    margin-top: 0.1rem;
}

.expose-eckdaten-accordion__panel {
    border-top: 1px solid #e8e0d4;
    padding: 0.5rem 0.35rem 0.5rem;
    background-color: #fdfcfa;
}

/* .expose-eckdaten-table styles intentionally not defined here: Pinegrow's Tailwind utilities on the <table>/<tr>/<th>/<td> elements own the appearance. */

/* Objekt-Expose: horizontale Leisten ohne sichtbare Scrollbar */
.objekt-gallery-thumbs::-webkit-scrollbar,
.floorplans-slider::-webkit-scrollbar {
    display: none;
}

.objekt-gallery-thumbs,
.floorplans-slider {
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

/*
 * Lesbarkeit: deutlich dunklere Körperschrift als theme „gold_clasic-950“ (zu hell auf Creme).
 * Subpixel-Smoothing verbessert die Schärfe vieler macOS-Displays vs. rein „antialiased“.
 */
body.objekt-expose {
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
    text-rendering: optimizeLegibility;
}

body.objekt-expose main.expose-readable {
    font-size: 1.0625rem;
    line-height: 1.65;
    font-feature-settings: "kern" 1, "liga" 1;
}

/* Kleingedrucktes / Editorhinweise: Mindestgröße für WCAG-Lesbarkeit */
body.objekt-expose main.expose-readable .text-xs {
    font-size: 0.8125rem;
    line-height: 1.45;
}

body.objekt-expose main {
    font-variant-numeric: tabular-nums;
}

/*
 * Editorial (pfi_blue) — source: objekt-single-haus.html body.objekt-expose
 * Re-tones legacy beige tokens; square corners. Enqueued via inc/objekt-gallery.php on objekt singles.
 */
body.objekt-expose .objekt-expose-hero .objekt-gallery-main,
body.objekt-expose .objekt-expose-hero .objekt-gallery-layout .objekt-gallery-thumbs-wrap,
body.objekt-expose .expose-eckdaten-accordion {
    border-radius: 0;
    box-shadow: none;
}

body.objekt-expose .expose-section-rule::before,
body.objekt-expose .expose-section-rule::after {
    background-color: color-mix(in oklab, #282a5e 20%, transparent);
}

body.objekt-expose .expose-section-rule__text {
    color: #282a5e;
    font-style: normal;
}

body.objekt-expose .expose-eckdaten-accordion {
    border-color: color-mix(in oklab, #282a5e 15%, transparent);
    background-color: #fff;
}

body.objekt-expose .expose-eckdaten-accordion summary {
    color: #282a5e;
}

body.objekt-expose .expose-eckdaten-accordion summary::after {
    border-right-color: #282a5e;
    border-bottom-color: #282a5e;
}

body.objekt-expose .expose-eckdaten-accordion__panel {
    border-top-color: color-mix(in oklab, #282a5e 15%, transparent);
    background-color: #fff;
}

body.objekt-expose .expose-eckdaten-table tbody tr {
    border-bottom-color: color-mix(in oklab, #282a5e 12%, transparent);
}

body.objekt-expose .expose-eckdaten-table th {
    color: #282a5e;
}

body.objekt-expose .expose-eckdaten-table td {
    color: color-mix(in oklab, #282a5e 80%, transparent);
    font-family: Georgia, Cambria, "Times New Roman", serif;
}
