:root {
  --bg: #fbf9f6;
  --bg-alt: #f1ece4;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --accent: #3f6f7f;
  --accent-dark: #2f5664;
  --border: #ddd5c9;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2 { font-family: var(--font-head); font-weight: normal; line-height: 1.2; }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 1.5rem; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 12px 26px; border-radius: 999px; text-decoration: none; border: 2px solid var(--accent); font: inherit; font-weight: 600; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-small { padding: 6px 18px; }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 249, 246, .95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-family: var(--font-head); font-size: 1.25rem; color: var(--text); text-decoration: none; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; }

/* Hero */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: center; background-size: cover; background-position: center; color: #fff; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.6), rgba(0,0,0,.25) 60%, rgba(0,0,0,.1)); }
.hero-content { position: relative; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4rem); margin: 0 0 .5rem; }
.hero p { font-size: 1.2rem; max-width: 560px; margin: 0 0 2rem; }

/* Layout */
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.facts li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; font-size: .95rem; }
.facts svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.distances { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.distances li { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.distances li:last-child { border-bottom: 0; }
.distances li span:last-child { color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery a { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 6px; }
.lb-caption { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #fff; font-size: .95rem; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 3rem; cursor: pointer; padding: 8px 16px; line-height: 1; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 4px; }
.lb-next { right: 4px; }

/* Form */
.form { display: grid; gap: 16px; margin-top: 24px; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input, .form textarea { font: inherit; font-weight: normal; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form .btn { justify-self: start; }
.form-error { color: #a33; margin: 0; }
.hint { color: var(--muted); font-size: .9rem; margin: 0; }
.contact-direct { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }

/* Footer */
.site-footer { background: #2b2b2b; color: #ccc; padding: 28px 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.site-footer p { margin: 0; }

/* Legal pages */
.legal { padding: 48px 0 72px; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.4rem; margin: 2rem 0 .5rem; }

/* Mobile */
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery a:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 3 / 2; }
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); display: none; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; width: 100%; text-align: center; }
  .nav .btn { margin-top: 8px; }
  .section { padding: 56px 0; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
}

/* Text helpers */
.lead { font-size: 1.1rem; max-width: 760px; margin: 0 0 2rem; }
.signature { font-family: var(--font-head); font-style: italic; font-size: 1.15rem; }
h3 { font-size: 1.1rem; margin: 0 0 .6rem; }

/* Map */
.map-wrap { display: grid; gap: 12px; margin-bottom: 32px; }
.map { height: 480px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-alt) url('../img/klein/terrasse-teich.jpg') center / cover; overflow: hidden; position: relative; z-index: 0; }
.map.loaded { background: #e8e4dc; }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; background: rgba(251, 249, 246, .88); }
.map-consent p { max-width: 460px; margin: 0 0 12px; }
.remember { margin-top: 12px; font-size: .9rem; color: var(--muted); display: flex; gap: 6px; align-items: center; cursor: pointer; }
.map-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .9rem; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--border); background: #fff; cursor: pointer; opacity: .45; }
.chip.active { opacity: 1; }
.dot { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 13px; flex-shrink: 0; }

.pin span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; color: #fff; font-size: 14px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.pin-home span { font-size: 22px; }
.leaflet-popup-content { font-family: var(--font); font-size: .95rem; line-height: 1.5; }

/* Place list */
.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.place-group h3 { display: flex; align-items: center; gap: 8px; }
.place-group ul { list-style: none; margin: 0; padding: 0; }
.place-group li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.place-link { all: unset; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; width: 100%; }
.place-link:hover .place-name, .place-link:focus-visible .place-name { color: var(--accent); text-decoration: underline; }
.place-link:focus-visible { outline: 2px solid var(--accent); }
.place-name { font-weight: 600; }
.place-dist { color: var(--muted); white-space: nowrap; font-size: .9rem; }
.place-group small { color: var(--muted); }

/* Activity cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0 0 .6rem; font-size: .97rem; }
.card p:last-child { margin: 0; }

/* Good to know */
.info-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.info-grid li { background: var(--bg-alt); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; }
.info-grid span { color: var(--muted); }

@media (max-width: 800px) {
  .map { height: 380px; }
  .places, .cards { grid-template-columns: 1fr; }
}

/* Availability calendar */
:root { --booked: #d8a49b; --sel: #3f6f7f; }
.calendar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 24px 0 8px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cal-nav button { background: none; border: 1px solid var(--border); border-radius: 50%; width: 38px; height: 38px; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--text); flex-shrink: 0; }
.cal-nav button:disabled { opacity: .3; cursor: default; }
.cal-status { margin: 0; text-align: center; font-size: .95rem; }
.calendar.unavailable .cal-status { text-align: left; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cal-month h3 { text-align: center; font-family: var(--font-head); font-weight: normal; font-size: 1.15rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-grid .wd { text-align: center; font-size: .8rem; color: var(--muted); padding-bottom: 4px; }
.day { aspect-ratio: 1; border: 0; border-radius: 6px; font: inherit; font-size: .9rem; cursor: pointer; color: var(--text); background: #eef3ee; display: flex; align-items: center; justify-content: center; padding: 0; }
.day.free:hover, .day.departure:hover, .day.arrival:hover { outline: 2px solid var(--sel); }
.day.past { background: transparent; color: #bbb; cursor: default; }
.day.booked { background: var(--booked); color: #fff; cursor: not-allowed; text-decoration: line-through; }
.day.arrival { background: linear-gradient(to bottom right, #eef3ee 50%, var(--booked) 50%); }
.day.departure { background: linear-gradient(to bottom right, var(--booked) 50%, #eef3ee 50%); }
.day.sel { background: #cfe0e5; }
.day.sel-start, .day.sel-end { background: var(--sel); color: #fff; font-weight: 700; }
.cal-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 16px 0 0; font-size: .85rem; color: var(--muted); }
.cal-legend li { display: flex; align-items: center; gap: 6px; }
.cal-legend .day { width: 18px; height: 18px; aspect-ratio: auto; cursor: default; }
.calendar.loading .cal-months { min-height: 200px; }
.form-warning { color: #8a5a00; background: #fff4dc; padding: 8px 12px; border-radius: 8px; margin: 0; }
@media (max-width: 640px) {
  .cal-months { grid-template-columns: 1fr; }
  .calendar { padding: 14px; }
}

/* Header image: crop position on phones */
@media (max-width: 640px) {
  .hero { background-position: 50% 40%; }
}

/* Nature gallery (Freizeit section) */
.nature-title { font-family: var(--font-head); font-weight: normal; font-size: 1.5rem; margin: 48px 0 16px; }
.gallery.nature { grid-template-columns: repeat(5, 1fr); }
.gallery.nature a, .gallery.nature a:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 5; }
@media (max-width: 800px) {
  .gallery.nature { grid-template-columns: 1fr 1fr; }
  .gallery.nature a:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
