/* ==========================================================
   Landurlaub Käsbauerhof
   Schriften liegen lokal in assets/fonts, es wird nichts
   von fremden Servern nachgeladen.
   ========================================================== */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Karla';
  src: url('../fonts/karla-latin-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* --- Farben, Maße, Grundwerte ---------------------------- */

:root {
  --creme: #FAF6EE;
  --sand: #EFE5D4;
  --holz: #33241C;
  --holz-weich: #5F4B3D;
  --terrakotta: #B0512B;
  --terrakotta-dunkel: #8E3F20;
  --wald: #3E5A44;
  --wald-tief: #2F4635;
  --linie: #DCCDB6;
  --linie-dunkel: rgba(250, 246, 238, .22);

  --huelle: 1180px;
  --rand: clamp(1.25rem, 5vw, 3rem);
  --kopf-hoehe: 4.5rem;
  --rund: 3px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--holz);
  font-family: 'Karla', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* height:auto ist wichtig, sonst gewinnen die Höhen-Angaben
   aus dem HTML gegen die Seitenverhältnisse im CSS */
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  color: var(--holz);
  margin: 0;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3.9rem);
  line-height: 1.02;
  font-variation-settings: "opsz" 96;
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  font-variation-settings: "opsz" 48;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  font-variation-settings: "opsz" 20;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--terrakotta-dunkel); }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--terrakotta);
  outline-offset: 3px;
}

.sprung-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--holz);
  color: var(--creme);
  padding: .75rem 1.25rem;
  z-index: 100;
}
.sprung-link:focus {
  left: .5rem;
  top: .5rem;
}

/* --- Bausteine ------------------------------------------- */

.huelle {
  width: 100%;
  max-width: var(--huelle);
  margin-inline: auto;
  padding-inline: var(--rand);
}
.huelle-schmal { max-width: 780px; }

.augenbraue {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terrakotta-dunkel);
  margin-bottom: .9rem;
  font-weight: 600;
}

.fuehrung {
  font-size: clamp(1.06rem, 1.6vw, 1.2rem);
  color: var(--holz-weich);
  max-width: 54ch;
}

.klein-notiz {
  font-size: .9rem;
  color: var(--holz-weich);
  margin-top: .9rem;
}

.knopf {
  display: inline-block;
  background: var(--terrakotta);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: .95rem 1.9rem;
  border: 1px solid var(--terrakotta);
  border-radius: var(--rund);
  cursor: pointer;
  font-family: inherit;
  transition: background-color .25s ease, transform .25s ease;
}
.knopf:hover { background: var(--terrakotta-dunkel); border-color: var(--terrakotta-dunkel); }
.knopf:active { transform: translateY(1px); }

.knopf-klein { padding: .6rem 1.15rem; font-size: .95rem; }

.knopf-leer {
  background: transparent;
  color: var(--terrakotta-dunkel);
  border-color: var(--terrakotta);
}
.knopf-leer:hover { background: var(--terrakotta); color: #fff; }

/* --- Hinweisband ganz oben ------------------------------- */

.hinweisband {
  background: var(--wald);
  color: var(--creme);
  font-size: .95rem;
}
.hinweisband-innen {
  max-width: var(--huelle);
  margin-inline: auto;
  padding: .8rem var(--rand);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem 1rem;
}
.hinweisband-marke {
  flex: 0 0 auto;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--wald);
  background: #E9C9AF;
  padding: .3rem .6rem;
  border-radius: 2px;
}
.hinweisband p {
  margin: 0;
  flex: 1 1 16rem;
  line-height: 1.5;
}
.hinweisband a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--creme);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(250, 246, 238, .5);
  text-underline-offset: 4px;
  transition: text-decoration-color .25s ease;
}
.hinweisband a:hover { text-decoration-color: var(--creme); }

/* --- Kopfbereich der Seite ------------------------------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 238, .93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.kopf-gescrollt { border-bottom-color: var(--linie); }

.kopf-innen {
  max-width: var(--huelle);
  margin-inline: auto;
  padding: 0 var(--rand);
  min-height: var(--kopf-hoehe);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.marke {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--holz);
  padding-block: .55rem;
}
.marke-zeichen { width: 30px; height: 30px; fill: var(--terrakotta); flex: 0 0 auto; }
.marke-zeichen .marke-haus { fill: var(--wald); }

.marke-text {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.05;
  font-variation-settings: "opsz" 20;
  display: flex;
  flex-direction: column;
}
.marke-klein {
  font-family: 'Karla', sans-serif;
  font-size: .68rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--holz-weich);
  font-weight: 600;
}

.haupt-nav { display: flex; align-items: center; gap: 1.5rem; }
.haupt-nav ul { display: flex; gap: 1.3rem; }

.haupt-nav a:not(.knopf) {
  position: relative;
  text-decoration: none;
  color: var(--holz);
  font-size: .97rem;
  padding: .3rem 0;
  white-space: nowrap;
}
.haupt-nav .knopf { white-space: nowrap; }
.haupt-nav a:not(.knopf)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--terrakotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.haupt-nav a:not(.knopf):hover::after { transform: scaleX(1); }

.menue-schalter {
  display: none;
  align-items: center;
  gap: .55rem;
  background: none;
  border: 1px solid var(--linie);
  border-radius: var(--rund);
  padding: .55rem .85rem;
  font: inherit;
  font-size: .95rem;
  color: var(--holz);
  cursor: pointer;
  min-height: 44px;
}
.menue-balken {
  position: relative;
  width: 18px; height: 2px;
  background: var(--holz);
  display: block;
}
.menue-balken::before, .menue-balken::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: var(--holz);
  transition: transform .25s ease, opacity .25s ease;
}
.menue-balken::before { top: -6px; }
.menue-balken::after { top: 6px; }
[aria-expanded="true"] .menue-balken { background: transparent; }
[aria-expanded="true"] .menue-balken::before { transform: translateY(6px) rotate(45deg); }
[aria-expanded="true"] .menue-balken::after { transform: translateY(-6px) rotate(-45deg); }

/* --- Kopfbereich Inhalt (Held) --------------------------- */

.held {
  display: grid;
  grid-template-columns: 1fr min(var(--huelle), 100% - var(--rand) * 2) 1fr;
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.held > * { grid-column: 2; }

.held-bild {
  grid-column: 1 / -1;
  overflow: hidden;
}
.held-bild img {
  width: 100%;
  height: clamp(300px, 60vh, 600px);
  object-fit: cover;
  object-position: center 62%;
}

.held-karte {
  position: relative;
  z-index: 2;
  background: var(--creme);
  margin-top: -3.5rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  max-width: 44rem;
  box-shadow: 0 28px 60px -42px rgba(51, 36, 28, .6);
}
.held-karte h1 { margin-bottom: 1.1rem; }
.held-karte .fuehrung { margin-bottom: 1.9rem; }

.fakten {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--linie);
  border-block: 1px solid var(--linie);
  margin-top: clamp(2rem, 5vw, 3.25rem);
}
.fakten li {
  background: var(--creme);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.fakten strong {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  font-variation-settings: "opsz" 24;
  line-height: 1.1;
}
.fakten span {
  font-size: .85rem;
  letter-spacing: .04em;
  color: var(--holz-weich);
}

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

.abschnitt {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  scroll-margin-top: var(--kopf-hoehe);
}
.abschnitt-sand { background: var(--sand); }

.abschnitt-wald {
  background: var(--wald);
  color: var(--creme);
}
.abschnitt-wald h2, .abschnitt-wald h3 { color: var(--creme); }
.abschnitt-wald .augenbraue { color: #E9C9AF; }
.abschnitt-wald .fuehrung { color: rgba(250, 246, 238, .82); }

.abschnitt-dunkel {
  background: var(--holz);
  color: var(--creme);
}
.abschnitt-dunkel h2 { color: var(--creme); }
.abschnitt-dunkel .augenbraue { color: #E2A882; }
.abschnitt-dunkel .fuehrung { color: rgba(250, 246, 238, .8); }
.abschnitt-dunkel .klein-notiz { color: rgba(250, 246, 238, .65); }
.abschnitt-dunkel .klein-notiz a { color: #E2A882; }

.abschnitt-kopf { margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.abschnitt-kopf h2 { margin-bottom: 1rem; }

/* --- Ausstattung ----------------------------------------- */

.ausstattung-raster { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }

.merkmale li {
  display: flex;
  gap: 1.1rem;
  padding-block: 1.35rem;
  border-top: 1px solid var(--linie);
}
.merkmale li:last-child { border-bottom: 1px solid var(--linie); }
.merkmale svg {
  width: 26px; height: 26px;
  flex: 0 0 auto;
  margin-top: .3rem;
  fill: none;
  stroke: var(--terrakotta);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.merkmale h3 { margin-bottom: .3rem; }
.merkmale p { font-size: .98rem; color: var(--holz-weich); }

.ausstattung-bilder { display: grid; gap: 1.1rem; }
.ausstattung-bilder figure { margin: 0; }
.ausstattung-bilder img {
  width: 100%;
  border-radius: var(--rund);
}
.bild-gross img { aspect-ratio: 4 / 3; object-fit: cover; }
.bild-klein img { aspect-ratio: 3 / 4; object-fit: cover; }
.bild-quer img { aspect-ratio: 3 / 4; object-fit: cover; }
.ausstattung-bilder figcaption {
  font-size: .87rem;
  color: var(--holz-weich);
  margin-top: .55rem;
}

/* --- Räume ------------------------------------------------ */

.raum-liste { display: grid; gap: clamp(3rem, 7vw, 5rem); }
.raum { display: grid; gap: 1.5rem; }
.raum-bild img {
  width: 100%;
  height: auto;
  border-radius: var(--rund);
  transition: transform .6s ease;
}
.raum-bild { overflow: hidden; border-radius: var(--rund); }
.raum-bild:hover img { transform: scale(1.02); }
.raum-text h3 { margin-bottom: .7rem; font-size: 1.45rem; font-variation-settings: "opsz" 28; }
.raum-text p { color: var(--holz-weich); }

/* --- Der Hof --------------------------------------------- */

.hof-raster { display: grid; gap: clamp(1.75rem, 4vw, 3rem); }
.hof-bild { margin: 0; }
.hof-bild img {
  width: 100%;
  border-radius: var(--rund);
  border: 1px solid var(--linie);
}
.hof-bild figcaption {
  font-size: .87rem;
  color: var(--holz-weich);
  margin-top: .6rem;
}
.hof-text p { color: var(--holz-weich); max-width: 58ch; }

.hof-heute {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
}
.hof-heute img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 60%;
  border-radius: var(--rund);
}
.hof-heute figcaption {
  font-size: .87rem;
  color: var(--holz-weich);
  margin-top: .6rem;
}

/* --- Wie wir wirtschaften --------------------------------- */

.hof-oeko { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* --- Kalender mit freien Terminen ------------------------ */

.nur-vorleser {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.kalender[hidden] { display: none; }

.kalender-steuerung {
  display: flex;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.kalender-steuerung button {
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  color: var(--holz);
  background: var(--creme);
  border: 1px solid var(--linie);
  border-radius: var(--rund);
  padding: .6rem 1.1rem;
  min-height: 44px;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease;
}
.kalender-steuerung button:hover:not(:disabled) {
  border-color: var(--terrakotta);
  color: var(--terrakotta-dunkel);
}
.kalender-steuerung button:disabled { opacity: .45; cursor: default; }

.kalender-monate {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.kalender-monat {
  width: 100%;
  border-collapse: collapse;
  background: var(--creme);
  border: 1px solid var(--linie);
  border-radius: var(--rund);
  overflow: hidden;
}
.kalender-monat caption {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  font-variation-settings: "opsz" 22;
  text-align: left;
  padding: .9rem 1rem .7rem;
  background: var(--creme);
}
.kalender-monat th {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--holz-weich);
  padding: .35rem 0 .6rem;
}
.kalender-monat td {
  text-align: center;
  padding: 2px;
}
.kalender-monat td span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  font-size: .95rem;
  border-radius: 2px;
}
.tag-frei span {
  background: rgba(62, 90, 68, .1);
  color: var(--holz);
  font-weight: 600;
}
.tag-belegt span {
  background: repeating-linear-gradient(135deg,
    rgba(95, 75, 61, .16), rgba(95, 75, 61, .16) 3px,
    transparent 3px, transparent 6px);
  color: var(--holz-weich);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.tag-vorbei span { color: rgba(95, 75, 61, .35); }

.kalender-legende {
  margin-top: 1.25rem;
  font-size: .9rem;
  color: var(--holz-weich);
}
.punkt {
  display: inline-block;
  width: .85rem; height: .85rem;
  border-radius: 2px;
  vertical-align: -1px;
  margin-right: .3rem;
  margin-left: .9rem;
}
.kalender-legende .punkt:first-child { margin-left: 0; }
.punkt-frei { background: rgba(62, 90, 68, .2); }
.punkt-belegt {
  background: repeating-linear-gradient(135deg,
    rgba(95, 75, 61, .3), rgba(95, 75, 61, .3) 3px,
    transparent 3px, transparent 6px);
  border: 1px solid var(--linie);
}

/* --- Umgebung -------------------------------------------- */

.umgebung-raster { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.umgebung-raster figure { margin: 0; }
.umgebung-raster img { width: 100%; border-radius: var(--rund); }
.umgebung-raster figcaption {
  font-size: .87rem;
  color: rgba(250, 246, 238, .7);
  margin-top: .55rem;
}
.umgebung-liste li { padding-block: 1.4rem; border-top: 1px solid var(--linie-dunkel); }
.umgebung-liste li:last-child { border-bottom: 1px solid var(--linie-dunkel); }
.umgebung-liste h3 { margin-bottom: .4rem; }
.umgebung-liste p { color: rgba(250, 246, 238, .8); font-size: .99rem; }
.umgebung-bild img { aspect-ratio: 3 / 4; object-fit: cover; }
.umgebung-zusatz img { aspect-ratio: 1 / 1; object-fit: cover; }

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

.galerie-raster {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem;
}
.galerie-knopf {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: var(--rund);
  line-height: 0;
}
.galerie-knopf img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .6s ease, filter .4s ease;
}
.galerie-knopf:hover img { transform: scale(1.04); filter: brightness(1.04); }

/* --- Fragen ---------------------------------------------- */

.fragen-liste details {
  border-top: 1px solid var(--linie);
}
.fragen-liste details:last-of-type { border-bottom: 1px solid var(--linie); }

.fragen-liste summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 2.5rem 1.25rem 0;
  position: relative;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.12rem;
  font-weight: 600;
  font-variation-settings: "opsz" 20;
}
.fragen-liste summary::-webkit-details-marker { display: none; }
.fragen-liste summary::after {
  content: "";
  position: absolute;
  right: .35rem;
  top: 50%;
  width: 11px; height: 11px;
  border-right: 1.5px solid var(--terrakotta);
  border-bottom: 1.5px solid var(--terrakotta);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s ease;
}
.fragen-liste details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.fragen-liste .antwort {
  padding-bottom: 1.4rem;
  color: var(--holz-weich);
  max-width: 62ch;
}

/* --- Anreise --------------------------------------------- */

.anreise-inhalt {
  border-top: 1px solid var(--linie);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
}
.anreise-inhalt p { color: var(--holz-weich); max-width: 60ch; }
.anreise-knopf { margin-top: 1.75rem; }
.anreise-knopf .klein-notiz { display: block; }

.anschrift {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--holz) !important;
  font-variation-settings: "opsz" 18;
  margin-top: 1.5rem;
}

/* Karte: bis zum Klick nur eine ruhige Fläche in den Hausfarben */
.karte {
  margin-top: 1.75rem;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--linie);
  border-radius: var(--rund);
  overflow: hidden;
  background: var(--sand);
}
.karte iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.karte-platzhalter {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 1.5rem;
}
.karte-platzhalter svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--terrakotta);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.karte-platzhalter p {
  font-size: .92rem;
  max-width: 34ch;
  margin: 0;
}
.karte-platzhalter .knopf { background: var(--creme); }
.karte-platzhalter .knopf:hover { background: var(--terrakotta); }

/* --- Formular -------------------------------------------- */

.formular { margin-top: .5rem; }
.feld-paar { display: grid; gap: 1.25rem; }
.feld { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.25rem; }
.feld label {
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(250, 246, 238, .9);
}
.feld input, .feld textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--creme);
  background: #3F2E24;
  border: 1px solid rgba(250, 246, 238, .25);
  border-radius: var(--rund);
  padding: .8rem .9rem;
  min-height: 48px;
  width: 100%;
  transition: border-color .25s ease, background-color .25s ease;
}
.feld textarea { resize: vertical; line-height: 1.6; }
.feld input::placeholder { color: rgba(250, 246, 238, .45); }
.feld input:focus, .feld textarea:focus {
  border-color: #E2A882;
  background: #47342A;
  outline: none;
}

.honigtopf {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formular .knopf { margin-top: .5rem; }

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

.fuss {
  background: var(--sand);
  padding-block: 2.75rem;
  font-size: .95rem;
}
.fuss-innen {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  justify-content: space-between;
  align-items: center;
}
.fuss-name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.1rem;
  font-variation-settings: "opsz" 20;
  margin-bottom: .15rem;
}
.fuss-marke p { margin: 0; color: var(--holz-weich); }
.fuss-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.fuss-nav a {
  display: inline-block;
  color: var(--holz);
  padding-block: .7rem;
  text-decoration: underline;
  text-decoration-color: var(--linie);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color .25s ease;
}
.fuss-nav a:hover { text-decoration-color: var(--terrakotta); }

/* --- Lichtbox -------------------------------------------- */

.lichtbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(35, 24, 18, .93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lichtbox[hidden] { display: none; }
.lichtbox img {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  border-radius: var(--rund);
}
.lichtbox-schliessen {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 48px; height: 48px;
  font-size: 2rem;
  line-height: 1;
  color: var(--creme);
  background: rgba(255, 255, 255, .1);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.lichtbox-schliessen:hover { background: rgba(255, 255, 255, .2); }

/* --- Rechtsseiten ---------------------------------------- */

.text-seite { padding-block: clamp(3rem, 7vw, 5rem); }
.text-seite h1 { margin-bottom: 1.5rem; }
.text-seite h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  font-variation-settings: "opsz" 24;
}
.text-seite p, .text-seite li { color: var(--holz-weich); }
.text-seite ul.punkte { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
.text-seite ul.punkte li { margin-bottom: .35rem; }

.hinweis-kasten {
  background: var(--sand);
  border-left: 3px solid var(--terrakotta);
  padding: 1.1rem 1.35rem;
  margin: 2rem 0;
  border-radius: 0 var(--rund) var(--rund) 0;
}
.hinweis-kasten p { color: var(--holz); font-size: .97rem; }

/* --- Meldung nach dem Absenden --------------------------- */

.meldung { text-align: left; }
.meldung .knopf { margin-top: 1.75rem; }

/* --- Sanftes Einblenden ---------------------------------- */

.js .blende {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s ease;
}
.js .blende.sichtbar {
  opacity: 1;
  transform: none;
}

/* ==========================================================
   Breitere Bildschirme
   ========================================================== */

@media (min-width: 640px) {
  .feld-paar { grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
  .galerie-raster { gap: 1.1rem; }
}

@media (min-width: 860px) {
  .held-karte { margin-top: -5.5rem; }

  .raum { grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
  .raum-gedreht .raum-bild { order: 2; }

  .hof-raster {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    column-gap: clamp(2.5rem, 5vw, 4rem);
  }

  .kalender-monate { grid-template-columns: 1fr 1fr; }

  .umgebung-raster {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
    column-gap: clamp(2.5rem, 5vw, 4rem);
  }
  .umgebung-bild { grid-row: span 2; position: sticky; top: calc(var(--kopf-hoehe) + 2rem); }
  .umgebung-zusatz { max-width: 60%; }

  .galerie-raster { grid-template-columns: repeat(3, 1fr); }
  .galerie-raster .gross { grid-column: span 2; grid-row: span 2; }
  .galerie-raster .gross img { aspect-ratio: 1 / 1; }
}

@media (min-width: 960px) {
  .ausstattung-raster { grid-template-columns: 1fr 1fr; align-items: start; }
  .ausstattung-bilder { grid-template-columns: 1fr 1fr; gap: 1.1rem; }
  .bild-gross { grid-column: 1 / -1; }
  .merkmale li:first-child { padding-top: 0; border-top: 0; }
}

/* ==========================================================
   Handy: eigener Durchgang
   ========================================================== */

@media (max-width: 1199px) {
  .haupt-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--creme);
    border-top: 1px solid var(--linie);
    border-bottom: 1px solid var(--linie);
    padding: .5rem var(--rand) 1.5rem;
    box-shadow: 0 18px 30px -22px rgba(51, 36, 28, .5);
  }
  .haupt-nav.offen { display: flex; }
  .haupt-nav ul { flex-direction: column; gap: 0; }
  .haupt-nav li { border-bottom: 1px solid var(--linie); }
  .haupt-nav a:not(.knopf) {
    display: block;
    padding: .95rem 0;
    font-size: 1.05rem;
    min-height: 52px;
  }
  .haupt-nav a:not(.knopf)::after { display: none; }
  .haupt-nav .knopf { margin-top: 1.25rem; text-align: center; padding: .95rem 1.5rem; }

  .menue-schalter { display: flex; }
  .kopf-innen { position: relative; }
}

/* Ab hier gelten die Regeln nur für schmale Bildschirme,
   also Handy und kleines Tablet. */
@media (max-width: 899px) {
  /* Auf dem Handy fällt das dritte Ausstattungsbild weg,
     es ist in der Galerie weiter zu sehen. */
  .nur-breit { display: none; }

  .ausstattung-bilder { grid-template-columns: 1fr 1fr; }
  .bild-gross { grid-column: 1 / -1; }

  /* Hohe Hochkantbilder werden beschnitten statt endlos hoch */
  .raum-bild img { max-height: 62vh; object-fit: cover; }
  .umgebung-bild img { aspect-ratio: 4 / 5; }
}

@media (max-width: 560px) {
  .hinweisband { font-size: .9rem; }
  .hinweisband-innen { padding-block: .7rem; gap: .35rem .75rem; }

  .fakten { grid-template-columns: 1fr 1fr; }
  .held-bild img { height: 58vh; min-height: 300px; }
  .held-karte {
    margin-top: -2.5rem;
    margin-inline: calc(var(--rand) * -1);
    padding-inline: var(--rand);
    box-shadow: none;
  }
  .fuss-innen { flex-direction: column; align-items: flex-start; }
  .umgebung-zusatz { max-width: 100%; }
  .ausstattung-bilder { grid-template-columns: 1fr; }
  .bild-klein img { aspect-ratio: 4 / 3; }
  /* Auf dem Handy wird die Karte etwas höher, sonst ist sie zu flach */
  .karte { aspect-ratio: 4 / 3; }
}

@media (max-width: 420px) {
  .marke-klein { display: none; }
  .menue-wort { display: none; }
  .menue-schalter { padding: .7rem .8rem; }
}

/* --- Weniger Bewegung, wenn gewünscht -------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .blende { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --- Fehlerseite ----------------------------------------- */

.fehler-knopf { margin: 2rem 0 2.5rem; }
.fehler-liste {
  list-style: none;
  margin-top: 1rem;
  border-top: 1px solid var(--linie);
}
.fehler-liste li { border-bottom: 1px solid var(--linie); }
.fehler-liste a {
  display: block;
  padding: .9rem 0;
  color: var(--holz);
  text-decoration: none;
  transition: color .25s ease, padding-left .25s ease;
}
.fehler-liste a:hover {
  color: var(--terrakotta-dunkel);
  padding-left: .4rem;
}
