/* K&P Dynamics — gemeinsame Basis für alle drei Entwürfe.
   Schriften selbst gehostet (keine Google-CDN, keine Cookies). Farben/Typo setzt jede Variante selbst. */

@font-face { font-family: "Archivo"; src: url("fonts/archivo-var.woff2") format("woff2-variations"), url("fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--focus, #3d8bff); outline-offset: 3px; }
.sr-only { 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 { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; background: #fff; color: #000; border-radius: 4px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Demo-Hinweis (Pflicht in jedem Site-Kit-Entwurf) ---------- */
.demo-pill { position: fixed; left: 12px; bottom: 12px; z-index: 90; display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 24px); padding: 8px 8px 8px 14px; border-radius: 999px;
  background: rgba(8, 14, 28, .88); color: #e8edf4; font: 500 12px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 6px 24px rgba(0,0,0,.25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.demo-pill b { font-weight: 650; }
.demo-pill a { flex: none; padding: 6px 10px; border-radius: 999px; background: #e8edf4; color: #0a1430; text-decoration: none; font-weight: 650; }
.demo-pill a:hover { background: #fff; }
@media (max-width: 520px) { .demo-pill { font-size: 11px; } .demo-pill .demo-long { display: none; } }

/* ---------- Vorher/Nachher-Regler ---------- */
.ba { position: relative; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; --pos: 50%; }
.ba img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba .ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--ba-line, #fff); pointer-events: none; }
.ba .ba-knob { position: absolute; top: 50%; left: var(--pos); width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  display: grid; place-items: center; pointer-events: none; background: var(--ba-knob-bg, #fff); color: var(--ba-knob-fg, #0a1430);
  box-shadow: 0 6px 22px rgba(0,0,0,.28); transition: transform .2s; }
.ba:hover .ba-knob, .ba.is-drag .ba-knob { transform: scale(1.08); }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba input[type="range"]:focus-visible + .ba-line { box-shadow: 0 0 0 3px var(--focus, #3d8bff); }
.ba .ba-tag { position: absolute; top: 14px; padding: 5px 10px; border-radius: 3px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; background: rgba(6,11,24,.72); color: #fff; }
.ba .ba-tag--l { left: 14px; } .ba .ba-tag--r { right: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
