/* Gemeinsame Basis aller Showcases. Farben und Schriften setzt jede Showcase selbst. */
@import url("fonts/fonts.css");

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-underline-offset: 0.2em; }

:focus-visible { outline: 3px solid var(--focus, #2b59ff); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: 999px; background: var(--ink, #111); color: var(--ground, #fff);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Kennzeichnung „Konzept“: auf jeder Showcase sichtbar */
.concept-badge {
  position: fixed; left: 50%; bottom: 16px; z-index: 90; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  background: rgba(17, 17, 17, 0.86); color: #fff;
  font: 500 15px/1.2 Inter, system-ui, sans-serif; letter-spacing: 0.01em;
  white-space: nowrap; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.45);
}
.concept-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ffd23f; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .concept-badge { background: rgba(17, 17, 17, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
/* Rückweg zur Demos-Seite (22.11.2026): Die Pille trägt links den Link, rechts die Kennzeichnung.
   Ohne .has-back (ältere Seiten) bleibt sie reiner Text mit Punkt davor. */
.concept-badge.has-back { gap: 16px; }  /* Martin, 23.11.2026: Pille größer (Schrift 12 → 15 px) */
.concept-badge.has-back::before { content: none; }
.concept-back {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 600; text-decoration: none;
}
.concept-back::after { content: ""; position: absolute; inset: -14px -8px -14px -20px; }  /* Tippfläche 44 px hoch */
.concept-back:focus-visible { outline: 2px solid #ffd23f; outline-offset: 4px; }
.concept-note {
  display: inline-flex; align-items: center;
  padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, 0.28); color: rgba(255, 255, 255, 0.82);
}
.concept-note::before { content: ""; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: #ffd23f; }
.concept-brand { white-space: pre; }
@media (hover: hover) {
  .concept-back:hover { text-decoration: underline; text-underline-offset: 0.25em; }
}
@media (max-width: 479px) {
  .concept-brand { display: none; }
}

/* Masked Reveal (einzige Textenthüllung). Standard: sichtbar.
   Versteckt nur, solange html.reveal-pending gesetzt ist (Sicherung im <head>). */
html.reveal-pending [data-masked-reveal] { visibility: hidden; }
[data-masked-reveal].is-split { visibility: visible; }
[data-masked-reveal] .word-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
[data-masked-reveal] .word { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.reveal-pending [data-masked-reveal] { visibility: visible; }
}
