/* anfrage · the „Termin" panel on every page (2026-12-01): three real rows, then the appointment request form
   (js/core/anfrage.js, markup by inject_site.py). The rr- rules are the homepage's reviewed call-back form
   (v8-next/blocks/95-termin.css, which this file replaces), unchanged; v8's panel sheet and motion stay. */

/* the head stays on screen while the sheet scrolls, so „Schließen" is always one tap away */
.panel { overscroll-behavior: contain; scroll-padding-top: 96px; }
.panel .panel-top { position: sticky; top: -24px; z-index: 2; margin: -24px -36px 0; padding: 24px 36px 12px; background: var(--paper); }
.panel .panel-list { margin-top: 24px; }

/* ---------- the form ---------- */
.rr { margin-top: 48px; }
.rr-h { font-size: var(--fs-h4); line-height: 1.2; letter-spacing: var(--ls-h4); }
.rr-fields { display: grid; gap: 20px; margin-top: 20px; }
.rr-f { display: grid; gap: 6px; }
.rr-l { font-size: var(--fs-ui); line-height: var(--lh-ui); }
.rr-opt { color: var(--ink-64); }
.rr-i {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid transparent; border-radius: var(--r-sm);
  background: var(--mist); color: var(--ink); font: inherit; font-size: max(16px, var(--fs-body)); line-height: 1.5;   /* ≥ 16 px: no iOS zoom */
}
.rr-i:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 0; }
.rr-sel { appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231A1A18' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.rr-ta { min-height: 104px; resize: vertical; }
.rr-i[aria-invalid="true"] { border-color: var(--ink); }
.rr-err { font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--ink); font-weight: var(--fw-statement); }
.rr-err[hidden] { display: none; }

/* the honeypot: out of sight and out of the tab order, still in the form for bots */
.rr-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.rr-note { font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--ink-64); }
.rr-note + .rr-note { margin-top: -12px; }
.rr-note a { color: var(--blue-deep); }
.rr-go { justify-self: start; }
.rr-go:disabled { cursor: progress; }

.rr-status:empty { display: none; }
.rr-status { margin-top: 20px; font-size: var(--fs-body); line-height: var(--lh-body); outline-offset: 4px; }
.rr-status a { color: var(--blue-deep); white-space: nowrap; }
.rr.is-sent .rr-fields { display: none; }
.rr.is-sent .rr-status { padding: 20px 24px; border-radius: var(--r-sm); background: var(--mist); }

@media (max-width: 809.98px) {
  .panel { scroll-padding-top: 88px; }
  .panel .panel-top { margin: -24px calc(-1 * var(--side)) 0; padding: 24px var(--side) 12px; }
  .rr { margin-top: 40px; }
  /* the on-screen keyboard is open (95-termin.js reads visualViewport): the sheet fits the part of the screen left */
  .panel.rr-kb { margin: var(--rr-vv-top, 0px) 0 auto; max-height: var(--rr-vv-h, 100dvh); border-radius: 0; }
}

/* two short fields side by side where the sheet is wide enough */
.rr-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 479.98px) { .rr-pair { grid-template-columns: minmax(0, 1fr); } }
