/* Schwerpunkt Demo-Kit: gleiche Gestaltung wie schwerpunkt.tech (hell, Papier, Tinte, Signalorange).
   Jede Demo bindet diese Datei ein und ergänzt nur, was sie selbst braucht. */

@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("/_kit/fonts/space-grotesk-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("/_kit/fonts/space-grotesk-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/_kit/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/_kit/fonts/space-grotesk-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("/_kit/fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("/_kit/fonts/space-grotesk-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/_kit/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/_kit/fonts/jetbrains-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/_kit/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/_kit/fonts/jetbrains-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #f3f2ee;
  --paper-2: #e9e7e1;
  --sheet: #fbfaf8;
  --white: #ffffff;
  --ink: #121211;
  --ink-2: #4b4a46;
  --ink-3: #6b6964;
  --line: #d9d6cf;
  --line-soft: rgba(18, 18, 17, 0.1);
  --signal: #ff5a1f;
  --signal-ink: #b3361a;
  --signal-soft: rgba(255, 90, 31, 0.1);
  --ok: #1e7a4f;
  --ok-soft: rgba(30, 122, 79, 0.1);
  --warn: #9a5b00;
  --warn-soft: rgba(245, 165, 36, 0.16);
  --err: #b3261e;
  --err-soft: rgba(179, 38, 30, 0.09);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 50px -24px rgba(18, 18, 17, 0.3);
  --shadow-sm: 0 6px 18px -10px rgba(18, 18, 17, 0.25);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--signal); color: #fff; }
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .wrap { padding-inline: 40px; } }
.stack > * + * { margin-top: var(--gap, 16px); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid-2 { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.grid-3 { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Typografie ---------- */
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.display { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 500; letter-spacing: -0.045em; line-height: 0.98; margin: 0; }
.h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.02; margin: 0; }
.h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.08; margin: 0; }
.h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; margin: 0; }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin: 0; max-width: 62ch; }
.muted { color: var(--ink-2); }
.subtle { color: var(--ink-3); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: 0.92em; }
.num { font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 99px; background: var(--signal); }

/* ---------- Demo-Kopfzeile ---------- */
.demo-bar { position: sticky; top: 0; z-index: 50; background: rgba(243, 242, 238, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.demo-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.demo-bar .brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
.wordmark { font-size: 18px; font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; }
.wordmark .p { color: var(--signal); }
.wordmark .t { color: var(--ink-3); }
.demo-bar .sep { color: var(--line); }
.demo-bar .crumb { font-size: 15px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.demo-bar .crumb:hover { color: var(--ink); }
.demo-bar .right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.demo-tag { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-soft); background: var(--sheet); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
@media (max-width: 720px) { .demo-bar .hide-sm { display: none; } }

/* ---------- Knöpfe ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 99px; border: 1px solid transparent; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #2a2a28; }
.btn-ghost { border-color: rgba(18, 18, 17, 0.2); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-soft { background: var(--paper-2); color: var(--ink); }
.btn-soft:hover { background: #dedbd3; }
.btn-signal { background: var(--signal); color: #fff; }
.btn-signal:hover { background: #e94d14; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 99px; border: 1px solid rgba(18, 18, 17, 0.15); background: transparent; cursor: pointer; }
.icon-btn:hover { border-color: var(--ink); }

/* ---------- Flächen ---------- */
.card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.card-white { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.panel { background: var(--paper-2); border-radius: var(--radius-lg); padding: 24px; }
.dark { background: var(--ink); color: var(--paper); }
.hr { height: 1px; background: var(--line); border: 0; margin: 24px 0; }

/* ---------- Formulare ---------- */
.field { display: block; }
.field > span, .label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.input, .select, .textarea { width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(18, 18, 17, 0.16); background: var(--white); font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(18, 18, 17, 0.32); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(18, 18, 17, 0.06); }
.input[aria-invalid="true"] { border-color: var(--err); }
.hint { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.error { margin-top: 6px; font-size: 13px; color: var(--err); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--ink); width: 16px; height: 16px; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--white); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--ink-2); background: var(--paper); padding: 10px 14px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color .15s; }
.table tbody tr:hover { background: rgba(18, 18, 17, 0.025); }
.table .r { text-align: right; }

/* ---------- Kennzeichen ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12.5px; font-weight: 500; white-space: nowrap; background: var(--paper-2); color: var(--ink-2); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.err { background: var(--err-soft); color: var(--err); }
.badge.signal { background: var(--signal-soft); color: var(--signal-ink); }
.badge.ink { background: var(--ink); color: var(--paper); }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid rgba(18, 18, 17, 0.15); background: var(--white); font-size: 14px; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.chip:hover { border-color: rgba(18, 18, 17, 0.4); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- Reiter ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab { position: relative; padding: 10px 14px 14px; border: 0; background: none; color: var(--ink-3); font-size: 15px; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }

/* ---------- Hinweise ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--sheet); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.notice .dot { margin-top: 7px; flex-shrink: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 99px; font-size: 14px; box-shadow: var(--shadow); transition: opacity .3s, transform .4s var(--ease); z-index: 80; pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Seitenkopf einer Demo ---------- */
.demo-hero { padding: 48px 0 32px; }
@media (min-width: 900px) { .demo-hero { padding: 72px 0 40px; } }
.demo-hero .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.demo-hero .lead { margin-top: 16px; }
.section { padding: 32px 0 72px; }

/* ---------- Fußzeile ---------- */
.demo-foot { border-top: 1px solid var(--line); margin-top: 48px; }
.demo-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 28px; font-size: 13px; color: var(--ink-3); }
.demo-foot a { color: var(--ink-2); text-decoration: none; }
.demo-foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.demo-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Bewegung ---------- */
@keyframes kit-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.in { animation: kit-in .6s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes kit-pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.pulse { position: relative; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 99px; border: 1px solid var(--signal); animation: kit-pulse 2.4s ease-out infinite; }
@keyframes kit-spin { to { transform: rotate(360deg); } }
.spinner { width: 16px; height: 16px; border-radius: 99px; border: 2px solid rgba(18, 18, 17, 0.15); border-top-color: var(--ink); animation: kit-spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Erklärvideo (Vorschaukarte + Fenster) ---------- */
.video-teaser { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 10px 18px 10px 10px; max-width: 520px; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 18px; background: var(--sheet); cursor: pointer; transition: border-color .25s, box-shadow .35s var(--ease), transform .35s var(--ease); }
.video-teaser:hover { border-color: rgba(18,18,17,.35); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.video-teaser .vt-thumb { position: relative; flex-shrink: 0; width: 132px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.video-teaser .vt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-teaser .vt-play { position: absolute; inset: 0; margin: auto; width: 38px; height: 38px; border-radius: 99px; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px -8px rgba(18,18,17,.6); transition: transform .35s var(--ease), background-color .25s; }
.video-teaser:hover .vt-play { transform: scale(1.08); background: var(--signal); }
.video-teaser .vt-play svg { width: 14px; height: 14px; margin-left: 2px; }
.video-teaser .vt-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.video-teaser .vt-title { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.video-teaser .vt-sub { font-size: 13px; color: var(--ink-3); }
.vt-dialog { width: min(1100px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; border-radius: 20px; background: #000; overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); }
.vt-dialog::backdrop { background: rgba(18,18,17,.55); backdrop-filter: blur(4px); }
.vt-dialog video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; background: #000; }
.vt-dialog .vt-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 99px; border: 0; background: rgba(243,242,238,.92); color: var(--ink); font-size: 18px; cursor: pointer; z-index: 2; }
.vt-dialog .vt-close:hover { background: #fff; }
