/* =====================================================================
   Casa Monika – Gestaltung
   Farben: Sand, Meerblau, Terrakotta, Sonne
   ===================================================================== */

/* Schriften liegen auf der eigenen Seite (keine Verbindung zu Google) –
   SIL Open Font License, siehe fonts/LICENSE.txt */
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/fraunces.woff2') format('woff2-variations'), url('../fonts/fraunces.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/inter.woff2') format('woff2-variations'), url('../fonts/inter.woff2') format('woff2');
}

:root {
  --sand: #fbf7f0;
  --sand-2: #f3ebdd;
  --paper: #ffffff;
  --ink: #1d2a33;
  --ink-2: #4a5a66;
  --muted: #6b7a85;
  --line: #e6dccb;
  --sea: #1f5f7a;
  --sea-2: #174a60;
  --sea-soft: #e3eff4;
  --terra: #c4623a;
  --sun: #f2b84b;

  --free-bg: #e4f3e6;   --free-ink: #22693a;
  --pend-bg: #fdecc0;   --pend-ink: #8a5a00;
  --book-bg: #f6d3c7;   --book-ink: #9b3a1c;
  --sel: #1f5f7a;

  --radius: 14px;
  --radius-s: 9px;
  --shadow: 0 1px 2px rgba(29, 42, 51, .06), 0 8px 24px rgba(29, 42, 51, .07);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--sand); color: var(--ink);
  font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--sea); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
h4 { margin: 0 0 .3em; font-size: 1rem; }
p { margin: 0 0 .8em; }
button { font: inherit; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.strong { font-weight: 600; }
.lead { font-size: 1.08rem; max-width: 70ch; }
.center { display: block; margin: 8px auto 0; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-end { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- Demo-Banner ---------- */
.demo-banner {
  background: var(--sun); color: #3d2a00; font-size: .88rem; text-align: center;
  padding: 8px 16px;
}
.demo-banner .linkbtn { color: #3d2a00; font-weight: 600; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 247, 240, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.mainnav { display: flex; align-items: center; gap: 4px 14px; margin-left: auto; flex-wrap: wrap; }
.mainnav a { color: var(--ink-2); text-decoration: none; font-weight: 500; padding: 6px 2px; border-bottom: 2px solid transparent; }
.mainnav a.active, .mainnav a:hover { color: var(--ink); border-bottom-color: var(--terra); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); }
.lang button { border: 0; background: none; padding: 5px 10px; font-size: .8rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.lang button.active { background: var(--sea); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--sea); background: var(--sea); color: #fff;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--sea-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-small { padding: 6px 14px; font-size: .9rem; }
.btn-full { width: 100%; }
.btn-ghost { background: transparent; color: var(--sea); border-color: var(--line); }
.btn-ghost:hover { background: var(--sea-soft); }
.btn-sun { background: var(--sun); border-color: var(--sun); color: #2b1d00; }
.btn-sun:hover { background: #e8a92f; }
.btn-ok { background: #2f7d4a; border-color: #2f7d4a; }
.btn-ok:hover { background: #256a3d; }
.btn-danger { background: var(--terra); border-color: var(--terra); }
.btn-danger:hover { background: #a94f2c; }
.btn-paypal { background: #ffc439; border-color: #ffc439; color: #111; margin-top: 10px; }
.btn-paypal:hover { background: #f2b52a; }
.linkbtn { background: none; border: 0; color: var(--sea); cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.danger-text { color: var(--terra); }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
  font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.icon-btn:disabled { opacity: .35; cursor: default; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(180deg, rgba(10, 35, 50, .15) 0%, rgba(10, 35, 50, .65) 100%), var(--hero) center 60% / cover no-repeat, var(--sea);
  min-height: min(78vh, 640px); display: flex; align-items: flex-end;
}
.hero-inner { padding-top: 120px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(2.8rem, 8vw, 5rem); margin-bottom: .15em; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; opacity: .95; margin-bottom: .6em; }
.hero-text { font-size: 1.12rem; max-width: 56ch; opacity: .95; margin-bottom: 1.4em; }

/* ---------- Abschnitte ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--sand-2); }
.section-head { margin-bottom: 24px; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card.empty { text-align: center; color: var(--muted); }

/* ---------- Kalender ---------- */
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.month h3 { text-align: center; font-size: 1.1rem; text-transform: capitalize; margin-bottom: 10px; }
.weekdays, .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.weekdays span { text-align: center; font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; padding-bottom: 4px; }
.day {
  aspect-ratio: 1 / 1; border: 0; border-radius: var(--radius-s); font-weight: 500; font-size: .92rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative;
  transition: transform .06s, box-shadow .12s;
}
.day.empty { background: none; cursor: default; }
.day.free { background: var(--free-bg); color: var(--free-ink); }
.day.pending { background: var(--pend-bg); color: var(--pend-ink); }
.day.approved { background: var(--book-bg); color: var(--book-ink); }
.day.past { background: transparent; color: #b9c0c5; cursor: default; }
.day:not(.past):not(.empty):hover { box-shadow: inset 0 0 0 2px var(--sea); }
.day.today::after { content: ''; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.day.in-range { background: var(--sea-soft); color: var(--sea-2); }
.day.sel { background: var(--sel); color: #fff; font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: .86rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.dot-free { background: var(--free-bg); box-shadow: inset 0 0 0 1px #bfe0c5; }
.dot-pending { background: var(--pend-bg); box-shadow: inset 0 0 0 1px #f0d68a; }
.dot-approved { background: var(--book-bg); box-shadow: inset 0 0 0 1px #e9b3a2; }
.dot-sel { background: var(--sel); }
.cal-msg { min-height: 1.4em; margin: 12px 0 0; font-size: .92rem; color: var(--sea); }
.cal-msg.warn { color: var(--terra); font-weight: 500; }

/* ---------- Anfrage-Box ---------- */
.req-card { position: sticky; top: 80px; }
.req-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 12px; }
.req-dates > div { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 12px; }
.label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.nights { margin-bottom: 8px; }
.price { margin: 0 0 14px; }
.price > div { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.price dt { color: var(--ink-2); }
.price dd { margin: 0; }
.price .total { border-bottom: 0; font-weight: 700; font-size: 1.08rem; padding-top: 8px; }
.price-hint { margin-top: 6px; }
.alert { background: #fdeee8; color: var(--book-ink); border-radius: var(--radius-s); padding: 8px 12px; font-size: .92rem; }
.success { text-align: center; display: grid; gap: 10px; justify-items: center; }
.success-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--free-bg); color: var(--free-ink); display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 5px; font-size: .88rem; font-weight: 500; color: var(--ink-2); }
.form input, .form select, .form textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid #d9cfbd; border-radius: var(--radius-s);
  padding: 10px 12px; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--sea); outline-offset: 0; border-color: transparent; }
.form input:disabled { background: var(--sand); color: var(--muted); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: end; justify-content: flex-end; }
.grid-2 .form-actions { grid-column: 1 / -1; }
.form-error { color: var(--terra); min-height: 1.2em; margin: 0; font-size: .9rem; }
.auth-switch { text-align: center; margin: 12px 0 0; font-size: .92rem; color: var(--muted); }

/* ---------- Wohnung ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.facts > div { background: var(--paper); border-radius: var(--radius); padding: 16px; text-align: center; box-shadow: var(--shadow); }
.facts strong { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--sea); }
.facts span { display: block; font-size: .92rem; color: var(--ink-2); font-weight: 500; }
.facts small { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.apt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.apt-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.apt-photo img { width: 100%; height: 100%; object-fit: cover; }
.apt-photo.placeholder {
  display: grid; place-items: center; color: var(--muted); font-size: .9rem;
  background: repeating-linear-gradient(45deg, #efe5d4, #efe5d4 10px, #f6efe3 10px, #f6efe3 20px);
  border: 1px dashed #d8c8ad;
}

/* ---------- Umgebung ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; grid-column: span 2; aspect-ratio: 4 / 3; background: var(--sand-2); }
.gallery figure:nth-child(1), .gallery figure:nth-child(2) { grid-column: span 3; aspect-ratio: 16 / 10; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px; color: #fff; font-weight: 500;
  background: linear-gradient(transparent, rgba(0, 0, 0, .6)); display: flex; justify-content: space-between; align-items: end; gap: 8px; flex-wrap: wrap;
}
.gallery .credit { color: rgba(255, 255, 255, .8); font-size: .72rem; font-weight: 400; text-decoration: none; }

/* ---------- Listen / Buchungen ---------- */
.list { display: grid; gap: 14px; margin-bottom: 28px; }
.booking.dim { opacity: .62; }
.booking-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.booking-head h3 { margin-bottom: 2px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.chip-pending { background: var(--pend-bg); color: var(--pend-ink); }
.chip-approved { background: var(--free-bg); color: var(--free-ink); }
.chip-rejected, .chip-cancelled { background: #ececec; color: #666; }
.chip-block { background: var(--book-bg); color: var(--book-ink); }
.chip-paid { background: var(--sea-soft); color: var(--sea-2); }
.chip-unpaid { background: #fdeee8; color: var(--book-ink); }
.msg { background: var(--sand); border-left: 3px solid var(--sun); padding: 8px 12px; border-radius: 0 8px 8px 0; font-style: italic; color: var(--ink-2); margin: 10px 0; }
.guest { margin: 10px 0 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pay { margin-top: 14px; background: var(--sea-soft); border-radius: var(--radius-s); padding: 14px 16px; }
.pay dl { margin: 8px 0 0; display: grid; gap: 6px; }
.pay dl > div { display: grid; grid-template-columns: 130px 1fr; gap: 8px; align-items: center; }
.pay dt { font-size: .82rem; color: var(--muted); }
.pay dd { margin: 0; display: flex; gap: 8px; align-items: center; justify-content: space-between; font-weight: 500; word-break: break-word; }
.copy { border: 1px solid #c4d9e2; background: var(--paper); border-radius: 6px; font-size: .75rem; padding: 2px 8px; cursor: pointer; color: var(--sea); flex-shrink: 0; }
.paid-note { color: var(--free-ink); font-weight: 600; margin-top: 10px; }
.profile-card h3 { margin-bottom: 12px; }

/* ---------- Admin ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs button {
  border: 0; background: none; padding: 10px 14px; cursor: pointer; font-weight: 600; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center;
}
.tabs button.active { color: var(--ink); border-bottom-color: var(--terra); }
.badge:empty { display: none; }
.badge { background: var(--terra); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 7px; }
.filter { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 14px; background: var(--paper); }
.filter button { border: 0; background: none; padding: 6px 14px; cursor: pointer; font-weight: 500; color: var(--muted); }
.filter button.active { background: var(--sea); color: #fff; }
.narrow-card { max-width: 720px; }
.table-card { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--sand); }

/* ---------- Modal & Toasts ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 30, 40, .45); }
.modal-card {
  position: relative; background: var(--paper); border-radius: 18px; padding: 28px 26px 22px; width: 100%; max-width: 420px;
  max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.modal-card h2 { font-size: 1.6rem; }
.modal-x { position: absolute; right: 12px; top: 8px; border: 0; background: none; font-size: 1.8rem; cursor: pointer; color: var(--muted); line-height: 1; }
.confirm-text { font-size: 1.05rem; margin-top: 8px; }
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(92vw, 460px); }
.toast {
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow);
  display: flex; justify-content: space-between; gap: 12px; align-items: center; animation: toast-in .2s ease-out;
  transition: opacity .5s, transform .5s;
}
.toast-err { background: var(--terra); }
.toast.out { opacity: 0; transform: translateY(8px); }
.toast-action { color: var(--sun); font-weight: 600; white-space: nowrap; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Fußzeile ---------- */
.footer { background: var(--ink); color: #cdd6dc; padding: 28px 0; font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer strong { color: #fff; }
.footer a { color: #cdd6dc; }
.credits { max-width: 460px; }
.madeby { display: inline-block; margin-top: 6px; font-size: .8rem; color: #9fb0bb; }

/* ---------- Mobil ---------- */
@media (max-width: 920px) {
  .booking-layout { grid-template-columns: 1fr; }
  .req-card { position: static; }
}
@media (max-width: 680px) {
  .topbar-inner { padding-top: 8px; padding-bottom: 8px; gap: 8px; }
  .mainnav { order: 3; width: 100%; margin-left: 0; gap: 4px 14px; }
  .lang { margin-left: auto; }
  .cal-months { grid-template-columns: 1fr; gap: 20px; }
  .card { padding: 16px; }
  .section { padding: 44px 0; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts > div:last-child { grid-column: 1 / -1; }
  .apt-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure, .gallery figure:nth-child(1), .gallery figure:nth-child(2) { grid-column: span 1; aspect-ratio: 4 / 3; }
  .gallery figure:nth-child(1) { grid-column: 1 / -1; }
  .grid-2 { grid-template-columns: 1fr; }
  .pay dl > div { grid-template-columns: 1fr; gap: 2px; }
  .hero { min-height: 70vh; }
}

/* =====================================================================
   Erweiterungen: Hauptsaison, Zahlungsplan, Hausmappe, Mängel,
   Auswertung, Einstellungen
   ===================================================================== */
:root { --hs: #f2b84b; --overdue-bg: #f9d4cc; --overdue-ink: #8f2a12; }

/* Hauptsaison im Kalender: kleiner Sonnenstreifen oben */
.day.hs::before { content: ''; position: absolute; top: 4px; left: 30%; right: 30%; height: 3px; border-radius: 2px; background: var(--hs); }
.day.sel.hs::before { background: #ffe2a3; }
.dot-hs { background: linear-gradient(var(--hs) 0 3px, var(--free-bg) 3px); box-shadow: inset 0 0 0 1px #e8d6a8; }
.hs-tag { display: inline-block; font-size: .7rem; font-weight: 600; color: #7a5400; background: #fdecc0; border-radius: 999px; padding: 0 6px; margin-left: 4px; vertical-align: middle; }
.group-chip { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--sea-2); background: var(--sea-soft); border-radius: 999px; padding: 2px 10px; margin: 0 0 8px; }

/* Chips */
.chip-overdue { background: var(--overdue-bg); color: var(--overdue-ink); }
.chip-group { background: var(--sand-2); color: var(--ink-2); font-weight: 500; }

/* Zahlungsplan */
.plan { list-style: none; padding: 0; margin: 8px 0 10px; display: grid; gap: 4px; font-size: .92rem; }
.plan li { padding-left: 22px; position: relative; color: var(--ink-2); }
.plan li::before { content: '○'; position: absolute; left: 2px; color: var(--muted); }
.plan li.done::before { content: '✓'; color: var(--free-ink); font-weight: 700; }
.plan li.now { color: var(--ink); }
.plan li.now::before { content: '●'; color: var(--sea); }

/* Hausmappe */
.guide-teaser { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); margin-bottom: 16px; border: 1px solid var(--sea-soft); }
.guide-teaser:hover { box-shadow: 0 0 0 2px var(--sea-soft), var(--shadow); }
.guide-icon { font-size: 1.8rem; }
.guide-teaser .arrow { margin-left: auto; font-size: 1.6rem; color: var(--sea); }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.guide-block h3 { font-size: 1.05rem; margin-bottom: .6em; }
.guide-block p { margin-bottom: .4em; }
.code-big { font-family: var(--serif); font-size: 2.4rem; letter-spacing: .15em; color: var(--sea); margin: 0; }
.kv { margin: 0; display: grid; gap: 8px; }
.kv > div { display: grid; grid-template-columns: 90px 1fr; gap: 8px; align-items: center; }
.kv dt { font-size: .82rem; color: var(--muted); }
.kv dd { margin: 0; display: flex; justify-content: space-between; gap: 8px; align-items: center; font-weight: 600; word-break: break-all; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checklist label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.checklist input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--sea); }
.checklist input:checked + span { text-decoration: line-through; color: var(--muted); }
.issue-card .form { margin-top: 10px; }
.issue-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.issue-list .chip { margin-right: 6px; }
.mt { margin-top: 18px; }
.inline-form { display: flex; gap: 8px; margin-top: 10px; }
.inline-form input { flex: 1; font: inherit; padding: 6px 10px; border: 1px solid #d9cfbd; border-radius: var(--radius-s); background: var(--paper); color: var(--ink); min-width: 0; }

/* Auswertung */
.stats-head { margin-bottom: 14px; }
.inline-label { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; color: var(--ink-2); }
.inline-label select, .table select { font: inherit; padding: 6px 10px; border: 1px solid #d9cfbd; border-radius: var(--radius-s); background: var(--paper); color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; display: grid; gap: 2px; }
.kpi span { font-size: .82rem; color: var(--muted); font-weight: 500; }
.kpi strong { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--ink); line-height: 1.15; }
.kpi small { font-size: .8rem; color: var(--muted); }
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 240px; padding: 8px 0 0; margin-top: 8px; }
.bar-col { position: relative; display: grid; grid-template-rows: 1fr auto; height: 100%; outline: none; cursor: default; }
.bar-track { display: flex; align-items: flex-end; justify-content: center; height: 100%; border-bottom: 1px solid var(--line); }
.bar { width: min(28px, 70%); background: var(--sea); border-radius: 4px 4px 0 0; min-height: 0; transition: background .15s; }
.bar-col:hover .bar, .bar-col:focus .bar { background: var(--sea-2); }
.bar-label { text-align: center; font-size: .72rem; color: var(--muted); padding-top: 6px; }
.bar-col::after {
  content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -4px);
  background: var(--ink); color: #fff; font-size: .78rem; padding: 6px 10px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 2;
}
.bar-col:hover::after, .bar-col:focus::after { opacity: 1; }
.stats-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0 10px; }
.stats-tables > *, .settings-grid > *, .kpis > * { min-width: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.sum td { font-weight: 700; border-top: 2px solid var(--line); }

/* Einstellungen */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.settings-grid h3 { margin-top: 6px; }
.side-stack { display: grid; gap: 16px; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th { text-align: left; font-size: .82rem; color: var(--muted); font-weight: 600; padding: 4px 6px; }
.price-table td { padding: 4px 6px; }
.price-table input { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid #d9cfbd; border-radius: var(--radius-s); background: var(--paper); color: var(--ink); }
.season-row { display: grid; grid-template-columns: 1fr 76px auto 76px 34px; gap: 6px; align-items: center; margin-bottom: 8px; }
.season-row input { font: inherit; padding: 8px 10px; border: 1px solid #d9cfbd; border-radius: var(--radius-s); background: var(--paper); color: var(--ink); min-width: 0; }
.icon-btn.small { width: 32px; height: 32px; font-size: 1.1rem; }
.copy-field { display: flex; gap: 6px; margin: 6px 0 2px; }
.copy-field input { flex: 1; min-width: 0; font: inherit; font-size: .8rem; padding: 6px 8px; border: 1px solid #d9cfbd; border-radius: var(--radius-s); background: var(--sand); color: var(--ink-2); }
.ical-row { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.ical-row p { margin: 0; }
.row-start { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

@media (max-width: 920px) {
  .settings-grid { grid-template-columns: 1fr; }
  .stats-tables { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .guide-grid { grid-template-columns: 1fr; }
  .bars { gap: 3px; height: 180px; }
  .bar-label { font-size: .62rem; }
  .season-row { grid-template-columns: 1fr 64px auto 64px 32px; }
  .tabs button { padding: 8px 10px; font-size: .9rem; }
  .kpi strong { font-size: 1.5rem; }
  .table th, .table td { padding: 8px 10px; }
}
/* Tooltips am Rand nach innen ausrichten (kein seitliches Scrollen auf dem Handy) */
.bar-col:nth-child(-n+3)::after { left: 0; transform: translate(0, -4px); }
.bar-col:nth-child(n+10)::after { left: auto; right: 0; transform: translate(0, -4px); }

/* Foto-Nachweis in der Fußzeile: klein und zurückhaltend */
.footer .credits { flex-basis: 100%; max-width: none; font-size: .7rem; line-height: 1.5; color: #7f909b; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 12px; }
.footer .credits a { color: inherit; text-decoration: none; }
.footer .credits a:hover, .footer .credits a:focus-visible { color: #cdd6dc; text-decoration: underline; }

/* Fotos der Wohnung mit Bildunterschrift */
.apt-photo { position: relative; }
.apt-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; color: #fff; font-weight: 500; font-size: .92rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
}
@media (max-width: 680px) { .apt-grid { grid-template-columns: 1fr; } }

/* Impressum & Datenschutz */
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.15rem; margin-top: 1.6em; }
.legal p, .legal li { max-width: 68ch; }
.legal ul { padding-left: 1.2em; }
.legal a { overflow-wrap: anywhere; }
.footer .legal-links { display: flex; gap: 16px; align-items: flex-start; }
.footer .legal-links a { text-decoration: none; }
.footer .legal-links a:hover, .footer .legal-links a:focus-visible { color: #fff; text-decoration: underline; }
