/* =====================================================================
   Mietova — öffentliche Vermieter-Webseite
   Ruhig, großzügig, hochwertig. Die Firmenfarbe kommt als --brand aus
   dem Seitenkopf; hier steht nur ein Rückfallwert.
   ===================================================================== */

:root {
    --brand: #0b2947;

    --ink:        #10161c;
    --ink-soft:   #55636f;
    --ink-faint:  #8a97a3;
    --line:       #e6e9ee;
    --line-soft:  #f0f2f5;
    --surface:    #ffffff;
    --bg:         #ffffff;
    --bg-alt:     #f7f8fa;

    --ok-bg: #e8f6ee;  --ok-ink: #12703f;
    --no-bg: #fdecea;  --no-ink: #9b241d;

    --r:    16px;
    --r-sm: 12px;
    --r-xs: 9px;

    --sh-sm: 0 1px 2px rgba(16,22,28,.05);
    --sh:    0 8px 30px -12px rgba(16,22,28,.18);
    --sh-lg: 0 30px 70px -30px rgba(16,22,28,.35);

    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --hd: 88px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hd) + 16px); }
html, body { max-width: 100%; overflow-x: hidden; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.12rem; letter-spacing: -.015em; }

.lead { font-size: 1.15rem; color: var(--ink-soft); }

.wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }

/* =====================================================================
   Buttons
   ===================================================================== */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 22px;
    font-size: .96rem; font-weight: 600;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: transform .12s, background .15s, border-color .15s, opacity .15s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { filter: brightness(1.12); }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; filter: none; }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink-faint); background: var(--line-soft); }

.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); background: var(--line-soft); }

.btn-glass {
    background: rgba(255,255,255,.16);
    color: #fff;
    border-color: rgba(255,255,255,.4);
    backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255,255,255,.26); }

.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* =====================================================================
   Header
   ===================================================================== */

.hd {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.82);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.hd.is-stuck { border-bottom-color: var(--line); box-shadow: var(--sh-sm); }

.hd-inner { display: flex; align-items: center; gap: 24px; height: var(--hd); }

.hd-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hd-logo { height: 52px; max-width: 200px; width: auto; object-fit: contain; }
/* Hat der Vermieter ein Logo, steht es allein da und darf groesser sein. */
.hd-brand.has-logo .hd-logo { height: 68px; max-width: 320px; }
.hd-mark {
    display: grid; place-items: center;
    width: 42px; height: 42px; flex: none;
    font-weight: 700; font-size: 1.1rem; color: #fff;
    background: var(--brand);
    border-radius: 11px;
}
.hd-words { display: flex; flex-direction: column; min-width: 0; }
.hd-words strong {
    font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hd-words em {
    font-style: normal; font-size: .78rem; color: var(--ink-faint);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.hd-nav { display: flex; gap: 2px; margin: 0 auto; }
.hd-nav a {
    padding: 9px 14px;
    font-size: .94rem; font-weight: 500; color: var(--ink-soft);
    border-radius: 999px;
}
.hd-nav a:hover { color: var(--ink); background: var(--line-soft); }
.hd-nav a.is-active { color: var(--brand); font-weight: 600; }

.hd-actions { display: flex; align-items: center; gap: 16px; }

.hd-phone { display: inline-flex; align-items: center; gap: 9px; }
.hd-phone svg { width: 19px; height: 19px; flex: none; color: var(--brand); }
.hd-phone-text { display: flex; flex-direction: column; line-height: 1.25; }
.hd-phone-text strong { font-size: .96rem; font-weight: 700; }
.hd-phone-text em { font-style: normal; font-size: .74rem; color: var(--ink-faint); }
.hd-phone:hover strong { color: var(--brand); }

.hd-cta { padding: 12px 20px; border-radius: 10px; }

.hd-burger {
    display: none;
    width: 44px; height: 44px;
    place-items: center;
    background: transparent; border: 1px solid var(--line); border-radius: 11px;
    cursor: pointer;
}
.hd-burger svg { width: 20px; height: 20px; }

/* Nur die Navigationslinks — nicht die Buttons in der Schublade, die
   sonst ihre Zentrierung verlieren wuerden. */
.hd-mobile { display: none; border-top: 1px solid var(--line); }
.hd-mobile-hours {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    margin: 14px 0 0;
    font-size: .84rem; color: var(--ink-faint);
}
.hd-mobile-hours svg { width: 16px; height: 16px; }
.hd-mobile-link.is-active { color: var(--brand); }

/* =====================================================================
   Hero
   ===================================================================== */

.hero {
    position: relative;
    display: flex; align-items: flex-end;
    min-height: min(64vh, 560px);
    padding: 64px 0 56px;
    color: #fff;
    overflow: hidden;
}
.hero-img {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transform: scale(1.03);
}
.hero-veil {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8,12,18,.30) 0%, rgba(8,12,18,.55) 55%, rgba(8,12,18,.82) 100%);
}
.hero-inner { position: relative; }
.hero h1 { max-width: 24ch; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero-sub {
    max-width: 52ch;
    margin: 18px 0 0;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: rgba(255,255,255,.88);
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

/* Vier Versprechen direkt unter der Ueberschrift */
.hero-usp {
    display: flex; flex-wrap: wrap; gap: 12px 30px;
    list-style: none; margin: 26px 0 0; padding: 0;
}
.hero-usp li { display: flex; align-items: center; gap: 9px; font-size: .92rem; font-weight: 500; }
.hero-usp svg { width: 20px; height: 20px; flex: none; color: #fff; opacity: .85; }
.hero-usp span { color: rgba(255,255,255,.92); }

/* =====================================================================
   Suchleiste — sitzt halb im Hero
   ===================================================================== */

.finder {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.4fr auto;
    align-items: end;
    gap: 18px;
    margin-top: -38px;
    padding: 18px 20px;
    background: var(--surface);
    border-radius: var(--r);
    box-shadow: var(--sh-lg);
}
.finder-sm { margin-top: 0; box-shadow: var(--sh); border: 1px solid var(--line); margin-bottom: 26px; }

.fi { display: flex; flex-direction: column; min-width: 0; }
.fi > label { margin-bottom: 7px; font-size: .84rem; font-weight: 600; color: var(--ink-soft); }

.fi input, .fi select {
    width: 100%; height: 50px;
    padding: 0 14px;
    font: inherit; font-size: .96rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xs);
}
.fi input:focus, .fi select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent);
}

.fi-input { position: relative; display: block; }
.fi-input svg {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; color: var(--ink-faint); pointer-events: none;
}
.fi-input input { padding-left: 40px; }

.fi-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.finder .btn { height: 50px; border-radius: var(--r-xs); }

/* =====================================================================
   Abschnitte
   ===================================================================== */

.sec { padding: 56px 0; }
.sec-tight { padding: 28px 0 56px; }
.sec-alt { background: var(--bg-alt); }
.sec-alt .step,
.sec-alt .k-box,
.sec-alt .cat-card { background: var(--surface); }

.sec-head { margin-bottom: 26px; }
.sec-head h2 { margin-bottom: 8px; }
.sec-head p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }

.sec-more { display: flex; justify-content: center; margin-top: 32px; }

.sec-head.center { text-align: center; }
.sec-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sec-link {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: .94rem; font-weight: 600; color: var(--brand);
}
.sec-link svg { width: 17px; height: 17px; transition: transform .16s; }
.sec-link:hover svg { transform: translateX(3px); }

.page-head { padding: 40px 0 4px; }
.page-head p { margin: 10px 0 0; color: var(--ink-soft); }

/* =====================================================================
   Kategorien
   ===================================================================== */

/* Kategorien: auto-fit statt auto-fill — die Kacheln dehnen sich ueber die
   volle Breite, statt rechts ein leeres Drittel stehen zu lassen. */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}
.cat-card {
    display: flex; align-items: center; gap: 12px;
    padding: 15px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    transition: border-color .16s, background .16s, transform .16s;
}
.cat-card:hover {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 4%, #fff);
    transform: translateY(-2px);
}
.cat-name { font-weight: 600; font-size: 1rem; letter-spacing: -.01em; }
.cat-count {
    display: grid; place-items: center;
    min-width: 26px; height: 26px;
    margin-left: auto; padding: 0 7px;
    font-size: .78rem; font-weight: 650;
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 10%, #fff);
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}
.cat-arrow { display: none; }

/* =====================================================================
   Mietobjekt-Karten
   ===================================================================== */

.prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}
/* Auf der Startseite stehen die fuenf Empfehlungen in einer Reihe. */
.prod-grid.five { grid-template-columns: repeat(5, 1fr); }
.prod {
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    overflow: hidden;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.prod:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: transparent; }

.prod-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--line-soft); overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.prod:hover .prod-img img { transform: scale(1.04); }

.prod-noimg { display: grid; place-items: center; height: 100%; color: var(--ink-faint); }
.prod-noimg svg { width: 32px; height: 32px; }

/* Die Fahne sagt nur, was aus echten Daten hervorgeht. */
.prod-flag {
    position: absolute; top: 10px; left: 10px;
    padding: 5px 11px;
    font-size: .74rem; font-weight: 650; color: #fff;
    border-radius: 6px;
}
.prod-flag.is-free { background: var(--brand); }
.prod-flag.is-new  { background: #d97706; }
.prod-flag.is-hot  { background: #1f6feb; }

.prod-body { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 16px; }
.prod-body h3 { font-size: 1rem; margin-bottom: 10px; }
.prod-body h3 a:hover { color: var(--brand); }

.prod-specs { list-style: none; margin: 0 0 14px; padding: 0; }
.prod-specs li {
    display: flex; align-items: flex-start; gap: 7px;
    font-size: .84rem; color: var(--ink-soft);
    padding: 2px 0;
}
.prod-specs svg { width: 13px; height: 13px; flex: none; margin-top: 4px; color: var(--ink-faint); }

.prod-desc {
    margin: 0 0 14px;
    font-size: .88rem; color: var(--ink-soft);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.prod-foot { margin-top: auto; }
.prod-price { display: flex; align-items: baseline; gap: 5px; margin-bottom: 12px; }
.prod-price strong { font-size: 1.25rem; letter-spacing: -.02em; }
.prod-price em { font-style: normal; font-size: .84rem; color: var(--ink-soft); }
.prod-foot .btn { border-radius: var(--r-xs); padding: 11px 16px; font-size: .9rem; }

/* Filter-Chips */
.chips { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 36px; }
.chip {
    padding: 9px 17px;
    font-size: .9rem; font-weight: 500;
    color: var(--ink-soft);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
}
.chip:hover { border-color: var(--ink-faint); color: var(--ink); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

/* =====================================================================
   Über uns, Vorteile, FAQ
   ===================================================================== */

/* Vorteile-Band: fuenf Punkte in einer ruhigen Flaeche */
.adv-band {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
    padding: 30px 26px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--r);
}
.adv { text-align: center; }
.adv-ic {
    display: grid; place-items: center;
    width: 42px; height: 42px;
    margin: 0 auto 10px;
    color: var(--brand);
}
.adv-ic svg { width: 30px; height: 30px; }
.adv h3 { font-size: 1rem; margin-bottom: 6px; }
.adv p { margin: 0; font-size: .86rem; color: var(--ink-soft); line-height: 1.5; }

/* So funktioniert's */
.steps {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none; margin: 0; padding: 0;
    counter-reset: schritt;
}
.step {
    position: relative;
    display: flex; align-items: flex-start; gap: 14px;
    padding: 18px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
}
/* Pfeil zwischen den Schritten */
.step:not(:last-child)::after {
    content: "";
    position: absolute; top: 50%; right: -14px;
    width: 8px; height: 8px;
    border-top: 2px solid var(--line);
    border-right: 2px solid var(--line);
    transform: translateY(-50%) rotate(45deg);
}
.step-no {
    display: grid; place-items: center;
    width: 26px; height: 26px; flex: none;
    font-size: .8rem; font-weight: 700; color: #fff;
    background: var(--brand);
    border-radius: 50%;
}
.step-ic { display: none; }
.step h3 { font-size: .98rem; margin-bottom: 5px; }
.step p { margin: 0; font-size: .85rem; color: var(--ink-soft); line-height: 1.5; }

/* Partner-Block: Bild, Text, Stichpunkte */
.partner {
    display: grid;
    grid-template-columns: 1fr 1.1fr .8fr;
    gap: 32px;
    align-items: center;
    padding: 26px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--r);
}
.partner-img { border-radius: var(--r-sm); overflow: hidden; }
.partner-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.partner-text h2 { font-size: 1.6rem; margin-bottom: 14px; }
.partner-text p { margin: 0 0 14px; font-size: .96rem; color: var(--ink-soft); }
.partner-text .btn { margin-top: 6px; }

.partner-list { list-style: none; margin: 0; padding: 0; }
.partner-list li {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 9px 0;
    font-size: .94rem;
}
.tick {
    display: grid; place-items: center;
    width: 22px; height: 22px; flex: none;
    color: #fff; background: var(--brand);
    border-radius: 50%;
}
.tick svg { width: 13px; height: 13px; stroke-width: 3; }

.faq-wrap { display: grid; grid-template-columns: .8fr 1.6fr; gap: 48px; align-items: start; }
.faq-intro h2 { margin-bottom: 12px; }
.faq-intro p { margin: 0 0 22px; color: var(--ink-soft); }

.faq details {
    border-bottom: 1px solid var(--line);
}
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 18px 0;
    font-size: 1.04rem; font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-ic svg { width: 20px; height: 20px; color: var(--ink-faint); transition: transform .2s; }
.faq details[open] .faq-ic svg { transform: rotate(180deg); }
.faq-a { padding: 0 0 20px; color: var(--ink-soft); max-width: 65ch; }

/* =====================================================================
   Kontakt, Öffnungszeiten, Karte
   ===================================================================== */

/* Kontakt, Zeiten und Karte stehen zusammen in einer Reihe — die Karte
   lief vorher randlos aus dem Layout und riss den Abschnitt auseinander. */
.kontakt { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kontakt.has-map { grid-template-columns: 1fr 1fr 1.5fr; }

.k-box {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
}
.k-box h3 { margin-bottom: 18px; font-size: 1.05rem; }
.k-box .btn { margin-top: 6px; }

.k-map {
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--line-soft);
    min-height: 280px;
}
.k-map iframe { width: 100%; height: 100%; min-height: 280px; border: 0; display: block; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-grid h2 { margin-bottom: 22px; }

.contact-list { list-style: none; margin: 0 0 28px; padding: 0; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; }
.contact-list svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--brand); }
.contact-list a:hover { color: var(--brand); text-decoration: underline; }

.hours { width: 100%; border-collapse: collapse; max-width: 380px; }
.hours th, .hours td { padding: 8px 0; text-align: left; font-weight: 500; border-bottom: 1px solid var(--line); }
.hours th { color: var(--ink-soft); font-weight: 500; }
.hours td { text-align: right; }
.hours .closed { color: var(--ink-faint); }
.hours .is-today th, .hours .is-today td { font-weight: 700; color: var(--ink); }

.map {
    margin-top: 56px;
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--line-soft);
}
.map iframe { width: 100%; height: 400px; border: 0; display: block; }

.contact-page { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: start; }
.contact-info h2 { margin-bottom: 20px; }
.contact-info h3 { margin: 32px 0 14px; }
.ci-logo { max-height: 64px; width: auto; object-fit: contain; margin-bottom: 24px; }

.contact-form {
    padding: 36px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--sh);
}
.contact-form h2 { margin-bottom: 24px; }

/* =====================================================================
   Formularfelder
   ===================================================================== */

.f { display: block; margin-bottom: 18px; }
.f > span { display: block; margin-bottom: 7px; font-size: .88rem; font-weight: 600; }
.f > span em { font-style: normal; font-weight: 400; color: var(--ink-faint); }

.f input, .f textarea, .f select {
    width: 100%;
    padding: 14px 16px;
    font: inherit; font-size: 1rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xs);
    transition: border-color .14s, box-shadow .14s;
}
.f textarea { resize: vertical; }
.f input:focus, .f textarea:focus, .f select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent);
}

.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* Honigtopf: für Menschen unsichtbar, für Bots verlockend */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cb { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 14px; font-size: .92rem; cursor: pointer; }
.cb input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--brand); }
.cb a { color: var(--brand); text-decoration: underline; }

.note { padding: 13px 16px; margin-bottom: 18px; border-radius: var(--r-xs); font-size: .92rem; }
.note-err { background: var(--no-bg); color: var(--no-ink); }

/* =====================================================================
   Detailseite
   ===================================================================== */

.crumbs {
    display: flex; align-items: center; gap: 8px;
    padding-top: 28px;
    font-size: .86rem; color: var(--ink-faint);
}
.crumbs a:hover { color: var(--brand); }

.detail {
    display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(360px, .95fr);
    gap: 56px;
    padding: 28px 24px 110px;
    align-items: start;
}

.gallery { margin-bottom: 40px; }
.gal-main {
    aspect-ratio: 16 / 11;
    border-radius: var(--r);
    overflow: hidden;
    background: var(--line-soft);
    border: 1px solid var(--line);
}
.gal-main img { width: 100%; height: 100%; object-fit: cover; }

.gal-empty {
    display: grid; place-items: center;
    aspect-ratio: 16 / 11;
    color: var(--ink-faint);
    background: var(--bg-alt);
    border-radius: var(--r);
}

.gal-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.gal-thumb {
    width: 92px; height: 70px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--r-xs);
    overflow: hidden;
    background: var(--line-soft);
    cursor: pointer;
    opacity: .6;
    transition: opacity .14s, border-color .14s;
}
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumb:hover { opacity: 1; }
.gal-thumb.is-active { opacity: 1; border-color: var(--brand); }

.detail-head { margin-bottom: 40px; }
.tagline {
    display: inline-block;
    margin-bottom: 12px;
    font-size: .82rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
    color: var(--brand);
}
.detail-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.detail-head .lead { margin: 16px 0 0; }

/* Preisübersicht */
.pricebox {
    padding: 30px;
    margin-bottom: 40px;
    background: var(--bg-alt);
    border-radius: var(--r);
}
.pricebox h2 { font-size: 1.25rem; margin-bottom: 20px; }
.pricerow { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; }
.pricecell { display: flex; flex-direction: column; gap: 2px; }
.pricecell .pl { font-size: .85rem; color: var(--ink-soft); }
.pricecell strong { font-size: 1.35rem; letter-spacing: -.02em; }

.deposit {
    display: flex; align-items: center; gap: 10px;
    margin: 24px 0 0; padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: .92rem; color: var(--ink-soft);
}
.deposit svg { width: 20px; height: 20px; flex: none; color: var(--brand); }
.deposit strong { color: var(--ink); }
.price-note { margin: 8px 0 0; font-size: .82rem; color: var(--ink-faint); }

/* Eigenschaften */
.specs { margin-bottom: 40px; }
.specs h2 { font-size: 1.25rem; margin-bottom: 18px; }
.specs dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin: 0; }
.specs dl > div {
    display: flex; justify-content: space-between; gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}
.specs dt { color: var(--ink-soft); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }

.prose h2 { font-size: 1.25rem; margin-bottom: 16px; }
.prose p { margin: 0 0 16px; color: var(--ink-soft); max-width: 68ch; }

/* =====================================================================
   Anfrage-Assistent
   ===================================================================== */

.detail-side { position: sticky; top: calc(var(--hd) + 24px); }

.wiz {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--sh-lg);
    overflow: hidden;
}
.wiz-head { padding: 24px 26px 18px; }
.wiz-head strong { display: block; font-size: 1.2rem; letter-spacing: -.02em; }
.wiz-head span { font-size: .86rem; color: var(--ink-faint); }

/* Das Kreuz gibt es nur in der Vollbild-Ansicht auf dem Handy. */
.wiz-close { display: none; }

/* Fortschritt */
.wiz-steps {
    display: flex; gap: 4px;
    padding: 0 26px 20px;
    border-bottom: 1px solid var(--line-soft);
}
.wiz-dot { flex: 1; display: flex; flex-direction: column; gap: 5px; align-items: center; }
.wiz-dot b {
    display: grid; place-items: center;
    width: 26px; height: 26px;
    font-size: .76rem; font-weight: 700;
    color: var(--ink-faint);
    background: var(--line-soft);
    border-radius: 50%;
    transition: background .16s, color .16s;
}
.wiz-dot em {
    font-style: normal; font-size: .68rem; font-weight: 600;
    color: var(--ink-faint);
    text-align: center;
}
.wiz-dot.is-active b { background: var(--brand); color: #fff; }
.wiz-dot.is-active em { color: var(--ink); }
.wiz-dot.is-done b { background: color-mix(in srgb, var(--brand) 18%, #fff); color: var(--brand); }

.wiz-step { display: none; padding: 26px; }
.wiz-step.is-active { display: block; }
.wiz-step h3 { margin-bottom: 20px; font-size: 1.15rem; }

.wiz-nav { display: flex; gap: 10px; margin-top: 22px; }
.wiz-nav .btn { flex: 1; }

.wiz-hint { margin: 12px 0 0; font-size: .82rem; color: var(--ink-faint); }
.wiz-hint.center { text-align: center; }

/* Verfügbarkeitsampel */
.avail {
    display: flex; flex-direction: column; gap: 2px;
    padding: 14px 16px;
    margin: 4px 0 18px;
    border-radius: var(--r-xs);
    font-size: .9rem;
}
.avail strong { font-size: .96rem; }
.avail.is-load { background: var(--line-soft); color: var(--ink-soft); }
.avail.is-ok { background: var(--ok-bg); color: var(--ok-ink); }
.avail.is-no { background: var(--no-bg); color: var(--no-ink); }

/* Auswahlkacheln */
.picks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.pick { cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.pick-b {
    display: flex; flex-direction: column; gap: 2px;
    padding: 16px 18px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    transition: border-color .14s, background .14s;
}
.pick-b strong { font-size: .98rem; }
.pick-b em { font-style: normal; font-size: .84rem; color: var(--ink-soft); }
.pick:hover .pick-b { border-color: var(--ink-faint); }
.pick input:checked + .pick-b {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 6%, #fff);
}

/* Zubehör (Oberfläche steht, Inhalt kommt später) */
.acc {
    padding: 16px 18px;
    margin-bottom: 4px;
    border: 1px dashed var(--line);
    border-radius: var(--r-sm);
    background: var(--bg-alt);
}
.acc-title { font-size: .88rem; font-weight: 600; }
.acc-empty { margin: 4px 0 0; font-size: .84rem; color: var(--ink-soft); }

/* Zusammenfassung */
.sum { margin-bottom: 22px; }
.sum-load { padding: 20px; text-align: center; color: var(--ink-faint); font-size: .9rem; }

.sum-prod {
    padding: 16px 18px;
    margin-bottom: 16px;
    background: var(--bg-alt);
    border-radius: var(--r-sm);
}
.sum-prod strong { display: block; font-size: 1rem; }
.sum-prod span { display: block; font-size: .86rem; color: var(--ink-soft); }

.sum-rows { border-top: 1px solid var(--line); }
.sum-row {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 12px 0;
    font-size: .94rem;
    border-bottom: 1px solid var(--line-soft);
}
.sum-row em { font-style: normal; color: var(--ink-faint); font-size: .84rem; }
.sum-row.is-plus { color: var(--ok-ink); }
.sum-row.is-total {
    padding: 16px 0;
    font-size: 1.16rem; font-weight: 700;
    border-bottom: 0;
    border-top: 1px solid var(--line);
}
.sum-row.is-dep { color: var(--ink-soft); border-top: 1px solid var(--line-soft); }
.sum-note { margin: 10px 0 0; font-size: .8rem; color: var(--ink-faint); }
.sum-cancel {
    margin: 14px 0 0; padding: 10px 12px; font-size: .82rem; line-height: 1.5;
    color: var(--ink-soft); background: var(--brand-tint, #eef6f6);
    border: 1px solid var(--line-soft); border-radius: 10px;
}
.sum-cancel strong { color: var(--ink); }

/* =====================================================================
   Danke, Leer, 404
   ===================================================================== */

.done { text-align: center; padding: 40px 0; }
.done-ic {
    display: grid; place-items: center;
    width: 72px; height: 72px;
    margin: 0 auto 26px;
    color: #fff;
    background: var(--ok-ink);
    border-radius: 50%;
}
.done-ic svg { width: 34px; height: 34px; stroke-width: 2.4; }
.done h1, .done h2 { margin-bottom: 14px; }
.done .lead { max-width: 46ch; margin: 0 auto; }
.done .ref { margin-top: 22px; color: var(--ink-soft); }
.done-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

.thanks { padding: 90px 0 120px; }

.empty { text-align: center; padding: 80px 24px; }
.empty h2 { margin-bottom: 12px; }
.empty p { max-width: 46ch; margin: 0 auto 26px; color: var(--ink-soft); }

.notfound { padding: 140px 0; text-align: center; }
.notfound .lead { margin: 16px 0 32px; }

/* Rechtstexte */
.legal h2 { font-size: 1.2rem; margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--ink-soft); }
.hint-note {
    margin-top: 48px; padding: 16px 18px;
    font-size: .86rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--line);
    border-radius: 0 var(--r-xs) var(--r-xs) 0;
}

/* =====================================================================
   Footer
   ===================================================================== */

.ft {
    padding: 48px 0 22px;
    background: #161c22;
    color: rgba(255,255,255,.72);
}
.ft-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }

.ft-brand strong { display: block; font-size: 1.05rem; color: #fff; }
.ft-brand em { font-style: normal; font-size: .84rem; color: rgba(255,255,255,.5); }
.ft-brand p { margin: 16px 0 0; font-size: .9rem; line-height: 1.7; }
.ft-brand a:hover { color: #fff; }

.ft-social { display: flex; gap: 9px; margin-top: 20px; }
.ft-social a {
    display: grid; place-items: center;
    width: 36px; height: 36px;
    color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.07);
    border-radius: 9px;
}
.ft-social a:hover { color: #fff; background: var(--brand); }
.ft-social svg { width: 17px; height: 17px; }

.ft-col h3 {
    margin-bottom: 16px;
    font-size: .95rem; font-weight: 650; color: #fff; letter-spacing: -.01em;
}
.ft-col a { display: block; padding: 5px 0; font-size: .9rem; color: rgba(255,255,255,.72); }
.ft-col a:hover { color: #fff; }

.ft-hours { list-style: none; margin: 0 0 20px; padding: 0; }
.ft-hours li {
    display: flex; justify-content: space-between; gap: 14px;
    padding: 4px 0;
    font-size: .88rem;
}
.ft-hours li span:last-child { color: rgba(255,255,255,.55); white-space: nowrap; }

.ft-wa {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 12px 20px;
    font-size: .92rem; font-weight: 600; color: #fff;
    background: #22a45d;
    border-radius: 10px;
}
.ft-wa:hover { filter: brightness(1.1); }
.ft-wa svg { width: 19px; height: 19px; }

.ft-bottom {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-top: 32px; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .84rem; color: rgba(255,255,255,.45);
}
.ft-powered a { color: rgba(255,255,255,.7); font-weight: 600; }
.ft-powered a:hover { color: #fff; }

/* =====================================================================
   Feste Aktionsleiste unten — nur auf dem Handy.
   Anrufen und Anfragen bleiben immer mit dem Daumen erreichbar.
   ===================================================================== */

.bottombar { display: none; }

@media (max-width: 860px) {
    .bottombar {
        position: fixed; left: 0; right: 0; bottom: 0;
        z-index: 60;
        display: flex; align-items: center; gap: 10px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255,255,255,.94);
        backdrop-filter: saturate(180%) blur(14px);
        border-top: 1px solid var(--line);
        box-shadow: 0 -6px 24px -14px rgba(16,22,28,.3);
    }
    .bb-call {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 2px;
        width: 76px; height: 52px; flex: none;
        font-size: .72rem; font-weight: 600; color: var(--ink-soft);
        border: 1px solid var(--line);
        border-radius: 14px;
    }
    .bb-call svg { width: 20px; height: 20px; color: var(--brand); }
    .bb-cta { flex: 1; height: 52px; font-size: 1.02rem; border-radius: 14px; }

    /* Platz schaffen, damit die Leiste nichts verdeckt */
    body { padding-bottom: 86px; }
}

/* =====================================================================
   Responsiv
   ===================================================================== */

@media (max-width: 1080px) {
    .prod-grid.five { grid-template-columns: repeat(3, 1fr); }
    .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
    .kontakt, .kontakt.has-map { grid-template-columns: 1fr 1fr; }
    .kontakt.has-map .k-map { grid-column: 1 / -1; }
    .hd-nav { display: none; }
    .hd-phone-text em { display: none; }

    .finder { grid-template-columns: 1fr 1fr; margin-top: -30px; }
    .finder .btn { grid-column: 1 / -1; }

    .adv-band { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
    .steps { grid-template-columns: 1fr 1fr; }
    .step:not(:last-child)::after { display: none; }

    .partner { grid-template-columns: 1fr 1fr; }
    .partner-list { grid-column: 1 / -1; }

    .detail { grid-template-columns: 1fr; gap: 40px; }
    .detail-side { position: static; }
    .wiz { box-shadow: var(--sh); }
    .contact-page { grid-template-columns: 1fr; gap: 48px; }
    .about { grid-template-columns: 1fr; gap: 40px; }
    .about-logo { order: -1; }
}

/* ---------------------------------------------------------------
   Handy und kleines Tablet
   --------------------------------------------------------------- */

@media (max-width: 860px) {
    :root { --hd: 76px; }

    /* Header: nur Marke und Menü. Telefon und Anfrage sitzen unten in der Leiste.
       Weil sonst nichts mehr in der Zeile steht, darf das Logo groß sein. */
    .hd-nav,
    .hd-phone,
    .hd-cta { display: none; }

    .hd-inner { gap: 12px; }
    .hd-actions { margin-left: auto; }
    .hd-logo { height: 48px; max-width: 180px; }
    .hd-brand.has-logo .hd-logo { height: 58px; max-width: 220px; }

    .hd-words strong { font-size: 1rem; }

    .hd-burger { display: grid; width: 44px; height: 44px; }
    .burger-c { display: none; }
    .hd-burger[aria-expanded="true"] .burger-x { display: none; }
    .hd-burger[aria-expanded="true"] .burger-c { display: block; }

    .hd-mobile {
        display: block;
        padding: 10px 20px 22px;
        background: var(--surface);
        max-height: calc(100vh - var(--hd));
        overflow-y: auto;
    }
    .hd-mobile[hidden] { display: none; }
    .hd-mobile-link {
        display: block;
        padding: 16px 0;
        font-size: 1.05rem; font-weight: 600;
        border-bottom: 1px solid var(--line-soft);
    }
    .hd-mobile-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

    /* Bei offenem Menü nicht hinter der Schublade scrollen */
    body.menu-open { overflow: hidden; }

    .contact-grid { grid-template-columns: 1fr; gap: 44px; }
    .specs dl { grid-template-columns: 1fr; }
    .ft-inner { grid-template-columns: 1fr 1fr; gap: 36px; }

    /* ---------------------------------------------------------------
       Mietanfrage als eigene Vollbild-Ansicht.
       Auf dem Handy ist ein Formular zwischen Produkttexten mühsam —
       hier bekommt es den ganzen Bildschirm und die Zurück-Taste.
       --------------------------------------------------------------- */

    .detail-side { display: none; }

    body.wiz-open { overflow: hidden; }
    body.wiz-open .bottombar { display: none; }

    body.wiz-open .detail-side {
        display: block;
        position: fixed; inset: 0;
        z-index: 100;
        background: var(--surface);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        animation: wiz-in .22s cubic-bezier(.2,.7,.3,1);
    }
    @keyframes wiz-in { from { transform: translateY(16px); opacity: 0; } }

    body.wiz-open .wiz {
        min-height: 100%;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        display: flex;
        flex-direction: column;
    }
    body.wiz-open .wiz form { flex: 1; display: flex; flex-direction: column; }
    body.wiz-open .wiz-step.is-active { flex: 1; display: flex; flex-direction: column; }

    /* Die Navigation klebt unten — der Daumen findet sie immer */
    body.wiz-open .wiz-nav {
        margin-top: auto;
        position: sticky; bottom: 0;
        padding: 14px 0 calc(6px + env(safe-area-inset-bottom));
        background: linear-gradient(rgba(255,255,255,0), var(--surface) 30%);
    }

    /* Kopfzeile mit Schließen-Kreuz */
    .wiz-head { display: flex; align-items: flex-start; gap: 12px; }
    .wiz-head div { flex: 1; min-width: 0; }
    .wiz-close {
        display: grid; place-items: center;
        width: 40px; height: 40px; flex: none;
        color: var(--ink-soft);
        background: var(--line-soft);
        border: 0; border-radius: 50%;
        cursor: pointer;
    }
    .wiz-close svg { width: 18px; height: 18px; }
}

/* ---------------------------------------------------------------
   Handy
   --------------------------------------------------------------- */

@media (max-width: 620px) {
    body { font-size: 16px; }
    .wrap { padding: 0 20px; }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.55rem; }

    .sec { padding: 40px 0; }
    .sec-tight { padding: 20px 0 40px; }
    .sec-head { margin-bottom: 20px; }
    .sec-head p { font-size: 1rem; }
    .page-head { padding: 36px 0 4px; }

    /* Hero: mittig, ruhig, große Fläche für den Daumen */
    .hero {
        min-height: 0;
        padding: 54px 0 48px;
        text-align: center;
        align-items: center;
    }
    .hero h1 { max-width: none; margin: 0 auto; }
    .hero-sub { margin: 16px auto 0; max-width: 34ch; font-size: 1.05rem; }
    .hero-cta { flex-direction: column; gap: 10px; margin-top: 30px; }
    .hero-cta .btn { width: 100%; height: 54px; }

    /* Suchleiste */
    .finder {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: -24px;
        padding: 18px;
        border-radius: var(--r-sm);
    }
    .finder .btn { height: 54px; }
    .fi-two { grid-template-columns: 1fr 1fr; }

    /* Hero-Versprechen: zwei Spalten statt einer Reihe */
    .hero-usp {
        display: grid; grid-template-columns: 1fr 1fr;
        gap: 12px 16px;
        margin-top: 26px;
        text-align: left;
    }
    .hero-usp li { font-size: .86rem; }

    /* Vorteile und Ablauf untereinander */
    .adv-band { grid-template-columns: 1fr; gap: 24px; padding: 26px 20px; }
    .adv { display: flex; align-items: flex-start; gap: 14px; text-align: left; }
    .adv-ic { width: 38px; height: 38px; margin: 0; flex: none; }
    .adv-ic svg { width: 24px; height: 24px; }

    .steps { grid-template-columns: 1fr; gap: 10px; }
    .step { padding: 16px; }

    .partner { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
    .partner-text h2 { font-size: 1.4rem; }

    /* Kategorien: eine klare Liste statt Kachelraster */
    .cat-grid { grid-template-columns: 1fr; gap: 8px; }
    .cat-card { padding: 15px 16px; }

    .kontakt, .kontakt.has-map { grid-template-columns: 1fr; gap: 14px; }
    .k-box { padding: 20px; }
    .k-map, .k-map iframe { min-height: 260px; }
    .faq-intro .btn { width: 100%; }

    /* Mietobjekte: eine Karte je Zeile, großes Bild */
    .prod-grid, .prod-grid.five { grid-template-columns: 1fr; gap: 18px; }
    .prod-img { aspect-ratio: 16 / 11; }
    .prod-body { padding: 18px 18px 16px; }

    /* Filter waagerecht wischbar statt umbrechend */
    .chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 -20px 26px;
        padding: 2px 20px 10px;
        scrollbar-width: none;
    }
    .chips::-webkit-scrollbar { display: none; }
    .chip { flex: none; }

    /* Detailseite */
    .crumbs { padding-top: 18px; font-size: .8rem; }
    .detail { padding: 16px 20px 40px; gap: 32px; }
    .gal-main { aspect-ratio: 4 / 3; border-radius: var(--r-sm); }
    .gal-thumbs {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 12px -20px 0;
        padding: 0 20px 4px;
        scrollbar-width: none;
    }
    .gal-thumbs::-webkit-scrollbar { display: none; }
    .gal-thumb { flex: none; width: 76px; height: 58px; }

    .detail-head { margin-bottom: 28px; }
    .detail-head h1 { font-size: 1.7rem; }
    .detail-head .lead { font-size: 1.02rem; }

    /* Preise: zwei Spalten statt einer langen Liste */
    .pricebox { padding: 20px; margin-bottom: 28px; }
    .pricerow { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
    .pricecell strong { font-size: 1.15rem; }

    .deposit {
        flex-wrap: wrap;
        margin-top: 18px; padding-top: 16px;
        font-size: .88rem; line-height: 1.5;
    }
    .deposit svg { margin-top: 1px; }

    .specs { margin-bottom: 28px; }
    .specs dl > div { padding: 11px 0; gap: 12px; }
    .specs dd { font-size: .95rem; }

    /* Anfrage-Assistent: volle Breite, große Tippflächen */
    .wiz { border-radius: var(--r); }
    .wiz-head { padding: 20px 20px 14px; }
    .wiz-steps { padding: 0 20px 16px; }
    .wiz-dot em { display: none; }
    .wiz-dot b { width: 30px; height: 30px; font-size: .82rem; }
    .wiz-step { padding: 20px; }
    .wiz-nav { flex-direction: column-reverse; gap: 8px; }
    .wiz-nav .btn { width: 100%; height: 52px; }

    .f input, .f textarea, .f select { padding: 15px 16px; font-size: 16px; } /* 16px verhindert das Zoomen in iOS */
    .f2 { grid-template-columns: 1fr; }

    .pick-b { padding: 15px 16px; }
    .cb { font-size: .95rem; }
    .cb input { width: 24px; height: 24px; }

    .sum-row { padding: 13px 0; }

    /* Kontakt und Fuß */
    .contact-form { padding: 22px; border-radius: var(--r-sm); }
    .contact-info h2 { font-size: 1.5rem; }
    .hours { max-width: none; }
    .map { margin-top: 36px; }
    .map iframe { height: 260px; }

    .done { padding: 24px 0; }
    .done-cta { flex-direction: column; }
    .done-cta .btn { width: 100%; }
    .thanks { padding: 56px 0 72px; }

    .ft { padding: 56px 0 24px; }
    .ft-inner { grid-template-columns: 1fr; gap: 28px; }
    .ft-bottom { margin-top: 40px; flex-direction: column; gap: 8px; }

    .legal h2 { font-size: 1.12rem; margin: 28px 0 10px; }
}

/* Sehr schmale Geräte (iPhone SE) */
@media (max-width: 360px) {
    .wrap { padding: 0 16px; }
    .pricerow { grid-template-columns: 1fr; }
    .bb-call { width: 64px; }
}

/* Sperrtage: gesperrte Übergabe-/Aufbauoption im Assistenten */
.pick.is-disabled { opacity: .42; pointer-events: none; }
.wiz-hint.wiz-block { color: #a3231c; font-weight: 600; }
