:root {
  --navy-950: #051730;
  --navy-900: #071F3D;
  --navy-800: #0A2A52;
  --navy-700: #0E3A70;
  --blue-600: #1F5FBF;
  --blue-500: #2B74E0;
  --blue-100: #DCE8F8;
  --blue-50: #EEF4FC;
  --gold: #F2B705;
  --gold-dark: #D9A300;
  --ink: #0F1B2D;
  --text: #2A3A50;
  --muted: #5B6B80;
  --line: #E1E8F0;
  --bg: #F4F7FB;
  --white: #fff;
  --green: #128A55;
  --green-50: #E7F6EE;
  --red: #C93535;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(7, 31, 61, .06), 0 1px 3px rgba(7, 31, 61, .06);
  --shadow: 0 4px 14px rgba(7, 31, 61, .08), 0 1px 3px rgba(7, 31, 61, .05);
  --shadow-lg: 0 18px 50px rgba(7, 31, 61, .18);
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-500); }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(43, 116, 224, .45); outline-offset: 2px; border-radius: 6px; }
main { min-height: 70vh; outline: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.25rem; border-radius: 10px; border: 1px solid transparent;
  font-weight: 650; font-size: .95rem; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-dark); color: var(--navy-900); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue-500); color: var(--blue-600); }
.btn-ghost { background: transparent; color: var(--blue-600); padding-left: .5rem; padding-right: .5rem; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.02rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Demo bar ---------- */
.demo-bar {
  background: var(--navy-950); color: #C9D6E8; font-size: .85rem; text-align: center;
  padding: .45rem 2.5rem; position: relative;
}
.demo-bar button {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #C9D6E8; font-size: 1.2rem; cursor: pointer; padding: 0 .5rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 2rem; }
.logo { display: flex; align-items: center; gap: .55rem; font-size: 1.3rem; color: var(--navy-800); font-weight: 600; letter-spacing: -.02em; }
.logo svg { width: 34px; height: 34px; }
.logo b { font-weight: 800; }
.logo:hover { color: var(--navy-800); }
.logo-light, .logo-light:hover { color: #fff; }
.main-nav { display: flex; gap: .25rem; flex: 1; }
.main-nav a {
  color: var(--text); font-weight: 550; font-size: .95rem; padding: .5rem .8rem; border-radius: 8px;
  display: inline-flex; align-items: center; gap: .4rem;
}
.main-nav a:hover { background: var(--blue-50); color: var(--navy-800); }
.main-nav a.active { color: var(--navy-800); background: var(--blue-50); }
.badge {
  background: var(--gold); color: var(--navy-900); font-size: .72rem; font-weight: 800;
  min-width: 20px; height: 20px; border-radius: 10px; display: inline-grid; place-items: center; padding: 0 6px;
}
.badge[hidden] { display: none; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; margin-left: auto; }
.menu-toggle span { display: block; height: 2px; background: var(--navy-800); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .header-inner { gap: 1rem; }
  .header-cta { display: none; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; background: #fff;
    padding: .75rem 16px 1.25rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
  }
  .main-nav a { padding: .85rem .75rem; font-size: 1.05rem; }
  .menu-open .main-nav { transform: none; opacity: 1; pointer-events: auto; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 420px at 85% -10%, rgba(43, 116, 224, .45), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(31, 95, 191, .35), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800) 60%, var(--navy-700));
  color: #fff; padding: 4.5rem 0 6.5rem; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub { font-size: 1.15rem; color: #C9D6E8; max-width: 620px; margin-bottom: 2.2rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }

.search-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.25rem;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr auto; gap: .75rem; align-items: end; color: var(--text);
  max-width: 1080px;
}
.search-card .btn { height: 50px; min-width: 200px; }
@media (max-width: 1000px) {
  .search-card { grid-template-columns: 1fr 1fr; }
  .search-card .field-q, .search-card .btn { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .search-card { grid-template-columns: 1fr; padding: 1rem; } }

.hero-trust { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; margin-top: 1.75rem; color: #C9D6E8; font-size: .92rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-trust svg { width: 18px; height: 18px; color: var(--gold); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field > label, .field-label { font-size: .8rem; font-weight: 650; color: var(--muted); letter-spacing: .01em; }
.input, .select, .textarea {
  width: 100%; height: 50px; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  color: var(--ink); transition: border-color .15s, box-shadow .15s; font-size: .97rem;
}
.textarea { height: auto; min-height: 120px; padding: .75rem .9rem; resize: vertical; line-height: 1.5; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 2.4rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235B6B80' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
}
.input:hover, .select:hover, .textarea:hover { border-color: #C3D0E0; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(43, 116, 224, .14); }
.input-sm, .select-sm { height: 42px; font-size: .92rem; }
.hint { font-size: .8rem; color: var(--muted); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; cursor: pointer; line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy-800); flex-shrink: 0; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-white { background: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { color: var(--muted); margin: .4rem 0 0; }
.lead { font-size: 1.1rem; color: var(--muted); }

.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .9rem; }
@media (max-width: 1000px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
.cat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; color: var(--ink);
  display: flex; flex-direction: column; gap: .7rem; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cat:hover { border-color: var(--blue-500); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.cat-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--blue-50); color: var(--navy-700); display: grid; place-items: center; }
.cat-icon svg { width: 22px; height: 22px; }
.cat-name { font-weight: 650; font-size: .93rem; line-height: 1.3; }
.cat-count { font-size: .82rem; color: var(--muted); margin-top: auto; }

/* ---------- Listing cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
@media (max-width: 1100px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .card-grid { grid-template-columns: 1fr; } }

.lcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative;
  display: flex; flex-direction: column; transition: box-shadow .18s, transform .18s, border-color .18s; color: var(--text);
}
.lcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #CBD7E6; color: var(--text); }
.lcard-body { padding: 1rem 1.05rem 1.1rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.lcard-title { font-weight: 700; color: var(--ink); font-size: 1rem; line-height: 1.35; margin: 0; }
.lcard-loc { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: .3rem; }
.lcard-loc svg { width: 15px; height: 15px; }
.lcard-price { font-size: 1.15rem; font-weight: 800; color: var(--navy-800); margin-top: auto; padding-top: .4rem; }

.visual {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; color: #fff; overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .16), transparent 45%),
    linear-gradient(135deg, hsl(var(--h, 214) 62% 22%), hsl(calc(var(--h, 214) + 6) 70% 42%));
}
.visual::before {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: radial-gradient(#fff 1px, transparent 1.2px); background-size: 16px 16px;
}
.visual svg.vicon { width: 44px; height: 44px; opacity: .92; position: relative; }
.tag {
  position: absolute; top: .7rem; left: .7rem; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: .28rem .55rem; border-radius: 6px; background: var(--gold); color: var(--navy-900);
}
.tag-new { background: #fff; color: var(--navy-800); }
.fav-btn {
  position: absolute; top: .55rem; right: .55rem; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .95); color: var(--navy-800); display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .15s, color .15s; z-index: 2;
}
.fav-btn:hover { transform: scale(1.08); }
.fav-btn svg { width: 19px; height: 19px; }
.fav-btn.on { color: var(--red); }
.fav-btn.on svg path { fill: currentColor; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  font-size: .78rem; font-weight: 600; color: var(--navy-700); background: var(--blue-50);
  padding: .25rem .55rem; border-radius: 6px; white-space: nowrap;
}

/* Horizontal result rows (search) */
.lrow {
  display: grid; grid-template-columns: 280px 1fr auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; color: var(--text); position: relative;
  transition: box-shadow .18s, border-color .18s;
}
.lrow:hover { box-shadow: var(--shadow); border-color: #CBD7E6; color: var(--text); }
.lrow .visual { aspect-ratio: auto; min-height: 100%; }
.lrow-main { padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.lrow-title { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin: 0; line-height: 1.35; }
.lrow-teaser { color: var(--muted); font-size: .92rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lrow-side {
  padding: 1.1rem 1.25rem; border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between;
  align-items: flex-end; gap: .75rem; min-width: 200px; text-align: right;
}
.lrow-price { font-size: 1.25rem; font-weight: 800; color: var(--navy-800); line-height: 1.2; }
.lrow-price small { display: block; font-size: .75rem; font-weight: 600; color: var(--muted); }
.lrow-side .fav-btn { position: static; box-shadow: none; border: 1px solid var(--line); }
.lrow-meta { font-size: .78rem; color: var(--muted); }
@media (max-width: 820px) {
  .lrow { grid-template-columns: 1fr; }
  .lrow .visual { aspect-ratio: 3 / 1; min-height: 0; }
  .lrow-side { border-left: 0; border-top: 1px solid var(--line); flex-direction: row; align-items: center; text-align: left; }
}

/* ---------- Search page ---------- */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 1.6rem 0 1.4rem; }
.page-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue-600); }

.search-layout { display: grid; grid-template-columns: 290px 1fr; gap: 1.5rem; padding: 1.5rem 0 4rem; align-items: start; }
.filters {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; position: sticky;
  top: calc(var(--header-h) + 1rem); display: flex; flex-direction: column; gap: 1rem;
  max-height: calc(100vh - var(--header-h) - 2rem); overflow-y: auto;
}
.filters-head { display: flex; justify-content: space-between; align-items: center; }
.filters-head h3 { margin: 0; font-size: 1.05rem; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.results-count { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.results-bar .select { width: auto; min-width: 200px; }
.results { display: flex; flex-direction: column; gap: .9rem; }
.filter-toggle { display: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.active-filters:empty { display: none; }
.afilter {
  display: inline-flex; align-items: center; gap: .35rem; background: var(--navy-800); color: #fff; border: 0;
  border-radius: 999px; padding: .35rem .75rem; font-size: .82rem; font-weight: 600; cursor: pointer;
}
.afilter:hover { background: var(--navy-700); }
.empty {
  background: #fff; border: 1px dashed #C3D0E0; border-radius: var(--radius); padding: 3rem 1.5rem; text-align: center; color: var(--muted);
}
.empty h3 { margin-bottom: .4rem; }
.filters-close { display: none; }

@media (max-width: 900px) {
  .search-layout { grid-template-columns: 1fr; }
  .filter-toggle { display: inline-flex; }
  .filters {
    position: fixed; inset: 0; top: 0; z-index: 80; border-radius: 0; max-height: none; padding: 1.25rem 16px 6rem;
    transform: translateX(-100%); transition: transform .25s ease; border: 0;
  }
  .filters.open { transform: none; }
  .filters-close { display: inline-flex; }
  .filters-apply { position: fixed; left: 16px; right: 16px; bottom: 16px; }
}
@media (min-width: 901px) { .filters-apply { display: none; } }

/* ---------- Detail ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 1.75rem; padding: 1.5rem 0 4rem; align-items: start; }
@media (max-width: 960px) { .detail-layout { grid-template-columns: 1fr; } }
.detail-hero { border-radius: var(--radius-lg); overflow: hidden; }
.detail-hero .visual { aspect-ratio: 21 / 8; }
.detail-hero .visual svg.vicon { width: 72px; height: 72px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.panel + .panel { margin-top: 1.1rem; }
.panel h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
@media (max-width: 600px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.fact { background: #fff; padding: .95rem 1rem; }
.fact-label { font-size: .78rem; color: var(--muted); font-weight: 600; }
.fact-value { font-weight: 750; color: var(--ink); font-size: 1.05rem; margin-top: .15rem; }
.highlights { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.highlights li { display: flex; gap: .65rem; align-items: flex-start; }
.highlights svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.desc { white-space: pre-line; }

.locked { position: relative; min-height: 300px; }
.locked-content { filter: blur(7px); user-select: none; pointer-events: none; }
.locked-overlay {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .35), rgba(255, 255, 255, .85));
}
.locked-overlay > div { max-width: 360px; }
.lock-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--navy-800); color: var(--gold); display: grid; place-items: center; margin: 0 auto .8rem; }
.lock-icon svg { width: 24px; height: 24px; }
.conf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
@media (max-width: 600px) { .conf-grid { grid-template-columns: 1fr; } }
.unlocked-note { display: flex; gap: .6rem; align-items: center; background: var(--green-50); color: var(--green); font-weight: 600; font-size: .88rem; padding: .6rem .8rem; border-radius: 8px; margin-bottom: 1rem; }
.unlocked-note svg { width: 18px; height: 18px; }

.side { position: sticky; top: calc(var(--header-h) + 1rem); display: flex; flex-direction: column; gap: 1.1rem; }
.price-box .price-label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.price-box .price { font-size: 1.85rem; font-weight: 800; color: var(--navy-800); letter-spacing: -.02em; line-height: 1.2; margin: .15rem 0 1rem; }
.price-box .btn + .btn { margin-top: .6rem; }
.seller { display: flex; gap: .8rem; align-items: center; }
.seller-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--blue-50); color: var(--navy-700); display: grid; place-items: center; font-weight: 800; }
.verified { display: inline-flex; align-items: center; gap: .3rem; color: var(--green); font-size: .82rem; font-weight: 650; }
.verified svg { width: 16px; height: 16px; }
.small { font-size: .85rem; color: var(--muted); }
.ref { font-size: .8rem; color: var(--muted); }

/* ---------- Steps / how ---------- */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 820px) { .how-grid { grid-template-columns: 1fr; } }
.how { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.how-num { width: 38px; height: 38px; border-radius: 10px; background: var(--navy-800); color: var(--gold); font-weight: 800; display: grid; place-items: center; margin-bottom: 1rem; }
.how p { color: var(--muted); margin: 0; font-size: .95rem; }
.tabs { display: inline-flex; background: var(--blue-50); border-radius: 10px; padding: 4px; margin-bottom: 1.5rem; }
.tabs button { border: 0; background: none; padding: .55rem 1.1rem; border-radius: 8px; font-weight: 650; color: var(--muted); cursor: pointer; }
.tabs button.on { background: #fff; color: var(--navy-800); box-shadow: var(--shadow-sm); }

.cta-band {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; border-radius: var(--radius-lg);
  padding: 2.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: #C9D6E8; margin: 0; max-width: 560px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 1rem; }
.stat b { display: block; font-size: 1.9rem; color: var(--navy-800); font-weight: 800; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .9rem; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--navy-800); box-shadow: var(--shadow); }
.plan-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--navy-900); font-size: .75rem; font-weight: 800; padding: .25rem .75rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.plan-price { font-size: 2.2rem; font-weight: 800; color: var(--navy-800); letter-spacing: -.02em; }
.plan-price small { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: grid; gap: .6rem; flex: 1; }
.plan li { display: flex; gap: .55rem; font-size: .94rem; }
.plan li svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; margin-top: 3px; }
.plan-pick { cursor: pointer; }
.plan-pick input { position: absolute; opacity: 0; pointer-events: none; }
.plan-pick:has(input:checked) { border: 2px solid var(--blue-500); box-shadow: 0 0 0 4px rgba(43, 116, 224, .12); }
.plan-pick:has(input:checked) .btn { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

/* ---------- Wizard ---------- */
.wizard { max-width: 960px; margin: 0 auto; padding: 2rem 0 4rem; }
.steps { display: flex; gap: .5rem; margin-bottom: 1.5rem; counter-reset: s; }
.steps li { flex: 1; list-style: none; font-size: .8rem; font-weight: 650; color: var(--muted); }
.steps li::before {
  counter-increment: s; content: counter(s); display: block; height: 6px; border-radius: 3px; background: var(--line);
  margin-bottom: .45rem; font-size: 0; transition: background .2s;
}
.steps li.done::before, .steps li.on::before { background: var(--navy-800); }
.steps li.on { color: var(--navy-800); }
@media (max-width: 600px) { .steps li span { display: none; } }
.wizard-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.preview-wrap { max-width: 340px; }

/* ---------- Text pages ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.prose li { margin-bottom: .4rem; }
.notice { background: #FFF8E1; border: 1px solid #F5DE8C; color: #6B5300; padding: .9rem 1rem; border-radius: 10px; font-size: .92rem; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(5, 23, 48, .55); z-index: 100; display: grid; place-items: center; padding: 16px;
  animation: fade .18s ease;
}
.modal {
  background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 580px; max-height: calc(100vh - 32px);
  overflow-y: auto; box-shadow: var(--shadow-lg); animation: pop .2s ease;
}
.modal-head { padding: 1.4rem 1.5rem 0; display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.modal-head h2 { font-size: 1.3rem; margin: 0; }
.modal-close { background: var(--bg); border: 0; width: 36px; height: 36px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; flex-shrink: 0; color: var(--muted); }
.modal-body { padding: 1rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.terms-box { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; font-size: .9rem; max-height: 220px; overflow-y: auto; }
.terms-box ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--navy-900); color: #fff;
  padding: .8rem 1.2rem; border-radius: 10px; font-weight: 600; font-size: .93rem; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 120; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9FB1C8; padding: 3.5rem 0 1.5rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
.site-footer h4 { color: #fff; font-size: .9rem; margin-bottom: .8rem; }
.site-footer a:not(.logo) { display: block; color: #9FB1C8; font-size: .92rem; padding: .2rem 0; }
.site-footer a:not(.logo):hover { color: #fff; }
.footer-text { margin-top: .9rem; font-size: .92rem; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; }

.view-enter { animation: fade .22s ease; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Login und Konto ---------- */
.login-panel { max-width: 460px; margin: 0 auto; }
.login-form { display: flex; flex-direction: column; gap: 1rem; }
.login-form h2 { margin: 0; font-size: 1.3rem; }
.login-form .small { margin: 0; }
.sent { text-align: center; padding: .5rem 0; }
.sent h2 { margin-bottom: .6rem; }
.konto { padding: 1.5rem 16px 4rem; max-width: 960px; }
.konto-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.konto-h { font-size: 1.25rem; margin: 2rem 0 1rem; }
.my-listing h3 { font-size: 1rem; margin: 1.25rem 0 .6rem; }
.my-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.my-title { font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.my-title:hover { color: var(--blue-600); }
.my-status { width: auto; min-width: 140px; font-weight: 650; }
.my-status.status-aktiv { color: var(--green); }
.my-status.status-verkauft { color: var(--muted); }
.my-stats { display: flex; gap: 2rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.my-stats b { display: block; font-size: 1.5rem; color: var(--navy-800); line-height: 1.1; }
.my-stats span { font-size: .82rem; color: var(--muted); }
.msgs { display: grid; gap: .6rem; }
.msg { background: var(--bg); border-radius: 10px; padding: .8rem 1rem; }
.msg .desc { margin: .4rem 0 0; font-size: .93rem; }
.msg-head { font-size: .9rem; overflow-wrap: anywhere; }
.unlocks { margin-top: 1rem; font-size: .92rem; }
.unlocks summary { cursor: pointer; color: var(--blue-600); font-weight: 600; }
.unlocks ul { margin: .6rem 0 0; padding-left: 1.2rem; color: var(--muted); overflow-wrap: anywhere; }
.input[readonly] { background: var(--bg); color: var(--muted); }
.code-input { font-size: 1.5rem; letter-spacing: .4em; text-align: center; font-weight: 700; }

.launch-box { display: flex; gap: .8rem; align-items: flex-start; background: var(--green-50); color: #0B5A38; border-radius: 10px; padding: 1rem 1.1rem; margin-top: 1.25rem; font-size: .95rem; }
.launch-box svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--green); margin-top: 1px; }
.launch-plan { max-width: 480px; margin: 0 auto; }

/* ---------- Freischaltung in Stufen ---------- */
.stufen { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 1rem 0 0; flex-wrap: wrap; }
.stufen li { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 600; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem .3rem .35rem; }
.stufen li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--muted); font-size: .75rem; font-weight: 800; }
.stufen li.done { color: var(--navy-800); border-color: var(--blue-100); background: var(--blue-50); }
.stufen li.done span { background: var(--navy-800); color: var(--gold); }
.stufe-nr { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--navy-800); color: var(--gold); font-size: .85rem; font-weight: 800; margin-right: .4rem; vertical-align: 2px; }
.stufe-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; margin-top: 1.1rem; }
.stufe-label { font-weight: 700; color: var(--ink); margin-bottom: .9rem; font-size: .95rem; }
.stufe-label .stufe-nr { width: 22px; height: 22px; font-size: .75rem; }
.locked-sm { min-height: 230px; }
#vertraulich h3, #details-slot h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
#details-slot h3:first-child { margin-top: 0; }
.status-note { display: flex; gap: .7rem; align-items: flex-start; background: var(--blue-50); color: var(--navy-800); border-radius: 10px; padding: 1rem; font-size: .95rem; }
.status-note svg { width: 22px; height: 22px; flex-shrink: 0; }
.status-note.status-no { background: #FDECEC; color: #8A2323; }
.buyer-card { background: var(--bg); border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1rem; font-size: .93rem; overflow-wrap: anywhere; }
.sbadge { display: inline-block; font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; }
.s-offen { background: #FFF4D6; color: #7A5A00; }
.s-angenommen { background: var(--green-50); color: var(--green); }
.s-abgelehnt { background: #FDECEC; color: #8A2323; }
.msg-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.msg-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .9rem; }
.req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.req-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.req-list a { font-weight: 600; color: var(--ink); }
.btn-danger { color: var(--red); border-color: #F1C4C4; }
.btn-danger:hover { color: #fff; background: var(--red); border-color: var(--red); }

/* =====================================================================
   Redesign «Dossier» (November 2026): ruhiges Weiss, ein Bankblau,
   Schibsted Grotesk für Text, IBM Plex Mono für Zahlen und Kennzeichnungen.
   Überschreibt die Werte weiter oben.
   ===================================================================== */
:root {
  --navy-950: #0E1A2B;
  --navy-900: #0E1A2B;
  --navy-800: #1F3D8A;
  --navy-700: #18326F;
  --blue-600: #1F3D8A;
  --blue-500: #2A4FA8;
  --blue-100: #D5DEF1;
  --blue-50: #E9EEF8;
  --gold: #1F3D8A;
  --gold-dark: #18326F;
  --ink: #0E1A2B;
  --text: #26324A;
  --muted: #4A5568;
  --line: #DCDFE5;
  --line-soft: #ECEEF1;
  --bg: #F4F5F7;
  --signal: #B4470F;
  --radius: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 0 var(--line);
  --shadow: 0 1px 0 var(--line), 0 12px 32px -20px rgba(14, 26, 43, .28);
  --shadow-lg: 0 24px 48px -24px rgba(14, 26, 43, .35);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
body { font-family: "Schibsted Grotesk", system-ui, -apple-system, sans-serif; color: var(--text); }
h1, h2, h3 { letter-spacing: -0.02em; }
h1 { font-weight: 800; letter-spacing: -0.035em; }
h2 { font-weight: 800; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.r { text-align: right; }
.strong { font-weight: 500; color: var(--ink); }

/* Knöpfe: ein Blau, eckiger */
.btn { border-radius: 4px; font-weight: 600; }
.btn-primary, .btn-gold { background: var(--blue-600); color: #fff; }
.btn-primary:hover, .btn-gold:hover { background: var(--navy-700); color: #fff; }
.btn-outline { border-color: #C7CCD5; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--blue-50); color: var(--ink); }

/* Kopfzeile */
.site-header { background: #fff; backdrop-filter: none; }
.logo { color: var(--ink); font-weight: 600; }
.logo:hover { color: var(--ink); }
.logo svg { width: 30px; height: 30px; }
.main-nav a { color: var(--ink); border-radius: 4px; }
.main-nav a:hover, .main-nav a.active { background: var(--bg); color: var(--ink); }
.badge { background: var(--blue-600); color: #fff; }

/* Kennzeichnungen in Mono */
.eyebrow {
  font-family: var(--mono); font-weight: 400; font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem;
}
.eyebrow::before { content: none; }

/* Startseite: Kopfbereich */
.hero { background: #fff; color: var(--ink); padding: 5rem 0 5.5rem; border-bottom: 1px solid var(--line); }
.hero::after { content: none; }
.hero h1 { color: var(--ink); font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.03; max-width: none; margin: 0; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 4rem; align-items: center; }
.hero-main { flex: 7 1 520px; min-width: 0; }
.hero-side { flex: 5 1 340px; min-width: 0; }
.hero-sub { color: #3B4658; font-size: 1.2rem; max-width: 560px; margin: 1.75rem 0 0; }
.hero-note { font-size: .9rem; color: var(--muted); margin: 1rem 0 0; }

.search-strip {
  margin-top: 2.5rem; display: flex; flex-wrap: wrap; border: 1.5px solid var(--ink); border-radius: 4px;
  background: #fff; max-width: 680px;
}
.ss-field { flex: 1 1 160px; display: flex; flex-direction: column; gap: 2px; padding: .7rem 1rem; border-right: 1px solid var(--line); min-width: 0; }
.ss-field span { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ss-field select {
  border: 0; padding: 0; font: inherit; font-size: 1rem; font-weight: 500; color: var(--ink); background: transparent;
  appearance: none; -webkit-appearance: none; cursor: pointer; width: 100%;
}
.ss-field select:focus { outline: none; }
.ss-btn {
  flex: 0 0 auto; min-height: 62px; padding: 0 1.6rem; border: 0; background: var(--blue-600); color: #fff;
  font: inherit; font-weight: 700; cursor: pointer;
}
.ss-btn:hover { background: var(--navy-700); }
@media (max-width: 720px) {
  .ss-field { border-right: 0; border-bottom: 1px solid var(--line); flex-basis: 100%; }
  .ss-btn { flex-basis: 100%; }
}

/* Dossier-Karte */
.dossier {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
  box-shadow: var(--shadow-lg);
}
a.dossier:hover { color: var(--ink); border-color: #C7CCD5; }
.dossier-top { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.25rem; border-bottom: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
.dossier-body { padding: 1.4rem 1.25rem .4rem; }
.dossier-body h3 { margin: 0 0 .5rem; font-size: 1.35rem; line-height: 1.25; font-weight: 700; }
.dossier-body .muted { font-size: .9rem; }
.dossier-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1rem 1.25rem 0; border-top: 1px solid var(--line); }
.dossier-figs div { padding: .9rem 0; }
.dossier-figs span { display: block; font-family: var(--mono); font-size: .7rem; text-transform: uppercase; color: var(--muted); }
.dossier-figs b { display: block; font-family: var(--mono); font-weight: 500; font-size: 1.1rem; margin-top: .25rem; }
.dossier-lock { margin: .5rem 1.25rem 1.25rem; padding: 1rem; background: var(--bg); border-radius: 4px; display: flex; gap: .9rem; align-items: center; }
.dossier-lock svg { width: 20px; height: 20px; color: var(--signal); flex-shrink: 0; }
.dossier-lock b { display: block; font-size: .95rem; letter-spacing: .02em; }
.dossier-lock span { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; }

/* Abschnitte */
.section { padding: 5rem 0 2rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
.link-strong { font-weight: 600; }
.h-big { font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 760px; margin: 0; }

/* Tabelle der Inserate */
.ledger { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.ledger-inner { min-width: 820px; }
.ledger-head, .ledger-row { display: grid; grid-template-columns: 100px minmax(0, 1fr) 110px 110px 130px; gap: 1rem; align-items: center; padding: 0 1.5rem; }
.ledger-head { padding-top: .85rem; padding-bottom: .85rem; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ledger-row { padding-top: 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row:hover { background: var(--bg); color: var(--ink); }
.ledger-row .mono { font-size: .92rem; }
.lr-main { min-width: 0; }
.lr-main b { display: block; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.lr-main span { display: block; font-size: .88rem; color: var(--muted); margin-top: 3px; }

.branch-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.branch-list a { font-size: .9rem; font-weight: 500; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .45rem .9rem; }
.branch-list a:hover { border-color: var(--ink); color: var(--ink); }

/* Drei Stufen */
.stages { margin-top: 3rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 2px solid var(--ink); }
.stages > div { padding: 1.75rem 1.75rem .5rem 0; }
.stages > div + div { padding-left: 1.75rem; border-left: 1px solid var(--line); }
.stage-nr { font-family: var(--mono); font-size: 2.5rem; font-weight: 500; color: var(--blue-600); line-height: 1; }
.stages h3 { margin: 1rem 0 .5rem; font-size: 1.35rem; }
.stages p { margin: 0; color: #3B4658; }
@media (max-width: 640px) { .stages > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* Verkäufer-Band */
.seller-band { background: var(--ink); color: #fff; margin-top: 4rem; }
.seller-grid { padding-top: 5rem; padding-bottom: 5rem; display: flex; flex-wrap: wrap; gap: 4rem; align-items: flex-start; }
.seller-grid > div { flex: 6 1 420px; min-width: 0; }
.seller-band .eyebrow { color: #A9B4C6; }
.seller-band .h-big { color: #fff; }
.seller-lead { color: #C9D2E0; font-size: 1.12rem; max-width: 520px; margin: 1.5rem 0 2rem; }
.terms-list { flex: 5 1 340px; min-width: 0; margin: 0; border-top: 1px solid #2B3A52; }
.terms-list div { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid #2B3A52; }
.terms-list dt { color: #A9B4C6; }
.terms-list dd { margin: 0; text-align: right; }

/* Kachel in Suchergebnissen: Kanton + Branche statt Symbol */
.visual { background: var(--blue-50); color: var(--ink); display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 1rem 1.1rem; gap: .2rem; }
.visual::before { content: none; }
.v-code { font-family: var(--mono); font-size: 2.6rem; font-weight: 500; line-height: 1; color: var(--blue-600); }
.v-sector { font-family: var(--mono); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.lrow { grid-template-columns: 200px 1fr auto; }
.lrow .visual { min-height: 0; }
.tag { background: var(--ink); color: #fff; border-radius: 3px; }
.tag-new { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.chip { background: var(--bg); color: var(--ink); font-family: var(--mono); font-weight: 400; border-radius: 3px; }

/* Zahlen überall in Mono */
.fact-value, .price, .lrow-price, .lcard-price, .plan-price, .ref, .my-stats b, .stufen li span, .stufe-nr, .lrow-meta { font-family: var(--mono); font-weight: 500; }
.price, .lrow-price, .lcard-price { color: var(--ink); }
.fact-label, .price-label { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }

/* Inserat-Seite */
.page-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.1; }
.panel { border-radius: var(--radius); }
.panel h2 { font-size: 1.35rem; }
.stufe-nr { background: var(--ink); color: #fff; border-radius: 4px; }
.stufen li { border-radius: 4px; }
.stufen li.done span { background: var(--blue-600); color: #fff; }
.lock-icon { background: var(--ink); color: #fff; }
.how-num { background: var(--ink); color: #fff; }
.plan-flag { background: var(--ink); color: #fff; }
.locked-overlay { background: linear-gradient(to bottom, rgba(255,255,255,.4), rgba(255,255,255,.92)); }
.status-note { background: var(--blue-50); color: var(--ink); }
.unlocked-note { border-radius: 4px; }

/* Formulare */
.input, .select, .textarea { border-radius: 4px; border-color: #C7CCD5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(31, 61, 138, .15); }
.steps li.done::before, .steps li.on::before { background: var(--blue-600); }
.steps li.on { color: var(--ink); }
.plan.featured { border-color: var(--ink); }

/* Fuss */
.site-footer { background: var(--ink); }
.site-footer .logo, .site-footer .logo:hover { color: #fff; }
.search-strip { max-width: 780px; }
.ss-field { flex-basis: 130px; }

/* ---------- Handy: ruhige Ränder ---------- */
.main-nav a[hidden] { display: none; }
/* Nichts darf seitlich über den Rand schieben (clip statt hidden, damit die Kopfzeile kleben bleibt). */
html, body { overflow-x: clip; }
.container { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
img, svg, video { max-width: 100%; }
h1, h2, h3, .lr-main b, .dossier-body h3 { overflow-wrap: break-word; }

@media (max-width: 720px) {
  /* iPhone zoomt bei Feldern unter 16px automatisch hinein und die Seite verrutscht. */
  input, select, textarea, .input, .select, .textarea, .input-sm, .select-sm { font-size: 16px; }

  .hero { padding: 3rem 0 3.5rem; }
  .hero-grid { gap: 2.5rem; }
  .hero-sub { font-size: 1.05rem; }
  .section { padding: 3.5rem 0 1.5rem; }
  .seller-grid { padding-top: 3.5rem; padding-bottom: 3.5rem; gap: 2.5rem; }

  /* Inserate-Tabelle: auf dem Handy Karten statt seitlich wischen */
  .ledger { overflow: visible; background: transparent; border: 0; }
  .ledger-inner { min-width: 0; display: grid; gap: .75rem; }
  .ledger-head { display: none; }
  .ledger-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem .75rem; padding: 1rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  }
  .ledger-row:last-child { border-bottom: 1px solid var(--line); }
  .ledger-row > .mono.muted { grid-column: 1 / -1; font-size: .78rem; }
  .ledger-row .lr-main { grid-column: 1 / -1; margin-bottom: .4rem; }
  .ledger-row .r { text-align: left; font-size: .88rem; }

  .dossier-figs b { font-size: .98rem; }
  .terms-list div { flex-direction: column; gap: .25rem; }
  .terms-list dd { text-align: left; }
  .stages { margin-top: 2rem; }

  .lrow-side { flex-wrap: wrap; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { padding: 1.15rem; }
  .detail-layout, .search-layout { padding-top: 1rem; }
  .modal-body, .modal-head { padding-left: 1.1rem; padding-right: 1.1rem; }
  .msg-top { flex-direction: column; gap: .5rem; }
}
@media (max-width: 820px) {
  .lrow { grid-template-columns: 1fr; }
  .lrow .visual { aspect-ratio: auto; min-height: 96px; }
}
@media (max-width: 720px) {
  .fact-value { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fact { padding: .8rem .85rem; }
  .price-box .price { font-size: 1.6rem; }
}
