/* ==================================================================
   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;

  --text: #17191a;
  --text-schwach: #6b6f70;
  --linie: #e4e1dc;
  --flaeche: #ffffff;
  --grund: #f4f2ef;

  --akzent: #17353f;
  --akzent-hell: #23505e;
  --akzent-text: #ffffff;

  --gut: #1f5c3d;
  --gut-grund: #eaf3ee;
  --warn-text: #7a4a12;
  --warn-grund: #fbf1e4;
  --hinweis: #7a5f14;
  --hinweis-grund: #fdf6e3;
  --fehler: #8c2f21;
  --fehler-grund: #fbeeec;

  --radius: 10px;
  --radius-klein: 6px;
  --schatten: 0 1px 2px rgba(20,20,20,.05), 0 8px 28px rgba(20,20,20,.07);
  --schatten-stark: 0 4px 12px rgba(10,20,25,.16), 0 24px 60px rgba(10,20,25,.28);

  --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, #1b3b46 0%, #24505d 45%, #3d6b70 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("hero.jpg");
  background-size: cover;
  background-position: center;
}

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

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

.buehne-kopf img { height: 42px; width: auto; display: block; }

.marke-name {
  font-family: var(--schrift-anzeige);
  font-size: 17px;
  letter-spacing: .03em;
}

.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 ---------------------------------- */

.suchflaeche {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--schatten-stark);
  padding: 22px;
}

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

.suchfelder input,
.suchfelder select {
  font-size: 17px;
  padding: 11px 12px;
}

.suchfelder button {
  margin-top: 0;
  width: auto;
  padding: 13px 26px;
  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; }

.trefferzeile {
  margin: 34px 2px 18px;
  font-size: 14px;
}

/* 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 {
  padding: 0;
  overflow: hidden;
  box-shadow: var(--schatten);
  margin-bottom: 26px;
}

.galerie { background: #eceae6; position: relative; }
.galerie .grossbild {
  display: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.galerie.hatBild .grossbild { display: block; }

.galerie .streifen {
  display: none;
  gap: 8px;
  padding: 8px;
  overflow-x: auto;
  background: var(--flaeche);
}
.galerie .streifen.sichtbar { display: flex; }
.galerie .streifen img {
  width: 96px; height: 64px; object-fit: cover;
  border-radius: var(--radius-klein);
  cursor: pointer; flex: 0 0 auto;
  opacity: .78; transition: opacity .15s;
}
.galerie .streifen img:hover,
.galerie .streifen img.aktiv { opacity: 1; }

.zimmerkopf { padding: 26px 26px 6px; }

.zimmertitel {
  font-family: var(--schrift-anzeige);
  font-size: 27px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -.01em;
  color: var(--text);
  margin: 0 0 4px;
}

.zimmerzeile { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }

.beschreibung { margin-top: 14px; font-size: 15.5px; max-width: 62ch; }

.merkmale {
  list-style: none; display: flex; flex-wrap: wrap; gap: 7px;
  padding: 0; margin: 16px 0 0;
}
.merkmale li {
  font-size: 13px; color: var(--text-schwach);
  border: 1px solid var(--linie); border-radius: 100px; padding: 4px 12px;
}

/* Raten ------------------------------------------------------------- */

.raten { padding: 10px 26px 26px; }

.ratenkopf {
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-schwach); font-weight: 600;
  margin: 18px 0 2px;
}

.rate {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 18px 0; border-top: 1px solid var(--linie);
}
.rate.hervor { background: linear-gradient(90deg, var(--gut-grund), transparent 60%); }

.ratelinks { flex: 1 1 auto; min-width: 0; }
.ratename { font-weight: 600; font-size: 16.5px; }
.stornotext { font-size: 13px; margin-top: 6px; }

.abzeichen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.marke {
  font-size: 11.5px; border-radius: 100px; padding: 3px 10px;
  white-space: nowrap; font-weight: 600; letter-spacing: .01em;
}
.marke.gut { background: var(--gut-grund); color: var(--gut); }
.marke.warn { background: var(--warn-grund); color: var(--warn-text); }
.marke.neutral { background: var(--grund); color: var(--text-schwach); }

.raterechts { flex: 0 0 auto; text-align: right; }
.ratepreis { font-size: 23px; font-weight: 600; letter-spacing: -.01em; }

a.knopf {
  display: inline-block; margin-top: 12px; padding: 11px 22px;
  font-weight: 600; text-decoration: none;
  color: var(--akzent-text); background: var(--akzent);
  border-radius: var(--radius-klein);
}
a.knopf:hover { background: var(--akzent-hell); }

.mehrRaten {
  display: block; width: 100%; margin-top: 16px;
  background: none; color: var(--akzent);
  border: 1px solid var(--linie); font-weight: 600;
  padding: 11px 16px;
}
.mehrRaten:hover { background: var(--grund); filter: none; }

/* ==================================================================
   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 img { height: 40px; width: auto; display: block; }
.kopf .haus { font-size: 15px; font-weight: 600; letter-spacing: .02em; }

[hidden] { display: none !important; }

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

@media (max-width: 700px) {
  .rate { flex-direction: column; align-items: stretch; gap: 12px; }
  .raterechts { text-align: left; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
  .raterechts a.knopf { margin-top: 8px; width: 100%; text-align: center; }
  .zimmerkopf { padding: 22px 20px 4px; }
  .raten { padding: 8px 20px 22px; }
}

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