/* ==========================================================================
   Ostfriesland1.de — Design System
   Türkisblau mit Küstenflair (Sand / Nordseegrün)
   ========================================================================== */

:root {
  /* Farben: Türkisblau als Primär, warmer Sand als Akzent */
  --primary:        #0e7490;   /* cyan-700 */
  --primary-dark:   #064a60;   /* original brand */
  --primary-darker: #04344a;
  --primary-light:  #06b6d4;
  --primary-50:     #ecfeff;
  --primary-100:    #cffafe;

  --sand-50:        #fdfaf4;
  --sand-100:       #faf5ea;
  --sand-200:       #efe2c6;
  --sand-400:       #d9bc87;

  --accent:         #e07a3c;   /* Sonnenuntergang / Reet */
  --accent-dark:    #b85e28;

  --sea:            #2a9d8f;   /* Nordsee-Grün (verfügbar) */
  --danger:         #dc2626;

  --text:           #0f172a;
  --text-muted:     #475569;
  --text-subtle:    #64748b;
  --border:         #e2e8f0;
  --border-strong:  #cbd5e1;
  --bg:             #f8fafc;
  --bg-alt:         var(--sand-50);
  --surface:        #ffffff;

  /* Spacing Scale */
  --s-1: .25rem;  --s-2: .5rem;  --s-3: .75rem;  --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;   --s-7: 3rem;    --s-8: 4rem;
  --s-9: 6rem;

  /* Radii */
  --r-sm: 8px;  --r-md: 12px;  --r-lg: 20px;  --r-xl: 28px;  --r-pill: 999px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(15,23,42,.06);
  --sh-md: 0 4px 12px rgba(15,23,42,.08);
  --sh-lg: 0 12px 32px rgba(15,23,42,.12);
  --sh-xl: 0 24px 48px -12px rgba(6,74,96,.30);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               Helvetica, Arial, sans-serif;
  --font-display: 'Inter', system-ui, sans-serif;

  --max-base: 1200px;
  --max-narrow: 780px;

  --header-h: 76px;
  --header-h-mobile: 64px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw + .5rem, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2vw + .5rem, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p  { color: var(--text-muted); }
a  { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-base);
  margin-inline: auto;
  padding-inline: var(--s-4);
}

section {
  position: relative;
  color: var(--text);
}
section + section { margin-top: var(--s-6); }

/* Alt-Container Override aus section>.container, den altcode erwartet */
section .container {
  padding: var(--s-5) var(--s-4);
  max-width: var(--max-base);
  margin: auto;
  margin-top: calc(var(--header-h) + var(--s-5));
  min-height: auto;
  border-radius: var(--r-lg);
}
@media (max-width: 768px) {
  section .container { margin-top: calc(var(--header-h-mobile) + var(--s-4)); }
}

#content section .container { background: transparent; }

main { flex: 1; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--primary-dark);
  color: #fff;
  z-index: 1000;
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,.05);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  max-width: var(--max-base);
  margin: 0 auto;
  padding: 0 var(--s-4);
}
.site-header__logo { display: flex; align-items: center; }
.site-header__logo img {
  height: 56px;
  width: auto;
  transition: height .3s ease;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: var(--s-5);
  align-items: center;
}
.site-nav a {
  color: #fff;
  font-weight: 500;
  font-size: .95rem;
  position: relative;
  padding: var(--s-2) 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .25s ease;
}
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after { width: 100%; }
.site-nav svg { opacity: .7; }

.site-header__burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.site-header__burger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}

/* Transparent Header auf Start (Hero), bei Scroll solide */
#start .site-header {
  background: linear-gradient(180deg, rgba(4,52,74,.45) 0%, rgba(4,52,74,0) 100%);
  box-shadow: none;
}
#start .site-header.is-sticky {
  background: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(6,74,96,.25);
}

/* Mobile Nav */
@media (max-width: 900px) {
  .site-header { height: var(--header-h-mobile); }
  .site-header__logo img { height: 42px; }

  .site-nav {
    position: fixed;
    inset: var(--header-h-mobile) 0 auto 0;
    background: var(--primary-dark);
    padding: var(--s-6) var(--s-5);
    transform: translateY(-120%);
    transition: transform .3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,.25);
  }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-4);
  }
  .site-nav a { font-size: 1.1rem; }
  .site-header__burger { display: flex; }
  .site-header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header__burger.is-open span:nth-child(2) { opacity: 0; }
  .site-header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .1s ease, box-shadow .2s ease, background .2s ease;
  min-height: 48px;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(14,116,144,.25);
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 6px 18px rgba(14,116,144,.35); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(224,122,60,.3);
}
.btn-accent:hover { background: var(--accent-dark); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-block { width: 100%; }

/* ==========================================================================
   Hero mit Küsten-Akzent
   ========================================================================== */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + var(--s-8)) var(--s-4) var(--s-9);
  background: linear-gradient(
      135deg,
      rgba(4, 52, 74, .55) 0%,
      rgba(14, 116, 144, .35) 50%,
      rgba(42, 157, 143, .30) 100%),
    url('/assets/img/hero.webp') center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero::after {
  /* Sand-Welle unten als regionaler Akzent */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 60px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'><path d='M0,48 C320,80 520,0 720,32 C920,64 1120,8 1440,40 L1440,80 L0,80 Z' fill='%23f8fafc'/></svg>")
    no-repeat bottom / 100% 100%;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 820px;
  text-align: center;
}
.hero__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--r-pill);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .02em;
  margin-bottom: var(--s-5);
  color: #fff;
}
.hero h1 {
  color: #fff;
  margin-bottom: var(--s-4);
  text-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.hero p {
  color: rgba(255,255,255,.95);
  font-size: 1.125rem;
  margin-bottom: var(--s-6);
  text-shadow: 0 1px 10px rgba(0,0,0,.2);
}

/* ==========================================================================
   Suchmaske (Pill-Style wie Airbnb, mobile-optimiert)
   ========================================================================== */
.searchbar {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  padding: var(--s-3);
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: var(--s-2);
  align-items: stretch;
  text-align: left;
  position: relative;
  z-index: 5;
}

.searchbar__field {
  position: relative;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-lg);
  background: transparent;
  cursor: text;
  transition: background .15s ease;
  min-width: 0;
}
.searchbar__field:hover { background: var(--sand-50); }
.searchbar__field + .searchbar__field {
  border-left: 1px solid var(--border);
}
.searchbar__label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-subtle);
  margin-bottom: 2px;
}
.searchbar__field input,
.searchbar__field .searchbar__value {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  padding: 0;
}
.searchbar__field input::placeholder { color: var(--text-subtle); font-weight: 400; }

.searchbar__submit {
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 0 var(--s-5);
  min-width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(14,116,144,.3);
  transition: background .2s ease;
}
.searchbar__submit:hover { background: var(--primary-dark); }
.searchbar__submit svg { flex-shrink: 0; }
.searchbar__submit-label { white-space: nowrap; }

@media (max-width: 780px) {
  .searchbar {
    grid-template-columns: 1fr;
    gap: 0;
    padding: var(--s-3);
    border-radius: var(--r-lg);
  }
  .searchbar__field { padding: var(--s-4); }
  .searchbar__field + .searchbar__field {
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .searchbar__submit {
    margin-top: var(--s-3);
    padding: var(--s-4);
    width: 100%;
    min-height: 52px;
  }
  .searchbar__submit-label { display: inline; }
}

/* Autocomplete */
.autocomplete-items {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  max-height: 260px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  margin: 0;
}
.autocomplete-items div {
  padding: var(--s-3) var(--s-4);
  cursor: pointer;
  color: var(--text);
  font-size: .95rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.autocomplete-items div:last-child { border-bottom: none; }
.autocomplete-items div:hover { background: var(--primary-50); color: var(--primary-dark); }

/* Guest Selector (modernisiert) */
.guest-selector {
  position: relative;
  color: var(--text);
}
.guest-input {
  background: transparent;
  cursor: pointer;
  min-height: 24px;
  color: var(--text);
  font-weight: 500;
}
.guest-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  padding: var(--s-5);
  display: none;
  z-index: 50;
}
.guest-dropdown[data-open="true"] { display: block; }
.guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3) 0;
  gap: var(--s-4);
}
.guest-row + .guest-row { border-top: 1px solid var(--border); }
.guest-row > span:first-child { font-weight: 500; color: var(--text); }
.guest-controls {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.guest-controls .button {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  color: var(--primary);
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 600;
  background: var(--surface);
  transition: all .15s ease;
  user-select: none;
}
.guest-controls .button:hover {
  border-color: var(--primary);
  background: var(--primary-50);
}
.guest-controls > span:not(.button) {
  min-width: 20px; text-align: center;
  font-weight: 600;
}
.guest-done {
  display: inline-block;
  margin-top: var(--s-4);
  padding: var(--s-2) var(--s-4);
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-md);
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  width: 100%;
}
.guest-done:hover { background: var(--primary-dark); }

/* ==========================================================================
   Icon-Grid (Reiseziele)
   ========================================================================== */
.section-title {
  text-align: center;
  margin-bottom: var(--s-6);
}
.section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: var(--s-3);
}
.section-title h2::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 48px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-subtitle {
  color: var(--text-muted);
  max-width: 640px;
  margin: var(--s-3) auto 0;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s-5) var(--s-4);
  max-width: var(--max-base);
  margin: 0 auto;
}
.icon-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--text);
  transition: transform .25s ease;
  background: transparent;
  box-shadow: none;
  aspect-ratio: auto;
}
.icon-item a:hover {
  transform: translateY(-4px);
  color: var(--primary-dark);
  box-shadow: none;
}
.icon-img {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 6px 20px rgba(4, 52, 74, .15);
  transition: box-shadow .25s ease, transform .25s ease;
  background: transparent;
}
.icon-item a:hover .icon-img {
  box-shadow: 0 10px 28px rgba(4, 52, 74, .28);
}
.icon-label {
  position: static;
  padding: 0;
  background: transparent;
  color: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  border-radius: 0;
  transform: none;
  left: auto; right: auto; bottom: auto;
}

/* ==========================================================================
   Content/News (Stadt-Seiten)
   ========================================================================== */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.content-grid a {
  display: block;
  padding: var(--s-3) var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-weight: 500;
  transition: all .15s ease;
}
.content-grid a:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--sh-sm);
}

.prose { max-width: 780px; }
.prose h2 { margin: var(--s-6) 0 var(--s-3); }
.prose h3 { margin: var(--s-5) 0 var(--s-3); }
.prose p { margin-bottom: var(--s-4); color: var(--text); }
.prose ul, .prose ol { margin: 0 0 var(--s-4) var(--s-5); color: var(--text); }
.prose li { margin-bottom: var(--s-2); }
.prose strong { color: var(--primary-dark); }

/* ==========================================================================
   Tag-Landing-Pages
   ========================================================================== */
.tag-page__head {
  text-align: center;
  margin-bottom: var(--s-6);
}
.tag-page__icon { font-size: 3rem; margin-bottom: var(--s-3); }
.tag-page__intro {
  max-width: 680px;
  margin: var(--s-4) auto 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
.tag-page__stats {
  text-align: center;
  margin-bottom: var(--s-4);
  color: var(--text-muted);
}
.tag-page__empty {
  text-align: center;
  padding: var(--s-7) var(--s-4);
  color: var(--text-muted);
}
.tag-page__other {
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
}
.tag-page__other h2 {
  text-align: center;
  margin-bottom: var(--s-5);
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--s-3);
}
.tag-grid--large {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-4);
}
.tag-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: center;
  color: var(--text);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.tag-card:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.tag-card__icon { font-size: 2rem; }
.tag-card__name { font-weight: 600; }
.tag-card__intro {
  font-size: .85rem;
  color: var(--text-subtle);
  font-weight: 400;
}
.tag-card--large { padding: var(--s-5); gap: var(--s-3); }
.tag-card--large .tag-card__icon { font-size: 2.5rem; }

/* Rating-Sterne */
.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #f4b73d;
  font-size: 1rem;
  letter-spacing: 1px;
}
.rating-stars small { color: var(--text-subtle); font-size: .8rem; letter-spacing: 0; margin-left: 4px; }

/* ==========================================================================
   Mobile Accommodation-Preview-Sheet
   ========================================================================== */
.acc-preview[hidden] { display: none !important; }
.acc-preview {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.acc-preview__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 52, 74, .55);
  backdrop-filter: blur(3px);
  animation: accFade .2s ease-out;
}
@keyframes accFade { from { opacity: 0 } to { opacity: 1 } }

.acc-preview__sheet {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: 0 -12px 48px rgba(0, 0, 0, .3);
  max-height: 85vh;
  overflow-y: auto;
  animation: accSlideUp .3s cubic-bezier(.16,1,.3,1);
  display: flex;
  flex-direction: column;
}
@keyframes accSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* Drag-Handle oben (nur dekorativ auf Mobile) */
.acc-preview__handle {
  background: transparent;
  border: 0;
  padding: 10px 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
}
.acc-preview__handle span {
  display: block;
  width: 40px;
  height: 4px;
  background: var(--border-strong);
  border-radius: 2px;
}

.acc-preview__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--border);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.acc-preview__image {
  width: 100%;
  height: 220px;
  background: var(--sand-100);
  overflow: hidden;
  flex-shrink: 0;
}
.acc-preview__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.acc-preview__body {
  padding: var(--s-4) var(--s-4) var(--s-3);
  flex: 1 1 auto;
}
.acc-preview__title {
  font-size: 1.2rem;
  margin: 0 0 4px;
  line-height: 1.3;
}
.acc-preview__location {
  color: var(--text-muted);
  font-size: .9rem;
  margin: 0 0 var(--s-3);
}
.acc-preview__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--text-subtle);
  font-size: .88rem;
  margin-bottom: var(--s-3);
}

.acc-preview__price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-3) 0 0;
  border-top: 1px solid var(--border);
  gap: var(--s-3);
  flex-wrap: wrap;
}
.acc-preview__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.acc-preview__price strong {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1;
}
.acc-preview__price small {
  font-size: .8rem;
  color: var(--text-subtle);
}

.acc-preview__actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
  padding: var(--s-4);
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-bottom: max(var(--s-4), env(safe-area-inset-bottom));
}
.acc-preview__actions .btn {
  min-height: 48px;
  font-size: .95rem;
}

body.acc-preview-open { overflow: hidden; }

/* Desktop: Sheet wird kompakte schwebende Card unten mittig (Booking-Stil) */
@media (min-width: 901px) {
  .acc-preview {
    align-items: flex-end;
    justify-content: center;
    padding: 0 var(--s-5) var(--s-5);
    pointer-events: none;
  }
  .acc-preview__backdrop {
    display: none;
  }
  .acc-preview__sheet {
    max-width: 460px;
    border-radius: var(--r-lg);
    pointer-events: auto;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .25);
  }
  .acc-preview__handle { display: none; }
  .acc-preview__image { height: 180px; }
  body.acc-preview-open { overflow: auto; } /* Desktop: Seite scrollbar lassen */
}

/* Visueller Hinweis: Card ist klickbar als „Quick-Look" (nur Mobile) */
@media (max-width: 900px) {
  .listing-card { cursor: pointer; }
}

/* ==========================================================================
   Mobile Search-Summary-Bar (Booking-Stil)
   ========================================================================== */
.search-summary-bar { display: none; }
.listing-form__sheet-header { display: none; }

@media (max-width: 900px) {
  /* Summary-Bar: sticky unter dem Header, kompakt */
  .search-summary-bar {
    display: flex;
    gap: 8px;
    margin-bottom: var(--s-3);
    position: sticky;
    top: calc(var(--header-h-mobile) + 8px);
    z-index: 900; /* über Leaflet-Panes (max ~700), unter Header (1000) */
  }

  .search-summary {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    box-shadow: 0 4px 16px rgba(4, 52, 74, .12);
    text-align: left;
    cursor: pointer;
    color: var(--text);
    font-family: inherit;
    font-size: .9rem;
    transition: all .15s ease;
  }
  .search-summary:hover,
  .search-summary:focus {
    border-color: var(--primary);
    box-shadow: 0 4px 18px rgba(14, 116, 144, .2);
    outline: none;
  }
  .search-summary > svg:first-child {
    color: var(--primary);
    flex-shrink: 0;
  }
  .search-summary__text {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .search-summary__text strong {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .95rem;
  }
  .search-summary__text small {
    color: var(--text-subtle);
    font-size: .78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .search-summary__chevron {
    color: var(--text-subtle);
    flex-shrink: 0;
  }

  /* Filter-Button rund daneben (icon-only) */
  .search-summary__filter {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(4, 52, 74, .12);
    color: var(--text);
    cursor: pointer;
    position: relative;
    transition: all .15s ease;
  }
  .search-summary__filter:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    background: var(--primary-50);
  }
  .search-summary__filter .filter-bar__count {
    position: absolute;
    top: -4px; right: -4px;
    margin: 0;
  }

  /* Form = Bottom-Sheet */
  .listing-form {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform .3s ease;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
  }
  .listing-form.is-sheet-open {
    transform: translateY(0);
    pointer-events: auto;
  }
  body.search-sheet-open { overflow: hidden; }

  /* Sheet-Header: Titel + Close-Button, prominent */
  .listing-form__sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    flex-shrink: 0;
  }
  .listing-form__sheet-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
  }
  .listing-form__close {
    width: 38px; height: 38px;
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 1.4rem;
    line-height: 1;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all .15s;
  }
  .listing-form__close:hover {
    border-color: var(--primary);
    background: var(--primary-50);
    color: var(--primary-dark);
  }

  /* Search-Inhalte im Sheet: kompaktes Padding, scrollable */
  .listing-form .searchbar {
    padding: var(--s-3);
    overflow-y: auto;
    flex: 1 1 auto;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    grid-template-columns: 1fr;
    gap: 0;
  }
  /* Felder als vertikaler Stack mit dünnen Trennern (kompakt) */
  .listing-form .searchbar__field {
    padding: 10px 14px !important;
  }
  .listing-form .searchbar__label {
    font-size: .68rem;
    margin-bottom: 0;
    line-height: 1.2;
  }
  .listing-form .searchbar__field input,
  .listing-form .searchbar__field .searchbar__value {
    font-size: .95rem;
  }
  /* Submit: große Primary-Action unten */
  .listing-form .searchbar__submit {
    margin-top: var(--s-3);
    padding: 14px;
    width: 100%;
    min-height: 50px;
    font-size: 1rem;
    border-radius: var(--r-md);
    box-shadow: 0 4px 12px rgba(14,116,144,.3);
  }

  /* Filter-Bar im Sheet unten als Footer-Bar */
  .listing-form .filter-bar {
    padding: var(--s-3);
    border-top: 1px solid var(--border);
    background: var(--bg);
    flex-shrink: 0;
    padding-bottom: max(var(--s-3), env(safe-area-inset-bottom));
  }
  .listing-form .filter-bar__toggle {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  /* Desktop-View-Toggle auf Mobile verstecken */
  .view-toggle { display: none; }

  /* Listing-Header bekommt weniger Abstand, die Summary-Bar dominiert */
  .listing-header {
    margin-bottom: var(--s-2);
  }
  .listing-header__title h1 { font-size: 1.3rem; }
}

/* ==========================================================================
   Filter-Bar & Panel
   ========================================================================== */
.filter-bar {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-3) 0 0;
  flex-wrap: wrap;
  align-items: center;
}
.filter-bar__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.filter-bar__toggle:hover { border-color: var(--primary); background: var(--primary-50); }
.filter-bar__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px; height: 22px;
  padding: 0 6px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: .75rem;
  font-weight: 700;
}

/* Panel — Modal-Overlay (Desktop), Bottom-Sheet (Mobile) */
.filter-panel {
  position: fixed !important;
  z-index: 99999 !important;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--surface);
  overflow: hidden;
  animation: filterSlideMobile .25s ease-out;
}
.filter-panel[hidden] { display: none !important; }
body.filter-panel-open { overflow: hidden; }

@keyframes filterSlideMobile {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes filterSlideDesktop {
  from { transform: translateX(-50%) translateY(12px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}
@keyframes filterFade { from { opacity: 0; } to { opacity: 1; } }

/* Backdrop (via ::before) */
.filter-panel::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(4, 52, 74, .55);
  backdrop-filter: blur(4px);
  z-index: -1;
  animation: filterFade .2s ease-out;
}

/* Desktop: zentrierte Card */
@media (min-width: 800px) {
  .filter-panel {
    inset: 40px auto auto 50%;
    transform: translateX(-50%);
    width: min(720px, calc(100vw - 80px));
    max-height: calc(100vh - 80px);
    border-radius: var(--r-lg);
    box-shadow: 0 24px 64px -8px rgba(0, 0, 0, .35);
    animation: filterSlideDesktop .25s ease-out;
  }
}

/* Header */
.filter-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.filter-panel__header h3 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.filter-panel__close {
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  background: var(--bg);
  border: 0;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.filter-panel__close:hover {
  background: var(--border);
  color: var(--text);
}

/* Body — Scroll-Container */
.filter-panel__body {
  padding: var(--s-5);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  min-height: 0;
}

/* Jede Gruppe als zarte Karte */
.filter-panel__body .filter-group {
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--border);
}
.filter-panel__body .filter-group:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

/* Einzelne Gruppen */
.filter-group {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.filter-group legend {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 var(--s-3);
  padding: 0;
  display: block;
  width: 100%;
  letter-spacing: -0.01em;
}

/* Number-Input-Rows */
.filter-group__rows {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
}
.filter-group__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  gap: var(--s-3);
  background: var(--surface);
  transition: background .15s;
}
.filter-group__row + .filter-group__row {
  border-top: 1px solid var(--border);
}
.filter-group__row:hover { background: var(--sand-50); }
.filter-group__row-label {
  font-size: .92rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}
.filter-group__row-label .icon {
  font-size: 1.1rem;
  opacity: .75;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.filter-group__row input[type="number"] {
  width: 70px;
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-size: .95rem;
  font-weight: 600;
  text-align: center;
  background: var(--surface);
  color: var(--text);
  flex-shrink: 0;
  -moz-appearance: textfield;
}
.filter-group__row input[type="number"]::-webkit-outer-spin-button,
.filter-group__row input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.filter-group__row input[type="number"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
}

/* Input mit Unit-Suffix (€ für Preis) */
.input-with-unit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.input-with-unit > span {
  color: var(--text-subtle);
  font-weight: 500;
}

/* Chip-Liste (Radios + Checkboxen als Pills) */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-chips label {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
  line-height: 1.2;
}
.filter-chips label:hover {
  border-color: var(--primary);
  background: var(--primary-50);
  color: var(--primary-dark);
}
.filter-chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px; height: 1px;
}
/* Aktiver Chip */
.filter-chips label:has(input:checked) {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  box-shadow: 0 2px 8px rgba(6, 74, 96, .25);
}
.filter-chips label:has(input:checked):hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* Actions-Footer */
.filter-panel__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.filter-panel__reset {
  background: transparent;
  border: 0;
  padding: 10px 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s;
}
.filter-panel__reset:hover { color: var(--primary); }
.filter-panel__apply {
  padding: 12px var(--s-6);
  font-size: 1rem;
  min-height: 48px;
  box-shadow: 0 4px 14px rgba(14, 116, 144, .3);
}

/* Mobile: Bottom-Sheet */
@media (max-width: 800px) {
  .filter-panel__apply { flex: 1; }
}

/* "Keine Treffer" Empty State */
.listing-empty {
  text-align: center;
  padding: var(--s-8) var(--s-4);
  color: var(--text-muted);
  background: var(--sand-50);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
}
.listing-empty__icon { font-size: 3rem; margin-bottom: var(--s-3); }
.listing-empty h3 { margin: 0 0 var(--s-2); color: var(--text); }
.listing-empty p { margin-bottom: var(--s-4); max-width: 420px; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Listing (Unterkünfte)
   ========================================================================== */
/* Wrapper der alles inkl. Toolbar enthält — kompensiert den fixed Header */
.listing-section {
  padding-top: var(--header-h);
  margin-bottom: var(--s-7);
}
@media (max-width: 900px) {
  .listing-section { padding-top: var(--header-h-mobile); }
}

/* Sticky Toolbar: Header + Suche + Filter + View-Toggle — bleibt oben bei allen Modi */
.listing-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 100;
  background: var(--surface);
  padding: var(--s-3) var(--s-5);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.02);
}
.listing-toolbar .listing-header {
  max-width: 1280px;
  margin: 0 auto var(--s-3);
  padding: 0;
}
.listing-toolbar .listing-header h1 { font-size: 1.25rem; }

/* Desktop: Form + Filter auf EINER Zeile, zentriert */
@media (min-width: 901px) {
  .listing-toolbar .listing-form {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    gap: var(--s-2);
    justify-content: center;
  }
  .listing-toolbar .searchbar {
    flex: 1 1 0;
    max-width: 820px;
    box-shadow: var(--sh-sm);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
  }
  .listing-toolbar .filter-bar {
    padding: 0;
    flex: 0 0 auto;
    align-self: stretch;
    display: flex;
  }
  .listing-toolbar .filter-bar__toggle {
    height: auto;
    min-height: 60px;
    padding: 0 20px;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--sh-sm);
  }
  .listing-toolbar .filter-bar__toggle:hover {
    border-color: var(--primary);
    background: var(--primary-50);
  }
  /* Toolbar-Header mit Count+Toggle rechts bündig kompakt */
  .listing-toolbar .listing-header {
    align-items: center;
    gap: var(--s-3);
  }
}

@media (max-width: 900px) {
  .listing-toolbar {
    top: var(--header-h-mobile);
    padding: var(--s-3) var(--s-4);
    border-bottom: 0;
    box-shadow: none;
  }
  .listing-toolbar .listing-header { margin-bottom: var(--s-2); }
}

.listing-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  padding: var(--s-4);
  max-width: 1480px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .listing-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: var(--s-5);
    padding: var(--s-5);
  }
  /* "Nur Liste"-Modus: Karte komplett ausblenden, Liste zentriert */
  .listing-layout--no-map {
    grid-template-columns: minmax(0, 1fr);
    max-width: var(--max-base);
  }
  .listing-layout--no-map .map-container { display: none; }

  /* "Nur Karte"-Modus: Schmale Liste links, Karte groß rechts */
  .listing-layout--map-only {
    grid-template-columns: 400px minmax(0, 1fr);
    max-width: none;
    padding: 0;
    gap: 0;
  }
  .listing-layout--map-only .listing-main {
    padding: var(--s-4);
    overflow-y: auto;
    max-height: calc(100vh - var(--header-h) - var(--toolbar-h, 160px));
    background: var(--surface);
    border-right: 1px solid var(--border);
  }
  .listing-layout--map-only .map-container {
    border-radius: 0;
    height: calc(100vh - var(--header-h) - var(--toolbar-h, 160px));
    box-shadow: none;
    top: calc(var(--header-h) + var(--toolbar-h, 160px));
  }
  /* Karte-Only: Cards kompakter (einspaltig, kleineres Bild) */
  .listing-layout--map-only .listing-card {
    grid-template-columns: 130px 1fr;
  }
  .listing-layout--map-only .listing-card__cta {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border);
    padding-top: var(--s-3);
    margin-top: var(--s-3);
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.listing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
  flex-wrap: wrap;
}
.listing-header__title {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  flex-wrap: wrap;
  min-width: 0;
}
.listing-count { color: var(--text-muted); font-size: .95rem; }

/* View-Toggle (Liste+Karte / Nur Liste) */
.view-toggle {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 3px;
  gap: 2px;
}
.view-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 0;
  background: transparent;
  border-radius: var(--r-pill);
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.view-toggle button:hover { color: var(--text); }
.view-toggle button[aria-pressed="true"] {
  background: var(--primary-dark);
  color: #fff;
}
.view-toggle button[aria-pressed="true"] svg { stroke: #fff; }
@media (max-width: 900px) {
  .view-toggle { display: none; }  /* Mobile hat eigenen Map-Toggle unten */
}

.listing-form { margin-bottom: var(--s-4); }
.listing-form .searchbar {
  margin: 0;
  box-shadow: var(--sh-md);
}

.listing-items {
  list-style: none;
  display: grid;
  gap: var(--s-4);
}
.listing-card {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: var(--s-4);
  padding: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  align-items: stretch;
}
.listing-card:hover {
  box-shadow: var(--sh-md);
  border-color: var(--primary-100);
  transform: translateY(-1px);
}
.listing-card__media {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--sand-100);
}
.listing-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s ease;
}
.listing-card:hover .listing-card__media img { transform: scale(1.03); }

.listing-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.listing-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--s-2);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-card__meta {
  display: flex; flex-wrap: wrap;
  gap: var(--s-3);
  color: var(--text-subtle);
  font-size: .875rem;
}
.listing-card__cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: var(--s-3);
  padding-left: var(--s-3);
  border-left: 1px solid var(--border);
}
.listing-card__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}
.listing-card__price-small { font-size: .8rem; color: var(--text-subtle); display: block; font-weight: 400; }
.listing-card__price--empty {
  font-size: .95rem;
  color: var(--text-subtle);
  font-weight: 500;
}

@media (max-width: 700px) {
  .listing-card {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }
  .listing-card__media { aspect-ratio: 16/10; }
  .listing-card__cta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border);
    padding-top: var(--s-3);
  }
}

/* Map */
.map-container {
  position: sticky;
  top: calc(var(--header-h) + var(--toolbar-h, 160px) + var(--s-3));
  height: calc(100vh - var(--header-h) - var(--toolbar-h, 160px) - var(--s-5));
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--sand-100);
  box-shadow: var(--sh-sm);
}
#map { width: 100%; height: 100%; }
#map-hint {
  padding: var(--s-5);
  font-size: .9rem;
  color: var(--text-muted);
  text-align: center;
}

/* Control-Bar schwebend auf der Karte (Booking-Stil) */
.map-container__controls {
  position: absolute;
  top: var(--s-4);
  left: var(--s-4);
  right: var(--s-4);
  z-index: 400;
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  pointer-events: none;
}
.map-control-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  transition: all .15s;
  pointer-events: auto;
  white-space: nowrap;
}
.map-control-btn:hover {
  border-color: var(--primary);
  background: var(--primary-50);
  color: var(--primary-dark);
}

/* Search & Header mittels Klasse ein-/ausblenden */
.listing-form.is-search-hidden,
.listing-header.is-search-hidden { display: none; }

/* Mobile: Map-Controls kompakter + Search-Summary-Bar ausblenden wenn Search-Hidden */
@media (max-width: 900px) {
  .map-container__controls {
    top: 12px; left: 12px; right: 12px;
    gap: 6px;
  }
  .map-control-btn {
    padding: 7px 12px;
    font-size: .82rem;
  }
  .search-summary-bar:has(.listing-form.is-search-hidden),
  .is-search-hidden ~ .search-summary-bar { display: none; }
}

/* Card-Highlight (beim Hover über Pin) */
.listing-card.is-highlighted {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50), 0 8px 20px rgba(14,116,144,.15);
  transform: translateY(-1px);
}

/* Pin-Highlight (beim Hover über Card) */
.price-pin.is-highlighted,
.leaflet-marker-icon.is-highlighted .price-pin {
  background: var(--accent);
  transform: scale(1.18);
  box-shadow: 0 4px 16px rgba(224,122,60,.5);
  border-color: #fff;
}
.price-pin.is-highlighted::after,
.leaflet-marker-icon.is-highlighted .price-pin::after {
  border-top-color: var(--accent);
}

/* Map-Toggle mobile */
.map-toggle {
  display: none;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: var(--s-5);
  z-index: 500;
  background: var(--primary-dark);
  color: #fff;
  border-radius: var(--r-pill);
  padding: var(--s-3) var(--s-5);
  font-weight: 600;
  gap: var(--s-2);
  box-shadow: var(--sh-lg);
  align-items: center;
}
@media (max-width: 900px) {
  .map-container {
    position: fixed;
    inset: var(--header-h-mobile) 0 0 0;
    height: auto;
    border-radius: 0;
    transform: translateY(100%);
    transition: transform .3s ease;
    z-index: 400;
  }
  .map-container.is-open { transform: translateY(0); }
  .map-toggle { display: inline-flex; }
}

/* Price-Pin (Leaflet Marker) */
.price-pin {
  background: var(--primary-dark);
  color: #fff;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 10px rgba(6,74,96,.4);
  border: 2px solid #fff;
  white-space: nowrap;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform .15s ease;
}
.price-pin:hover { transform: scale(1.08); }
.price-pin a { color: #fff; text-decoration: none; }
.price-pin span { color: #fff; display: inline-flex; align-items: center; gap: 4px; }
.price-pin svg { display: none; }
.price-pin.external-link svg { display: inline-block; }

.custom-cluster {
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 14px;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(14,116,144,.4);
}
.leaflet-div-icon { background: transparent; border: none; }

/* Loading */
.loading-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  box-shadow: var(--sh-md);
  z-index: 1000;
}
.loading-icon.is-active { display: flex; }
.loading-icon svg { animation: rotate 1.2s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }

/* ==========================================================================
   Detail-Seite
   ========================================================================== */
.detail {
  padding-top: calc(var(--header-h) + var(--s-5));
  padding-bottom: var(--s-9);
}
.detail__breadcrumbs {
  max-width: var(--max-base);
  margin: 0 auto var(--s-4);
  padding: 0 var(--s-4);
  font-size: .85rem;
  color: var(--text-subtle);
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.detail__breadcrumbs a { color: var(--text-muted); }
.detail__breadcrumbs a:hover { color: var(--primary); }
.detail__breadcrumbs span[aria-hidden] { color: var(--border-strong); }

.detail__head {
  max-width: var(--max-base);
  margin: 0 auto var(--s-5);
  padding: 0 var(--s-4);
}
.detail__head h1 { margin-bottom: var(--s-2); font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
.detail__location {
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.detail__grid {
  max-width: var(--max-base);
  margin: 0 auto;
  padding: 0 var(--s-4);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 980px) {
  .detail__grid { grid-template-columns: minmax(0, 1fr) 380px; }
}

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 160px 160px;
  gap: var(--s-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--s-5);
  aspect-ratio: auto;
}
.gallery__main {
  grid-row: span 2;
  position: relative;
  background: var(--sand-100);
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.gallery__thumb {
  position: relative;
  background: var(--sand-100);
  overflow: hidden;
  cursor: pointer;
}
.gallery__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.gallery__thumb:hover img { transform: scale(1.04); }
.gallery__more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4,52,74,.5);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}
@media (max-width: 720px) {
  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .gallery__main img { min-height: 240px; }
  .gallery__thumb { display: none; }
  .gallery__thumb:first-of-type { display: block; height: 120px; }
}

.detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  margin-bottom: var(--s-5);
}
.detail-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--s-3);
  color: var(--primary-dark);
}

.amenities {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.amenities li {
  background: var(--primary-50);
  color: var(--primary-dark);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: .85rem;
  font-weight: 500;
}

/* ==========================================================================
   Booking-Widget — mobile-first, minimal
   ==========================================================================
   HTML:
     <aside class="booking-widget">
       <div class="booking-widget__map">...</div>        (desktop only)
       <div class="booking-widget__info">
         <div class="booking-widget__price">
           <span data-price>285€</span>
           <span class="booking-widget__price-unit">gesamt</span>
         </div>
         <input id="date-range" class="booking-widget__dates" readonly>
         <input type="hidden" id="checkin">
         <input type="hidden" id="checkout">
         <div class="booking-widget__status" data-status></div>
       </div>
       <a class="book-btn" data-book-btn>Buchen</a>
       <p class="booking-widget__notice">...</p>           (desktop only)
     </aside>
   ========================================================================== */

/* --- MOBILE (Basis): Grid-Bar am unteren Rand (2 Zeilen: Info+Button, Notice) --- */
.booking-widget {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 500;
  background: var(--surface);
  padding: 10px 14px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .1);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "info button"
    "notice notice";
  column-gap: 12px;
  row-gap: 6px;
  align-items: center;
  box-sizing: border-box;
  min-height: 68px;
}

.booking-widget__map { display: none; }
.booking-widget__info { grid-area: info; }
.book-btn { grid-area: button; }
.booking-widget__notice {
  grid-area: notice;
  margin: 0;
  font-size: .7rem;
  color: var(--text-subtle);
  text-align: center;
  line-height: 1.3;
}

.booking-widget__info {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.booking-widget__price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  max-width: 100%;
  line-height: 1.2;
}
.booking-widget__price > span[data-price],
.booking-widget__price-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}
.booking-widget__price-value--muted { color: var(--text-subtle); font-weight: 600; }
.booking-widget__price-unit {
  font-size: .72rem;
  color: var(--text-subtle);
  font-weight: 500;
}

/* Das Datum-Input ist sichtbar und ist selbst der Flatpickr-Trigger */
.booking-widget__dates {
  display: inline-block;
  max-width: 100%;
  padding: 2px 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-family: inherit;
  font-size: .82rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  width: auto;
}
.booking-widget__dates:focus { outline: none; }

.booking-widget__status {
  font-size: .72rem;
  color: var(--danger);
  line-height: 1.2;
  max-width: 100%;
}
.booking-widget__status:empty { display: none; }

.book-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 20px;
  min-height: 48px;
  height: 48px;
  line-height: 1;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  border-radius: var(--r-md);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(224, 122, 60, .3);
  transition: background .2s ease;
  box-sizing: border-box;
}
.book-btn:hover,
.book-btn:focus { background: var(--accent-dark); color: #fff; }

body.has-sticky-booking { padding-bottom: 96px; }

/* Schmaler Viewport */
@media (max-width: 360px) {
  .booking-widget { padding-left: 12px; padding-right: 12px; gap: 10px; }
  .book-btn { padding: 0 16px; }
  .booking-widget__price-unit { display: none; }
}

/* --- DESKTOP (Sidebar-Card, kompakt) --- */
@media (min-width: 980px) {
  .booking-widget {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    left: auto; right: auto; bottom: auto;
    display: block;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-md);
    gap: 0;
  }

  .booking-widget__map {
    display: block;
    width: 100%;
    height: 150px;
    margin-bottom: 14px;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--sand-100);
    position: relative;
  }
  .booking-widget__map #map { height: 100%; width: 100%; }

  .booking-widget__info {
    display: block;
    margin-bottom: 12px;
  }

  .booking-widget__price {
    display: flex;
    gap: 6px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }
  .booking-widget__price > span[data-price],
  .booking-widget__price-value { font-size: 1.5rem; line-height: 1.15; }
  .booking-widget__price-unit { font-size: .9rem; }

  .booking-widget__dates {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--text);
    font-size: .95rem;
    text-decoration: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.4;
    transition: border-color .15s ease;
  }
  .booking-widget__dates:hover,
  .booking-widget__dates:focus {
    border-color: var(--primary);
    outline: none;
  }

  .booking-widget__status {
    margin-top: 10px;
    padding: 8px 10px;
    font-size: .85rem;
    background: #fef2f2;
    border-radius: var(--r-sm);
  }

  .book-btn {
    display: flex;
    width: 100%;
    height: 48px;
    padding: 0 12px;
    margin-top: 0;
    font-size: 1rem;
  }
  .book-btn svg { display: inline-block; }

  .booking-widget__notice {
    display: block;
    margin-top: 8px;
    text-align: center;
    color: var(--text-subtle);
    font-size: .78rem;
    line-height: 1.4;
  }

  body.has-sticky-booking { padding-bottom: 0; }
}

/* Carousel-Popup im Map-Marker */
.carousel-popup { width: 240px; text-align: center; font-size: 14px; }
.carousel-popup img {
  max-width: 100%;
  max-height: 150px;
  border-radius: var(--r-sm);
  margin-top: var(--s-2);
}
.carousel-popup strong { color: var(--primary-dark); }
.carousel-popup .controls {
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
  margin-top: var(--s-3);
}
.carousel-popup button {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--s-2);
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-dark);
}
.carousel-popup button:hover { background: var(--primary-50); }

/* ==========================================================================
   Flatpickr-Anpassungen
   ========================================================================== */
.flatpickr-calendar { border-radius: var(--r-md); box-shadow: var(--sh-lg); font-family: var(--font-sans); }
.day-available { border-color: var(--sea) !important; border-radius: 0; }
.flatpickr-day.inRange, .flatpickr-disabled.day-available.inRange {
  background: var(--sea) !important;
  border-color: var(--sea) !important;
  color: #fff !important;
  box-shadow: -5px 0 0 var(--sea), 5px 0 0 var(--sea);
  opacity: 1;
}
.flatpickr-disabled, .notAllowed {
  background: rgba(220,38,38,.12) !important;
  color: var(--danger) !important;
  border-radius: 0;
  opacity: .6;
}
.day-booked { background: rgba(220,38,38,.08) !important; color: var(--danger) !important; }
.day-restricted {
  border-color: var(--border) !important;
  color: var(--text) !important;
  position: relative;
  cursor: help !important;
}
.day-checkin, .day-checkout {
  border-color: var(--sea) !important;
  color: var(--sea) !important;
}
.flatpickr-disabled.day-available {
  color: var(--border-strong) !important;
  border-color: var(--border) !important;
  background: transparent !important;
  cursor: help !important;
}
.day-restricted:hover::after,
.flatpickr-disabled.day-available:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -34px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary-dark);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-size: 12px;
  white-space: nowrap;
  z-index: 999;
}
.flatpickr-confirm {
  margin-top: 8px;
  background: var(--primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--r-sm) !important;
  padding: 10px !important;
  cursor: pointer;
  width: calc(100% - 16px);
  margin-inline: 8px 8px;
  margin-bottom: 8px !important;
  font-weight: 600;
}
.flatpickr-confirm:hover { background: var(--primary-dark) !important; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--primary-darker);
  color: rgba(255,255,255,.85);
  padding: var(--s-7) var(--s-4) var(--s-5);
  margin-top: var(--s-8);
}
.site-footer__inner {
  max-width: var(--max-base);
  margin: 0 auto;
}
.site-footer__columns {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--s-6) var(--s-5);
  margin-bottom: var(--s-6);
}
.site-footer__col h3 {
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 var(--s-3);
}
.site-footer__col ul,
.site-footer ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer__col ul li,
.site-footer ul li {
  list-style: none !important;
  line-height: 1.4;
  padding-left: 0 !important;
}
.site-footer__col ul li::marker,
.site-footer ul li::marker { content: none; display: none; }
.site-footer__brand {
  font-weight: 700;
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: var(--s-2);
}
.site-footer__tagline {
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  line-height: 1.6;
  margin: 0;
}

.site-footer a,
.site-footer .cookie-open {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .9rem;
  cursor: pointer;
  transition: color .15s;
}
.site-footer a:hover,
.site-footer .cookie-open:hover { color: #fff; text-decoration: underline; }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.6);
  font-size: .82rem;
}
.site-footer__bottom p { margin: 0; color: inherit; }
.site-footer__disclaimer { opacity: .85; }

@media (max-width: 800px) {
  .site-footer__columns {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-5) var(--s-4);
  }
  .site-footer__col:first-child {
    grid-column: 1 / -1;
    margin-bottom: var(--s-3);
  }
}
@media (max-width: 500px) {
  .site-footer__columns { grid-template-columns: 1fr; }
  .site-footer__col:first-child { margin-bottom: 0; }
  .site-footer__bottom { justify-content: center; text-align: center; }
}

/* Überschreibt altes, falls noch verwendet */
footer { background: var(--primary-darker); color: #fff; padding: var(--s-6); text-align: center; }
footer a { color: #fff; }

/* ==========================================================================
   Cookie-Banner (modernisiert)
   ========================================================================== */
.cookie-container {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  padding: var(--s-4);
  align-items: center;
  justify-content: center;
}
.cookie-container[data-open="true"] { display: flex; }
.cookie-bg {
  position: fixed;
  inset: 0;
  background: rgba(4, 52, 74, .55);
  backdrop-filter: blur(4px);
  z-index: -1;
}
.cookie-box {
  position: relative;
  background: var(--surface);
  padding: var(--s-6);
  border-radius: var(--r-lg);
  max-width: 440px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  line-height: 1.55;
  text-align: left;
  box-shadow: var(--sh-xl);
}
.cookie-box strong { color: var(--primary-dark); font-size: 1.05rem; }
.cookie-box button {
  display: block;
  width: 100%;
  padding: var(--s-3);
  margin-top: var(--s-3);
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  transition: all .15s ease;
}
.cookie-box button:hover { background: var(--border); }
.cookie-box .cookie-allow {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.cookie-box .cookie-allow:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.cookie-information-click {
  display: inline-block;
  font-size: .85rem;
  text-decoration: underline;
  color: var(--primary);
  cursor: pointer;
  margin: var(--s-2) 0;
}
.cookie-information { display: none; font-size: .8rem; line-height: 1.5; word-break: break-word; margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--border); }
.cookie-information[data-open="true"] { display: block; }
.cookie-open { font-weight: 600; cursor: pointer; color: var(--primary); text-decoration: underline; }

/* Hidden-Helfer */
[hidden] { display: none !important; }

/* =========================================================================
   v2-Integration — "Direkt buchen"-Badge auf Listing-Karten
   (gesetzt durch lib/v2_integration.php → annotateRow → frontend listing.php)
   ========================================================================= */
.listing-card__media { position: relative; }
.listing-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 14px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  background: #0e7490;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.listing-card__badge--direct { background: #0e7490; }

/* Direkt-Karten leicht hervorheben */
.listing-card.is-direct {
  border-color: #0e7490;
  box-shadow: 0 1px 8px rgba(14,116,144,.18);
}
.listing-card.is-direct .listing-card__title::before {
  content: '';
}

/* =========================================================================
   v2-Integration — Vermieter-Landing-Page (/vermieten)
   ========================================================================= */
.nav-cta {
  background: #0e7490;
  color: #fff !important;
  padding: 6px 12px !important;
  border-radius: 6px;
  font-weight: 600;
}
.nav-cta:hover { background: #095866; }

.vermieten-hero {
  background: linear-gradient(135deg, #e0f3f6 0%, #fff 100%);
  padding: 60px 20px;
  border-radius: 14px;
  margin: 30px auto;
  max-width: 1100px;
}
.vermieten-hero__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.vermieten-hero h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin: 0 0 20px;
  color: #0e3a4a;
}
.vermieten-hero h1 span { color: #0e7490; }
.vermieten-hero p { font-size: 1.1rem; color: #444; line-height: 1.55; }
.vermieten-hero__cta { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn-lg { padding: 12px 24px; font-size: 1rem; }
.btn-ghost {
  background: #fff;
  color: #0e7490;
  border: 1px solid #0e7490;
}
.btn-ghost:hover { background: #f0f9fa; }

.vermieten-features {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
}
.vermieten-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.vermieten-features article {
  background: #fff;
  border: 1px solid #e2e8eb;
  border-radius: 12px;
  padding: 22px 24px;
}
.vermieten-features h2 {
  font-size: 1.05rem;
  margin: 6px 0 8px;
  color: #0e3a4a;
}
.vermieten-features p { font-size: .92rem; line-height: 1.5; color: #555; margin: 0; }
.vermieten-feature__icon { font-size: 1.8rem; margin-bottom: 6px; }

.vermieten-cta {
  background: #0e7490;
  color: #fff;
  text-align: center;
  padding: 50px 20px;
  border-radius: 14px;
  margin: 30px auto;
  max-width: 1100px;
}
.vermieten-cta h2 { font-size: 1.8rem; margin: 0 0 10px; }
.vermieten-cta p { font-size: 1rem; opacity: .92; }
.vermieten-cta .btn-primary {
  background: #fff;
  color: #0e7490;
  margin-top: 18px;
}
.vermieten-cta .btn-primary:hover { background: #f4f6f8; }
.vermieten-cta__small {
  font-size: .8rem;
  margin-top: 22px;
  opacity: .82;
}
.vermieten-cta__small a { color: #fff; text-decoration: underline; }

@media (max-width: 600px) {
  .vermieten-hero h1 { font-size: 1.8rem; }
  .vermieten-hero { padding: 40px 16px; }
}

/* =========================================================================
   newfrontend — Add-ons (Listing-Split, Result-Cards, Detail-Page)
   ========================================================================= */

/* Listing: Liste + Karte split-view */
.listing-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
  height: calc(100vh - 280px);
  min-height: 520px;
}
.listing-split[data-view="map"]  { grid-template-columns: 0 1fr; }
.listing-split[data-view="map"]  #results { display: none; }
.listing-split[data-view="list"] { grid-template-columns: 1fr 0; }
.listing-split[data-view="list"] #map { display: none; }
.listing-split[data-view="map"]  .listing-map { height: calc(100vh - 280px); }

#results {
  overflow-y: auto;
  padding-right: 8px;
}
.listing-map {
  height: 100%;
  border-radius: var(--r-md, 12px);
  overflow: hidden;
  position: sticky;
  top: 84px;
  background: #f0f0f0;
}

/* Result-Cards (im Listing-Grid) */
.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.result-card {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 12px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--r-md, 12px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.result-card:hover {
  border-color: var(--primary, #0e7490);
  box-shadow: 0 4px 14px rgba(15,23,42,.08);
  transform: translateY(-1px);
}
.result-card.is-direct { border-color: var(--primary, #0e7490); }
.result-card.is-highlight { box-shadow: 0 0 0 3px var(--accent, #e07a3c); }
.result-card__media {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg, #f8fafc);
  overflow: hidden;
}
.result-card__media img { width: 100%; height: 100%; object-fit: cover; }
.result-card__placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; font-size: 2rem; color: #999;
}
.result-card__badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--primary-dark, #064a60); color: #fff;
  padding: 4px 9px; border-radius: 12px;
  font-size: .72rem; font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.result-card__body { padding: 12px 4px; min-width: 0; }
.result-card__body h3 { font-size: 1rem; margin: 0 0 4px; line-height: 1.25; }
.result-card__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: #666; }
.result-card__cta {
  display: flex; flex-direction: column; align-items: flex-end;
  justify-content: space-between; padding: 12px 14px;
}
.result-card__price { font-weight: 700; color: var(--primary-dark, #064a60); white-space: nowrap; }
.result-card__price small { font-weight: 400; color: #888; margin-left: 2px; font-size: .75em; }
.result-card__price--empty { font-size: .85rem; color: #888; font-weight: 500; }

@media (max-width: 900px) {
  .listing-split { grid-template-columns: 1fr; height: auto; min-height: auto; }
  .listing-map { display: none; }
  .listing-split[data-view="map"] .listing-map { display: block; height: 60vh; }
  .listing-split[data-view="map"] #results { display: none; }
  .result-card { grid-template-columns: 120px 1fr; grid-template-rows: auto auto; }
  .result-card__cta { grid-column: 1/-1; flex-direction: row; }
}

/* Filter-Panel */
.filter-panel {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 18px;
  margin: 12px 0 16px;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.filter-group {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  padding: 10px 14px;
}
.filter-group legend { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #666; font-weight: 700; padding: 0 4px; }
.filter-group label { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: .9rem; }
.filter-group input[type="number"] { width: 80px; margin-left: auto; padding: 4px 8px; border: 1px solid var(--border, #e2e8f0); border-radius: 6px; }

/* Detail-Page */
.detail__head { margin-bottom: 16px; }
.detail__head h1 { margin: 8px 0 4px; }
.detail__gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  margin-bottom: 22px;
  border-radius: 14px;
  overflow: hidden;
  max-height: 460px;
}
.detail__gallery img { width: 100%; height: 100%; object-fit: cover; }
.detail__gallery img:first-child { grid-row: 1 / -1; }

.detail__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.detail__main h2 { margin: 24px 0 10px; font-size: 1.2rem; }
.detail__meta { display: flex; flex-wrap: wrap; gap: 16px; padding: 14px 0; font-size: .95rem; color: #444; border-bottom: 1px solid var(--border, #e2e8f0); }

.amenity-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.amenity-list li { padding: 8px 10px; background: var(--bg, #f8fafc); border-radius: 8px; font-size: .9rem; }

.book-box {
  position: sticky;
  top: 84px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 4px 14px rgba(15,23,42,.06);
}
.book-box__price { font-size: 1.6rem; font-weight: 700; color: var(--primary-dark, #064a60); margin-bottom: 14px; }
.book-box__price--empty { font-size: 1.1rem; color: #888; }
.book-box__price small { font-size: .65em; color: #888; font-weight: 400; }
.book-box label { display: block; margin-bottom: 8px; font-size: .85rem; color: #555; }
.book-box label input { display: block; width: 100%; padding: 8px 10px; margin-top: 2px; border: 1px solid var(--border, #e2e8f0); border-radius: 6px; }
.btn-block { display: block; width: 100%; margin-top: 12px; }

@media (max-width: 800px) {
  .detail__grid { grid-template-columns: 1fr; }
  .detail__gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .detail__gallery img:first-child { grid-row: 1; }
  .detail__gallery img:nth-child(n+4) { display: none; }
  .book-box { position: static; }
}

/* View-Toggle (Liste/Karte) — falls in v1's CSS noch nicht definiert */
.view-toggle {
  display: inline-flex;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.view-toggle button {
  background: transparent;
  border: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .85rem;
  cursor: pointer;
  color: #666;
}
.view-toggle button.is-active {
  background: var(--primary-dark, #064a60);
  color: #fff;
}

.empty-state { padding: 40px 20px; text-align: center; color: #888; }
.results__loader { padding: 40px 20px; text-align: center; color: #888; }

.tag-card__count {
  margin-left: auto;
  background: var(--bg, #f8fafc);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .72rem;
  color: #666;
}

.nav-cta {
  background: var(--accent, #e07a3c);
  color: #fff !important;
  padding: 6px 14px !important;
  border-radius: 6px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-dark, #b85e28); }
.nav-cta::after { display: none !important; }

/* Inline-Booking-Form im booking-widget */
.book-form { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.book-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.book-form label { font-size: .82rem; color: var(--text-muted, #555); display: flex; flex-direction: column; gap: 4px; }
.book-form input,
.book-form select,
.book-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  background: #fff;
  font: inherit;
}
.book-form textarea { resize: vertical; min-height: 60px; }
.book-form .book-btn { margin-top: 6px; }

/* Multi-Unit-Auswahl */
.unit-choices { display: grid; gap: 12px; margin-top: 14px; }
.unit-choice {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px 18px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.unit-choice:hover { border-color: var(--primary, #0e7490); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.unit-choice strong { font-size: 1rem; }
.unit-choice__meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: .82rem; color: #666; margin-top: 4px; grid-column: 1; }
.unit-choice__price { text-align: right; }
.unit-choice__price strong { font-size: 1.05rem; color: var(--primary-dark, #064a60); }
