/* =============================================================
   FIXES TO THE PILOT'S OWN STYLESHEET
   css/site.css is Martin's stylesheet with one change (the font path,
   spec F2); the one place where his pilot scrolled sideways is
   corrected here instead (spec F11). Part of the site, not of the
   Pronta tool layer, so it is loaded right after site.css and stays
   when tool.css and tool.js are removed. The rule acts only below the
   width at which the pilot overflows (measured); above it the page is
   pixel-identical to the pilot.
   ============================================================= */

/* Datenschutz: the heading "Datenschutzerklärung" is one word at 40px
   whose right edge lies at 407.02px; up to a 406px viewport it ran past
   the screen (87px at 320). It may break there, with a hyphen where the
   browser knows German hyphenation. From 407px on the pilot does not
   scroll and the rule does not apply (406.98, not 406.99: Chromium
   rounds the query to its layout unit, and 406.99 still matched 407). */
@media (max-width: 406.98px) {
  .legal-page h1 {
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
  }
}

/* Template only (spec 2026-09-25-pensionmeier-neutral-template.md, P-C6):
   the template has no phone number and no address yet. "Anrufen" in the
   contact bar is shown disabled (exempt from the contrast rule as a
   disabled control, WCAG 1.4.3); number and address elsewhere are plain
   placeholders without a link target. The form never sends; its notice
   uses the pilot's own tokens, so it follows the chosen palette. */
a[aria-disabled="true"] {
  cursor: default;
}

.mobile-actionbar a[aria-disabled="true"] {
  color: var(--site-ink-soft);
  opacity: 0.6;
}

.form-notice {
  margin: 1.25rem 0 0;
  padding: 1rem;
  border: 1px solid var(--site-line);
  border-radius: 4px;
  background: var(--site-canvas);
  color: var(--site-ink);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Location map (P-C10): OpenStreetMap tiles need the visible credit
   "© OpenStreetMap-Mitwirkende" (ODbL). It shares the map's grid cell
   (top left corner of the map in both layouts), so nothing outside the
   figure moves; the figure is not positioned, since position:relative
   there changed the anti-aliasing of the caption (measured). 12px text,
   24px target. A photo swapped in through the tool layer is no map: the
   credit goes with the map. */
.travel-location img {
  grid-area: 1 / 1;
}

.map-credit {
  grid-area: 1 / 1;
  align-self: start;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-block-size: 24px;
  margin: 0.5rem;
  padding: 0 0.5rem;
  border-radius: 4px;
  background: color-mix(in srgb, var(--site-surface) 90%, transparent);
  color: var(--site-ink);
  font-size: 0.76rem;
  text-decoration: underline;
}

.travel-location img[src^="data:"] ~ .map-credit {
  display: none;
}
