/* Fix the shit – Fanzine-Punk: Kopierpapier, schwarze Tinte, Neonpink, Giftgelb, Klebeband. */
:root {
  --papier: #ece7da;
  --karte: #fffdf6;
  --ink: #111;
  --pink: #ff2d87;
  --gift: #d9ff00;
  --grau: #cfc9bb;
  --leise: #4d4d4d;
  --schwarz: #111;
  --punkte: rgba(0, 0, 0, .08);
  --f-titel: Impact, 'Futura-CondensedExtraBold', 'Arial Narrow', 'Arial Black', sans-serif;
  --f-text: system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --f-maschine: 'American Typewriter', 'Courier New', Courier, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --papier: #121212;
    --karte: #1d1d1d;
    --ink: #f1ece0;
    --grau: #3b3b3b;
    --leise: #b4b0a6;
    --punkte: rgba(255, 255, 255, .05);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--papier);
  background-image: radial-gradient(var(--punkte) 1px, transparent 1.3px);
  background-size: 6px 6px;
  color: var(--ink);
  font: 16px/1.45 var(--f-text);
  min-height: 100vh;
}
main {
  max-width: 640px;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 16px calc(110px + env(safe-area-inset-bottom));
}
a { color: inherit; }
h1, h2, h3 { margin: 0; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ── Titel als Erpresserbrief ── */
.kopf { text-align: center; margin: 8px 0 18px; }
.titel { font-family: var(--f-titel); font-size: clamp(2.6rem, 13vw, 4.4rem); line-height: 1; letter-spacing: .02em; display: flex; flex-wrap: wrap; justify-content: center; gap: .18em; }
.titel.klein { font-size: clamp(1.6rem, 8vw, 2.2rem); }
.titel .wort { display: inline-flex; }
.titel .wort span { display: inline-block; padding: .04em .14em; margin: 0 .015em; }
.titel .wort span:nth-child(4n+1) { background: var(--schwarz); color: var(--gift); transform: rotate(-4deg); }
.titel .wort span:nth-child(4n+2) { background: var(--pink); color: var(--schwarz); font-family: var(--f-maschine); font-weight: 900; transform: rotate(3deg) translateY(.05em); }
.titel .wort span:nth-child(4n+3) { background: var(--gift); color: var(--schwarz); transform: rotate(-1.5deg); }
.titel .wort span:nth-child(4n) { background: var(--karte); color: var(--ink); border: 2px solid var(--ink); transform: rotate(4deg); }
.titel .wort:nth-child(2) span:nth-child(odd) { background: var(--karte); color: var(--ink); border: 2px solid var(--ink); }
.motto { font-family: var(--f-maschine); margin: 14px auto 0; max-width: 30em; font-size: .92rem; }

/* ── Karten mit Klebeband ── */
.karte {
  position: relative;
  background: var(--karte);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 22px 16px 18px;
  margin: 26px 0;
}
.karte::before {
  content: '';
  position: absolute;
  top: -13px; left: 50%;
  width: 96px; height: 24px;
  background: rgba(217, 255, 0, .78);
  transform: translateX(-50%) rotate(-3deg);
  box-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.karte.schief-r::before { left: 22%; transform: rotate(4deg); background: rgba(255, 45, 135, .7); }
.schief-l { transform: rotate(-.5deg); }
.schief-r { transform: rotate(.45deg); }

.stempel {
  display: inline-block;
  font-family: var(--f-maschine);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  background: var(--ink);
  color: var(--papier);
  padding: 3px 9px;
  margin: 12px 0 8px;
  transform: rotate(-1deg);
}
.karte > .stempel:first-child { margin-top: 0; }
.leise { color: var(--leise); }
.klein { font-size: .85rem; }
.notiz { font-family: var(--f-maschine); font-size: .9rem; border-left: 5px solid var(--pink); padding-left: 10px; }
.leer { font-family: var(--f-maschine); color: var(--leise); }

/* ── Knöpfe ── */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  border: 2px solid var(--ink);
  background: var(--karte);
  padding: 9px 13px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: .9rem;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}
.chip.an { background: var(--pink); color: var(--schwarz); }
.chip:active, .knopf:active, .klein-knopf:active { transform: translate(3px, 3px); box-shadow: none; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  border: 3px solid var(--ink);
  background: var(--karte);
  padding: 10px 16px;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  min-height: 48px;
}
.knopf.gross {
  width: 100%;
  margin-top: 18px;
  background: var(--pink);
  color: var(--schwarz);
  font-family: var(--f-titel);
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: .04em;
  box-shadow: 6px 6px 0 var(--ink);
}
.knopf.warn { margin-top: 14px; background: var(--schwarz); color: var(--pink); border-color: var(--pink); }
.knopfreihe { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; margin-top: 14px; }
.knopfreihe .knopf { flex: 1; }
.knopfreihe .knopf.gross { margin-top: 0; flex: 2; }
.klein-knopf, .x {
  border: 2px solid var(--ink); background: var(--karte); width: 40px; height: 40px;
  font-size: 1.2rem; font-weight: 900; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); flex: none;
}
.x { width: 34px; height: 34px; box-shadow: none; }
.datei { position: relative; }

/* ── Formulare ── */
input[type=number], input[type=search], select {
  border: 2px solid var(--ink); background: var(--karte); padding: 9px 10px; min-height: 44px; border-radius: 0;
}
input[type=search] { width: 100%; }
.frei { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-family: var(--f-maschine); }
.frei input { width: 5em; }
.zeile { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.zeile input[type=number] { width: 5.5em; }
.form { display: grid; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 2px dashed var(--ink); }
.form select { width: 100%; }
.haken { display: flex; gap: 8px; align-items: center; padding: 6px 0; cursor: pointer; }
.haken input { width: 22px; height: 22px; accent-color: var(--pink); }
.regler { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.regler input { flex: 1; accent-color: var(--pink); }
.regler output { font-family: var(--f-titel); font-size: 1.6rem; width: 1.6em; text-align: center; }
.filter { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.filter select { width: 100%; min-width: 0; }
.filter .haken { grid-column: 1 / -1; }
.geraete { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 12px; }
.warnung { margin-top: 16px; padding: 10px 12px; background: var(--gift); color: var(--schwarz); font-size: .9rem; transform: rotate(-.4deg); }

/* ── Listen ── */
.liste { list-style: none; padding: 0; margin: 8px 0 0; }
.liste li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 2px dashed var(--grau); }
.liste.kompakt li { padding: 6px 0; }
.schmerz { font-style: normal; font-family: var(--f-maschine); background: var(--pink); color: var(--schwarz); padding: 0 5px; margin-left: 4px; white-space: nowrap; }

.routine { list-style: none; counter-reset: n; padding: 0; margin: 10px 0 0; }
.routine li { counter-increment: n; display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 2px dashed var(--grau); }
.routine li::before { content: counter(n, decimal-leading-zero); font-family: var(--f-titel); font-size: 1.5rem; width: 1.6em; color: var(--pink); -webkit-text-stroke: 1px var(--ink); }
.routine .txt, .treffer .txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.routine .txt a { text-decoration: none; }
.routine .txt span, .treffer .txt span { font-family: var(--f-maschine); font-size: .82rem; color: var(--leise); }
.routine .aktionen { display: flex; gap: 6px; }
.routine .klein-knopf { width: 36px; height: 36px; font-size: 1rem; }
.routine .figur.mini { width: 44px; }
.player .p-figur { max-width: 270px; }
.mini { flex: none; display: block; }
.figur.mini { width: 54px; height: auto; }

.treffer { list-style: none; padding: 0; margin: 0; }
.treffer li { margin: 0 0 10px; }
.treffer a { display: flex; gap: 12px; align-items: center; text-decoration: none; background: var(--karte); border: 2px solid var(--ink); padding: 8px 12px; box-shadow: 3px 3px 0 var(--ink); }
.treffer li:nth-child(3n+1) a { transform: rotate(-.35deg); }
.treffer li:nth-child(3n+2) a { transform: rotate(.3deg); }

.gross-zahl { font-family: var(--f-titel); font-size: 2.4rem; line-height: 1.05; margin: 6px 0; }
.gross-zahl small { font-family: var(--f-maschine); font-size: .95rem; }
.riesig { font-family: var(--f-titel); font-size: clamp(4rem, 26vw, 8rem); line-height: .9; margin: 18px 0 6px; color: var(--pink); -webkit-text-stroke: 2px var(--ink); transform: rotate(-3deg); }
.fertig { text-align: center; }

/* ── Übung im Detail ── */
.zurueck { font-family: var(--f-maschine); font-weight: 700; text-decoration: none; display: inline-block; background: var(--ink); color: var(--papier); padding: 4px 10px; }
.kopf:has(.zurueck) { text-align: left; }
.u-name { font-family: var(--f-titel); font-weight: 400; font-size: 2.1rem; line-height: 1.05; margin: 4px 0 10px; }
.anleitung { padding-left: 1.3em; font-size: 1.05rem; }
.anleitung li { margin: 6px 0; }
.anleitung li::marker { font-family: var(--f-titel); color: var(--pink); }
.fakten { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 16px 0 0; font-size: .95rem; }
.fakten dt { font-family: var(--f-maschine); font-weight: 700; text-transform: uppercase; font-size: .78rem; padding-top: 3px; }
.fakten dd { margin: 0; }

/* ── Körperkarte ── */
.figur { display: block; width: 100%; height: auto; }
.figur g { fill: var(--grau); stroke: var(--ink); stroke-width: 1.2; }
.figur g.an { fill: var(--pink); }
.figur text { font: 700 8px var(--f-maschine); fill: var(--ink); text-anchor: middle; letter-spacing: .15em; }
.figur.mini text { display: none; }
.figur.mini g { stroke-width: 2; }
.p-figur { max-width: 340px; margin: 6px auto 10px; border: 3px solid var(--ink); background: var(--karte); padding: 10px; }
.p-figur.spiegel .bild { transform: scaleX(-1); }
.figur.puls g.an { animation: puls 1.6s ease-in-out infinite; }
@keyframes puls { 50% { fill: var(--gift); } }
.bild { position: relative; aspect-ratio: 1; }
.bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.bild img.ende { animation: blende 4s ease-in-out infinite alternate; }
@keyframes blende { 0%, 25% { opacity: 0; } 75%, 100% { opacity: 1; } }

/* ── Player ── */
body.vollbild #nav { display: none; }
body.vollbild main { padding-bottom: 30px; }
.player { text-align: center; }
.p-oben { display: flex; justify-content: space-between; align-items: center; }
.p-oben .stempel { margin: 0; }
.p-name { font-family: var(--f-titel); font-weight: 400; font-size: clamp(1.7rem, 7vw, 2.4rem); line-height: 1.05; margin: 6px 0; }
.p-seite { display: inline-block; font-family: var(--f-titel); font-size: 1.6rem; background: var(--gift); color: var(--schwarz); padding: 2px 14px; border: 3px solid var(--ink); transform: rotate(-2deg); }
.countdown { font-family: var(--f-titel); font-size: clamp(5.5rem, 30vw, 10rem); line-height: 1; margin: 8px 0 0; font-variant-numeric: tabular-nums; }
body[data-schritt=pause] .countdown, body[data-schritt=bereit] .countdown, body[data-schritt=wechsel] .countdown { color: var(--pink); -webkit-text-stroke: 2px var(--ink); }
body.pausiert .countdown { opacity: .35; }
.p-info { font-family: var(--f-maschine); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.p-balken { height: 12px; border: 2px solid var(--ink); margin: 14px 0; background: var(--karte); }
.p-balken i { display: block; height: 100%; width: 0; background: var(--pink); transition: width .3s; }
.p-knoepfe { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 10px; align-items: stretch; }
.p-knoepfe .knopf { font-size: 1.1rem; padding: 10px 6px; }
.p-knoepfe .knopf.gross { margin: 0; font-size: 1.7rem; }
.p-tipps { text-align: left; font-family: var(--f-maschine); font-size: .95rem; padding-left: 1.2em; margin-top: 18px; }
.p-tipps li { margin: 4px 0; }
.player-frage .frage { font-family: var(--f-titel); font-size: 1.8rem; line-height: 1.1; margin: 8px 0; }
.skala { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 12px 0; }
.skala .chip { padding: 12px 0; font-size: 1.2rem; }

/* ── Verlauf ── */
.kalender { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; margin: 12px 0 6px; }
.kalender i { aspect-ratio: 1; border: 1px solid var(--ink); background: var(--karte); }
.kalender .l1 { background: rgba(217, 255, 0, .5); }
.kalender .l2 { background: var(--gift); }
.kalender .l3 { background: var(--pink); }
.kalender .l4 { background: var(--ink); }
.kalender .zukunft { border-style: dashed; opacity: .35; }
.balken { list-style: none; padding: 0; margin: 10px 0 0; }
.balken li { display: grid; grid-template-columns: 9.5em 1fr 2.4em; align-items: center; gap: 8px; margin: 6px 0; font-size: .88rem; }
.balken b { height: 16px; background: var(--pink); border: 2px solid var(--ink); }
.balken em { font-style: normal; font-family: var(--f-maschine); text-align: right; }

/* ── Navigation ── */
#nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--schwarz);
  border-top: 4px solid var(--pink);
  padding-bottom: env(safe-area-inset-bottom);
}
#nav a {
  color: var(--gift); text-decoration: none; text-align: center;
  font-family: var(--f-titel); font-size: 1.25rem; letter-spacing: .05em; text-transform: uppercase;
  padding: 12px 4px 13px;
}
#nav a[aria-current] { background: var(--pink); color: var(--schwarz); }

/* ── Toast und Dialog ── */
#toast {
  position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 30;
  transform: translate(-50%, 20px) rotate(-1deg); opacity: 0; pointer-events: none;
  background: var(--gift); color: var(--schwarz); border: 3px solid var(--schwarz);
  font-family: var(--f-maschine); font-weight: 700; padding: 10px 14px; max-width: calc(100% - 32px);
  transition: opacity .2s, transform .2s;
}
#toast.an { opacity: 1; transform: translate(-50%, 0) rotate(-1deg); }
.schleier { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .65); display: grid; place-items: center; padding: 16px; }
.dialog { max-width: 480px; margin: 0; }

@media (max-width: 380px) {
  .balken li { grid-template-columns: 7.5em 1fr 2em; }
  .filter { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .figur.puls g.an, .bild img.ende { animation: none; }
  .bild img.ende { opacity: 0; }
  .p-balken i, #toast { transition: none; }
}

/* Pausenwahl in der Routine */
.pausenwahl { margin: 4px 0 16px; padding: 10px 0 12px; border-top: 2px dashed var(--ink); border-bottom: 2px dashed var(--ink); }
.pausenwahl .chips { margin-top: 8px; }
.pausenwahl .chip { padding: 6px 10px; font-size: .9rem; }
.stempel.klein { font-size: .75rem; }
.frei select { max-width: 15em; }

/* Sticker aus ChatGPT (bilder/app/), verschwinden, wenn die Datei fehlt */
.sticker { display: block; width: min(220px, 60vw); height: auto; margin: 10px auto; transform: rotate(-4deg); filter: drop-shadow(4px 4px 0 var(--ink)); }

/* ── Riso-Hintergrund: gerissene Papierschnipsel (riso.svg), fest hinter allem ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url(riso.svg) center / cover no-repeat;
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  body::before { opacity: .55; }
}
/* Text, der direkt auf dem Hintergrund steht, bekommt ein Papieretikett */
.motto, .kopf .zurueck, .treffer .leer {
  display: inline-block;
  background: var(--karte);
  border: 2px solid var(--ink);
  padding: 3px 10px;
  box-shadow: 3px 3px 0 var(--ink);
}
.motto { transform: rotate(-1deg); }

/* Logo aus ChatGPT (transparentes PNG) */
.titel-logo { margin: 0 auto; max-width: 440px; }
.titel-logo img { display: block; width: 100%; height: auto; }
.titel-logo.klein { max-width: 200px; }

/* Credit-Stempel */
.credit {
  display: table;
  margin: 10px auto 0;
  padding: 3px 10px;
  background: var(--schwarz);
  color: var(--gift);
  font-family: var(--f-maschine);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: rotate(1.5deg);
  box-shadow: 3px 3px 0 var(--pink);
}
@media (prefers-color-scheme: dark) { .credit { background: var(--gift); color: #111; } }

/* ── Mini-Icons in Listen: Vorschaubild oder gerissener Schnipsel ── */
.mini-icon {
  flex: none; display: grid; place-items: center;
  width: 58px; height: 58px;
  /* gerissene Kante */
  clip-path: polygon(0% 6%, 9% 1%, 18% 5%, 27% 0%, 38% 4%, 49% 1%, 58% 5%, 70% 0%, 81% 4%, 92% 1%, 100% 5%,
    97% 16%, 100% 27%, 96% 39%, 100% 50%, 97% 62%, 100% 73%, 96% 85%, 100% 95%,
    90% 100%, 79% 96%, 68% 100%, 57% 95%, 46% 100%, 35% 96%, 24% 100%, 13% 95%, 3% 100%,
    0% 90%, 4% 78%, 0% 66%, 3% 54%, 0% 42%, 4% 30%, 0% 18%);
}
.mini-icon.foto { background: #ece7da; }
.mini-icon.foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-icon.tag {
  font-family: var(--f-titel); font-size: .88rem; letter-spacing: .03em; text-transform: uppercase;
  background-image: radial-gradient(rgba(0,0,0,.22) 1px, transparent 1.4px); background-size: 5px 5px;
}
.mini-icon.tag b { font-weight: 400; padding: 1px 4px; transform: rotate(-6deg); }
.treffer li:nth-child(odd) .mini-icon { transform: rotate(-3deg); }
.treffer li:nth-child(even) .mini-icon { transform: rotate(2.5deg); }
.kat-dehnen   { background-color: var(--pink); color: #111; }
.kat-dehnen b { background: #111; color: var(--pink); }
.kat-mobility { background-color: var(--gift); color: #111; }
.kat-kraft    { background-color: #111; color: var(--gift); background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.4px) !important; }
.kat-kraft b  { background: var(--gift); color: #111; }
.kat-fuss     { background-color: #8e8a82; color: #111; }
.kat-fuss b   { background: #f6f2e8; }
.kat-knie     { background-color: #c9c4b8; color: #111; }
.kat-knie b   { background: var(--pink); }
.kat-rns      { background-color: #111; color: var(--pink); background-image: radial-gradient(rgba(255,45,135,.35) 1px, transparent 1.4px) !important; }
.kat-rns b    { background: #f6f2e8; color: #111; font-size: .75rem; }
.kat-rolle    { background-color: var(--gift); color: #111; }
.kat-rolle b  { background: #f6f2e8; }
.kat-yoga     { background-color: var(--pink); color: #111; }
.kat-yoga b   { background: var(--gift); }
.routine .mini-icon { width: 48px; height: 48px; }
.routine .mini-icon.tag { font-size: .75rem; }

/* ── Verbindungen: Strava & Apple Health ── */
.strava-knopf { background: #fc4c02; color: #fff; border-color: #111; }
.powered { display: inline-block; margin-left: 6px; padding: 1px 6px; background: #fc4c02; color: #fff; font-family: var(--f-maschine); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.quelle { font-style: normal; font-family: var(--f-maschine); font-size: .7rem; padding: 0 5px; margin-left: 4px; text-transform: uppercase; }
.q-strava { background: #fc4c02; color: #fff; }
.q-health { background: var(--pink); color: #111; }
.anleitung-kurz { margin-top: 14px; border-top: 2px dashed var(--ink); padding-top: 10px; }
.anleitung-kurz summary { font-family: var(--f-maschine); font-weight: 700; cursor: pointer; }
.anleitung-kurz ol { padding-left: 1.2em; }
.anleitung-kurz li { margin: 6px 0; }
.anleitung-kurz code { background: var(--gift); color: #111; padding: 0 4px; }
.riesig.klein-riesig { font-size: clamp(3rem, 18vw, 5rem); }

/* Apple Watch & Health */
.unter { font-family: var(--f-maschine); font-size: .95rem; margin: 16px 0 6px; padding-bottom: 3px; border-bottom: 2px solid var(--ink); }
.watch-knopf { display: block; width: 100%; margin: 14px 0 4px; background: var(--gift); color: #111; }
.watch-x { font-size: 1rem; margin-right: 6px; }
.anleitung-kurz input[type=text] { width: 14em; }

/* ── Konto ── */
.feld { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; font-family: var(--f-maschine); font-size: .9rem; }
.feld input { font: 16px var(--f-text); padding: 10px 12px; border: 3px solid var(--ink); background: var(--karte); color: var(--ink); border-radius: 0; }
.fehler { color: var(--pink); font-weight: 700; min-height: 1.2em; margin: 6px 0; }
.notfallcode { font-family: var(--f-maschine); font-size: 1.25rem; font-weight: 700; letter-spacing: .06em; text-align: center; background: var(--gift); color: #111; border: 3px dashed #111; padding: 14px 8px; word-break: break-all; }
.konten .link { background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 700; color: inherit; text-decoration: underline; cursor: pointer; text-align: left; }
.leise-knopf { display: block; margin: 14px auto 0; background: transparent; box-shadow: none; border-style: dashed; }
.notfallcode span { display: inline-block; }

/* Gewicht-Rechner */
.gewicht-eingabe { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.gewicht-eingabe input { width: 4.6em; font: 1.3rem var(--f-titel); padding: 8px; border: 3px solid var(--ink); background: var(--karte); color: var(--ink); }
.gewicht-eingabe span { font-family: var(--f-maschine); }
.gewicht-ergebnis { margin: 10px 0; padding: 10px 12px; background: var(--gift); color: #111; border: 3px solid #111; transform: rotate(-.6deg); }
.gewicht-ergebnis .leise { color: #333; }
.scheiben b { display: inline-block; background: #111; color: var(--gift); padding: 0 6px; margin: 2px 0; }

/* TIDAL */
.tidal-knopf { background: #111; color: #fff; border-color: #111; }
.powered.tidal { background: #111; }
.musik-wahl { display: grid; gap: 6px; margin: 6px 0 10px; }
.musik-wahl select { max-width: 100%; }
.p-musik { width: 100%; margin-bottom: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Ich: Icon-Raster */
.ich-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 12px 8px; margin: 4px 0 18px; }
.ich-icon { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ich-icon b { font-family: var(--f-maschine); font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; line-height: 1.15; text-align: center; }
.ich-bild { position: relative; display: grid; place-items: center; width: 64px; height: 64px; background: #fffdf6; border: 3px solid #111; box-shadow: 3px 3px 0 #111; overflow: hidden; transform: rotate(-2deg); transition: transform .12s; }
.ich-icon:nth-child(even) .ich-bild { transform: rotate(2deg); }
.ich-bild img { width: 100%; height: 100%; object-fit: contain; }
.ich-bild.ohne::after { content: attr(data-zeichen); font-size: 1.9rem; font-weight: 900; line-height: 1; }
.ich-icon.an .ich-bild { background: #ff2d87; transform: rotate(0) translate(2px, 2px); box-shadow: 1px 1px 0 #111; }
.ich-icon.an b { background: #111; color: #fff; padding: 0 4px; }
.ich-icon:focus-visible .ich-bild { outline: 3px solid #ff2d87; outline-offset: 3px; }
/* Mit echtem Icon: kein Rahmen, gewählt = pinker Klebezettel dahinter */
.ich-bild:not(.ohne) { background: none; border: 0; box-shadow: none; overflow: visible; }
.ich-bild:not(.ohne) img { position: relative; z-index: 1; }
.ich-icon.an .ich-bild:not(.ohne) { background: none; box-shadow: none; transform: rotate(0); }
.ich-icon.an .ich-bild:not(.ohne)::before { content: ''; position: absolute; inset: 2px; background: var(--pink); border: 2px solid #111; transform: rotate(-5deg); }
