/* =========================================================
   GUERMACHE – Übersicht & Inseratseite (gemeinsames Design)
   1 Farben · 2 Grundlagen · 3 Kopfzeile · 4 Suchleiste & Popover
   5 Kalender · 6 Gäste-Zähler · 7 Filter · 8 Karten & Raster
   9 Karte (Map) · 10 Hinweis & Fuß · 11 Handy
   ========================================================= */

@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- 1 · Farben ----------
   Abgestimmt auf Sammys Website guermache-apartments.com (Stand 24.11.2026):
   Tinte #2D2A27 / #3D3935 · Creme #F7F4EF / #EFE9E2 · Sand #C6AA92 / #DFCDBD · Stein #686059 · Taupe #827C76 · Weiß #FFFDF9
   (Variablennamen --navy … bleiben aus Kompatibilität, Inhalt ist jetzt das warme Dunkelbraun.) */
:root {
  --navy: #2D2A27;          /* Tinte dunkel – Knöpfe, Überschriften */
  --navy-2: #3D3935;        /* Tinte */
  --taupe: #827C76;
  --sand: #EFE9E2;          /* Creme dunkel – Bereiche & Hover */
  --sand-akzent: #C6AA92;   /* Sand – Akzent wie auf der Live-Seite */
  --hg: #F7F4EF;            /* Creme – Seitenhintergrund */
  --flaeche: #EFE9E2;
  --pop: #FFFDF9;           /* Karten, Fenster */
  --text: #2D2A27;
  --text-2: #686059;        /* Stein */
  --linie: rgba(45, 42, 39, .12);
  --schatten: 0 1px 2px rgba(45, 42, 39, .06), 0 10px 28px -14px rgba(45, 42, 39, .28);
  --schatten-pop: 0 4px 12px rgba(45, 42, 39, .08), 0 24px 60px -18px rgba(45, 42, 39, .38);
  --akzent: var(--navy);
  --akzent-text: #FFFDF9;
  --akzent-weich: rgba(45, 42, 39, .07);
  --stern: #B08D6E;         /* Sand, etwas kräftiger für Lesbarkeit */
  --kopf-h: 150px;
  --rand: clamp(16px, 4vw, 48px);
  --breite: 1760px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sand: #34302C;
    --hg: #1C1A18;
    --flaeche: #24211F;
    --pop: #2A2724;
    --text: #F3EEE7;
    --text-2: #B5AAA0;
    --linie: rgba(255, 248, 238, .12);
    --schatten: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -14px rgba(0, 0, 0, .7);
    --schatten-pop: 0 4px 12px rgba(0, 0, 0, .4), 0 24px 60px -18px rgba(0, 0, 0, .8);
    --akzent: #EFE9E2;
    --akzent-text: #2D2A27;
    --akzent-weich: rgba(239, 233, 226, .12);
    --stern: #DFCDBD;
  }
}

/* ---------- 2 · Grundlagen ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--hg); color: var(--text);
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: 8px; }
svg { flex-shrink: 0; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--akzent); color: var(--akzent-text); font-weight: 600;
  padding: 11px 20px; border-radius: 10px; transition: transform .15s, opacity .2s;
}
.knopf:hover { opacity: .92; } .knopf:active { transform: scale(.98); }
.knopf--rand { background: transparent; color: var(--text); border: 1px solid var(--text); }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 3 · Kopfzeile ---------- */
.kopf {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--hg) 94%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--linie);
}
.kopf__innen {
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--rand); max-width: var(--breite); margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo span { font-family: "Cormorant", Georgia, serif; font-weight: 600; font-size: 20px; line-height: .95; letter-spacing: .01em; }
.logo small { display: block; font-family: "Instrument Sans", sans-serif; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--taupe); font-weight: 600; margin-top: 3px; }
@media (prefers-color-scheme: dark) { .logo img { filter: invert(1) brightness(1.4); } }
.kopf__rechts { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.kopf__knopf {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px;
  padding: 10px 14px; border-radius: 999px; border: 1px solid var(--linie); position: relative;
}
.kopf__knopf:hover { background: var(--flaeche); }
.kopf__knopf svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.kopf__zahl {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px; line-height: 18px; text-align: center;
  background: var(--akzent); color: var(--akzent-text);
}

/* ---------- 4 · Suchleiste & Popover ---------- */
.suche {
  flex: 1; max-width: 820px; margin: 0 auto; position: relative;
  display: flex; align-items: center;
  border: 1px solid var(--linie); border-radius: 999px; background: var(--pop);
  box-shadow: var(--schatten); padding: 6px;
}
.suche__teil { flex: 1; min-width: 0; position: relative; display: flex; }
.suche__teil--datum { flex: 1.35; }
.suche__teil + .suche__teil::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--linie);
}
.suche__feld {
  flex: 1; min-width: 0; text-align: left; display: flex; flex-direction: column;
  padding: 8px 20px; border-radius: 999px; transition: background .15s;
}
.suche__feld:hover { background: var(--flaeche); }
.suche__feld.offen { background: var(--pop); box-shadow: 0 0 0 1px var(--linie), var(--schatten); position: relative; z-index: 1; }
.suche__feld span { font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.suche__feld em { font-style: normal; font-size: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suche__feld:not(.leer) em { color: var(--text); }
.suche__knopf {
  height: 48px; padding: 0 18px; border-radius: 999px; flex-shrink: 0;
  background: var(--akzent); color: var(--akzent-text); font-weight: 600;
  display: flex; align-items: center; gap: 8px; transition: transform .2s;
}
.suche__knopf svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.suche__knopf:hover { transform: scale(1.03); }

.pop {
  position: absolute; top: calc(100% + 12px); left: 0; z-index: 60;
  background: var(--pop); border: 1px solid var(--linie); border-radius: 24px;
  box-shadow: var(--schatten-pop); padding: 16px;
  animation: popAuf .18s ease both;
}
@keyframes blattAuf { from { transform: translateY(40px); opacity: 0; } }
@keyframes popAuf { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.pop--stadt { width: 380px; padding: 12px; }
.pop--gaeste { width: 380px; left: auto; right: 0; padding: 8px 24px; }
/* Kalender: großes Fenster mittig über der Seite (hängt an <body>) */
.kalfenster {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: start center; padding: 96px 16px 24px;
  background: rgba(5, 8, 12, .55); overflow-y: auto; animation: dimmen .18s ease both;
}
@keyframes dimmen { from { background: rgba(5, 8, 12, 0); } }
html.kal-offen { overflow: hidden; }
.pop--kal { position: relative; top: auto; left: auto; width: min(920px, 100%); padding: 22px 30px 20px; border-radius: 28px; }
.kalwahl { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--linie); margin-bottom: 4px; }
.kalwahl > svg { width: 18px; height: 18px; fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kalwahl__feld { display: grid; text-align: left; min-width: 190px; padding: 10px 16px; border: 1px solid var(--linie); border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
.kalwahl__feld small { font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: var(--text-2); }
.kalwahl__feld b { font-size: 16px; font-weight: 600; }
.kalwahl__feld.aktiv { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.kalwahl__naechte { margin-left: auto; font-weight: 700; font-size: 15px; }
.kalfenster__zu { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.kalwahl__naechte:empty + .kalfenster__zu { margin-left: auto; }
.kalfenster__zu:hover { background: var(--flaeche); }
.kalfenster__zu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.pop--kal .pop__fuss { justify-content: space-between; border-top: 1px solid var(--linie); padding-top: 14px; margin-top: 14px; }
.pop__fuss-rechts { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.pop__kopf { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.pop__kopf b { font-size: 20px; }
.pop__kopf small { color: var(--text-2); font-size: 14px; }
.pop__fuss { display: flex; justify-content: flex-end; align-items: center; gap: 20px; margin-top: 8px; }

.stadtliste button {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 10px 12px; border-radius: 14px; transition: background .15s;
}
.stadtliste button:hover { background: var(--flaeche); }
.stadtliste button.an { background: var(--akzent-weich); }
.stadtliste i {
  width: 48px; height: 48px; border-radius: 12px; background: var(--sand); color: var(--navy);
  display: grid; place-items: center; flex-shrink: 0;
}
@media (prefers-color-scheme: dark) { .stadtliste i { color: var(--akzent); } }
.stadtliste i svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stadtliste b { display: block; font-weight: 600; }
.stadtliste small { color: var(--text-2); font-size: 13px; }

/* ---------- 5 · Kalender ---------- */
.kal { position: relative; user-select: none; -webkit-user-select: none; }
.kal__kopf { position: absolute; left: 0; right: 0; top: 10px; display: flex; justify-content: space-between; pointer-events: none; }
.kal__nav {
  pointer-events: auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  transition: background .15s;
}
.kal__nav:hover:not(:disabled) { background: var(--flaeche); }
.kal__nav:disabled { opacity: .25; }
.kal__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.kal__monate { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; }
.kal__monat h4 { text-align: center; font-size: 17px; font-weight: 700; padding: 16px 0 14px; }
.kal__wt, .kal__tage { display: grid; grid-template-columns: repeat(7, 1fr); }
.kal__wt span { text-align: center; font-size: 12px; font-weight: 600; color: var(--text-2); padding-bottom: 8px; }
.kal__tage { row-gap: 2px; touch-action: none; }
.kal__tag {
  position: relative; aspect-ratio: 1; min-height: 44px; max-height: 58px; width: 100%; display: grid; place-items: center;
  font-size: 15px; font-weight: 600;
}
.kal__tag span {
  position: relative; z-index: 1; width: 88%; height: 88%; border-radius: 50%;
  display: grid; place-items: center; transition: background .12s, color .12s;
}
.kal__tag:hover:not(:disabled) span { box-shadow: inset 0 0 0 1.5px var(--text); }
.kal__tag:disabled { color: var(--text-2); opacity: .35; text-decoration: line-through; }
/* Bereich: Band zwischen Anreise und Abreise */
.kal__tag.drin::before, .hat-bereich .kal__tag.start::before, .hat-bereich .kal__tag.ende::before {
  content: ""; position: absolute; top: 6%; bottom: 6%; left: 0; right: 0; background: var(--sand);
}
.hat-bereich .kal__tag.start::before { left: 50%; }
.hat-bereich .kal__tag.ende::before { right: 50%; }
.kal__tag.start span, .kal__tag.ende span { background: var(--akzent); color: var(--akzent-text); box-shadow: none; }
.kal__tipp { font-size: 12px; color: var(--text-2); margin-top: 10px; }

/* ---------- 6 · Gäste-Zähler ---------- */
.gz__zeile { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; }
.gz__zeile + .gz__zeile { border-top: 1px solid var(--linie); }
.gz__zeile b { display: block; font-weight: 600; }
.gz__zeile small { color: var(--text-2); font-size: 13px; }
.gz__regler { display: flex; align-items: center; gap: 14px; }
.gz__regler output { min-width: 18px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.gz__regler button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--linie-stark, rgba(127,127,127,.45));
  display: grid; place-items: center; transition: border-color .15s, transform .1s;
}
.gz__regler button:hover:not(:disabled) { border-color: var(--text); }
.gz__regler button:active:not(:disabled) { transform: scale(.9); }
.gz__regler button:disabled { opacity: .25; }
.gz__regler svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.gz__zeile--aus { opacity: .55; }
.pop--kal .kal__tipp { display: none; }   /* Hinweis steht unten im Fenster */
.gz__info { font-size: 12px; color: var(--text-2); padding: 4px 0 12px; }

/* ---------- 7 · Filter ---------- */
.filterleiste { position: relative; display: flex; align-items: center; gap: 16px; max-width: var(--breite); margin: 0 auto; padding: 10px var(--rand) 14px; }
.filter { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.filter::-webkit-scrollbar { display: none; }
.filter .i { width: 18px; height: 18px; }
/* Pillen mit Aufklapp-Fenster: Preis · Betten · Gäste · Ausstattung */
.fpille, .fchip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border: 1px solid var(--linie); border-radius: 999px; font-size: 13.5px; font-weight: 600; white-space: nowrap;
  background: var(--pop); transition: border-color .15s, background .15s, color .15s;
}
.fpille:hover, .fchip:hover { border-color: var(--text); }
.fpille__pfeil { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.fpille.offen { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.fpille.offen .fpille__pfeil { transform: rotate(180deg); }
.fpille.an, .fchip[aria-pressed="true"] { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); }
.filter__trenner { flex-shrink: 0; width: 1px; height: 26px; background: var(--linie); margin: 0 6px; }
.filter__reset { flex-shrink: 0; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 0 8px; color: var(--text-2); }
.filter__reset:hover { color: var(--text); }

.fpop {
  position: absolute; top: calc(100% - 6px); left: 0; z-index: 60; width: 380px; max-width: calc(100vw - 2 * var(--rand));
  background: var(--pop); border: 1px solid var(--linie); border-radius: 20px;
  box-shadow: var(--schatten-pop); padding: 20px 22px 16px; animation: popAuf .16s ease both;
}
.fpop h3 { font-size: 17px; margin-bottom: 14px; }
.fpop .klein { font-size: 12.5px; margin-top: 10px; }
.fpop__fuss { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--linie); margin-top: 16px; padding-top: 14px; }
.stufen { display: flex; flex-wrap: wrap; gap: 8px; }
.stufen button { min-width: 52px; height: 40px; padding: 0 14px; border: 1px solid var(--linie); border-radius: 999px; font-weight: 600; font-size: 14px; }
.stufen button:hover { border-color: var(--text); }
.stufen button[aria-checked="true"] { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); }
.merkmale { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: 330px; overflow-y: auto; }
.merkmal { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--linie); border-radius: 12px; cursor: pointer; font-size: 13.5px; font-weight: 500; }
.merkmal input { position: absolute; opacity: 0; pointer-events: none; }
.merkmal .i { width: 20px; height: 20px; color: var(--text-2); }
.merkmal span { flex: 1; line-height: 1.2; }
.merkmal small { color: var(--text-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.merkmal:hover { border-color: var(--text); }
.merkmal:has(input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); background: var(--akzent-weich); }
.merkmal:has(input:checked) .i { color: var(--text); }
.merkmal:has(input:focus-visible) { outline: 2px solid var(--akzent); outline-offset: 2px; }
.merkmal.aus { opacity: .45; }
/* Preis: zwei Regler übereinander */
.preisregler { position: relative; height: 32px; margin: 4px 4px 10px; }
.preisregler__spur { position: absolute; left: 0; right: 0; top: 50%; height: 4px; translate: 0 -50%; border-radius: 2px;
  background: linear-gradient(90deg, var(--linie) var(--von), var(--akzent) var(--von), var(--akzent) var(--bis), var(--linie) var(--bis)); }
.preisregler input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.preisregler input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--pop); border: 1px solid var(--linie); box-shadow: 0 2px 6px rgba(0,0,0,.25); cursor: grab; }
.preisregler input::-moz-range-thumb { pointer-events: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--pop); border: 1px solid var(--linie); box-shadow: 0 2px 6px rgba(0,0,0,.25); cursor: grab; }
.preisregler input::-webkit-slider-runnable-track { background: none; }
.preisfelder { display: flex; align-items: center; gap: 12px; }
.preisfelder label { flex: 1; border: 1px solid var(--linie); border-radius: 12px; padding: 8px 12px; display: grid; }
.preisfelder small { font-size: 11.5px; color: var(--text-2); }
.preisfelder b { font-size: 15px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .fpop { left: var(--rand) !important; right: var(--rand); width: auto; max-width: none; }
  .merkmale { grid-template-columns: 1fr; }
}
.kartenschalter {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600;
  padding: 10px 14px; border: 1px solid var(--linie); border-radius: 12px;
}
.kartenschalter i { width: 34px; height: 20px; border-radius: 10px; background: var(--linie); position: relative; transition: background .2s; }
.kartenschalter i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.kartenschalter[aria-pressed="true"] i { background: var(--akzent); }
.kartenschalter[aria-pressed="true"] i::after { transform: translateX(14px); }

/* ---------- 8 · Karten & Raster ---------- */
.inhalt { max-width: var(--breite); margin: 0 auto; padding: 24px var(--rand) 64px; display: grid; grid-template-columns: 1fr; gap: 28px; }
.inhalt.mit-karte { grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr); }
.ergebnis { margin: 0 0 18px; color: var(--text-2); font-size: 14px; }
.ergebnis b { color: var(--text); }
.raster { display: grid; gap: 40px 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.karte { position: relative; animation: rein .4s ease both; }
@keyframes rein { from { opacity: 0; transform: translateY(8px); } }
.karte__bild { position: relative; aspect-ratio: 20 / 19; border-radius: 14px; overflow: hidden; background: var(--flaeche); }
.karte__spur { display: flex; height: 100%; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.karte__spur img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.karte__pfeil {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.94); color: #15181D; box-shadow: 0 2px 6px rgba(0,0,0,.18);
  display: grid; place-items: center; opacity: 0; transition: opacity .2s, transform .2s;
}
.karte__pfeil svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.karte__pfeil:hover { transform: scale(1.08); }
.karte__pfeil--l { left: 10px; } .karte__pfeil--r { right: 10px; }
.karte__pfeil[disabled] { visibility: hidden; }
.karte:hover .karte__pfeil, .karte__pfeil:focus-visible { opacity: 1; }
@media (hover: none) {
  .karte__pfeil { display: none; }
  .karte__spur { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; transition: none; }
  .karte__spur::-webkit-scrollbar { display: none; }
  .karte__spur img { scroll-snap-align: start; }
}
.karte__punkte { position: absolute; bottom: 12px; left: 50%; translate: -50% 0; z-index: 2; display: flex; gap: 5px; }
.karte__punkte i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); transition: background .2s, transform .2s; }
.karte__punkte i.an { background: #fff; transform: scale(1.15); }

/* Stern = auf die Wunschliste */
.merken {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: 36px; height: 36px;
  display: grid; place-items: center; transition: transform .15s;
}
.merken:active { transform: scale(.82); }
.merken svg { width: 26px; height: 26px; fill: rgba(0,0,0,.42); stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; transition: fill .2s; }
.merken.an svg { fill: var(--stern); animation: sternPop .35s ease; }
@keyframes sternPop { 40% { transform: scale(1.3) rotate(-8deg); } }

.karte__marke {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: rgba(255,255,255,.96); color: #15181D; font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px; box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.karte__text { padding-top: 12px; display: grid; gap: 2px; }
.karte__zeile1 { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.note { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; white-space: nowrap; }
.note svg { width: 12px; height: 12px; fill: currentColor; }
.note small { font-size: 11px; color: var(--text-2); margin-left: 2px; }   /* „Haus“: Wertung gilt fürs ganze Haus */
.grau { color: var(--text-2); }
.karte__preis { margin-top: 4px; }
.karte__preis b { font-weight: 700; }
.karte__link { position: absolute; inset: 0; z-index: 1; border-radius: 14px; }
.karte.hervor .karte__bild { box-shadow: 0 0 0 3px var(--akzent); }

.keine-treffer { text-align: center; padding: 60px 0; color: var(--text-2); grid-column: 1 / -1; }
.keine-treffer button { text-decoration: underline; font-weight: 600; color: var(--text); }

/* ---------- 9 · Map ---------- */
.kartenbox {
  position: sticky; top: calc(var(--kopf-h) + 16px); height: calc(100vh - var(--kopf-h) - 40px);
  border-radius: 18px; overflow: hidden; background: var(--flaeche); border: 1px solid var(--linie);
}
.kartenbox > div { width: 100%; height: 100%; }
.karte-fehlt { display: grid; place-items: center; height: 100%; padding: 24px; text-align: center; color: var(--text-2); }
.preispin {
  display: inline-block; transform: translate(-50%, -50%); white-space: nowrap;
  background: var(--pop); color: var(--text); font: 700 13px/1 "Instrument Sans", sans-serif;
  padding: 8px 11px; border-radius: 999px; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 3px 10px rgba(0,0,0,.22);
  transition: transform .15s, background .15s, color .15s;
}
.preispin.an, .preispin:hover { background: var(--akzent); color: var(--akzent-text); transform: translate(-50%, -50%) scale(1.12); z-index: 1000; }
.preispin.gemerkt::before { content: "★ "; color: var(--stern); }
.leaflet-container { font-family: inherit; background: var(--flaeche); }
.leaflet-popup-content-wrapper { border-radius: 16px; padding: 0; overflow: hidden; background: var(--pop); color: var(--text); }
.leaflet-popup-content { margin: 0; width: 260px !important; }
.leaflet-popup-tip { background: var(--pop); }
.leaflet-container a.leaflet-popup-close-button { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); top: 6px; right: 6px; }
.minikarte img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.minikarte div { padding: 10px 14px 14px; display: grid; gap: 2px; }
.minikarte b { font-size: 14px; }
.minikarte span { color: var(--text-2); font-size: 13px; }
.kartenknopf-handy {
  display: none; position: fixed; bottom: 24px; left: 50%; translate: -50% 0; z-index: 45;
  background: var(--navy); color: #fff; font-weight: 600; padding: 13px 20px; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,.3); align-items: center; gap: 8px;
}
.kartenknopf-handy svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* ---------- 10 · Hinweis & Fuß ---------- */
.hinweis {
  position: fixed; left: 50%; bottom: 28px; translate: -50% 20px; z-index: 100; opacity: 0; pointer-events: none;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: opacity .2s, translate .25s;
}
.hinweis.an { opacity: 1; translate: -50% 0; }
.fuss {
  border-top: 1px solid var(--linie); background: var(--flaeche);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 20px var(--rand); font-size: 13px; color: var(--text-2);
}
.fuss a:hover { text-decoration: underline; }

/* ---------- 11 · Handy ---------- */
@media (max-width: 1100px) {
  .inhalt.mit-karte { grid-template-columns: 1fr; }
  .inhalt.mit-karte .kartenbox { display: none; }
  .kartenschalter { display: none; }
  .kartenknopf-handy { display: inline-flex; }
  body.karte-voll .inhalt .kartenbox {
    display: block; position: fixed; inset: var(--kopf-h) 0 0 0; height: auto; border-radius: 0; z-index: 30; border: 0;
  }
}
@media (max-width: 900px) {
  .kopf__innen { flex-wrap: wrap; gap: 12px; }
  .kopfnav { margin-left: auto; }   /* Knöpfe rechtsbündig neben dem Logo (früher .kopf__rechts) */
  .suche { order: 3; flex-basis: 100%; border-radius: 22px; }
  .suche__feld { padding: 6px 12px; }
  .suche__knopf { padding: 0 14px; } .suche__knopf span { display: none; }
  .pop--stadt, .pop--gaeste { width: calc(100vw - 2 * var(--rand)); max-width: 420px; }
  .pop--gaeste { right: -60px; }
  /* Handy: Kalender als Blatt von unten */
  .kalfenster { place-items: end stretch; padding: 0; }
  .pop--kal { width: 100%; border-radius: 24px 24px 0 0; max-height: 92vh; overflow-y: auto; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); animation: blattAuf .22s ease both; }
  .kalwahl { flex-wrap: wrap; gap: 8px; }
  .kalwahl > svg { display: none; }
  .kalwahl__feld { min-width: 0; flex: 1; padding: 8px 12px; }
  .kalwahl__feld b { font-size: 14px; }
  .kalwahl__naechte { order: 5; flex-basis: 100%; margin: 0; font-size: 14px; }
  .kalwahl__naechte:empty { display: none; }
  .kalfenster__zu { order: -1; margin-left: auto; width: 34px; height: 34px; }
  .kalwahl { flex-direction: row; }
  .pop--kal .pop__fuss { flex-direction: column; align-items: stretch; gap: 10px; }
  .pop__fuss-rechts { justify-content: space-between; }
  .filter { gap: 8px; }
}
@media (max-width: 560px) {
  .suche__teil:first-child { flex: .8; }
  .suche__feld em { font-size: 13px; }
  .raster { grid-template-columns: 1fr; gap: 32px; }
  .weg-handy { display: none; }   /* z. B. „Anmelden“ – steht am Handy im Menü */
}

/* ---------- 3D-Karte (MapLibre) ---------- */
.maplibregl-map { font-family: inherit; background: var(--flaeche); }
.marker-huelle { cursor: pointer; }
.preispin { transform: none; }
.preispin.an, .preispin:hover { transform: scale(1.12); }
.maplibregl-popup-content { border-radius: 16px; padding: 0; overflow: hidden; background: var(--pop); color: var(--text); box-shadow: var(--schatten-pop); }
.maplibregl-popup-tip { border-top-color: var(--pop) !important; border-bottom-color: var(--pop) !important; }
.maplibregl-popup-close-button { color: #fff; font-size: 20px; width: 30px; height: 30px; text-shadow: 0 1px 3px rgba(0,0,0,.6); z-index: 2; }
.maplibregl-popup .minikarte { display: block; width: 260px; }
.maplibregl-ctrl-group { border-radius: 12px !important; overflow: hidden; box-shadow: var(--schatten) !important; background: var(--pop) !important; }
.maplibregl-ctrl-group button + button { border-top-color: var(--linie) !important; }
@media (prefers-color-scheme: dark) { .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1); } }
.knopf-3d { font-weight: 700; font-size: 12px; color: var(--text) !important; }
.maplibregl-ctrl-attrib { background: color-mix(in srgb, var(--pop) 80%, transparent) !important; color: var(--text-2); font-size: 10px; }
.maplibregl-ctrl-attrib a { color: var(--text-2); }
.maplibregl-cooperative-gesture-screen { font-family: inherit; font-weight: 600; }

/* ---------- Kopfleiste rechts + Kontomenü (js/konto.js) ---------- */
.kopfnav { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.kopfnav__link { font-size: 14px; font-weight: 600; padding: 10px 12px; border-radius: 999px; white-space: nowrap; }
.kopfnav__link:hover { background: var(--flaeche); }
.kopfnav__angebot { border: 1px solid var(--linie); }
.kopfnav__anmelden { font-size: 14px; font-weight: 700; padding: 10px 14px; border-radius: 999px; background: var(--akzent); color: var(--akzent-text); white-space: nowrap; }
.kopfnav__rund { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; }
.kopfnav__rund:hover { background: var(--flaeche); }
.kopfnav__rund svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.kopfnav__rund .zaehler { position: absolute; top: 2px; right: 0; }
.zaehler {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center;
  background: var(--navy); color: #fff; font-variant-numeric: tabular-nums; flex-shrink: 0;
}
@media (prefers-color-scheme: dark) { .zaehler { background: var(--akzent); color: var(--akzent-text); } }
.zaehler.leise { background: var(--sand); color: var(--text); }
.kontomenue { position: relative; }
.kontoknopf {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 5px 5px 5px 14px; border-radius: 999px;
  border: 1px solid var(--linie); background: var(--pop); transition: box-shadow .2s;
}
.kontoknopf:hover, .kontoknopf[aria-expanded="true"] { box-shadow: var(--schatten); }
.kontoknopf > svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.kontoknopf__avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--text-2); color: var(--hg); font-size: 12px; font-weight: 700; }
.kontoknopf__avatar.an { background: var(--navy); color: #fff; letter-spacing: .03em; }
.kontoknopf__avatar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.kontoknopf__punkt { position: absolute; top: 2px; right: 2px; width: 11px; height: 11px; border-radius: 50%; background: #D9534F; box-shadow: 0 0 0 2px var(--pop); }
.kontoliste {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; width: 290px;
  background: var(--pop); border: 1px solid var(--linie); border-radius: 18px; box-shadow: var(--schatten-pop);
  padding: 8px; animation: popAuf .16s ease both;
}
.kontoliste__kopf { display: grid; gap: 2px; padding: 10px 12px 12px; border-bottom: 1px solid var(--linie); margin-bottom: 6px; }
.kontoliste__kopf b { font-size: 15px; }
.kontoliste__kopf span { font-size: 13px; color: var(--text-2); }
.kontoliste a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500;
  outline: none; transition: background .12s;
}
.kontoliste a:hover, .kontoliste a:focus-visible { background: var(--flaeche); }
.kontoliste a:focus-visible { box-shadow: inset 0 0 0 2px var(--akzent); }
.kontoliste a span:not(.zaehler) { flex: 1; }
.kontoliste a svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--text-2); }
.kontoliste a.aktiv { background: var(--akzent-weich); font-weight: 700; }
.kontoliste a.aktiv svg { color: var(--text); }
.kontoliste a.stark { font-weight: 700; }
.kontoliste hr { border: 0; border-top: 1px solid var(--linie); margin: 6px 4px; }
.demo-marke { display: inline-block; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: #FFF1C9; color: #6B5300; width: fit-content; }
@media (prefers-color-scheme: dark) { .demo-marke { background: #4A3D12; color: #F5DB8B; } }
.kontoliste .weg-gross { display: none; }
.kopf__platz { flex: 1; }
@media (max-width: 1180px) { .weg-mittel { display: none; } .kontoliste .weg-gross { display: flex; } .kontoliste hr.weg-gross { display: block; } }
@media (max-width: 560px) {
  /* Kopfleiste hat backdrop-filter → kein position:fixed möglich; daher unter dem Knopf, volle Breite */
  .kontoliste { width: calc(100vw - 2 * var(--rand)); max-height: calc(100vh - 110px); overflow-y: auto; }
  .kontoliste a { padding: 13px 12px; font-size: 15px; }
}

/* ---------- Newsletter-Fenster (js/konto.js) ---------- */
button.kopfnav__anmelden { cursor: pointer; }
.nlfenster { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(5, 8, 12, .55); animation: dimmen .18s ease both; overflow-y: auto; }
.nlkarte { position: relative; width: min(460px, 100%); background: var(--pop); border: 1px solid var(--linie); border-radius: 24px; box-shadow: var(--schatten-pop); padding: 32px 28px 26px; display: grid; gap: 12px; animation: popAuf .18s ease both; }
.nlkarte h2 { font-family: "Cormorant", Georgia, serif; font-size: 30px; font-weight: 600; line-height: 1.05; }
.nlkarte .grau { color: var(--text-2); font-size: 14.5px; }
.nlkarte__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--sand); }
.nlkarte__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nlkarte__zu { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.nlkarte__zu:hover { background: var(--flaeche); }
.nlkarte__zu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.nlkarte > .knopf { justify-self: start; margin-top: 6px; }
.nlform { display: grid; gap: 12px; margin-top: 4px; }
.nlform label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; }
.nlform label em { font-style: normal; font-weight: 400; }
.nlform input[type=email], .nlform input:not([type]) { border: 1px solid rgba(127,127,127,.45); border-radius: 12px; padding: 12px 14px; background: var(--hg); font-size: 15px; outline: none; }
.nlform input:focus { box-shadow: inset 0 0 0 2px var(--text); }
.nlhaken { grid-template-columns: auto 1fr; align-items: start; gap: 10px !important; font-weight: 400 !important; color: var(--text-2); line-height: 1.4; }
.nlhaken input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--akzent); }
.nlfehler { color: #D9534F; font-size: 13px; font-weight: 600; }
.nlform .knopf { padding: 13px 20px; }

/* ---------- Stammkundenrabatt (dezent, aber sichtbar) ---------- */
.ergebnis-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin: 0 0 18px; }
.ergebnis-zeile .ergebnis { margin: 0; }
.rabatt-pille {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px 7px 12px; border-radius: 999px;
  font-size: 13px; color: var(--text); background: color-mix(in srgb, var(--stern) 12%, var(--pop));
  border: 1px solid color-mix(in srgb, var(--stern) 45%, transparent); transition: background .15s, border-color .15s;
}
.rabatt-pille:hover { background: color-mix(in srgb, var(--stern) 20%, var(--pop)); border-color: var(--stern); }
.rabatt-pille > svg:first-child { width: 17px; height: 17px; fill: none; stroke: var(--stern); stroke-width: 1.8; stroke-linejoin: round; flex-shrink: 0; }
.rabatt-pille b { font-weight: 700; }
.rabatt-pille__pfeil { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .6; transition: transform .15s; }
.rabatt-pille:hover .rabatt-pille__pfeil { transform: translateX(2px); }
.nlkarte__icon--rabatt { background: color-mix(in srgb, var(--stern) 18%, var(--pop)); }
.nlkarte__icon--rabatt svg { stroke: var(--stern); }
.stammliste { display: grid; gap: 8px; margin: 2px 0 6px; font-size: 14px; }
.stammliste li { position: relative; padding-left: 22px; }
.stammliste li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 8px; height: 5px; border-left: 2px solid var(--stern); border-bottom: 2px solid var(--stern); transform: rotate(-45deg); }
.stammlink { justify-self: start; font-size: 13.5px; color: var(--text-2); }
@media (max-width: 560px) {
  .rabatt-pille { width: 100%; justify-content: flex-start; }
  .rabatt-pille span { flex: 1; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .rabatt-pille__pfeil { transition: none; } }

/* =========================================================
   SEO – Vorab-Inhalt (für Suchmaschinen & ohne JavaScript) und Info-Text unter der Liste
   ========================================================= */
.js .seo-vorab { display: none; }           /* mit JavaScript ersetzt die eigentliche Seite diesen Inhalt */
.seo-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.seo-karte { display: grid; gap: 6px; color: inherit; text-decoration: none; }
.seo-karte img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.seo-karte span { color: var(--taupe); }
.seo-wohnung { max-width: 900px; margin: 0 auto; padding: 24px var(--rand); line-height: 1.6; }
.seo-wohnung h1 { font-family: "Cormorant", Georgia, serif; font-size: 2.2rem; line-height: 1.15; }
.seo-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin: 16px 0; }
.seo-fotos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }

.seo-text { border-top: 1px solid var(--linie); background: var(--flaeche); }
.seo-text__innen { max-width: 900px; margin: 0 auto; padding: 56px var(--rand) 64px; line-height: 1.65; }
.seo-text h2 { font-family: "Cormorant", Georgia, serif; font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.15; margin: 0 0 14px; }
.seo-text h3 { font-size: 1.05rem; margin: 32px 0 10px; }
.seo-text p { margin: 0 0 12px; color: var(--text); }
.seo-faq details { border-bottom: 1px solid var(--linie); padding: 14px 0; }
.seo-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; line-height: 1; color: var(--taupe); }
.seo-faq details[open] summary::after { content: "–"; }
.seo-faq details p { margin: 10px 0 0; color: var(--taupe); }
.seo-links { margin-top: 28px !important; font-size: .95rem; }
.seo-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
