/* site.css: parts every page shares: menu with sliding line, reading dachshund bar, slim footer with paw trail,
   paw pointer, soft page change (cross-document view transitions) and the plain text pages (imprint, privacy, 404).
   Motion only via transform/opacity; with reduced motion only fades. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.page-text { background: var(--sand-light); }

/* ---------- R26-17 long dachshund reads along (thin fixed bar at the top) ---------- */
.reading-bar { position: sticky; top: 0; z-index: 30; padding: 5px var(--gutter) 3px; background: inherit; border-bottom: 1px solid var(--line); view-transition-name: reading-bar; }
.dackel { position: relative; max-width: var(--max-width); height: 24px; margin-inline: auto; color: var(--ink); --deck: var(--sand-light); }
.d-fill { fill: var(--deck); }
.d-hinten { position: absolute; left: 0; top: 0; width: 12.5px; height: 24px; overflow: visible; }
.d-mitte { position: absolute; left: 12.2px; top: 8.4px; width: 200px; height: 9.2px; border-block: 1.2px solid currentColor; background: var(--deck); transform-origin: 0 50%; transform: scaleX(0); }
.d-vorne { position: absolute; left: 12px; top: 0; width: 21.5px; height: 24px; overflow: visible; }

/* ---------- R25-15 menu with sliding line ---------- */
.site-header { padding: 8px var(--gutter) 0; }
.site-menu { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; width: fit-content; margin-inline: auto; }
.site-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); font: 500 16px/1 var(--sans); letter-spacing: 0.02em; text-decoration: none; }
.menu-line { position: absolute; left: 0; bottom: 6px; width: 1px; height: 2px; background: var(--ink); transform-origin: 0 0; pointer-events: none; view-transition-name: menu-line; }
.site-menu.is-ready .menu-line { transition: transform 400ms var(--ease-swap), opacity 200ms ease-out; }
.site-menu .menu-line.is-off { opacity: 0; }
html:not(.js) .site-menu a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }
html:not(.js) .menu-line { display: none; }

/* ---------- R25-18 slim footer with paw trail ---------- */
.site-footer { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; padding: 30px var(--gutter) 8px; background: var(--frame); color: var(--sand); font-size: 14px; line-height: 1.4; }
.site-footer p { margin: 0; }
.footer-brand { font: 600 15px/1.3 var(--serif); }
.footer-links { display: flex; gap: 16px; margin-left: auto; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-underline-offset: 0.22em; }
.paw-trail { position: absolute; left: var(--gutter); top: 6px; display: flex; gap: 14px; color: var(--sage); pointer-events: none; }
.paw-trail svg { width: 13px; height: 13px; transform: rotate(90deg); }
.paw-trail svg:nth-child(odd) { margin-top: 7px; }
html.js .paw-trail:not(.is-walking) svg { opacity: 0; transform: rotate(90deg) scale(0.6); }
html.js .paw-trail.is-walking svg { transition: opacity 400ms var(--ease-enter), transform 400ms var(--ease-enter); transition-delay: calc(var(--step, 0) * 120ms); }

/* ---------- R26-16 paw as mouse pointer, everywhere (only with a fine pointer, never on touch) ---------- */
@media (hover: hover) and (pointer: fine) {
  /* !important: the paw stays over links, buttons and the post window, above any cursor rule of the page styles */
  html, html * { cursor: url("../images/paw-cursor.svg") 9 7, url("../images/paw-cursor.png") 9 7, auto !important; }
  html.paw-follows, html.paw-follows * { cursor: none !important; }
  html.paw-follows.fenster-offen, html.paw-follows.fenster-offen * { cursor: url("../images/paw-cursor.svg") 9 7, url("../images/paw-cursor.png") 9 7, auto !important; }
}
.paw-follower { position: fixed; left: 0; top: 0; z-index: 1000; width: 32px; height: 32px; pointer-events: none; opacity: 0; transition: opacity 150ms ease-out; }
.paw-follower[hidden], .fenster-offen .paw-follower { display: none; }
.paw-follower img { display: block; width: 32px; height: 32px; transform-origin: 9px 7px; transition: transform 220ms var(--ease-enter); }
.paw-follower.is-visible { opacity: 1; }
.paw-follower.is-on-control img { transform: scale(1.12); }
.paw-follower.is-pressed img { transform: scale(0.82); transition-duration: 120ms; }

/* ---------- R25-19 soft page change between the pages ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-out 450ms var(--ease-swap) both; }
::view-transition-new(root) { animation: page-in 750ms var(--ease-enter) 150ms both; }
::view-transition-group(menu-line) { animation-duration: 700ms; animation-timing-function: var(--ease-swap); }
@keyframes page-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Text pages: imprint, privacy, 404 ---------- */
.text-page { max-width: 46rem; margin: 0 auto; padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(64px, 9vw, 120px); }
.text-page h1 { margin: 0 0 24px; font-size: clamp(36px, 5vw, 52px); font-weight: 800; letter-spacing: -0.01em; }
.text-page h2 { margin: 36px 0 8px; font-size: 24px; font-weight: 700; }
.text-page p { max-width: 66ch; margin: 0 0 12px; }
.text-page a { color: inherit; text-underline-offset: 0.22em; overflow-wrap: anywhere; }
.text-lead { font: 400 20px/1.45 var(--serif); }
.text-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.text-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.not-found-paws { display: flex; gap: 10px; color: var(--sky); }
.not-found-paws svg { width: 26px; height: 26px; transform: rotate(-20deg); }

/* ---------- Reduced motion: no transform animation, only fades ---------- */
@media (prefers-reduced-motion: reduce) {
  .site-menu.is-ready .menu-line { transition: opacity 200ms ease-out; }
  html.js .paw-trail:not(.is-walking) svg { transform: rotate(90deg); }
  html.js .paw-trail.is-walking svg { transition-property: opacity; }
  .paw-follower { display: none; }
  ::view-transition-group(*) { animation: none; }
  ::view-transition-old(root) { animation: fade-out 300ms ease both; }
  ::view-transition-new(root) { animation: fade-in 400ms ease both; }
}
