/* ==========================================================================
   STELLENANZEIGEN-CHECK - Familie "Kit-Editorial", Trikot "Sulu / Deep Fir"
   Papier-gruener Grund, Tannen-Tinte, weisse Dokument-Sheets. Sulu nur
   anfassbar/aktiv + Schluesselzahlen; EIN dunkler Deep-Fir-Block (ProPlacement).
   Anton + Schibsted + Geist Mono. Radius 0. Sie-Ton (B2B).
   ========================================================================== */

@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/tools/assets-kit/fonts/anton-400.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/tools/assets-kit/fonts/schibsted-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/tools/assets-kit/fonts/schibsted-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Geist Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/geistmono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD;
}

:root {
  --grund: #F2FAEA;            /* Papier mit Sulu-Stich */
  --ink: #163300;              /* Deep Fir: Tinte (Trikot-Pin) */
  --ink-2: #527040;            /* Sekundaer, gruen getoent */
  --linie: #CBDDBB;
  --sulu: #9FE870;             /* nur anfassbar/aktiv + Schluesselzahlen */
  --sulu-hell: #C8FF9E;
  --papier: #FFFFFF;
  --papier-ink: #1B1D18;
  --hoch: #B32038;
  --mittel: #9A5B00;
  --f-disp: "Anton", "Arial Narrow", sans-serif;
  --f-body: "Schibsted Grotesk", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --raster: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16.5px/1.6 var(--f-body);
  background: var(--grund);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex; flex-direction: column;
}
::selection { background: var(--ink); color: var(--sulu); }
input, textarea, button { font: inherit; color: inherit; }
input, textarea { caret-color: var(--ink); }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 10px; z-index: 99; background: var(--ink); color: var(--sulu); padding: 10px 18px; font-weight: 700; text-decoration: none; }
.skip-link:focus-visible { left: 12px; }

.pi { width: 17px; height: 17px; fill: currentColor; flex: 0 0 auto; }

* { scrollbar-width: thin; scrollbar-color: #8FA97C transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #8FA97C; border: 3px solid var(--grund); }

/* ---------- Kopf ---------- */
.kopf {
  display: flex; align-items: center; gap: 18px;
  padding: 14px var(--raster);
  border-bottom: 1px solid var(--linie);
}
.zurueck {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
  transition: color .15s var(--ease-out);
}
.zurueck:hover { color: var(--ink); }
.zurueck .pi { width: 14px; height: 14px; }
.kopf-titel { font: 800 16px/1 var(--f-body); }
.kopf-marke { margin-left: auto; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- Held + Werkzeug ---------- */
main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--raster) 56px; }
.held { padding: clamp(34px, 6vh, 70px) 0 clamp(18px, 3vh, 28px); }
.held h1 {
  margin: 0 0 14px;
  font: 400 clamp(2.9rem, 8vw, 6rem)/0.95 var(--f-disp);
  text-transform: uppercase; letter-spacing: .005em;
}
.sub { margin: 0; max-width: 58ch; font-size: 17.5px; color: var(--ink-2); }

.werk { display: grid; gap: 10px; padding-bottom: clamp(30px, 5vh, 48px); }
.werk-label { font: 500 11.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.sheet, .sheet-input { background: var(--papier); color: var(--papier-ink); border: 2px solid var(--ink); }
.sheet-input {
  width: 100%; min-height: 240px; resize: vertical;
  padding: 18px 20px; line-height: 1.65;
  transition: border-color .15s var(--ease-out);
}
.sheet-input::placeholder { color: #6E7266; opacity: 1; }
.sheet-input:focus-visible { outline: none; border-color: #3F6B1E; }
.werk-fuss { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.privat { font-size: 13px; color: var(--ink-2); margin-right: auto; }
.eingabe-fehler { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--hoch); }

/* ---------- Tasten ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer; text-decoration: none;
  padding: 15px 26px;
  font: 800 14px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase;
  transition: transform 160ms var(--ease-out), background 160ms var(--ease-out), color 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-voll { background: var(--ink); color: var(--sulu); }
.btn-voll:hover { background: #234D07; }
.btn-rand { background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 13px 22px; }
.btn-rand:hover { background: var(--ink); color: var(--grund); }
.btn-sulu { background: var(--sulu); color: var(--ink); }
.btn-sulu:hover { background: var(--sulu-hell); }
.linkish {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--ink); font-weight: 700;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2.5px;
  text-decoration-color: var(--sulu);
  transition: opacity .15s var(--ease-out);
}
.linkish:hover { opacity: .7; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------- Ergebnis ---------- */
.ergebnis { display: grid; gap: clamp(34px, 6vh, 56px); border-top: 1px solid var(--linie); padding-top: clamp(30px, 5vh, 48px); }
@media (prefers-reduced-motion: no-preference) {
  .erg-in { animation: fallen .5s var(--ease-out) both; }
  @keyframes fallen { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .markiert.erg-sheet-in { animation: vorhang .55s var(--ease-out) both; }
  @keyframes vorhang { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0% 0); } }
}

/* Scoreboard: Mega-Zahl + Tale of the Tape */
.board { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: end; }
.score-mega { display: grid; gap: 4px; }
.score-label { font: 500 11.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.score-zahl {
  font: 400 clamp(110px, 15vw, 180px)/0.9 var(--f-disp);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.score-zahl small { font-size: .32em; color: var(--ink-2); }
.score-wort { font: 800 clamp(19px, 2.4vw, 24px)/1.15 var(--f-body); text-transform: uppercase; letter-spacing: .03em; }

.tape { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--linie); }
.tape-col { display: grid; gap: 2px; align-content: end; padding: 0 clamp(12px, 1.8vw, 26px) 6px; border-right: 1px solid var(--linie); }
.tape-wert {
  font: 400 clamp(40px, 5vw, 64px)/0.95 var(--f-disp);
  font-variant-numeric: tabular-nums;
}
.tape-wert small { font-size: .4em; color: var(--ink-2); }
.tape-col.sev-ok .tape-wert { color: var(--ink); }
.tape-col.sev-mittel .tape-wert { color: var(--mittel); }
.tape-col.sev-hoch .tape-wert { color: var(--hoch); }
.tape-name { font: 700 12.5px/1.3 var(--f-body); color: var(--ink-2); }

/* ---------- Uebersetzt ---------- */
.uebersetzt { display: grid; gap: 14px; }
.zeilen-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
h2 { margin: 0; font: 400 clamp(1.6rem, 3.2vw, 2.4rem)/1 var(--f-disp); text-transform: uppercase; letter-spacing: .01em; }
.legende { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.lg { display: inline-flex; align-items: center; gap: 7px; margin-right: 16px; font-weight: 700; color: var(--ink); }
.lg::before { content: ""; width: 11px; height: 11px; }
.lg-hoch::before { background: var(--hoch); }
.lg-mittel::before { background: var(--mittel); }
.lg-floskel::before { background: var(--sulu); border: 1.5px solid var(--ink); }
.markiert {
  white-space: pre-wrap; line-height: 1.8; font-size: 16px;
  padding: clamp(18px, 3vw, 30px);
  max-width: 78ch; max-height: 460px; overflow-y: auto;
  overflow-wrap: anywhere;
}
.markiert mark {
  background: transparent; color: inherit; cursor: pointer;
  padding: 1px 3px;
  border-bottom: 2.5px solid currentColor;
  transition: box-shadow 150ms var(--ease-out);
}
.markiert mark.hoch { color: var(--hoch); }
.markiert mark.mittel, .markiert mark.niedrig { color: var(--mittel); }
.markiert mark.floskel { color: #3F6B1E; background: rgba(159, 232, 112, .35); }
.markiert mark:hover, .markiert mark:focus-visible { box-shadow: inset 0 -1.3em rgba(0, 0, 0, 0.07); }

.tooltip {
  position: fixed; z-index: 60; max-width: 360px;
  background: var(--ink); color: #EFF7E6;
  padding: 13px 15px; font-size: 14px; line-height: 1.5;
}
.tooltip b { display: block; margin-bottom: 2px; color: #fff; }
.tooltip .fix { display: block; margin-top: 6px; font-weight: 700; color: var(--sulu); }

/* ---------- Funde ---------- */
.funde-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.funde h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.35rem, 2.2vw, 1.8rem); margin-bottom: 6px; }
.funde .pi { width: 22px; height: 22px; }
.warn-ic { color: var(--hoch); }
.gut-ic { color: #2E7D32; }
.funde ul { list-style: none; margin: 0; padding: 0; }
.funde li { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--linie); font-size: 14.5px; color: var(--ink-2); }
.funde li b { color: var(--ink); font-size: 15.5px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.funde li b::before { content: ""; width: 10px; height: 10px; flex: 0 0 auto; background: #7CA95F; }
.funde li.hoch b::before { background: var(--hoch); }
.funde li.mittel b::before { background: var(--mittel); }
.funde li .zitat { font-style: italic; font-size: 13.5px; overflow-wrap: anywhere; }
.funde li .fix { font-weight: 700; color: var(--ink); font-size: 13.5px; }
.funde li .fix::before { content: "Fix: "; }
.badge-agg { font: 700 10px/1 var(--f-mono); letter-spacing: .08em; border: 1.5px solid var(--hoch); color: var(--hoch); padding: 3px 7px; }
.funde .leer-hinweis { font-style: italic; }
.funde .leer-hinweis b::before { display: none; }

.disclaimer { margin: 0; font-size: 12.5px; color: var(--ink-2); max-width: 76ch; }

/* ---------- ProPlacement: der eine dunkle Block ---------- */
.pp-block {
  background: var(--ink); color: #DFEDD2;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 4vw, 56px);
  padding: clamp(26px, 5vw, 56px);
}
.pp-txt h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); }
.pp-txt p { margin: 12px 0 0; max-width: 50ch; font-size: 15.5px; color: #B9CFA5; }
.pp-txt strong { color: var(--sulu); }
.pp-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.pp-form .feld { display: grid; gap: 5px; min-width: 0; }
.pp-form label { font: 700 12.5px/1.2 var(--f-body); color: #B9CFA5; }
.pp-form input {
  width: 100%; background: #0F2400;
  border: 1.5px solid #527040; padding: 11px 13px;
  color: #F2FAEA; caret-color: var(--sulu);
  transition: border-color 150ms var(--ease-out);
}
.pp-form input::placeholder { color: #9AB782; opacity: 1; }
.pp-form input:focus-visible { outline: none; border-color: var(--sulu); }
.pp-form .btn-sulu { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pp-status { grid-column: 1 / -1; margin: 0; font-weight: 700; font-size: 14px; color: var(--sulu); min-height: 1.2em; }
.pp-status.fehler { color: #FFB3BE; }
.pp-hinweis { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: #9AB782; }
.pp-hinweis a { color: var(--sulu-hell); }
.pp-block :focus-visible { outline-color: var(--sulu); }

.fuss { border-top: 1px solid var(--linie); padding: 16px var(--raster) 26px; }
.fuss p { margin: 0; font-size: 13px; color: var(--ink-2); }
.fuss a { color: var(--ink); font-weight: 600; text-decoration: none; }
.fuss a:hover { text-decoration: underline; text-decoration-color: var(--sulu); text-decoration-thickness: 2.5px; }

/* Origin-Sperre */
.sperre { max-width: 560px; margin: 14vh auto; padding: 0 var(--raster); display: grid; gap: 14px; }
.sperre h1 { margin: 0; font: 400 2.4rem/1 var(--f-disp); text-transform: uppercase; }
.sperre p { margin: 0; color: var(--ink-2); }
.sperre .btn { justify-self: start; }

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .board { grid-template-columns: 1fr; align-items: start; }
  .tape { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--linie); }
  .tape-col { padding-top: 12px; }
  .funde-spalten { grid-template-columns: 1fr; }
  .pp-block { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .kopf-marke { display: none; }
  .werk-fuss .btn-voll { width: 100%; }
  .privat { order: 3; }
  .pp-form { grid-template-columns: 1fr; }
}
