/*
Theme Name: Custom Hausverwaltung
Theme URI: 
Author: Antigravity
Author URI: 
Description: A custom WordPress theme for WuD Hausverwaltung GmbH based on warm architectural minimalism.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: custom-hausverwaltung
*/

/* Custom CSS from design */
.text-balance { text-wrap: balance; }
.shadow-ambient { box-shadow: 0 20px 40px -10px rgba(28, 27, 27, 0.06); }
.hover-shadow-ambient:hover { box-shadow: 0 25px 50px -12px rgba(28, 27, 27, 0.08); }

.site-main {
    min-height: calc(100vh + 1px);
    min-height: calc(100svh + 1px);
    flex: 1 0 auto;
}

.site-footer {
    flex: 0 0 auto;
}

.service-selector__tabs {
    display: none;
}

.service-selector.is-enhanced {
    display: grid;
    grid-template-rows: auto auto auto;
}

.service-selector.is-enhanced .service-selector__tabs {
    display: contents;
}

.service-selector__group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.service-selector__group--top {
    grid-row: 1;
}

.service-selector__group--bottom {
    grid-row: 3;
}

.service-selector__tab {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    min-width: 0;
    min-height: 118px;
    padding: 24px;
    border: 1px solid #e5e2e1;
    border-radius: 20px;
    color: #1c1b1b;
    background: #ffffff;
    box-shadow: 0 16px 32px -12px rgba(28, 27, 27, 0.05);
    cursor: pointer;
}

.service-selector__tab .text-h3,
.service-selector__panel h3 {
    min-width: 0;
    overflow-wrap: anywhere;
    hyphens: manual;
}

.service-selector__tab:hover {
    border-color: #c4c7c7;
    box-shadow: 0 20px 40px -12px rgba(28, 27, 27, 0.09);
}

.service-selector__tab:focus-visible {
    outline: 3px solid #a8372a;
    outline-offset: 3px;
}

.service-selector__tab[aria-selected="true"] {
    border-color: #233120;
    color: #ffffff;
    background: #233120;
    box-shadow: 0 20px 42px -12px rgba(35, 49, 32, 0.24);
}

@media (min-width: 768px) {
    .service-selector__group {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .service-selector__group--top .service-selector__tab[aria-selected="true"] {
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

    .service-selector__group--bottom .service-selector__tab[aria-selected="true"] {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

    .service-selector__tab[aria-selected="true"] .service-selector__connector {
        position: absolute;
        left: -1px;
        display: block;
        width: calc(100% + 2px);
        height: 33px;
        background: #233120;
        pointer-events: none;
    }

    .service-selector__group--top .service-selector__tab[aria-selected="true"] .service-selector__connector {
        top: 100%;
    }

    .service-selector__group--bottom .service-selector__tab[aria-selected="true"] .service-selector__connector {
        bottom: 100%;
    }

    .service-selector__connector::before,
    .service-selector__connector::after {
        position: absolute;
        width: 20px;
        height: 20px;
        content: "";
        pointer-events: none;
    }

    .service-selector__group--top .service-selector__connector::before,
    .service-selector__group--top .service-selector__connector::after {
        bottom: 0;
    }

    .service-selector__group--top .service-selector__connector::before {
        left: -20px;
        border-bottom-right-radius: 20px;
        box-shadow: 10px 10px 0 10px #233120;
    }

    .service-selector__group--top .service-selector__connector::after {
        right: -20px;
        border-bottom-left-radius: 20px;
        box-shadow: -10px 10px 0 10px #233120;
    }

    .service-selector__group--bottom .service-selector__connector::before,
    .service-selector__group--bottom .service-selector__connector::after {
        top: 0;
    }

    .service-selector__group--bottom .service-selector__connector::before {
        left: -20px;
        border-top-right-radius: 20px;
        box-shadow: 10px -10px 0 10px #233120;
    }

    .service-selector__group--bottom .service-selector__connector::after {
        right: -20px;
        border-top-left-radius: 20px;
        box-shadow: -10px -10px 0 10px #233120;
    }

    .service-selector__tab[data-service-column="0"] .service-selector__connector::before,
    .service-selector__tab[data-service-column="2"] .service-selector__connector::after {
        display: none;
    }
}

.service-selector__connector {
    display: none;
}

.service-selector__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 9999px;
    color: #1c1b1b;
    background: #f1edec;
}

.service-selector__tab[aria-selected="true"] .service-selector__icon {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.service-selector__panels {
    display: grid;
    gap: 16px;
}

.service-selector.is-enhanced .service-selector__panels {
    display: block;
    grid-row: 2;
    margin: 32px 0;
}

.service-selector__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    min-height: 240px;
    padding: clamp(32px, 5vw, 64px);
    border-radius: 28px;
    color: #ffffff;
    background: #233120;
    box-shadow: 0 24px 50px -16px rgba(35, 49, 32, 0.24);
}

@media (min-width: 768px) {
    .service-selector[data-connection="top-left"] .service-selector__panel {
        border-top-left-radius: 0;
    }

    .service-selector[data-connection="top-right"] .service-selector__panel {
        border-top-right-radius: 0;
    }

    .service-selector[data-connection="bottom-left"] .service-selector__panel {
        border-bottom-left-radius: 0;
    }

    .service-selector[data-connection="bottom-right"] .service-selector__panel {
        border-bottom-right-radius: 0;
    }
}

.service-selector__panel p {
    max-width: 980px;
}

.service-selector.is-enhanced .service-selector__fallback-title {
    display: none;
}

.service-selector__panel[hidden] {
    display: none;
}

@media (min-width: 1024px) {
    .service-selector__panel {
        min-height: 300px;
    }
}

@media (max-width: 639px) {
    .service-selector__tab {
        grid-template-columns: auto minmax(0, 1fr);
        min-height: 108px;
        padding: 20px;
    }

    .service-selector__tab .text-h3 {
        font-size: 18px;
    }
}

body.property-gallery-open {
    overflow: hidden;
}

.property-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: clamp(16px, 3vw, 40px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.property-gallery-modal[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.property-gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 27, 27, 0.72);
    backdrop-filter: blur(14px);
}

.property-gallery-shell {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) 100px;
    width: min(1180px, 100%);
    height: min(820px, calc(100vh - 32px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    background: #fdf8f8;
    box-shadow: 0 28px 80px rgba(28, 27, 27, 0.32);
    transform: translateY(12px) scale(0.985);
    transition: transform 220ms ease;
}

.property-gallery-modal[aria-hidden="false"] .property-gallery-shell {
    transform: translateY(0) scale(1);
}

.property-gallery-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #e5e2e1;
    background: rgba(253, 248, 248, 0.94);
}

.property-gallery-eyebrow {
    margin: 0 0 6px;
    color: #747878;
    font-family: Manrope, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.property-gallery-title {
    margin: 0;
    color: #1c1b1b;
    font-family: "Noto Serif", serif;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.2;
}

.property-gallery-icon-button,
.property-gallery-nav,
.property-gallery-thumb {
    appearance: none;
    border: 0;
    cursor: pointer;
}

.property-gallery-icon-button,
.property-gallery-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1c1b1b;
    background: #f1edec;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.property-gallery-icon-button {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 9999px;
}

.property-gallery-icon-button:hover {
    color: #ffffff;
    background: #181919;
}

.property-gallery-nav:hover,
.property-gallery-nav:focus,
.property-gallery-nav:active {
    color: #1c1b1b;
    background: #f1edec;
}

.property-gallery-icon-button:focus-visible,
.property-gallery-nav:focus-visible,
.property-gallery-thumb:focus-visible {
    outline: 2px solid #a8372a;
    outline-offset: 3px;
}

.property-gallery-stage {
    position: relative;
    display: grid;
    min-height: 0;
    overflow: hidden;
    place-items: center;
    padding: 24px 84px 0;
    background: #1c1b1b;
}

.property-gallery-figure {
    position: relative;
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    place-items: center;
    border-radius: 12px;
}

.property-gallery-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    opacity: 0;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
    transition: opacity 180ms ease;
}

.property-gallery-image.is-loaded {
    opacity: 1;
}

.property-gallery-caption {
    position: absolute;
    right: 24px;
    bottom: 22px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
    color: #ffffff;
    background: rgba(28, 27, 27, 0.62);
    font-family: Manrope, sans-serif;
    font-size: 13px;
}

.property-gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 52px;
    height: 52px;
    border-radius: 9999px;
    transform: translateY(-50%);
}

.property-gallery-nav:hover {
    transform: translateY(-50%) scale(1.04);
}

.property-gallery-nav-prev {
    left: 22px;
}

.property-gallery-nav-next {
    right: 22px;
}

.property-gallery-nav .material-symbols-outlined {
    font-size: 32px;
}

.property-gallery-thumbs {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 100px;
    overflow-x: auto;
    padding: 24px 84px;
    border-top: 0;
    background: #1c1b1b;
    scrollbar-width: thin;
}

.property-gallery-thumb {
    width: 74px;
    height: 52px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #e5e2e1;
    opacity: 0.68;
    padding: 0;
    transition: border-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.property-gallery-thumb:hover,
.property-gallery-thumb.is-active {
    opacity: 1;
}

.property-gallery-thumb.is-active {
    border-color: #a8372a;
}

.property-gallery-thumb:hover {
    transform: translateY(-1px);
}

.property-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    .property-gallery-modal {
        padding: 0;
    }

    .property-gallery-shell {
        grid-template-rows: auto minmax(0, 1fr) 80px;
        width: 100%;
        height: 100%;
        border: 0;
        border-radius: 0;
    }

    .property-gallery-topbar {
        padding: 14px 16px;
    }

    .property-gallery-title {
        font-size: 20px;
    }

    .property-gallery-stage {
        padding: 16px 16px 0;
    }

    .property-gallery-nav {
        top: auto;
        bottom: 18px;
        width: 46px;
        height: 46px;
        transform: none;
        color: #1c1b1b;
        background: rgba(241, 237, 236, 0.92);
    }

    .property-gallery-nav:hover,
    .property-gallery-nav:focus,
    .property-gallery-nav:active {
        color: #1c1b1b;
        background: rgba(241, 237, 236, 0.92);
        transform: none;
    }

    .property-gallery-nav-prev {
        left: 16px;
    }

    .property-gallery-nav-next {
        right: 16px;
    }

    .property-gallery-caption {
        right: 50%;
        bottom: 24px;
        transform: translateX(50%);
    }

    .property-gallery-thumbs {
        min-height: 80px;
        padding: 16px 14px;
    }

    .property-gallery-thumb {
        width: 66px;
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .property-gallery-modal,
    .property-gallery-shell,
    .property-gallery-image,
    .property-gallery-icon-button,
    .property-gallery-nav,
    .property-gallery-thumb {
        transition: none;
    }

    .property-gallery-thumb:hover,
    .property-gallery-nav:hover,
    .property-gallery-modal[aria-hidden="false"] .property-gallery-shell {
        transform: none;
    }
}
