/* Haus Linde – Demo-Unterkunft von Direktgast */
@font-face { font-family: "Young Serif"; src: url("/assets/fonts/young-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #1E2A24;
  --deep: #23402F;
  --leaf: #5E7F34;
  --blossom: #E8D37A;
  --stone: #F2F4F1;
  --line: #D7DDD6;
  --muted: #56645C;
  --white: #FFFFFF;
  --red: #A6402B;
  --serif: "Young Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --r: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-variant-numeric: lining-nums; margin: 0; background: var(--stone); color: var(--ink); font: 400 17px/1.55 var(--sans); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 28px; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; left: -9999px; }
.sr-only:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 50; }
.container { width: min(1160px, 100% - 48px); margin: 0 auto; }
.section { padding: 88px 0; }
.small { font-size: 0.9rem; }
.muted { color: var(--muted); }

/* Demo-Hinweis */
.demo-bar { background: var(--blossom); color: var(--ink); font-size: 0.88rem; display: flex; gap: 16px; justify-content: center; align-items: center; padding: 8px 20px; flex-wrap: wrap; text-align: center; }
.demo-bar p { margin: 0; }
.demo-bar a { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* Kopf */
.site-header { background: var(--stone); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.4rem; color: var(--deep); text-decoration: none; }
.logo .leaf { color: var(--leaf); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-nav a:not(.btn):hover { color: var(--leaf); }
.lang-switch { border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; font-size: 0.82rem !important; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 22px; font: 600 0.95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--deep); color: var(--white); }
.btn-primary:hover { background: #18301F; }
.btn-primary:disabled { background: #9AA79E; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--deep); box-shadow: inset 0 0 0 1.5px var(--deep); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.actions { margin: 24px 0; display: flex; gap: 12px; flex-wrap: wrap; }

/* Start: Text links, Haus rechts */
.hero { padding: 64px 0 40px; }
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin: 20px 0 32px; }
.search { background: var(--white); border-radius: var(--r); padding: 18px; display: grid; grid-template-columns: 1fr 1fr 0.8fr auto; gap: 12px; align-items: end; box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(30, 42, 36, 0.45); }
.field { display: grid; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea { font: 400 1rem var(--sans); color: var(--ink); background: var(--stone); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; min-width: 0; }
.field input:focus, .field select:focus { border-color: var(--leaf); outline: none; box-shadow: 0 0 0 3px rgba(94, 127, 52, 0.2); }
.search-results { margin-top: 16px; display: grid; gap: 10px; }
.search-result { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--white); border-radius: 12px; padding: 14px 16px; border: 1px solid var(--line); }
.search-result.unavailable { opacity: 0.7; }
.search-result .small { color: var(--muted); }
.link-arrow { font-weight: 600; text-decoration: none; }

.facade { width: 100%; max-width: 600px; margin-left: auto; overflow: visible; }
.facade .leader { stroke: var(--line); stroke-width: 2; fill: none; }
.facade .floor:hover .leader { stroke: var(--blossom); }
.facade .ground { fill: #C9D2C7; }
.facade .wall { fill: #E8E2D6; transition: fill 0.2s; }
.facade .roof { fill: #8E5A45; transition: fill 0.2s; }
.facade .dormer { fill: #E8E2D6; }
.facade .cornice { fill: #D6CDBD; }
.facade .win { fill: #FFF6D6; stroke: var(--deep); stroke-width: 3; }
.facade .win-sill { fill: #D6CDBD; }
.facade .door { fill: var(--deep); }
.facade .balcony { fill: none; stroke: var(--deep); stroke-width: 3; }
.facade .tree rect { fill: #6B5440; }
.facade .tree circle { fill: var(--leaf); opacity: 0.92; }
.facade .floor-tag rect { fill: var(--white); stroke: var(--line); }
.facade .floor-tag text { font: 600 13px var(--sans); fill: var(--ink); }
.facade .floor-tag text.sub { font-weight: 400; font-size: 11.5px; fill: var(--muted); }
.facade .floor { cursor: pointer; }
.facade .floor:hover .wall, .facade .floor:focus .wall { fill: #F3EBD8; }
.facade .floor:hover .roof, .facade .floor:focus .roof { fill: #A0644C; }
.facade .floor:hover .floor-tag rect, .facade .floor:focus .floor-tag rect { fill: var(--blossom); stroke: var(--blossom); }
.facade .floor:focus { outline: none; }

/* Karten */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); max-width: 780px; }
.card { background: var(--white); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; border: 1px solid var(--line); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -26px rgba(30, 42, 36, 0.5); }
.card img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-floor { font-size: 0.85rem; color: var(--leaf); font-weight: 600; margin-bottom: 6px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 8px; }
.card .card-price { margin: auto 0 0; padding-top: 10px; color: var(--ink); }

/* Ausstattung */
.band { background: var(--deep); color: var(--white); }
.band h2 { color: var(--white); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.features svg { color: var(--blossom); margin-bottom: 14px; }
.features h3 { font-size: 1.2rem; margin-bottom: 6px; }
.features p { color: #C8D3CB; font-size: 0.95rem; }

/* So buchen */
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; }
.how-steps li { counter-increment: s; border-top: 2px solid var(--deep); padding-top: 18px; display: grid; gap: 6px; }
.how-steps li::before { font-variant-numeric: lining-nums; content: counter(s); font-family: var(--serif); font-size: 2rem; color: var(--leaf); line-height: 1; }
.how-steps strong { font-size: 1.1rem; }
.how-steps span { color: var(--muted); }

/* Wohnung */
.crumb { padding: 22px 0 14px; font-size: 0.9rem; color: var(--muted); }
.crumb a { color: var(--muted); }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.gallery figure { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--white); }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g-main { grid-row: span 2; }
.apt { display: grid; grid-template-columns: 1fr 400px; gap: 56px; align-items: start; padding: 44px 0 80px; }
.apt-floor { color: var(--leaf); font-weight: 600; margin-bottom: 8px; }
.apt-facts { color: var(--muted); font-size: 1.1rem; margin-top: 10px; }
.apt h2 { font-size: 1.5rem; margin: 40px 0 14px; }
.prose { max-width: 38em; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 28px 0 32px; }
.stats div { background: var(--white); padding: 14px 16px; display: flex; flex-direction: column-reverse; }
.stats dt { color: var(--muted); font-size: 0.85rem; }
.stats dd { margin: 0; font-family: var(--serif); font-size: 1.4rem; }
.beds, .amenities { list-style: none; padding: 0; margin: 0; }
.beds { display: flex; gap: 12px; flex-wrap: wrap; }
.beds li { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; display: grid; min-width: 180px; }
.beds span { color: var(--muted); font-size: 0.92rem; }
.amenities { columns: 2; column-gap: 32px; }
.amenities li { padding: 8px 0 8px 26px; position: relative; break-inside: avoid; }
.amenities li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--leaf); }

/* Buchungsbox */
.booking { position: sticky; top: 92px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 24px 48px -36px rgba(30, 42, 36, 0.55); }
.booking-from { margin-bottom: 14px; color: var(--muted); }
.booking-from strong { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); font-weight: 400; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-title { font-weight: 600; }
.cal-nav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink); }
.cal-nav:disabled { opacity: 0.35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dows span { text-align: center; font-size: 0.75rem; color: var(--muted); padding: 4px 0; }
.cal-day { border: 0; background: var(--stone); border-radius: 8px; padding: 5px 0 4px; display: grid; justify-items: center; cursor: pointer; font: 600 0.9rem var(--sans); color: var(--ink); min-height: 46px; }
.cal-day small { font-weight: 400; font-size: 0.66rem; color: var(--muted); }
.cal-day:hover:not(:disabled) { background: #E3EBDA; }
.cal-day:disabled { cursor: default; background: transparent; color: #A9B2AC; }
.cal-day.is-blocked span { text-decoration: line-through; }
.cal-day.is-blocked small { visibility: hidden; }
.cal-day.is-range { background: #DCE6D0; border-radius: 0; }
.cal-day.is-edge { background: var(--deep); color: var(--white); }
.cal-day.is-edge small { color: #C8D3CB; }
.cal-day.is-checkout-only { background: var(--stone); color: var(--ink); }
.cal-legend { font-size: 0.78rem; color: var(--muted); margin: 8px 0 0; }
.quote { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.quote-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 0.95rem; }
.quote-row span:last-child { white-space: nowrap; }
.quote-nights { color: var(--muted); }
.quote-total { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 10px; font-weight: 600; font-size: 1.05rem; }
.quote-note { font-size: 0.8rem; color: var(--muted); margin: 8px 0 0; }
.booking-form { display: grid; gap: 12px; margin-top: 18px; }
.booking-form .btn { width: 100%; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 0.86rem; color: var(--muted); align-items: start; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--deep); }
.form-error { color: var(--red); font-size: 0.9rem; margin: 0; }
.form-ok { background: #E3EBDA; border-radius: 12px; padding: 16px; margin-top: 16px; }
.booking-note { font-size: 0.85rem; color: var(--muted); margin: 14px 0 0; }
.demo-hint { font-size: 0.82rem; background: #FBF3CF; border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; }
.others { background: var(--white); border-top: 1px solid var(--line); }
.others .card { background: var(--stone); }

/* Seiten aus dem Baukasten (Zahlung, Meldungen, Rechtstexte) */
.page { padding: 56px 0 96px; }
.page .container { max-width: 720px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 18px; }
.page h2 { font-size: 1.4rem; margin: 32px 0 10px; }
.eyebrow { color: var(--leaf); font-weight: 600; margin-bottom: 8px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin: 22px 0; }
.panel table { width: 100%; border-collapse: collapse; }
.panel td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.panel td:last-child { text-align: right; }
.panel tr.total td { font-weight: 600; border-bottom: 0; border-top: 2px solid var(--ink); }
.notice { background: #E3EBDA; border-radius: 12px; padding: 14px 16px; }
.notice.error { background: #F5DCD5; color: var(--red); }

/* Fuß */
.site-footer { background: var(--ink); color: #C8D3CB; padding: 48px 0; font-size: 0.92rem; }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer div, .site-footer nav { display: grid; gap: 8px; align-content: start; }
.site-footer a { color: #E8EEE9; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .logo { color: var(--white); }
.site-footer .logo .leaf { color: var(--blossom); }

@media (max-width: 980px) {
  .hero .container, .apt { grid-template-columns: 1fr; }
  .facade { margin: 0 auto; max-width: 520px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .booking { position: static; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .section { padding: 64px 0; }
  .site-nav a:not(.btn):not(.lang-switch) { display: none; }
  .site-nav { gap: 12px; }
  .search { grid-template-columns: 1fr 1fr; }
  .search .btn { grid-column: 1 / -1; }
  .cards, .cards-2, .how-steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .gallery .g-main { grid-column: 1 / -1; grid-row: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .amenities { columns: 1; }
  .site-footer .container { grid-template-columns: 1fr; }
  .search-result { flex-direction: column; align-items: flex-start; }
  .facade { max-width: 360px; transform: translateX(13%); }
  .facade .floor-tag, .facade .leader { display: none; }
  .hero .container { gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .facade .wall, .facade .roof { transition: none; }
}
