/* ==========================================================================
   Ferienwohnung Ridder – gemeinsame Styles für alle Seiten
   ========================================================================== */

/* Schrift lokal eingebunden (keine Verbindung zu Google Fonts) */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/rubik-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/rubik-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/rubik-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/rubik-700.woff2') format('woff2');
}

:root {
  --blau: #149dcc;          /* Navigation, Buttons */
  --blau-dunkel: #0f7699;   /* Überschriften-Bänder, Fußzeile */
  --blau-hover: #0d6786;
  --text: #232323;
  --text-leise: #767676;
  --hell: #efefef;
  --rahmen: #e3e3e3;
  --weiss: #ffffff;
  --breite: 1140px;
  --breite-text: 760px;
  --kopf-hoehe: 72px;
  --schrift: 'Rubik', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--kopf-hoehe);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--weiss);
}

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

a {
  color: var(--blau);
}
a:hover {
  color: var(--blau-hover);
}

h1, h2, h3 {
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 1rem;
}

p {
  margin: 0 0 1rem;
}

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 16px;
}
.container--text {
  max-width: var(--breite-text);
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: .9rem 2.2rem;
  border: 2px solid var(--blau);
  border-radius: 3px;
  background: var(--blau);
  color: var(--weiss);
  font: 500 .95rem/1.2 var(--schrift);
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.btn:hover,
.btn:focus-visible {
  background: var(--blau-hover);
  border-color: var(--blau-hover);
  color: var(--weiss);
}
.btn:disabled {
  opacity: .6;
  cursor: default;
}
.btn--hell {
  background: transparent;
  border-color: var(--weiss);
}
.btn--hell:hover,
.btn--hell:focus-visible {
  background: var(--weiss);
  border-color: var(--weiss);
  color: var(--blau-dunkel);
}

:focus-visible {
  outline: 3px solid #f5b400;
  outline-offset: 2px;
}

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

.kopf {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blau);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.kopf__inhalt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--kopf-hoehe);
  gap: 1rem;
}
.kopf__marke {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--weiss);
  font-weight: 700;
  text-decoration: none;
}
.kopf__marke:hover {
  color: var(--weiss);
}
.kopf__marke img {
  height: 52px;
  width: auto;
  border-radius: 2px;
}

.nav__liste {
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--weiss);
  text-decoration: none;
  font-weight: 500;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
}
.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--weiss);
  border-bottom-color: rgba(255, 255, 255, .8);
}
.nav__link svg {
  width: 1.3em;
  height: 1.3em;
  flex-shrink: 0;
}

.nav__schalter {
  display: none;
  background: none;
  border: 0;
  padding: .5rem;
  color: var(--weiss);
  cursor: pointer;
}
.nav__schalter svg {
  width: 30px;
  height: 30px;
  display: block;
}

@media (max-width: 767px) {
  .nav__schalter {
    display: block;
  }
  .nav__liste {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: .5rem 16px 1rem;
    background: var(--blau);
    box-shadow: 0 8px 12px rgba(0, 0, 0, .15);
  }
  .nav--offen .nav__liste {
    display: flex;
  }
  .nav__link {
    padding: .75rem 0;
  }
}

/* ---------- Titelbild (Hero) ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--kopf-hoehe));
  min-height: calc(100svh - var(--kopf-hoehe));
  padding: 4rem 0 5rem;
  background: var(--blau-dunkel) center / cover no-repeat;
  color: var(--weiss);
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(60, 60, 60, .4);
}
.hero--leicht::before {
  background: rgba(60, 60, 60, .2);
}
.hero > .container {
  position: relative;
}
.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.hero p {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 300;
  max-width: 44rem;
  margin: 0 auto 2rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}
.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}
.hero__pfeil {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  color: var(--weiss);
  opacity: .85;
}
.hero__pfeil svg {
  width: 44px;
  height: 44px;
  display: block;
}
.hero__pfeil:hover {
  color: var(--weiss);
  opacity: 1;
}

/* ---------- Bereiche stapeln sich beim Scrollen (siehe site.js) ---------- */

/* Nur die Hintergrundfarbe setzen – die Kurzform "background" würde Größe und
   Position des Titelbilds zurücksetzen. Die Regel steht bewusst vor .hero/.band
   und ist nicht stärker als diese, damit deren eigene Farben gewinnen. */
.stapel__teil {
  position: sticky;
  top: var(--kopf-hoehe);
  background-color: var(--weiss);
}
.stapel__teil + .stapel__teil {
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  box-shadow: 0 -12px 28px rgba(0, 0, 0, .18);
}
/* Abdunkeln, während der nächste Bereich darüber geschoben wird */
.stapel__teil::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #000;
  opacity: var(--abdunkeln, 0);
  pointer-events: none;
}
.hero.stapel__teil {
  position: sticky; /* überschreibt position: relative des Titelbilds */
}
@media (max-width: 575px) {
  .stapel__teil + .stapel__teil {
    border-radius: 12px 12px 0 0;
  }
}

/* ---------- Überschriften-Band ---------- */

.band {
  background: var(--blau-dunkel);
  color: var(--weiss);
  text-align: center;
  padding: 3rem 0 2rem;
}
.band h1,
.band h2 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.band p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 300;
  max-width: var(--breite-text);
  margin: 0 auto 1rem;
}
.band--gross {
  padding-top: 4rem;
}

/* „Auf einen Blick“ – wichtigste Eckdaten im Band */
.fakten {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  max-width: 980px;
  margin: 1.75rem auto 1rem;
  padding: 0;
  list-style: none;
}
.fakten li,
.fakten a {
  display: flex;
  align-items: center;
  gap: .55rem;
}
.fakten li {
  padding: .6rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  font-size: .95rem;
  text-align: left;
}
.fakten a {
  color: var(--weiss);
  text-decoration: none;
}
.fakten a:hover {
  text-decoration: underline;
}
.fakten svg {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}
@media (max-width: 575px) {
  .fakten {
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
    max-width: 22rem;
  }
  .fakten li {
    font-size: .9rem;
  }
}

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

.abschnitt {
  padding: 4rem 0;
}
.abschnitt--hell {
  background: var(--hell);
}
.abschnitt--eng {
  padding: 2rem 0;
}

.abschnitt-titel {
  text-align: center;
  font-size: clamp(1.6rem, 5vw, 3rem);
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}
.abschnitt-untertitel {
  text-align: center;
  color: var(--text-leise);
  max-width: var(--breite-text);
  margin: 0 auto 2rem;
}

/* ---------- Bildergalerie ---------- */

.galerie {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .galerie { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) {
  .galerie { grid-template-columns: repeat(4, 1fr); }
}
.galerie__bild {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #ddd;
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.galerie__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}
.galerie__bild:hover img,
.galerie__bild:focus-visible img {
  transform: scale(1.05);
  filter: brightness(.8);
}

/* Filter-Buttons über der Galerie */
.galerie-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem 1.5rem;
  margin: 0 0 2.5rem;
}
.galerie-filter__knopf {
  min-width: 8rem;
  padding: .85rem 1.75rem;
  border: 2px solid var(--blau-dunkel);
  border-radius: 999px;
  background: var(--weiss);
  color: var(--blau-dunkel);
  font: 400 1rem/1.2 var(--schrift);
  letter-spacing: .02em;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.galerie-filter__knopf:hover {
  background: #e6f4f9;
}
.galerie-filter__knopf[aria-pressed="true"] {
  background: var(--blau);
  border-color: var(--blau);
  color: var(--weiss);
}
@media (max-width: 575px) {
  .galerie-filter {
    gap: .5rem;
  }
  .galerie-filter__knopf {
    min-width: 0;
    padding: .6rem 1.1rem;
    font-size: .9rem;
  }
}
.galerie--neu {
  animation: galerie-einblenden .35s ease;
}
@keyframes galerie-einblenden {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .galerie--neu { animation: none; }
}

/* Großansicht (Lightbox) */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(15, 15, 15, .95);
  color: var(--weiss);
}
.lightbox::backdrop {
  background: rgba(0, 0, 0, .6);
}
.lightbox__buehne {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 3.5rem 4rem 3rem;
}
.lightbox__buehne img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
}
.lightbox__hinweis {
  position: absolute;
  top: .9rem;
  left: 50%;
  transform: translateX(-50%);
  padding: .45rem 1.1rem;
  border-radius: 999px;
  background: rgba(15, 118, 153, .9);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lightbox__hinweis::before {
  content: var(--renovierung-text-zeile);
}
@media (max-width: 575px) {
  .lightbox__hinweis {
    top: 3.6rem;
    font-size: .72rem;
  }
}
.lightbox__zaehler {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: .95rem;
  opacity: .8;
}
.lightbox__knopf {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: var(--weiss);
  cursor: pointer;
}
.lightbox__knopf:hover {
  background: rgba(255, 255, 255, .25);
}
.lightbox__knopf svg {
  width: 26px;
  height: 26px;
}
.lightbox__zu { top: .6rem; right: .6rem; }
.lightbox__zurueck { left: .6rem; top: 50%; transform: translateY(-50%); }
.lightbox__vor { right: .6rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 575px) {
  .lightbox__buehne { padding: 3.5rem .5rem 4.5rem; }
  .lightbox__zurueck,
  .lightbox__vor { top: auto; bottom: .75rem; transform: none; }
  .lightbox__zurueck { left: calc(50% - 60px); }
  .lightbox__vor { right: calc(50% - 60px); }
}

/* ---------- Ausstattung: Bild und Text im Wechsel ---------- */

.raum {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 0;
}
.raum img {
  width: 100%;
  border-radius: 3px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
}
.raum h3 {
  font-size: 1.25rem;
  margin-bottom: .5rem;
}
.raum p {
  margin: 0;
}
@media (min-width: 768px) {
  .raum {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .raum--bild-rechts .raum__text {
    order: -1;
    text-align: right;
  }
}

.hinweis-block {
  max-width: var(--breite-text);
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 300;
}
.hinweis-block::before,
.hinweis-block::after {
  content: '';
  display: block;
  width: 25%;
  height: 2px;
  margin: 1.5rem auto;
  background: var(--blau);
}
.hinweis-block strong {
  font-weight: 500;
}

.raum__bild {
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
}
.raum .raum__bild img {
  border-radius: 0;
  box-shadow: none;
}

/* ---------- Hinweis „Wird renoviert“ über Bildern ----------
   Einfach die Klasse "renovierung" an ein Galerie-Bild oder .raum__bild setzen.
   Sind die neuen Fotos da: Klasse entfernen (bzw. Bilder austauschen). */

:root {
  /* Text auf den Bildern (\A = Zeilenumbruch) und einzeilig in der Großansicht */
  --renovierung-text: 'Wird renoviert \A Neue Bilder folgen';
  --renovierung-text-zeile: 'Wird renoviert – neue Bilder folgen';
}
.renovierung {
  position: relative;
  overflow: hidden;
  container-type: inline-size;
}
.renovierung::after {
  content: var(--renovierung-text);
  position: absolute;
  left: -10%;
  right: -10%;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%) rotate(-8deg);
  padding: .5em 0;
  background: rgba(15, 118, 153, .82);
  color: var(--weiss);
  font-size: clamp(.62rem, 4.6cqw, 1.15rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .04em;
  text-align: center;
  white-space: pre-line;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
  pointer-events: none;
}

/* ---------- Preise ---------- */

.preise {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .preise { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .preise { grid-template-columns: repeat(3, 1fr); }
}
.preis {
  display: flex;
  flex-direction: column;
  background: var(--weiss);
  border-radius: 3px;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}
.preis__betrag {
  font-size: 4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--blau-dunkel);
}
.preis__betrag span {
  font-size: 1.6rem;
  vertical-align: top;
  margin-right: .15em;
}
.preis__einheit {
  color: var(--text-leise);
  font-size: .9rem;
  margin: .4rem 0 1rem;
}
.preis h3 {
  font-size: 1.35rem;
  font-weight: 400;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rahmen);
}
.preis ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
}
.preis li {
  padding: .5rem 0 .5rem 1.4rem;
  position: relative;
}
.preis li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: .55rem;
  height: 2px;
  background: var(--blau);
}
.preis p {
  text-align: left;
}
.preis .btn {
  margin-top: auto;
  align-self: center;
}

/* ---------- Fließtext (Tipps, Datenschutz, Impressum) ---------- */

.text {
  color: #444;
}
.text h3 {
  font-size: 1.15rem;
  margin: 2rem 0 .5rem;
  color: var(--text);
}
.text h4 {
  font-size: 1rem;
  font-weight: 500;
  margin: 1.25rem 0 .35rem;
  color: var(--text);
}
.text ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.text li {
  margin-bottom: .35rem;
}
.text address {
  font-style: normal;
  margin: 0 0 1rem;
}

.tipps {
  counter-reset: tipp;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tipps li {
  counter-increment: tipp;
  position: relative;
  padding: 0 0 1.5rem 3.5rem;
  min-height: 2.6rem;
}
.tipps li::before {
  content: counter(tipp);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--blau);
  color: var(--weiss);
  font-weight: 700;
}
.tipps strong {
  color: var(--text);
  letter-spacing: .02em;
}

.zitat {
  border-left: 4px solid var(--blau);
  padding: .5rem 0 .5rem 1.5rem;
  margin: 0;
  color: var(--text-leise);
  font-style: italic;
}

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

.fuss {
  background: var(--blau-dunkel);
  color: var(--weiss);
  padding: 3.5rem 0 2rem;
}
.fuss a {
  color: var(--weiss);
}
.fuss a:hover {
  color: #d5eef7;
}
.fuss__raster {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .fuss__raster {
    grid-template-columns: 1fr 1fr 2fr;
  }
}
.fuss h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .75rem;
}
.fuss address {
  font-style: normal;
  margin-bottom: 1.5rem;
}
.fuss ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fuss li {
  margin-bottom: .35rem;
}
.fuss__unten {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .25);
  font-size: .85rem;
  opacity: .85;
  text-align: center;
}

/* Karte erst nach Klick laden (Datenschutz) */
.karte {
  position: relative;
  min-height: 300px;
  border-radius: 3px;
  overflow: hidden;
  background: #0b5d79;
}
.karte iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.karte__hinweis {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1.5rem;
  text-align: center;
  font-size: .9rem;
}
.karte__hinweis p {
  max-width: 26rem;
  margin: 0;
  opacity: .9;
}
