/* Terminbuchung Veloman (v107): groß, ruhig, für das Handy gebaut.
   v117: größere Schrift für ältere Kunden (Grundschrift 19 px, nichts unter 16 px), dunkleres Grau,
   große Karten auf der ersten Seite, Leistungsknöpfe, Abgabefenster. */
:root {
  --p: #2e3192; --p2: #1769aa; --g: #1f9d55; --text: #1c2530; --grau: #46505c; --linie: #d5dbe5;
  --flaeche: #f3f5f9; --weiss: #fff; --rot: #c62828; --frei: #e8efff; --r: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 19px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--flaeche); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--p2); }
.tb { max-width: 980px; margin: 0 auto; padding: 0 16px 32px; }
.tb-kopf { display: flex; align-items: center; gap: 14px; padding: 16px 0 12px; }
.tb-logo img { height: 48px; width: auto; display: block; }
.tb-kopf-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tb-kopf-text strong { font-size: 1.5rem; line-height: 1.2; }
.tb-kopf-text span { color: var(--grau); font-size: 16px; }
.tb-zu { border: 0; background: var(--weiss); border-radius: 50%; width: 48px; height: 48px; font-size: 1.7rem; line-height: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,.12); cursor: pointer; flex: none; }
.tb-test { background: #fff4d6; border: 1px solid #f0c75e; border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; font-size: 16px; }
.tb-karte { background: var(--weiss); border-radius: var(--r); box-shadow: 0 1px 3px rgba(20,30,60,.08); padding: 20px; margin-bottom: 14px; }
.tb-karte h2 { font-size: 1.4rem; line-height: 1.25; margin: 0 0 14px; }
.tb-fuss { text-align: center; color: var(--grau); font-size: 16px; padding: 10px 0; }
.tb-fuss a { display: inline-block; padding: 4px 2px; }
.tb-klein { color: var(--grau); font-size: 17px; }
/* schmale Handys: etwas weniger Rand, damit 7 Kalendertage in groß nebeneinander passen */
@media (max-width: 420px) {
  .tb { padding: 0 10px 28px; }
  .tb-karte { padding: 16px 14px; }
  .tb-wt, .tb-tage { gap: 4px; }
}

/* Schritt 1: Terminart, große Karten, die den ersten Bildschirm füllen */
.tb-arten { display: grid; gap: 14px; }
@media (min-width: 640px) { .tb-arten { grid-template-columns: 1fr 1fr; } }
.tb-art { text-align: left; border: 2px solid var(--linie); background: var(--weiss); border-radius: var(--r); padding: 22px 20px; cursor: pointer;
  display: flex; gap: 16px; align-items: flex-start; min-height: 150px; transition: border-color .15s, box-shadow .15s; }
.tb-art:hover, .tb-art:focus-visible { border-color: var(--p); box-shadow: 0 2px 10px rgba(46,49,146,.15); outline: none; }
.tb-art .sym { font-size: 2.6rem; line-height: 1; }
.tb-art strong { display: block; font-size: 1.3rem; line-height: 1.25; margin-bottom: 6px; color: var(--p); }
.tb-art span { color: var(--text); font-size: 18px; line-height: 1.45; }

/* Auswahl-Leiste */
.tb-wahl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--frei); border-radius: 12px; padding: 12px 16px;
  margin-bottom: 14px; font-weight: 600; }
.tb-wahl .tb-link { margin-left: auto; font-weight: 400; }
.tb-link { background: none; border: 0; padding: 4px 0; color: var(--p2); text-decoration: underline; cursor: pointer; font-size: 17px; }

/* Kalender */
.tb-kal-raster { display: grid; gap: 18px; }
@media (min-width: 760px) { .tb-kal-raster { grid-template-columns: minmax(0, 500px) 1fr; gap: 28px; align-items: start; } }
.tb-monat { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tb-monat strong { font-size: 1.35rem; }
.tb-pfeil { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--linie); background: var(--weiss); font-size: 1.6rem; cursor: pointer; }
.tb-pfeil:disabled { opacity: .3; cursor: default; }
.tb-wt, .tb-tage { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.tb-wt div { text-align: center; color: var(--grau); font-size: 16px; font-weight: 600; padding: 4px 0; }
.tb-tag { aspect-ratio: 1 / 1; min-width: 0; width: 100%; border-radius: 50%; border: 0; background: transparent; font-size: 1.15rem; color: #9aa3ae;
  display: flex; align-items: center; justify-content: center; position: relative; }
.tb-tag.frei { background: var(--frei); color: var(--p); font-weight: 700; cursor: pointer; }
.tb-tag.frei:hover { background: #d6e2ff; }
.tb-tag.heute::after { content: ""; position: absolute; bottom: 5px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tb-tag.gewaehlt { background: var(--p); color: #fff; }
.tb-laedt { color: var(--grau); font-size: 17px; padding: 6px 0; min-height: 1.6em; }
.tb-zeiten-titel { font-weight: 700; font-size: 1.15rem; margin: 0 0 6px; }
.tb-zeiten-titel + .tb-klein { margin: 0 0 10px; }
.tb-zeiten { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.tb-zeit { border: 2px solid var(--p); color: var(--p); background: var(--weiss); border-radius: 12px; padding: 13px 4px; font-weight: 700;
  font-size: 1.2rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.tb-zeit:hover { background: var(--frei); }
.tb-zeit.gewaehlt { background: var(--p); color: #fff; }
/* v118: beim Verschieben die bisherige Uhrzeit */
.tb-zeit.eigen { border-style: dashed; border-color: var(--grau); color: var(--grau); background: var(--flaeche); cursor: default; padding: 7px 4px; }
.tb-zeit.eigen .eigen-text { font-size: 16px; font-weight: 600; }
.tb-gruppe { color: var(--grau); font-size: 16px; font-weight: 600; margin: 10px 0 4px; grid-column: 1 / -1; }

/* Formular */
.tb-feld { display: block; margin-bottom: 14px; }
.tb-feld > span { display: block; font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.tb-feld input, .tb-feld select, .tb-feld textarea { width: 100%; border: 1px solid #b9c2cf; border-radius: 10px; padding: 13px; background: #fff;
  font-size: 18px; }
.tb-feld textarea { min-height: 110px; resize: vertical; }
.tb-feld input:focus, .tb-feld select:focus, .tb-feld textarea:focus { outline: 2px solid var(--p2); border-color: transparent; }
.tb-reihe { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
.tb-reihe.sn { grid-template-columns: 1fr 110px; }
.tb-reihe.po { grid-template-columns: 120px 1fr; }
@media (max-width: 420px) { .tb-reihe:not(.sn):not(.po) { grid-template-columns: 1fr; } }
/* v118: Knöpfe behalten beim Anklicken ihre Größe (kein Häkchen, das Platz braucht) und bleiben einzeilig */
.tb-leistungen { display: flex; flex-wrap: wrap; gap: 10px; }
.tb-chip { border: 2px solid var(--p); background: var(--weiss); color: var(--p); border-radius: 999px; padding: 10px 16px; font-size: 17px;
  font-weight: 600; cursor: pointer; min-height: 48px; white-space: nowrap; }
@media (hover: hover) { .tb-chip:hover { background: var(--frei); } }
.tb-chip.an, .tb-chip.an:hover { background: var(--p); color: #fff; }
/* v118: fehlende Angaben rot markieren */
.tb-fehlt { outline: 2px solid var(--rot); outline-offset: 4px; border-radius: 10px; background: #fdecea; }
.tb-feld.tb-fehlt > span, .tb-haken.tb-fehlt span { color: var(--rot); }
.tb-feld.tb-fehlt input, .tb-feld.tb-fehlt textarea, .tb-feld.tb-fehlt select { border-color: var(--rot); }
.tb-haken.tb-fehlt { padding: 8px; }
.tb-haken.tb-fehlt input { outline: 2px solid var(--rot); }
.tb-wahl.tb-fehlt { outline-offset: 2px; }
.tb-haken { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0 14px; cursor: pointer; }
.tb-haken input { width: 26px; height: 26px; flex: none; margin-top: 2px; accent-color: var(--p); }
.tb-bekannt { background: #eef8f1; border: 1px solid #bfe3cb; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.tb-bekannt strong { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.tb-hinweise { background: #f7f8fb; border: 1px solid var(--linie); border-radius: 12px; padding: 14px 16px; margin: 4px 0 6px; }
.tb-hinweise ul { margin: 8px 0 0; padding-left: 22px; font-size: 18px; }
.tb-hinweise li { margin-bottom: 5px; }
.tb-falle { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.tb-knopf { display: block; width: 100%; border: 0; border-radius: 14px; background: var(--g); color: #fff; font-weight: 700; font-size: 1.2rem;
  padding: 18px; cursor: pointer; margin-top: 8px; text-align: center; text-decoration: none; }
.tb-knopf:disabled { opacity: .6; cursor: wait; }
.tb-knopf.zweit { background: var(--weiss); color: var(--p); border: 2px solid var(--p); }
.tb-knopf.rot { background: var(--rot); }
.tb-fehler { color: var(--rot); background: #fdecea; border-radius: 10px; padding: 12px 14px; margin-top: 10px; font-weight: 600; }
.tb-fertig { text-align: center; }
.tb-fertig .haken { width: 72px; height: 72px; border-radius: 50%; background: var(--g); color: #fff; font-size: 2.4rem; line-height: 72px; margin: 6px auto 12px; }
.tb-fertig h2 { font-size: 1.5rem; }
.tb-knoepfe { display: grid; gap: 10px; margin-top: 16px; }
@media (min-width: 640px) { .tb-knoepfe { grid-template-columns: 1fr 1fr; } }
/* v122: Knopf nach oben (Wunsch Vardan 20.11.2026) */
.tb-hoch { position: fixed; right: 16px; bottom: 20px; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--p); color: #fff;
  font-size: 1.7rem; line-height: 54px; text-align: center; padding: 0; box-shadow: 0 4px 14px rgba(0,0,0,.25); cursor: pointer; z-index: 50; }
.tb-hoch[hidden] { display: none; }
.tb-hoch:hover { background: var(--p2); }
.tb-hoch:focus-visible { outline: 3px solid var(--p2); outline-offset: 3px; }

/* v124: auf dem Computer kompakter, damit der ganze Kalender ohne Scrollen im Fenster steht (Wunsch Vardan 21.11.2026).
   Das Handy bleibt unverändert. */
@media (min-width: 760px) {
  .tb-kopf { padding: 10px 0 8px; }
  .tb-logo img { height: 40px; }
  .tb-kopf-text strong { font-size: 1.35rem; }
  .tb-zu { width: 42px; height: 42px; font-size: 1.5rem; }
  .tb-karte { padding: 14px 20px; margin-bottom: 10px; }
  .tb-wahl { padding: 8px 16px; margin-bottom: 10px; }
  .tb-kal-raster { grid-template-columns: minmax(0, 400px) 1fr; }
  .tb-monat { margin-bottom: 2px; }
  .tb-pfeil { width: 42px; height: 42px; font-size: 1.4rem; }
  .tb-wt div { padding: 2px 0; }
  .tb-wt, .tb-tage { gap: 4px 6px; }
  .tb-tag { aspect-ratio: auto; width: 44px; height: 44px; justify-self: center; font-size: 1.05rem; }
  .tb-tag.heute::after { bottom: 3px; }
  .tb-zeit { padding: 10px 4px; }
}
/* v128: niedrige Fenster am Computer (Wunsch Vardan 22.11.2026: im Fenster auf veloman.de musste man trotz v124 noch scrollen,
   gemessen 633 Pixel Inhalt bei 530 Pixel Fensterhöhe). Nur ab 760 Pixel Breite und bis 720 Pixel Höhe, das Handy bleibt unverändert. */
@media (min-width: 760px) and (max-height: 720px) {
  .tb { padding-bottom: 6px; }
  .tb-kopf { padding: 6px 0 4px; gap: 12px; }
  .tb-logo img { height: 34px; }
  .tb-kopf-text strong { font-size: 1.2rem; }
  .tb-zu { width: 38px; height: 38px; font-size: 1.4rem; }
  .tb-karte { padding: 10px 18px; margin-bottom: 6px; }
  .tb-wahl { padding: 4px 14px; margin-bottom: 6px; }
  .tb-kal-raster { grid-template-columns: minmax(0, 360px) 1fr; }
  .tb-monat { margin-bottom: 0; }
  .tb-pfeil { width: 36px; height: 36px; font-size: 1.25rem; }
  .tb-wt div { padding: 0; }
  .tb-wt, .tb-tage { gap: 2px 6px; }
  .tb-tag { width: 38px; height: 38px; font-size: 1rem; }
  .tb-tag.heute::after { bottom: 2px; width: 5px; height: 5px; }
  .tb-laedt { min-height: 0; padding: 2px 0 0; }
  .tb-laedt:empty { display: none; }
  .tb-zeiten-titel { font-size: 1.05rem; margin-bottom: 2px; }
  .tb-zeiten-titel + .tb-klein { margin-bottom: 4px; font-size: 16px; line-height: 1.35; }
  .tb-gruppe { margin: 4px 0 2px; }
  .tb-zeiten { gap: 8px; }
  .tb-zeit { padding: 7px 4px; font-size: 1.1rem; }
  .tb-fuss { padding: 2px 0; }
  .tb-fuss a { padding: 2px; }
}
/* sehr niedrige Fenster: Tage noch etwas kleiner, Anschrift im Kopf weglassen (steht in der Bestätigung) */
@media (min-width: 760px) and (max-height: 480px) {
  .tb-kopf-text span { display: none; }
  .tb-tag { width: 34px; height: 34px; }
  .tb-wt, .tb-tage { gap: 1px 6px; }
}
