/* Buchungsportal Weimar – Portal-Layout (eigene Gestaltung: Tinte + Messing) */
:root {
  --bg: #f5f3ef;
  --surface: #ffffff;
  --surface-2: #f0ece5;
  --ink: #1d2a33;
  --ink-2: #47545e;
  --ink-3: #7a848b;
  --line: #e1dbd0;
  --band: #3d2c1f;
  --band-ink: #f5f3ef;
  --accent: #705034;
  --accent-ink: #ffffff;
  --accent-soft: #fbeedd;
  --cta: #705034;
  --link: #705034;
  --ok: #2f7a52;
  --bad: #b23b2a;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(29,42,51,.06), 0 4px 16px rgba(29,42,51,.06);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  .brand-mark { background: #F2C185 !important; }
  :root:not([data-theme="light"]) {
    --bg: #11171b; --surface: #19222a; --surface-2: #212c34; --ink: #eef0f1; --ink-2: #b9c1c6; --ink-3: #8a959c; --line: #2d3a43;
    --band: #0b1013; --band-ink: #eef0f1; --accent: #c9a26f; --accent-ink: #1a1408; --accent-soft: #2a241b; --cta: #c9a26f; --link: #d9b685; --ok: #74c69a; --bad: #ef8b78;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
  }
}
:root[data-theme="dark"] {
  --bg: #11171b; --surface: #19222a; --surface-2: #212c34; --ink: #eef0f1; --ink-2: #b9c1c6; --ink-3: #8a959c; --line: #2d3a43;
  --band: #0b1013; --band-ink: #eef0f1; --accent: #c9a26f; --accent-ink: #1a1408; --accent-soft: #2a241b; --cta: #c9a26f; --link: #d9b685; --ok: #74c69a; --bad: #ef8b78;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 14.5px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
button, input, select { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ic { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.lnk, .lnk-btn { color: var(--link); text-decoration: underline; text-underline-offset: 2px; background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- Kopfband ---------- */
.topbar { background: var(--band); color: var(--band-ink); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px clamp(16px, 4vw, 40px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 40px; flex: 0 0 30px; background: #705034; -webkit-mask: url(/img/logos/weimar-apart-icon.svg) center/contain no-repeat; mask: url(/img/logos/weimar-apart-icon.svg) center/contain no-repeat; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font: 600 18px var(--serif); }
.brand-text small { opacity: .7; font-size: 12px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.badge-direct { font-size: 12.5px; border: 1px solid rgba(255,255,255,.25); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.lang select { border: 1px solid rgba(255,255,255,.3); background: transparent; color: var(--band-ink); border-radius: 6px; padding: 6px 8px; cursor: pointer; }
.lang option { color: #1d2a33; }
@media (max-width: 640px) { .badge-direct { display: none; } }

.band { background: var(--band); color: var(--band-ink); padding: 26px clamp(16px, 4vw, 40px) 54px; }
.band-inner { max-width: 1180px; margin: 0 auto; }
.band h1 { font: 600 clamp(26px, 4vw, 40px)/1.1 var(--serif); }
.band p { margin: 8px 0 0; opacity: .8; font-size: 16px; }

/* ---------- Suchleiste ---------- */
.sb-wrap { max-width: 1180px; margin: -28px auto 0; padding: 0 clamp(16px, 4vw, 40px); position: relative; z-index: 20; }
.searchbar { display: grid; grid-template-columns: 1fr 1fr 1.3fr auto; gap: 4px; background: var(--accent); padding: 4px; border-radius: 10px; position: relative; box-shadow: var(--shadow); }
.searchbar.inline { margin: 6px 0 14px; max-width: 900px; }
.sb-field { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 7px; padding: 8px 12px; min-width: 0; border: 0; cursor: pointer; text-align: left; }
.sb-ic { color: var(--ink-3); display: flex; }
.sb-col { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sb-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.sb-field input { border: 0; background: transparent; padding: 0; font-size: 14.5px; width: 100%; min-width: 0; }
.sb-field input:focus { outline: none; }
.gsum { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn { border: 0; border-radius: 7px; padding: 10px 18px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; font-size: 14.5px; }
.btn-cta { background: var(--cta); color: var(--accent-ink); }
.btn-cta:hover { filter: brightness(1.08); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-ghost { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.sb-go { background: var(--ink); color: var(--bg); padding: 0 24px; }
.sb-hint { font-size: 13px; color: var(--ink-3); margin-top: 6px; min-height: 0; }
.sb-hint.err { color: var(--bad); }
.guest-pop { position: absolute; z-index: 1100; top: calc(100% + 8px); right: 110px; width: 320px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 12px 16px; }
.guest-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.guest-row + .guest-row { border-top: 1px solid var(--line); }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--accent); color: var(--accent); background: var(--surface); cursor: pointer; font-size: 17px; line-height: 1; }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 18px; text-align: center; font-weight: 600; }
.child-ages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 6px 0 10px; }
.child-ages label { font-size: 12px; color: var(--ink-3); display: flex; flex-direction: column; gap: 3px; }
.child-ages select { border: 1px solid var(--line); border-radius: 6px; padding: 6px; background: var(--surface); }
.guest-pop .btn { width: 100%; margin-top: 8px; }
@media (max-width: 820px) {
  .searchbar { grid-template-columns: 1fr 1fr; }
  .sb-guests { grid-column: 1 / -1; }
  .sb-go { grid-column: 1 / -1; padding: 12px; }
  .guest-pop { right: 0; left: 0; margin: 0 auto; }
}

.crumbs { max-width: 1180px; margin: 14px auto 0; padding: 0 clamp(16px, 4vw, 40px); font-size: 13px; color: var(--ink-3); }
.crumbs a { color: var(--link); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.detail .crumbs { padding: 0; margin: 0 0 10px; }

/* ---------- Ergebnisseite ---------- */
.results { max-width: 1180px; margin: 0 auto; padding: 12px clamp(16px, 4vw, 40px) 48px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .results { grid-template-columns: 1fr; } }

.mapcard { display: block; width: 100%; position: relative; height: 150px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); padding: 0; cursor: pointer; background: var(--surface-2); margin-bottom: 14px; }
#minimap { position: absolute; inset: 0; pointer-events: none; }
.mapcard-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 500; box-shadow: var(--shadow); }
.dot-pin { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); transform: translate(-50%, -50%); }

.fbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.fbox-h { font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.fgroup { padding: 10px 14px 12px; border-bottom: 1px solid var(--line); }
.fgroup:last-of-type { border-bottom: 0; }
.fgroup-h { font-weight: 600; margin-bottom: 6px; }
.fopt { display: flex; align-items: center; gap: 9px; padding: 4px 0; cursor: pointer; }
.fopt input { width: 17px; height: 17px; accent-color: var(--accent); margin: 0; }
.fopt span { flex: 1; }
.fopt em { font-style: normal; color: var(--ink-3); font-size: 13px; }
.fbox .lnk-btn { margin: 0 14px 12px; }
@media (max-width: 900px) {
  .side-col { display: grid; grid-template-columns: 1fr; }
  .fbox { display: none; }
}

.rhead h2 { font: 700 22px/1.2 var(--sans); }
.stabs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; margin: 10px 0 14px; background: var(--surface); flex-wrap: wrap; }
.stab { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 13.5px; }
.stab[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.rlist { display: flex; flex-direction: column; gap: 14px; container-type: inline-size; }
.rcard { display: grid; grid-template-columns: 220px minmax(0, 1fr) 210px; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.rcard:hover { border-color: var(--accent); }
.rcard.is-off { opacity: .6; }
.rcard-img { display: block; border-radius: 8px; overflow: hidden; }
.rcard-img .ph { height: 100%; min-height: 200px; }
.rcard-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rcard h3 { font: 700 19px/1.25 var(--sans); }
.rcard h3 a { color: var(--link); text-decoration: none; }
.rcard h3 a:hover { text-decoration: underline; }
.loc { font-size: 13px; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 4px; background: var(--surface-2); color: var(--ink-2); display: inline-block; }
.tag.ok { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
.rec { border-left: 3px solid var(--line); padding: 2px 0 2px 10px; margin-top: 2px; font-size: 13.5px; }
.rec-k { font-size: 12px; color: var(--ink-3); }
.rec-n { font-weight: 700; }
.rec-m { color: var(--ink-2); }
.good { color: var(--ok); margin-top: 2px; }
.good b { font-weight: 700; }
.scarce { color: var(--bad); font-weight: 600; font-size: 13px; margin-top: 2px; }
.ams { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--ink-2); margin-top: auto; }
.am { display: inline-flex; align-items: center; gap: 5px; }
.am.pending { color: var(--ink-3); border: 1px dashed var(--line); border-radius: 4px; padding: 0 5px; }
.am.pending em { font-style: normal; font-size: 11px; }
.rcard-price { border-left: 1px solid var(--line); padding-left: 16px; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; text-align: right; gap: 2px; }
.pc-stay { font-size: 12.5px; color: var(--ink-3); }
.pc-price { font: 700 24px/1.15 var(--sans); }
.pc-price small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.pc-tax { font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.pc-off { color: var(--bad); font-weight: 600; margin-bottom: 8px; }
.rcard-price .btn { width: 100%; }
@container (max-width: 700px) {
  .rcard { grid-template-columns: 150px minmax(0, 1fr); }
  .rcard-img .ph { min-height: 150px; }
  .rcard-price { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding: 10px 0 0; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 0; align-items: center; text-align: left; }
  .rcard-price > :not(.btn) { grid-column: 1; }
  .rcard-price .btn { grid-column: 2; grid-row: 1 / span 4; width: auto; }
  .pc-tax { margin: 0; }
}
@container (max-width: 460px) {
  .rcard { grid-template-columns: 1fr; }
  .rcard-img .ph { min-height: 170px; }
}

.ph { position: relative; display: grid; place-items: end start; padding: 10px; color: #fff; overflow: hidden; background: linear-gradient(135deg, hsl(var(--h) 30% 44%), hsl(calc(var(--h) + 25) 26% 27%)); }
.ph::before { content: ""; position: absolute; inset: 0; opacity: .2; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 1px, transparent 1px 30px), repeating-linear-gradient(0deg, rgba(255,255,255,.35) 0 1px, transparent 1px 42px); }
.ph.has-img { background-size: cover; background-position: center; }
.ph.has-img::before { display: none; }
.ph span { position: relative; z-index: 1; font-size: 11.5px; background: rgba(0,0,0,.3); padding: 2px 7px; border-radius: 4px; }

.notice { background: var(--accent-soft); border-radius: 8px; padding: 10px 14px; font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.empty { padding: 40px 0; text-align: center; color: var(--ink-3); }
.skeleton { height: 180px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sh 1.2s infinite linear; }
@keyframes sh { to { background-position: -200% 0; } }

/* Karten-Overlay */
.map-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(10,15,18,.55); display: grid; place-items: center; padding: 16px; }
.map-modal { width: min(1200px, 100%); height: min(820px, 100%); background: var(--surface); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.map-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
#bigmap { flex: 1; }
.pin { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; font: 700 12.5px var(--sans); box-shadow: 0 2px 8px rgba(0,0,0,.2); white-space: nowrap; transform: translate(-50%, -50%); display: inline-block; cursor: pointer; }
.pin:hover { background: var(--ink); color: var(--bg); }
.pin.off { color: var(--ink-3); }
.leaflet-div-icon { background: none; border: 0; }
.mpop { font: 13px/1.45 var(--sans); }
.mpop a { color: var(--link); font-weight: 600; }

/* ---------- Objektseite ---------- */
.detail { max-width: 1180px; margin: 0 auto; padding: 16px clamp(16px, 4vw, 40px) 56px; }
.d-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.d-head h1 { font: 700 clamp(22px, 3.2vw, 30px)/1.2 var(--sans); margin: 4px 0; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 170px 170px; gap: 6px; border-radius: var(--radius); overflow: hidden; }
.gallery .ph:first-child { grid-row: span 2; }
.gallery .ph:nth-child(n+6) { display: none; }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 100px; } .gallery .ph:first-child { grid-column: span 2; grid-row: auto; } .gallery .ph:nth-child(n+4) { display: none; } }
.gallery.has-photos .gtile { border: 0; padding: 0; cursor: zoom-in; background-size: cover; background-position: center; background-color: var(--surface-2); position: relative; }
.gallery.has-photos .gtile:first-child { grid-row: span 2; }
.gallery.has-photos .gtile:hover { filter: brightness(1.05); }
.gmore { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,15,18,.5); color: #fff; font-weight: 700; font-size: 16px; }
@media (max-width: 720px) { .gallery.has-photos .gtile:first-child { grid-column: span 2; grid-row: auto; } .gallery.has-photos .gtile:nth-child(n+4) { display: none; } }
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(8,11,13,.94); color: #fff; display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; font-size: 14px; }
.lb-x { background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }
.lb-x .ic { width: 24px; height: 24px; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; padding: 0 56px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain; border-radius: 6px; }
.lightbox figcaption { margin-top: 8px; font-size: 14px; opacity: .85; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; border-radius: 8px; background: rgba(255,255,255,.12); color: #fff; font-size: 34px; cursor: pointer; }
.lb-nav:hover { background: rgba(255,255,255,.25); }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-strip { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px 14px; justify-content: center; }
.lb-strip button { flex: none; width: 74px; height: 50px; border-radius: 5px; border: 2px solid transparent; background-size: cover; background-position: center; cursor: pointer; opacity: .6; }
.lb-strip button.on { border-color: var(--accent); opacity: 1; }
@media (max-width: 600px) { .lightbox figure { padding: 0 8px; } .lb-nav { width: 36px; height: 48px; font-size: 26px; } .lb-strip { justify-content: flex-start; } }
.d-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; margin-top: 20px; }
@media (max-width: 900px) { .d-grid { grid-template-columns: 1fr; } }
.sec-h { font: 700 21px/1.2 var(--sans); margin-bottom: 10px; }
.sub-h { font: 700 16px var(--sans); margin: 16px 0 8px; }
.lead { font-size: 15.5px; color: var(--ink-2); margin: 0; }
.ams-lg { font-size: 14px; gap: 8px 18px; }
.ams-lg .ic { width: 19px; height: 19px; color: var(--ok); }
.hl { background: var(--accent-soft); border-radius: var(--radius); padding: 16px; align-self: start; }
.hl h3 { font: 700 16px var(--sans); margin-bottom: 8px; }
.hl ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.hl li { display: flex; gap: 8px; align-items: flex-start; }
.hl .ic { color: var(--accent); margin-top: 3px; }
.btn.wide { width: 100%; }
.hl-map { height: 170px; border-radius: 8px; overflow: hidden; margin-top: 12px; border: 1px solid var(--line); }
.hl-map #map { width: 100%; height: 100%; }

.avail-sec { margin-top: 30px; scroll-margin-top: 12px; }
.hint { color: var(--ink-2); font-size: 14px; margin: 0 0 10px; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.avail { width: 100%; border-collapse: collapse; font-size: 14px; }
.avail th { background: var(--ink); color: var(--bg); text-align: left; padding: 10px 12px; font-weight: 600; font-size: 13px; position: sticky; top: 0; }
.avail td { padding: 12px; vertical-align: top; border-top: 1px solid var(--line); }
.avail tr.rate-row td { border-top: 1px dashed var(--line); }
.avail td + td { border-left: 1px solid var(--line); }
.c-type { width: 32%; background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
.c-name { font-weight: 700; color: var(--link); font-size: 15px; text-decoration: underline; text-underline-offset: 2px; }
.c-sub { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.c-desc { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.c-ams { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--ink-2); margin-top: 8px; }
.c-ams span { display: inline-flex; align-items: center; gap: 4px; }
.c-guests { white-space: nowrap; }
.persons .ic { width: 15px; height: 15px; margin-right: -3px; }
.c-price { white-space: nowrap; }
.pp { font: 700 18px var(--sans); }
.pn, .pt { font-size: 12px; color: var(--ink-3); }
.c-opts { font-size: 13px; }
.rname { font-weight: 600; margin-bottom: 4px; }
.opt { display: flex; align-items: center; gap: 6px; }
.opt.ok { color: var(--ok); }
.opt.bad { color: var(--bad); }
.rcanc { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.c-book { width: 1%; vertical-align: middle !important; text-align: center; }
.c-note { font-size: 11.5px; color: var(--ink-3); margin-top: 6px; white-space: normal; max-width: 140px; }
.c-na { color: var(--bad); font-weight: 600; }
#cat-komfort, .cat-row { scroll-margin-top: 12px; }
@media (max-width: 760px) {
  table.avail, .avail tbody, .avail tr, .avail td { display: block; width: 100%; }
  .avail thead { display: none; }
  .avail td + td { border-left: 0; }
  .avail tr.cat-row { border-top: 3px solid var(--line); }
  .avail td.c-guests { display: none; }
  .c-type { width: auto; }
  .c-book .btn { width: 100%; }
}

.footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13.5px; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 40px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; gap: 16px; }
.c-photo { display: block; width: 100%; max-width: 220px; aspect-ratio: 4 / 3; margin-bottom: 8px; border: 0; border-radius: 8px; background: #ddd center / cover no-repeat; position: relative; cursor: zoom-in; padding: 0; }
.c-photo span { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 12px; padding: 2px 7px; border-radius: 6px; }
.c-price .was { color: var(--ink-3); text-decoration: line-through; font-size: 13px; }
.c-price .deal { display: inline-block; margin-top: 4px; padding: 2px 7px; border-radius: 4px; background: var(--ok, #2e7d4f); color: #fff; font-size: 12px; font-weight: 600; }
.map-consent { height: 100%; min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; background: var(--surface-2, #f1ede6); color: var(--ink-2); font-size: 14px; }
.map-consent p { margin: 0; max-width: 420px; }
/* Rechtstexte (Impressum, Datenschutz) */
.legal { max-width: 820px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 40px) 56px; line-height: 1.65; }
.legal h1 { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: clamp(28px, 4vw, 38px); margin: 8px 0 20px; }
.legal h2 { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 21px; margin: 32px 0 8px; }
.legal h3 { font-size: 16px; margin: 20px 0 6px; }
.legal p, .legal li { color: var(--ink-2); }
.legal a { color: var(--link); }
.legal .stand { font-size: 13px; color: var(--ink-3); margin-top: 36px; }

/* ---------- Weimar-Apart-Startseite (Hero, Schnellfilter, Häuser-Kacheln, Vorteile, FAQ) ---------- */
.wa-hero { position: relative; background: var(--band) center/cover no-repeat; color: #fff; padding: clamp(56px, 10vw, 120px) clamp(16px, 4vw, 40px) 90px; }
.wa-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40,28,18,.45), rgba(40,28,18,.72)); }
.wa-hero-in { position: relative; max-width: 1180px; margin: 0 auto; }
.wa-mark { display: block; width: 46px; height: 62px; margin-bottom: 14px; background: #F2C185; -webkit-mask: url(/img/logos/weimar-apart-icon.svg) center/contain no-repeat; mask: url(/img/logos/weimar-apart-icon.svg) center/contain no-repeat; }
.wa-hero h1 { font: 600 clamp(30px, 5vw, 54px)/1.1 var(--serif); max-width: 820px; margin: 0; text-shadow: 0 2px 16px rgba(0,0,0,.3); }
.wa-hero p { font-size: clamp(16px, 1.8vw, 20px); max-width: 680px; margin: 14px 0 26px; opacity: .95; }
.wa-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.wa-cta .btn { padding: 13px 22px; font-size: 16px; }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.btn-light:hover { background: rgba(255,255,255,.24); }
.quick-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.quick-f > span { font-weight: 600; font-size: 14px; color: var(--ink-2); margin-right: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 7px 14px; font: 500 14px var(--sans); cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip .ic { width: 15px; height: 15px; }
.wa-sec { max-width: 1180px; margin: 0 auto; padding: 56px clamp(16px, 4vw, 40px) 0; }
.wa-sec h2 { font: 600 clamp(24px, 3vw, 34px)/1.15 var(--serif); margin: 0 0 6px; }
.wa-sec .sub { color: var(--ink-2); margin: 0 0 22px; }
.htiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.htile { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--hc); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.htile-img { position: relative; display: block; aspect-ratio: 3 / 2; }
.htile-img .ph { width: 100%; height: 100%; }
.htile-logo { position: absolute; left: 14px; bottom: -26px; width: 56px; height: 56px; border-radius: 50%; background: var(--surface); box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.htile-logo::after { content: ''; position: absolute; inset: 9px; background: var(--hc); -webkit-mask: var(--logo) center/contain no-repeat; mask: var(--logo) center/contain no-repeat; }
.htile-b { padding: 34px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.htile-b h3 { font: 600 19px/1.2 var(--serif); margin: 0; }
.htile-b h3 a { color: var(--ink); text-decoration: none; }
.htile-b .loc { font-size: 13px; color: var(--ink-3); }
.htile-b p { margin: 4px 0; font-size: 14.5px; color: var(--ink-2); }
.htile-f { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: 14px; margin: auto 0 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.htile .btn { align-self: flex-start; }
.usps { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.usp { background: var(--accent-soft); border-radius: var(--radius); padding: 18px; }
.usp h3 { font: 600 17px var(--serif); margin: 0 0 6px; color: var(--link); }
.usp p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.journey { list-style: none; counter-reset: j; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.journey li { counter-increment: j; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 64px; position: relative; display: flex; flex-direction: column; gap: 4px; }
.journey li::before { content: counter(j); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 600 16px var(--serif); }
.journey span { color: var(--ink-2); font-size: 14.5px; }
.homemap { height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.wa-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; }
.wa-faq summary { cursor: pointer; padding: 14px 44px 14px 18px; font-weight: 600; list-style: none; position: relative; }
.wa-faq summary::-webkit-details-marker { display: none; }
.wa-faq summary::after { content: '+'; position: absolute; right: 18px; top: 10px; font-size: 22px; color: var(--accent); }
.wa-faq details[open] summary::after { content: '–'; }
.wa-faq details p { margin: 0; padding: 0 18px 16px; color: var(--ink-2); }
.wa-contact { margin: 18px 0 56px; color: var(--ink-2); }
@media (prefers-color-scheme: dark) { .usp h3 { color: #F2C185; } .htile-logo { background: #f5f3ef; } }

/* Datumsfelder: ganzes Feld öffnet den Kalender; Kalender-Symbol passend zum hellen/dunklen Modus */
.sb-field input[type="date"] { cursor: pointer; color-scheme: light; }
.sb-field input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .75; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sb-field input[type="date"] { color-scheme: dark; } :root:not([data-theme="light"]) .sb-field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .9; } }
:root[data-theme="dark"] .sb-field input[type="date"] { color-scheme: dark; }
