/*
 * Terminbuchung. Farben und Rundungen wie die Webseite (siehe Marke-und-DVAG-Rahmen).
 * Gold als Schrift auf Weiß nur #7d6a15, Gold pur nur als Fläche mit Anthrazit-Schrift.
 */
.tb-wrap { max-width: 64rem; margin-inline: auto; }

.tb-karte {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: #fff;
  border: 1px solid #e8e8e6;
  border-radius: 1.75rem;
  box-shadow: 0 24px 60px -45px rgba(26, 26, 24, 0.5);
  overflow: hidden;
}
@media (min-width: 900px) {
  .tb-karte { grid-template-columns: 19rem minmax(0, 1fr); }
}
.tb-info, .tb-haupt { min-width: 0; }
/* Auf dem Handy zuerst die Auswahl, darunter die Beschreibung. */
@media (max-width: 899px) {
  .tb-haupt { order: -1; }
}

.tb-info {
  padding: 2rem 1.75rem;
  background: #2b2b2b;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
  line-height: 1.6;
}
.tb-info p { margin: 0 0 1rem; }
.tb-info-name { color: #e3c95f; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.75rem; }
.tb-info-titel { color: #fff; font-size: 1.75rem; font-weight: 800; margin: 0 0 1rem; letter-spacing: -0.01em; }
.tb-merk { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 0.4rem; color: #fff; font-weight: 700; }
.tb-icon { display: inline-block; width: 1.4rem; color: #e3c95f; }

.tb-haupt { padding: 1.5rem 1.1rem; color: #454545; min-height: 24rem; }
@media (min-width: 560px) { .tb-haupt { padding: 2rem 1.75rem; } }
@media (min-width: 900px) { .tb-haupt { padding: 2.25rem 2.25rem; } }

.tb-schritt { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
#tb-s1 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  .tb-mit-zeiten #tb-s1 { grid-template-columns: minmax(0, 1fr) 11rem; }
}
.tb-schritt[hidden], [hidden] { display: none !important; }

/* Kalender */
.tb-monat-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.tb-monat-kopf h3 { margin: 0; font-size: 1.1rem; font-weight: 800; color: #2b2b2b; }
.tb-pfeil {
  width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 1px solid #e8e8e6; background: #fff;
  font-size: 1.4rem; line-height: 1; cursor: pointer; color: #2b2b2b;
}
.tb-pfeil:hover:not(:disabled) { background: #f4f4f3; }
.tb-pfeil:disabled { opacity: 0.3; cursor: default; }

.tb-wochentage, .tb-tage { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.3rem; text-align: center; }
.tb-wochentage { font-size: 0.75rem; font-weight: 700; color: #6f6c64; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.tb-tag {
  aspect-ratio: 1; min-width: 0; padding: 0; border-radius: 0.9rem; border: 0; background: transparent;
  font: inherit; font-weight: 700; color: #bcbab3; cursor: default;
}
.tb-tag:not(:disabled) { color: #2b2b2b; background: #f4f4f3; cursor: pointer; }
.tb-tag:not(:disabled):hover { background: #ece9dc; }
.tb-tag.tb-aktiv { background: #2b2b2b; color: #fff; }
.tb-tag.tb-heute { box-shadow: inset 0 -3px 0 #c8aa22; }
.tb-tag:focus-visible, .tb-zeit:focus-visible, .tb-pfeil:focus-visible, .tb-link:focus-visible { outline: 3px solid #96780f; outline-offset: 2px; }
.tb-zone { font-size: 0.8rem; color: #6f6c64; margin: 1rem 0 0; }

/* Uhrzeiten */
.tb-zeiten h3 { margin: 0 0 0.75rem; font-size: 1rem; font-weight: 800; color: #2b2b2b; }
.tb-zeiten-liste { display: grid; gap: 0.5rem; max-height: 22rem; overflow-y: auto; padding-right: 0.25rem; }
.tb-zeit {
  min-height: 2.9rem; border: 1px solid #c8aa22; border-radius: 0.9rem; background: #fff;
  font: inherit; font-weight: 700; color: #2b2b2b; cursor: pointer;
}
.tb-zeit:hover { background: #c8aa22; }

/* Formular */
.tb-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: #7d6a15; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
.tb-gewaehlt { margin: 0; font-size: 1.25rem; font-weight: 800; color: #2b2b2b; }
.tb-zeile2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 520px) { .tb-zeile2 { grid-template-columns: 1fr 1fr; } }
.tb-feld { display: grid; gap: 0.4rem; font-weight: 700; color: #2b2b2b; font-size: 0.95rem; }
.tb-optional { font-weight: 400; color: #6f6c64; }
.tb-feld input, .tb-feld textarea {
  font: inherit; font-weight: 400; padding: 0.85rem 1rem; border: 1px solid #d9d6cb; border-radius: 0.9rem;
  background: #fff; color: #2b2b2b; width: 100%; box-sizing: border-box;
}
.tb-feld input:focus-visible, .tb-feld textarea:focus-visible { outline: 3px solid #96780f; outline-offset: 1px; border-color: #96780f; }
.tb-datenschutz { font-size: 0.85rem; color: #6f6c64; margin: 0; }
.tb-datenschutz a { color: #7d6a15; }
.tb-honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tb-absenden { justify-self: start; }
.tb-absenden:disabled { opacity: 0.6; cursor: wait; }

.tb-meldung { margin: 0; color: #6f6c64; }
.tb-meldung--fehler { color: #9b2c1f; font-weight: 700; }

/* Fertig */
.tb-fertig { text-align: left; }
.tb-fertig h3 { margin: 0; font-size: 1.75rem; font-weight: 800; color: #2b2b2b; }
.tb-fertig p { margin: 0; }
.tb-fertig-zeit { font-size: 1.2rem; font-weight: 800; color: #7d6a15; }
.tb-haken {
  width: 3.25rem; height: 3.25rem; border-radius: 999px; background: #c8aa22; color: #2b2b2b;
  display: grid; place-items: center; font-size: 1.6rem; font-weight: 800;
}

/* Absagen und Verwaltung */
.tb-einzel { max-width: 40rem; margin-inline: auto; background: #fff; border: 1px solid #e8e8e6; border-radius: 1.75rem; padding: 2rem 1.75rem; box-shadow: 0 24px 60px -45px rgba(26, 26, 24, 0.5); color: #454545; }
.tb-einzel h2 { margin-top: 0; color: #2b2b2b; }
.tb-knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.tb-knopf-zweit {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.5rem; border-radius: 999px;
  border: 1px solid #2b2b2b; background: #fff; color: #2b2b2b; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
}
.tb-knopf-zweit:hover { background: #f4f4f3; }

/* Verwaltung */
.tb-breit { max-width: 76rem; }   /* seit 26.11.2026 alle Reiter so breit wie Termin anlegen */
.tb-nav { max-width: 76rem; margin: 0 auto 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.tb-nav a { padding: 0.55rem 1.1rem; border-radius: 999px; border: 1px solid #d9d6cb; background: #fff; color: #2b2b2b; font-weight: 700; text-decoration: none; font-size: 0.92rem; }
.tb-nav a.aktiv { background: #2b2b2b; color: #fff; border-color: #2b2b2b; }
.tb-abmelden { margin-left: auto; }
.tb-form { display: grid; gap: 1.1rem; }
.tb-hinweis { color: #6f6c64; font-size: 0.92rem; margin: 0 0 0.5rem; }
.tb-hinweis code, .tb-einzel code { background: #f4f4f3; padding: 0.1rem 0.35rem; border-radius: 0.35rem; font-size: 0.85em; }
.tb-h-klein { font-size: 1.1rem; margin: 1.5rem 0 0.25rem; color: #2b2b2b; }
.tb-meldung--ok { color: #2f6b2f; font-weight: 700; }
.tb-warn { color: #9b2c1f; }
.tb-buchung { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; padding: 1rem 0; border-top: 1px solid #e8e8e6; }
.tb-buchung > div { display: grid; gap: 0.15rem; }
.tb-buchung a { color: #7d6a15; }
.tb-buchung em { color: #6f6c64; }
.tb-alt { opacity: 0.75; }
.tb-tabelle { display: grid; gap: 0.5rem; }
.tb-tabzeile { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; padding: 0.4rem 0; border-top: 1px solid #f0efea; }
.tb-tabkopf { font-size: 0.8rem; color: #6f6c64; text-transform: uppercase; letter-spacing: 0.05em; border-top: 0; }
.tb-tabname { min-width: 8.5rem; font-weight: 700; color: #2b2b2b; }
.tb-tabzeile > span:not(.tb-tabname):not(.tb-paar) { min-width: 8.5rem; }
.tb-paar { display: inline-flex; align-items: center; gap: 0.4rem; }
.tb-paar input { width: 5rem; font: inherit; padding: 0.55rem 0.6rem; border: 1px solid #d9d6cb; border-radius: 0.7rem; text-align: center; }
.tb-regeln { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tb-regeln { grid-template-columns: 1fr 1fr; } }
.tb-behalten { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; font-weight: 700; color: #2b2b2b; }
.tb-behalten small { font-weight: 400; color: #6f6c64; }
.tb-feld select { font: inherit; padding: 0.85rem 1rem; border: 1px solid #d9d6cb; border-radius: 0.9rem; }
.tb-einzel input[type=checkbox], .tb-einzel input[type=radio] { width: 1.25rem; height: 1.25rem; accent-color: #96780f; }

/* Die Seiten-CSS färbt in ".hell" alle Überschriften und Absätze (.hell h2, .hell p).
   Diese Regeln sind stärker, damit der dunkle Kasten und die Karten lesbar bleiben. */
.hell .tb-karte .tb-info p { color: rgba(255, 255, 255, 0.78); }
.hell .tb-karte .tb-info .tb-info-name { color: #e3c95f; }
.hell .tb-karte .tb-info h2.tb-info-titel { color: #fff; }
.hell .tb-karte .tb-merk { color: #fff; }
.hell .tb-karte h3, .hell .tb-einzel h2, .hell .tb-einzel h3 { color: #2b2b2b; }
.hell .tb-karte p, .hell .tb-einzel p { color: #454545; }
.hell .tb-karte p.tb-zone, .hell .tb-karte p.tb-datenschutz, .hell .tb-einzel p.tb-hinweis { color: #6f6c64; }
.hell .tb-karte p.tb-meldung--fehler, .hell .tb-einzel p.tb-meldung--fehler { color: #9b2c1f; }
.hell .tb-einzel p.tb-meldung--ok { color: #2f6b2f; }
.hell .tb-karte p.tb-fertig-zeit { color: #7d6a15; }
.hell .tb-karte .tb-gewaehlt { color: #2b2b2b; }

/* Schlanker Kopf für die Verwaltung */
.tb-adminkopf { background: #2b2b2b; padding: 7.5rem 0 2rem; }
.tb-adminkopf .container { max-width: 56rem; }
.tb-adminkopf h1 { margin: 0.25rem 0 0; color: #fff; font-size: 2rem; font-weight: 800; letter-spacing: -0.01em; }

/* Schlanker Kopf der Buchungsseite: der Kalender soll sofort im Bild stehen.
   Die Regeln stehen nach style.css und sind spezifischer als die der Seite. */
.hero.hero--schmal .hero-content { min-height: 0; padding-top: calc(78px + 1rem); padding-bottom: 1.5rem; gap: 0; }
.hero.hero--schmal .hero-text { padding-bottom: 0; }
.hero.hero--schmal .hero-title { margin-top: 0.5rem; font-size: clamp(1.35rem, 5.2cqi, 2.1rem); max-width: none; }
.hero.hero--schmal .hero-title .zeile { display: inline; }
.hero.hero--schmal .hero-sub { margin-top: 0.75rem; font-size: 1rem; }
.hero.hero--schmal + .section { padding-top: 2rem; }

/* Foto im dunklen Feld */
.tb-foto { display: block; width: 6rem; height: 6rem; border-radius: 50%; object-fit: cover; border: 3px solid #c8aa22; margin: 0 0 1.1rem; }

/* Pflichtfelder */
.tb-stern { color: #7d6a15; font-weight: 800; }
.hell .tb-karte p.tb-pflicht { font-size: 0.85rem; color: #6f6c64; margin: 0; }
@media (max-width: 599px) {
  .hero.hero--schmal .hero-title .zeile { display: block; }
}

/* Unterpunkte innerhalb eines Werkzeugs */
.tb-sub { max-width: 76rem; margin: -0.4rem auto 1.25rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }
.tb-sub a { padding: 0.3rem 0; color: #6f6c64; font-weight: 700; font-size: 0.92rem; text-decoration: none; border-bottom: 2px solid transparent; }
.tb-sub a.aktiv { color: #2b2b2b; border-bottom-color: #c8aa22; }
.tb-sub a:hover { color: #2b2b2b; }

/* Kalender-Auswahl: Name links, die beiden Auswahlfelder in festen Spalten, mittig unter der Überschrift */
.tb-tabelle--kal .tb-tabzeile { display: grid; grid-template-columns: minmax(0, 1fr) 4.6rem 4.6rem; gap: 0.5rem; align-items: center; padding: 0.7rem 0; }
.tb-tabelle--kal .tb-tabname { min-width: 0; overflow-wrap: anywhere; }
.tb-tabelle--kal .tb-tabzeile > span:not(.tb-tabname) { min-width: 0; text-align: center; }
.tb-tabelle--kal .tb-tabkopf { padding: 0 0 0.6rem; font-size: 0.64rem; letter-spacing: 0; line-height: 1.3; }
.tb-tabelle--kal .tb-tabkopf .tb-tabname { min-width: 0; }
.tb-tabelle--kal input[type=checkbox], .tb-tabelle--kal input[type=radio] { width: 1.4rem; height: 1.4rem; vertical-align: middle; cursor: pointer; }
@media (min-width: 640px) {
  .tb-tabelle--kal .tb-tabzeile { grid-template-columns: minmax(0, 1fr) 10rem 10rem; }
  .tb-tabelle--kal .tb-tabkopf { font-size: 0.72rem; letter-spacing: 0.05em; }
}

/* Buchungsseite ohne eigenen Kopfbereich: die feste Kopfzeile mit Logo ist 78 px hoch */
.section.tb-ohnekopf { padding-top: calc(78px + 1.75rem); padding-bottom: 3rem; }
.hell .tb-wrap p.tb-verschieben { margin: 0 0 1rem; padding: 0.85rem 1.1rem; border-radius: 1rem; background: #fff; border: 1px solid #e8e8e6; color: #454545; font-weight: 700; }

/* Buchungsliste: zwei Knöpfe untereinander, Löschen in zurückhaltendem Rot */
.tb-aktionen { display: grid; gap: 0.5rem; justify-items: stretch; }
.tb-aktionen form { margin: 0; }
.tb-aktionen .tb-knopf-zweit { width: 100%; justify-content: center; }
.tb-knopf-loeschen { border-color: #9b2c1f; color: #9b2c1f; }
.tb-knopf-loeschen:hover { background: #fbefed; }

/* ---------------------------------------------------------------- Start (Hauptseite der Verwaltung) */
.ds-rahmen { margin-inline: auto; }
.ds { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
.ds > *, .ds-weiter > * { min-width: 0; }

.ds-hinweis { display: flex; gap: 0.9rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 0.9rem 1.2rem; border-radius: 1rem; background: #fbeeea; border: 1px solid #e9b3a9; }
.hell .ds-hinweis p { margin: 0; color: #7a1f13; font-weight: 700; }
.ds-hinweis a { color: #7a1f13; font-weight: 700; }

.ds-karte { background: #fff; border: 1px solid #e8e8e6; border-radius: 1.4rem; padding: 1.4rem 1.4rem 1rem; box-shadow: 0 24px 60px -45px rgba(26, 26, 24, 0.5); color: #454545; }
.hell .ds-karte h2 { margin: 0 0 0.6rem; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #6f6c64; }
.ds-weiter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
.ds-zeile { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.8rem 0; border-top: 1px solid #f0efea; }
.ds-zeile > div:first-child { min-width: 0; }
/* Ohne Überschrift: oberste Zeile(n) ohne Trennlinie */
.ds-karte > .ds-weiter:first-child > .ds-zeile:nth-child(-n+2) { border-top: 0; padding-top: 0.2rem; }
.ds-zeile strong { display: block; color: #2b2b2b; }
.ds-zeile small { display: block; color: #6f6c64; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-mini { display: flex; gap: 0.4rem; flex-shrink: 0; }
.ds-mini button, .ds-mini a { display: inline-flex; align-items: center; justify-content: center; min-height: 2.5rem; padding: 0 0.85rem; border-radius: 999px; border: 1px solid #d9d6cb; background: #fff; color: #2b2b2b; font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; text-decoration: none; }
.ds-mini button:hover, .ds-mini a:hover { border-color: #2b2b2b; }
.ds-mini .ds-wa { background: #2b2b2b; color: #fff; border-color: #2b2b2b; }

.tb-zurueck { display: none; }
@media (max-width: 900px) {
  .ds-weiter { grid-template-columns: minmax(0, 1fr); }
  .ds-karte > .ds-weiter:first-child > .ds-zeile:nth-child(2) { border-top: 1px solid #f0efea; padding-top: 0.8rem; }
}
@media (max-width: 760px) {
  .ds-karte { padding: 1.15rem 1.1rem 0.8rem; border-radius: 1.2rem; }
  .ds-zeile { flex-wrap: wrap; gap: 0.5rem; }
  .ds-zeile > div:first-child { flex: 1 1 100%; }
  .ds-mini button, .ds-mini a { padding: 0 1rem; }
  /* Am Handy: auf dem Start alle Reiter, in den Werkzeugen nur "‹ Start" */
  .tb-nav:not(.tb-nav--start) a:not(.tb-nav-start) { display: none; }
  .tb-nav:not(.tb-nav--start) .tb-zurueck { display: inline; }
  .tb-adminkopf { padding: 6.25rem 0 1.4rem; }
  .tb-adminkopf h1 { font-size: 1.6rem; }
  .hell--grau:has(.ds-rahmen) { padding-top: 1.5rem; }
}
