/* ============================================================================
   Ferienwohnungen Rebstadt – Stylesheet
   Farbwelt: Sand, Dünengras, Nordseeblau. Hell und ruhig.
   ========================================================================== */

/* --- 1. Farben, Schriften, Maße ------------------------------------------ */
:root {
  /* Sandtöne – Flächen */
  --sand-50:  #fcfaf6;
  --sand-100: #f6f1e7;
  --sand-150: #efe8da;
  --sand-200: #e4dac6;
  --sand-300: #d3c6ab;

  /* Nordseeblau – Primärfarbe */
  --sea-900: #163b45;
  --sea-700: #1f5561;
  --sea-600: #2a6d7c;
  --sea-400: #5c9aa6;
  --sea-100: #dceaec;

  /* Dünengras – Akzent, Nachfolger des alten Grüns */
  --dune-600: #6f8a5a;
  --dune-500: #869c72;
  --dune-100: #e7ecdf;

  /* Schrift */
  --ink:      #22282a;
  --ink-soft: #56625f;
  --ink-mute: #7f8a87;
  --on-dark:  #fbf9f5;

  --font-head: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Maße */
  --breite:      1180px;
  --breite-text: 68ch;
  --radius:      14px;
  --radius-lg:   22px;

  --schatten-s: 0 1px 3px rgba(22, 59, 69, .07), 0 1px 2px rgba(22, 59, 69, .04);
  --schatten-m: 0 4px 16px rgba(22, 59, 69, .09), 0 2px 5px rgba(22, 59, 69, .05);
  --schatten-l: 0 14px 40px rgba(22, 59, 69, .13), 0 4px 12px rgba(22, 59, 69, .07);

  --tempo: .22s cubic-bezier(.4, 0, .2, 1);
}

/* --- 2. Grundlagen ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--sand-50);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--sea-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sea-900); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.18;
  color: var(--sea-900);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* Beim Springen zu einem Anker bleibt Platz für die feste Kopfzeile,
   sonst verschwindet die Überschrift darunter. */
[id] { scroll-margin-top: 96px; }

:focus-visible {
  outline: 3px solid var(--sea-400);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--sea-900); color: var(--on-dark);
  padding: 12px 18px; border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none; transition: top var(--tempo);
}
.skip-link:focus { top: 0; color: var(--on-dark); }

/* --- 3. Layout ----------------------------------------------------------- */
.wrap {
  width: min(100% - 2.5rem, var(--breite));
  margin-inline: auto;
}
.wrap--schmal { width: min(100% - 2.5rem, 860px); }

.abschnitt { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.abschnitt--sand { background: var(--sand-100); }
.abschnitt--tief  { background: var(--sea-900); color: var(--sand-150); }
.abschnitt--tief h2, .abschnitt--tief h3 { color: var(--on-dark); }

.abschnitt-kopf { max-width: var(--breite-text); margin-bottom: 2.75rem; }
.abschnitt-kopf p { color: var(--ink-soft); font-size: 1.125rem; }

.augenbraue {
  display: block;
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dune-600);
  margin-bottom: .85rem;
}
.abschnitt--tief .augenbraue { color: var(--sea-400); }

/* --- 4. Kopfzeile und Navigation ----------------------------------------- */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background var(--tempo), box-shadow var(--tempo), border-color var(--tempo);
  border-bottom: 1px solid transparent;
}
.kopf__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 74px;
}

.marke {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--font-head);
  text-decoration: none; line-height: 1.1;
}
.marke__text { display: flex; flex-direction: column; }

/* Das Bildzeichen erbt die Farbe der Kopfzeile: dunkel auf Sand,
   hell über dem Titelbild. */
.marke__zeichen {
  flex: none; width: 38px; height: 38px;
  color: var(--sea-900);
  transition: color var(--tempo);
}
.marke__name  { font-size: 1.3rem; font-weight: 600; color: var(--sea-900); }
.marke__ort   {
  font-family: var(--font-body); font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--dune-600);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: .5rem; }

.nav__liste {
  display: flex; align-items: center; gap: .35rem;
  list-style: none; margin: 0; padding: 0;
}
.nav__liste a {
  display: block; padding: .55rem .9rem;
  border-radius: 999px;
  color: var(--ink); text-decoration: none;
  font-size: .975rem; font-weight: 500;
  transition: background var(--tempo), color var(--tempo);
}
.nav__liste a:hover { background: var(--sand-150); color: var(--sea-900); }
.nav__liste [aria-current="page"] { background: var(--sea-900); color: var(--on-dark); }
.nav__liste [aria-current="page"]:hover { background: var(--sea-700); color: var(--on-dark); }

.nav__cta { margin-left: .5rem; }

.nav__schalter {
  display: none;
  width: 46px; height: 46px; padding: 0;
  background: transparent; border: 1px solid var(--sand-300);
  border-radius: var(--radius); cursor: pointer;
  color: var(--sea-900);
}
.nav__schalter span {
  display: block; width: 20px; height: 2px; margin: 4px auto;
  background: currentColor; border-radius: 2px;
  transition: transform var(--tempo), opacity var(--tempo);
}
.nav__schalter[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__schalter[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__schalter[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Zustand: über dem Titelbild transparent, danach sandfarben */
.kopf--transparent { background: linear-gradient(rgba(10,30,36,.45), transparent); }
.kopf--transparent .marke__name,
.kopf--transparent .nav__liste a { color: var(--on-dark); }
.kopf--transparent .marke__ort   { color: rgba(251,249,245,.8); }
.kopf--transparent .marke__zeichen { color: var(--on-dark); }
.kopf--transparent .nav__liste a:hover { background: rgba(251,249,245,.16); color: var(--on-dark); }
.kopf--transparent .nav__liste [aria-current="page"] { background: rgba(251,249,245,.22); }
.kopf--transparent .nav__schalter { color: var(--on-dark); border-color: rgba(251,249,245,.4); }

.kopf--fest {
  background: rgba(252,250,246,.94);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--sand-200);
  box-shadow: var(--schatten-s);
}

/* --- 4b. Untermenü der Wohnungen ----------------------------------------- */
.unternav-band {
  position: sticky; top: 74px; z-index: 90;
  background: rgba(252,250,246,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-200);
}
.unternav {
  display: flex; gap: .35rem;
  overflow-x: auto; scrollbar-width: none;
  padding: .55rem 0;
}
.unternav::-webkit-scrollbar { display: none; }

.unternav__punkt {
  display: flex; flex-direction: column; gap: 1px;
  padding: .5rem .95rem;
  border-radius: var(--radius);
  text-decoration: none; white-space: nowrap;
  transition: background var(--tempo), color var(--tempo);
}
.unternav__punkt:hover { background: var(--sand-150); }
.unternav__titel  { font-size: .95rem; font-weight: 600; color: var(--sea-900); }
.unternav__zusatz { font-size: .76rem; color: var(--ink-mute); }

.unternav__punkt[aria-current="page"] { background: var(--sea-900); }
.unternav__punkt[aria-current="page"] .unternav__titel  { color: var(--on-dark); }
.unternav__punkt[aria-current="page"] .unternav__zusatz { color: rgba(251,249,245,.7); }

@media (max-width: 780px) {
  .unternav-band { top: 75px; }
  .unternav { padding-inline: 0; }
}

/* --- 5. Titelbild -------------------------------------------------------- */
.buehne {
  position: relative;
  min-height: min(80vh, 680px);
  display: flex; align-items: flex-end;
  color: var(--on-dark);
  overflow: hidden;
}
.buehne--klein { min-height: min(46vh, 380px); }

.buehne__bild {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.buehne__bild::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,32,38,.78) 0%, rgba(10,32,38,.32) 45%, rgba(10,32,38,.18) 100%);
}
.buehne__inhalt { position: relative; padding: 3rem 0 clamp(3rem, 7vw, 5rem); max-width: 46rem; }
.buehne h1 { color: var(--on-dark); text-wrap: balance; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.buehne__claim {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(251,249,245,.94);
  max-width: 34rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.buehne__augenbraue {
  color: rgba(251,249,245,.85);
  font-size: .8125rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 1rem; display: block;
}
.buehne__aktionen { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* --- 6. Schaltflächen ---------------------------------------------------- */
.knopf {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.55rem;
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  transition: background var(--tempo), color var(--tempo), transform var(--tempo), box-shadow var(--tempo);
}
.knopf:hover { transform: translateY(-1px); }
.knopf--primaer {
  background: var(--sea-700); color: var(--on-dark);
  box-shadow: var(--schatten-m);
}
.knopf--primaer:hover { background: var(--sea-900); color: var(--on-dark); box-shadow: var(--schatten-l); }
.knopf--hell {
  background: rgba(252,250,246,.92); color: var(--sea-900);
  backdrop-filter: blur(6px);
}
.knopf--hell:hover { background: var(--on-dark); color: var(--sea-900); }
.knopf--rand {
  background: transparent; border-color: var(--sand-300); color: var(--sea-900);
}
.knopf--rand:hover { border-color: var(--sea-700); background: var(--sand-100); color: var(--sea-900); }
.knopf--klein { padding: .55rem 1.1rem; font-size: .925rem; }

/* --- 7. Merkmale des Hauses ---------------------------------------------- */
.merkmale {
  display: grid; gap: 1.6rem 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) { .merkmale { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .merkmale { grid-template-columns: 1fr; } }
.merkmal {
  display: flex; gap: 1rem; align-items: flex-start;
}
.merkmal__icon {
  flex: 0 0 46px; width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--dune-100); color: var(--dune-600);
  border-radius: 13px;
}
.merkmal__icon svg { width: 23px; height: 23px; }
.merkmal h3 { font-size: 1.075rem; margin-bottom: .25rem; }
.merkmal p  { font-size: .975rem; color: var(--ink-soft); }

/* --- 8. Wohnungskarten --------------------------------------------------- */
.wohnungen {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.wohnung-karte {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--tempo), box-shadow var(--tempo), border-color var(--tempo);
}
.wohnung-karte:hover {
  transform: translateY(-4px);
  box-shadow: var(--schatten-l);
  border-color: var(--sand-300);
}
.wohnung-karte__bild { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-150); }
.wohnung-karte__bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.wohnung-karte:hover .wohnung-karte__bild img { transform: scale(1.04); }

.wohnung-karte__marke {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(252,250,246,.94); backdrop-filter: blur(6px);
  color: var(--sea-900);
  font-family: var(--font-head); font-size: .95rem; font-weight: 600;
  padding: .3rem .85rem; border-radius: 999px;
}
.wohnung-karte__koerper { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.wohnung-karte h3 { margin-bottom: .4rem; }
.wohnung-karte__kurz { color: var(--ink-soft); font-size: .975rem; margin-bottom: 1.15rem; }

.eckdaten {
  display: flex; flex-wrap: wrap; gap: .45rem; align-content: flex-start;
  list-style: none; margin: 0 0 1.35rem; padding: 0;
  /* Platz für zwei Reihen freihalten – sonst sitzt die Trennlinie
     bei Wohnungen mit nur einer Reihe tiefer als bei den anderen. */
  min-height: 4.5rem;   /* zwei Chip-Reihen, glatter Wert gegen Rundungsversatz */
}
.eckdaten li {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--sand-100); color: var(--ink-soft);
  border-radius: 999px; padding: .3rem .75rem;
  font-size: .85rem; font-weight: 500;
}

.preisblock {
  padding-top: 1.2rem;
  border-top: 1px solid var(--sand-200);
  display: flex; flex-direction: column; flex: 1;
}
.preiszeile {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; padding: .25rem 0;
  font-size: .95rem; color: var(--ink-soft);
}

/* Preisposten: je Personenzahl zwei Pauschalen plus Nachtpreise */
.preisposten { padding: .7rem 0; }
.preisposten + .preisposten { border-top: 1px solid var(--sand-150); }
.preisposten__wer {
  font-size: .95rem; font-weight: 600; color: var(--sea-900);
  margin-bottom: .3rem;
}

.pauschale {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; padding: .12rem 0;
}
.pauschale__dauer { font-size: .9rem; color: var(--ink-soft); }
.pauschale__wert {
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 600;
  color: var(--sea-900); white-space: nowrap;
}

.preisposten__saetze {
  margin-top: .35rem; padding-top: .35rem;
  border-top: 1px dotted var(--sand-300);
}
.preisposten__satz {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .8rem; padding: .06rem 0;
  font-size: .8rem; color: var(--ink-mute);
}
.preisposten__satz span:last-child { white-space: nowrap; }

.preisposten--zusatz .pauschale__wert { font-size: 1.05rem; }
.preisposten--zusatz .preisposten__satz { border-top: 0; padding-top: .1rem; }

/* Kostenrechner auf den Wohnungsseiten – bewusst kompakt gehalten */
.rechner {
  margin-top: 1.1rem; padding-top: 1.1rem;
  border-top: 1px solid var(--sand-200);
}
.rechner__titel {
  font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--dune-600); margin-bottom: .6rem;
}
.rechner__felder { display: flex; gap: .5rem; }
.rechner__feld {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; gap: .2rem;
  font-size: .74rem; color: var(--ink-mute);
}
.rechner__feld input,
.rechner__feld select {
  font: inherit; font-size: .95rem; color: var(--ink);
  /* Zahlenfeld und Auswahlfeld bringen unterschiedliche Grundhöhen mit –
     feste Höhe und einheitliches Boxmodell gleichen das aus. */
  box-sizing: border-box;
  height: 2.3rem; line-height: 1.2;
  padding: 0 .45rem; width: 100%;
  background: #fff;
  border: 1px solid var(--sand-300); border-radius: 8px;
  -webkit-appearance: none; appearance: none;
}
.rechner__feld select {
  padding-right: 1.3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5 6 8.5 10 4.5' fill='none' stroke='%2356625f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .4rem center;
  background-size: 11px;
}
.rechner__feld input:focus,
.rechner__feld select:focus {
  outline: none; border-color: var(--sea-400);
  box-shadow: 0 0 0 3px var(--sea-100);
}
.rechner__ergebnis { margin-top: .7rem; }
.rechner__summe {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.rechner__summe span   { font-size: .9rem; font-weight: 600; color: var(--sea-900); }
.rechner__summe strong {
  font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; color: var(--sea-900);
}
.rechner__rechnung { font-size: .78rem; color: var(--ink-mute); margin-top: .1rem; }
.rechner__hinweis  { font-size: .85rem; color: var(--dune-600); }

/* Rücktrittsbedingungen */
.stornokarte {
  background: var(--sand-100);
  border: 1px solid var(--sand-200);
  border-left: 4px solid var(--dune-500);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.5rem 1.75rem;
}
.stornokarte h3 {
  display: flex; align-items: center; gap: .55rem;
  font-size: 1.1rem; margin-bottom: .5rem;
}
.stornokarte h3 svg { color: var(--dune-600); flex-shrink: 0; }
.stornokarte .liste-haken li {
  border-bottom-color: var(--sand-200);
  padding-left: 0;            /* kein Einzug, da kein Aufzählungszeichen */
}
.stornokarte .liste-haken li::before { content: none; }
.preiszeile__wert {
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 600;
  color: var(--sea-900); white-space: nowrap;
}
.preiszeile__wert small { font-family: var(--font-body); font-size: .78rem; font-weight: 500; color: var(--ink-mute); }
.preisblock .knopf { margin-top: auto; width: 100%; justify-content: center; }
.preisblock .preisposten:first-child { padding-top: 0; }
/* Mindestabstand zum Knopf, der ansonsten ganz unten sitzt */
.wohnung-karte .preisblock .preisposten:last-of-type { margin-bottom: 1.2rem; }

/* --- 9. Wohnungsdetailseite ---------------------------------------------- */
.detail-raster {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
}
.detail-text p { color: var(--ink-soft); }
.detail-text p:first-of-type { font-size: 1.15rem; color: var(--ink); }

.infokarte {
  background: #fff; border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--schatten-s);
  position: sticky; top: 96px;
}
.infokarte h3 { font-size: 1.15rem; }

.hinweis {
  display: flex; gap: .7rem; align-items: flex-start;
  background: var(--dune-100); border-left: 3px solid var(--dune-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .9rem 1.1rem; margin: 1.5rem 0;
  font-size: .95rem; color: var(--ink-soft);
}
.hinweis svg { flex: 0 0 19px; width: 19px; height: 19px; color: var(--dune-600); margin-top: 2px; }

.liste-haken { list-style: none; margin: 0; padding: 0; }
.liste-haken li {
  position: relative; padding: .4rem 0 .4rem 1.8rem;
  font-size: .975rem; color: var(--ink-soft);
  border-bottom: 1px solid var(--sand-150);
}
.liste-haken li:last-child { border-bottom: 0; }
.liste-haken li::before {
  content: ""; position: absolute; left: 0; top: .78rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--dune-500);
}

/* --- 10. Galerie --------------------------------------------------------- */
.galerie {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.galerie__bild {
  position: relative; aspect-ratio: 4 / 3;
  border-radius: var(--radius); overflow: hidden;
  background: var(--sand-150); border: 0; padding: 0; cursor: zoom-in;
}
.galerie__bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.galerie__bild:hover img { transform: scale(1.05); }
.galerie__titel {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(10,32,38,.75));
  color: var(--on-dark); text-align: left;
  padding: 1.75rem .9rem .7rem;
  font-size: .875rem; font-weight: 500;
}

.galerie__bild--gross { aspect-ratio: 3 / 2; }

.bildpaar {
  display: grid; gap: 1rem;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: stretch;
}
.bildpaar__klein { display: grid; gap: 1rem; grid-template-rows: 1fr 1fr; }
.bildpaar__klein .galerie__bild { aspect-ratio: auto; min-height: 0; }

@media (max-width: 780px) {
  .bildpaar { grid-template-columns: 1fr; }
  .bildpaar__klein { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .bildpaar__klein .galerie__bild { aspect-ratio: 4 / 3; }
}

.leuchtkasten {
  position: fixed; inset: 0; z-index: 300;
  display: none; place-items: center;
  background: rgba(10,32,38,.94);
  padding: clamp(1rem, 4vw, 2.5rem);
}
.leuchtkasten.offen { display: grid; }

.leuchtkasten__inhalt {
  margin: 0; display: flex; flex-direction: column; align-items: center; gap: .85rem;
  max-width: min(100%, 1100px);
}
.leuchtkasten__inhalt img {
  max-width: 100%; max-height: 76vh;
  border-radius: var(--radius);
  object-fit: contain;
}
.leuchtkasten__unterschrift {
  display: flex; align-items: baseline; justify-content: center;
  gap: .85rem; flex-wrap: wrap; text-align: center;
  color: rgba(251,249,245,.9); font-size: .95rem;
}
.leuchtkasten__zaehler {
  color: rgba(251,249,245,.55); font-size: .85rem;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

.leuchtkasten__zu,
.leuchtkasten__pfeil {
  position: absolute; z-index: 1;
  display: grid; place-items: center;
  border: 0; cursor: pointer;
  background: rgba(252,250,246,.16); color: var(--on-dark);
  transition: background var(--tempo);
}
.leuchtkasten__zu:hover,
.leuchtkasten__pfeil:hover { background: rgba(252,250,246,.32); }
.leuchtkasten__zu[hidden],
.leuchtkasten__pfeil[hidden] { display: none; }

.leuchtkasten__zu {
  top: 1.25rem; right: 1.25rem;
  width: 46px; height: 46px; border-radius: 50%;
  font-size: 1.5rem; line-height: 1;
}
.leuchtkasten__pfeil {
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
}
.leuchtkasten__pfeil svg { width: 22px; height: 22px; }
.leuchtkasten__pfeil--zurueck { left: clamp(.5rem, 2vw, 2rem); }
.leuchtkasten__pfeil--vor     { right: clamp(.5rem, 2vw, 2rem); }

@media (max-width: 620px) {
  /* Seitlicher Raum, damit die Pfeile nicht auf dem Bild liegen */
  .leuchtkasten { padding: 1rem 3.6rem; }
  .leuchtkasten__pfeil { width: 44px; height: 44px; }
  .leuchtkasten__inhalt img { max-height: 62vh; }
  .leuchtkasten__pfeil--zurueck { left: .35rem; }
  .leuchtkasten__pfeil--vor     { right: .35rem; }
}

/* --- 12. Anfrage per vorbereiteter E-Mail -------------------------------- */
.anfrage-karte {
  background: #fff;
  border: 1px solid var(--sand-200);
  border-left: 4px solid var(--dune-500);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.25rem);
  box-shadow: var(--schatten-s);
}
.anfrage-karte h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-bottom: .6rem; }
.anfrage-karte p  { color: var(--ink-soft); max-width: 56ch; }
.anfrage-karte .knopf { margin-top: 1.4rem; }
.anfrage-karte__fuss { margin-top: 1.1rem; font-size: .9rem; color: var(--ink-mute); }

.anfrage-vorschau {
  margin-top: 1.75rem;
  background: var(--sand-100);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem; line-height: 1.75;
  color: var(--ink-soft);
  white-space: pre-wrap;
  overflow-x: auto;
}
.anfrage-vorschau summary {
  cursor: pointer; font-family: var(--font-body); font-size: .9rem;
  font-weight: 600; color: var(--sea-900); margin-bottom: .5rem;
}

/* Kontaktkacheln – auch Ersatz, solange kein Formular eingerichtet ist */
.kontaktkacheln { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.kontaktkachel {
  background: #fff; border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg); padding: 1.6rem;
  display: flex; flex-direction: column; gap: .3rem;
}
.kontaktkachel__label {
  font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--dune-600); margin-bottom: .5rem;
}
.kontaktkachel__gross {
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 600;
  color: var(--sea-900); text-decoration: none; word-break: break-word;
}
.kontaktkachel__gross:hover { color: var(--sea-600); }
.kontaktkachel address { font-style: normal; color: var(--ink-soft); font-size: .975rem; line-height: 1.7; }

/* --- 12b. Rechtstexte (Impressum, Datenschutz) ---------------------------- */
.rechtstext h2 {
  margin-top: 2.5rem; padding-bottom: .6rem;
  border-bottom: 2px solid var(--sand-200);
}
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext h3 { margin-top: 2.25rem; font-size: 1.125rem; }
.rechtstext p, .rechtstext li { color: var(--ink-soft); font-size: .975rem; }
.rechtstext ul { padding-left: 1.25rem; margin: 0 0 1.1em; }
.rechtstext li { margin-bottom: .3rem; }
.rechtstext hr { border: 0; border-top: 1px solid var(--sand-200); margin: 3.5rem 0; }
.rechtstext .quelle { font-size: .85rem; color: var(--ink-mute); margin-top: 1.5rem; }

/* --- 13. Aufruf-Band ----------------------------------------------------- */
.band {
  background: var(--sea-900); color: var(--sand-150);
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 5vw, 3.5rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.band h2 { color: var(--on-dark); margin-bottom: .4rem; }
.band p  { color: rgba(251,249,245,.78); max-width: 42ch; }
.band__aktionen { display: flex; gap: .75rem; flex-wrap: wrap; }

/* --- 14. Fußzeile -------------------------------------------------------- */
.fuss {
  background: var(--sea-900); color: rgba(251,249,245,.72);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  margin-top: 0;
}
.fuss__raster {
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(251,249,245,.14);
}
.fuss h3 {
  font-family: var(--font-body); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--sea-400); margin-bottom: 1rem;
}
.fuss a { color: rgba(251,249,245,.84); text-decoration: none; }
.fuss a:hover { color: var(--on-dark); text-decoration: underline; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.fuss address { font-style: normal; line-height: 1.8; font-size: .95rem; }
.fuss__marke { font-family: var(--font-head); font-size: 1.3rem; color: var(--on-dark); margin-bottom: .5rem; }
.fuss__unten {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.75rem; font-size: .85rem; color: rgba(251,249,245,.55);
}

/* --- 15. Kleinere Bildschirme -------------------------------------------- */
@media (max-width: 900px) {
  .detail-raster { grid-template-columns: 1fr; }
  .infokarte { position: static; }
}

@media (max-width: 780px) {
  .nav__schalter { display: block; }
  .marke__name { font-size: 1.05rem; }
  .marke { gap: .5rem; }
  .marke__zeichen { width: 32px; height: 32px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--sand-50);
    border-bottom: 1px solid var(--sand-200);
    box-shadow: var(--schatten-m);
    padding: 1rem 1.25rem 1.5rem;
    display: none;
  }
  .nav.offen { display: block; }
  .nav { flex-direction: column; align-items: stretch; }
  .nav__liste { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav__liste a { padding: .8rem 1rem; border-radius: var(--radius); color: var(--ink); }
  .kopf--transparent .nav__liste a { color: var(--ink); }
  .kopf--transparent .nav__liste [aria-current="page"] { background: var(--sea-900); color: var(--on-dark); }
  .nav__cta { margin: .75rem 0 0; }
  .nav__cta .knopf { width: 100%; justify-content: center; }
  .feld-paar { grid-template-columns: 1fr; }
  .band { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* --- 16. Druck ----------------------------------------------------------- */
@media print {
  .kopf, .nav, .band, .buehne__aktionen, .leuchtkasten { display: none !important; }
  body { background: #fff; }
  .abschnitt { padding: 1rem 0; }
}
