/* ==========================================================
   Kleine Stadtwohnung · Theme v5 „Clean“ – angelehnt an große Buchungsportale
   Systemschrift (SF/Segoe/Roboto), viel Weiß, feine Graustufen, EINE Akzentfarbe,
   Karten ohne Rahmen: Foto + Text darunter. Akzent tauschen: --accent*.
   ========================================================== */
:root {
  --accent: #0E9F6E;
  --accent-dark: #057A55;
  --accent-soft: #E7F7F0;

  --orange: var(--accent); --hot: var(--accent-dark); --deep: #064E3B; --sky: var(--accent-soft); --blue: var(--accent); --green: var(--accent-dark);
  --bg: #FFFFFF; --surface: #FFFFFF;
  --ink: #222222; --text: #222222; --muted: #6A6A6A;
  --line: #DDDDDD; --soft-line: #EBEBEB;
  --orange-soft: var(--accent-soft); --sky-soft: #F7F7F7; --ok-soft: #E7F7F0; --err-soft: #FFF1F1;
  --shadow: 0 6px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 6px 20px rgba(0,0,0,.14);
  --r: 12px; --r-sm: 8px; --bw: 1px;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #34D399; --accent-dark: #10B981; --accent-soft: #0F2E24;
    --bg: #121212; --surface: #1C1C1C; --ink: #F2F2F2; --text: #EDEDED; --muted: #A0A0A0;
    --line: #3A3A3A; --soft-line: #2A2A2A; --sky-soft: #1C1C1C; --err-soft: #3A1A1A;
    --shadow: 0 6px 16px rgba(0,0,0,.5); --shadow-lg: 0 6px 20px rgba(0,0,0,.6);
  }
}
::selection { background: var(--accent); color: #fff; }
body { font-size: 15px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.01em; font-weight: 650; line-height: 1.2; }
a { text-decoration-color: currentColor; text-decoration-thickness: 1px; }

/* Effekte der Hauptmarke aus */
.spark, .sticker, .marquee, .wordmark, .footer-cta, .auth-card::before { display: none !important; }
.js .reveal { opacity: 1; transform: none; transition: none; }

/* ---------- Kopfzeile ---------- */
.topbar { background: var(--bg); border-bottom: 1px solid var(--soft-line); backdrop-filter: none; -webkit-backdrop-filter: none; padding: calc(12px + env(safe-area-inset-top)) 0 12px; }
.topbar-in { flex-wrap: wrap; row-gap: 12px; }
.logo { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; color: var(--accent); }
.logo:hover { color: var(--accent); }
.logo-txt { color: var(--ink); }
.logo-txt b { color: var(--accent); font-weight: 700; }
.logo-mark { width: 34px; height: 34px; background: var(--accent); color: #fff; border: 0; border-radius: 10px; box-shadow: none; transform: none; }
.logo-mark svg { width: 22px; height: 22px; }
.logo:hover .logo-mark { transform: none; }
.mainnav { display: none !important; }
.topbar-end { margin-left: auto; }
.topbar-end .btn { background: var(--ink); }
.langs { border: 1px solid var(--line); background: var(--bg); }
.langs button[aria-current] { background: var(--ink); color: var(--bg); }
.link-plain { font-weight: 600; font-size: .92rem; }

.hdr-search { order: 3; flex: 1 1 100%; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05); padding: 4px 4px 4px 6px; min-width: 0; }
.hs-seg { display: flex; flex-direction: column; padding: 4px 14px; min-width: 0; flex: 1; border-right: 1px solid var(--soft-line); cursor: text; border-radius: 999px; }
.hs-seg:hover { background: var(--sky-soft); }
.hs-seg:last-of-type { border-right: 0; }
.hs-k { font-size: .7rem; font-weight: 700; color: var(--ink); }
.hs-seg input, .hs-seg select { border: 0 !important; padding: 0 !important; min-height: 22px !important; background: transparent !important; font-size: .88rem; color: var(--muted); box-shadow: none !important; transform: none !important; border-radius: 0; width: 100%; }
.hs-seg select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.hs-type, .hs-max { display: none; }
.hs-go { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer; }
.hs-go:hover { background: var(--accent-dark); }
@media (min-width: 640px) { .hs-type, .hs-max { display: flex; } }
@media (min-width: 1000px) { .hdr-search { order: 0; flex: 0 1 560px; margin: 0 auto; } .topbar-end { margin-left: 0; } }

/* ---------- Buttons ---------- */
.btn { background: var(--accent); border: 0; box-shadow: none; border-radius: 8px; font: 600 1rem var(--font); letter-spacing: 0; min-height: 48px; padding: 12px 22px; }
.btn:hover { background: var(--accent-dark); transform: none; box-shadow: none; }
.btn:active { transform: scale(.98); box-shadow: none; }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: .9rem; border-radius: 8px; }
.btn-ghost { background: var(--bg); color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--sky-soft); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-danger { background: #C13515; }
.link-btn { text-decoration-color: currentColor; text-decoration-thickness: 1px; }

/* ---------- Kategorien ---------- */
.is-ksw-home .main { padding-top: 0; }
.cats { border-bottom: 1px solid var(--soft-line); background: var(--bg); }
.cats-in { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; padding-top: 14px; padding-bottom: 0; }
.cats-in::-webkit-scrollbar { display: none; }
.cats a { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0 12px; color: var(--muted); text-decoration: none; font-size: .78rem; font-weight: 600; border-bottom: 2px solid transparent; opacity: .85; }
.cats a:hover { color: var(--ink); border-bottom-color: var(--line); opacity: 1; }
.cats a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); opacity: 1; }

/* ---------- Startseite ---------- */
.ksw-section { margin-top: 28px; }
.ksw-section + .ksw-section { margin-top: 48px; }
.ksw-h1 { font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 650; margin-bottom: 18px; }
.ksw-h2 { font-size: 1.35rem; font-weight: 650; margin-bottom: 16px; }
.ksw-empty { text-align: center; padding: 28px 16px 8px; max-width: 560px; margin: 0 auto; }
.ksw-empty h2 { font-size: 1.4rem; }
.ksw-empty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.ksw-empty-grid span { aspect-ratio: 1; border-radius: 12px; background: linear-gradient(135deg, var(--accent-soft), var(--sky-soft)); }
.ksw-empty-grid span:nth-child(2) { opacity: .7; } .ksw-empty-grid span:nth-child(3) { opacity: .5; } .ksw-empty-grid span:nth-child(4) { opacity: .3; }
.inspo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 20px; }
@media (min-width: 760px) { .inspo { grid-template-columns: repeat(4, 1fr); } }
.inspo a { display: flex; flex-direction: column; padding: 10px 0; text-decoration: none; color: var(--ink); }
.inspo a b { font-weight: 600; }
.inspo a span { color: var(--muted); font-size: .88rem; }
.inspo a:hover b { text-decoration: underline; }
.host-banner { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; text-decoration: none; color: var(--ink); background: var(--sky-soft); border-radius: 16px; padding: 28px 24px; }
.host-banner:hover { color: var(--ink); }
.host-banner h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.host-banner p { color: var(--muted); max-width: 46ch; }
.host-art { display: none; color: var(--accent); }
.host-art svg { width: 160px; height: 160px; stroke-width: 1; }
@media (min-width: 760px) { .host-banner { grid-template-columns: 1fr auto; padding: 40px 48px; } .host-art { display: block; } }

/* ---------- Inseratkarten (Foto + Text darunter) ---------- */
.cards { gap: 32px 20px; }
@media (min-width: 960px) { .cards-ksw { grid-template-columns: repeat(4, 1fr); } }
.ad-card { background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.ad-card:hover { transform: none; box-shadow: none; }
.ad-card-img { aspect-ratio: 20 / 19; border: 0; border-radius: 12px; overflow: hidden; background: var(--sky-soft); font-size: 2.4rem; }
.ad-card-img img { transition: transform .4s ease; }
.ad-card:hover .ad-card-img img { transform: scale(1.03); }
.ad-card-type { top: 12px; left: 12px; background: rgba(255,255,255,.95); color: #222; border: 0; border-radius: 999px; font-size: .75rem; font-weight: 600; text-transform: none; letter-spacing: 0; padding: 5px 10px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.ad-card-body { padding: 10px 2px 0; gap: 1px; }
.ad-card-body h2, .ad-card-title { font: 600 .95rem var(--font); letter-spacing: 0; margin: 0; color: var(--ink); }
.ad-card-head { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ad-card-body p { font-size: .92rem; margin: 0; }
.ad-card-price { margin-top: 4px !important; padding-top: 0; font-size: .95rem !important; }
.ad-card-price b { background: none; color: var(--ink); border: 0; padding: 0; transform: none; font: 600 .95rem var(--font); border-radius: 0; }

/* ---------- Suche ---------- */
.search-head { padding: 18px 0 0; margin-top: 0; }
.search-head h1 { font-size: clamp(1.4rem, 3.4vw, 2rem); letter-spacing: -.01em; font-weight: 650; }
.filters { box-shadow: none; border: 1px solid var(--line); border-radius: 16px; }
.sort a, .pager a { border: 1px solid var(--line); font-weight: 600; }
.sort a[aria-current], .pager a[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Formulare, Karten, Konto ---------- */
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=number], input[type=url], input[type=search], input:not([type]), select, textarea { border: 1px solid #B0B0B0; border-radius: 8px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); transform: none; }
.has-error input, .has-error select, .has-error textarea { border-color: #C13515; background: var(--err-soft); }
.err, .req { color: #C13515; }
.card, .tile, .cta-card, .tile-b { border: 1px solid var(--line); box-shadow: none; border-radius: 12px; }
.auth-card, .price-card, .filters { box-shadow: var(--shadow); }
.card-link:hover { transform: none; box-shadow: var(--shadow); }
.flash { border: 1px solid var(--line); box-shadow: none; border-radius: 8px; }
.role-opt span { border: 1px solid var(--line); border-radius: 12px; }
.role-opt b { font-family: var(--font); font-weight: 600; }
.role-opt input:checked + span { background: var(--bg); border: 2px solid var(--ink); box-shadow: none; transform: none; }
.chip, .chip-check span, .legal-toc a, .acc-nav a, .acc-logout { border: 1px solid var(--line); font-weight: 600; }
.chip-check input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: none; }
.eyebrow { color: var(--muted); letter-spacing: .06em; font-weight: 700; }
.eyebrow::before { display: none; }
.pill { border: 0; }
.tile:nth-child(1), .tile:nth-child(3) { background: var(--surface); }
.tile-v { font-family: var(--display); font-weight: 650; }
.acc-nav a[aria-current] { background: var(--ink); color: var(--bg); box-shadow: none; }
@media (min-width: 900px) { .acc-nav { box-shadow: none; border: 1px solid var(--line); } .acc-nav a:hover { background: var(--sky-soft); } }
.ad-form legend { background: none; color: var(--ink); padding: 0; margin: 0 0 8px; font: 650 1.2rem var(--display); }
.img-drop { border: 1px dashed #B0B0B0; background: var(--sky-soft); }
.img-drop:hover { transform: none; }
.img-plus { color: var(--muted); }
.form-actions { background: var(--bg); border-top: 1px solid var(--soft-line); }
.gallery-main { border: 0; box-shadow: none; border-radius: 12px; }
.gal-thumb { border: 0; border-radius: 8px; }
.gal-thumb[aria-current] { box-shadow: 0 0 0 2px var(--ink); }
.ad-view h1 { font-size: clamp(1.5rem, 3.6vw, 2rem); letter-spacing: -.01em; font-weight: 650; }
.price-card { background: var(--surface); }
.price-card .price b { font: 650 1.5rem var(--font); color: var(--ink); letter-spacing: 0; }
.chip-s { border: 0; background: var(--sky-soft); color: var(--ink); font-weight: 500; }
.faq details { border: 0; border-bottom: 1px solid var(--soft-line); border-radius: 0; margin: 0; }
.faq details[open] { box-shadow: none; transform: none; }
.faq summary { font: 600 1rem var(--font); padding-left: 0; }
.faq summary::after { background: none; color: var(--ink); font: 400 1.4rem var(--font); }
.faq details[open] summary::after { background: none; color: var(--ink); }
.faq-a { padding-left: 0; }
.faq-cat { font-size: 1.25rem; }
.faq-more, .secure-note { background: var(--sky-soft); border: 0; }

/* ---------- Footer & Tabbar ---------- */
.footer, .tabbar { --bg: #FFFFFF; --ink: #222222; }
.footer { background: #F7F7F7; color: var(--muted); border-top: 1px solid var(--soft-line); padding-top: 40px; }
.footer h2 { font: 600 .9rem var(--font); text-transform: none; letter-spacing: 0; color: #222; }
.footer a { color: #222; font-size: .92rem; }
.footer a:hover { color: #222; text-decoration: underline; }
.footer .logo { color: var(--accent); }
.footer .logo-txt { color: #222; }
.footer .logo-mark { box-shadow: none; border: 0; }
.footer .muted, .copy { color: #6A6A6A; }
.footer .langs { background: #fff; border-color: var(--line); }
.footer .langs button { color: #6A6A6A; }
.footer .langs button[aria-current] { background: #222; color: #fff; }
.copy { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 28px; }
.tabbar { left: 0; right: 0; bottom: 0; border-radius: 0; background: #fff; border-top: 1px solid var(--soft-line); box-shadow: none; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { color: #717171; font-weight: 600; }
.tabbar a[aria-current] { color: var(--accent); background: none; }
.tab-ico { font-family: var(--font); }
.tab-plus .tab-ico { width: 40px; height: 40px; margin-top: 0; border-radius: 12px; border: 0; transform: none; box-shadow: none; background: var(--accent); font-size: 1.4rem; }
body { --tabbar-h: 70px; }
@media (min-width: 900px) { body { --tabbar-h: 0px; } }
@media (prefers-color-scheme: dark) {
  .footer { background: #181818; color: #A0A0A0; border-top-color: #2A2A2A; }
  .footer h2, .footer a, .footer .logo-txt { color: #EDEDED; }
  .footer .langs { background: #1C1C1C; }
  .tabbar { background: #181818; border-top-color: #2A2A2A; }
  .ad-card-type { background: rgba(28,28,28,.92); color: #EDEDED; }
}
