/* Farben und Schriften: site/css/marke.css (erzeugt aus design/marke.json) */
:root {
  --radius: 10px;
  --wrap: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  font: 17px/1.65 var(--sans);
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--sea); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 1rem; }
h3 { font-size: 1.3rem; margin: 2rem 0 1rem; color: var(--muted); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-alt { background: var(--sand); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--sea);
  color: #fff;
  text-decoration: none;
  padding: .7em 1.3em;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid var(--sea);
  cursor: pointer;
  font-size: 1rem;
  transition: background .15s;
}
.btn:hover { background: var(--sea-dark); border-color: var(--sea-dark); }
.btn-ghost { background: transparent; border-color: #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn-small { padding: .35em 1em; font-size: .95rem; }
.header-book { display: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 12px 20px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--sea); }
.site-header nav { display: flex; align-items: center; gap: 1.2rem; }
.site-header nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .95rem; }
.site-header nav a:not(.btn):hover { color: var(--sea); }

/* Hero */
.hero { position: relative; min-height: min(78vh, 760px); display: flex; align-items: flex-end; color: #fff; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,30,45,.75) 0%, rgba(10,30,45,.2) 55%, rgba(10,30,45,0) 100%); }
.hero-text { position: relative; z-index: 1; max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 0 20px 64px; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); margin: .2em 0 .3em; }
.hero p { font-size: 1.2rem; max-width: 40ch; margin: 0 0 1.5rem; }
.eyebrow { font-size: .9rem !important; letter-spacing: .08em; text-transform: uppercase; opacity: .9; margin: 0 !important; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Two columns */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.facts { list-style: none; margin: 0; padding: 28px; background: var(--sand); border-radius: var(--radius); }
.facts li { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts strong { color: var(--sea); }

/* Details zum Haus (aufklappbar) */
.details { margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.details summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--sea); display: flex; align-items: center; gap: .6rem; }
.details summary::-webkit-details-marker { display: none; }
.details summary::before { content: "+"; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--sea); font-family: var(--sans); font-size: 1.1rem; line-height: 1; transition: transform .2s; }
.details[open] summary::before { content: "–"; }
.details summary:hover { color: var(--sea-dark); }
.details-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 40px; padding: 0 0 32px; }
.details-raster h3 { color: var(--ink); font-size: 1.1rem; margin: 1rem 0 .5rem; }
.details-raster ul { margin: 0; padding-left: 1.1rem; }
.details-raster li { margin-bottom: .35rem; }
.details-raster .entfernungen { list-style: none; padding: 0; }
.details-raster .entfernungen li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dotted var(--line); padding-bottom: .25rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gallery a { display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; background: var(--line); }
.gallery-wide a { aspect-ratio: 2 / 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery-wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 1.5rem; }

/* Map */
address { font-style: normal; font-size: 1.1rem; margin-bottom: 1.5rem; }
.map { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #dfe7ea; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-consent { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 24px; gap: .5rem; color: var(--muted); font-size: .95rem; }

/* Calendar */
.cta { margin-top: 2.5rem; padding: 28px; background: var(--sand); border-radius: var(--radius); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.cta p { margin: 0; max-width: 55ch; }

/* Eigener Belegungskalender (js/belegung.js) */
.belkal { margin: 1.5rem 0 0; }
.belkal-kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.belkal-kopf button { background: #fff; border: 1px solid var(--line); border-radius: 999px; width: 40px; height: 40px; cursor: pointer; font-size: 1.2rem; color: var(--sea); }
.belkal-kopf button:disabled { opacity: .3; cursor: default; }
.belkal-legende { display: flex; gap: 1.4rem; font-size: .9rem; color: var(--muted); }
.belkal-legende span::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.belkal-legende .l-frei::before { background: #fff; border: 1px solid var(--line); }
.belkal-legende .l-belegt::before { background: #f1e4e4; border: 1px solid #e6d3d3; }
.belkal-monate { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 28px; }
.belkal-monat h3 { margin: 0 0 .6rem; font-size: 1.1rem; color: var(--ink); text-align: center; }
.belkal-tage { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.belkal-tage .wt { font-size: .75rem; color: var(--muted); padding-bottom: 2px; }
.belkal-tag { display: block; font-size: .9rem; padding: 6px 0; border-radius: 6px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); }
a.belkal-tag:hover { background: var(--sea); border-color: var(--sea); color: #fff; }
.belkal-tag.belegt { background: #f1e4e4; color: #9c7b7b; border-color: #ead9d9; text-decoration: line-through; }
.belkal-tag.vorbei { color: #c3c8cc; background: transparent; border-color: transparent; }
/* halbe Tage: links = Nacht davor, rechts = Nacht ab diesem Tag */
.belkal-tag.abreisetag { background: linear-gradient(135deg, transparent 50%, #fff 50%), repeating-linear-gradient(45deg, #f1e4e4 0 4px, #fff 4px 8px); }
.belkal-tag.anreisetag { background: linear-gradient(135deg, #fff 50%, transparent 50%), repeating-linear-gradient(45deg, #f1e4e4 0 4px, #fff 4px 8px); color: #9c7b7b; text-decoration: none; }
.belkal-legende .l-halb::before { background: linear-gradient(135deg, transparent 50%, #fff 50%), repeating-linear-gradient(45deg, #f1e4e4 0 3px, #fff 3px 6px); border: 1px solid #e6d3d3; }
.belkal-legende { flex-wrap: wrap; justify-content: center; gap: .3rem 1.4rem; }

/* Footer */
.site-footer { background: var(--sea-dark); color: #d8e3ea; padding: 32px 0; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }

/* Legal pages */
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }

/* Lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(5,15,22,.97); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 4px; }
.lightbox .caption { color: #e5edf2; margin: .8rem 0 0; text-align: center; padding: 0 60px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Mobile */
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .details-raster { grid-template-columns: 1fr; }
  .site-header { flex-wrap: wrap; padding: 10px 16px; }
  .site-header nav { gap: .9rem; overflow-x: auto; width: 100%; padding-bottom: 2px; }
  .site-header nav a { white-space: nowrap; }
  .section { padding: 52px 0; }
  .wrap { padding: 0 16px; }
  .hero { min-height: min(70vh, 620px); }
  .hero::after { background: linear-gradient(to top, rgba(10,30,45,.88) 0%, rgba(10,30,45,.55) 60%, rgba(10,30,45,.15) 100%); }
  .header-book { display: inline-block; }
  .site-header nav .btn { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .gallery-wide { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}
