/* =========================================================
   Ferienwohnung am Sandbarg – Gestaltung
   Farben zentral hier ändern (wirkt auf die ganze Seite).
   ========================================================= */
:root {
  --creme:      #faefc8;   /* Seitenhintergrund (kräftiger gelb)      */
  --sand:       #f8e2ae;   /* Sandfarbe der alten Seite               */
  --sand-hell:  #f6e2a6;
  --heide:      #8a2c86;   /* Heideblüte – Überschriften, Buttons     */
  --heide-dunkel:#5e1a5b;
  --heide-hell: #fae1fd;   /* Flieder der alten Seite                 */
  --gold:       #c49d00;
  --text:       #2e2a27;
  --text-leise: #625a55;
  --linie:      #e8dcc0;
  --weiss:      #ffffff;
  --belegt:     #e0473f;   /* Kalender: belegte Tage (rot)            */
  --auswahl:    #d6b6f0;   /* Kalender: Auswahl der Gäste (helllila)  */
  --radius:     14px;
  --schatten:   0 10px 30px rgba(70, 40, 60, .12);
  --breite:     72rem;
}

@font-face { font-family: "Catamaran"; font-weight: 300; font-display: swap; src: url("../schrift/catamaran-v6-latin-300.woff2") format("woff2"); }
@font-face { font-family: "Catamaran"; font-weight: 400; font-display: swap; src: url("../schrift/catamaran-v6-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Catamaran"; font-weight: 700; font-display: swap; src: url("../schrift/catamaran-v6-latin-700.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--creme); color: var(--text);
  font: 400 1.125rem/1.65 "Catamaran", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--heide); text-underline-offset: .18em; }
a:hover { color: var(--heide-dunkel); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--heide); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 1.25rem; }
.leise { color: var(--text-leise); }
.kicker { font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8a6d08; display: block; margin-bottom: .5rem; line-height: 1.2; }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 239, 200, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.2rem; }
.marke { display: flex; flex-direction: column; text-decoration: none; color: var(--text); line-height: 1; }
.marke strong { font-weight: 700; font-size: 1.3rem; color: var(--heide); letter-spacing: -.01em; }
@media (max-width: 480px) { .kopf .marke strong { font-size: 1.1rem; white-space: nowrap; } .kopf .marke span { font-size: .7rem; } }
.marke span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-leise); margin-top: .2rem; }
.menue { display: flex; align-items: center; gap: .25rem; }
.menue a { text-decoration: none; color: var(--text); font-weight: 400; padding: .45rem .75rem; border-radius: 999px; }
.menue a:hover { background: var(--heide-hell); color: var(--heide-dunkel); }
.menue a.knopf { color: var(--weiss); margin-left: .5rem; }
.burger { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; color: var(--heide); }
.burger svg { width: 28px; height: 28px; }
@media (max-width: 860px) {
  .burger { display: block; }
  .menue {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--creme); border-bottom: 1px solid var(--linie); padding: .5rem 1.25rem 1rem;
    box-shadow: var(--schatten);
  }
  .menue.offen { display: flex; }
  .menue a { padding: .8rem .5rem; border-radius: 8px; font-size: 1.15rem; }
  .menue a.knopf { margin: .5rem 0 0; text-align: center; font-size: 1rem; padding: .6rem 1rem; }
}

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--heide); color: var(--weiss); text-decoration: none; font-weight: 700;
  padding: .45rem 1rem; border-radius: 999px; border: 1.5px solid var(--heide);
  transition: background .2s, transform .2s; cursor: pointer; font: inherit; font-size: .95rem; font-weight: 700; line-height: 1.2;
}
.knopf:hover { background: var(--heide-dunkel); border-color: var(--heide-dunkel); color: var(--weiss); transform: translateY(-1px); }
.knopf.hell { background: var(--weiss); color: var(--heide); border-color: var(--weiss); }
.knopf.hell:hover { background: var(--heide-hell); border-color: var(--heide-hell); color: var(--heide-dunkel); }
.knopf.rand { background: transparent; color: var(--heide); }
.knopf.rand:hover { background: var(--heide); color: var(--weiss); }
.knopf.whatsapp { background: #1f8f4e; border-color: #1f8f4e; }
.knopf.whatsapp:hover { background: #17703c; border-color: #17703c; }
.knopf svg { width: 1.1em; height: 1.1em; flex: none; }
.knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Titelbild ---------- */
.titel { position: relative; color: var(--weiss); isolation: isolate; }
.titel > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.titel::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(40,15,40,.15) 0%, rgba(40,15,40,.55) 100%);
}
.titel .wrap { min-height: clamp(24rem, 62vh, 36rem); display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 3.5rem; }
.titel h1 { font-weight: 400; font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -.02em; margin: 0 0 .6rem; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.titel p { font-size: clamp(1.15rem, 2.4vw, 1.45rem); max-width: 36rem; margin-bottom: 1.6rem; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.titel .knopf { font-size: .85rem; padding: .35rem .85rem; }
.knopf.sand { background: var(--sand); color: var(--heide-dunkel); border-color: var(--sand); }
.knopf.sand:hover { background: var(--sand-hell); border-color: var(--sand-hell); color: var(--heide-dunkel); }

/* ---------- Abschnitte ---------- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
section.sand { background: var(--sand-hell); }
section.flieder { background: var(--heide-hell); }
.zwei { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .zwei { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }
.bild-rund { border-radius: var(--radius); box-shadow: var(--schatten); overflow: hidden; }
.bild-rund img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.einleitung { font-size: 1.25rem; }

/* Eckdaten */
.eckdaten { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 1rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.eckdaten li { background: var(--weiss); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: 0 2px 10px rgba(70,40,60,.06); }
.eckdaten b { display: block; font-size: 1.6rem; color: var(--heide); line-height: 1.1; }
.eckdaten span { color: var(--text-leise); font-size: 1rem; }

/* Ausstattung */
.ausstattung { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .4rem 2rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.ausstattung li { position: relative; padding: .45rem 0 .45rem 2rem; border-bottom: 1px solid var(--linie); }
.ausstattung li::before {
  content: ""; position: absolute; left: .2rem; top: .95rem; width: .95rem; height: .55rem;
  border-left: 3px solid var(--heide); border-bottom: 3px solid var(--heide); transform: rotate(-45deg);
}
.hinweis { margin-top: 1.75rem; padding: 1rem 1.25rem; background: var(--weiss); border-left: 4px solid var(--gold); border-radius: 8px; }

/* Galerie */
.galerie { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin: 2rem 0 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .galerie { grid-template-columns: repeat(4, 1fr); } .galerie li.gross { grid-column: span 2; grid-row: span 2; } }
.galerie a { display: block; position: relative; border-radius: 10px; overflow: hidden; height: 100%; }
.galerie img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s; }
.galerie a:hover img { transform: scale(1.04); }
.galerie span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .8rem .5rem; color: #fff; font-size: .95rem;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}

/* Preise */
.preise { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 2rem 0; }
.preis { background: var(--weiss); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--schatten); }
.preis .betrag { font-size: 2.6rem; font-weight: 700; color: var(--heide); line-height: 1; margin: .3rem 0 .5rem; }
.preis h3 { font-size: 1.1rem; margin: 0; }
.preis p { margin: 0; color: var(--text-leise); font-size: 1rem; }
.bedingungen { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .bedingungen { grid-template-columns: 1fr 1fr; } }
.bedingungen ul { margin: 0; padding-left: 1.2rem; }

/* Belegung + Anfrage */
.anfrage-raster { display: grid; gap: 2rem; }
@media (min-width: 960px) { .anfrage-raster { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.karte { background: var(--weiss); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.75rem); box-shadow: var(--schatten); }
.kal-steuer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.kal-steuer button {
  background: var(--heide-hell); color: var(--heide-dunkel); border: 0; border-radius: 999px;
  width: 2.6rem; height: 2.6rem; font-size: 1.3rem; cursor: pointer;
}
.kal-steuer button:disabled { opacity: .35; cursor: default; }
.kal-steuer.unten { margin: 1.25rem 0 0; }
.kal-steuer.unten button { width: auto; height: auto; padding: .45rem 1rem; font: inherit; font-size: .95rem; font-weight: 700; }
.kal-steuer strong { font-size: 1.1rem; text-align: center; }
.kalender { display: grid; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); gap: 1.5rem; }
.monat h4 { margin: 0 0 .5rem; text-align: center; font-size: 1.05rem; }
.monat table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .95rem; }
.monat th { font-weight: 400; color: var(--text-leise); font-size: .8rem; padding-bottom: .25rem; }
.monat td { padding: 2px; text-align: center; }
.monat td button {
  width: 100%; aspect-ratio: 1; border: 0; border-radius: 6px; background: #eef6ea; color: var(--text);
  font: inherit; cursor: pointer; padding: 0;
}
.monat td button:hover { outline: 2px solid var(--heide); }
.monat td button.belegt { background: var(--belegt); color: #fff; text-decoration: line-through; cursor: not-allowed; }
.monat td button.anreise { background: linear-gradient(135deg, #eef6ea 50%, var(--belegt) 50%); }
.monat td button.abreise { background: linear-gradient(135deg, var(--belegt) 50%, #eef6ea 50%); }
.monat td button.vergangen { background: transparent; color: #bbb; cursor: default; text-decoration: none; }
.monat td button.vergangen:hover { outline: 0; }
.monat td button.gewaehlt { background: var(--auswahl); color: var(--text); font-weight: 700; outline: 2px solid #9b6fc4; outline-offset: -2px; }
.monat td button.zwischen { background: var(--auswahl); }
.legende { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .95rem; color: var(--text-leise); margin-top: 1rem; }
.legende i { display: inline-block; width: 1rem; height: 1rem; border-radius: 4px; vertical-align: -2px; margin-right: .35rem; }
.auswahl { margin-top: 1rem; padding: .8rem 1rem; background: var(--sand-hell); border-radius: 10px; }
.kontaktliste { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.kontaktliste li { padding: .5rem 0; border-bottom: 1px solid var(--linie); }
.kontaktliste li:last-child { border: 0; }
.kontaktliste small { display: block; color: var(--text-leise); font-size: .9rem; }
.kontakt-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; }
.qr { display: flex; gap: 1rem; align-items: center; margin-top: 1.5rem; font-size: .95rem; color: var(--text-leise); }
.qr img { width: 96px; border-radius: 8px; }
@media (max-width: 760px) { .qr { display: none; } }

/* Umgebung */
.ziele { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 2rem 0 3rem; padding: 0; list-style: none; }
.ziele figure { margin: 0; background: var(--weiss); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 12px rgba(70,40,60,.08); height: 100%; }
.ziele img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.ziele figcaption { padding: .8rem 1rem 1rem; }
.ziele figcaption b { display: block; font-size: 1.1rem; }
.ziele figcaption span { color: var(--text-leise); font-size: 1rem; }
.ausflug { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .6rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.ausflug a {
  display: flex; justify-content: space-between; align-items: center; gap: .5rem; height: 100%;
  background: var(--weiss); padding: .85rem 1.1rem; border-radius: 10px; text-decoration: none; color: var(--text);
  border: 1px solid var(--linie);
}
.ausflug a:hover { border-color: var(--heide); color: var(--heide); }
.ausflug a::after { content: "↗"; color: var(--heide); }

/* Früher */
.frueher { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .frueher { grid-template-columns: 1fr 1fr; } }
.frueher img { border-radius: var(--radius); box-shadow: var(--schatten); }
.panorama { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; }
.panorama img { width: 100%; filter: sepia(.15); }

/* Fuß */
.fuss { background: var(--heide-dunkel); color: #f6e9f5; padding: 3rem 0 2rem; }
.fuss a { color: #fff; }
.fuss-raster { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.fuss .marke strong { color: #fff; }
.fuss .marke span { color: #e6cde4; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { padding: .15rem 0; }
.fuss-unten { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.2); font-size: .95rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }

/* Bildbetrachter */
dialog.lupe { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
dialog.lupe::backdrop { background: rgba(20, 8, 20, .88); }
dialog.lupe img { max-width: 96vw; max-height: 86vh; width: auto; border-radius: 8px; }
dialog.lupe p { color: #fff; text-align: center; margin: .6rem 0 0; }
dialog.lupe button {
  position: fixed; background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 999px;
  width: 3rem; height: 3rem; font-size: 1.6rem; cursor: pointer; line-height: 1;
}
dialog.lupe button:hover { background: rgba(255,255,255,.3); }
dialog.lupe .zu { top: 1rem; right: 1rem; }
dialog.lupe .zurueck { left: 1rem; top: 50%; }
dialog.lupe .vor { right: 1rem; top: 50%; }

/* Rechtstexte */
.rechtstext { max-width: 48rem; padding-top: 3rem; padding-bottom: 4rem; }
.rechtstext h1 { color: var(--heide); font-size: clamp(2rem, 5vw, 2.8rem); }
.rechtstext h2 { font-size: 1.5rem; margin-top: 2rem; }
.rechtstext h3 { font-size: 1.15rem; margin-top: 1.5rem; }
