/* ==========================================================================
   BAUSHAM GROUP · مجموعة بوَ شام
   Stylesheet der Website · Grundlage: brand/tokens.css und der Entwurf im
   Design-Canvas. Die Seite ist zunaechst rein arabisch (RTL); Englisch und
   Deutsch kommen spaeter dazu, deshalb sind alle Abstaende logisch
   (inline-start/-end) statt links/rechts notiert.
   ========================================================================== */

@import url("../fonts/fonts.css");

/* --- 1. Tokens ---------------------------------------------------------- */

:root {
  /* Kernfarben */
  --bs-nacht: #16191C;
  --bs-anthrazit: #2B3035;
  --bs-putz: #E8E4DD;
  --bs-putz-hell: #F1EEE8;
  --bs-sichtbeton: #A6A39D;
  --bs-lichtgold: #C9A36A;
  --bs-bronze: #7A5A33;

  /* Materialfarben = Bereichsfarben, nie im Logo */
  --bs-nussholz: #5C4033;
  --bs-corten: #95512F;
  --bs-daemmerung: #56626F;

  /* Rollen */
  --bs-bg: var(--bs-putz);
  --bs-surface: var(--bs-putz-hell);
  --bs-text: var(--bs-anthrazit);
  --bs-text-muted: #55524D;
  --bs-line: #D6D1C8;
  --bs-line-stark: #C9C4BB;

  /* Schriften */
  --bs-kufi: 'Cairo', 'Damascus', 'Geeza Pro', sans-serif;
  --bs-text-font: 'IBM Plex Sans Arabic', 'Geeza Pro', 'Segoe UI', sans-serif;
  --bs-latein: 'Jost', 'Futura', 'Avenir Next', sans-serif;

  /* Raster */
  --bs-rand: clamp(20px, 5vw, 60px);
  --bs-breite: 1320px;
  --bs-kopf: 88px;
}

/* --- 2. Grundlagen ------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bs-kopf) + 20px);
  -webkit-text-size-adjust: 100%;
  /* Scrollleiste schmal und in Markenfarben */
  scrollbar-width: thin;
  scrollbar-color: var(--bs-lichtgold) var(--bs-putz);
}

/* Browser setzen die Scrollleiste auf Arabisch nach links. Die Seite selbst
   bleibt rechts-nach-links, nur der äußerste Rahmen läuft links-nach-rechts –
   so sitzt die Leiste in beiden Sprachen rechts. */
html[dir="rtl"] { direction: ltr; }
html[dir="rtl"] body { direction: rtl; }

html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: var(--bs-putz); }
html::-webkit-scrollbar-thumb {
  background: var(--bs-lichtgold);
  border: 3px solid var(--bs-putz);
  border-radius: 10px;
}
html::-webkit-scrollbar-thumb:hover { background: var(--bs-bronze); }

body {
  margin: 0;
  background: var(--bs-bg);
  color: var(--bs-text);
  font-family: var(--bs-text-font);
  font-size: 17px;
  line-height: 1.85;
  word-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: var(--bs-bronze); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--bs-text); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4 {
  font-family: var(--bs-kufi);
  font-weight: 800;
  word-spacing: 0.09em;
  line-height: 1.55;
  margin: 0;
  color: var(--bs-text);
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* Lateinische Ziffern und Latein-Textteile laufen immer LTR */
.ltr { direction: ltr; unicode-bidi: isolate; }
.lat { font-family: var(--bs-latein); direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }

.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;
}

/* --- 3. Bausteine ------------------------------------------------------- */

.huelle { width: 100%; max-width: var(--bs-breite); margin-inline: auto; padding-inline: var(--bs-rand); }

.abschnitt { padding-block: clamp(56px, 8vw, 96px); }
.abschnitt--eng { padding-block: clamp(44px, 6vw, 72px); }
.abschnitt--dunkel { background: var(--bs-nacht); color: var(--bs-putz); }
.abschnitt--flaeche { background: var(--bs-surface); border-block: 1px solid var(--bs-line); }
.abschnitt--dunkel h1, .abschnitt--dunkel h2, .abschnitt--dunkel h3 { color: var(--bs-putz); }

/* Überschrift eines Abschnitts: Mini-Titel auf Cairo, nie gesperrt */
.marke-klein {
  font-family: var(--bs-kufi);
  font-size: 13px;
  font-weight: 700;
  word-spacing: 0.08em;
  color: var(--bs-bronze);
  display: block;
  margin-bottom: 10px;
}
.abschnitt--dunkel .marke-klein { color: var(--bs-lichtgold); }

.kopfzeile {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.kopfzeile h2 { font-size: clamp(27px, 3.4vw, 40px); }
.kopfzeile p { color: var(--bs-text-muted); max-width: 62ch; margin-top: 12px; }
.abschnitt--dunkel .kopfzeile p { color: var(--bs-sichtbeton); }

.weiter {
  font-family: var(--bs-kufi);
  font-size: 16px;
  font-weight: 600;
  color: var(--bs-bronze);
  border-bottom: 1px solid var(--bs-lichtgold);
  padding-bottom: 4px;
  white-space: nowrap;
}
.weiter:hover { color: var(--bs-text); border-color: var(--bs-bronze); }
.abschnitt--dunkel .weiter { color: var(--bs-lichtgold); }
.abschnitt--dunkel .weiter:hover { color: var(--bs-putz); }

.raster { display: grid; gap: 26px; }
.raster--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.raster--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raster--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --- 4. Knöpfe ---------------------------------------------------------- */

.knopf {
  font-family: var(--bs-kufi);
  font-size: 17px;
  font-weight: 700;
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.knopf svg { flex: none; }
.knopf--gold { background: var(--bs-lichtgold); color: var(--bs-nacht); }
.knopf--gold:hover { background: #D8B884; color: var(--bs-nacht); }
.knopf--rand { border-color: var(--bs-lichtgold); color: var(--bs-lichtgold); }
.knopf--rand:hover { background: var(--bs-lichtgold); color: var(--bs-nacht); }
.knopf--dunkel { background: var(--bs-nacht); color: var(--bs-putz); }
.knopf--dunkel:hover { background: var(--bs-anthrazit); color: var(--bs-putz); }
.knopf--hell { border-color: var(--bs-line-stark); color: var(--bs-text); background: var(--bs-surface); }
.knopf--hell:hover { border-color: var(--bs-bronze); color: var(--bs-bronze); }
.knopf--still { border-color: #3A4046; color: var(--bs-putz); }
.knopf--still:hover { border-color: var(--bs-sichtbeton); background: rgba(232,228,221,.08); color: var(--bs-putz); }
.knopf--breit { width: 100%; justify-content: center; }

/* --- 5. Kopfzeile / Navigation ----------------------------------------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bs-nacht);
  border-bottom: 1px solid rgba(232,228,221,.08);
}
.kopf__innen {
  height: var(--bs-kopf);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.kopf__links { display: flex; align-items: center; gap: clamp(20px, 3.4vw, 56px); min-width: 0; }

.logo { display: flex; align-items: center; gap: 14px; flex: none; }
.logo svg { width: 92px; height: 64px; }
.logo__wort { display: none; }

.navi { display: flex; align-items: center; gap: clamp(14px, 2vw, 34px); }
.navi a {
  font-family: var(--bs-kufi);
  font-size: 16px;
  font-weight: 600;
  word-spacing: 0.08em;
  color: var(--bs-putz);
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}
.navi a:hover { color: var(--bs-lichtgold); }
.navi a[aria-current="page"] { color: var(--bs-lichtgold); border-bottom-color: var(--bs-lichtgold); }

.kopf__rechts { display: flex; align-items: center; gap: 18px; }

.sprachen { display: flex; align-items: center; border: 1px solid #3A4046; }
.sprachen span, .sprachen button {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.sprachen .aktiv { font-family: var(--bs-kufi); font-size: 14px; font-weight: 700; color: var(--bs-nacht); background: var(--bs-lichtgold); }
.sprachen a { color: var(--bs-sichtbeton); font-family: var(--bs-latein); font-size: 13px; font-weight: 600; padding: 7px 14px; line-height: 1.4; transition: color .18s ease, background .18s ease; }
.sprachen a:hover { color: var(--bs-nacht); background: var(--bs-putz); }
.sprachen a:lang(ar) { font-family: 'Cairo', sans-serif; font-size: 14px; font-weight: 700; }
.sprachen .aktiv:lang(en), html[lang="en"] .sprachen .aktiv { font-family: var(--bs-latein); font-size: 13px; }

/* Währungsumschalter: $ · ل.س · € – im dunklen Kopf wie die Sprachwahl */
.waehrung { display: flex; align-items: center; border: 1px solid #3A4046; }
.waehrung button {
  font-family: var(--bs-latein); font-size: 14px; font-weight: 600; line-height: 1.4;
  padding: 7px 12px; min-width: 38px; color: var(--bs-sichtbeton);
  transition: color .18s ease, background .18s ease;
}
.waehrung button.ar { font-family: var(--bs-kufi); font-size: 13.5px; font-weight: 700; }
.waehrung button:hover { color: var(--bs-nacht); background: var(--bs-putz); }
.waehrung button[aria-pressed="true"] { color: var(--bs-nacht); background: var(--bs-lichtgold); }
.waehrung--hell { border-color: var(--bs-line-stark); background: var(--bs-surface); }
.waehrung--hell button { color: var(--bs-text-muted); }
.waehrung--hell button:hover { background: var(--bs-bg); color: var(--bs-text); }
.waehrung--klein { align-self: flex-start; width: fit-content; }
.preis-hinweis { font-size: 13px; color: var(--bs-text-muted); line-height: 1.7; margin-top: 6px; }
.preis-hinweis:empty { display: none; }
.preis-hinweis .lat { white-space: nowrap; }
.preis.preis--syp { direction: rtl; }
.preis__zeichen { font-family: var(--bs-kufi); font-size: .72em; font-weight: 700; }

.kopf__anruf { background: var(--bs-lichtgold); color: var(--bs-nacht); padding: 10px 18px; display: flex; align-items: center; gap: 9px; }
.kopf__anruf:hover { background: #D8B884; color: var(--bs-nacht); }
.kopf__anruf span { font-family: var(--bs-latein); font-size: 15px; font-weight: 600; }

.menue-knopf { display: none; padding: 10px; color: var(--bs-putz); }

/* Mobiles Menü: gleitet herein, Einträge folgen nacheinander */
.mobilmenue {
  position: fixed;
  inset: var(--bs-kopf) 0 0 0;
  background: var(--bs-nacht);
  z-index: 55;
  padding: 22px var(--bs-rand) 36px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .3s ease, transform .35s cubic-bezier(.2,.7,.2,1), visibility 0s .35s;
}
.mobilmenue.offen { visibility: visible; opacity: 1; transform: none; transition: opacity .3s ease, transform .35s cubic-bezier(.2,.7,.2,1); }
.mobilmenue nav { display: flex; flex-direction: column; }
.mobilmenue nav a {
  font-family: var(--bs-kufi);
  font-size: 21px;
  font-weight: 700;
  color: var(--bs-putz);
  padding: 15px 0;
  border-bottom: 1px solid rgba(232,228,221,.1);
  opacity: 0;
  transform: translateX(calc(var(--bs-pfeil, -5px) * -3));
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1);
}
.mobilmenue.offen nav a { opacity: 1; transform: none; }
.mobilmenue.offen nav a:nth-child(2) { transition-delay: .04s; }
.mobilmenue.offen nav a:nth-child(3) { transition-delay: .08s; }
.mobilmenue.offen nav a:nth-child(4) { transition-delay: .12s; }
.mobilmenue.offen nav a:nth-child(5) { transition-delay: .16s; }
.mobilmenue.offen nav a:nth-child(6) { transition-delay: .20s; }
.mobilmenue.offen nav a:nth-child(7) { transition-delay: .24s; }
.mobilmenue nav a[aria-current="page"] { color: var(--bs-lichtgold); }
.mobilmenue__fuss { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.sprachen--mobil { align-self: flex-start; }
.mobilmenue__schalter { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.menue-knopf__striche { display: grid; gap: 5px; width: 24px; }
.menue-knopf__striche i { display: block; height: 2px; background: currentColor; transition: transform .3s ease, opacity .2s ease; }
.menue-knopf[aria-expanded="true"] .menue-knopf__striche i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menue-knopf[aria-expanded="true"] .menue-knopf__striche i:nth-child(2) { opacity: 0; }
.menue-knopf[aria-expanded="true"] .menue-knopf__striche i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.menue-offen { overflow: hidden; }

/* --- 6. Bühne (Hero) ---------------------------------------------------- */

.buehne {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: var(--bs-nacht);
  color: var(--bs-putz);
  overflow: hidden;
}
.buehne__bild {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 45%;
}
.buehne__bild::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(22,25,28,.95) 26%, rgba(22,25,28,.62) 62%, rgba(22,25,28,.34) 100%);
}
.buehne__innen { position: relative; z-index: 2; width: 100%; padding-block: clamp(56px, 8vw, 90px); }
.buehne h1 {
  font-size: clamp(31px, 5vw, 62px);
  line-height: 1.45;
  color: var(--bs-putz);
  max-width: 680px;
}
.buehne__vor { color: var(--bs-lichtgold); }
.buehne p {
  margin-top: 18px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--bs-sichtbeton);
  max-width: 56ch;
}
.buehne__knoepfe { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Kleinere Bühne für Unterseiten */
.buehne--klein { min-height: 400px; }
.buehne--klein h1 { font-size: clamp(27px, 3.8vw, 46px); }

.brotkrume {
  font-size: 14px;
  color: var(--bs-sichtbeton);
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.brotkrume a { color: var(--bs-sichtbeton); }
.brotkrume a:hover { color: var(--bs-lichtgold); }

/* --- 7. Suchleiste ------------------------------------------------------ */

.suche {
  position: relative;
  z-index: 2;
  background: rgba(232,228,221,.96);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: 34px;
  backdrop-filter: blur(4px);
}
.suche__zweck { display: flex; border: 1px solid var(--bs-line-stark); background: var(--bs-surface); flex: none; }
.suche__zweck button {
  font-family: var(--bs-kufi);
  font-size: 16px;
  font-weight: 600;
  color: var(--bs-text-muted);
  padding: 13px 26px;
}
.suche__zweck button[aria-pressed="true"] { background: var(--bs-lichtgold); color: var(--bs-nacht); font-weight: 700; }
.suche__felder { flex: 1 1 420px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.suche select {
  width: 100%;
  border: 1px solid var(--bs-line-stark);
  background: var(--bs-surface);
  padding: 13px 16px;
  font-size: 16px;
  font-family: var(--bs-text-font);
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8A867F 50%), linear-gradient(135deg, #8A867F 50%, transparent 50%);
  background-position: 18px calc(50% + 1px), 23px calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.suche select:hover { border-color: var(--bs-bronze); }
.suche select, .feld select { padding-inline-end: 40px; }
/* Die Bühne ist hell beschriftet – die Felder darin brauchen dunkle Schrift */
.suche select { color: var(--bs-text); }

/* Bühne ohne Foto (Startseite): trägt allein über Farbe, Schrift und das
   Zeichen als stilles Wasserzeichen. Der Nutzer wollte hier kein Bild. */
.buehne--rein {
  background: linear-gradient(158deg, #1D2126 0%, #16191C 52%, #0E1113 100%);
  min-height: 560px;
}
.buehne--rein::before {
  /* feine Rasterlinien wie auf einem Bauplan – nur links, wo keine Schrift steht */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(232,228,221,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(232,228,221,.05) 1px, transparent 1px);
  background-size: 92px 92px;
  -webkit-mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,.25) 48%, transparent 76%);
  mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,.25) 48%, transparent 76%);
}
.buehne--rein::after {
  /* warmer Schimmer unten links, damit die Fläche nicht tot wirkt */
  content: "";
  position: absolute;
  inset-block-end: -30%;
  inset-inline-end: -10%;
  width: 62%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(201,163,106,.16) 0%, rgba(201,163,106,0) 66%);
  pointer-events: none;
}
.buehne__zeichen {
  /* Das Zeichen sitzt bewusst auf der leeren Seite, nie hinter der Schrift */
  position: absolute;
  inset-block-end: -14%;
  inset-inline-end: -7%;
  width: 46%;
  max-width: 660px;
  opacity: .07;
  pointer-events: none;
}
.buehne__zeichen svg { width: 100%; height: auto; }

.buehne--rein .buehne__innen { padding-block: clamp(54px, 7vw, 82px); }

/* Goldene Haarlinie über der Zeile "عقارات · إنشاءات · استثمار" */
.buehne__linie {
  width: 64px;
  height: 2px;
  background: var(--bs-lichtgold);
  margin-bottom: 22px;
}

/* Drei knappe Versprechen statt eines Fotos */
.buehne__punkte {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 40px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(232,228,221,.12);
}
.buehne__punkt {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15.5px;
  color: var(--bs-sichtbeton);
}
.buehne__punkt svg { flex: none; color: var(--bs-lichtgold); }

/* Bühne der Unterseiten: Schrift und Foto nebeneinander statt übereinander.
   Die Schrift steht auf ruhigem Grund und muss nicht gegen das Bild ankämpfen;
   das Foto zeigt sich ungestört. Die Textspalte fluchtet mit der Seitenbreite. */
.buehne--teil {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  min-height: 460px;
  align-items: stretch;
  background: linear-gradient(158deg, #1D2126 0%, #16191C 58%, #0E1113 100%);
}
.buehne--teil .buehne__text {
  position: relative;
  display: flex;
  align-items: center;
  padding-block: clamp(46px, 6vw, 76px);
  padding-inline-start: max(var(--bs-rand), calc((100vw - var(--bs-breite)) / 2 + var(--bs-rand)));
  padding-inline-end: clamp(28px, 4vw, 64px);
}
.buehne--teil .buehne__text::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(232,228,221,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(232,228,221,.04) 1px, transparent 1px);
  background-size: 92px 92px;
  -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 100%);
  mask-image: linear-gradient(to left, transparent 0%, #000 100%);
  pointer-events: none;
}
.buehne--teil .buehne__text > div { position: relative; max-width: 600px; }
.buehne--teil h1 { font-size: clamp(28px, 3.6vw, 46px); max-width: none; }
.buehne--teil p { max-width: 50ch; }
.buehne__foto {
  position: relative;
  margin: 0;
  background: #2B3035 center/cover no-repeat;
  min-height: 100%;
}
.buehne__foto { border-inline-start: 3px solid var(--bs-lichtgold); }
.buehne__foto::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to left, rgba(22,25,28,.38) 0%, rgba(22,25,28,0) 28%),
              linear-gradient(to top, rgba(22,25,28,.28) 0%, rgba(22,25,28,0) 40%);
}
.buehne__bildtext {
  position: absolute;
  z-index: 2;
  inset-inline-end: 18px;
  bottom: 14px;
  font-size: 12.5px;
  color: rgba(232,228,221,.78);
  letter-spacing: .01em;
}

/* Karte mit dem Standort */
.standortkarte {
  position: relative;
  border: 1px solid var(--bs-line-stark);
  background: #D6D1C8;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: pointer;
}
.standortkarte img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  transition: transform .6s ease;
}
.standortkarte:hover img { transform: scale(1.03); }
.standortkarte__nadel {
  /* Goldene Nadel mit sanftem Puls */
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: var(--bs-lichtgold);
  border: 3px solid var(--bs-nacht);
  box-shadow: 0 0 0 0 rgba(201,163,106,.55);
  animation: nadel 2.4s ease-out infinite;
}
@keyframes nadel {
  0%   { box-shadow: 0 0 0 0 rgba(201,163,106,.55); }
  70%  { box-shadow: 0 0 0 20px rgba(201,163,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,163,106,0); }
}
.standortkarte__quelle {
  position: absolute;
  z-index: 2;
  inset-inline-end: 8px;
  bottom: 6px;
  font-size: 11px;
  color: #55524D;
  background: rgba(241,238,232,.82);
  padding: 1px 6px;
}
.standortkarte__schild {
  position: absolute;
  z-index: 2;
  inset-inline-start: 14px;
  top: 14px;
  background: var(--bs-nacht);
  color: var(--bs-putz);
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 8px 22px rgba(22,25,28,.22);
}
.standortkarte__schild b { display: block; font-family: var(--bs-kufi); color: var(--bs-lichtgold); font-size: 14.5px; }
.standortkarte__knoepfe { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* --- 8. Objektkarte ----------------------------------------------------- */

.karte {
  background: var(--bs-surface);
  border: 1px solid var(--bs-line);
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  color: inherit;
}
a.karte:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(22,25,28,.13); border-color: var(--bs-line-stark); color: inherit; }

.karte__bild {
  position: relative;
  aspect-ratio: 3 / 2;
  background: #B7B3AC center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 12px;
}
.karte__bild::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22,25,28,.5), rgba(22,25,28,0) 48%);
}
.karte__bild > * { position: relative; }
.plakette {
  font-family: var(--bs-kufi);
  font-size: 13px;
  font-weight: 700;
  color: var(--bs-putz-hell);
  background: var(--bs-nussholz);
  padding: 5px 11px;
}
.plakette--still { background: rgba(22,25,28,.72); }

.karte__text { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.karte__titel { font-family: var(--bs-kufi); font-size: 20px; font-weight: 700; line-height: 1.5; }
.karte__daten { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14.5px; color: var(--bs-text-muted); }
.karte__daten span { display: inline-flex; align-items: center; gap: 6px; }
.karte__strich { height: 1px; background: #E0DBD2; margin-top: auto; }
.karte__fuss { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.preis { font-family: var(--bs-latein); font-size: 23px; font-weight: 600; color: var(--bs-text); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.preis small { font-size: 14px; font-weight: 500; color: var(--bs-text-muted); }
.zweck { font-size: 14px; color: var(--bs-text-muted); }

/* --- 9. Bereichskarten -------------------------------------------------- */

.bereich {
  color: var(--bs-putz);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 286px;
  transition: transform .22s ease;
}
.bereich:hover { transform: translateY(-4px); color: var(--bs-putz); }
.bereich--immobilien { background: var(--bs-nussholz); }
.bereich--bau { background: var(--bs-corten); }
.bereich--investment { background: var(--bs-daemmerung); }
.bereich h3 { font-size: clamp(22px, 2.3vw, 27px); color: var(--bs-putz); }
.bereich p { font-size: 15.5px; line-height: 1.8; color: rgba(232,228,221,.82); }
.bereich__weiter { font-size: 15px; color: var(--bs-lichtgold); font-family: var(--bs-kufi); font-weight: 600; }

/* --- 10. Leistungen, Schritte, Zahlen ---------------------------------- */

.leistung {
  background: var(--bs-surface);
  border: 1px solid var(--bs-line);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.leistung h3 { font-size: 20px; font-weight: 700; }
.leistung p { font-size: 15.5px; line-height: 1.8; color: var(--bs-text-muted); }

.schritt { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; }
.schritt__nr { font-family: var(--bs-latein); font-size: 15px; font-weight: 500; letter-spacing: .18em; color: var(--bs-bronze); direction: ltr; }
.schritt h3 { font-size: 19px; font-weight: 700; }
.schritt p { font-size: 15px; line-height: 1.75; color: var(--bs-text-muted); }
.abschnitt--dunkel .schritt__nr { color: var(--bs-lichtgold); }
.abschnitt--dunkel .schritt p { color: var(--bs-sichtbeton); }

.zahl {
  background: var(--bs-bg);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.zahl b { font-family: var(--bs-latein); font-size: 34px; font-weight: 500; color: var(--bs-bronze); direction: ltr; }
.zahl span { font-size: 15px; color: var(--bs-text-muted); }
/* Zahlen ohne Wert (in site.js leer) gar nicht zeigen – und den ganzen Block
   ausblenden, solange keine einzige Zahl eingetragen ist. */
.zahl:has(> .platzhalter) { display: none; }
.zahlen:not(:has(b[data-bs]:not(.platzhalter))) { display: none; }

.merkmale { display: flex; flex-wrap: wrap; gap: 10px; }
.merkmal {
  font-size: 14.5px;
  border: 1px solid var(--bs-line-stark);
  background: var(--bs-surface);
  padding: 8px 15px;
  color: var(--bs-text-muted);
}
.abschnitt--dunkel .merkmal { border-color: #3A4046; background: transparent; color: var(--bs-sichtbeton); }

/* --- 11. Formulare ------------------------------------------------------ */

.feld { display: flex; flex-direction: column; gap: 8px; }
.feld > label { font-family: var(--bs-kufi); font-size: 14px; font-weight: 600; color: var(--bs-text-muted); }
.feld input, .feld select, .feld textarea {
  border: 1px solid var(--bs-line-stark);
  background: var(--bs-surface);
  padding: 13px 16px;
  font-size: 16px;
  font-family: var(--bs-text-font);
  width: 100%;
}
.feld textarea { min-height: 128px; resize: vertical; line-height: 1.7; }
.feld input:focus, .feld select:focus, .feld textarea:focus { border-color: var(--bs-bronze); outline: none; }
.feld input::placeholder, .feld textarea::placeholder { color: #9B968E; }
.feld select { appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8A867F 50%), linear-gradient(135deg, #8A867F 50%, transparent 50%);
  background-position: 18px calc(50% + 1px), 23px calc(50% + 1px);
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

.formular { display: grid; gap: 18px; }
.formular__zeile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hinweis { font-size: 13.5px; color: var(--bs-text-muted); line-height: 1.7; }

/* --- 12. Kontaktkacheln ------------------------------------------------- */

.kontaktkachel {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bs-surface);
  border: 1px solid var(--bs-line);
  padding: 22px 24px;
  color: inherit;
}
.kontaktkachel:hover { border-color: var(--bs-lichtgold); color: inherit; }
.kontaktkachel__zeichen { flex: none; width: 42px; height: 42px; display: grid; place-items: center; background: var(--bs-bg); color: var(--bs-bronze); }
.kontaktkachel b { font-family: var(--bs-kufi); font-size: 17px; font-weight: 700; display: block; }
.kontaktkachel span { font-size: 15px; color: var(--bs-text-muted); }

/* --- 13. Fußzeile ------------------------------------------------------- */

.fuss { background: var(--bs-anthrazit); color: var(--bs-sichtbeton); padding-block: 54px 26px; font-size: 15px; }
.fuss__oben { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 42px; padding-bottom: 38px; border-bottom: 1px solid rgba(232,228,221,.1); }
.fuss h4 { font-family: var(--bs-kufi); font-size: 16px; font-weight: 700; color: var(--bs-putz); margin-bottom: 16px; }
.fuss a { color: var(--bs-sichtbeton); }
.fuss a:hover { color: var(--bs-lichtgold); }
.fuss li { margin-bottom: 9px; }
.fuss__logo svg { width: 88px; height: 62px; margin-bottom: 18px; }
.fuss__unten { padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; }

/* --- 14. Aufruf-Band ---------------------------------------------------- */

.aufruf { background: var(--bs-nacht); color: var(--bs-putz); padding-block: clamp(44px, 6vw, 64px); }
.aufruf__innen { display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.aufruf h2 { font-size: clamp(23px, 2.9vw, 34px); color: var(--bs-putz); max-width: 20ch; }
.aufruf p { margin-top: 10px; color: var(--bs-sichtbeton); max-width: 52ch; }
.aufruf__knoepfe { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- 15. Platzhalter für noch fehlende Daten ---------------------------- */

.platzhalter {
  font-family: var(--bs-text-font);
  color: inherit;
  opacity: .62;
  font-style: normal;
}

/* --- 16. Bewegung --------------------------------------------------------
   Grundsatz: Bewegung schmückt, sie versteckt nie Inhalt. Text ist immer
   sofort lesbar – auch ohne JavaScript, im Druck und in Vorschaudiensten.
   Nur die Bühne baut sich beim Laden einmal kurz auf.                     */

@keyframes bs-auftritt { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bs-linie    { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bs-zoom     { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes bs-schweben { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes bs-atmen    { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }

/* Bühne: Teile erscheinen nacheinander (nur beim Laden, nur oben) */
.js .buehne__innen > *,
.js .buehne__text > div > * { animation: bs-auftritt .8s cubic-bezier(.2,.7,.2,1) both; }
.js .buehne__innen > :nth-child(2), .js .buehne__text > div > :nth-child(2) { animation-delay: .08s; }
.js .buehne__innen > :nth-child(3), .js .buehne__text > div > :nth-child(3) { animation-delay: .16s; }
.js .buehne__innen > :nth-child(4), .js .buehne__text > div > :nth-child(4) { animation-delay: .26s; }
.js .buehne__innen > :nth-child(5), .js .buehne__text > div > :nth-child(5) { animation-delay: .36s; }
.js .buehne__innen > :nth-child(6), .js .buehne__text > div > :nth-child(6) { animation-delay: .46s; }
.js .buehne__linie { transform-origin: var(--bs-anfang, right); animation: bs-linie .9s .1s cubic-bezier(.2,.7,.2,1) both !important; }

/* Startseite: Zeichen schwebt, goldener Schimmer atmet */
.buehne__zeichen svg { animation: bs-schweben 9s ease-in-out infinite; }
.buehne--rein::after { animation: bs-atmen 7s ease-in-out infinite; }

/* Fotos der Unterseiten-Bühne: langsamer Zoom, die Goldfuge bleibt stehen */
.buehne__foto { overflow: hidden; }
.buehne__foto > .buehne__zoom {
  position: absolute; inset: 0;
  background: inherit;
  animation: bs-zoom 24s ease-in-out infinite alternate;
}

/* Bilder in den Abschnitten: setzen sich beim Hineinscrollen sanft zurecht.
   Das Bild ist dabei immer ganz zu sehen – es zoomt nur von 108 % auf 100 %. */
.bildtext__bild, .projekt__bild { position: relative; overflow: hidden; }
.bildtext__bild::before {
  content: ""; position: absolute; inset: 0;
  background: inherit;
  transition: transform 1.8s cubic-bezier(.2,.7,.2,1);
}
.js .bildtext__bild::before { transform: scale(1.08); }
.js .bildtext__bild.lebt::before { transform: none; }

/* Goldlinien zeichnen sich, wenn der Abschnitt ins Bild kommt (reine Zier) */
.schritt { border-top: 0; position: relative; }
.schritt::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 2px;
  background: var(--bs-lichtgold);
  transform-origin: var(--bs-anfang, right);
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
}
.js .schritt::before { transform: scaleX(.12); }
.js .schritt.lebt::before { transform: none; }
.js .schritt:nth-child(2)::before { transition-delay: .12s; }
.js .schritt:nth-child(3)::before { transition-delay: .24s; }
.js .schritt:nth-child(4)::before { transition-delay: .36s; }

.marke-klein::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 18px; height: 1px; background: currentColor;
  margin-inline-end: 9px; transform-origin: var(--bs-anfang, right);
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.buehne .marke-klein::before, .standort .marke-klein::before { display: none; }
.js .kopfzeile .marke-klein::before, .js .bildtext .marke-klein::before { transform: scaleX(0); }
.js .kopfzeile.lebt .marke-klein::before, .js .bildtext.lebt .marke-klein::before { transform: none; }

/* Karten: Foto zoomt unter der Hand, Karte hebt sich */
.karte__bild { overflow: hidden; }
.karte__foto {
  position: absolute; inset: 0;
  background: #B7B3AC center/cover no-repeat;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
a.karte:hover .karte__foto, a.karte:focus-visible .karte__foto { transform: scale(1.06); }
.karte__bild::before { z-index: 1; }
.karte__bild > .plakette { z-index: 2; }

/* Bereichskarten: Zeichen hebt sich, Pfeil läuft */
.bereich svg { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.bereich:hover svg { transform: translateY(-4px); }
.bereich__weiter, .weiter { display: inline-block; transition: transform .3s ease, color .18s ease, border-color .18s ease; }
.bereich:hover .bereich__weiter, .weiter:hover { transform: translateX(var(--bs-pfeil, -5px)); }

/* Goldene Knöpfe: ein Lichtstreif wandert durch */
.knopf--gold { position: relative; overflow: hidden; }
.knopf--gold::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
  inset-inline-start: -60%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.38), rgba(255,255,255,0));
  transform: skewX(-18deg);
  transition: inset-inline-start .7s ease;
  pointer-events: none;
}
.knopf--gold:hover::after { inset-inline-start: 120%; }
.knopf:active { transform: translateY(1px); }

/* Kopfzeile wird beim Scrollen schlanker und bekommt Tiefe */
.kopf, .kopf__innen, .logo svg { transition: height .3s ease, box-shadow .3s ease, width .3s ease; }
.kopf.gescrollt { box-shadow: 0 10px 28px rgba(0,0,0,.28); }
.kopf.gescrollt .kopf__innen { height: calc(var(--bs-kopf) - 14px); }
.kopf.gescrollt .logo svg { width: 78px; height: 54px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .bildtext__bild::before, .js .schritt::before, .js .marke-klein::before { transform: none !important; }
}

/* --- 17. Umbrüche ------------------------------------------------------- */

@media (max-width: 1180px) {
  .navi { gap: 16px; }
  .navi a { font-size: 15px; }
  .kopf__anruf span { display: none; }
  .kopf__anruf { padding: 11px; }
}

@media (max-width: 980px) {
  .raster--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .raster--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fuss__oben { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .navi, .sprachen, .kopf .waehrung { display: none; }
  .mobilmenue .sprachen, .mobilmenue .waehrung { display: flex; }
  .menue-knopf { display: block; }
  .buehne { min-height: 520px; }
  .suche__felder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  :root { --bs-kopf: 72px; }
  .logo svg { width: 74px; height: 52px; }
  .raster { gap: 18px; }
  .raster--2, .raster--3, .raster--4 { grid-template-columns: minmax(0, 1fr); }
  .formular__zeile { grid-template-columns: minmax(0, 1fr); }
  .buehne--rein { min-height: 0; }
  .buehne--teil { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .buehne--teil .buehne__foto { order: -1; min-height: 230px; }
  .buehne__foto { border-inline-start: 0; border-bottom: 3px solid var(--bs-lichtgold); }
  .buehne--teil .buehne__text { padding-inline: var(--bs-rand); padding-block: 34px 40px; }
  .buehne--rein .buehne__innen { padding-block: 40px 44px; }
  .buehne__zeichen { opacity: .05; width: 86%; inset-inline-end: -26%; }
  .buehne__punkte { gap: 8px 22px; margin-top: 24px; padding-top: 20px; }
  .buehne__punkt { font-size: 14.5px; }
  /* Auf dem Handy nur Zweck und Objektart in der Bühne – Region und Preis
     stehen eine Seite weiter im vollen Filter, sonst füllt das Formular
     den ganzen Bildschirm. */
  .suche__felder select:not([name="typ"]) { display: none; }
  .suche { flex-direction: column; padding: 14px; }
  /* In der Spalte darf die Flex-Basis nicht als Höhe wirken */
  .suche__felder { flex: none; width: 100%; grid-template-columns: minmax(0, 1fr); }
  .suche__zweck button { flex: 1; }
  .fuss__oben { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .aufruf__innen { flex-direction: column; align-items: flex-start; }
  .kopfzeile { align-items: flex-start; flex-direction: column; }
}

/* ==========================================================================
   18. Bild-und-Text-Block
   ========================================================================== */

.bildtext { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(30px, 5vw, 70px); align-items: center; }
.bildtext__bild { aspect-ratio: 4 / 3; background: #B7B3AC center/cover no-repeat; }
.bildtext--hoch .bildtext__bild { aspect-ratio: 3 / 4; }
.bildtext h2 { font-size: clamp(25px, 3.1vw, 36px); }
.bildtext p + p { margin-top: 16px; }
.bildtext p { color: var(--bs-text-muted); }
.abschnitt--dunkel .bildtext p { color: var(--bs-sichtbeton); }

/* ==========================================================================
   19. Objektliste: Filter und Sortierung
   ========================================================================== */

.filter { background: var(--bs-surface); border: 1px solid var(--bs-line); padding: 20px; display: grid; gap: 16px; }
.filter__felder { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.filter__fuss { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.filter__fuss p { font-size: 15px; color: var(--bs-text-muted); }
.filter__fuss b { font-family: var(--bs-latein); font-size: 19px; color: var(--bs-text); direction: ltr; }
.zuruecksetzen { font-family: var(--bs-kufi); font-size: 14.5px; font-weight: 600; color: var(--bs-bronze); border-bottom: 1px solid var(--bs-lichtgold); padding-bottom: 2px; }
.zuruecksetzen:hover { color: var(--bs-text); }

.leer { text-align: center; padding: 64px 20px; border: 1px dashed var(--bs-line-stark); color: var(--bs-text-muted); }
.leer b { display: block; font-family: var(--bs-kufi); font-size: 20px; color: var(--bs-text); margin-bottom: 8px; }

/* ==========================================================================
   20. Objekt-Detailseite
   ========================================================================== */

.objekt { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 54px); align-items: start; }

.galerie { display: flex; flex-direction: column; gap: 12px; }
.galerie__gross { position: relative; aspect-ratio: 16 / 10; background: #B7B3AC center/cover no-repeat; cursor: zoom-in; overflow: hidden; }
/* Streifen läuft waagerecht, auch bei vielen Bildern */
.galerie__streifen {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 5); gap: 12px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.galerie__streifen::-webkit-scrollbar { display: none; }
.mini { aspect-ratio: 3 / 2; background: #B7B3AC center/cover no-repeat; border: 2px solid transparent; padding: 0; scroll-snap-align: start; opacity: .78; transition: opacity .18s, border-color .18s; }
.mini.aktiv, .mini:hover { opacity: 1; }

.galerie__pfeil {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 46px; height: 46px; display: grid; place-items: center;
  background: rgba(22,25,28,.62); color: var(--bs-putz-hell);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background .18s, color .18s;
}
.galerie__pfeil:hover { background: var(--bs-lichtgold); color: var(--bs-nacht); }
.galerie__pfeil svg { width: 22px; height: 22px; }
.galerie__pfeil--vor { inset-inline-end: 14px; }
.galerie__pfeil--zurueck { inset-inline-start: 14px; }
.galerie__pfeil--zurueck svg { transform: scaleX(-1); }
[dir="rtl"] .galerie__pfeil--vor svg { transform: scaleX(-1); }
[dir="rtl"] .galerie__pfeil--zurueck svg { transform: none; }
.galerie__zaehler {
  position: absolute; z-index: 2; bottom: 14px; inset-inline-start: 14px;
  background: rgba(22,25,28,.62); color: var(--bs-putz-hell); font-size: 14px; padding: 4px 11px;
  font-family: var(--bs-latein); pointer-events: none;
}
.galerie__lupe {
  position: absolute; z-index: 2; bottom: 14px; inset-inline-end: 14px;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: rgba(22,25,28,.62); color: var(--bs-putz-hell); transition: background .18s, color .18s;
}
.galerie__lupe:hover { background: var(--bs-lichtgold); color: var(--bs-nacht); }
.galerie__lupe svg { width: 20px; height: 20px; }

/* Vergrößerte Ansicht */
.leuchtkasten {
  position: fixed; inset: 0; z-index: 200; background: rgba(12,14,16,.94);
  display: grid; place-items: center; padding: 64px 76px;
  animation: bs-einblenden .22s ease-out;
}
.leuchtkasten__bild { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.45); user-select: none; }
.leuchtkasten .galerie__pfeil { position: fixed; width: 52px; height: 52px; }
.leuchtkasten .galerie__pfeil--vor { inset-inline-end: 16px; }
.leuchtkasten .galerie__pfeil--zurueck { inset-inline-start: 16px; }
.leuchtkasten__zu {
  position: fixed; top: 16px; inset-inline-end: 16px; width: 46px; height: 46px;
  display: grid; place-items: center; color: var(--bs-putz-hell); background: rgba(232,228,221,.1);
}
.leuchtkasten__zu:hover { background: var(--bs-lichtgold); color: var(--bs-nacht); }
.leuchtkasten__zu svg { width: 22px; height: 22px; }
.leuchtkasten__zaehler { position: fixed; bottom: 18px; inset-inline: 0; text-align: center; color: var(--bs-sichtbeton); font-size: 15px; font-family: var(--bs-latein); pointer-events: none; }
body.kasten-offen { overflow: hidden; }
@keyframes bs-einblenden { from { opacity: 0; } }
@media (max-width: 680px) {
  .leuchtkasten { padding: 70px 0 56px; }
  .leuchtkasten .galerie__pfeil { top: auto; bottom: 8px; transform: none; width: 46px; height: 46px; }
  .galerie__pfeil { width: 40px; height: 40px; }
  .galerie__pfeil--vor { inset-inline-end: 10px; }
  .galerie__pfeil--zurueck { inset-inline-start: 10px; }
  .galerie__streifen { grid-auto-columns: 30%; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .leuchtkasten { animation: none; } }

/* Eckdaten: jeder Wert in einem eigenen Rahmen – Symbol, Bezeichnung, Zahl */
.eckdaten { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; margin-top: 26px; }
.eckdatum {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  background: var(--bs-surface); border: 1px solid var(--bs-line); padding: 16px 18px 15px;
}
.eckdatum__symbol {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  background: rgba(201,163,106,.14); color: var(--bs-bronze);
}
.eckdatum__symbol svg { width: 22px; height: 22px; }
.eckdatum__text { display: grid; gap: 1px; min-width: 0; }
.eckdatum__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.eckdatum__name { font-family: var(--bs-kufi); font-size: 13.5px; font-weight: 600; color: var(--bs-text-muted); line-height: 1.45; }
.eckdatum__wert { font-size: 20px; font-weight: 700; color: var(--bs-text); line-height: 1.35; }
.eckdatum__wert .lat { font-weight: 500; font-size: 25px; }
.eckdatum__wert small { font-size: 15px; font-weight: 500; color: var(--bs-text-muted); }
@media (max-width: 680px) {
  .eckdaten { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .eckdatum { padding: 14px; gap: 10px; }
  .eckdatum__symbol { width: 36px; height: 36px; }
  .eckdatum__symbol svg { width: 20px; height: 20px; }
  .eckdatum__wert .lat { font-size: 22px; }
  /* ungerade Anzahl: der letzte Kasten liegt quer über beide Spalten */
  .eckdatum:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; }
}
}
.mini.aktiv { border-color: var(--bs-lichtgold); }
.mini:hover { border-color: var(--bs-bronze); }

.objekt__kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.objekt__kopf h1 { font-size: clamp(23px, 2.8vw, 34px); }
.objekt__nr { font-family: var(--bs-latein); font-size: 14px; letter-spacing: .12em; color: var(--bs-text-muted); direction: ltr; border: 1px solid var(--bs-line-stark); padding: 5px 10px; white-space: nowrap; }

.eigenschaft { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--bs-line); font-size: 15.5px; }
.eigenschaft span { color: var(--bs-text-muted); }
.eigenschaft b { font-weight: 600; }

.seitenbox { background: var(--bs-surface); border: 1px solid var(--bs-line); padding: 26px 24px; display: grid; gap: 16px; position: sticky; top: calc(var(--bs-kopf) + 22px); }
.seitenbox .preis { font-size: 30px; }
.seitenbox__hinweis { font-size: 14px; color: var(--bs-text-muted); line-height: 1.7; }
.seitenbox__strich { height: 1px; background: var(--bs-line); }

.kartenband { background: var(--bs-nacht); color: var(--bs-sichtbeton); padding: 18px 22px; font-size: 14.5px; display: flex; align-items: center; gap: 12px; }

/* ==========================================================================
   21. Projekte
   ========================================================================== */

.projekt { position: relative; display: block; overflow: hidden; color: var(--bs-putz); }
.projekt__bild { aspect-ratio: 4 / 3; background: #B7B3AC center/cover no-repeat; transition: transform .5s ease; }
.projekt:hover .projekt__bild { transform: scale(1.04); }
.projekt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(22,25,28,.9), rgba(22,25,28,.55) 38%, rgba(22,25,28,.04) 70%); }
.projekt__text { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.projekt__text h3 { font-size: 20px; color: var(--bs-putz); }
.projekt__text span { font-size: 14.5px; color: var(--bs-sichtbeton); }
.projekt__stand { position: absolute; z-index: 2; top: 14px; inset-inline-start: 14px; font-family: var(--bs-kufi); font-size: 12.5px; font-weight: 700; padding: 5px 11px; background: var(--bs-corten); color: var(--bs-putz-hell); }
.projekt__stand--fertig { background: var(--bs-nussholz); }
.projekt__stand--planung { background: var(--bs-daemmerung); }
.projekt__stand .lat { font-weight: 500; }
.projekt__art { font-family: var(--bs-kufi); font-size: 12.5px !important; font-weight: 600; color: #E3C795 !important; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.projekt__text h3, .projekt__text > span { text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.projekt__fortschritt { height: 3px; background: rgba(232,228,221,.22); margin-top: 8px; }
.projekt__fortschritt i { display: block; height: 100%; background: var(--bs-lichtgold); }

/* Projekte aus der Verwaltung: Filter, leerer Zustand, Projektseite */
[hidden] { display: none !important; }

.pfilter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.pfilter button {
  font-family: var(--bs-kufi); font-size: 14.5px; font-weight: 600;
  padding: 9px 18px; border: 1px solid var(--bs-line-stark); background: var(--bs-surface);
  color: var(--bs-text-muted); cursor: pointer; transition: background .18s, color .18s, border-color .18s;
}
.pfilter button .lat { font-size: 12.5px; opacity: .65; margin-inline-start: 4px; }
.pfilter button:hover { border-color: var(--bs-bronze); color: var(--bs-text); }
.pfilter button[aria-pressed="true"] { background: var(--bs-nacht); border-color: var(--bs-nacht); color: var(--bs-putz); }

.projekte-leer {
  border: 1px solid var(--bs-line); background: var(--bs-surface);
  padding: clamp(36px, 6vw, 64px) clamp(22px, 5vw, 56px);
  display: grid; justify-items: center; text-align: center; gap: 14px;
}
.projekte-leer__zeichen { color: var(--bs-lichtgold); }
.projekte-leer__zeichen svg { width: 60px; height: 60px; }
.projekte-leer h3 { font-size: clamp(21px, 2.4vw, 27px); }
.projekte-leer p { color: var(--bs-text-muted); max-width: 58ch; }
.projekte-leer .buehne__knoepfe { margin-top: 10px; justify-content: center; }

.projekt-fehlt { padding-block: 40px 20px; display: grid; gap: 14px; max-width: 60ch; }
.projekt-fehlt p { color: var(--bs-text-muted); }


/* Stand unter dem Titel – nur wenn die Seitenbox unter den Inhalt rutscht */
.stand-klein { display: none; }
@media (max-width: 1080px) {
  .stand-klein { display: grid; gap: 10px; margin-top: 18px; padding: 16px 18px; background: var(--bs-surface); border: 1px solid var(--bs-line); }
  .stand-klein__zeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .stand-klein .projekt-stand { font-size: 14px; padding: 5px 12px; }
  .stand-klein b { font-size: 24px; font-weight: 500; color: var(--bs-bronze); line-height: 1; }
  .seitenbox [data-p-phase], .seitenbox [data-p-fortschritt] { display: none !important; }
}

.projekt-kurz { font-size: 18px; line-height: 1.8; margin-top: 10px; color: var(--bs-text); max-width: 62ch; }

.projekt-stand {
  display: inline-block; font-family: var(--bs-kufi); font-size: 15px; font-weight: 700;
  padding: 7px 16px; color: var(--bs-putz-hell); background: var(--bs-corten);
}
.projekt-stand--fertig { background: var(--bs-nussholz); }
.projekt-stand--planung { background: var(--bs-daemmerung); }

.fortschritt-gross { display: grid; gap: 10px; }
.fortschritt-gross__kopf { display: flex; justify-content: space-between; align-items: baseline; }
.fortschritt-gross__kopf > span { font-family: var(--bs-kufi); font-weight: 600; color: var(--bs-text-muted); font-size: 14.5px; }
.fortschritt-gross__kopf b { font-size: 30px; font-weight: 500; color: var(--bs-bronze); line-height: 1; }
.fortschritt-gross__balken { height: 8px; background: var(--bs-line); overflow: hidden; }
.fortschritt-gross__balken i {
  display: block; height: 100%;
  background: linear-gradient(to left, var(--bs-bronze), var(--bs-lichtgold));
  animation: bs-balken 1.1s cubic-bezier(.2,.7,.2,1) both;
}
[dir="ltr"] .fortschritt-gross__balken i { background: linear-gradient(to right, var(--bs-bronze), var(--bs-lichtgold)); }
@keyframes bs-balken { from { transform: scaleX(0); } }
.fortschritt-gross__balken i { transform-origin: right center; }
[dir="ltr"] .fortschritt-gross__balken i { transform-origin: left center; }

.leistungen { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.leistungen li {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--bs-line); font-size: 16px;
}
.leistungen li::before {
  content: ""; flex: none; width: 20px; height: 20px;
  background: var(--bs-lichtgold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat;
}
@media (max-width: 640px) {
  .leistungen { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pfilter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--bs-rand)); padding-inline: var(--bs-rand); }
  .pfilter::-webkit-scrollbar { display: none; }
  .pfilter button { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .fortschritt-gross__balken i { animation: none; } }

/* ==========================================================================
   22. Team und Standorte
   ========================================================================== */

.person { display: flex; flex-direction: column; gap: 14px; }
.person__bild { aspect-ratio: 1 / 1; background: var(--bs-surface); border: 1px solid var(--bs-line); display: grid; place-items: center; color: var(--bs-sichtbeton); }
.person b { font-family: var(--bs-kufi); font-size: 17px; font-weight: 700; display: block; }
.person span { font-size: 14.5px; color: var(--bs-text-muted); }

.standort { background: var(--bs-surface); border: 1px solid var(--bs-line); padding: 28px 26px; display: grid; gap: 10px; }
.standort h3 { font-size: 21px; }
.standort p { font-size: 15.5px; color: var(--bs-text-muted); }

.karte-platzhalter {
  aspect-ratio: 16 / 9;
  background: repeating-linear-gradient(135deg, #DEDAD2 0 16px, #D6D1C8 16px 32px);
  border: 1px solid var(--bs-line-stark);
  display: grid;
  place-items: center;
  color: var(--bs-text-muted);
  font-size: 15px;
}

/* ==========================================================================
   23. Umbrüche der Zusatzbausteine
   ========================================================================== */

@media (max-width: 1080px) {
  .objekt { grid-template-columns: minmax(0, 1fr); }
  .seitenbox { position: static; }
  .filter__felder { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .bildtext { grid-template-columns: minmax(0, 1fr); }
  .bildtext--hoch .bildtext__bild, .bildtext__bild { aspect-ratio: 16 / 10; }
  .galerie__streifen { grid-auto-columns: calc((100% - 36px) / 4); }
}

@media (max-width: 680px) {
  .filter__felder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galerie__gross { aspect-ratio: 4 / 3; }
  .galerie__streifen { grid-auto-columns: 30%; }
}


/* ==========================================================================
   24. Englische Fassung (LTR)
   Fast alles ist mit logischen Richtungen notiert und dreht sich von selbst.
   Hier stehen nur die Stellen, die physisch gerichtet sind: Verläufe,
   Masken und die Ursprünge der Goldlinien.
   ========================================================================== */

[dir="ltr"] { --bs-anfang: left; --bs-pfeil: 5px; }

[dir="ltr"] .buehne--rein::before {
  -webkit-mask-image: linear-gradient(to left, #000 0%, rgba(0,0,0,.25) 48%, transparent 76%);
  mask-image: linear-gradient(to left, #000 0%, rgba(0,0,0,.25) 48%, transparent 76%);
}
[dir="ltr"] .buehne--teil .buehne__text::before {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 100%);
}
[dir="ltr"] .buehne__foto::after {
  background: linear-gradient(to right, rgba(22,25,28,.38) 0%, rgba(22,25,28,0) 28%),
              linear-gradient(to top, rgba(22,25,28,.28) 0%, rgba(22,25,28,0) 40%);
}
[dir="ltr"] .suche select, [dir="ltr"] .feld select {
  background-position: calc(100% - 23px) calc(50% + 1px), calc(100% - 18px) calc(50% + 1px);
}

/* Schriften: Jost für Überschriften (die lateinische Markenschrift),
   IBM Plex für den Fließtext – dieselbe Familie wie im Arabischen */
html[lang="en"] {
  --bs-kufi: 'Jost', 'Futura', 'Avenir Next', sans-serif;
  --bs-text-font: 'IBM Plex Sans Arabic', 'Helvetica Neue', Arial, sans-serif;
}
html[lang="en"] body { word-spacing: normal; line-height: 1.7; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] h4 {
  word-spacing: normal; font-weight: 600; letter-spacing: -.012em; line-height: 1.2;
}
html[lang="en"] .buehne h1 { line-height: 1.1; letter-spacing: -.02em; }
html[lang="en"] .kopfzeile h2, html[lang="en"] .bildtext h2 { line-height: 1.18; }
html[lang="en"] .marke-klein {
  font-family: var(--bs-latein); font-weight: 500; font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase; word-spacing: normal;
}
html[lang="en"] .navi a, html[lang="en"] .mobilmenue nav a { word-spacing: normal; font-weight: 500; letter-spacing: .01em; }
html[lang="en"] .knopf { font-weight: 600; letter-spacing: .01em; }
html[lang="en"] .karte__titel { font-weight: 600; line-height: 1.35; }
html[lang="en"] .leistung h3, html[lang="en"] .schritt h3 { font-weight: 600; }
html[lang="en"] .feld > label { font-weight: 500; }
