/* ==================================================================
   Buchungsstrecke Boardinghouse St. Pauli

   Alle Farben, Abstände und Schriftgrößen stehen als Variablen ganz
   oben. Für einen Feinschliff reicht es, diesen Block zu ändern.

   Bewusst ohne externe Schriften: keine Google Fonts, damit beim
   Seitenaufruf keine Gastdaten an Dritte gehen.
   ================================================================== */

:root {
  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --schrift-anzeige: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  /* Palette nach der SynXis/Cortiina-Vorlage ausgemessen: weiße Seite,
     warm hinterlegte Karten, weiche Taupe-Knöpfe mit dunkler Schrift.
     Zurück auf reines Schwarz/Weiß kommt man über diese fünf Zeilen:
     --flaeche #ffffff, --grund #f4f4f3, --linie #e0e0e0,
     --akzent #111111, --akzent-text #ffffff. */
  --text: #292b2c;
  --text-schwach: #6f6a64;
  --linie: #c3b5aa;
  --flaeche: #f4f1ed;     /* Karten liegen warm auf ... */
  --grund: #ffffff;       /* ... weißer Seite */

  --akzent: #afa094;
  --akzent-hell: #9d8d80;
  --akzent-text: #292b2c;

  /* Starke Betonung */
  --betont: #292b2c;
  --betont-grund: #ddd4cb;
  /* Ruhige Betonung */
  --leise: #292b2c;
  --leise-grund: #eae4dd;

  --hinweis: #292b2c;
  --hinweis-grund: #eae4dd;
  /* Einzige Buntfarbe: echte Fehler. Ein Warnhinweis, den man übersieht,
     ist keiner. */
  --fehler: #8c2f21;
  --fehler-grund: #f7ece9;

  --radius: 4px;
  --radius-klein: 3px;
  --schatten: none;
  --schatten-stark: 0 4px 12px rgba(0,0,0,.18), 0 24px 60px rgba(0,0,0,.30);

  --spalte: 620px;
  --spalte-breit: 1040px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0 18px 72px;
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--grund);
}

body.startseite { padding-left: 0; padding-right: 0; }

.huelle { max-width: var(--spalte); margin: 0 auto; }
.huelle-breit { max-width: var(--spalte-breit); }

body.startseite .huelle { padding: 0 18px; }

img { max-width: 100%; }

/* ==================================================================
   Bühne
   ================================================================== */

.buehne {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 18px 40px;
  color: #fff;
  isolation: isolate;
  /* Farbverlauf als Grundlage — bleibt sichtbar, solange kein Bild da ist */
  background:
    linear-gradient(160deg, #1a1a1a 0%, #2e2e2e 45%, #4a4a4a 100%);
  background-size: cover;
  background-position: center;
}

/* Das Foto liegt darüber, der dunkle Schleier darüber hält die Schrift lesbar */
.buehne::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("grossefreiheit.jpg");
  background-size: cover;
  background-position: center;
}

/* Auf schmalen Bildschirmen die kleinere Fassung laden und den Ausschnitt
   nach rechts schieben, damit nicht der Hinterkopf das Bild bestimmt. */
@media (max-width: 700px) {
  .buehne::before {
    background-image: url("grossefreiheit-klein.jpg");
    background-position: 64% center;
  }
}

.buehne::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,.26) 35%, rgba(0,0,0,.72) 100%);
}

.buehne-kopf {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 0;
  max-width: var(--spalte-breit);
  width: 100%;
  margin: 0 auto;
}

/* Das Logo steckt als SVG direkt im Dokument. Es nimmt seine Farbe über
   currentColor aus dem umgebenden Element — auf der Bühne weiß über dem
   Foto, im hellen Seitenkopf schwarz. Eine Datei kann also nicht fehlen,
   und es bleibt bei jeder Größe scharf. */
.wortmarke {
  display: block;
  width: auto;
  height: 56px;
  max-width: min(240px, 62vw);
  flex: 0 0 auto;
}

.buehne-kopf .wortmarke {
  color: #fff;
  /* Ein leichter Schatten hält den Schriftzug auch über hellen
     Bildstellen lesbar, ohne wie ein Effekt zu wirken. */
  filter: drop-shadow(0 1px 3px rgb(0 0 0 / 45%));
}

.buehne-link {
  margin-left: auto;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 2px;
}
.buehne-link:hover { color: #fff; border-color: #fff; }

.buehne-mitte {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--spalte-breit);
  width: 100%;
  margin: 0 auto;
  padding: 40px 0;
}

.ueberzeile {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  color: rgba(255,255,255,.8);
  margin: 0 0 18px;
}

.buehne h1 {
  font-family: var(--schrift-anzeige);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0 0 20px;
  text-wrap: balance;
}

.unterzeile {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,.9);
  max-width: 34em;
  margin: 0 0 40px;
}

/* Suchfläche als schwebender Layer ---------------------------------- */

/* Deckkraft der Suchfläche — eine Zahl, an der sich alles regeln lässt.
   100% ist deckend weiß, 60% schon sehr durchsichtig. */
.suchflaeche {
  --suche-deckung: 96%;
  background: rgb(255 255 255 / var(--suche-deckung));
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--schatten-stark);
  padding: 22px;
}

/* Durchsichtig wird sie nur dort, wo der Browser auch weichzeichnen kann.
   Ohne Weichzeichner würde die Schrift auf dem unruhigen Foto flimmern —
   dann bleibt die Fläche deckend. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .suchflaeche {
    --suche-deckung: 46%;
    /* Nur leicht weichzeichnen. Ein starker Weichzeichner macht aus dem
       Foto eine flache Milchglasscheibe — dann wirkt die Fläche wieder
       deckend, obwohl sie es nicht ist. */
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border: 1px solid rgb(255 255 255 / 40%);
  }

  /* Die Felder bleiben etwas dichter als die Fläche, sonst verschwimmt,
     was man anklicken kann. */
  /* Die Felder bleiben fast deckend — sie tragen die Eingaben und müssen
     als Bedienelement erkennbar bleiben. */
  .suchflaeche input,
  .suchflaeche select {
    background: rgb(255 255 255 / 94%);
    border-color: rgb(17 17 17 / 22%);
  }

  /* Auf der halbdurchsichtigen Fläche trägt Grau zu wenig — die
     Beschriftungen gehen auf Schwarz, damit sie über jedem Motiv lesbar
     bleiben. */
  .suchflaeche .suchfelder label { color: var(--text); }
}

.suchfelder { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.suchfelder .feld { flex: 1 1 170px; margin-bottom: 0; }
.suchfelder .feld.schmal { flex: 0 0 118px; }
.suchfelder .knopffeld { flex: 0 0 auto; }

.suchfelder label {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-schwach);
}

/* Felder und Knopf teilen sich eine Höhe, damit die Zeile bündig steht */
.suchfelder { --feldhoehe: 52px; }

.suchfelder input,
.suchfelder select {
  height: var(--feldhoehe);
  font-size: 17px;
  padding: 0 12px;
  line-height: normal;
}

.suchfelder button {
  height: var(--feldhoehe);
  margin-top: 0;
  width: auto;
  padding: 0 28px;
  font-size: 16px;
}

.buehne-pfeil {
  text-align: center;
  font-size: 22px;
  color: rgba(255,255,255,.7);
  padding-bottom: 6px;
}

/* ==================================================================
   Grundbausteine
   ================================================================== */

.karte {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
}

h1 { font-size: 24px; line-height: 1.25; margin: 0 0 4px; font-weight: 600; }

h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-schwach);
  margin: 0 0 14px;
  font-weight: 600;
}

.grossheadline {
  font-family: var(--schrift-anzeige);
  font-size: 26px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  margin: 0 0 8px;
}

p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

.schwach { color: var(--text-schwach); font-size: 14px; }

/* Zusammenfassung der Suche als ruhige Leiste — ein Klick führt zurück
   zu den Feldern auf der Bühne. */
.suchleiste {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 34px 0 30px; padding: 16px 20px;
  background: var(--grund);
  border-top: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
  border-radius: 0;
  text-decoration: none; color: var(--text);
}
.suchleiste:hover { border-color: var(--text-schwach); }
.suchleiste-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.suchleiste-zeitraum { font-size: 15.5px; }
.suchleiste-belegung { font-size: 14px; color: var(--text-schwach); }
.suchleiste-pfeil { font-size: 26px; line-height: 1; color: var(--text-schwach); flex: 0 0 auto; }

/* Die allgemeine h2-Regel macht kleine Grossbuchstaben in Grau — hier
   soll aber eine echte Ueberschrift stehen, also alles zuruecksetzen. */
.auswahltitel {
  font-family: var(--schrift-anzeige);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 1.7rem);
  text-transform: none;
  letter-spacing: -.01em;
  color: var(--text);
  margin: 0 0 4px;
}

.trefferzeile { margin: 0 0 22px; font-size: 14px; }

/* Damit der Sprung nach unten immer sichtbar Wirkung zeigt */
#unten { scroll-margin-top: 12px; }
#laden { min-height: 180px; display: flex; align-items: center; }

/* Datenzeilen ------------------------------------------------------- */

.zeilen { margin: 0; }

.zeile {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--linie);
}
.zeile:last-child { border-bottom: 0; }
.zeile dt { color: var(--text-schwach); font-size: 14px; flex: 0 0 auto; }
.zeile dd { margin: 0; text-align: right; }

/* ==================================================================
   Zimmerkarte
   ================================================================== */

/* Zimmerkarte ------------------------------------------------------
   Masse nach der SynXis/Cortiina-Vorlage ausgemessen: Grundschrift 13px
   mit Zeilenhoehe 1,3, Nebenzeilen 10,5px, Ratenname 13px fett in der
   Grotesk (nicht als Serif-Ueberschrift), Preis 17px. Die Serif traegt
   nur den Zimmernamen und den Knopf. Eine Ratenzeile misst so rund
   96px statt 130px — daher wirkt die Vorlage feingliedriger.
   ------------------------------------------------------------------ */
.zimmerkarte {
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  gap: 20px;
  padding: 13px;
  margin-bottom: 13px;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  background: var(--flaeche);
  font-size: 13px;
  line-height: 1.3;
}

.zimmerbild { min-width: 0; }

.galerie { position: relative; }
.galerie .grossbild {
  display: none;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  background: #eceae6;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 10%);
}
.galerie.hatBild .grossbild { display: block; }

.galerie .streifen {
  display: none; gap: 5px; padding: 5px 0 0;
  overflow-x: auto; background: var(--flaeche);
}
.galerie .streifen.sichtbar { display: flex; }
.galerie .streifen img {
  width: 48px; height: 34px; object-fit: cover;
  cursor: pointer; flex: 0 0 auto;
  opacity: .7; transition: opacity .15s;
}
.galerie .streifen img:hover,
.galerie .streifen img.aktiv { opacity: 1; }

.kurzmerkmale {
  list-style: none; margin: 10px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 5px;
  font-size: 11.5px; color: var(--text-schwach);
}
.kurzmerkmale li { display: flex; align-items: center; gap: 7px; }
.kurzmerkmale svg { width: 12px; height: 12px; flex: 0 0 auto; }

.zimmerinhalt { min-width: 0; }

.zimmertitel {
  font-family: var(--schrift-anzeige);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0;
}

.zimmerzeile { margin: 2px 0 0; font-size: 10.5px; line-height: 1.3; color: var(--text-schwach); }

.beschreibung { margin: 13px 0 0; font-size: 13px; line-height: 1.3; max-width: 70ch; }

.textlink {
  display: inline-block; width: auto; margin: 10px 0 0; padding: 0;
  background: none; border: 0; color: var(--text);
  font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1.3;
  cursor: pointer; border-bottom: 1px solid var(--text);
}
.textlink:hover { border-color: transparent; filter: none; }

.merkmale {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 3px 18px;
  font-size: 12px; color: var(--text-schwach);
}
.merkmale li::before { content: "—"; margin-right: 6px; }

/* Raten ------------------------------------------------------------- */
.raten { margin-top: 13px; }

.rate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 20px;
  align-items: start;
  padding: 13px 0;
  border-top: 1px solid var(--linie);
}

.ratelinks { min-width: 0; }
.ratekopf { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }

.ratename {
  font-size: 13px; font-weight: 700; line-height: 1.3;
  border-bottom: 1px solid currentColor;
}

.bestlabel {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-schwach);
}

.ratefakten {
  list-style: none; margin: 7px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 7px;
  font-size: 13px; line-height: 1.3; font-weight: 700;
}
.ratefakten li { display: flex; align-items: flex-start; gap: 7px; }
.ratefakten svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 1px; }
.ratefakten li.nein { color: var(--text-schwach); }

.rateinfo {
  margin: 7px 0 0; font-size: 13px; line-height: 1.3;
  font-weight: 400; color: var(--text);
}

.raterechts { text-align: right; }
.ratepreis { font-size: 17px; font-weight: 700; line-height: 1.3; }
.ratepro { font-size: 10.5px; line-height: 1.3; color: var(--text-schwach); }

a.knopf {
  display: inline-block; margin-top: 10px;
  padding: 10px 16px; min-width: 147px;
  font-family: var(--schrift-anzeige);
  font-size: 13px; font-weight: 700; line-height: 1;
  text-transform: uppercase; letter-spacing: .04em; text-align: center;
  text-decoration: none;
  color: var(--akzent-text); background: var(--akzent);
  border: 1px solid var(--akzent);
  border-radius: 3px;
  white-space: nowrap;
}
a.knopf:hover { background: var(--akzent-hell); }

/* ==================================================================
   Formular
   ================================================================== */

.feld { margin-bottom: 16px; }

.feld label {
  display: block;
  font-size: 14px;
  color: var(--text-schwach);
  margin-bottom: 6px;
}

.feld input,
.feld select,
.feld textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: 10px 12px;
  border: 1px solid var(--linie);
  border-radius: var(--radius-klein);
  background: var(--flaeche);
}

.feld input:focus,
.feld select:focus,
.feld textarea:focus {
  outline: 2px solid var(--akzent);
  outline-offset: -1px;
  border-color: var(--akzent);
}

.feld textarea { min-height: 90px; resize: vertical; }

.paar { display: flex; gap: 14px; }
.paar > * { flex: 1 1 0; min-width: 0; }
.paar .schmal { flex: 0 0 34%; }

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

.zustimmung {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 20px 0 4px; font-size: 14px;
}
.zustimmung input { margin: 3px 0 0; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--akzent); }
.zustimmung a { color: inherit; }

.extra {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--linie); cursor: pointer;
}
.extra:last-of-type { border-bottom: 0; padding-bottom: 0; }
.extra input { margin: 4px 0 0; flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--akzent); }
.extra .mitte { flex: 1 1 auto; }
.extra .titel { display: block; }
.extra .preis { flex: 0 0 auto; text-align: right; white-space: nowrap; }

.summe {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--linie);
}
.summe .wert { font-size: 25px; font-weight: 600; letter-spacing: -.01em; }

button {
  display: block; width: 100%; margin-top: 18px; padding: 15px 16px;
  font: inherit; font-weight: 600;
  color: var(--akzent-text); background: var(--akzent);
  border: 0; border-radius: var(--radius-klein); cursor: pointer;
}
button:hover { background: var(--akzent-hell); }
button[disabled] { opacity: .55; cursor: default; }

/* Meldungen --------------------------------------------------------- */

.meldung { padding: 14px 16px; border-radius: var(--radius-klein); font-size: 15px; margin-bottom: 16px; }
.meldung:last-child { margin-bottom: 0; }
.meldung.hinweis { background: var(--hinweis-grund); color: var(--hinweis); }
.meldung.fehler { background: var(--fehler-grund); color: var(--fehler); }

.suchflaeche .meldung { margin: 16px 0 0; }

.fuss { margin-top: 40px; font-size: 13px; color: var(--text-schwach); text-align: center; }
.fuss a { color: inherit; }

/* Kopf der Unterseiten ---------------------------------------------- */

.kopf { display: flex; align-items: center; gap: 12px; padding: 26px 0 20px; }
.kopf .wortmarke { height: 40px; max-width: min(180px, 60vw); color: var(--text); }

[hidden] { display: none !important; }

/* ==================================================================
   Schmale Bildschirme
   ================================================================== */

@media (max-width: 700px) {
  /* Auf schmalen Bildschirmen fällt die Spaltenteilung weg */
  .zimmerkarte { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .kurzmerkmale { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
  .rate { grid-template-columns: 1fr; gap: 10px; }
  .raterechts {
    text-align: left; min-width: 0;
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  }
  .raterechts a.knopf { width: 100%; text-align: center; margin-top: 4px; }
  .suchleiste { margin: 26px 0 24px; padding: 14px 16px; }
}

@media (max-width: 560px) {
  .paar { display: block; }
  .paar > * { width: 100%; }
  .zeile { flex-direction: column; gap: 0; }
  .zeile dd { text-align: left; }

  .buehne { min-height: auto; padding-bottom: 32px; }
  .buehne-mitte { padding: 24px 0 0; }
  .buehne h1 { font-size: 2.4rem; }
  .unterzeile { margin-bottom: 28px; }
  .suchflaeche { padding: 18px; }
  .suchfelder { display: block; }
  .suchfelder .feld,
  .suchfelder .feld.schmal { margin-bottom: 14px; }
  .suchfelder .knopffeld button { width: 100%; padding: 15px 16px; }
  .buehne-pfeil { display: none !important; }
}
