/* LAYA Buchungsbaustein. Nutzt die Farbvariablen aus site/src/styles/global.css (sitewide geladen). */
#buchung, #danke-status { --lb-rand: var(--linie, #e3e8e5); --lb-rot: #b42318; --lb-rot-hell: #fdecea; max-width: 560px; }
/* Platz für den Baustein freihalten, bis Kalender und Formular geladen sind: sonst springt der Inhalt darunter (CLS). */
#buchung { min-height: 100vh; }
#danke-status { min-height: 60vh; }
/* Gitter kommt erst nach der Verfügbarkeitsabfrage: Höhe von Kopfzeile und sechs Wochen freihalten. */
.lb-kopf + div { min-height: 290px; }
.lb-titel { margin: 0 0 1.25rem; }
.lb-untertitel { margin: 2rem 0 0.75rem; font-size: 1.15rem; }

/* Kalender, Extras und Formular als eigene Karten, wie im Rest der Seite */
.lb-kalender, .lb-extras, .lb-form {
  margin-bottom: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--lb-rand);
  border-radius: var(--radius, 1rem);
  background: var(--hell, #fff);
  box-shadow: var(--schatten, 0 1px 2px rgb(16 24 40 / 0.07), 0 10px 26px rgb(16 24 40 / 0.09));
}
.lb-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; }
.lb-monat { color: var(--gruen-900, #332a22); font-size: 1.05rem; }
.lb-nav {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--lb-rand);
  border-radius: 999px;
  background: var(--hell, #fff);
  color: var(--gruen-700, #7a4a28);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.lb-nav:hover:not(:disabled) { background: var(--gruen-50, #fbf6ee); border-color: var(--gruen-200, #d9c4a8); }
.lb-nav:disabled { opacity: 0.35; cursor: default; }
.lb-gitter { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.35rem; }
.lb-wt { padding-bottom: 0.4rem; text-align: center; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-leise, #4a5752); }
.lb-leer { min-height: 2.75rem; }
.lb-tag {
  min-height: 2.75rem;
  border: 1px solid var(--lb-rand);
  border-radius: 0.6rem;
  background: var(--hell, #fff);
  color: var(--text, #17231f);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.lb-tag:hover:not(:disabled) { border-color: var(--gruen-600, #8f5f3a); background: var(--gruen-50, #fbf6ee); }
.lb-tag:disabled { background: var(--sand-50, #fbf8f1); color: var(--text-leise, #4a5752); border-color: var(--lb-rand); cursor: not-allowed; }
.lb-tag.belegt { background: var(--lb-rot-hell); color: var(--lb-rot); text-decoration: line-through; border-color: rgb(180 35 24 / 0.25); }
.lb-tag.gewaehlt { background: var(--gruen-700, #7a4a28); border-color: var(--gruen-700, #7a4a28); color: var(--hell, #fff); box-shadow: 0 4px 10px rgb(122 74 40 / 0.3); }
.lb-auswahltext, .lb-hinweis { margin: 0.9rem 0 0; color: var(--text-leise, #4a5752); }
.lb-extras legend { padding: 0 0.35rem; font-weight: 800; color: var(--gruen-900, #332a22); }
.lb-extras label, .lb-haekchen {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.6rem 0;
  line-height: 1.45;
  cursor: pointer;
}
.lb-extras input, .lb-haekchen input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--gruen-700, #7a4a28);
}
.lb-haekchen a { color: var(--gruen-700, #7a4a28); font-weight: 700; }
.lb-preis:empty { display: none; }
.lb-preis:not(:empty) {
  margin-bottom: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--lb-rand);
  border-radius: var(--radius, 1rem);
  background: var(--sand-50, #fbf8f1);
  box-shadow: var(--schatten, 0 1px 2px rgb(16 24 40 / 0.07), 0 10px 26px rgb(16 24 40 / 0.09));
}
.lb-posten { list-style: none; margin: 0 0 0.6rem; padding: 0; display: grid; gap: 0.4rem; }
.lb-posten li { display: flex; justify-content: space-between; gap: 0.75rem; color: var(--text-leise, #4a5752); }
.lb-summe {
  margin: 0.4rem 0 0;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--lb-rand);
  color: var(--gruen-900, #332a22);
  font-weight: 800;
  font-size: 1.15em;
}
.lb-feld { display: block; margin: 0.9rem 0; }
.lb-feld span:first-child { display: block; margin-bottom: 0.35rem; color: var(--gruen-900, #332a22); font-weight: 700; }
.lb-feld input, .lb-feld textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--lb-rand);
  border-radius: var(--radius-klein, 0.625rem);
  background: var(--sand-50, #fbf8f1);
  color: var(--text, #17231f);
  font: inherit;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.lb-feld input:focus, .lb-feld textarea:focus {
  outline: none;
  border-color: var(--gruen-600, #8f5f3a);
  background: var(--hell, #fff);
  box-shadow: 0 0 0 3px var(--gruen-100, #ead9c0);
}
.lb-feldfehler, .lb-fehler { display: block; margin-top: 0.3rem; color: var(--lb-rot); font-size: 0.875rem; font-weight: 700; }
.lb-knopf {
  width: 100%;
  min-height: 3.25rem;
  margin-top: 0.5rem;
  padding: 0.9rem 1.5rem;
  border: 2px solid var(--akzent, #c2410c);
  border-radius: 0.75rem;
  background: var(--akzent, #c2410c);
  color: var(--hell, #fff);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgb(194 65 12 / 0.28);
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.lb-knopf:hover:not(:disabled) {
  background: var(--akzent-dunkel, #9a3412);
  border-color: var(--akzent-dunkel, #9a3412);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgb(194 65 12 / 0.36);
}
.lb-knopf:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }
.lb-meldung { min-height: 1.5em; margin: 0.75rem 0 0; color: var(--gruen-800, #4f3f2c); font-weight: 700; }
.lb-danke {
  margin: 0 0 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--lb-rand);
  border-radius: var(--radius, 1rem);
  background: var(--gruen-50, #fbf6ee);
  box-shadow: var(--schatten, 0 1px 2px rgb(16 24 40 / 0.07), 0 10px 26px rgb(16 24 40 / 0.09));
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.25rem;
}
.lb-danke dt { color: var(--text-leise, #4a5752); font-weight: 600; }
.lb-danke dd { margin: 0; color: var(--gruen-900, #332a22); font-weight: 700; }
.lb-feld textarea { width: 100%; }
.lb-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lb-kostenlos { margin: 0.6rem 0 0; color: var(--text-leise, #4a5752); font-weight: 700; font-size: 0.9rem; }
.lb-nummer { font-size: 1.3rem; letter-spacing: 0.02em; }
.lb-schritte {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding-left: 0;
  list-style: none;
  counter-reset: lbschritt;
}
.lb-schritte li { display: flex; align-items: flex-start; gap: 0.75rem; counter-increment: lbschritt; }
.lb-schritte li::before {
  content: counter(lbschritt);
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-top: 0.1rem;
  border-radius: 999px;
  background: var(--gruen-700, #7a4a28);
  color: var(--hell, #fff);
  font-size: 0.8rem;
  font-weight: 800;
}
.lb-extras[hidden] { display: none; }
/* Kauf reservieren: Auswahl der Dachbox mit Bild */
.kauf-wahl { display: grid; gap: 0.75rem; }
.kauf-option { display: grid; grid-template-columns: auto 5.5rem 1fr; gap: 0.9rem; align-items: center; padding: 0.75rem; border: 1px solid var(--linie, #e3d6c4); border-radius: 0.75rem; cursor: pointer; line-height: 1.45; }
.kauf-option:has(input:checked) { border-color: var(--akzent, #c2410c); box-shadow: 0 0 0 2px var(--akzent, #c2410c) inset; }
.kauf-option img { width: 5.5rem; height: 4rem; object-fit: cover; border-radius: 0.5rem; }
