/* Römerkastell – request form, thank-you page and phone page (/reservieren.php, /anfrage.php).
   Builds on the site's own assets/css/site.css (tokens, .band, .wrap, .formular, .ruf, .weg);
   every token has a fallback so the built-in frame still reads when site.css is missing.
   One column, 320 px without horizontal scroll, targets >= 44 px, errors in text + sign
   (never colour alone), no animation. No url() to another host, no @import. */

.anfrage { padding-block: var(--pad-s, 2.5rem) var(--pad-m, 3.5rem); }
.anfrage__in { max-width: 42rem; }
.anfrage__in > * + * { margin-top: 1.25rem; }
.anfrage h1 { overflow-wrap: anywhere; hyphens: auto; }

/* phone box, always next to the form */
.anfrage__telefon {
  padding: 0.9rem 1rem; border: 1px solid var(--tannengruen, #7F9E76); border-radius: 4px;
  font-size: var(--s-0, 1.0625rem);
}
.anfrage__telefon p { margin: 0; }
.anfrage__telefon p + p { margin-top: 0.35rem; color: var(--tannengruen, #7F9E76); }
.anfrage__nummer {
  display: inline-flex; align-items: center; min-height: 44px; font-size: var(--s-1, 1.2rem);
  font-variant-numeric: lining-nums tabular-nums; white-space: nowrap;
}

/* demo banner */
.anfrage__demo {
  border: 2px dashed var(--fassadengelb, #E2C793); padding: 0.65rem 0.8rem;
  color: var(--tischtuch, #F1EADB); font-weight: 500;
}
.anfrage__demo a { color: var(--fassadengelb, #E2C793); }

/* error summary (and the offline line): full 2px border 4.5:1 on the tint, 5.2:1 on the page;
   the heading/text and the "!" sign carry the meaning, not the colour */
.anfrage__fehler {
  padding: 0.9rem 1rem; border: 2px solid var(--giebelrot-hell, #D07A6A); border-radius: 4px;
  background: color-mix(in oklab, var(--giebelrot, #8E3A30) 22%, var(--waldrand, #1A2316));
}
.anfrage__fehler:focus { outline: 2px solid var(--giebelrot-hell, #D07A6A); outline-offset: 3px; }
.anfrage__fehlertitel { font-size: var(--s-1, 1.2rem); margin: 0; }
.anfrage__fehler ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.anfrage__fehler li + li { margin-top: 0.35rem; }
.anfrage__fehler a { color: var(--tischtuch, #F1EADB); display: inline-block; min-height: 44px; padding-block: 0.6rem; }

/* one field's message: sign + bold text */
.anfrage__feldfehler { display: flex; align-items: flex-start; gap: 0.45rem; font-size: var(--s-0, 1.0625rem); line-height: 1.35; }
.anfrage__zeichen {
  flex: none; display: inline-grid; place-items: center; width: 1.35em; height: 1.35em; margin-top: 0.05em;
  border-radius: 50%; background: var(--giebelrot-hell, #D07A6A); color: var(--waldrand, #1A2316);
  font-weight: 700; font-size: 0.85em; line-height: 1;
}
.anfrage .formular [aria-invalid="true"] { border: 2px solid var(--giebelrot-hell, #D07A6A); }

/* form */
.anfrage__form { max-width: none; }
/* WebKit sizes an implicit grid column to a select's longest option ("Catering / Lieferung …",
   "egal / andere Zeit – …"), which pushed the page sideways at 200 % text: pin the tracks. */
.anfrage .formular, .anfrage .formular__feld { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 35.99em) { .anfrage .formular__paar { grid-template-columns: minmax(0, 1fr); } }
/* WebKit paints a long selected option past the select's own box (page scrolls sideways at
   200 % text); paint containment keeps it inside the box, the focus outline still shows. */
.anfrage .formular select { contain: paint; }
.anfrage .formular input, .anfrage .formular select, .anfrage .formular textarea { display: block; min-width: 0; max-width: 100%; }
.anfrage .formular input[type="date"] { -webkit-appearance: none; appearance: none; min-height: 48px; }
.anfrage__falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.anfrage__keine { font-weight: 700; font-size: var(--s-0, 1.0625rem); }
.anfrage__offline {
  margin: 0; padding: 0.75rem 1rem; border: 2px solid var(--giebelrot-hell, #D07A6A); border-radius: 4px;
  background: color-mix(in oklab, var(--giebelrot, #8E3A30) 22%, var(--waldrand, #1A2316)); font-weight: 700;
}
.anfrage__offline[hidden] { display: none; }
.anfrage__offline a { color: var(--tischtuch, #F1EADB); }
.anfrage__senden { min-height: 56px; padding-inline: 1.6rem; }
.anfrage__senden[disabled] { opacity: 0.75; cursor: progress; }
@media (max-width: 30em) { .anfrage__senden { width: 100%; justify-self: stretch; } }

/* closed-days line above the date (US5) */
.anfrage__sperr { margin: 0; padding: 0.6rem 0.8rem; border: 1px solid var(--fassadengelb, #E2C793); font-weight: 500; }

/* thank-you and phone page */
.anfrage__zusammenfassung { font-size: var(--s-1, 1.2rem); font-weight: 500; overflow-wrap: anywhere; }
.anfrage__gross { font-size: var(--s-2, 1.45rem); line-height: 1.25; }
.anfrage__viele { font-weight: 700; }
.anfrage__anruf { margin-top: 1.5rem; }
.anfrage__ruf { min-height: 56px; font-size: var(--s-1, 1.2rem); justify-content: center; }
@media (max-width: 30em) { .anfrage__ruf { display: flex; width: 100%; } }

/* built-in frame (only when the site's reservieren.html is missing) */
.anfrage-rahmen { padding: 1rem 0; border-bottom: 1px solid var(--tannengruen, #7F9E76); }

@media (prefers-reduced-motion: reduce) {
  .anfrage *, .anfrage *::before, .anfrage *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .anfrage__zeichen { forced-color-adjust: none; border: 1px solid CanvasText; background: Canvas; color: CanvasText; }
}
