/* Ferienbutze Indenbirken – ein Stylesheet für alle Seiten */

:root {
  --sand: #f6f2ea;
  --sand-dunkel: #ebe4d6;
  --weiss: #fff;
  --text: #2b2a28;
  --text-leise: #67625a;
  --akzent: #a8471c;        /* gedämpftes Rostrot, angelehnt an das alte Theme */
  --akzent-dunkel: #873912;
  --meer: #2f5d73;
  --linie: #ddd5c6;
  --radius: 10px;
  --breite: 68rem;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 7rem; }

body {
  margin: 0;
  font: 1.0625rem/1.65 var(--schrift);
  color: var(--text);
  background: var(--sand);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--akzent); text-underline-offset: .15em; }
a:hover { color: var(--akzent-dunkel); }
a:focus-visible, .knopf:focus-visible { outline: 3px solid var(--meer); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.25; font-weight: 650; margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.8rem); margin-top: 1.6em; }
h3 { font-size: 1.15rem; margin-top: 1.4em; }
p, ul { margin: 0 0 1em; }

.inhalt { max-width: var(--breite); margin: 0 auto; padding: 0 16px; }
.schmal { max-width: 46rem; }
.inhalt.schmal { max-width: var(--breite); }   /* linksbündig wie die übrigen Inhalte */
.inhalt.schmal > * { max-width: 46rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.sprung {
  position: absolute; left: 16px; top: -3rem; z-index: 20;
  background: var(--weiss); padding: .5rem 1rem; border-radius: var(--radius);
}
.sprung:focus { top: .5rem; }

/* ---------- Kopfzeile ---------- */

.kopf {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--linie);
}
.kopf .inhalt {
  display: flex; align-items: center; gap: .5rem 1.5rem; flex-wrap: wrap;
  padding-top: .6rem; padding-bottom: .6rem;
}
.logo {
  display: flex; align-items: center; gap: .55rem;
  color: var(--text); text-decoration: none; font-weight: 650; font-size: 1.15rem;
  margin-right: auto;
}
.logo:hover { color: var(--text); }

.menu { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.menu a {
  display: block; padding: .4rem .7rem; border-radius: 6px;
  color: var(--text); text-decoration: none;
}
.menu a:hover { background: var(--sand); color: var(--text); }
.menu a[aria-current="page"] { color: var(--akzent); font-weight: 600; }

.knopf {
  display: inline-block; padding: .6rem 1.2rem; border-radius: 999px;
  background: var(--akzent); color: #fff; font-weight: 600; text-decoration: none;
  white-space: nowrap;
}
.knopf:hover { background: var(--akzent-dunkel); color: #fff; }
.knopf.gross { padding: .85rem 1.8rem; font-size: 1.1rem; }

@media (max-width: 47.99rem) {
  .kopf .inhalt { padding-bottom: 0; column-gap: .75rem; }
  .logo { font-size: 1.05rem; line-height: 1.2; flex: 1 1 0; min-width: 0; margin-right: 0; }
  .kopf .knopf { padding: .5rem 1rem; flex: none; }
  .kopf nav {
    order: 3; flex-basis: calc(100% + 32px);
    border-top: 1px solid var(--linie); margin: 0 -16px; padding: 0 8px;
  }
  .menu { justify-content: space-between; }
  .menu a { padding: .6rem .5rem; }
}

/* ---------- Titelbild Startseite ---------- */

.hero { position: relative; background: var(--sand-dunkel); }
.hero img {
  width: 100%; height: min(72vh, 46rem); min-height: 20rem; object-fit: cover; object-position: 50% 45%;
}
.hero-text {
  position: absolute; inset: auto 0 0 0;
  padding: 4rem 0 1.6rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
  color: #fff;
}
.hero-text h1 { margin: 0; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.hero-text p { margin: .2rem 0 0; font-size: 1.15rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }

/* ---------- Kopfband Unterseiten ---------- */

.band img { width: 100%; height: clamp(5rem, 14vw, 13rem); object-fit: cover; }

/* ---------- Abschnitte ---------- */

main { padding-bottom: 3rem; }
.abschnitt { padding: 2.5rem 0 0; }
.abschnitt h2:first-child { margin-top: 0; }

.einleitung { font-size: 1.15rem; }

/* Fakten-Kacheln */
.fakten {
  display: grid; gap: 12px; margin: 1.5rem 0 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
.fakten li {
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1rem; text-align: center; line-height: 1.3;
}
.fakten svg { width: 2.2rem; height: 2.2rem; margin: 0 auto .5rem; color: var(--meer); }
.fakten strong { display: block; font-weight: 600; }
.fakten small { display: block; color: var(--text-leise); font-size: .85rem; margin-top: .2rem; }

/* Teaser-Karten */
.karten {
  display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
.karte {
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.karte img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.karte div { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.karte h3 { margin-top: 0; }
.karte p:last-child { margin: auto 0 0; }

.aufruf {
  margin-top: 2.5rem; padding: 2rem 1.5rem; text-align: center;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
}
.aufruf p { margin-bottom: 1.2rem; }

/* Räume-Liste */
.liste { padding-left: 1.2rem; }
.liste li { margin-bottom: .3rem; }
.liste li::marker { color: var(--akzent); }
.liste.spalten { columns: 2 20rem; column-gap: 3rem; }
.liste.spalten li { break-inside: avoid; }

/* Ausstattung */
.ausstattung {
  display: grid; gap: 12px; margin: 1.2rem 0 0;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.ausstattung div {
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.ausstattung dt { font-weight: 600; margin-bottom: .3rem; }
.ausstattung dd { margin: 0; }

/* Infos als Liste mit Begriffen */
.infos { margin: 0; }
.infos div {
  display: grid; grid-template-columns: 9rem 1fr; gap: .2rem 1.5rem;
  padding: .9rem 0; border-bottom: 1px solid var(--linie);
}
.infos div:first-child { border-top: 1px solid var(--linie); }
.infos dt { font-weight: 600; }
.infos dd { margin: 0; }
@media (max-width: 35rem) {
  .infos div { grid-template-columns: 1fr; }
}

.hinweis {
  margin: 1.5rem 0; padding: 1rem 1.2rem;
  background: #fbf0e6; border-left: 4px solid var(--akzent); border-radius: 0 var(--radius) var(--radius) 0;
}
.hinweis strong { display: block; margin-bottom: .2rem; }
.hinweis p { margin: 0; }

/* Kontakt */
.kasten {
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1.5rem; margin-top: 1.2rem;
}
.kasten h2 { margin-top: 0; }
.kasten p:last-child { margin-bottom: 0; }
.gross-link { font-size: 1.2rem; font-weight: 600; overflow-wrap: anywhere; }

/* Rechtstexte */
.rechtstext h2 { font-size: 1.3rem; }
.rechtstext h3 { font-size: 1.05rem; }
.rechtstext address { font-style: normal; margin-bottom: 1em; }

/* ---------- Galerie ---------- */

.galerie {
  display: grid; gap: 8px; margin: 1.2rem 0 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
}
.galerie a { display: block; border-radius: 6px; overflow: hidden; background: var(--sand-dunkel); }
.galerie img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .3s ease;
}
.galerie a:hover img { transform: scale(1.04); }
@media (max-width: 30rem) {
  .galerie { grid-template-columns: repeat(2, 1fr); }
}

/* Großansicht (js/lightbox.js) */
.lb {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 20, 18, .94); color: #fff;
}
.lb[hidden] { display: none; }
.lb figure { margin: 0; max-width: calc(100vw - 2rem); text-align: center; }
.lb img {
  max-width: 100%; max-height: calc(100vh - 6rem); max-height: calc(100dvh - 6rem);
  width: auto; height: auto; margin: 0 auto; border-radius: 4px;
}
.lb figcaption { padding: .7rem 0 0; font-size: .95rem; color: #ddd; }
.lb button {
  position: absolute; width: 3rem; height: 3rem; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.6rem; line-height: 1;
  cursor: pointer;
}
.lb button:hover { background: rgba(255, 255, 255, .28); }
.lb button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lb-zu { top: 1rem; right: 1rem; }
.lb-zurueck { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-weiter { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 40rem) {
  .lb-zurueck, .lb-weiter { top: auto; bottom: 1rem; transform: none; }
}
body.lb-offen { overflow: hidden; }

/* ---------- Fußzeile ---------- */

.fuss {
  background: var(--sand-dunkel); color: var(--text-leise);
  padding: 1.8rem 0; font-size: .95rem;
}
.fuss .inhalt { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }
.fuss p { margin: 0; }
.fuss nav { display: flex; gap: 1.2rem; }
.fuss a { color: var(--text-leise); }
