/* ImotDesk – Produktseite. Reines CSS, Schrift selbst gehostet (Datenschutz). */

/* Onest (OFL-1.1), selbst gehostet; direkt hier statt @import (eine Anfrage weniger vor der ersten Anzeige) */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/onest/onest-cyrillic-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/onest/onest-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/onest/onest-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/onest/onest-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* Literata (SIL OFL 1.1): Lesetext der Ratgeber-Artikel; wird nur geladen, wo sie verwendet wird */
@font-face { font-family: 'Literata'; font-style: normal; font-display: swap; font-weight: 200 900; src: url(../fonts/literata/literata-cyrillic-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: 'Literata'; font-style: normal; font-display: swap; font-weight: 200 900; src: url(../fonts/literata/literata-cyrillic-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Literata'; font-style: normal; font-display: swap; font-weight: 200 900; src: url(../fonts/literata/literata-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Literata'; font-style: normal; font-display: swap; font-weight: 200 900; src: url(../fonts/literata/literata-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Literata'; font-style: italic; font-display: swap; font-weight: 200 900; src: url(../fonts/literata/literata-cyrillic-ext-wght-italic.woff2) format('woff2-variations'); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: 'Literata'; font-style: italic; font-display: swap; font-weight: 200 900; src: url(../fonts/literata/literata-cyrillic-wght-italic.woff2) format('woff2-variations'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Literata'; font-style: italic; font-display: swap; font-weight: 200 900; src: url(../fonts/literata/literata-latin-ext-wght-italic.woff2) format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Literata'; font-style: italic; font-display: swap; font-weight: 200 900; src: url(../fonts/literata/literata-latin-wght-italic.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
    --ink: #0b2a33;
    --ink-2: #123a45;
    --sea: #0e6a7d;
    --sea-2: #0a5262;
    --sea-soft: #e3f1f3;
    /* Text und Verweise in Meeresfarbe (im dunklen Modus heller für genug Kontrast) */
    --sea-text: #0e6a7d;
    --sand: #e9c46a;
    --sand-2: #d9ae46;
    --text: #18272c;
    --muted: #5a6b70;
    --line: #e2e8ea;
    --bg: #ffffff;
    --bg-2: #f4f8f8;
    --card: #ffffff;
    --radius: 18px;
    --shadow: 0 24px 60px -24px rgb(11 42 51 / .35);
    --font: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

:root[data-theme="dark"] {
    color-scheme: dark;
        --text: #e7eff1;
        --muted: #9fb3b8;
        --line: #20343a;
        --bg: #0a1c21;
        --bg-2: #0e252b;
        --card: #11292f;
        --sea-soft: #12343b;
        --sea-text: #7cc6d3;
        --shadow: 0 24px 60px -24px rgb(0 0 0 / .7);
    }

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap-narrow { width: min(820px, 100% - 40px); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--sand); color: var(--ink); padding: 8px 14px; border-radius: 8px; }

/* Knöpfe */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4em;
    padding: .62em 1.15em; border-radius: 12px; font-weight: 650; font-size: .95rem;
    text-decoration: none; border: 1px solid transparent; transition: transform .15s, background .15s, box-shadow .15s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: .85em 1.5em; font-size: 1.05rem; border-radius: 14px; }
.btn-primary { background: var(--sea); color: #fff; box-shadow: 0 10px 24px -12px var(--sea); }
.btn-primary:hover { background: var(--sea-2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--sea); color: var(--sea); }
.btn-sand { background: var(--sand); color: var(--ink); }
.btn-sand:hover { background: var(--sand-2); }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); transition: box-shadow .2s, border-color .2s; border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgb(0 0 0 / .4); }
.top-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.brand svg { width: 34px; height: 34px; color: var(--sea); }
[data-theme="dark"] .brand { color: #fff; }
[data-theme="dark"] .brand svg { color: #7cc6d3; }

.nav { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav > a { white-space: nowrap; }
.nav > a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 550; font-size: .95rem; }
.nav > a:not(.btn):hover { color: var(--text); }
.nav-login { color: var(--text) !important; }
.nav-toggle, .nav-burger { display: none; }

.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: .9rem; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); }
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary { color: var(--text); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 160px; }
.lang-menu a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: .95rem; }
.lang-menu a:hover, .lang-menu a[aria-current] { background: var(--sea-soft); }
.nav > a[aria-current="page"] { color: var(--sea); }

/* Einstieg */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--sea) 22%, transparent), transparent 70%),
        radial-gradient(700px 360px at -10% 30%, color-mix(in srgb, var(--sand) 26%, transparent), transparent 70%),
        linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1.1fr; gap: 56px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--sea-soft); color: var(--sea); font-weight: 650; font-size: .85rem; }
[data-theme="dark"] .badge { color: #9fd8e2; }
.hero h1 { margin-top: 18px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }

/* Screenshots im Browserrahmen */
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot-bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e5e7eb; }
.shot-bar i:nth-child(1) { background: #f87171; } .shot-bar i:nth-child(2) { background: #fbbf24; } .shot-bar i:nth-child(3) { background: #34d399; }
.shot-hero { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }

/* Kennzahlen */
.facts { padding: 28px 0 8px; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fact { padding: 20px 22px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.fact strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--sea); letter-spacing: -.02em; }
[data-theme="dark"] .fact strong { color: #7cc6d3; }
.fact span { color: var(--muted); font-size: .95rem; }

/* Abschnitte */
.section { padding: 96px 0; }
.section-tint { background: var(--bg-2); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; margin-bottom: 110px; }
.feature:last-child { margin-bottom: 0; }
.feature-flip .feature-copy { order: 2; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 750; font-size: .8rem; color: var(--sea); margin-bottom: 10px; }
[data-theme="dark"] .eyebrow { color: #7cc6d3; }
.feature-copy > p { color: var(--muted); font-size: 1.06rem; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { color: #16a34a; margin-top: .2em; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sea-soft); color: var(--sea); margin-bottom: 14px; }
.card-icon .icon { width: 24px; height: 24px; }
[data-theme="dark"] .card-icon { color: #7cc6d3; }
.card h3 { font-size: 1.05rem; margin-bottom: .35em; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step-no { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--sand); color: var(--ink); font-weight: 800; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; }

.plans { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 1080px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.plan-hl { border: 2px solid var(--sea); box-shadow: var(--shadow); }
.plan-tag { position: absolute; top: -13px; left: 30px; background: var(--sea); color: #fff; font-size: .8rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.plan-price strong { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; }
.plan-price span { color: var(--muted); }
.plan .checks { flex: 1; margin-bottom: 24px; }

.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 22px; font-weight: 650; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { transition: transform .2s; color: var(--muted); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

.cta { padding: 0 0 96px; }
.cta-inner { text-align: center; padding: 64px 32px; border-radius: 28px; color: #fff; background: radial-gradient(600px 260px at 80% 0%, rgb(233 196 106 / .28), transparent 70%), linear-gradient(135deg, var(--ink), var(--sea-2)); }
.cta-inner p { color: #cfe4e8; font-size: 1.1rem; margin-bottom: 28px; }

/* Fußzeile */
.foot { border-top: 1px solid var(--line); padding: 32px 0; background: var(--bg); }
.foot-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.foot-brand { display: flex; flex-direction: column; color: var(--muted); font-size: .9rem; }
.foot-brand strong { color: var(--text); font-size: 1rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.foot-links a:hover { color: var(--text); }

/* Rechtliche Seiten */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }
.legal .missing { color: #b45309; }
.legal address { font-style: normal; color: var(--text); line-height: 1.7; }

/* Hilfe & Ratgeber (Modul Help) */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--sea) 35%, var(--line)); }
.article-cover { aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; background: var(--sea-soft); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.article-cover-icon { width: 56px; height: 56px; opacity: .85; }
.article-cover-guide { background: linear-gradient(135deg, #0e6a7d, #0b2a33); color: #fff; }
.article-cover-market { background: linear-gradient(135deg, #1d4ed8, #0b2a33); color: #fff; }
.article-cover-tips { background: linear-gradient(135deg, #e9c46a, #d9822b); color: #0b2a33; }
.article-cover-news { background: linear-gradient(135deg, #15803d, #0b2a33); color: #fff; }
.article-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.article-body h3 { font-size: 1.12rem; line-height: 1.35; margin: 0; }
.article-body p { color: var(--muted); font-size: .95rem; margin: 0; }
.article-more { margin-top: auto; padding-top: 6px; color: var(--sea); font-weight: 650; font-size: .92rem; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: .85rem; margin: 0; }
.article-cat { font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; background: var(--sea-soft); color: var(--sea); }
.article-cat-market { background: color-mix(in srgb, #1d4ed8 14%, transparent); color: #1d4ed8; }
.article-cat-tips { background: color-mix(in srgb, var(--sand) 30%, transparent); color: #8a6512; }
.article-cat-news { background: color-mix(in srgb, #16a34a 16%, transparent); color: #15803d; }
[data-theme="dark"] .article-cat-guide { color: #7fd3e1; }
[data-theme="dark"] .article-cat-market { color: #93b4ff; }
[data-theme="dark"] .article-cat-tips { color: var(--sand); }
[data-theme="dark"] .article-cat-news { color: #4ade80; }
.topic-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 36px; }
.topic-row-left { justify-content: flex-start; margin-top: 24px; }
.topic-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; }
.topic-chip .icon { width: 18px; height: 18px; color: var(--sea); }
.topic-chip:hover { border-color: var(--sea); }
.topic-chip[aria-current] { background: var(--sea); border-color: var(--sea); color: #fff; }
.topic-chip[aria-current] .icon { color: #fff; }
.topic-count { font-size: .78rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--bg-2); color: var(--muted); }
.topic-chip[aria-current] .topic-count { background: rgb(255 255 255 / .2); color: #fff; }
.help-hero { padding: 64px 0 8px; }
.help-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 0 0 .3em; }
.help-search { display: flex; align-items: center; gap: 10px; max-width: 640px; margin-top: 26px; padding: 6px 6px 6px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 10px 30px -22px rgb(0 0 0 / .5); }
.help-search:focus-within { border-color: var(--sea); }
.help-search .icon { width: 20px; height: 20px; color: var(--muted); flex: none; }
.help-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); padding: 8px 0; }
.help-list { padding-top: 40px; }
.help-result { color: var(--muted); margin: 0 0 20px; }
.help-empty { text-align: center; padding: 48px 0; color: var(--muted); }
.help-article { padding: 48px 0 72px; }
.help-article h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.15; margin: .3em 0 .4em; }
.help-article .lead { margin: 18px 0 0; max-width: none; }
.help-article-cover { width: 100%; border-radius: 16px; border: 1px solid var(--line); margin: 28px 0 8px; box-shadow: var(--shadow); }
.help-draft { background: color-mix(in srgb, var(--sand) 30%, transparent); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--sea); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.prose { margin-top: 28px; font-size: 1.06rem; line-height: 1.75; }
.prose h2 { font-size: 1.45rem; margin: 1.8em 0 .5em; }
.prose h3 { font-size: 1.15rem; margin: 1.5em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose a { color: var(--sea); }
.prose em { color: var(--muted); }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--sand); color: var(--muted); }
@media (max-width: 980px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
    .article-grid { grid-template-columns: 1fr; }
    .help-search .btn { padding-inline: 14px; }
}

/* Neuigkeiten */
.changelog-lead { font-size: 1.1rem; max-width: 60ch; }
.releases { list-style: none; margin: 40px 0 0; padding: 0; border-left: 2px solid var(--line); }
.release { position: relative; padding: 0 0 40px 28px; }
.release::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--sea); }
.release:first-child::before { background: var(--sand); border-color: var(--sand-2); }
.release-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.release-version { font-weight: 750; color: var(--sea); text-decoration: none; }
.release-version:hover { text-decoration: underline; }
.release-current { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--sand); color: var(--ink); padding: 2px 8px; border-radius: 999px; }
.release time { color: var(--muted); font-size: .92rem; }
.release h2 { margin: .35em 0 .6em; font-size: 1.3rem; color: var(--text); }
.legal .release-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.legal .release-items li { display: flex; gap: 12px; align-items: baseline; color: var(--text); line-height: 1.55; }
.tag { flex: none; min-width: 108px; text-align: center; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 3px 8px; border-radius: 6px; }
.tag-new { background: var(--sea-soft); color: var(--sea); }
.tag-improved { background: color-mix(in srgb, var(--sand) 28%, transparent); color: #8a6512; }
.tag-fixed { background: color-mix(in srgb, #16a34a 16%, transparent); color: #15803d; }
.tag-removed { background: color-mix(in srgb, #dc2626 14%, transparent); color: #b91c1c; }
[data-theme="dark"] .tag-new { color: #7fd3e1; }
[data-theme="dark"] .tag-improved { color: var(--sand); }
[data-theme="dark"] .tag-fixed { color: #4ade80; }
[data-theme="dark"] .tag-removed { color: #f87171; }
.changelog-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) {
    .legal .release-items li { flex-direction: column; gap: 4px; }
    .tag { min-width: 0; }
}

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .shot-hero { transform: none; } }

/* Tablet */
@media (max-width: 1024px) {
    .hero-inner, .feature { grid-template-columns: 1fr; gap: 36px; }
    .feature-flip .feature-copy { order: 0; }
    .shot-hero { transform: none; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .facts-grid { grid-template-columns: repeat(2, 1fr); }
    .feature { margin-bottom: 80px; }
}

/* Menü einklappbar, sobald es in langen Sprachen nicht mehr in eine Zeile passt */
@media (max-width: 1240px) {
    .nav-burger { display: grid; place-items: center; width: 42px; height: 42px; margin-left: auto; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; }
    .nav-burger span, .nav-burger span::before, .nav-burger span::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; content: ""; }
    .nav-burger span::before { position: absolute; top: -6px; }
    .nav-burger span::after { position: absolute; top: 6px; }
    .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgb(0 0 0 / .3); }
    .nav-toggle:checked ~ .nav { display: flex; }
    .nav > a:not(.btn) { padding: 10px 4px; font-size: 1.05rem; }
    .nav .btn { margin-top: 6px; }
    .lang summary { justify-content: center; }
    .lang-menu { position: static; box-shadow: none; margin-top: 6px; }
}

/* Handy */
@media (max-width: 820px) {
    .section { padding: 64px 0; }
    .hero { padding-top: 40px; }
    body { font-size: 16px; }
}

@media (max-width: 560px) {
    .cards, .steps, .facts-grid { grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }
    .cta-inner { padding: 48px 22px; }
}

/* Messenger an Telefonnummern */
.imd-messengers { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; margin-left: 6px; }
.imd-messenger { display: inline-flex; padding: 1px 8px; border-radius: 999px; font-size: .75rem; font-weight: 650; text-decoration: none; border: 1px solid transparent; }
.imd-messenger-whatsapp { color: #128c4b; background: rgb(37 211 102 / .12); border-color: rgb(37 211 102 / .35); }
.imd-messenger-telegram { color: #1b7fbf; background: rgb(42 171 238 / .12); border-color: rgb(42 171 238 / .35); }
.imd-messenger-viber { color: #6d4bc2; background: rgb(115 96 242 / .12); border-color: rgb(115 96 242 / .35); }

/* Zugang anfragen */
.access-form { display: grid; gap: 18px; margin-top: 28px; }
.access-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.field { display: grid; gap: 6px; }
.field > span, .field > label { font-weight: 600; font-size: .92rem; color: var(--text); }
/* Telefon mit Länderauswahl (intl-tel-input, wie im CRM) */
.field-phone .iti { display: block; width: 100%; --iti-border-color: var(--line); --iti-dialcode-color: var(--text); --iti-arrow-color: var(--muted, #6b7280); --iti-hover-color: color-mix(in srgb, var(--sea) 8%, transparent); }
.field-phone .iti__selected-country { border-radius: 12px 0 0 12px; }
.field-phone .iti__selected-country-primary { padding-inline: 12px 6px; }
.field-phone .iti__selected-dial-code { color: var(--text); margin-inline-end: 6px; }
.iti__dropdown-content { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 16px 40px -12px rgb(0 0 0 / .3); overflow: hidden; }
.iti__search-input { padding: 10px 12px; font: inherit; }
.iti--fullscreen-popup.iti--container { z-index: 100; }
.field input, .field select, .field textarea { font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sea) 18%, transparent); }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--sea); }
.check a { color: var(--sea); }
.access-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.access-errors { border: 1px solid #f3b5b5; background: #fff1f1; color: #8a1c1c; border-radius: 12px; padding: 12px 16px; }
.access-errors ul { margin: 6px 0 0; padding-left: 18px; }
.access-done { display: flex; gap: 16px; align-items: flex-start; margin-top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--sea-soft); }
.access-done h2 { margin: 0 0 6px; font-size: 1.3rem; }
.access-done-icon { width: 40px; height: 40px; color: var(--sea); flex: none; }
[data-theme="dark"] .access-errors { background: #3a1616; color: #ffc9c9; border-color: #7a2c2c; }
@media (max-width: 640px) { .access-grid { grid-template-columns: 1fr; } }

/* Neuigkeiten: Korrekturen eingeklappt, ältere Versionen als Zeilen */
.release-anchor { position: absolute; top: 0; }
.release-fixes { margin-top: 12px; }
.release-fixes > summary { cursor: pointer; color: var(--muted); font-size: .92rem; width: fit-content; }
.release-fixes > summary:hover { color: var(--sea); }
.release-fixes[open] > summary { margin-bottom: 10px; }
.releases-older-title { margin: 8px 0 14px; font-size: 1.2rem; }
.releases-older { border-top: 1px solid var(--line); margin-bottom: 40px; }
.release-row { border-bottom: 1px solid var(--line); }
.release-row > summary { display: flex; gap: 12px; align-items: baseline; padding: 12px 4px; cursor: pointer; list-style: none; }
.release-row > summary::-webkit-details-marker { display: none; }
.release-row > summary::before { content: "›"; color: var(--muted); transition: transform .15s; display: inline-block; }
.release-row[open] > summary::before { transform: rotate(90deg); }
.release-row > summary:hover .release-row-text { color: var(--sea); }
.release-row .release-version { min-width: 3.5em; }
.release-row-text { flex: 1; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.release-row time { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.release-row .releases { margin: 4px 0 8px; }
.release-row .release { padding-bottom: 16px; }
@media (max-width: 640px) {
    .release-row time { display: none; }
}

/* Immobiliensuche für Besucher */
#find .public-search { margin-inline: auto; }
#find .section-head + .public-search { margin-top: 0; }
.search-examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.icon-inline { width: 18px; height: 18px; vertical-align: -3px; color: var(--sea); }
.property-cover { position: relative; }
.property-cover img { width: 100%; height: 100%; object-fit: cover; }
.property-offer { position: absolute; left: 12px; top: 12px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--card); color: var(--ink); padding: 3px 9px; border-radius: 999px; }
.article-body .property-price { font-weight: 750; color: var(--sea); font-size: 1.1rem; margin: 6px 0 0; }
.search-contact { text-align: center; color: var(--muted); margin-top: 40px; }
.search-contact a { color: var(--sea); font-weight: 600; text-decoration: none; }
.search-contact a:hover { text-decoration: underline; }
.search-links { margin-top: 40px; }
.search-links h2 { font-size: 1.1rem; margin: 0 0 12px; }
.search-links .topic-row { justify-content: flex-start; }
/* Suchbox ganz oben: etwas kompakter als die übrigen Abschnitte */
#find.section { padding: 56px 0 48px; }
#find .section-head { margin-bottom: 22px; }

/* Suchseiten (Modul SeoPages) */
.seo-hero .crumbs { margin-bottom: 16px; }
.seo-count { color: var(--muted); margin: 14px 0 0; }
.seo-count a { color: var(--sea); font-weight: 600; text-decoration: none; }
.seo-text .prose { margin-top: 0; }
.seo-contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.seo-agent { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.seo-agent h2 { margin: 0 0 6px; font-size: 1.3rem; }
.seo-agent > p { color: var(--muted); margin: 0 0 12px; }
.seo-logo { max-width: 200px; max-height: 80px; object-fit: contain; margin-bottom: 18px; display: block; }
.seo-contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.seo-contact-list li { display: flex; align-items: center; gap: 10px; }
.seo-contact-list .icon { width: 18px; height: 18px; color: var(--sea); flex: none; }
.seo-contact-list a { color: var(--text); text-decoration: none; }
.seo-contact-list a:hover { color: var(--sea); }
.seo-person { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.seo-person .eyebrow { margin: 0; }
.seo-form h2 { margin: 0 0 6px; }
.seo-form-text { color: var(--muted); margin: 0 0 18px; }
.seo-fields { display: grid; gap: 14px; }
.seo-fields label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.seo-fields input[type="text"], .seo-fields input[type="email"], .seo-fields input[type="tel"], .seo-fields input[type="date"], .seo-fields textarea { font: inherit; font-weight: 400; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
.seo-fields input:focus, .seo-fields textarea:focus { outline: 0; border-color: var(--sea); }
.seo-consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--muted); }
.seo-consent input { margin-top: 4px; }
.seo-consent a { color: var(--sea); }
.seo-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.seo-sent { display: flex; gap: 10px; align-items: center; background: color-mix(in srgb, var(--sea) 12%, transparent); color: var(--text); padding: 16px; border-radius: 12px; }
.seo-sent .icon { width: 22px; height: 22px; color: var(--sea); flex: none; }
.seo-error { color: #b42318; margin: 0; }
@media (max-width: 800px) { .seo-contact-grid { grid-template-columns: 1fr; } }
/* Suchfeld: keine helle Autofill-Fläche (dunkler Modus), eigenes Löschen-Kreuz */
.help-search input:-webkit-autofill, .help-search input:-webkit-autofill:hover, .help-search input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px var(--card) inset;
    caret-color: var(--text);
    transition: background-color 9999s ease-out 0s;
}
.help-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; height: 16px; width: 16px; cursor: pointer; opacity: .6; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.help-search input[type="search"]::-webkit-search-cancel-button:hover { opacity: 1; color: var(--sea); }
.help-search input { color-scheme: light dark; }

/* Portal (obyavi.eu) */
.portal-hero.section { padding: 64px 0 52px; }
.portal-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.1; margin: .2em 0 .3em; }
.section-head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; text-align: left; max-width: none; margin-inline: 0; }
.section-head-row h2 { margin: 0; }
.property-agency { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.property-agency img { height: 22px; max-width: 70px; object-fit: contain; }
.portal-agencies { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.portal-agency { display: grid; place-items: center; min-height: 90px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-align: center; }
.portal-agency img { max-height: 54px; max-width: 100%; object-fit: contain; }
.portal-agents-cta { text-align: center; margin-top: 28px; color: var(--muted); }
.portal-agents-cta a { color: var(--sea); font-weight: 600; text-decoration: none; }
.listing { padding: 36px 0 64px; }
.listing-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: 16px 0 22px; }
.listing-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.15; margin: 0 0 6px; }
.listing-place { display: flex; align-items: center; gap: 6px; color: var(--muted); margin: 0; }
.listing-place .icon { width: 18px; height: 18px; color: var(--sea); }
.listing-price { display: flex; align-items: center; gap: 16px; }
.listing-price strong { font-size: 1.6rem; color: var(--sea); white-space: nowrap; }
.listing-gallery { display: grid; gap: 8px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; border-radius: 18px; overflow: hidden; }
.listing-gallery.count-1 { grid-template-columns: 1fr; grid-template-rows: 460px; }
.listing-gallery.count-2 { grid-template-columns: 2fr 1fr; grid-template-rows: 460px; }
.listing-gallery.count-3, .listing-gallery.count-4 { grid-template-columns: 2fr 1fr; }
.listing-photo { position: relative; display: block; background: var(--sea-soft); }
.listing-photo:first-child { grid-row: 1 / -1; }
.listing-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-photo.is-extra { display: none; }
.listing-gallery.count-4 .listing-photo:nth-child(n+4), .listing-gallery.count-3 .listing-photo:nth-child(n+4) { display: none; }
.listing-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(0 0 0 / .45); color: #fff; font-size: 1.5rem; font-weight: 700; }
.listing-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 40px; margin-top: 32px; align-items: start; }
.listing-main h2 { font-size: 1.35rem; margin: 32px 0 12px; }
.listing-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.listing-facts div { padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.listing-facts dt { font-size: .8rem; color: var(--muted); }
.listing-facts dd { margin: 2px 0 0; font-weight: 650; }
.listing-text { margin-top: 0; }
.listing-features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; }
.listing-features li { display: flex; gap: 8px; align-items: center; }
.listing-features .icon { width: 18px; height: 18px; color: var(--sea); flex: none; }
.listing-side { display: grid; gap: 20px; position: sticky; top: 90px; }
.listing-form { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.listing-form h2 { font-size: 1.25rem; }
@media (max-width: 900px) {
    .listing-grid { grid-template-columns: 1fr; }
    .listing-side { position: static; }
    .listing-gallery, .listing-gallery.count-3, .listing-gallery.count-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 120px; }
    .listing-gallery .listing-photo:first-child { grid-column: 1 / -1; grid-row: auto; }
    .listing-gallery .listing-photo:nth-child(n+4) { display: none; }
    .listing-gallery.count-1, .listing-gallery.count-2 { grid-template-rows: 280px; }
}

/* Erklärvideo auf der Startseite */
.video-section { padding-top: 72px; }
.video-frame { max-width: 960px; margin: 0 auto; border-radius: 18px; overflow: hidden; background: #071d24; box-shadow: var(--shadow); border: 1px solid var(--line); aspect-ratio: 16 / 9; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Portal: Kategorieseiten, Agenturen, Seitennummern, Fußzeile mit Verweisen */
.browse-intro p { margin: 0 0 .7em; }
.browse-intro p:last-child { margin-bottom: 0; }
.browse-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 26px 0 0; padding: 0; }
.browse-facts div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.browse-facts dt { font-size: .8rem; color: var(--muted); margin: 0 0 2px; }
.browse-facts dd { margin: 0; font-weight: 750; font-size: 1.1rem; color: var(--text); }
.browse-links h2 { font-size: 1.1rem; margin: 26px 0 12px; }
.browse-links h2:first-child { margin-top: 0; }
.browse-links .topic-row { justify-content: flex-start; }
.topic-chip span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.topic-chip[aria-current="page"] { background: var(--sea); border-color: var(--sea); color: #fff; }
.topic-chip[aria-current="page"] span { color: rgb(255 255 255 / .75); }
.browse-faq h2 { margin: 0 0 16px; }
.browse-faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.browse-faq summary { cursor: pointer; font-weight: 650; }
.browse-faq details p { margin: 10px 0 0; color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.pager a, .pager span { min-width: 40px; padding: 8px 12px; border-radius: 10px; text-align: center; text-decoration: none; border: 1px solid var(--line); color: var(--text); }
.pager a:hover { border-color: var(--sea); color: var(--sea); }
.pager span[aria-current="page"] { background: var(--sea); border-color: var(--sea); color: #fff; font-weight: 700; }
.pager span[aria-hidden="true"] { border: 0; color: var(--muted); }
.listing-more-links { justify-content: flex-start; margin-top: 28px; }
.seo-agent h2 a { color: inherit; text-decoration: none; }
.seo-agent h2 a:hover { color: var(--sea); }
a.portal-agency { text-decoration: none; color: var(--text); gap: 8px; transition: border-color .15s; }
a.portal-agency:hover { border-color: var(--sea); }
.agency-grid .portal-agency span { font-size: .85rem; color: var(--muted); }
.agency-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.agency-contact { margin-top: 18px; }
.agency-logo { max-width: 220px; max-height: 110px; }
.foot-browse { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 40px; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.foot-browse nav { display: grid; gap: 8px; align-content: start; }
.foot-browse strong { font-size: .95rem; margin-bottom: 4px; }
.foot-browse a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.foot-browse a:hover { color: var(--text); }

/* Prüfung Oktober 2026: Kontrast, Tastatur, fehlende Fotos, Mobilansicht, Tippflächen */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--sea-text); outline-offset: 2px; }
.property-offer { background: var(--sand); color: var(--ink); }
.article-body .property-price, .listing-price strong, .crumbs a, .nav > a[aria-current="page"], .portal-agents-cta a, .seo-consent a, .seo-count a, .search-contact a, .listing-place .icon, .seo-contact-list .icon, .listing-features .icon, .icon-inline, .seo-agent h2 a:hover { color: var(--sea-text); }
[data-theme="dark"] .seo-error { color: #ff9a8f; }
/* Menü per Tastatur: Schalter unsichtbar, aber erreichbar (nur wenn das Menü eingeklappt ist) */
@media (max-width: 1240px) { .nav-toggle { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; } }
.nav-toggle:focus-visible + .nav-burger { outline: 2px solid var(--sea-text); outline-offset: 2px; }
/* Fehlendes Foto: keine Alternativtexte über dem Bild, Platzhalter bleibt ruhig */
.property-cover img, .listing-photo img { color: transparent; font-size: 0; }
.property-cover { background: var(--sea-soft); }
.property-cover .article-cover-icon { position: absolute; inset: 0; margin: auto; }
/* Fokus in Suchfeld und Formularen deutlich */
.help-search:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--sea) 28%, transparent); }
.seo-fields input:focus-visible, .seo-fields textarea:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--sea) 28%, transparent); outline: 0; }
.help-search input::placeholder { color: var(--muted); opacity: 1; }
/* Tippflächen ab 40 px */
.foot-browse a, .foot-links a { display: inline-block; padding: 8px 0; }
.crumbs a { display: inline-block; padding: 6px 0; }
.browse-faq summary { padding: 8px 0; }
.seo-consent input { width: 20px; height: 20px; flex: none; }
.public-search .btn { min-height: 44px; }
.seo-consent span { flex: 1; }
/* Suche läuft: Rückmeldung, keine doppelten Anfragen */
.public-search.is-busy button { opacity: .7; cursor: progress; }
.public-search.is-busy .icon { animation: portal-spin 1s linear infinite; }
@keyframes portal-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .public-search.is-busy .icon { animation: none; } }
/* Anzahl der Fotos auf dem ersten Bild */
.listing-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgb(0 0 0 / .6); color: #fff; font-size: .85rem; font-weight: 600; }
.listing-count .icon { width: 16px; height: 16px; }
/* Seitenleiste nur klebend, wenn sie in den Bildschirm passt */
.listing-side { position: static; }
@media (min-width: 901px) and (min-height: 1100px) { .listing-side { position: sticky; top: 90px; } }
/* Kontaktleiste unten auf dem Handy */
.listing-cta-bar { display: none; }
@media (max-width: 900px) {
    .listing-cta-bar { display: flex; align-items: center; gap: 10px; position: sticky; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgb(0 0 0 / .5); }
    .listing-cta-bar strong { margin-right: auto; color: var(--sea-text); font-size: 1.05rem; white-space: nowrap; }
    .listing-cta-bar .btn { min-height: 44px; padding-inline: 16px; }
    /* Fotos als wischbarer Streifen */
    .listing-gallery, .listing-gallery.count-1, .listing-gallery.count-2, .listing-gallery.count-3, .listing-gallery.count-4 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; grid-template-rows: none; border-radius: 14px; scrollbar-width: none; }
    .listing-gallery .listing-photo, .listing-gallery .listing-photo.is-extra, .listing-gallery .listing-photo:nth-child(n+4) { display: block; flex: 0 0 88%; height: 260px; scroll-snap-align: start; border-radius: 14px; overflow: hidden; }
    .listing-gallery.count-1 .listing-photo { flex-basis: 100%; }
    .listing-gallery .listing-more { display: none; }
}
/* Kennzahlen auf dem Handy kompakter, Objekte früher sichtbar */
@media (max-width: 640px) {
    .browse-facts { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
    .browse-facts div { padding: 8px 10px; }
    .browse-facts dt { font-size: .72rem; }
    .browse-facts dd { font-size: .95rem; }
}
/* Filterzeile auf der Suchseite */
.portal-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-top: 18px; }
.portal-filters label { display: grid; gap: 4px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.portal-filters select { font: inherit; font-size: .95rem; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; min-height: 44px; min-width: 140px; }
.portal-filters .btn { min-height: 44px; }
.portal-filters a { align-self: center; color: var(--sea-text); font-weight: 600; text-decoration: none; padding: 10px 0; }
.listing-cta-bar .icon { width: 20px; height: 20px; }
@media (max-width: 640px) {
    .portal-filters { display: grid; grid-template-columns: 1fr 1fr; }
    .portal-filters select { min-width: 0; width: 100%; }
}
.agency-links { margin-top: 36px; }

/* Ratgeber im Portal: Übersicht, Artikel mit Titelbild, Bildern im Text, Tipp, Zitat, Schlagwörtern, Teilen und Hinweis */
.guide-card-featured { display: grid; grid-template-columns: 1.35fr 1fr; margin-bottom: 26px; }
.guide-card-featured .article-cover { aspect-ratio: 3 / 2; }
.guide-card-featured .article-body { justify-content: center; padding: 28px 32px; gap: 12px; }
.guide-card-featured h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.2; margin: 0; }
.guide-cover { aspect-ratio: 4 / 3; }
.guide-cover img { object-position: center; }
.guide-meta { margin-top: 26px; }
.guide-article h1 { margin-top: .35em; }
.guide-standfirst { font-size: 1.2rem; line-height: 1.55; }
.guide-hero { margin: 30px auto 6px; }
.guide-hero img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; background: var(--sea-soft); }
.guide-hero figcaption, .guide-figure figcaption { margin-top: 8px; color: var(--muted); font-size: .9rem; font-style: italic; text-align: center; }
.guide-prose p strong, .guide-prose li strong { color: var(--text); }
.guide-figure { margin: 1.8em 0; }
.guide-figure img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; background: var(--sea-soft); }
.guide-prose aside { margin: 1.6em 0; padding: 16px 20px; border-radius: 14px; background: color-mix(in srgb, var(--sand) 22%, transparent); border-left: 4px solid var(--sand); }
.guide-prose aside p:last-child { margin-bottom: 0; }
.guide-prose blockquote { margin: 1.8em 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--sea); color: var(--text); font-size: 1.25rem; line-height: 1.5; font-weight: 600; }
.guide-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 36px 0 0; }
.guide-tags li { padding: 5px 12px; border-radius: 999px; background: var(--sea-soft); color: var(--sea-text); font-size: .85rem; font-weight: 600; }
.guide-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .95rem; }
.guide-share a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; }
.guide-share a:hover { border-color: var(--sea); color: var(--sea-text); }
.guide-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 34px; padding: 24px 26px; border-radius: 18px; background: var(--ink); color: #fff; }
.guide-cta strong { font-size: 1.15rem; }
.guide-cta p { margin: 4px 0 0; color: rgb(255 255 255 / .78); }
.guide-cta .btn { white-space: normal; max-width: 100%; text-align: center; }
.guide-cta > div { min-width: 0; flex: 1 1 260px; }
.guide-home .article-grid { margin-top: 8px; }
@media (max-width: 760px) {
    .guide-card-featured { grid-template-columns: 1fr; }
    .guide-card-featured .article-body { padding: 20px 22px 22px; }
    .guide-hero { width: 100%; }
    .guide-hero img { border-radius: 0; }
    .guide-hero figcaption { padding-inline: 20px; }
    .guide-prose blockquote { font-size: 1.12rem; }
}
.agency-place { display: inline-flex; align-items: center; gap: 4px; }
.agency-place .icon { width: 14px; height: 14px; }

/* Ratgeber-Artikel: ruhige Lesespalte in Literata, Inhaltsverzeichnis am Rand, Titelbild mit Wellenkante */
.g-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.g-progress span { display: block; height: 100%; background: var(--sand); transform: scaleX(0); transform-origin: 0 50%; }
.g-article { --g-serif: 'Literata', Georgia, 'Times New Roman', serif; padding-bottom: 72px; }
.g-head { padding: 40px 0 0; }
.g-head h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); line-height: 1.06; letter-spacing: -.025em; font-weight: 750; max-width: 26ch; margin: 18px 0 0; text-wrap: balance; }
.g-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 26px; color: var(--muted); font-size: .92rem; }
.g-cat { padding: 5px 12px; border-radius: 999px; background: var(--sea-soft); color: var(--sea-text); font-weight: 650; text-decoration: none; }
.g-cat:hover { background: var(--sea); color: #fff; }
.g-time { display: inline-flex; align-items: center; gap: 6px; }
.g-time .icon { width: 17px; height: 17px; }
.g-standfirst { font-family: var(--g-serif); font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.55; color: var(--muted); max-width: 52ch; margin: 20px 0 0; text-wrap: pretty; }
.g-hero { margin: 36px 0 0; }
.g-hero-frame { position: relative; max-width: 1440px; margin-inline: auto; overflow: hidden; background: var(--sea-soft); }
.g-hero-frame img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
.g-wave { position: absolute; inset: auto 0 -1px; width: 100%; height: clamp(22px, 4vw, 56px); fill: var(--bg); }
.g-hero figcaption { margin-top: 6px; text-align: right; font-family: var(--g-serif); font-style: italic; font-size: .92rem; color: var(--muted); }
.g-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); justify-content: center; gap: 72px; margin-top: 44px; }
.g-rail { position: sticky; top: 96px; align-self: start; display: grid; gap: 34px; font-size: .92rem; }
.g-toc-title { margin: 0 0 10px; font-weight: 700; color: var(--text); }
.g-toc ol, .g-toc-mobile ol { list-style: none; margin: 0; padding: 0; }
.g-toc li a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; line-height: 1.35; }
.g-toc li a:hover { color: var(--text); }
.g-toc li a[aria-current] { border-left-color: var(--sea); color: var(--sea-text); font-weight: 650; }
.g-share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.g-share-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); font: inherit; font-size: .85rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.g-share-btn .icon { width: 16px; height: 16px; color: var(--sea-text); }
.g-share-btn:hover { border-color: var(--sea); }
.g-toc-mobile { display: none; }
.g-glance { margin: 0 0 40px; padding: 22px 26px 18px; border-radius: 18px; background: var(--sea-soft); }
.g-glance h2 { font-size: 1.05rem; margin: 0 0 12px; color: var(--sea-text); }
.g-glance ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.g-glance li { position: relative; padding-left: 30px; font-family: var(--g-serif); line-height: 1.55; }
.g-glance li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--sea) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M8.1 13.6 4.6 10.1l1.2-1.2 2.3 2.3 6.1-6.1 1.2 1.2z'/%3E%3C/svg%3E") center / 14px no-repeat; }
.g-prose { font-family: var(--g-serif); font-size: 1.14rem; line-height: 1.8; color: var(--text); }
.g-prose > p:first-child::first-letter { float: left; font-family: var(--font); font-weight: 750; font-size: 3.6em; line-height: .86; margin: .06em .1em 0 0; color: var(--sea-text); }
.g-prose p, .g-prose ul, .g-prose ol { margin: 0 0 1.15em; }
.g-prose ul, .g-prose ol { padding-left: 1.25em; }
.g-prose li { margin: .35em 0; }
.g-prose li::marker { color: var(--sea-text); }
.g-prose h2, .g-prose h3 { font-family: var(--font); color: var(--text); scroll-margin-top: 96px; text-wrap: balance; }
.g-prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); line-height: 1.2; letter-spacing: -.015em; margin: 2.1em 0 .6em; }
.g-prose h3 { font-size: 1.2rem; margin: 1.7em 0 .45em; }
.g-prose strong { font-weight: 650; }
.g-prose a { color: var(--sea-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.g-prose aside { position: relative; margin: 2em 0; padding: 20px 22px 18px 62px; border-radius: 16px; background: color-mix(in srgb, var(--sand) 20%, var(--bg)); font-family: var(--font); font-size: 1.02rem; line-height: 1.6; }
.g-prose aside::before { content: ""; position: absolute; left: 20px; top: 20px; width: 26px; height: 26px; background: color-mix(in srgb, var(--sand) 75%, #8a6512); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-4 12.7V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2.3A7 7 0 0 0 12 2Zm-2.5 18h5v1a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-4 12.7V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2.3A7 7 0 0 0 12 2Zm-2.5 18h5v1a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1z'/%3E%3C/svg%3E") center / contain no-repeat; }
.g-prose aside p:last-child { margin-bottom: 0; }
.g-prose blockquote { margin: 2.2em 0; padding: 34px 0 0; border: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 16' fill='none' stroke='%23E9C46A' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M2 9c5 0 5-5 10-5s5 5 10 5 5-5 10-5 5 5 10 5 5-5 10-5 5 5 10 5'/%3E%3C/svg%3E") 0 0 / 64px 16px no-repeat; font-family: var(--font); font-size: clamp(1.35rem, 2.6vw, 1.7rem); line-height: 1.35; font-weight: 650; letter-spacing: -.01em; color: var(--text); text-wrap: balance; }
.g-prose .guide-figure { margin: 2.2em -40px; }
.g-prose .guide-figure img { border-radius: 14px; aspect-ratio: 3 / 2; }
.g-prose .guide-figure figcaption { text-align: left; padding: 0 40px; font-size: .9rem; }
.g-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 40px 0 0; }
.g-tags li { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.g-cta { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px 24px; margin-top: 40px; padding: 30px 30px 28px; border-radius: 20px; background: var(--ink); color: #fff; overflow: hidden; }
.g-cta-wave { position: absolute; right: -10px; top: 12px; width: 120px; height: 24px; fill: none; stroke: var(--sand); stroke-width: 2.4; stroke-linecap: round; opacity: .55; }
.g-cta strong { display: block; font-size: 1.2rem; max-width: 26ch; }
.g-cta p { margin: 6px 0 0; color: rgb(255 255 255 / .75); }
.g-cta .btn { white-space: normal; text-align: center; max-width: 100%; justify-self: start; }
.g-cover { position: relative; display: grid; min-height: clamp(540px, 80vh, 860px); color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.g-cover-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.g-cover-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(6 22 27 / .38) 0%, rgb(6 22 27 / 0) 24%, rgb(6 22 27 / .1) 45%, rgb(6 22 27 / .82) 100%), linear-gradient(90deg, rgb(6 22 27 / .35) 0%, rgb(6 22 27 / 0) 65%); }
.g-cover-inner { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 26px 0 clamp(78px, 10vw, 128px); }
.g-cover-crumbs, .g-cover-crumbs a { color: rgb(255 255 255 / .86); }
.g-cover-text { max-width: 1040px; }
.g-cover h1 { margin: 20px 0 0; max-width: 28ch; color: #fff; font-size: clamp(2.3rem, 5.8vw, 4.8rem); line-height: 1.03; letter-spacing: -.028em; font-weight: 750; text-wrap: balance; text-shadow: 0 2px 28px rgb(0 0 0 / .28); }
.g-cover .g-standfirst { margin-top: 22px; max-width: 60ch; color: rgb(255 255 255 / .9); text-shadow: 0 1px 16px rgb(0 0 0 / .3); }
.g-cover .g-meta { margin-top: 0; color: rgb(255 255 255 / .86); }
.g-cover .g-cat { background: var(--sand); color: var(--ink); }
.g-cover .g-cat:hover { background: #fff; color: var(--ink); }
.g-cover .g-wave { z-index: 1; }
.g-cover-caption { margin-top: 4px; text-align: right; font-family: 'Literata', Georgia, serif; font-style: italic; font-size: .9rem; color: var(--muted); }
@media (max-width: 640px) {
    .g-cover { min-height: clamp(560px, 90svh, 760px); }
    .g-cover-inner { padding-bottom: 64px; }
    .g-cover .g-meta { gap: 6px 12px; font-size: .85rem; }
    .g-cover-shade { background: linear-gradient(180deg, rgb(6 22 27 / .55) 0%, rgb(6 22 27 / .05) 22%, rgb(6 22 27 / .35) 45%, rgb(6 22 27 / .92) 100%); }
}
@media (prefers-reduced-motion: no-preference) { html:has(.g-article) { scroll-behavior: smooth; } }
@media (max-width: 1080px) {
    .g-layout { grid-template-columns: minmax(0, 720px); gap: 0; }
    .g-rail { position: static; order: 2; margin-top: 36px; }
    .g-rail .g-toc { display: none; }
    .g-toc-mobile { display: block; margin: 0 0 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
    .g-toc-mobile summary { cursor: pointer; padding: 14px 18px; font-weight: 700; }
    .g-toc-mobile ol { padding: 0 18px 12px; }
    .g-toc-mobile li a { display: block; padding: 8px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
    .g-prose .guide-figure { margin-inline: 0; }
    .g-prose .guide-figure figcaption { padding: 0; }
}
@media (max-width: 640px) {
    .g-head { padding-top: 24px; }
    .g-hero-frame img { aspect-ratio: 4 / 3; }
    .g-prose { font-size: 1.06rem; line-height: 1.75; }
    .g-prose aside { padding: 18px 18px 16px 54px; }
    .g-prose aside::before { left: 16px; top: 18px; }
    .g-cta { grid-template-columns: 1fr; padding: 26px 22px; }
}
@media print {
    .g-progress, .g-rail, .g-toc-mobile, .g-cta, .top, .foot { display: none !important; }
    .g-layout { display: block; }
}

/* Portal: Suchauftrag und Immobilie anbieten (Hinweis-Kästen und Formulare) */
.lead-cta { padding-block: 56px; }
.lead-cta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.lead-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px 28px 26px; border-radius: 20px; overflow: hidden; }
.lead-card h2 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.2; }
.lead-card p { margin: 0 0 8px; max-width: 46ch; }
.lead-card .btn { margin-top: auto; }
.lead-card-icon { width: 34px; height: 34px; }
.lead-card-search { background: var(--sea-soft); }
.lead-card-search .lead-card-icon { color: var(--sea-text); }
.lead-card-search p { color: var(--muted); }
.lead-card-sell { background: var(--ink); color: #fff; }
.lead-card-sell .lead-card-icon { color: var(--sand); }
.lead-card-sell p { color: rgb(255 255 255 / .78); }
.lead-hero h1 { max-width: 22ch; }
.lead-hero .lead { max-width: 60ch; }
.lead-section { padding-top: 24px; }
.lead-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.lead-form-box { padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.lead-form { gap: 26px; }
.lead-group { display: grid; gap: 18px; margin: 0; padding: 0; border: 0; min-width: 0; }
.lead-group legend { padding: 0; margin-bottom: 4px; font-size: 1.2rem; font-weight: 750; }
.lead-field { display: grid; gap: 8px; }
.lead-label { font-weight: 600; font-size: .95rem; }
.lead-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-chip { position: relative; display: inline-flex !important; font-weight: 600; }
.lead-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lead-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); cursor: pointer; font-size: .92rem; }
.lead-chip:hover span { border-color: var(--sea); }
.lead-chip input:checked + span { background: var(--sea); border-color: var(--sea); color: #fff; }
.lead-chip input:focus-visible + span { outline: 2px solid var(--sea); outline-offset: 2px; }
.lead-inline { font-weight: 500 !important; color: var(--muted); }
.lead-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.lead-row-2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.lead-form input[type="number"], .lead-form select { font: inherit; font-weight: 400; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
.lead-form input[type="number"]:focus, .lead-form select:focus { outline: 0; border-color: var(--sea); }
.lead-side { position: sticky; top: 96px; display: grid; gap: 18px; }
.lead-side h2 { margin: 0; font-size: 1.1rem; }
.lead-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 16px; }
.lead-steps li { position: relative; display: grid; gap: 2px; padding-left: 44px; counter-increment: step; }
.lead-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sand); color: var(--ink); font-weight: 750; font-size: .9rem; }
.lead-steps span { color: var(--muted); font-size: .92rem; }
.lead-privacy { display: flex; gap: 8px; margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); color: var(--muted); font-size: .9rem; }
.lead-privacy .icon { flex: none; width: 18px; height: 18px; color: var(--sea-text); margin-top: 2px; }
.lead-sent { display: grid; justify-items: start; gap: 10px; }
.lead-sent h2 { margin: 0; }
.lead-sent p { margin: 0; color: var(--muted); }
.lead-sent-icon { width: 44px; height: 44px; color: var(--sea-text); }
@media (max-width: 900px) {
    .lead-cta-grid, .lead-layout { grid-template-columns: 1fr; }
    .lead-side { position: static; }
    .lead-form-box { padding: 22px 18px; }
}

/* Galerie der Objektseite (Lightbox) */
.listing-photo { cursor: zoom-in; }
.gallery-box { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #050f13; color: #fff; display: none; flex-direction: column; }
.gallery-box[open] { display: flex; }
.gallery-box::backdrop { background: rgba(4, 14, 18, .9); }
html.gallery-open { overflow: hidden; }
.gallery-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.gallery-counter { font-weight: 600; font-variant-numeric: tabular-nums; opacity: .85; }
.gallery-close, .gallery-nav { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background .15s; }
.gallery-close:hover, .gallery-nav:hover, .gallery-close:focus-visible, .gallery-nav:focus-visible { background: rgba(255, 255, 255, .25); outline: none; }
.gallery-close { width: 44px; height: 44px; }
.gallery-close .icon, .gallery-nav .icon { width: 26px; height: 26px; }
.gallery-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 76px; }
.gallery-image { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; user-select: none; touch-action: pan-y; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.gallery-thumbs { display: flex; gap: 8px; padding: 14px 20px 18px; overflow-x: auto; justify-content: safe center; scrollbar-width: thin; }
.gallery-thumbs button { flex: 0 0 auto; width: 84px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; opacity: .55; transition: opacity .15s, border-color .15s; }
.gallery-thumbs button:hover, .gallery-thumbs button[aria-current] { opacity: 1; }
.gallery-thumbs button[aria-current] { border-color: #5ec4d0; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-box.is-single .gallery-nav, .gallery-box.is-single .gallery-thumbs { display: none; }
@media (max-width: 700px) {
    .gallery-stage { padding: 0 8px; }
    .gallery-nav { width: 42px; height: 42px; background: rgba(0, 0, 0, .35); }
    .gallery-prev { left: 6px; }
    .gallery-next { right: 6px; }
    .gallery-thumbs button { width: 64px; height: 46px; }
}

/* Kategorieseiten (neu): Kopf mit Fotos, Schnellwahl, Sortierung, Marktüberblick, Kacheln */
.browse-top { position: relative; padding: 48px 0 28px; overflow: hidden; }
.browse-top::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; height: 140%; background: radial-gradient(closest-side, color-mix(in srgb, var(--sea) 18%, transparent), transparent 70%); pointer-events: none; }
.browse-top-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.browse-top-grid.no-photos { grid-template-columns: 1fr; }
.browse-top .crumbs { margin-bottom: 18px; }
.browse-top h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 18px; }
.browse-sub { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 22px; color: var(--muted); font-weight: 600; }
.browse-sub span { display: inline-flex; align-items: center; gap: 7px; }
.browse-sub .icon { width: 18px; height: 18px; color: var(--sea-text); }
.browse-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.browse-quick a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; transition: border-color .15s, transform .15s; }
.browse-quick a:hover { border-color: var(--sea); transform: translateY(-1px); }
.browse-quick a span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--sea-soft); color: var(--sea-text); font-size: .78rem; text-align: center; }
.browse-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.browse-actions .btn .icon { width: 18px; height: 18px; }

.browse-mosaic { position: relative; display: grid; gap: 10px; grid-template-columns: 1.3fr 1fr; grid-template-rows: 170px 170px; }
.browse-mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); background: var(--bg-2); }
.browse-mosaic img:first-child { grid-row: 1 / 3; }
.browse-mosaic.n-1 { grid-template-columns: 1fr; grid-template-rows: 340px; }
.browse-mosaic.n-1 img:first-child { grid-row: auto; }
.browse-mosaic.n-2 img:nth-child(2) { grid-row: 1 / 3; }
.browse-badge { position: absolute; left: -18px; bottom: 22px; padding: 12px 18px; border-radius: 16px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.browse-badge small { display: block; color: var(--muted); font-size: .78rem; font-weight: 600; }
.browse-badge strong { font-size: 1.35rem; color: var(--sea-text); font-variant-numeric: tabular-nums; }

.browse-results { padding-top: 28px; }
.browse-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.browse-toolbar h2 { margin: 0; font-size: 1.35rem; }
.browse-toolbar h2 small { color: var(--muted); font-weight: 500; font-size: .95rem; }
.browse-sort { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.browse-sort a { padding: 7px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .88rem; white-space: nowrap; }
.browse-sort a:hover { color: var(--text); }
.browse-sort a[aria-current] { background: var(--card); color: var(--text); box-shadow: 0 2px 10px -4px rgb(0 0 0 / .35); }

.browse-about-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.browse-about-text h2 { margin: 0 0 14px; font-size: clamp(1.5rem, 3vw, 2rem); }
.browse-about-text .browse-intro, .browse-about-text > p:not(.eyebrow) { font-size: 1.08rem; line-height: 1.75; color: var(--text); }
.browse-intro a { color: var(--sea-text); }
.browse-market { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.browse-market h3 { margin: 0 0 18px; font-size: 1.05rem; }
.price-range { margin-bottom: 22px; }
.price-range-bar { position: relative; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #5ec4d0, var(--sea), var(--sand)); }
.price-range-median { position: absolute; top: 50%; width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 4px solid var(--sea); transform: translate(-50%, -50%); box-shadow: 0 2px 8px rgb(0 0 0 / .3); }
.price-range-labels { display: flex; justify-content: space-between; margin-top: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.price-range-labels span:last-child { text-align: right; }
.price-range-labels small { display: block; color: var(--muted); font-weight: 500; font-size: .76rem; }
.browse-market .browse-facts { grid-template-columns: 1fr 1fr; margin: 0; gap: 10px; }
.browse-market .browse-facts div { background: var(--bg-2); border: 0; }

.browse-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.browse-tile { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; transition: border-color .15s, transform .15s, box-shadow .15s; }
.browse-tile:hover { border-color: var(--sea); transform: translateY(-2px); box-shadow: var(--shadow); }
.browse-tile .icon { width: 20px; height: 20px; color: var(--sea-text); flex: none; }
.browse-tile-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browse-tile-count { padding: 2px 9px; border-radius: 999px; background: var(--sea-soft); color: var(--sea-text); font-size: .8rem; }
.browse-tile[aria-current] { background: var(--sea); border-color: var(--sea); color: #fff; }
.browse-tile[aria-current] .icon, .browse-tile[aria-current] .browse-tile-count { color: #fff; background: transparent; }

@media (max-width: 900px) {
    .browse-top { padding-top: 28px; }
    .browse-top-grid, .browse-about-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .browse-sub { gap: 6px 14px; font-size: .92rem; }
    .browse-mosaic { grid-template-rows: 110px 110px; }
    .browse-mosaic.n-1 { grid-template-rows: 200px; }
    .browse-badge { left: 12px; bottom: 12px; padding: 8px 12px; }
    .browse-badge strong { font-size: 1.1rem; }
    .browse-quick { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px; scrollbar-width: none; }
    .browse-quick a { flex: none; }
    .browse-sort { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
}

/* Umschalter Hell/Dunkel */
:root { color-scheme: light; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; transition: border-color .15s, color .15s; }
.theme-toggle:hover, .theme-toggle:focus-visible { border-color: var(--sea); color: var(--sea-text); outline: none; }
.theme-toggle .icon { width: 20px; height: 20px; }
.theme-icon-sun, [data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: block; }
