/* ============================================================
   UpSpace marketing — peer-to-peer storage in Austria (AT)
   Neighbor.com-inspired hero with overlaid search bar
   ============================================================ */

:root {
    --bg: #f7f4ee;
    --surface: #ffffff;
    --surface-soft: #fbf8f2;
    --surface-muted: #efe8db;
    --text: #14201c;
    --text-soft: #58655f;
    --text-faint: #8a958f;
    --line: rgba(20, 32, 28, 0.08);
    --line-strong: rgba(20, 32, 28, 0.14);
    --brand: #0f766e;
    --brand-deep: #094842;
    --brand-soft: #d6efea;
    --accent: #d66d3d;
    --accent-deep: #a85528;
    --accent-soft: #fbe2cf;
    --rose: #e0758a;
    --shadow-sm: 0 4px 14px rgba(20, 32, 28, 0.06);
    --shadow-md: 0 18px 40px rgba(20, 32, 28, 0.08);
    --shadow-lg: 0 32px 80px rgba(20, 32, 28, 0.12);
    --radius-xs: 10px;
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --container: min(1200px, calc(100vw - 32px));
    --container-wide: min(1320px, calc(100vw - 32px));
    --hero-accent-green: #3d8b60;
    --hero-cta-green: #2d6a4f;
    --promise-sage: #84a98c;
    --promise-badge-text: #2d6a4f;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    font: inherit;
    cursor: pointer;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-deep);
}

.eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-shell {
    position: relative;
    overflow: clip;
}

/* Header height is published as a CSS variable so child components
   (and the listings page sticky map) can offset against it. */
:root {
    /* Room for a slightly taller logo alongside nav actions. */
    --header-h: 84px;
}

/* Compact mode — used by the listings page so the map can claim more vertical
   real estate. The header still has the brand + a center "where" pill +
   the right-side CTAs, but it sheds the inline nav links. */
.site-shell.is-app {
    /* Compact listings header — still fits ~40px logo + search pill. */
    --header-h: 72px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--line);
}

.nav-row {
    display: flex;
    align-items: center;
    gap: 32px;
    min-height: var(--header-h);
}

/* Center pill slot — fills the space between brand and right-side actions. */
.header-search-slot {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
}

/* Airbnb-style compact pill with inline icon + submit button. */
.header-search {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: min(640px, 100%);
    height: 46px;
    padding: 0 6px 0 16px;
    background: white;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    transition: box-shadow 160ms ease, border-color 160ms ease;
}

.header-search:focus-within {
    border-color: var(--brand);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}

.header-search-icon {
    color: var(--text-soft);
    width: 16px;
    height: 16px;
    display: inline-flex;
    flex-shrink: 0;
}

.header-search-icon svg {
    width: 100%;
    height: 100%;
}

.header-search-input {
    border: 0;
    outline: 0;
    background: transparent;
    flex: 1;
    min-width: 0;
    height: 100%;
    font-family: var(--font-body, inherit);
    font-weight: 500;
    /* ≥16px avoids iOS Safari zoom-on-focus (applies to narrow + landscape widths) */
    font-size: max(16px, 0.95rem);
    line-height: 1;
    color: var(--text);
}

.header-search-input::placeholder {
    color: var(--text-soft);
    font-weight: 500;
}

.header-search-submit {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 0;
    background: var(--brand);
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 160ms ease, transform 160ms ease;
}

.header-search-submit:hover {
    background: var(--brand-deep);
    transform: scale(1.05);
}

.header-search-submit svg {
    width: 16px;
    height: 16px;
}

/*
 * Listings map header — cluster order: [ Ort ][ Was ][ Suche ] inside the outer pill.
 */
.header-search--split .header-search-cluster {
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.header-search--split .header-search-card--location {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1 1 auto;
    gap: 8px;
    min-width: 0;
}

.header-search--split .header-search-stack {
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    min-width: 0;
}

.header-search--split .header-search-icon {
    display: none;
}

/* Stacked Raumtyp line — mobile only (listings.css) */
.header-search--split .header-search-type-hint {
    display: none;
}

.header-search--split .header-search-card--type {
    flex: 0 0 auto;
}

.header-search--split .header-search-submit {
    flex: 0 0 auto;
}

@media (min-width: 821px) {
    .header-search--split .search-category-dropdown {
        left: auto;
        right: 0;
        width: 173px;
    }
}


.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    line-height: 0;
}

h1, h2, h3 {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.brand-logo {
    height: 44px;
    width: auto;
    display: block;
    user-select: none;
}

.site-header.is-compact .brand-logo {
    height: 40px;
}

.brand-logo-footer {
    height: 48px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    margin-left: auto;
}

.site-nav a {
    color: var(--text-soft);
    transition: color 160ms ease;
}

.site-nav a:hover {
    color: var(--text);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-link {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 11px 18px;
    border-radius: 999px;
    background: var(--text);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 180ms ease, background 180ms ease;
}

.nav-cta:hover {
    transform: translateY(-1px);
    background: var(--brand-deep);
}

.nav-cta-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line-strong);
    box-shadow: none;
}

.nav-cta-outline:hover {
    background: var(--surface-soft);
    border-color: var(--text-faint);
}

.nav-switch {
    font-weight: 600;
    color: var(--text);
}

.nav-switch:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Renter header: Reservations + switch + avatar (Airbnb-style) */
.nav-auth-cluster {
    display: flex;
    align-items: center;
    gap: 10px 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-user {
    position: relative;
    flex-shrink: 0;
}

.nav-user-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-user-trigger:hover {
    transform: scale(1.04);
}

.nav-user-trigger[aria-expanded='true'] {
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.35);
}

.nav-user-trigger--avatar {
    overflow: hidden;
    padding: 0;
}

.nav-user-avatar-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 200px;
    padding: 8px 0;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.1);
    box-shadow: 0 16px 48px rgba(17, 24, 39, 0.12);
    z-index: 80;
}

.nav-user-dropdown a,
.nav-user-dropdown button[type='submit'] {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    border: none;
    background: none;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: #111827;
    cursor: pointer;
    text-decoration: none;
}

.nav-user-dropdown a:hover,
.nav-user-dropdown button[type='submit']:hover {
    background: #f9fafb;
}

.nav-user-logout-form {
    margin: 0;
    padding: 0;
    border-top: 1px solid #f3f4f6;
}

.nav-drawer-logout {
    margin: 0;
    padding: 0;
    border: none;
}

.nav-drawer-logout button {
    display: block;
    width: 100%;
    padding: 14px 14px;
    text-align: left;
    border: none;
    border-radius: 10px;
    background: none;
    font: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
}

.nav-drawer-logout button:hover,
.nav-drawer-logout button:focus-visible {
    background: var(--surface-soft);
    color: var(--text);
}

.nav-drawer-logout button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--brand-soft);
}

/* ---------- Mobile hamburger + nav drawer --------------------- */
/* Hidden on desktop; revealed only when the viewport is narrow.
   Toggled via marketing.js — slides in from the right. */
.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: white;
    color: var(--text);
    margin-left: auto;
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color 140ms ease, background 140ms ease;
}

.nav-toggle:hover { border-color: var(--text); }

.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0;
    background: currentColor;
    border-radius: 2px;
    transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 90;
    opacity: 0;
    transition: opacity 220ms ease;
}

.nav-backdrop.is-visible { opacity: 1; }

.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 86vw);
    background: white;
    z-index: 91;
    /* Shadow only while open — when translateX(100%) the blur still painted a strip on-screen. */
    box-shadow: none;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 240ms cubic-bezier(.2, .8, .2, 1);
    overflow: hidden;
}

.nav-drawer.is-open {
    transform: translateX(0);
    box-shadow: -16px 0 40px rgba(15, 23, 42, 0.18);
}

.nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    flex: 0 0 auto;
}

.nav-drawer-title {
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--text-soft);
}

.nav-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.nav-drawer-close:hover {
    background: var(--surface-soft);
}

.nav-drawer-close svg {
    width: 18px;
    height: 18px;
}

.nav-drawer-links {
    display: flex;
    flex-direction: column;
    padding: 8px 8px;
    flex: 1 1 auto;
    overflow-y: auto;
}

.nav-drawer-links a {
    display: block;
    padding: 14px 14px;
    color: var(--text);
    font-weight: 500;
    font-size: 1rem;
    border-radius: 10px;
}

.nav-drawer-links a:hover,
.nav-drawer-links a:focus-visible {
    background: var(--surface-soft);
}

.nav-drawer-foot {
    padding: 14px 16px 20px;
    border-top: 1px solid var(--line);
    flex: 0 0 auto;
}

body.has-drawer-open,
body.has-filters-open {
    overflow: hidden;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    white-space: nowrap;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--brand-deep);
    color: white;
    box-shadow: 0 8px 20px rgba(9, 72, 66, 0.18);
}

.button-primary:hover {
    background: #073833;
    box-shadow: 0 10px 24px rgba(9, 72, 66, 0.24);
}

.button-secondary {
    background: white;
    border-color: var(--line-strong);
    color: var(--text);
}

.button-ghost {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--text);
}

.button-ghost:hover {
    background: white;
}

.button-full {
    width: 100%;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--brand-deep);
    transition: gap 180ms ease;
}

.link-arrow:hover {
    gap: 12px;
}

.link-arrow svg {
    width: 18px;
    height: 18px;
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-wrap {
    padding-top: 16px;
}

.flash {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    font-size: 0.95rem;
    background: var(--surface);
}

.flash-success {
    background: var(--brand-soft);
    border-color: rgba(15, 118, 110, 0.2);
    color: var(--brand-deep);
}

.flash-error {
    background: #fdecec;
    border-color: rgba(200, 50, 50, 0.18);
    color: #952626;
}

/* ============================================================
   HERO + PROMISES — light Nordic interior headline
   ============================================================ */
.hero-promises-wrap {
    position: relative;
}

.hero {
    position: relative;
    z-index: 14;
    min-height: min(78vh, 720px);
    display: flex;
    align-items: center;
    /* Let the search autocomplete extend below the hero; clip only the photo layer. */
    overflow: visible;
    padding: clamp(72px, 10vw, 112px) 0 clamp(72px, 9vw, 104px);
}

.hero--light {
    color: var(--text);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Design ref: tighter crop — plant trims at top/right, slightly more floor */
    object-position: 0% 58%;
    transform: scale(1.08);
    transform-origin: 0% 58%;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: min(880px, calc(100vw - 32px));
    text-align: center;
    margin-inline: auto;
}

.hero-title {
    margin: 0 0 12px;
    font-size: clamp(1.95rem, 4.85vw, 3.55rem);
    line-height: 1.06;
    font-weight: 700;
    letter-spacing: -0.03em;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.hero-title-line {
    display: block;
}

.hero-title-line--dark {
    color: #0f1714;
}

.hero-tagline {
    margin: 0 0 14px;
    font-size: clamp(1.28rem, 3.2vw, 2.2rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.028em;
    color: var(--hero-accent-green);
}

.hero-desc {
    margin: 0 auto 28px;
    max-width: min(700px, 100%);
    width: 100%;
    padding: 0 4px;
    font-size: clamp(0.94rem, 1.35vw, 1.05rem);
    line-height: 1.6;
    color: #24332d;
    font-weight: 500;
}

.hero-lead {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.5;
    margin: 0 0 36px;
    font-weight: 500;
}

/* ----- Search bar (single field, Neighbor-style) ----- */
.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border-radius: 999px;
    padding: 8px 12px 8px 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    max-width: 640px;
    margin: 0 auto;
    color: var(--text);
}

.search-pin {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--text-soft);
}

.search-pin svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.search-input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 16px 4px;
    font: inherit;
    font-size: 1rem;
    color: var(--text);
    min-width: 0;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-faint);
}

.search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent);
    color: white;
    border: 0;
    border-radius: 999px;
    padding: 0 28px;
    min-width: 128px;
    height: 52px;
    font-weight: 600;
    font-size: 0.98rem;
    box-shadow: 0 6px 16px rgba(168, 85, 40, 0.22);
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
    flex: 0 0 auto;
}

.search-submit:hover {
    transform: translateY(-1px);
    background: var(--accent-deep);
    box-shadow: 0 8px 20px rgba(168, 85, 40, 0.3);
}

.search-submit svg {
    width: 18px;
    height: 18px;
}

/* ----- Listing category picker (embedded in hero + header search) ----- */
.search-category-picker {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: stretch;
    gap: 2px;
    max-width: 100%;
}

.search-category-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    margin: 0;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    border-radius: 999px;
    padding: 8px 16px;
    background: rgba(248, 250, 249, 1);
    color: inherit;
}

.hero-search .search-category-trigger {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(20, 32, 28, 0.08);
    box-shadow: 0 1px 3px rgba(15, 32, 28, 0.05);
}

.search-category-trigger-emoji {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.search-category-icon-search,
.search-category-icon-category {
    flex-shrink: 0;
    display: block;
    color: var(--text-soft);
}

.search-category-picker--compact .search-category-icon-category {
    width: 17px;
    height: 17px;
}

.search-category-trigger-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.search-category-trigger-eyebrow {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-soft);
    line-height: 1.1;
}

.search-category-trigger-value {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 13rem;
}

.search-category-clear {
    flex: 0 0 auto;
    align-self: center;
    margin: 0;
    padding: 0;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: transparent;
    font-size: 1.35rem;
    font-weight: 300;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    transition: background 140ms ease, color 140ms ease;
}

.search-category-clear:hover {
    background: rgba(15, 32, 28, 0.06);
    color: var(--text);
}

.search-category-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    /* Stretch to picker width — a fixed min-width larger than the anchor would
       hang left past narrow pills (mobile header) and get clipped by the viewport. */
    left: 0;
    right: 0;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    min-width: 0;
    box-sizing: border-box;
    /* ~4 options visible, rest scroll (6 categories total). */
    max-height: 11.25rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 32, 28, 0.28) transparent;
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(20, 32, 28, 0.1);
    box-shadow: 0 18px 48px rgba(15, 32, 28, 0.12), 0 4px 12px rgba(15, 32, 28, 0.08);
    z-index: 10070;
}

.search-category-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-category-dropdown::-webkit-scrollbar-thumb {
    background: rgba(15, 32, 28, 0.22);
    border-radius: 999px;
}

.search-category-dropdown[hidden],
.search-category-dropdown:empty {
    display: none !important;
}

.search-category-option {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: 0;
    background: transparent;
    text-align: left;
    font: inherit;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: background 120ms ease;
}

.search-category-option:hover,
.search-category-option:focus-visible {
    background: rgba(45, 106, 79, 0.08);
    outline: none;
}

.search-category-option.is-active {
    background: rgba(45, 106, 79, 0.14);
}

.search-category-picker--compact .search-category-trigger {
    padding: 6px 10px;
    gap: 6px;
}

.search-category-picker--compact .search-category-trigger-value {
    max-width: 7.5rem;
    font-size: 0.85rem;
}

.search-category-picker--compact .search-category-trigger-eyebrow {
    font-size: 0.6rem;
}

.search-category-picker--text-only .search-category-trigger {
    gap: 0;
    padding-left: 12px;
    padding-right: 12px;
}

@media (min-width: 821px) {
    .hero-search .search-category-dropdown {
        left: auto;
        right: 0;
        width: 173px;
    }
}

.hero-inner .hero-search.search-bar {
    max-width: min(700px, 100%);
}

.hero--light .hero-search.search-bar,
.hero--light .search-bar {
    box-shadow: 0 20px 52px rgba(15, 60, 45, 0.1), 0 6px 20px rgba(15, 32, 28, 0.05);
    border: 1px solid rgba(20, 32, 28, 0.07);
}

.hero--light .search-submit {
    background: var(--hero-cta-green);
    box-shadow: 0 6px 18px rgba(45, 106, 79, 0.28);
}

.hero--light .search-submit:hover {
    background: #24523e;
    box-shadow: 0 10px 24px rgba(45, 106, 79, 0.36);
}

/* ----- Google Places Autocomplete (Maps JS widget; `.pac-container` on <body>) ----- */
.pac-container {
    z-index: 10060 !important;
    box-sizing: border-box !important;
    margin-top: 0 !important;
    padding: 6px 0 !important;
    max-height: min(44vh, 300px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, 0.32) transparent;
    background: var(--surface) !important;
    border: 1px solid rgba(20, 32, 28, 0.11) !important;
    border-radius: 18px !important;
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.16),
        0 8px 22px rgba(15, 32, 28, 0.08) !important;
    font-family: var(--font-body, 'Plus Jakarta Sans', system-ui, sans-serif) !important;
}

.pac-container::-webkit-scrollbar {
    width: 8px;
}

.pac-container::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.28);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.pac-item {
    border-top: none !important;
    padding: 10px 14px !important;
    cursor: pointer !important;
    line-height: 1.35 !important;
    color: var(--text, #1a1f24) !important;
}

.pac-item + .pac-item {
    border-top: 1px solid rgba(15, 32, 28, 0.07) !important;
}

.pac-icon,
.pac-icon-marker {
    display: none !important;
}

.pac-item-query {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
}

.pac-item-query .pac-matched {
    color: var(--brand-deep, #0f766e) !important;
    font-weight: 700 !important;
}

.pac-item-selected,
.pac-item:hover {
    background-color: var(--brand-soft, #d6efea) !important;
}

/** Google attribution / Powered by — only target descendant nodes (never the `.pac-container` root). */
.pac-container .pac-logo,
.pac-container .pac-logo::after {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.pac-container img.HdpiPacLogo,
.pac-container img[src*="google_white"],
.pac-container img[src*="google_gray"],
.pac-container img[src*="google"],
.pac-container img[alt*="Google"] {
    display: none !important;
}

/* Class names swap between Maps releases */
.pac-container .pac-google-logo-container,
.pac-container .gmp-place-autocomplete-attribution {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Separate footer row containing the wordmark (not a `.pac-item` suggestion row). */
.pac-container > div:last-child:not(.pac-item) {
    display: none !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
/* ============================================================
   Promises band + overlapping badge (match marketing mockup)
   ============================================================ */
.promises-section {
    position: relative;
    /* Below .hero stacking context so autocomplete can extend past the fold */
    z-index: 1;
    background: var(--promise-sage);
    margin-top: -32px;
    padding-block: clamp(42px, 5.75vw, 64px);
    padding-inline: 0;
    text-align: center;
}

.promises-badge {
    position: absolute;
    left: 50%;
    margin: 0;
    display: inline-block;
    border: none;
    background: var(--surface);
    color: var(--promise-badge-text);
    padding: 12px clamp(22px, 3.2vw, 34px);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: clamp(0.68rem, 0.9vw, 0.78rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.35;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 12px 32px rgba(20, 32, 28, 0.1), 0 2px 8px rgba(20, 32, 28, 0.05);
}

/* Lives inside .hero so it stays above imagery but autocomplete (z-index 120) still wins */
.hero.hero--light .promises-badge {
    top: auto;
    bottom: 0;
    transform: translate(-50%, 50%);
}

.promises-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 48px);
    /* Badge overlaps this band; extra top aligns vertical rhythm with section bottom padding */
    padding-top: clamp(14px, 2.75vw, 28px);
    text-align: center;
}

.promises-item {
    padding: 0 12px;
}

.promises-item h3 {
    margin: 0 0 8px;
    font-size: clamp(0.98rem, 1.35vw, 1.05rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #fff;
    line-height: 1.25;
}

.promises-item p {
    margin: 0;
    font-size: clamp(0.84rem, 1.1vw, 0.9rem);
    line-height: 1.58;
    color: rgba(255, 255, 255, 0.92);
}

.promises-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    color: rgba(255, 255, 255, 0.98);
}

.promises-icon svg,
.promises-icon img {
    max-width: 52px;
    max-height: 52px;
    width: auto;
    height: auto;
}

.promises-icon img {
    display: block;
    object-fit: contain;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.content-section {
    padding: 80px 0;
}

.split-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.85fr);
    gap: 28px 60px;
    align-items: end;
    margin-bottom: 44px;
}

.split-heading h2 {
    margin: 12px 0 0;
    font-size: clamp(1.9rem, 3vw, 2.85rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 600;
}

.split-heading p {
    color: var(--text-soft);
    font-size: 1.02rem;
    line-height: 1.65;
    margin: 0;
    padding-bottom: 8px;
}

.section-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    margin-bottom: 56px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 600;
    max-width: 22ch;
}

/* ============================================================
   TRUST CARDS
   ============================================================ */
.trust-section {
    position: relative;
    z-index: 0;
    background: var(--surface);
    padding: 64px 0;
    border-block: 1px solid var(--line);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

.trust-item {
    padding: 4px 32px;
    border-left: 1px solid var(--line);
}

.trust-item:first-child {
    padding-left: 0;
    border-left: 0;
}

.trust-item:last-child {
    padding-right: 0;
}

.trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-deep);
    margin-bottom: 22px;
}

.trust-icon svg {
    width: 26px;
    height: 26px;
}

.trust-item strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 8px;
}

.trust-item p {
    color: var(--text-soft);
    line-height: 1.55;
    margin: 0;
    font-size: 0.92rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pill-teal {
    background: var(--brand-soft);
    color: var(--brand-deep);
}

/* ============================================================
   HOW IT WORKS — steps + carousel
   ============================================================ */
.how-section {
    position: relative;
    z-index: 0;
    background: var(--surface-soft);
    padding: clamp(44px, 7vw, 76px) 0 clamp(48px, 8vw, 84px);
    border-block: 1px solid var(--line);
}

.how-heading-block {
    grid-area: head;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: clamp(10px, 1.65vw, 15px);
    max-width: min(52ch, 100%);
    align-self: start;
    padding-right: clamp(8px, 2vw, 24px);
}

.how-heading-title {
    margin: 0;
    font-size: clamp(1.45rem, 2.5vw, 2.08rem);
    line-height: 1.14;
    letter-spacing: 0.08em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand-deep);
}

/* Mieter ↔ Vermieter — one segmented pill (same green language as primary CTAs) */
.how-persona-switch {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.how-persona-buttons {
    display: inline-flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.72);
    box-shadow:
        inset 0 0 0 1px rgba(20, 32, 28, 0.1),
        0 2px 12px rgba(20, 32, 28, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.how-persona-btn {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: none;
    min-width: 6.75rem;
    min-height: 2.5625rem;
    padding: 0.52rem 1.15rem;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    line-height: 1.05;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.12s ease;
}

/* Unselected: muted label sitting in shared track */
.how-persona-btn:not(.is-selected) {
    background: transparent;
    color: var(--text-soft);
    box-shadow: none;
}

.how-persona-btn:not(.is-selected):hover {
    background: rgba(214, 239, 234, 0.55);
    color: var(--brand-deep);
}

.how-persona-btn:not(.is-selected):active {
    transform: scale(0.985);
}

.how-persona-btn:focus-visible {
    outline: 2px solid var(--brand-deep);
    outline-offset: 3px;
    z-index: 1;
}

.how-persona-btn.is-selected {
    position: relative;
    z-index: 0;
    background: var(--brand-deep);
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 1px 0 rgba(255, 255, 255, 0.08),
        0 6px 18px rgba(9, 72, 66, 0.32);
}

.how-persona-btn.is-selected:hover {
    background: #073833;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        0 6px 22px rgba(9, 72, 66, 0.36);
}

.how-persona-btn.is-selected:active {
    transform: translateY(1px) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .how-persona-btn {
        transition: none;
    }

    .how-persona-btn:not(.is-selected):active,
    .how-persona-btn.is-selected:active {
        transform: none;
    }
}

.how-flow-pane[hidden] {
    display: none !important;
}

/**
 * Carousel + step list behave as sibling grid tracks (numbered steps + copy).
 */
.how-flow-pane:not([hidden]) {
    display: contents;
}

.how-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, clamp(268px, 32vw, 400px));
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
        'head carousel'
        'steps carousel';
    column-gap: clamp(28px, 5vw, 56px);
    row-gap: clamp(14px, 2.2vw, 26px);
    align-items: start;
}

.how-steps-column {
    grid-area: steps;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(16px, 2.6vw, 26px);
    min-width: 0;
    width: 100%;
}

.how-steps-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: clamp(12px, 2vw, 18px);
    width: 100%;
}

.how-step {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: clamp(12px, 2vw, 16px);
    align-items: start;
    cursor: pointer;
}

.how-step-marker {
    display: grid;
    place-items: center;
    align-self: start;
    width: 38px;
    height: 38px;
    margin-top: 0;
    border-radius: 999px;
    background: rgba(88, 101, 95, 0.3);
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: 0;
    box-shadow:
        inset 0 0 0 1px rgba(20, 32, 28, 0.08),
        0 2px 8px rgba(20, 32, 28, 0.08);
    transition: transform 200ms ease, background 240ms ease, box-shadow 240ms ease, color 240ms ease;
}

.how-step-body h3 {
    margin: 0 0 5px;
    font-size: clamp(0.86rem, 1.85vw, 0.98rem);
    font-weight: 700;
    letter-spacing: 0.065em;
    text-transform: uppercase;
    transition: color 240ms ease;
}

.how-step-desc {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.5;
    font-size: 0.9rem;
    transition: color 240ms ease, opacity 240ms ease;
}

.how-step:not(.is-active) .how-step-body h3 {
    color: #6f7f78;
}

.how-step:not(.is-active) .how-step-desc {
    opacity: 0.88;
    color: rgba(88, 101, 95, 0.92);
}

.how-step.is-active .how-step-body h3 {
    color: var(--brand-deep);
}

.how-step.is-active .how-step-desc {
    opacity: 1;
    color: var(--text-soft);
}

.how-step.is-active .how-step-marker {
    background: var(--brand-deep);
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 0 0 3px rgba(255, 255, 255, 0.85),
        0 6px 16px rgba(9, 72, 66, 0.25);
}

.how-step:not(.is-active) .how-step-marker {
    color: rgba(255, 255, 255, 0.94);
}

.how-step:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 4px;
    border-radius: 8px;
}

.how-step:focus-visible .how-step-marker {
    outline: none;
}

.how-flow-cta {
    margin: 0;
    padding: 0;
    width: 100%;
}

.how-flow-cta-btn.how-flow-cta-btn {
    width: fit-content;
    max-width: 100%;
    text-transform: none;
    letter-spacing: 0.01em;
    font-weight: 600;
    padding-inline: clamp(22px, 5vw, 28px);
}

.how-flow-cta-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/**
 * Carousel + steps share the headline row (no zig-zag timeline — stacked list everywhere).
 */
.how-carousel-shell {
    grid-area: carousel;
    display: grid;
    gap: 10px;
    justify-items: stretch;
    align-self: start;
    width: 100%;
}

.how-carousel-viewport {
    position: relative;
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    aspect-ratio: 41 / 50;
    background: transparent;
}

.how-carousel-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.48s ease;
}

.how-carousel-slide.is-active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

.how-carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/**
 * Portrait screenshots: uncropped (`contain`). No matte / device styling — bare asset.
 */
.how-carousel-slide--contain {
    padding: 0;
    box-sizing: border-box;
}

.how-carousel-slide--contain img {
    object-fit: contain;
    object-position: center center;
    border-radius: 0;
    box-shadow: none;
}

.how-carousel-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.how-carousel-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    border: none;
    background: var(--line-strong);
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease;
}

.how-carousel-dot.is-active {
    background: var(--brand-deep);
    transform: scale(1.22);
}

.how-carousel-dot:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

@media (max-width: 960px) {
    .how-section {
        padding: clamp(28px, 6.5vw, 40px) 0 clamp(32px, 7.5vw, 48px);
    }

    .how-split {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            'carousel'
            'head'
            'steps';
        row-gap: clamp(10px, 3.6vw, 16px);
    }

    .how-heading-block {
        max-width: 100%;
        padding-right: 0;
        padding-inline: 2px;
        text-align: center;
        align-items: center;
        margin-inline: auto;
        gap: 8px;
    }

    .how-heading-title {
        max-width: 100%;
        padding-inline: 2px;
        font-size: clamp(1rem, 3.95vw + 0.72rem, 1.42rem);
        line-height: 1.22;
        letter-spacing: 0.055em;
        text-wrap: balance;
        overflow-wrap: break-word;
    }

    .how-persona-switch {
        justify-content: center;
        align-items: stretch;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 0;
        width: 100%;
        max-width: min(420px, 100%);
        margin-inline: auto;
    }

    .how-persona-buttons {
        justify-content: stretch;
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
        gap: 2px;
        padding: 2px;
    }

    .how-persona-btn {
        flex: 1 1 0;
        min-width: 0;
        min-height: 2.75rem;
        padding-inline: 0.4rem;
        padding-block: 0.52rem;
        font-size: 0.71rem;
        letter-spacing: 0.068em;
    }

    /** Stronger thumb read on bright outdoor screens */
    .how-persona-btn.is-selected {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.22),
            0 1px 0 rgba(255, 255, 255, 0.08),
            0 0 0 1px rgba(255, 255, 255, 0.35),
            0 6px 18px rgba(9, 72, 66, 0.32);
    }

    .how-carousel-shell {
        order: initial;
        width: min(320px, 100%);
        max-width: 100%;
        gap: 8px;
        margin-inline: auto;
    }

    .how-carousel-dots {
        gap: 8px;
    }

    .how-steps-column {
        align-items: center;
        max-width: min(34rem, 100%);
        margin-inline: auto;
        width: 100%;
        gap: clamp(12px, 3.8vw, 18px);
    }

    .how-steps-list {
        max-width: 100%;
        width: 100%;
        gap: clamp(11px, 2.8vw, 14px);
    }

    .how-flow-cta {
        display: flex;
        justify-content: center;
    }

    .how-flow-cta-btn.how-flow-cta-btn {
        width: min(22rem, 100%);
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .how-persona-btn {
        font-size: 0.665rem;
        letter-spacing: 0.058em;
        padding-inline: 0.34rem;
    }

    .how-heading-title {
        font-size: clamp(0.95rem, 3.85vw + 0.62rem, 1.35rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .how-step-marker,
    .how-carousel-dot,
    .how-step-body h3,
    .how-step-desc {
        transition: none;
    }

    .how-carousel-slide {
        transition: none;
    }
}

/* Host landing (/vermieten) hero + pillars */
.host-intro-hero {
    background: linear-gradient(165deg, #6b927c 0%, var(--promise-sage) 55%, #7a9987 100%);
    border-block: 1px solid rgba(20, 32, 28, 0.08);
}

.host-intro-hero-inner {
    /* Use full .container width so the headline can stay on one line on desktop */
    margin-inline: auto;
    text-align: center;
    padding: clamp(52px, 10vw, 92px) 0 clamp(52px, 9vw, 80px);
}

.host-intro-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(1.8rem, 4.25vw, 2.55rem);
    line-height: 1.06;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
}

.host-intro-lead {
    margin: 0 auto 28px;
    max-width: 38ch;
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.6;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.93);
}

.host-intro-cta.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 32px;
    border-radius: 999px;
    font-weight: 700;
    background: #fff !important;
    color: var(--accent) !important;
    border: none !important;
    box-shadow: 0 16px 40px rgba(20, 32, 28, 0.2);
}

.host-intro-cta.button:hover {
    background: #fffdf9 !important;
    color: var(--accent-deep) !important;
    transform: translateY(-1px);
}

.host-intro-features {
    padding: clamp(56px, 9vw, 84px) 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.host-intro-features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 40px);
    align-items: start;
}

.host-intro-feature {
    text-align: center;
}

.host-intro-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(214, 109, 61, 0.28);
}

.host-intro-feature-icon svg {
    width: 26px;
    height: 26px;
}

.host-intro-feature h2 {
    margin: 0 0 10px;
    font-size: clamp(0.68rem, 1.05vw, 0.78rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.38;
    text-transform: uppercase;
    color: var(--text);
}

.host-intro-feature p {
    margin: 0 auto;
    max-width: 28ch;
    font-size: 0.94rem;
    line-height: 1.58;
    color: var(--text-soft);
}

@media (max-width: 1000px) {
    .host-intro-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .host-intro-features-grid {
        grid-template-columns: 1fr;
        max-width: 22rem;
        margin-inline: auto;
    }
}

/* ============================================================
   HOST SECTION
   ============================================================ */
.host-section {
    background: var(--surface);
    border-block: 1px solid var(--line);
}

.host-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.host-media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-lg);
}

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

.host-floating {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: white;
    border-radius: var(--radius-md);
    padding: 18px 22px;
    box-shadow: var(--shadow-md);
    display: grid;
    gap: 4px;
    min-width: 220px;
}

.host-floating strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--brand-deep);
    letter-spacing: -0.02em;
}

.host-floating p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-soft);
}

.host-copy h1.host-page-title,
.host-copy h2 {
    margin: 14px 0 14px;
    font-size: clamp(2rem, 3vw, 2.85rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 600;
}

.host-copy > p {
    color: var(--text-soft);
    font-size: 1.02rem;
    line-height: 1.65;
    margin: 0 0 28px;
    max-width: 56ch;
}

.estimate-list {
    display: grid;
    gap: 0;
    margin-bottom: 28px;
    border-top: 1px solid var(--line);
}

.estimate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.estimate-row strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.estimate-row p {
    margin: 4px 0 0;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.estimate-price {
    text-align: right;
    flex: 0 0 auto;
}

.estimate-price strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--brand-deep);
}

.estimate-price small {
    display: block;
    font-size: 0.78rem;
    color: var(--text-faint);
    margin-top: 2px;
}

.host-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

@media (max-width: 640px) {
    .host-actions {
        gap: 8px;
    }

    .host-actions .button {
        padding: 10px 16px;
        font-size: 0.8125rem;
        line-height: 1.28;
        font-weight: 600;
        letter-spacing: -0.015em;
        white-space: nowrap;
    }
}
.faq-section {
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.faq-list {
    display: grid;
    gap: 12px;
    max-width: 840px;
    margin-inline: auto;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: white;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 180ms ease, border-color 180ms ease;
}

.faq-item[open] {
    border-color: rgba(15, 118, 110, 0.25);
    box-shadow: 0 18px 40px rgba(15, 118, 110, 0.08);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: -0.005em;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-toggle {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--brand-deep);
    transition: transform 220ms ease, background 220ms ease;
    flex: 0 0 32px;
}

.faq-toggle svg {
    width: 16px;
    height: 16px;
}

.faq-item[open] .faq-toggle {
    transform: rotate(180deg);
    background: var(--brand-soft);
}

.faq-item p {
    margin: 0;
    padding: 0 26px 22px;
    color: var(--text-soft);
    line-height: 1.65;
    font-size: 0.97rem;
}

/* ============================================================
   BLOG (used on standalone /blog page)
   ============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.blog-card {
    padding: 28px;
    border-radius: var(--radius-md);
    background: white;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.blog-card h3,
.blog-card h2 {
    margin: 6px 0 0;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.blog-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 56px 0 36px;
 }

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    gap: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--line);
}

.footer-brand-block {
    display: grid;
    gap: 14px; 
}

.footer-tag {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 36ch;
}

.footer-col {
    display: grid;
    gap: 8px;
    align-content: start;
}

.footer-col strong {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.005em;
}

.footer-col a {
    color: var(--text-soft);
    font-size: 0.92rem;
    transition: color 160ms ease;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 22px;
    color: var(--text-faint);
    font-size: 0.84rem;
    flex-wrap: wrap;
}

.footer-social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    color: var(--text-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.footer-social a:hover {
    color: var(--brand-deep);
    border-color: var(--brand);
    background: var(--brand-soft);
}

.footer-social svg {
    width: 16px;
    height: 16px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .trust-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 0;
        column-gap: 0;
    }

    .trust-item {
        padding: 4px 22px;
    }

    .trust-item:first-child {
        padding-left: 0;
        border-left: 0;
    }

    .trust-item:last-child {
        padding-right: 0;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .host-layout,
    .split-heading {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 28px;
    }

    .footer-brand-block {
        grid-column: 1 / -1;
    }

}

@media (max-width: 820px) {
    .site-header {
        position: sticky;
    }

    .nav-row {
        flex-wrap: wrap;
        gap: 10px 12px;
        min-height: auto;
        padding: 12px 0;
    }

    .brand-logo {
        height: 34px;
    }

    .site-header.is-compact .brand-logo {
        height: 32px;
    }

    .brand-logo-footer {
        height: 40px;
    }

    /* Stack the search pill below the brand row on mobile so it has full width. */
    .header-search-slot {
        order: 4;
        flex-basis: 100%;
        justify-content: stretch;
    }

    .header-search {
        width: 100%;
        height: 44px;
    }

    /* Hide desktop nav + actions; their content moves into the drawer. */
    .site-nav,
    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .hero {
        min-height: 520px;
        padding: 64px 0 76px;
    }

    .hero-title {
        font-size: clamp(1.68rem, 7.5vw, 2.65rem);
        gap: 2px;
    }

    .hero-tagline {
        font-size: clamp(1.08rem, 4.8vw, 1.65rem);
    }

    .hero-desc {
        margin-bottom: 24px;
        font-size: max(15px, 0.93rem);
    }

    /* Subtle veil on narrow widths — centred copy overlaps foliage on the right */
    .hero.hero--light .hero-media img {
        position: relative;
        z-index: 0;
        object-position: 0% 55%;
        transform: scale(1.045);
        transform-origin: 0% 55%;
    }

    .hero.hero--light .hero-media::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(
            to left,
            rgba(255, 255, 255, 0.82) 0%,
            rgba(255, 255, 255, 0.42) 42%,
            rgba(255, 255, 255, 0.12) 65%,
            transparent 82%
        );
    }

    .promises-section {
        margin-top: -26px;
        padding-block: 42px;
        padding-inline: 0;
    }

    .promises-grid {
        grid-template-columns: 1fr;
        row-gap: 40px;
        max-width: min(26rem, 100%);
        margin-inline: auto;
        padding-top: clamp(12px, 4vw, 22px);
    }

    .promises-badge {
        font-size: clamp(0.6rem, 2.5vw, 0.7rem);
        letter-spacing: 0.1em;
        white-space: normal;
        max-width: min(20rem, calc(100vw - 48px));
        text-align: center;
        line-height: 1.4;
        padding-block: 10px;
        padding-inline: 18px;
    }

    /* Hero search: Ort + Was + Suchen */
    .hero-search.search-bar {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 6px 8px 6px 16px;
    }

    .hero-search .search-input {
        flex: 1;
        min-width: 0;
        padding: 10px 4px;
    }

    .hero-search .search-category-picker {
        flex: 0 1 auto;
    }

    .hero-search .search-category-trigger-value {
        max-width: 5.5rem;
        font-size: 0.85rem;
    }

    .hero-search .search-category-trigger {
        padding: 6px 10px;
        gap: 8px;
    }

    .hero-search .search-category-dropdown {
        left: auto;
        right: 0;
        width: 12.5rem;
        min-width: 12.5rem;
    }

    .hero-search .search-submit {
        flex: 0 0 auto;
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 0;
        gap: 0;
        border-radius: 999px;
        justify-content: center;
    }

    .hero-search .search-submit span {
        display: none;
    }

    .search-bar {
        padding: 6px 12px 6px 16px;
    }

    .search-input {
        padding: 14px 4px;
        /* 16px minimum prevents iOS Safari auto-zoom on focus */
        font-size: 16px;
    }

    .search-submit {
        min-width: auto;
        padding: 0 18px;
        height: 46px;
        font-size: 0.92rem;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        row-gap: 32px;
        max-width: min(21rem, calc(100vw - 2.75rem));
        margin-inline: auto;
        width: 100%;
    }

    .trust-item,
    .trust-item:nth-child(odd),
    .trust-item:nth-child(even) {
        padding: 0;
        border-left: 0;
        text-align: center;
    }

    .trust-section .trust-icon {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 18px;
    }

    .trust-item p {
        margin-inline: auto;
        max-width: 100%;
    }

    .blog-card {
        padding: 22px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 28px;
        row-gap: 24px;
        align-items: start;
    }

    .footer-brand-block {
        grid-column: 1 / -1;
        justify-items: center;
        text-align: center;
    }

    .footer-brand {
        display: inline-flex;
    }

    .footer-tag {
        margin-inline: auto;
        max-width: min(40ch, 100%);
    }

    .footer-col {
        text-align: center;
        justify-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }

    .footer-bottom small {
        display: block;
    }

    .footer-social {
        justify-content: center;
    }

    .content-section {
        padding: 56px 0;
    }
}

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
