/* Smile4U v8 · place template `ort` (/praxis/, /kontakt/; V8-BLOCKS-R1 §2.3; markup _tools/pages/ort.py, motion
   js/pages/p-ort.js). Concepts: the head is the address plate over the place; Öffnungszeiten is a station timetable
   (days and times set large, today marked by the lime rule); the form is the practice's message pad (one column of
   labelled lines on a paper card); Akut is one warning line. Tokens only; block 12's ledger and map and the 10a
   gallery keep their own CSS and are only placed and sized here. */
@import url("../blocks/12-anfahrt.css");      /* hours_ledger() + map_frame() (block 12 helpers, README §9.3) */

/* ================= /praxis/ head: the spread and the landing card ================= */
.page-ort .or-spread { margin-top: 48px; }
.page-ort .or-spread picture { display: block; width: 100%; height: 100%; }
.page-ort .or-spread-img { object-position: 50% 50%; }                 /* focal (.50, .50): towers and reflection */
.page-ort .or-spread-in { position: absolute; left: 0; right: 0; top: 48px; }
.page-ort .or-land { width: fit-content; max-width: 100%; transform-origin: 50% 100%; }
.page-ort .or-hcard { min-width: 0; }
/* land (R3, the hero's cards): from a tilted, lowered pose to flat on the photo, on the entrance spring after the
   ladder; resets when the card leaves below the viewport (rise engine). Purpose: the fact settles where it belongs. */
html.motion:not(.rm) .page-ort .or-land[data-rise]:not(.is-in) { transform: perspective(1200px) translate3d(0, 48px, 0) rotateX(8deg); }
html.motion:not(.rm) .page-ort .or-land[data-rise].is-in {
  transition: transform var(--dur-enter-long) var(--spring-enter) .35s, opacity .6s var(--ease-ui) .35s;
}
html.no-js .page-ort .or-land { display: none; }                       /* the status needs the clock; the week follows */

/* ================= Öffnungszeiten: the timetable ================= */
.page-ort .or-hours--mist { background: var(--mist); }
.page-ort .or-hours--paper { background: var(--paper); }
.page-ort .or-hours-head { grid-column: 1 / -1; min-width: 0; display: grid; gap: 16px; align-content: start; }
.page-ort .or-status { font-size: var(--fs-h5); line-height: var(--lh-h5); letter-spacing: var(--ls-h5); color: var(--ink); }
.page-ort .or-status:empty { display: none; }
.page-ort .or-hours-body { grid-column: 1 / -1; min-width: 0; margin-top: 32px; }
/* the ledger at the size of the section's job: 32 / 400 days, 500 times (block 12's weights), today's rule kept */
.page-ort .or-ledger { margin-top: 0; font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); }
.page-ort .or-ledger th, .page-ort .or-ledger td { padding: 4px 0; }
.page-ort .or-ledger th { padding-left: 20px; padding-right: 32px; }
.page-ort .or-ledger tr[aria-current] th::before { top: 12px; bottom: 12px; }
.page-ort .or-ledger tr + tr th, .page-ort .or-ledger tr + tr td { border-top: 4px solid transparent; }
/* T: the timetable under its heading, at full size; D: beside it, cols 6–12, every row on one line */
@media (min-width: 810px) {
  .page-ort .or-ledger { width: auto; }
  .page-ort .or-ledger td { white-space: nowrap; }
}
@media (min-width: 1200px) {
  .page-ort .or-hours-head { grid-column: 1 / 6; }
  .page-ort .or-hours-body { grid-column: 6 / -1; margin-top: 0; }
  .page-ort .or-ledger { width: 100%; }
  .page-ort .or-ledger th { white-space: nowrap; }
}
@media (max-width: 809.98px) {
  .page-ort .or-ledger { font-size: var(--fs-h5); line-height: var(--lh-h5); }
  .page-ort .or-ledger th { padding-left: 16px; padding-right: 16px; }
  .page-ort .or-ledger tr[aria-current] th::before { top: 8px; bottom: 8px; }
}

/* ================= /praxis/ gallery: the map as frame 1 ================= */
/* in the held frame: the map fills the 4:3 frame; the frame owns radius and clip, so the map's own rim goes */
.page-ort .gal-img--html { isolation: isolate; }                       /* the credit (z 2) stays inside frame 1: later pictures cover it */
.page-ort .gal-img--html .or-map { position: absolute; inset: 0; margin: 0; }
.page-ort .gal-img--html .or-map .an-art { height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
/* static twin (phones, no JS, reduced motion): the map figure keeps block 12's framing (4:3, 4:5 on phones, credit) */
.page-ort .gal-own--html { aspect-ratio: auto; overflow: visible; background: none; border-radius: 0; }
.page-ort .gal-own--html .or-map { margin: 0; }
.page-ort .or-more { margin-top: 4px; }

/* ================= links with the arrow (Technik, Akut) ================= */
.page-ort .or-link { display: inline-flex; align-items: baseline; gap: .3em; min-height: 44px; color: var(--blue-deep); text-decoration: none; }
.page-ort .or-link > span:first-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.page-ort .or-arrow { display: inline-grid; place-items: center; width: .9em; height: .9em; flex: none; transform: translateY(.12em); transition: transform var(--dur-ui) var(--ease-ui); }
.page-ort .or-arrow svg { width: 100%; height: 100%; }
@media (hover: hover) { .page-ort .or-link:hover .or-arrow { transform: translate(4px, .12em); } }   /* the link answers the pointer */
.page-ort .or-more .or-link { font-size: var(--fs-body); line-height: var(--lh-body); align-items: center; }

/* ================= /kontakt/ head: readout + buttons under the H1 ================= */
.page-ort .or-ro { margin-inline: -8px; }                              /* the readout panel's 8 px rim: rows align with the H1 and buttons */
.page-ort .or-ro .sk-ro-row { grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); }
.page-ort .or-ro a { color: var(--blue-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.page-ort .or-ro .sk-ro { scroll-margin-top: calc(var(--nav-bottom) + 16px); }
.page-ort .or-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.page-ort .or-call { gap: 10px; }
.page-ort .or-call-i { display: grid; place-items: center; width: 20px; height: 20px; flex: none; }
.page-ort .or-call-i svg { width: 20px; height: 20px; }
.page-ort .pgh-img { object-position: 40% 33%; }              /* foto-20 without JS: his face (.40, .33) in the frame */

/* ================= Nachricht: the mailbox and the phone (the form went 2026-11-10, V8-LEGAL row 23) ================= */
.page-ort .or-msg { background: var(--mist); }
.page-ort .or-msg-h { grid-column: 1 / -1; min-width: 0; }
.page-ort .or-mail { grid-column: 1 / -1; min-width: 0; margin-top: 24px; display: grid; gap: 16px; justify-items: start; }
.page-ort .or-mail-lead { max-width: 24em; font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); overflow-wrap: anywhere; }
.page-ort .or-mail-a { color: var(--blue-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.page-ort .or-mail-a:hover { color: var(--ink); }
.page-ort .or-hint { max-width: 34em; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-75); }
.page-ort .or-mail .or-ctas { margin-top: 8px; }
@media (min-width: 810px) {
  .page-ort .or-msg-h { grid-column: 1 / 6; }
  .page-ort .or-mail { grid-column: 6 / -1; margin-top: 0; }
}

/* ================= Akute Schmerzen: one line ================= */
.page-ort .or-akut { background: var(--paper); padding-block: calc(var(--sec-pad) * .6); }
.page-ort .or-akut-in { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 24px; font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); }
.page-ort .or-akut-h { font-weight: var(--fw-statement); }
.page-ort .or-akut-p .or-link { min-height: 0; }
