/* ---------- Game Stencils – eigene Marke (nur auf /stencils/ geladen) ---------- */

@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/IBMPlexMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/IBMPlexMono-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/IBMPlexMono-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

body.stencils {
  --ink: #111;
  --paper: #f3f1ec;
  --dot: #d9d5cc;
  --grey: #5d5a55;
  --magenta: #e100e1;
  --green: #19c20f;
  --warn: #ff2a2a;
  --st-sans: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --st-mono: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
  background: var(--paper);
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: var(--st-sans);
}
.stencils a { color: inherit; }
.stencils .skip { background: var(--magenta); color: #fff; }
.stencils :focus-visible { outline-color: var(--magenta); }

.st-wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gx); }
.st-section { padding-block: clamp(36px, calc(36px + 34 * (100vw - 390px) / 1050), 70px); border-top: 2px solid var(--ink); }
.st-section--noline { border-top: 0; }
.st-stack { display: flex; flex-direction: column; gap: 12px; }

/* Kopf und Fuß */
.st-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(16px, calc(16px + 6 * (100vw - 390px) / 1050), 22px) var(--gx); border-bottom: 2px solid var(--ink); max-width: none; }
.st-brand { display: flex; align-items: center; gap: clamp(10px, calc(10px + 2 * (100vw - 390px) / 1050), 12px); text-decoration: none; }
.st-brand img { width: clamp(30px, calc(30px + 4 * (100vw - 390px) / 1050), 34px); height: auto; }
.st-brand span { font-weight: 700; font-size: clamp(20px, calc(20px + 4 * (100vw - 390px) / 1050), 24px); letter-spacing: -0.01em; }
.st-nav { display: flex; gap: 28px; font-family: var(--st-mono); font-size: 14px; }
.st-nav a { text-decoration: none; }
.st-nav a:hover, .st-by:hover { color: var(--magenta); }
.st-by { font-family: var(--st-mono); font-size: 13px; color: var(--grey) !important; text-decoration: none; }
.st-menu { display: none; position: relative; }
.st-menu summary { list-style: none; cursor: pointer; padding: 6px; }
.st-menu summary::-webkit-details-marker { display: none; }
.st-menu summary svg { width: 28px; height: 20px; }
.st-menu nav { position: absolute; right: 0; top: 44px; z-index: 20; background: #fff; border: 2px solid var(--ink); display: flex; flex-direction: column; min-width: 220px; }
.st-menu nav a { padding: 12px 16px; font-family: var(--st-mono); font-size: 15px; text-decoration: none; border-bottom: 1px solid var(--dot); }
@media (max-width: 1000px) { .st-nav, .st-by { display: none; } .st-menu { display: block; } }
.st-footer { padding: 28px var(--gx); border-top: 2px solid var(--ink); display: flex; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; font-family: var(--st-mono); font-size: 13px; color: var(--grey); }
.st-footer__links { display: flex; gap: 20px; }
.st-footer a { color: var(--grey); }

/* Typo */
.st-eyebrow { font-family: var(--st-mono); font-size: clamp(11px, calc(11px + 1 * (100vw - 390px) / 1050), 12px); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--magenta); }
.st-eyebrow--ink { color: var(--ink); }
.st-eyebrow--green { color: var(--green); }
.st-mono { font-family: var(--st-mono); font-size: clamp(11px, calc(11px + 1 * (100vw - 390px) / 1050), 12px); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }
.st-mono--ink { color: var(--ink); }
.st-mono-note { font-family: var(--st-mono); font-size: 13px; color: var(--grey); }
.st-h1 { font-weight: 700; font-size: clamp(60px, calc(60px + 48 * (100vw - 390px) / 1050), 108px); line-height: 0.92; letter-spacing: -0.035em; }
.st-h2 { font-weight: 700; font-size: clamp(30px, calc(30px + 16 * (100vw - 390px) / 1050), 46px); line-height: 1.02; letter-spacing: -0.02em; }
.st-h2--lg { font-size: clamp(32px, calc(32px + 20 * (100vw - 390px) / 1050), 52px); }
.st-lead { font-family: var(--sans); font-size: clamp(17px, calc(17px + 4 * (100vw - 390px) / 1050), 21px); line-height: 1.55; }
.st-body { font-family: var(--sans); font-size: clamp(16px, calc(16px + 2 * (100vw - 390px) / 1050), 18px); line-height: 1.55; }
.st-claim { font-weight: 500; font-size: clamp(20px, calc(20px + 4 * (100vw - 390px) / 1050), 24px); }
.st-claim mark { background: var(--green); color: var(--ink); padding: 0 6px; }
.st-ph { color: var(--warn); border-bottom: 1px dashed var(--warn); }

/* Buttons, Tags */
.st-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.st-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; background: transparent; color: var(--ink) !important; border: 2px solid var(--ink); font-family: var(--st-mono); font-size: 14px; font-weight: 600; text-decoration: none; letter-spacing: 0.02em; }
.st-btn:hover { background: var(--ink); color: #fff !important; }
.st-btn--dark { background: var(--ink); color: #fff !important; }
.st-btn--dark:hover { background: var(--magenta); border-color: var(--magenta); }
.st-btn--red { color: var(--warn) !important; border-color: var(--warn); }
.st-btn--red:hover { background: var(--warn); color: #fff !important; }
.st-btn--light { color: #fff !important; border-color: #fff; }
.st-btn--light:hover { background: #fff; color: var(--ink) !important; }
span.st-btn--red:hover { background: transparent; color: var(--warn) !important; }
.st-tags { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.st-tag { font-family: var(--st-mono); font-size: 12px; padding: 3px 8px; border: 1px solid var(--dot); color: var(--grey); background: #fff; }

/* Karten mit versetztem Farbschatten */
.st-card { position: relative; padding: 0 14px 14px 0; margin: 0; }
.st-card::before { content: ''; position: absolute; left: 14px; top: 14px; right: 0; bottom: 0; }
.st-card--magenta::before { background: var(--magenta); }
.st-card--green::before { background: var(--green); }
.st-card__body { position: relative; background: #fff; border: 2px solid var(--ink); padding: clamp(22px, calc(22px + 12 * (100vw - 390px) / 1050), 34px) clamp(22px, calc(22px + 12 * (100vw - 390px) / 1050), 34px) clamp(16px, calc(16px + 6 * (100vw - 390px) / 1050), 22px); display: flex; flex-direction: column; gap: 10px; }
.st-card__body--tight { padding: 14px; }
.st-card__body img { width: 100%; height: auto; }

/* Hero */
.st-hero { display: grid; grid-template-columns: 7fr 5fr; gap: 36px 56px; align-items: center; padding-block: clamp(36px, calc(36px + 24 * (100vw - 390px) / 1050), 60px) clamp(40px, calc(40px + 30 * (100vw - 390px) / 1050), 70px); }
.st-hero__text { display: flex; flex-direction: column; gap: clamp(18px, calc(18px + 6 * (100vw - 390px) / 1050), 24px); }

/* Neuester Eintrag */
.st-latest { display: grid; grid-template-columns: 7fr 5fr; gap: 36px 56px; align-items: center; }
.st-latest__text { display: flex; flex-direction: column; gap: clamp(16px, calc(16px + 6 * (100vw - 390px) / 1050), 22px); }
.st-latest__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.st-latest__metacol { display: flex; flex-direction: column; gap: 4px; }
.st-no { font-weight: 700; font-size: clamp(44px, calc(44px + 20 * (100vw - 390px) / 1050), 64px); line-height: 1; color: var(--magenta); }
.st-quote { margin: 0; padding: 18px 22px; background: #fff; border-left: 6px solid var(--magenta); font-size: clamp(18px, calc(18px + 2 * (100vw - 390px) / 1050), 20px); line-height: 1.4; }

/* Log */
.st-log__head { display: grid; grid-template-columns: 8fr 4fr; gap: 18px 56px; align-items: end; margin-bottom: 30px; }
.st-howto { display: flex; flex-direction: column; gap: 12px; padding: clamp(18px, calc(18px + 6 * (100vw - 390px) / 1050), 24px); background: var(--ink); color: #fff; }
.st-howto p { font-family: var(--sans); font-size: 15px; line-height: 1.55; color: #e8e8e8; }
.st-log { display: flex; flex-direction: column; }
.st-entry { display: grid; grid-template-columns: 90px 130px 110px minmax(0, 1fr) 220px 40px; gap: 24px; align-items: start; padding: 26px 0; border-top: 1px solid var(--ink); text-decoration: none; }
.st-entry:hover h3, .st-entry:hover .st-entry__arrow { color: var(--magenta); }
.st-entry__no { font-weight: 700; font-size: 34px; line-height: 1; color: var(--magenta); }
.st-entry__date, .st-entry__type { padding-top: 8px; }
.st-entry__main { display: flex; flex-direction: column; gap: 8px; }
.st-entry__main h3 { font-weight: 700; font-size: clamp(21px, calc(21px + 5 * (100vw - 390px) / 1050), 26px); line-height: 1.1; }
.st-entry__main p { font-family: var(--sans); font-size: clamp(15px, calc(15px + 1 * (100vw - 390px) / 1050), 16px); line-height: 1.55; color: var(--grey); }
.st-entry__tags { padding-top: 6px; }
.st-entry__arrow { font-size: 26px; line-height: 1; }
.st-log__end { border-top: 1px solid var(--ink); }
.st-next { display: flex; align-items: center; gap: 12px 24px; padding: 24px 26px; border: 2px dashed #b9b9b9; margin-top: 14px; flex-wrap: wrap; }
.st-next__no { font-weight: 700; font-size: 34px; color: #b9b9b9; }
.st-next__text { margin-left: auto; font-family: var(--sans); font-size: 15px; color: var(--grey); }
@media (max-width: 1100px) {
  .st-entry { grid-template-columns: 70px 110px 100px minmax(0, 1fr) 30px; }
  .st-entry__tags { grid-column: 4; grid-row: 2; padding-top: 0; }
  .st-entry__arrow { grid-column: 5; grid-row: 1; }
}
@media (max-width: 760px) {
  .st-log__head { grid-template-columns: 1fr; }
  .st-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 18px 0; }
  .st-entry__no { font-size: 22px; }
  .st-entry__date, .st-entry__type { padding-top: 0; }
  .st-entry__type { margin-left: auto; }
  .st-entry__main, .st-entry__tags { width: 100%; }
  .st-entry__arrow { display: none; }
  .st-next { padding: 18px; }
  .st-next__text { margin-left: 0; }
}

/* Stencils, Explorations */
.st-intro { display: flex; flex-direction: column; gap: 12px; max-width: 860px; margin-bottom: 30px; }
.st-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.st-tab { font-family: var(--st-mono); font-size: clamp(13px, calc(13px + 1 * (100vw - 390px) / 1050), 14px); padding: 10px 16px; border: 2px solid var(--ink); }
.st-tab--active { background: var(--ink); color: #fff; }
.st-tab--shown { background: #fff; }
.st-tab--planned { border-style: dashed; border-color: #b9b9b9; color: var(--grey); }
.st-stencil-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; margin-bottom: 30px; }
.st-stencil { background: #fff; border: 2px solid var(--ink); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.st-stencil img { width: 100%; max-width: 300px; margin: 0 auto; height: auto; }
.st-stencil h3 { font-weight: 700; font-size: clamp(21px, calc(21px + 3 * (100vw - 390px) / 1050), 24px); line-height: 1.1; }
.st-stencil p { font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--grey); }
.st-stencil--more { background: transparent; border: 2px dashed #b9b9b9; }
.st-stencil--more h3 { color: var(--grey); }
.st-explore { display: grid; grid-template-columns: 7fr 5fr; gap: 28px; align-items: stretch; }
.st-explore__card { border: 2px solid var(--ink); background: #fff; }
.st-explore__card--img { display: grid; grid-template-columns: 1fr 1fr; }
.st-explore__card--img img { width: 100%; height: 100%; object-fit: cover; }
.st-explore__card--green { background: var(--green); }
.st-explore__body { padding: clamp(22px, calc(22px + 6 * (100vw - 390px) / 1050), 28px); display: flex; flex-direction: column; gap: 12px; }
.st-explore__body h3 { font-weight: 700; font-size: clamp(24px, calc(24px + 4 * (100vw - 390px) / 1050), 28px); line-height: 1.1; }
.st-explore__body p { font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--grey); }
.st-explore__card--green p { color: var(--ink); }
.st-shapes { display: flex; flex-wrap: wrap; gap: 6px; }
.st-shapes span { font-family: var(--st-mono); font-size: 13px; padding: 6px 10px; border: 1px solid var(--ink); }
@media (max-width: 900px) {
  .st-hero, .st-latest, .st-explore { grid-template-columns: 1fr; }
  .st-stencil-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) { .st-explore__card--img { grid-template-columns: 1fr; } .st-explore__card--img img { aspect-ratio: 4 / 3; } }

/* Pyramide */
.st-pyramid { background: var(--ink); color: #fff; }
.st-pyramid__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 56px; align-items: center; padding-block: clamp(40px, calc(40px + 40 * (100vw - 390px) / 1050), 80px); }
.st-pyramid__img { width: 100%; height: auto; }
.st-pyramid__text { display: flex; flex-direction: column; gap: 16px; }
.st-pyramid__text .st-body { color: #e0e0e0; }
.st-level { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid #444; }
.st-level__no { font-family: var(--st-mono); font-size: 13px; color: var(--green); padding-top: 4px; }
.st-level div { display: flex; flex-direction: column; gap: 4px; }
.st-level__title { font-weight: 700; font-size: clamp(20px, calc(20px + 4 * (100vw - 390px) / 1050), 24px); }
.st-level__text { font-family: var(--sans); font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .st-pyramid__inner { grid-template-columns: 1fr; } .st-pyramid__img { max-width: 420px; } }

/* Metanautic */
.st-meta__head { display: grid; grid-template-columns: 7fr 5fr; gap: 16px 56px; align-items: end; margin-bottom: 30px; }
.st-episodes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.st-episode { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 2px solid var(--ink); background: #fff; }
.st-episode__no { font-family: var(--st-mono); font-size: 12px; color: var(--magenta); }
.st-episode__title { font-weight: 700; font-size: clamp(18px, calc(18px + 4 * (100vw - 390px) / 1050), 22px); line-height: 1.15; }
@media (max-width: 900px) { .st-meta__head { grid-template-columns: 1fr; } .st-episodes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* Über, Folgen */
.st-about { display: grid; grid-template-columns: 3fr 5fr 4fr; gap: 36px 56px; align-items: center; }
.st-about__img { position: relative; padding: 0 12px 12px 0; }
.st-about__img::before { content: ''; position: absolute; left: 12px; top: 12px; right: 0; bottom: 0; background: var(--green); }
.st-about__img img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border: 2px solid var(--ink); }
.st-about__text { display: flex; flex-direction: column; gap: 16px; }
.st-follow { padding: 26px; border: 2px solid var(--ink); background: #fff; display: flex; flex-direction: column; gap: 12px; }
.st-follow p { font-family: var(--sans); font-size: 15px; line-height: 1.55; }
@media (max-width: 1100px) { .st-about { grid-template-columns: 1fr 2fr; } .st-follow { grid-column: 1 / -1; } }
@media (max-width: 760px) { .st-about { grid-template-columns: 1fr; } .st-about__img { max-width: 260px; } }

/* Einzelner Eintrag */
.st-article { display: flex; flex-direction: column; gap: 22px; max-width: 960px; border-top: 0; }
.st-back { text-decoration: none; }
.st-back:hover { color: var(--magenta); }
.st-article__body { font-family: var(--sans); font-size: clamp(16px, calc(16px + 2 * (100vw - 390px) / 1050), 18px); line-height: 1.6; display: flex; flex-direction: column; gap: 14px; }
.st-article__body a { color: var(--magenta); }
.st-article__nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 2px solid var(--ink); }
