/* Shared components, introduced on the Uhrschnell page: icons, the section head, store and text
   buttons and the closing band. Loaded on every page (scripts/render-shell.mjs, angular.json).
   Pages adapt them with their own, more specific selectors. */

/* One drawn arrow set replaces typographic arrows used as icons (square caps, 1.7 stroke like app-icon). */
.ua-icon { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -.18em; flex: none; }
.back .ua-icon { margin-right: .35em; }

/* Section head: the Manrope heading with its introduction below (at most 60ch), one rhythm. */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; font-size: var(--fs-h2); font-weight: 800; line-height: 1.15; }
.section-head p { margin: 0; max-width: 60ch; font-size: var(--fs-lead); line-height: 1.6; }
@media (min-width: 1024px) {
  .section-head { gap: 1rem; margin-bottom: 2rem; }
}

/* Store buttons: the primary action pair and an outlined second store. */
.store-actions { display: flex; flex-wrap: wrap; gap: .875rem; }
.store-button {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  min-height: 48px;
  padding: .75rem 1.15rem;
  background: var(--action);
  color: var(--on-action);
  border: 2px solid var(--action);
  box-shadow: 3px 3px 0 var(--pixel-shadow);
  text-decoration: none;
  font-weight: 750;
  font-size: 1rem;
  line-height: 1.2;
  transition: transform .18s ease-out, background-color .18s ease-out;
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: auto;
}
.store-button > span { min-width: 0; }
.store-button svg { width: 22px; height: 22px; flex: none; }
.store-button .ua-icon { width: 1rem; height: 1rem; margin-left: -.15rem; }
.store-button.google { background: var(--surface-card); color: var(--text); border-color: var(--control-border); }
/* A store without a URL in site/content/apps.mjs: render-shell marks its button `hidden`; a row whose
   store buttons are all hidden goes with them. */
.store-button[hidden], .store-actions:has(> .store-button):not(:has(> .store-button:not([hidden]))) { display: none; }
@media (hover: hover) {
  .store-button:hover { background: var(--action-hover); border-color: var(--action-hover); transform: translateY(-2px); }
  .store-button.google:hover { background: var(--surface-subtle); border-color: var(--control-border); }
}

/* Text button: an underlined accent action for secondary steps (link or button). */
.text-button {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .5rem .25rem;
  background: none;
  border: 0;
  color: var(--accent-text);
  font: 750 1rem/1.3 var(--font-ui);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  cursor: pointer;
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: auto;
}
/* Its label wraps inside the flex row (200 % text at 320px), so the icon stays on screen. */
.text-button > span { min-width: 0; }
@media (hover: hover) {
  .text-button:hover { text-decoration-thickness: 3px; }
}

/* Closing band: the last stop of a product page. A pine band (Nacht card at night) with ink border and
   8px offset, padded in steps (48 × 20 · 56 × 32 · 72 × 48px): sprite, Pixelify title at the h1 step
   with a signal-amber second line, parchment primary store button and outlined second store. */
.closing-band {
  margin-top: var(--section);
  padding: 3rem 1.25rem;
  background: var(--scene-pine);
  color: var(--on-image);
  line-height: 1.8;
  text-align: center;
  border: 3px solid var(--image-label);
  box-shadow: 8px 8px 0 var(--pixel-shadow);
}
:root[data-theme="dark"] .closing-band { background: var(--surface-card); }
.closing-band-art { width: 144px; height: 48px; image-rendering: pixelated; }
.closing-band h2 { margin: 1.25rem auto .75rem; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-title); line-height: 1.1; letter-spacing: -.025em; color: var(--on-image); }
.closing-band h2 span { color: var(--signal-amber); }
.closing-band > p { margin: 0 auto; max-width: 52ch; font-size: var(--fs-lead); line-height: 1.6; color: #f4ecd7; }
.closing-band .store-actions { justify-content: center; margin: 1.75rem 0 1.25rem; }
.closing-band .store-button { background: var(--on-image); color: var(--image-label); border-color: var(--on-image); box-shadow: 3px 3px 0 #0f1f1b; }
.closing-band .store-button.google { background: transparent; color: var(--on-image); border-color: var(--on-image); }
.closing-band .store-button:focus-visible { outline-color: var(--signal-amber); }
.closing-band > .closing-band-note { margin-top: .5rem; font-size: var(--fs-small); color: #e6dcc3; }
@media (hover: hover) {
  .closing-band .store-button:hover { background: var(--signal-amber); border-color: var(--signal-amber); }
  .closing-band .store-button.google:hover { background: #2c4f47; border-color: var(--on-image); }
}
@media (min-width: 640px) {
  .closing-band { padding: 3.5rem 2rem; }
}
@media (min-width: 1024px) {
  .closing-band { padding: 4.5rem 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .store-button { transition: none; }
  .store-button:hover { transform: none; }
}
@media (forced-colors: active) {
  .store-button { box-shadow: none; border-color: ButtonText; }
}
