.sr-only {
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* =============================
   ROOT VARIABLEN
============================= */
:root {
  /* Farben */
  --color-bg:#ffffff;          /* globaler Seitenhintergrund (Off-White) */
  --color-surface: #ffffff;     /* weiße Flächen: Header, Footer, Karten, Tiles */
  --color-gray-100: #f5f7fa;
  --color-gray-300: #e3e7ee;
  --color-gray-600: #8a8f98;
  --color-gray-900: #20242b;
  --color-highlight: #007BFF;

  /* Typografie (Font) */
  --font: 'Epilogue', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Headings (Größe/Zeile/Gewicht/Stil/Farbe) */
  --h1-size: clamp(3rem, 5vw + 1rem, 4.1rem);
  --h1-line: 1.05;
  --h1-weight: 600;
  --h1-style: italic;
  --h1-color: var(--color-gray-900);

  --h2-size: clamp(2.2rem, 5.5vw + 0.2rem, 3rem);
  --h2-line: 1.2;
  --h2-weight: 300;
  --h2-style: italic;
  --h2-color: var(--color-gray-900);
  --h2-space: clamp(2.8rem, 1.2vw, 3rem);

  --h3-size: clamp(1.8rem, 1.2vw + 0.75rem, 2.2rem);
  --h3-line: 1.2;
  --h3-weight: 300;
  --h3-style: italic;
  --h3-color: var(--color-gray-900);
  --h3-space: clamp(2rem, 1.2vw, 2.4rem);

  --h4-size: clamp(1.1rem, 1vw + 0.5rem, 1.5rem);
  --h4-line: 1.25;
  --h4-weight: 600;
  --h4-style: normal;
  --h4-color: var(--color-gray-900);

  /* Fließtext & Caption */
  --p-size: clamp(1rem, 1vw + 0.5rem, 1.125rem);
  --p-line: 1.55;
  --p-weight: 400;
  --p-color: var(--color-gray-900);

  --caption-size: clamp(.9rem, .8vw + .4rem, 1rem);
  --caption-line: 1.35;
  --caption-weight: 400;
  --caption-color: var(--color-gray-600);

  /* Buttons */
  --btn-font-size: 1.5em;
  --btn-border-color: var(--color-highlight);
  --btn-border-width: 2px;

  /* Layoutbreiten & Abstände */
  --container: 1000px;
  --page-pad: clamp(20px, 5vw, 60px);

  /* Obergrenze für „einrastenden" Content */
  --site-max: 1100px;

  /* Radien & Effekte */
  --radius: 16px;
  --border-radius-img: 16px;
  --transition: .3s ease;
  --shadow: 0 10px 30px rgba(0,0,0,0);

  /* HEADER / LOGO */
  --header-pad-y: clamp(0.5rem, 1vw + 0.25rem, 4rem);
  --header-pad-y-shrink: clamp(0.25rem, 0.5vw, 0.75rem);
  --logo-size: clamp(100px, 18vw, 160px);
  --logo-size-shrink: clamp(120px, 12vw, 140px);
  --header-height: calc(var(--logo-size) + (2 * var(--header-pad-y)));

  /* Overlay-Menü */
  --overlay-bg: rgba(255, 255, 255, 1);

  /* Hero Bild-Helper */
  --hero-image-max-w: clamp(280px, 46vw, 960px);
  --hero-image-max-h: min(60vh, 640px);
  --hero-text-max: 560px;
  --hero-gap: clamp(1.25rem, 2vw, 2.5rem);

  --hero-img-h: clamp(320px, 48vh, 560px);
  --hero-img-h-sm: clamp(240px, 40vh, 420px);

  /* Footer im Overlay-Menü */
  --nav-footer-h: 72px;
}

/* =============================
   RESET + GLOBALER TEXTSTIL
============================= */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { 
  scroll-behavior: smooth;
  /* verhindert den Versatz beim Öffnen des Hamburger-Menüs */
  scrollbar-gutter: stable;
  overflow-x: visible; /* wichtig für sticky/fixed positioning */
}
body {
  font-family: var(--font);
  font-size: var(--p-size);
  line-height: var(--p-line);
  font-weight: var(--p-weight);
  color: var(--p-color);
  background: var(--color-bg);
  padding-top: var(--header-height); /* Platz für fixen Header */
  overflow-x: hidden;
  overflow-y: auto;
}

/* =============================
   HEADINGS GLOBAL
============================= */
h1, h2, h3, h4 {
  margin: 0 0 .5rem 0;
  text-wrap: balance;
}
h1 {
  font-size: var(--h1-size);
  line-height: var(--h1-line);
  font-weight: var(--h1-weight);
  font-style: var(--h1-style);
  color: var(--h1-color);
}
h2 {
  font-size: var(--h2-size);
  line-height: var(--h2-line);
  font-weight: var(--h2-weight);
  font-style: var(--h2-style);
  color: var(--h2-color);
}
h3 {
  font-size: var(--h3-size);
  line-height: var(--h3-line);
  font-weight: var(--h3-weight);
  font-style: var(--h3-style);
  color: var(--h3-color);
  text-align: left;
}
h4 {
  font-size: var(--h4-size);
  line-height: var(--h4-line);
  font-weight: var(--h4-weight);
  font-style: var(--h4-style);
  color: var(--h4-color);
}
@media (max-width: 899px) {
  h3 { text-align: center; }
}
p { font-size: var(--p-size); line-height: var(--p-line); font-weight: var(--p-weight); color: var(--p-color); margin: 0 0 1rem 0; }

.caption, .lage-caption, .grundriss-caption {
  font-size: var(--caption-size);
  line-height: var(--caption-line);
  font-weight: var(--caption-weight);
  color: var(--caption-color);
  margin: .5rem 0 0 0;
}

/* Layout-Container & Sektionen */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--page-pad); }
.section { display: grid; align-items: center; padding: clamp(2rem, 5vh, 4rem) 0; }
.hero.section { min-height: calc(100vh - var(--header-height)); }
.impression.section, .beschreibung.section {
  padding-top: clamp(1.5rem, 4vh, 3rem);
  padding-bottom: clamp(1.5rem, 4vh, 3rem);
}

/* =============================
   BUTTONS
============================= */
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--btn-border-color);
  border: var(--btn-border-width) solid var(--btn-border-color);
  border-radius: var(--border-radius-img);
  font-size: var(--btn-font-size);
  line-height: 1.2;
  white-space: nowrap;
  padding: 0.5em 1.2em;
  box-shadow: 0 0 0 0 var(--btn-border-color) inset;
  text-decoration: none;
  transition: box-shadow 220ms ease, color 220ms ease, background-color 220ms ease, transform 220ms ease;
}
.btn-outline:hover { box-shadow: 0 0 0 calc(var(--btn-border-width) * 1.2) var(--btn-border-color) inset; color: var(--color-gray-900); transform: translateY(-1px); }
.btn-outline:active { transform: translateY(0); box-shadow: 0 0 0 calc(var(--btn-border-width) * 1.4) var(--btn-border-color) inset; }

.btn-primary {
  appearance: none;
  background: var(--btn-border-color);
  color: #fff;
  border: var(--btn-border-width) solid var(--btn-border-color);
  border-radius: var(--border-radius-img);
  font: inherit;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.2;
  padding: 0.5em 1.1em;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 220ms ease, color 220ms ease, background-color 220ms ease, transform 220ms ease;
  box-shadow: 0 0 0 0 var(--btn-border-color) inset;
}
.btn-primary:hover {
  background: transparent;
  color: var(--color-gray-900);
  box-shadow: 0 0 0 calc(var(--btn-border-width) * 1.2) var(--btn-border-color) inset;
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 0 0 calc(var(--btn-border-width) * 1.4) var(--btn-border-color) inset;
}
.btn-primary:focus-visible {
  outline: 2px solid var(--btn-border-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 calc(var(--btn-border-width) * 1.2) var(--btn-border-color) inset;
}

/* =============================
   HEADER (Fix: einheitlich)
============================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  background: var(--color-surface);
  border: none; 
  box-shadow: none;
  padding-block: var(--header-pad-y);
  padding-inline: var(--page-pad);
  transition: padding-block var(--transition);
}
.site-header.shrink { padding-block: var(--header-pad-y-shrink); }
body.header-shrink { --header-height: calc(var(--logo-size-shrink) + (2 * var(--header-pad-y-shrink))); }

.logo { display: flex; align-items: center; gap: 0.6rem; }
.logo img { height: var(--logo-size); width: auto; border-radius: var(--border-radius-img); transition: height var(--transition); }
.site-header.shrink .logo img { height: var(--logo-size-shrink); }

/* Hamburger */
.menu-toggle {
  --bar: 3px;
  width: 36px;
  height: 26px;
  position: relative;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 1300;
}
.menu-toggle .bar {
  position: absolute; left: 0; right: 0;
  height: var(--bar);
  background: var(--color-gray-900);
  border-radius: 3px;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}
.menu-toggle .bar:nth-child(1){ top: 0; }
.menu-toggle .bar:nth-child(2){ top: calc(50% - var(--bar)/2); }
.menu-toggle .bar:nth-child(3){ bottom: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(1){ transform: translateY(11px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2){ opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3){ transform: translateY(-11px) rotate(-45deg); }

/* Hamburger-Icon kleiner auf Mobile */
@media (max-width: 767px) {
  .menu-toggle {
    --bar: 3px;
    width: 28px;
    height: 20px;
  }

  .menu-toggle .bar:nth-child(1){ top: 0; }
  .menu-toggle .bar:nth-child(2){ top: calc(50% - var(--bar)/2); }
  .menu-toggle .bar:nth-child(3){ bottom: 0; }

  /* Angepasstes Kreuz */
  .menu-toggle[aria-expanded="true"] .bar:nth-child(1){
    transform: translateY(9px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] .bar:nth-child(3){
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* Overlay-Navigation */
.main-nav {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--overlay-bg);
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 900;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.main-nav.open { opacity: 1; pointer-events: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0 var(--page-pad); display: flex; flex-direction: column; gap: 1rem; text-align: center; }

.main-nav .nav-primary a {
  color: var(--color-gray-900);
  text-decoration: none;
  font-size: clamp(2rem, 1.2vw + 1rem, 3rem);
  padding: .4rem .8rem;
  border-radius: 10px;
  transition: color var(--transition), font-weight var(--transition);
}
.main-nav .nav-primary a:hover { color: var(--color-highlight); font-weight: 700; }

/* Kleine Legal-Links im Overlay-Menü */
.main-nav .nav-legal {
  margin-top: 2rem;
  text-align: center;
  font-size: var(--caption-size);
  color: var(--caption-color);
}
.main-nav .nav-legal a {
  font-size: var(--caption-size);
  font-weight: var(--caption-weight);
  color: var(--caption-color);
  text-decoration: none;
  padding: 0;
  border-radius: 0;
  display: inline;
}
.main-nav .nav-legal a:hover { text-decoration: underline; }

/* HEADER @site-max — Einrückung wie Sections */
@media (min-width: 1200px) {
  .site-header { padding-inline: calc( max(0px, (100vw - var(--site-max)) / 2 ) + var(--page-pad) ); }
  .main-nav ul { padding-inline: calc( max(0px, (100vw - var(--site-max)) / 2 ) + var(--page-pad) ); }
}

/* =============================
   HERO
============================= */
.hero{
  min-height: calc(100vh - var(--header-height));
  padding-block: clamp(1.5rem, 5vh, 4.5rem);
  display: flex; align-items: center;
  background: var(--color-bg);
  box-sizing: border-box;
}
.hero .hero-inner{
  display: grid; align-items: center; gap: var(--hero-gap);
  width: 100%; padding: 0 var(--page-pad); margin: 0;
  grid-template-columns: 1fr;
}
.hero .hero-text{ display: grid; gap: clamp(.5rem, 1.2vh, 1rem); max-width: var(--hero-text-max); }
.hero .hero-subline{ max-width: 42ch; }
.hero-image-wrapper{
  height: var(--hero-img-h); width: 100%;
  max-width: clamp(420px, 54vw, 1100px);
  justify-self: end; overflow: hidden; border-radius: var(--border-radius-img);
}
.hero-image{ height: 100%; }
.hero-image img{
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; aspect-ratio: auto;
}
.hero .btn-outline { justify-self: start; width: auto; max-width: max-content; }

@media (min-width: 768px){
  .hero .hero-inner{
    grid-template-columns: minmax(320px, var(--hero-text-max)) minmax(420px, 1fr);
  }
}
@media (min-width: 1200px){ .hero-image-wrapper{ max-width: clamp(520px, 58vw, 1200px); } }
@media (max-width: 767px){
  .hero .hero-inner{ grid-template-columns: 1fr; text-align: center; }
  .hero .hero-text{ justify-items: center; }
  .hero .btn-outline{ justify-self: center; font-size: clamp(1.25rem, 4vw, 1.5rem); padding: 0.45em 1em; }
  .hero-image-wrapper{ order: -1; max-width: 100%; height: var(--hero-img-h-sm); margin-bottom: clamp(1rem, 3vh, 1.5rem); justify-self: stretch; }
}

/* =============================
   HIGHLIGHTS CSS
============================= */
.highlights { background: var(--color-bg); padding: clamp(1rem, 3vh, 2rem) 0; padding-inline: var(--page-pad); }
.highlights-panel { max-width: min(calc(var(--site-max) - 2 * var(--page-pad)), 100%); margin-inline: auto; background: var(--color-gray-300); border-radius: var(--border-radius-img); padding: clamp(1.25rem, 3vw, 2.5rem); }
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 3vw, 3rem);
}
.highlight { display: grid; place-items: center; gap: .65rem; text-align: center; }
.highlight::before { display: none; }
.highlight > img { 
  display: block; 
  width: 48px; 
  height: 48px; 
  border-radius: 50%; 
  object-fit: cover;
}
.highlight p { margin: 0; line-height: 1.35; font-weight: 400; }
@media (max-width: 991px) {
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .highlights { padding-block: clamp(2rem, 7vw, 3rem); }
  .highlights-panel { padding: clamp(1.5rem, 5vw, 2rem); }
}

/* =============================
   IMPRESSION
============================= */
.impression.section { min-height: auto; background: var(--color-bg); padding: clamp(1rem, 3vh, 2rem) 0; padding-inline: var(--page-pad); }
.photo-panel { max-width: min(calc(var(--site-max) - 2 * var(--page-pad)), 100%); margin-inline: auto; border-radius: var(--border-radius-img); overflow: hidden; max-height: min(72vh, 820px); }
.photo-panel img { width: 100%; height: 100%; object-fit: cover; object-position:bottom; display: block; }
@media (max-width: 767px) { .impression.section { padding-block: clamp(1.25rem, 5vw, 2.25rem); } .photo-panel { aspect-ratio: 4 / 3; } }

/* =============================
   BESCHREIBUNG
============================= */
.beschreibung { background: var(--color-bg); }
.beschreibung .container { max-width: none; width: 100%; margin: 0; padding-inline: var(--page-pad); }
.beschreibung .beschreibung-inner { display: grid; gap: var(--hero-gap); align-items: stretch; grid-template-columns: 1fr; }
@media (min-width: 900px) { .beschreibung .beschreibung-inner { grid-template-columns: 1fr 1fr; } }
.beschreibung-bild { display: flex; }
.beschreibung-bild img { flex: 1; width: 100%; height: 100%; object-fit: cover; border-radius: var(--border-radius-img); box-shadow: var(--shadow); display: block; }
.beschreibung .beschreibung-text { max-width: 62ch; align-self: center; }
@media (max-width: 899px) {
  .beschreibung .beschreibung-inner { grid-template-columns: 1fr; }
  .beschreibung-bild { order: -1; margin-bottom: clamp(1rem, 4vh, 2rem); }
  .beschreibung .beschreibung-text h2 { text-align: center; }
  .beschreibung .beschreibung-text p  { text-align: left; }
}

/* =============================
   GALERIE
============================= */
.gallery { background: var(--color-bg); }
.gallery .container { max-width: none; width: 100%; margin: 0; padding-left: var(--page-pad); padding-right: var(--page-pad); }
.gallery-grid { display: grid; gap: .6rem; grid-template-columns: repeat(3, 1fr); }
.gallery-grid img { width: 100%; border-radius: 12px; cursor: pointer; transition: transform .2s ease; }
.gallery-grid img:hover { transform: scale(1.02); }
@media (max-width: 767px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* =============================
   LIGHTBOX
============================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  /* wichtig: standardmäßig unsichtbar */
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

/* Controls immer vor dem Bild halten */
.lightbox .close,
.lightbox .prev,
.lightbox .next {
  position: absolute;
  z-index: 1;
  color: #fff;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

/* Close oben rechts */
.lightbox .close {
  top: 1rem;
  right: 1rem;
  font-size: 2.5rem;
  line-height: 1;
  padding: .25rem .4rem;
  transform: none;
}

/* Pfeile mittig links/rechts */
.lightbox .prev,
.lightbox .next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  line-height: 1;
  padding: .5rem .75rem;
}

.lightbox .prev { left: 2rem; }
.lightbox .next { right: 2rem; }

/* größere Touch-Ziele auf Mobile */
@media (max-width: 640px) {
  .lightbox .prev,
  .lightbox .next {
    font-size: 2.25rem;
    padding: .75rem 1rem;
  }

  .lightbox .prev { left: 1rem; right: auto; }
  .lightbox .next { right: 1rem; left: auto; }

  .lightbox .close,
  .lightbox .prev,
  .lightbox .next,
  #success-close { outline: none; }
  .lightbox .close:focus-visible,
  .lightbox .prev:focus-visible,
  .lightbox .next:focus-visible,
  #success-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }
}

/* =============================
   AUSSTATTUNG
============================= */
.ausstattung { background: var(--color-bg); padding-block: clamp(1rem, 3vh, 2rem); padding-inline: var(--page-pad); }
.ausstattung-panel { width: 100%; margin-inline: auto; max-width: min(calc(var(--site-max) - 2 * var(--page-pad)), 100%); background: var(--color-gray-300); border-radius: var(--border-radius-img); padding: clamp(1.25rem, 3vw, 2.5rem); }
.ausstattung h3 { font-style: var(--h3-style); font-weight: var(--h3-weight); font-size: var(--h3-size); color: var(--h3-color); margin-bottom: var(--h3-space); }
.ausstattung-grid{ column-count: 2; column-gap: clamp(1rem, 3vw, 2rem); }
.ausstattung-grid > div{ break-inside: avoid; margin: 0 0 clamp(1rem, 3vw, 2rem); }
.ausstattung-grid h3 { font-weight: 600; font-size: 1rem; background: #fff; padding: 0.15em 0.6em; border-radius: 999px; display: inline-block; margin: .25rem 0 .5rem 0; }
.ausstattung-grid ul { list-style: none; margin: 0; padding: 0; color: var(--color-gray-900); }
.ausstattung-grid li { margin: 0.3rem 0; }
@media (min-width:1100px){
  .ausstattung-grid{ display: block; column-count: 3; column-gap: clamp(1rem, 3vw, 2rem); }
  .ausstattung-grid > div{ break-inside: avoid; margin: 0 0 clamp(1rem, 3vw, 2rem); }
  .ausstattung-grid > .card--wohnraum,
  .ausstattung-grid > .card--kueche,
  .ausstattung-grid > .card--schlaf1,
  .ausstattung-grid > .card--abstellraum,
  .ausstattung-grid > .card--schlaf2,
  .ausstattung-grid > .card--sonstiges{
    grid-column: auto !important; grid-row: auto !important;
  }
}

/* =============================
   LAGE
============================= */
.lage .container { max-width: none; width: 100%; margin: 0; padding-inline: var(--page-pad); }
.lage-inner { display: grid; gap: var(--hero-gap); align-items: start; grid-template-columns: 1fr; }
@media (min-width: 900px) { .lage-inner { grid-template-columns: 1fr 1fr; } }
.lage-col { display: grid; align-content: start; }
.lage-col img { width: 100%; height: auto; border-radius: var(--border-radius-img); box-shadow: var(--shadow); }
.lage-col img + .lage-caption { margin-top: clamp(1.75rem, 1.2vw, 2rem); }
.lage-caption { text-align: left; }
@media (max-width: 899px) { .lage-caption { text-align: center; } }
.lage-button-wrapper { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: clamp(1.5rem, 1.2vw, 2rem); }
.lage-button-wrapper .btn-outline { font-size: clamp(0.95rem, 2.2vw, 1.05rem); padding: 0.45em 1em; }

/* =============================
   GRUNDRISS
============================= */
.grundriss .container { max-width: none; width: 100%; margin: 0; padding-left: var(--page-pad); padding-right: var(--page-pad); }
.grundriss-inner { display: grid; gap: var(--hero-gap); align-items: start; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grundriss-inner { grid-template-columns: 1fr 1fr; } }
.grundriss-col img { width: 100%; height: auto; display: block; border-radius: var(--border-radius-img); box-shadow: var(--shadow); }

/* =============================
   PREISE / VERFÜGBARKEIT
============================= */
.preise-verfuegbarkeit {
  background: var(--color-bg);
  padding: clamp(1rem, 3vh, 2rem) 0;
}
.preise-verfuegbarkeit .container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}
.pv-grid {
  inline-size: auto;
  margin-inline: auto;
  max-width: min(calc(var(--site-max) - 2 * var(--page-pad)), 100%);
  display: grid;
  gap: 1.5rem;
}
@media (min-width:900px) {
  .pv-grid { grid-template-columns: 1fr 1fr; }
}

.preis-tabelle {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--color-gray-300);
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-surface);
  table-layout: fixed;
}
.preis-tabelle th,
.preis-tabelle td {
  padding: .75rem .8rem;
  border-bottom: 1px solid var(--color-gray-300);
  text-align: left;
}
.preis-tabelle th {
  background: var(--color-gray-200);
  font-weight: var(--h4-weight);
}

/* Spalten-Layout für Preistabelle */
.preis-tabelle th:first-child,
.preis-tabelle td:first-child { 
  width: 62%; 
  text-align: left;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  word-wrap: break-word; 
  overflow-wrap: anywhere;
}

.preis-tabelle th:nth-child(2),
.preis-tabelle td:nth-child(2) {
  width: 23%;
  text-align: right;
  white-space: nowrap;
}

.preis-tabelle th:nth-child(3),
.preis-tabelle td:nth-child(3) {
  width: 25%;
  text-align: left;
  white-space: nowrap;
}

/* Datums-Range spaltig ausrichten */
.preis-tabelle td:first-child .date-range{
  display: inline-grid;
  grid-template-columns: 7ch 1.5ch 8ch;
  align-items: baseline;
  justify-content: start;
  gap: .1ch;
  font-variant-numeric: tabular-nums;
}

.preis-tabelle td:first-child .from { text-align: left; }
.preis-tabelle td:first-child .dash { text-align: center; }
.preis-tabelle td:first-child .to   { text-align: left; }

.hinweis {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
  color: var(--color-gray-600);
}

/* Mobile Kurabgabe-Text zentrieren */
@media (max-width: 767px) {
  .hinweis {
    text-align: center;
  }
}

/* Extra enge Screens */
@media (max-width: 420px) {
  .preis-tabelle th:first-child,
  .preis-tabelle td:first-child { width: 50%; }
  .preis-tabelle th:nth-child(2),
  .preis-tabelle td:nth-child(2) { width: 25%; }
  .preis-tabelle th:nth-child(3),
  .preis-tabelle td:nth-child(3) { width: 25%; }
}

/* Mobile Preise-Section Layout */
@media (max-width: 899px) {
  .preise-verfuegbarkeit { padding-inline: var(--page-pad); }
  .preise-verfuegbarkeit .container { padding-inline: 0; }
  .pv-grid { max-width: 100%; width: 100%; overflow: hidden; }
  .preise, .verfuegbarkeit,
  .preis-tabelle, .calendar {
    max-width: 100%;
    overflow: hidden;
  }
}

/* =============================
   VERFÜGBARKEIT: Kalender-Panel
============================= */
.calendar { margin-top: 0.5rem; background: var(--color-gray-300); border-radius: var(--border-radius-img); padding: clamp(1rem, 3vw, 1.5rem); }
.cal-head { display: grid; grid-template-columns: 2.5rem 1fr 2.5rem; align-items: center; gap: .5rem; background: var(--color-surface); border-radius: 999px; padding: .4rem .6rem; margin-bottom: 1rem; }
.cal-head button { background: transparent; border: 0; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.cal-head .cal-title { text-align: center; font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .6rem; }
.cal-weekday { text-align: center; font-weight: 600; padding: .3rem 0; }
.cal-day { background: var(--color-surface); border-radius: 10px; text-align: center; padding: .6rem 0; font-weight: 600; border: 3px solid var(--color-surface); }
.cal-day.free    { background: #2ee183; }
.cal-day.busy    { background: #ec8888; }
.cal-day.muted   { background: #e9edf3; color: #98a0aa; }
.cal-day.today   { outline: 2px solid var(--color-highlight); }
.cal-day.arrival   { background: linear-gradient(135deg, #2ee183 50%, #ec8888 50%); }
.cal-day.departure { background: linear-gradient(135deg, #ec8888 50%, #2ee183 50%); }
.cal-legend { display: flex; gap: .75rem; align-items: center; margin-top: 1rem; justify-content: center; }
.cal-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.cal-dot.free { background:#2ee183; }
.cal-dot.busy { background:#ec8888; }
.cal-dot.arrival { background: linear-gradient(135deg, #2ee183 50%, #ec8888 50%); }
.cal-dot.departure { background: linear-gradient(135deg, #ec8888 50%, #2ee183 50%); }


/* =============================
   BUCHUNGSANFRAGE
============================= */
.kontakt { background: var(--color-bg); }
.kontakt .container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

.booking-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: .6rem;
  margin-top: 1rem;
  max-width: min(calc(var(--site-max) - 2 * var(--page-pad)), 100%);
  margin-left: auto;
  margin-right: auto;
}

/* Label & Felder */
.booking-form label {
  display: grid;
  gap: .35rem;
  font-size: .95rem;
  color: var(--color-gray-900);
  min-width: 0;
  width: 100%;
}

.booking-form input,
.booking-form textarea,
.booking-form select {
  width: 100%;
  box-sizing: border-box;
  line-height: 1.2;
  background: #fff;
  color: var(--color-gray-900);
  padding: .8rem 1rem;
  border: 1px solid var(--color-gray-300);
  border-radius: 12px;
  font: inherit;
  max-width: 100%;
}

.booking-form input::placeholder,
.booking-form textarea::placeholder { color: var(--color-gray-600); }

.booking-form input:focus,
.booking-form textarea:focus,
.booking-form select:focus {
  outline: 2px solid var(--btn-border-color);
  outline-offset: 2px;
  border-color: var(--btn-border-color);
}

.booking-form textarea { min-height: 120px; resize: vertical; }

/* Desktop: zwei Spalten */
@media (min-width: 860px) {
  .booking-form { grid-template-columns: 1fr 1fr; }
  .booking-form .full-width { grid-column: 1 / -1; }
}

.booking-form .btn-primary { justify-self: start; width: auto; }

/* Form-Hinweise */
.form-note {
  font-size: .95rem;
  color: var(--color-gray-900);
  line-height: 1.35;
  margin: .35rem 0 .25rem 0;
}
.form-note.full-width { grid-column: 1 / -1; }

.form-privacy {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: .5rem;
  font-size: .95rem;
  color: var(--color-gray-900);
}
.form-privacy a { color: inherit; text-decoration: underline; }

/* Honeypot unsichtbar */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Submit-Status & Meldungen */
#booking-submit[disabled] { opacity: .6; cursor: progress; }
.form-msg { margin-left: .75rem; font-size: .95rem; }
.form-msg.ok { color: #1a7f37; }
.form-msg.err { color: #b42318; }

/* Erfolgsoverlay */
.form-success {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  display: grid; place-items: center;
  z-index: 1600;
}
.form-success[hidden] { display: none; }
.form-success__box {
  background: var(--color-surface);
  color: var(--color-gray-900);
  border-radius: var(--border-radius-img);
  padding: 1.25rem 1.25rem 1rem;
  width: min(520px, calc(100% - 2*var(--page-pad)));
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  text-align: center;
}
.form-success__box h4 { margin: 0 0 .5rem 0; }
.form-success__box p { margin: 0 0 .9rem 0; }

/* =============================
   GLOBALER CONTENT-CAP
============================= */
@media (min-width: 1100px) {
  .hero .hero-inner,
  .beschreibung .container,
  .gallery .container,
  .lage .container,
  .grundriss .container,
  .preise-verfuegbarkeit .container,
  .kontakt .container,
  .site-footer .container {
    max-width: min(var(--site-max), 100%);
    margin-inline: auto;
    padding-left: var(--page-pad);
    padding-right: var(--page-pad);
  }
  .highlights-panel, .photo-panel, .pv-grid, .booking-form, .calendar {
    inline-size: auto; margin-inline: auto; max-width: min(calc(var(--site-max) - 2 * var(--page-pad)), 100%);
  }
}

/* =============================
   FOOTER
============================= */
.site-footer { background: var(--color-surface); border-top: 1px solid var(--color-gray-300); padding: 1.5rem 0; text-align: center; }
.site-footer a { color: inherit; }

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

/* Footer im Overlay-Menü */
.menu-open .site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-gray-300);
  z-index: 1250;
  padding: 1rem 0;
}

.menu-open .site-footer .container {
  text-align: center;
}

.menu-open .main-nav {
  padding-bottom: var(--nav-footer-h);
}

/* =============================
   SCROLL & NAVIGATION
============================= */
[id] {
  scroll-margin-top: var(--header-height);
}

/* =============================
   LEGAL-SEITEN
============================= */
.legal-page h2,
.legal-page h3 {
  font-size: var(--p-size);
  font-weight: 600;
  text-align: left;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* =============================
   MOBILE FORM OPTIMIERUNGEN (behalten alle Overrides)
============================= */
@media (max-width: 767px) {
  .booking-form input,
  .booking-form textarea,
  .booking-form select {
    font-size: 16px; /* verhindert iOS Auto-Zoom */
  }
  
  .booking-form {
    max-width: 100%;
  }
}

/* Einheitliche Feldhöhe (behalten wie sie sind) */
.booking-form input:not([type="checkbox"]):not([type="radio"]),
.booking-form select {
  height: 36px;
  min-height: 36px;
  line-height: 36px;
  border: 1px solid var(--color-highlight);
}

/* Date/Number-Felder */
.booking-form input[type="date"],
.booking-form input[type="number"] {
  height: 36px;
  min-height: 36px;
  line-height: 36px;
  border-color: var(--color-highlight);
}

.booking-form textarea {
  border: 1px solid var(--color-highlight);
}

/* Date Input Styling */
.booking-form input[type="date"] {
  text-align: left;
  padding-right: 2.25rem;
  -webkit-appearance: none;
  appearance: none;
}

.booking-form input[type="date"]::-webkit-datetime-edit {
  text-align: left;
  padding: 0;
}

.booking-form input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  text-align: left;
}

.booking-form input[type="date"]::-webkit-datetime-edit-year-field,
.booking-form input[type="date"]::-webkit-datetime-edit-month-field,
.booking-form input[type="date"]::-webkit-datetime-edit-day-field,
.booking-form input[type="date"]::-webkit-datetime-edit-text {
  text-align: left;
}

.booking-form input[type="date"]::-webkit-calendar-picker-indicator {
  padding: 0;
  margin: 0 .5rem 0 0;
  opacity: .8;
}

/* Number Input Styling */
.booking-form input[type="number"] {
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: textfield;
  padding-right: 1rem;
}

.booking-form input[type="number"]::-webkit-outer-spin-button,
.booking-form input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Autofill Styling */
.booking-form input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #fff inset !important;
  -webkit-text-fill-color: var(--color-gray-900) !important;
  caret-color: var(--color-gray-900);
}

@media (max-width: 360px) {
  .booking-form input:not([type="checkbox"]):not([type="radio"]),
  .booking-form select {
    height: 44px;
    line-height: 44px;
  }
}

/* =============================
   FORM VALIDATION STYLING
============================= */
.booking-form .field-error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.booking-form .error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

.booking-form .field-valid {
  border-color: #28a745;
}

/* =============================
   DRUCKANSICHT OPTIMIERT
============================= */
@media print {
  /* Elemente für Druck ausblenden */
  .main-nav, .menu-toggle, .impression,
  .lightbox, .lage-button-wrapper,
  .btn-outline, .btn-primary .booking-form {
    display: none !important;
  }

  /* Header nur auf der ersten Seite anzeigen */
  .site-header {
    display: block !important;
    position: static !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 1cm 0 0.5cm 0;
    text-align: center;
    page-break-after: avoid;
  }

  /* Header auf allen Seiten außer der ersten ausblenden */
  body > *:not(.hero) ~ * .site-header,
  body > .site-header:not(:first-child) {
    display: none !important;
  }

  /* Logo auf erster Seite anpassen */
  .site-header .logo img {
    height: 120px !important;
    width: auto;
  }

  /* Hamburger-Menu aus Header entfernen */
  .site-header .menu-toggle {
    display: none !important;
  }

/* Grundlegende Druckformatierung */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body {
    color: #000 !important;
    background: #fff !important;
    font-size: 12pt;
    line-height: 1.4;
    margin: 0;
    padding: 1.5cm 2cm;
  }

  /* Seitenumbruch-Kontrolle für bessere Layout */
  h2, h3 {
    page-break-after: avoid; /* Überschriften nicht am Seitenende */
    break-after: avoid;
    margin-top: 1.5cm;
    margin-bottom: 0.5cm;
  }

  h2 + *, h3 + * {
    page-break-before: avoid; /* Inhalt nach Überschrift nicht trennen */
    break-before: avoid;
  }

  /* Abschnitte zusammenhalten */
  .beschreibung,
  .ausstattung-panel,
  .preise,
  .verfuegbarkeit {
    page-break-inside: avoid;
    break-inside: avoid;
    margin-bottom: 1cm;
  }

  /* Ausstattungs-Karten zusammenhalten */
  .ausstattung-grid > div {
    page-break-inside: avoid;
    break-inside: avoid;
    margin-bottom: 0.5cm;
  }

  /* Tabellen optimieren */
  .preis-tabelle {
    page-break-inside: avoid;
    break-inside: avoid;
    border: 2pt solid #000;
    margin-bottom: 1cm;
  }

  .preis-tabelle th,
  .preis-tabelle td {
    border: 1pt solid #000;
    padding: 0.3cm;
    font-size: 11pt;
  }

  .preis-tabelle th {
    background: #f0f0f0 !important;
    font-weight: bold;
  }

  /* Tabellen-Kopfzeilen wiederholen */
  .preis-tabelle thead {
    display: table-header-group;
  }

  /* Absätze und Listen */
  p, li {
    orphans: 2; /* Min. 2 Zeilen am Seitenende */
    widows: 2;  /* Min. 2 Zeilen am Seitenanfang */
  }

  ul, ol {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Links für Druck anpassen */
  a {
    color: #000 !important;
    text-decoration: underline;
  }

  /* URLs nach Links anzeigen (außer bei E-Mails) - aber Footer-Links ausblenden */
  a[href]:not([href^="mailto:"]):not([href^="tel:"]):not(.site-footer a):after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }

  /* Kontaktformular für Druck: klare Linien */
  .booking-form {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .booking-form input,
  .booking-form select,
  .booking-form textarea {
    border: 1pt solid #000 !important;
    background: #fff !important;
    height: auto !important;
    min-height: 0.8cm;
    padding: 0.2cm;
    font-size: 11pt;
  }

  .booking-form label {
    font-weight: bold;
    margin-top: 0.5cm;
  }

  /* Hauptüberschriften */
  h1 {
    font-size: 18pt;
    margin-bottom: 1cm;
    page-break-after: avoid;
    break-after: avoid;
  }

  h2 {
    font-size: 16pt;
    font-weight: bold;
    font-style: normal;
  }

  h3 {
    font-size: 14pt;
    font-weight: bold;
    font-style: normal;
  }

  /* Hinweise für bessere Lesbarkeit - OHNE Hintergrundfarbe */
  .hinweis {
    font-style: italic;
    margin: 0.5cm 0;
    padding: 0.3cm;
    border: 1pt solid #ccc;
    background: transparent !important; /* Keine Hintergrundfarbe */
  }

  /* Abschnittstrennungen */
  .section:not(:last-child) {
    border-bottom: 1pt solid #ddd;
    padding-bottom: 0.5cm;
    margin-bottom: 1cm;
  }

  /* Verfügbarkeit: Nur Text anzeigen, Kalender ausblenden */
  .verfuegbarkeit .calendar {
    display: none !important;
  }
  
  .verfuegbarkeit:after {
    content: "Aktuelle Verfügbarkeit siehe Online-Version der Website.";
    display: block;
    font-style: italic;
    color: #666;
    margin-top: 0.5cm;
    padding: 0.3cm;
    border: 1pt solid #ccc;
    background: #f9f9f9 !important;
  }

  /* Footer-Links für Impressum und Datenschutz ausblenden */
  .site-footer a[href="impressum.html"],
  .site-footer a[href="datenschutz.html"] {
    display: none !important;
  }
  
  /* Trennstriche zwischen Footer-Links entfernen wenn Links fehlen */
  .site-footer {
    font-size: 0; /* Versteckt Leerzeichen zwischen Elementen */
  }
  
  .site-footer * {
    font-size: 10pt; /* Stellt normale Schriftgröße wieder her */
  }

  /* Seitenzahlen (falls gewünscht) */
  @page {
    margin: 2cm;
    @bottom-right {
      content: "Seite " counter(page) " von " counter(pages);
      font-size: 10pt;
    }
  }
}
/* =============================
   DRUCKANSICHT OPTIMIERT
============================= */
@media print {
  /* Elemente für Druck ausblenden */
  .main-nav, .menu-toggle, .impression,
  .lightbox, .lage-button-wrapper, .calendar-placeholder,
  .btn-outline, .btn-primary, .kontakt {
    display: none !important;
  }
   } 