/* ============================================================
   Glassl Immobilien — Frontend
   Mobile-First. Klassisch, ruhig, vertrauensvoll.
   ============================================================ */

/* --- 1. CI-Variablen ------------------------------------- */
:root {
    --color-primary:     #b22838;
    --color-primary-dk:  #8c1f2c;
    --color-text:        #1a1a1a;
    --color-text-muted:  #5a5a5a;
    --color-bg:          #ffffff;
    --color-bg-soft:     #fafaf8;
    --color-border:      #e5e5e5;
    --color-border-dk:   #c8c8c8;

    --font-heading: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-body:    'Source Sans Pro', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

    --container-max: 1200px;
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  1.5rem;
    --space-lg:  2.5rem;
    --space-xl:  4rem;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, .08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, .10);

    --radius-sm: 2px;
    --radius-md: 4px;
}

/* --- 2. Reset + Basis ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: clamp(1rem, 0.5vw + 0.875rem, 1.0625rem);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
a:hover { color: var(--color-primary-dk); }

/* --- Form-Focus & Native Form-Farben (CI-konform) ----- */
input,
select,
textarea {
    accent-color: var(--color-primary);
}
input:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(178, 40, 56, 0.18);
}
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Browser-Autofill (Chrome/Edge/Safari) — Default-Hellblau ueberschreiben */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: var(--color-text);
    caret-color: var(--color-text);
    transition: background-color 5000s ease-in-out 0s;
}
input:-webkit-autofill:focus,
textarea:-webkit-autofill:focus,
select:-webkit-autofill:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1000px #fff inset, 0 0 0 3px rgba(178, 40, 56, 0.18);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 var(--space-sm);
    color: var(--color-text);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.875rem, 4vw + 1rem, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem,  3vw + 0.5rem, 2.25rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 2vw + 0.5rem, 1.625rem); font-weight: 600; }

p { margin: 0 0 var(--space-sm); }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-text);
    color: #fff;
    padding: var(--space-xs) var(--space-sm);
    z-index: 1000;
}
.skip-link:focus { top: 0; }

/* --- 3. Top-Nav (Kontakt + Rechtliches) ------------------ */
.site-topnav {
    background: #373a3e;
    color: #d8d8d8;
    font-size: 0.875rem;
    line-height: 1.5;
}
.site-topnav a {
    color: #fff;
    text-decoration: none;
}
.site-topnav a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}
.site-topnav__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.25rem 1rem;
    padding: 0.5rem var(--space-sm);
}
.site-topnav__contact,
.site-topnav__legal {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}
.site-topnav__contact { display: flex; }
.site-topnav__legal   { display: none; } /* Mobile: nur Kontakt — Footer-Links sind im Footer */
.site-topnav__contact li,
.site-topnav__legal li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.site-topnav__contact svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
    color: var(--color-primary);
}
.site-topnav__legal li span {
    color: #888;
}

/* --- 3. Header (Logo + Hauptnav) ------------------------- */
.site-header {
    background: #ededed;
    border-bottom: 1px solid #d8d8d8;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-sm);
    min-height: 80px;
}

.site-header__logo img {
    width: 280px;
    max-width: 80vw;
    height: auto;
}

/* --- 4. Navigation ---------------------------------------- */
.site-nav__toggle {
    background: transparent;
    border: 1px solid var(--color-border-dk);
    padding: 10px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}
.site-nav__toggle span {
    display: block;
    height: 2px;
    background: var(--color-text);
}

.site-nav {
    display: none;
    width: 100%;
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
}
.site-nav.is-open { display: block; }

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.site-nav__link {
    display: block;
    padding: 0.85rem 0;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--color-border);
    letter-spacing: 0.02em;
}
.site-nav__link:hover { color: var(--color-primary); }
.site-nav__link.is-active { color: var(--color-primary); }
.site-nav__link--disabled {
    color: var(--color-border-dk);
    cursor: default;
}

/* --- 5. Main + Sektionen --------------------------------- */
.site-main {
    padding: 0 0 var(--space-xl);
    background: var(--color-bg);
    min-height: 50vh;
}

.section { padding: var(--space-lg) 0; }
.section--soft { background: var(--color-bg-soft); }

.section__title {
    margin-bottom: var(--space-md);
}

.section__title::after {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    background: var(--color-primary);
    margin-top: var(--space-xs);
}

/* --- 6. Buttons ------------------------------------------ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    line-height: 1.4;
    min-height: 44px;
}
.btn--primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.btn--primary:hover {
    background: var(--color-primary-dk);
    border-color: var(--color-primary-dk);
    color: #fff;
}
.btn--ghost {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border-dk);
}
.btn--ghost:hover { border-color: var(--color-text); color: var(--color-text); }

/* --- 7. Status-Badges ------------------------------------ */
.status-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    font-size: 0.825rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    line-height: 1.4;
}
.status-aktiv      { background: #f0f7ee; color: #2c5e1c; }
.status-reserviert { background: #fff4e1; color: #8c5a00; }
.status-verkauft   { background: #f0f0f0; color: #555; }

/* --- 8. Filter-Bar (Liste) ------------------------------- */
.filter-bar {
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    padding: var(--space-sm);
    margin-bottom: var(--space-md);
}

.filter-bar__row {
    display: grid;
    gap: var(--space-sm);
    grid-template-columns: 1fr;
}

.filter-field label {
    display: block;
    font-size: 0.825rem;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.filter-field select,
.filter-field input,
.filter-field textarea {
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--color-border-dk);
    background: #fff;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    min-height: 44px;
    box-sizing: border-box;
}
.filter-field textarea {
    resize: vertical;
    line-height: 1.5;
}

.filter-bar__counter {
    margin-top: var(--space-sm);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* --- 9. Immobilien-Liste --------------------------------- */
.immo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.immo-card {
    background: #fff;
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}
.immo-card:hover {
    box-shadow: var(--shadow-md);
    color: inherit;
    text-decoration: none;
}

.immo-card__image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-bg-soft);
}
.immo-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.immo-card:hover .immo-card__image { transform: scale(1.03); }

.immo-card__status {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
}

.immo-card__body {
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.immo-card__location {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.immo-card__title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 var(--space-sm);
    color: var(--color-text);
}

.immo-card__facts {
    list-style: none;
    margin: 0 0 var(--space-sm);
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}
.immo-card__facts strong {
    display: block;
    color: var(--color-text);
    font-weight: 600;
}

.immo-card__price {
    margin-top: auto;
    font-size: 1.25rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--color-primary);
}

/* --- 10. Detail-Ansicht ---------------------------------- */
.immo-detail {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: 1fr;
}

.immo-detail__hero { }

.immo-detail__title-row { margin-bottom: var(--space-md); }

.immo-detail__location {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.immo-detail__title {
    margin: 0;
}

.immo-detail__price-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-top: var(--space-sm);
}

.immo-detail__price {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2.25rem);
    font-weight: 600;
    color: var(--color-primary);
}

/* --- 11. Galerie (Hauptbild + Thumb-Strip) -------------- */
.gallery {
    margin-bottom: var(--space-md);
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
}

.gallery__main {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--color-bg-soft);
    overflow: hidden;
    position: relative;
}

.gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, .85);
    color: var(--color-text);
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.15s;
    border-radius: 0;
    line-height: 1;
}
.gallery__nav:hover {
    background: var(--color-primary);
    color: #fff;
}
.gallery__nav:active { transform: translateY(-50%) scale(0.97); }
.gallery__nav--prev { left: 0; }
.gallery__nav--next { right: 0; }

.gallery__counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    padding: 0.15rem 0.6rem;
    border-radius: 2px;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.gallery__strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.gallery__thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
    background: var(--color-bg-soft);
    border: 2px solid transparent;
    padding: 0;
    transition: border-color 0.15s;
}
.gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery__thumb.is-active { border-color: var(--color-primary); }
.gallery__thumb:hover { border-color: var(--color-border-dk); }

/* --- 12. Detail-Eckdaten-Box ----------------------------- */
.facts-box {
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.facts-box__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-sm);
    grid-template-columns: 1fr;
}

.facts-box__item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--color-border);
}
.facts-box__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.facts-box__label {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    flex: 0 0 auto;
}
.facts-box__value {
    text-align: right;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
    min-width: 0;
}

/* --- 13. Beschreibungs-Sektionen ------------------------- */
.section-block {
    margin-bottom: var(--space-lg);
}
.section-block h3 {
    font-size: 1.375rem;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--color-border);
}
.section-block__text > p {
    margin: 0 0 var(--space-sm);
}
.section-block__text > p:last-child {
    margin-bottom: 0;
}

.highlights-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}
.highlights-list li {
    padding-left: 1.5rem;
    position: relative;
}
.highlights-list li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 600;
}

/* --- 13. Form-Layout (Multi-Column Forms) ---------------- */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}
.form-row .filter-field { margin-bottom: 0; }

/* --- 13a. Form-Checks (Pflicht-Checkboxen) --------------- */
.form-check {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.95rem;
    line-height: 1.5;
    cursor: pointer;
}
.form-check input[type="checkbox"] {
    margin-top: 0.3em;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}
.form-check span {
    flex: 1;
}
.form-check a {
    text-decoration: underline;
}

/* --- 13b. Info-Callout (Widerrufshinweis / Preisangaben) --- */
.info-callout {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-primary);
    font-size: 0.95rem;
    line-height: 1.6;
}
.info-callout h3 {
    margin-top: 0;
    font-size: 1.125rem;
}
.info-callout > p {
    margin: 0 0 var(--space-sm);
}
.info-callout > p:last-child {
    margin-bottom: 0;
}
.info-callout--small {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    background: transparent;
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-border-dk);
    padding: var(--space-sm) var(--space-md);
}

/* --- 14. Energieausweis-Block ---------------------------- */
.energy-box {
    border: 1px solid var(--color-border);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    background: #fff;
}
.energy-box h3 {
    margin-top: 0;
    font-size: 1.25rem;
}
.energy-box__grid {
    display: grid;
    gap: var(--space-sm);
    grid-template-columns: 1fr;
}
.energy-box__item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.25rem var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}
.energy-box__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.energy-box__label {
    color: var(--color-text-muted);
    flex: 0 0 auto;
}
.energy-box__value {
    font-weight: 600;
    text-align: right;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
}
.energy-class {
    display: inline-block;
    padding: 0.1rem 0.55rem;
    background: var(--color-text);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

/* --- 15. Footer ------------------------------------------ */
.site-footer {
    background: var(--color-text);
    color: #cfcfcf;
    padding: var(--space-lg) 0 var(--space-md);
    margin-top: var(--space-xl);
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.site-footer__inner {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: 1fr;
}

.site-footer__brand {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    color: #fff;
    margin-bottom: var(--space-xs);
}

.site-footer__address {
    font-style: normal;
    line-height: 1.6;
}

.site-footer__heading {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: var(--space-sm);
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.site-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.25rem;
}

.site-footer__link--disabled {
    color: #6a6a6a;
    cursor: default;
}

.site-footer__credit {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid #2a2a2a;
    color: #8a8a8a;
}

/* --- 15a. Hero (Home) ------------------------------------- */
.hero-home {
    position: relative;
    overflow: hidden;
    background: var(--color-text);
}
.hero-home__image-wrap {
    position: relative;
    width: 100%;
    height: clamp(420px, 65vw, 680px);
    overflow: hidden;
}
.hero-home__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-home__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}
.hero-home__box {
    position: relative;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--color-text);
    padding: var(--space-md) var(--space-sm);
    max-width: 320px;
    width: auto;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.5);
}
.hero-home__badge {
    position: absolute;
    top: -12px;
    right: -12px;
    width: clamp(70px, 11vw, 120px);
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}
.hero-home__title-block {
    background: var(--color-primary);
    color: #fff;
    padding: 0.65rem var(--space-md);
    display: inline-block;
    max-width: 100%;
    margin-bottom: var(--space-md);
}
.hero-home__title {
    color: #fff;
    margin: 0;
    font-size: clamp(1.25rem, 2.5vw + 0.5rem, 2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.hero-home__claim {
    margin: 0 auto var(--space-md);
}
.hero-home__claim h2 {
    margin: 0 0 var(--space-sm);
    font-size: clamp(1.375rem, 2.5vw + 0.5rem, 2rem);
    font-weight: 700;
    color: var(--color-text);
}
.hero-home__claim p {
    margin: 0;
    font-size: clamp(1rem, 0.6vw + 0.85rem, 1.0625rem);
    line-height: 1.6;
    color: var(--color-text);
}

.hero-home__actions {
    display: none;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-top: var(--space-md);
}

/* --- 15c1. Ueber-uns Grid (Text + Portrait) -------------- */
.ueber-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: start;
}
.ueber-grid__image figure {
    margin: 0;
    text-align: center;
}
.ueber-grid__image img {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    border: 1px solid var(--color-border);
}
.ueber-grid__image figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* --- 15c2. Verbaende-Grid (3 Logos) ---------------------- */
.verbaende-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}
.verband-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    align-items: center;
}
.verband-item__logo {
    text-align: center;
}
.verband-item__logo img {
    max-width: 160px;
    max-height: 100px;
    width: auto;
    height: auto;
    margin: 0 auto;
}
.verband-item__text h3 {
    margin: 0 0 var(--space-xs);
    font-size: 1.125rem;
}
.verband-item__text p {
    margin: 0;
    line-height: 1.6;
}

/* --- 15c. Welcome-Grid ----------------------------------- */
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
}
.welcome-grid__image img {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* --- 15d. Reviews ---------------------------------------- */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}
.review-card {
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.review-card__stars {
    color: #f0ad4e;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
}
.review-card__text {
    margin: 0;
    font-style: italic;
    line-height: 1.6;
    flex: 1;
}
.review-card__meta {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-sm);
    font-size: 0.95rem;
}
.rating-stars {
    color: #f0ad4e;
    letter-spacing: 0.05em;
    margin-right: 0.5rem;
}

/* --- 15e. FAQ Akkordeon ---------------------------------- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.faq-item {
    border-bottom: 1px solid var(--color-border);
}
.faq-item[open] {
    background: var(--color-bg);
}
.faq-item__question {
    cursor: pointer;
    padding: var(--space-sm) 0;
    font-weight: 600;
    font-size: 1.0625rem;
    list-style: none;
    position: relative;
    padding-right: 2.5rem;
}
.faq-item__question::-webkit-details-marker { display: none; }
.faq-item__question::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    text-align: center;
    line-height: 28px;
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.2s;
}
.faq-item[open] .faq-item__question::after {
    content: "−";
}
.faq-item__answer {
    padding: 0 0 var(--space-md);
    line-height: 1.7;
    color: var(--color-text);
}
.faq-item__answer > p {
    margin: 0 0 var(--space-sm);
}
.faq-item__answer > p:last-child {
    margin-bottom: 0;
}

/* --- 15b. Text-Blocks (Legal / Wir-uns) ------------------- */

/* --- 15b. Text-Blocks (Legal / Wir-uns) ------------------- */
.text-block {
    line-height: 1.7;
    max-width: 720px;
}
.text-block h2 {
    margin-top: var(--space-lg);
    font-size: clamp(1.375rem, 2vw + 0.5rem, 1.875rem);
}
.text-block h3 {
    margin-top: var(--space-md);
    font-size: 1.25rem;
}
.text-block h4 {
    margin-top: var(--space-md);
    font-size: 1.0625rem;
    font-family: var(--font-body);
    font-weight: 600;
}
.text-block p { margin-bottom: var(--space-sm); }
.text-block ul { padding-left: 1.25rem; margin-bottom: var(--space-sm); }
.text-block ul li { margin-bottom: 0.4rem; }

.text-muted { color: var(--color-text-muted); }

/* --- 16. Tablet (ab 768px) ------------------------------- */
@media (min-width: 768px) {
    .container { padding: 0 var(--space-md); }

    .site-header__inner { padding: var(--space-md); flex-wrap: nowrap; }
    .site-header__logo img { width: 280px; }

    .site-nav__toggle { display: none; }
    .site-nav { display: block; width: auto; border-top: none; margin-top: 0; padding-top: 0; }
    .site-nav__list { flex-direction: row; gap: var(--space-md); }
    .site-nav__link { border-bottom: none; padding: 0.5rem 0; }
    .site-nav__link.is-active { border-bottom: 2px solid var(--color-primary); }

    .filter-bar__row {
        grid-template-columns: repeat(3, 1fr);
        align-items: end;
    }

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

    .immo-detail {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        gap: var(--space-lg);
    }

    /* Form-Reihen mehrspaltig ab Tablet */
    .form-row.cols-2        { grid-template-columns: 1fr 1fr; }
    .form-row.cols-3        { grid-template-columns: repeat(3, 1fr); }
    .form-row.cols-strasse  { grid-template-columns: 2fr 1fr 2fr; }

    /* Galerie: zweispaltig (Hauptbild links, Strip rechts) ab Tablet */
    .gallery {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        align-items: stretch;
    }
    .gallery__strip {
        grid-template-columns: repeat(3, 1fr);
        max-height: 100%;
        overflow-y: auto;
        align-content: start;
    }

    .facts-box__list { grid-template-columns: 1fr; }

    .site-footer__inner { grid-template-columns: 2fr 1fr 1fr; }

    .welcome-grid { grid-template-columns: 1.4fr 1fr; }
    .ueber-grid { grid-template-columns: 1.4fr 1fr; }

    /* Hero ab Tablet: Box breiter, Buttons sichtbar */
    .hero-home__box {
        padding: var(--space-lg) var(--space-md);
        max-width: 720px;
        width: 100%;
    }
    .hero-home__actions { display: flex; }

    /* Top-Nav: Footer-Links erst ab Tablet sichtbar */
    .site-topnav__legal { display: flex; }

    .verband-item {
        grid-template-columns: 160px 1fr;
        gap: var(--space-md);
        align-items: center;
    }

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

/* --- 17. Desktop (ab 992px) ------------------------------ */
@media (min-width: 992px) {
    .immo-grid { grid-template-columns: repeat(3, 1fr); }
    .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
    .site-header__logo img { width: 320px; }
}

/* --- 17b. Back-to-Top --------------------------------------- */
.back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--color-primary);
    color: #fff;
    border-radius: 2px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s, background .15s;
    z-index: 100;
}
.back-to-top:not([hidden]) { display: flex; align-items: center; justify-content: center; }
.back-to-top.is-visible {
    opacity: 0.92;
    transform: translateY(0);
}
.back-to-top:hover {
    opacity: 1;
    background: var(--color-primary-dk);
}

/* --- 17c. Trust-Badge (25 Jahre) ---------------------------- */
.trust-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: clamp(80px, 14vw, 140px);
    height: auto;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}

/* --- 18. Reduced motion ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
