/* wohlii-urlaub.de – Stylesheet
 * Farben nach den Moodboards „Wohlii – pastellfarben“ und „Wohlii – gelb + grau“.
 * Schriften liegen lokal (DSGVO: kein Abruf bei Google Fonts).
 */








:root {
  /* Moodboard-Farben */
  --sage: #4E7F68;
  --sage-deep: #3B6452;
  --sage-soft: #DCE8E0;
  --coral: #D9857A;
  --coral-deep: #A9534A;
  --coral-soft: #F6E0DA;
  --butter: #E8D58C;
  --butter-soft: #F7EFCB;
  --mustard: #E3B24F;
  --stone: #CFCBC3;
  --stone-soft: #EDEAE4;
  --graphite: #5E5E5E;
  /* Rollen */
  --ink: #3A3935;
  --muted: #6B6964;
  --ground: #FAF8F4;
  --paper: #FFFFFF;
  --line: #E4E0D8;
  --focus: #E3B24F;

  --f-body: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --f-hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;

  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(58, 57, 53, .06), 0 8px 24px -12px rgba(58, 57, 53, .18);
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 1rem/1.6 var(--f-body);
  color: var(--ink);
  background: var(--ground);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--sage-deep); text-underline-offset: .18em; }
a:hover { color: var(--coral-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.2; text-wrap: balance; margin: 0 0 .4em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .35em; display: flex; flex-wrap: wrap; gap: .4em; align-items: center; }
.hand { font-family: var(--f-hand); font-weight: 700; }
.select-all { user-select: all; font-weight: 700; }
.section { padding-block: clamp(40px, 7vw, 88px); }

/* ---------- Logo (Aquarell-Logo „wohli!“) ---------- */
.logo { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; margin-block: 3px; }
.logo img { width: auto; height: 78px; transition: transform .25s; }
.logo:hover img { transform: rotate(-4deg) scale(1.04); }
.logo-light img { height: 96px; }

/* ---------- Kopfzeile ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(250, 248, 244, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 88px; }
.site-nav { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.6rem); }
.site-nav > a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-nav > a:not(.btn):hover, .site-nav a[aria-current] { color: var(--sage); }
.nav-fav { white-space: nowrap; }
.fav-count { font-size: .8rem; color: var(--coral-deep); font-weight: 800; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; content: ''; transition: transform .2s; }
.nav-toggle span:first-child { top: 21px; }
.nav-toggle span:first-child::before { left: 0; top: -7px; }
.nav-toggle span:first-child::after { left: 0; top: 7px; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; background: var(--ground); padding: 1rem var(--gutter) 1.4rem; border-bottom: 1px solid var(--line); gap: .2rem; }
  .site-nav > a:not(.btn) { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: .8rem; }
  .site-header.open .site-nav { display: flex; }
}

/* ---------- Buttons & Formulare ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; font: 700 .95rem/1 var(--f-body); padding: .85em 1.3em; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { font-size: .85rem; padding: .65em 1.05em; }
.btn-primary { background: var(--sage); color: #fff; }
.btn-primary:hover { background: var(--sage-deep); color: #fff; }
.btn-call { background: var(--coral-deep); color: #fff; }
.btn-call:hover { background: #8F443C; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--stone); }
.btn-ghost:hover { border-color: var(--sage); color: var(--sage-deep); }
.btn-butter { background: var(--mustard); color: var(--ink); }
.btn-butter:hover { background: #D9A23A; color: var(--ink); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--sage-deep); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
label { display: flex; flex-direction: column; gap: .3rem; font-weight: 700; font-size: .85rem; color: var(--ink); }
input, select, textarea { font: 400 1rem/1.3 var(--f-body); color: var(--ink); background: var(--paper); border: 1.5px solid var(--stone); border-radius: var(--r-sm); padding: .7em .8em; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--sage); outline: none; box-shadow: 0 0 0 3px var(--sage-soft); }
.check { flex-direction: row; align-items: center; gap: .5rem; font-weight: 600; }
.check input { width: auto; accent-color: var(--sage); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid .span2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.hint { font-weight: 400; color: var(--muted); font-size: .8rem; }

/* ---------- Platzhalter-Kennzeichnung ---------- */
.ph { font: 800 .62rem/1 var(--f-body); letter-spacing: .06em; text-decoration: none; color: var(--ink); background: var(--butter); border-radius: 4px; padding: .2em .35em; vertical-align: middle; cursor: help; }
.ph-badge { position: absolute; left: .6rem; bottom: .6rem; font: 700 .68rem/1 var(--f-body); letter-spacing: .04em; background: rgba(255, 255, 255, .88); color: var(--ink); padding: .35em .55em; border-radius: 999px; }
.ph-note { background: var(--butter-soft); border: 1px dashed var(--mustard); border-radius: var(--r-md); padding: .8rem 1rem; font-size: .9rem; }

/* ---------- Chips ---------- */
.chip { display: inline-block; font: 800 .68rem/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; padding: .4em .7em; border-radius: 999px; }
.chip-fewo { background: var(--sage-soft); color: var(--sage-deep); }
.chip-zmf { background: var(--butter-soft); color: #7A5E17; }
.chip-hotel { background: var(--coral-soft); color: var(--coral-deep); }
.chip-demo { background: var(--stone-soft); color: var(--graphite); }

/* ---------- Startseite: Hero + Suche ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(32px, 6vw, 72px) clamp(28px, 4vw, 48px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--sage); }
.hero-lead { font-size: 1.12rem; max-width: 36em; color: var(--graphite); }
.hero-mosaic { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 5 / 4; max-width: 100%; }
.hero-mosaic figure { margin: 0; border-radius: var(--r-md); overflow: hidden; position: relative; }
.hero-mosaic figure:first-child { grid-row: span 2; border-radius: var(--r-lg) var(--r-md) var(--r-md) var(--r-lg); }
.hero-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.hero-mosaic figcaption { position: absolute; left: .7rem; bottom: .6rem; font: 700 1.35rem/1 var(--f-hand); color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-mosaic { aspect-ratio: 16 / 9; } }

.search { margin-top: clamp(20px, 3vw, 36px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: .7rem; display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: .5rem; align-items: end; }
.search label { padding: .35rem .6rem .2rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.search input, .search select { border: 0; padding: .35em 0; font-weight: 700; background: transparent; box-shadow: none; }
.search label + label { border-left: 1px solid var(--line); }
.search .btn { height: 100%; min-height: 52px; border-radius: 999px; padding-inline: 1.6em; }
@media (max-width: 760px) {
  .search { grid-template-columns: 1fr 1fr; border-radius: var(--r-md); }
  .search label:first-child { grid-column: 1 / -1; }
  .search label + label { border-left: 0; }
  .search label { border-bottom: 1px solid var(--line); }
  .search .btn { grid-column: 1 / -1; }
}

/* ---------- Die drei Werte ---------- */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.value { position: relative; border-radius: var(--r-md); overflow: hidden; min-height: 170px; display: flex; align-items: flex-end; color: #fff; }
.value img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.value::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(40, 38, 34, .55), rgba(40, 38, 34, 0) 70%); z-index: 1; }
.value div { position: relative; z-index: 2; padding: 1rem 1.2rem; }
.value b { display: block; font: 700 2.2rem/1 var(--f-hand); }
.value span { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.value p { margin: .4rem 0 0; font-size: .9rem; opacity: .95; max-width: 26em; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } .value { min-height: 130px; } }

/* ---------- Schwarzes Brett + Karte (casamundo-Prinzip) ---------- */
.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.2rem; }
.board-head h2 { margin: 0; }
.board-tools { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.month-nav { display: inline-flex; align-items: center; gap: .3rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .2rem; }
.month-nav button { background: none; border: 0; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; color: var(--ink); }
.month-nav button:hover { background: var(--sage-soft); }
.month-nav strong { min-width: 9.5em; text-align: center; font-size: .95rem; }
.tabs.view-toggle { display: none; margin: 0; }
.board-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 34%); gap: 24px; align-items: start; }
.board-list { display: flex; flex-direction: column; gap: 14px; }
.board-map { position: sticky; top: calc(104px + env(safe-area-inset-top, 0px)); height: calc(100vh - 124px); min-height: 420px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
@media (max-width: 1000px) {
  .board-layout { grid-template-columns: 1fr; }
  .board-map { position: relative; top: 0; height: 58vh; min-height: 340px; order: -1; }
  .tabs.view-toggle { display: inline-flex; }
  .board-layout[data-view="list"] .board-map { display: none; }
  .board-layout[data-view="map"] .board-list { display: none; }
}
.empty { background: var(--paper); border: 1px dashed var(--stone); border-radius: var(--r-md); padding: 2rem; text-align: center; color: var(--muted); }

.board-entry { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr) 224px; gap: 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; transition: border-color .15s, box-shadow .15s; }
.board-entry:hover, .board-entry.active { border-color: var(--sage); box-shadow: var(--shadow); }
.be-img { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1; align-self: start; }
.be-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.board-entry:hover .be-img img { transform: scale(1.04); }
.be-info { display: flex; flex-direction: column; min-width: 0; padding-block: .2rem; }
.be-info h3 { margin-bottom: .15rem; }
.be-info h3 a { color: var(--ink); text-decoration: none; }
.be-info h3 a:hover { color: var(--sage); }
.be-house { font-family: var(--f-body); font-size: .9rem; font-weight: 600; color: var(--muted); }
.be-house a { color: var(--muted) !important; }
.tile-tag { font-family: var(--f-hand); font-size: 1.3rem; line-height: 1.15; color: var(--sage-deep); margin: 0 0 .35rem; }
.facts { font-size: .88rem; color: var(--graphite); font-variant-numeric: tabular-nums; margin-bottom: .6rem; }
.be-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .4rem; }
.board-entry .fav { position: absolute; top: 18px; left: 18px; }
@media (max-width: 1240px) and (min-width: 1001px) { .board-entry { grid-template-columns: 130px minmax(0, 1fr); } .be-cal { grid-column: 1 / -1; } }
@media (max-width: 700px) { .board-entry { grid-template-columns: 96px minmax(0, 1fr); } .be-cal { grid-column: 1 / -1; } }

/* ---------- Favoriten-Herz ---------- */
.fav { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--coral-deep); font-size: 1.2rem; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); z-index: 2; }
.fav.on { background: var(--coral); color: #fff; }

/* ---------- Kalender ---------- */
.cal { font-variant-numeric: tabular-nums; }
.cal-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .35rem; }
.cal-title { font-weight: 800; font-size: .9rem; }
.cal-free { font-size: .78rem; font-weight: 700; color: var(--sage-deep); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-wd { font-size: .66rem; font-weight: 800; color: var(--muted); text-align: center; letter-spacing: .04em; }
.cal-day { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; font-size: .74rem; font-weight: 700; border-radius: 5px; border: 0; padding: 0; font-family: inherit; }
.cal-day.free { background: var(--sage-soft); color: var(--sage-deep); }
.cal-day.booked { background: repeating-linear-gradient(135deg, var(--stone-soft) 0 4px, #E2DED6 4px 8px); color: #9B978F; text-decoration: line-through; }
.cal-day.past { background: transparent; color: #BDB9B1; }
.cal-day.today { outline: 2px solid var(--mustard); outline-offset: -2px; }
.cal:not(.cal-compact) .cal-day { font-size: .85rem; border-radius: 7px; }
.cal:not(.cal-compact) .cal-grid { gap: 4px; }
.cal-edit button.cal-day { cursor: pointer; }
.cal-edit button.cal-day:hover { box-shadow: inset 0 0 0 2px var(--sage); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .6rem; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.lg { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lg.free { background: var(--sage-soft); }
.lg.booked { background: repeating-linear-gradient(135deg, var(--stone-soft) 0 3px, #D8D4CB 3px 6px); }
.lg.past { border: 1px solid var(--stone); }
.cal-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
@media (max-width: 760px) { .cal-row { grid-template-columns: 1fr; } }

/* ---------- Karte ---------- */
.map { position: relative; background: #E9EFE9; min-height: 280px; }
.map-sketch { position: absolute; inset: 0; background:
  radial-gradient(circle at 20% 30%, rgba(78, 127, 104, .10) 0 18%, transparent 19%),
  radial-gradient(circle at 75% 70%, rgba(227, 178, 79, .12) 0 22%, transparent 23%),
  linear-gradient(transparent 49.5%, rgba(255, 255, 255, .7) 49.5% 50.5%, transparent 50.5%) 0 0 / 60px 60px,
  linear-gradient(90deg, transparent 49.5%, rgba(255, 255, 255, .7) 49.5% 50.5%, transparent 50.5%) 0 0 / 60px 60px,
  #E6EDE7; filter: blur(.3px); }
.pin, .lf-pin { position: absolute; transform: translate(-50%, -100%); }
.pin b, .lf-pin b { display: flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 .4em; border-radius: 16px 16px 16px 3px; background: var(--sage); color: #fff; font: 800 .78rem/1 var(--f-body); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transform: rotate(-45deg); }
.pin b { transform: none; border-radius: 999px; }
.pin.active b, .lf-pin.active b { background: var(--coral-deep); }
.lf-pin { position: relative; transform: none; background: none; border: 0; }
.lf-pin b { transform: none; border-radius: 999px; }
.map-gate { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(88%, 340px); background: rgba(255, 255, 255, .95); border-radius: var(--r-md); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; font-size: .9rem; }
.map-gate p { margin: 0; }
.map-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1rem; text-align: center; }
.map-popup { font-family: var(--f-body); min-width: 190px; }
.map-popup b { display: block; margin-bottom: .2rem; }
.map-popup ul { margin: .3rem 0 0; padding-left: 1.1em; }
.leaflet-container { font-family: var(--f-body); }

/* ---------- Kachel-Raster (mein-glueck-Prinzip) ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.tile { position: relative; display: flex; flex-direction: column; }
.tile-img { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--stone-soft); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile:hover .tile-img img { transform: scale(1.05); }
.tile .fav { position: absolute; top: .6rem; right: .6rem; }
.tile-body { padding: .9rem .2rem 0; text-align: center; }
.tile-body h3 { margin-bottom: .1rem; font-size: 1.25rem; }
.tile-body h3 a { color: var(--ink); text-decoration: none; }
.tile-body .facts { margin-bottom: .2rem; }

/* ---------- Apartmenthaus-Seite ---------- */
.house-hero { position: relative; min-height: 300px; display: flex; align-items: flex-end; color: #fff; }
.house-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.house-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(35, 45, 40, .7), rgba(35, 45, 40, .05) 75%); z-index: 1; }
.house-hero .wrap { position: relative; z-index: 2; padding-block: 2.2rem; }
.house-hero h1 { color: #fff; margin: 0; }
.house-hero p { margin: .3rem 0 0; font-weight: 600; }
.house-intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 860px) { .house-intro { grid-template-columns: 1fr; } }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.3rem; display: flex; flex-direction: column; gap: .7rem; align-self: start; }
.contact-card .btn { width: 100%; }
.contact-card dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem .8rem; font-size: .92rem; }
.contact-card dt { color: var(--muted); }
.contact-card dd { margin: 0; overflow-wrap: anywhere; }

/* Menschen hinter der Unterkunft */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.person { background: var(--paper); border-radius: var(--r-md); padding: 1.1rem 1.2rem; border: 1px solid var(--line); }
.person .role { font: 700 1.5rem/1 var(--f-hand); display: block; margin-bottom: .3rem; }
.person:nth-child(1) .role { color: var(--sage); }
.person:nth-child(2) .role { color: #B38421; }
.person:nth-child(3) .role { color: var(--coral-deep); }
.person h3 { font-size: 1.05rem; font-family: var(--f-body); font-weight: 800; margin-bottom: .2rem; }
.person p { margin: 0; font-size: .92rem; color: var(--graphite); }
@media (max-width: 760px) { .people { grid-template-columns: 1fr; } }

/* ---------- Detailseite Ferienwohnung ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding-block: 1rem .2rem; }
.crumbs a { color: var(--muted); }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; aspect-ratio: 16 / 7; max-width: 100%; }
.gallery button { position: relative; border: 0; padding: 0; cursor: zoom-in; overflow: hidden; border-radius: 8px; background: var(--stone-soft); }
.gallery button:first-child { grid-row: span 2; border-radius: var(--r-md) 8px 8px var(--r-md); }
.gallery button:nth-child(2) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto; aspect-ratio: auto; } .gallery button:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; border-radius: var(--r-md); } .gallery button:nth-child(2) { grid-column: auto; } .gallery button:not(:first-child) { aspect-ratio: 1; } }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 1.8rem; }
.detail-grid .contact-card { position: sticky; top: calc(108px + env(safe-area-inset-top, 0px)); }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } .detail-grid .contact-card { position: static; } }
.keyfacts { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; padding: .9rem 0; border-block: 1px solid var(--line); margin-bottom: 1.4rem; font-variant-numeric: tabular-nums; }
.keyfacts div { display: flex; flex-direction: column; }
.keyfacts b { font-size: 1.15rem; }
.keyfacts span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.features { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; list-style: none; }
.features li { background: var(--stone-soft); border-radius: 999px; padding: .35em .8em; font-size: .88rem; font-weight: 600; }
.block { margin-top: 2.4rem; }
.block > h2 { font-size: 1.5rem; }
.detail-map { height: 360px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); }
.lightbox::backdrop { background: rgba(30, 30, 28, .86); }
.lightbox img { max-height: 86vh; border-radius: var(--r-md); }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; color: #fff; margin-top: .6rem; gap: 1rem; }
.lightbox-bar button { background: rgba(255, 255, 255, .15); color: #fff; border: 0; border-radius: 999px; padding: .5em 1em; cursor: pointer; font: 700 .9rem var(--f-body); }

/* ---------- Dialog ---------- */
.dialog { border: 0; border-radius: var(--r-lg); padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .4); color: var(--ink); background: var(--paper); }
.dialog::backdrop { background: rgba(40, 45, 42, .5); }
.dialog-body { padding: clamp(1.2rem, 4vw, 2rem); display: flex; flex-direction: column; gap: .8rem; position: relative; }
.dialog-body h2 { font-size: 1.4rem; margin: 0; padding-right: 2rem; }
.dialog-body p { margin: 0; }
.dialog-close { position: absolute; right: 1rem; top: 1rem; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--stone-soft); font-size: 1.3rem; cursor: pointer; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Cookie-Hinweis ---------- */
.consent { position: fixed; z-index: 100; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 540px; background: var(--paper); border-radius: var(--r-md); box-shadow: 0 20px 60px -15px rgba(0, 0, 0, .35); padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; border: 1px solid var(--line); }
.consent h2 { font-size: 1.2rem; margin: 0; }
.consent p { font-size: .9rem; margin: 0; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .3rem; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: .7em 1.2em; border-radius: 999px; font-weight: 700; font-size: .9rem; z-index: 200; transition: transform .25s; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); }

/* ---------- Inhaltsseiten ---------- */
.page-head { padding-block: clamp(32px, 6vw, 64px) 1rem; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2rem; font-size: 1.45rem; }
.prose h3 { margin-top: 1.4rem; font-family: var(--f-body); font-weight: 800; font-size: 1.05rem; }
.prose ul { padding-left: 1.2em; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; padding: 0; list-style: none; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.2rem; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-flex; width: 2rem; height: 2rem; border-radius: 50%; background: var(--butter); align-items: center; justify-content: center; font-weight: 800; margin-bottom: .6rem; }
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; font-size: .95rem; color: var(--graphite); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.split img { border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--paper); border-radius: var(--r-md); overflow: hidden; }
.compare th, .compare td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--sage); color: #fff; font-weight: 800; }
.compare td:nth-child(2) { background: #F6FAF7; font-weight: 600; }
.table-scroll { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
.band { background: var(--sage); color: #fff; border-radius: var(--r-lg); padding: clamp(1.6rem, 4vw, 3rem); display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: space-between; align-items: center; }
.band h2 { color: #fff; margin: 0; }
.band p { margin: .3rem 0 0; opacity: .92; }
.price { font-family: var(--f-display); font-size: 2.4rem; line-height: 1; }

/* ---------- Login ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 89px); }
.auth-art { position: relative; overflow: hidden; }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-art p { position: absolute; left: 2rem; bottom: 2rem; right: 2rem; color: #fff; font: 700 2.2rem/1.1 var(--f-hand); text-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
.auth-panel { padding: clamp(28px, 6vw, 72px) var(--gutter); max-width: 560px; width: 100%; }
.tabs { display: inline-flex; background: var(--stone-soft); border-radius: 999px; padding: 4px; margin-bottom: 1.4rem; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: .6em 1.1em; border-radius: 999px; font: 700 .9rem var(--f-body); cursor: pointer; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.error { color: var(--coral-deep); font-weight: 700; font-size: .9rem; min-height: 1.2em; margin: 0; }
.demo-box { background: var(--butter-soft); border-radius: var(--r-md); padding: 1rem 1.1rem; font-size: .9rem; margin-top: 1.6rem; }
.demo-box code { font-weight: 800; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-art { min-height: 180px; } .auth-art p { font-size: 1.7rem; } }

/* ---------- Konto & Vermieter-Bereich ---------- */
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; padding-block: 2rem 1rem; }
.dash-head h1 { margin: 0; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.dash-tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; overflow-x: auto; }
.dash-tabs button { border: 0; background: none; padding: .8em 1em; font: 700 .95rem var(--f-body); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.dash-tabs button[aria-selected="true"] { color: var(--sage-deep); border-bottom-color: var(--sage); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(1rem, 3vw, 1.6rem); }
.panel + .panel { margin-top: 1rem; }
.panel h2 { font-size: 1.3rem; }
.unit-rows { display: flex; flex-direction: column; gap: .6rem; }
.unit-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.unit-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.unit-row h3 { margin: 0; font-size: 1.05rem; font-family: var(--f-body); font-weight: 800; }
.unit-row p { margin: 0; font-size: .85rem; color: var(--muted); }
.unit-row .row-actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 600px) { .unit-row { grid-template-columns: 56px minmax(0, 1fr); } .unit-row img { width: 56px; height: 56px; } .unit-row .row-actions { grid-column: 1 / -1; justify-content: flex-start; } }
.photo-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.photo-slot { position: relative; aspect-ratio: 1; border: 2px dashed var(--stone); border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; font-size: .8rem; color: var(--muted); background: var(--ground); }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-slot .remove { position: absolute; top: 4px; right: 4px; z-index: 3; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); cursor: pointer; font-size: 1rem; }
@media (max-width: 560px) { .photo-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.checklist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.checklist li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: .6rem; }
.checklist li::before { content: '✓'; width: 26px; height: 26px; border-radius: 50%; background: var(--sage-soft); color: var(--sage-deep); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.inq-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.inq-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .8rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; }

/* ---------- Fußzeile ---------- */
.site-footer { background: #3F4A44; color: #E7ECE8; margin-top: clamp(48px, 8vw, 96px); padding-block: 3rem 1.4rem; }
.site-footer a, .site-footer .linklike { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-claim { font: 700 1.5rem/1.2 var(--f-hand); color: var(--butter); margin: .8rem 0 .4rem; }
.footer-values { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-values b { font: 700 1.5rem/1 var(--f-hand); margin-right: .4rem; }
.footer-values li:nth-child(1) b { color: #F0A89D; }
.footer-values li:nth-child(2) b { color: #A9D0B9; }
.footer-values li:nth-child(3) b { color: var(--mustard); }
.footer-links { display: flex; flex-direction: column; gap: .45rem; align-items: flex-start; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 2rem; padding-top: 1rem; color: #BFC9C3; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Feinschliff Handy ---------- */
.cal-compact .cal-day { aspect-ratio: auto; height: 24px; }
.be-cal { max-width: 360px; width: 100%; }
.be-img .ph-badge { font-size: .58rem; left: .35rem; bottom: .35rem; }
.mobile-cta { display: none; }
@media (max-width: 560px) {
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .tile-body h3 { font-size: 1.05rem; }
  .tile-tag { font-size: 1.1rem; }
  .tile-body .facts { font-size: .78rem; }
  .be-img .ph-badge { display: none; }
}
@media (max-width: 900px) {
  .mobile-cta { display: flex; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
  .mobile-cta .btn { flex: 1; }
  body.has-cta .site-footer { padding-bottom: 5.5rem; }
}
@media (max-width: 560px) { .logo img { height: 64px; } .header-inner { min-height: 74px; } }
