/* Mitmachen (ab 0.003): Kommentare, Antworten, Umschalter, Gemerkt, Suche */

/* Umschalter: gemerkt = orange, Fehler = kurzes Wackeln */
.merk.an svg, .icon-knopf.an svg { fill: var(--akzent); stroke: var(--akzent); }
.folgen.an, .pf-folgen.an { opacity: .85; }
.reaktionen button.an { border-color: var(--ok-icon); background: var(--ok-bg); color: var(--ok-text); }
.reaktionen form { display: contents; }
.wackeln { animation: wackeln .4s; }
@keyframes wackeln { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

/* Kommentare */
.k .text p { margin: 0 0 6px; }
.k .text p:last-child { margin-bottom: 0; }
.k-aktionen { display: flex; gap: 2px; margin-left: -8px; }
.k-aktionen form { display: contents; }
.k-aktionen button { border: 0; background: transparent; color: var(--meta); font: 700 12.5px 'Bricolage Grotesque', sans-serif; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.k-aktionen button:hover { background: var(--flaeche); color: var(--text); filter: none; }
.k { scroll-margin-top: 90px; }
.k:target { animation: aufleuchten 2s ease-out; border-radius: 12px; }
@keyframes aufleuchten { from { background: rgba(255,154,82,.18); } to { background: transparent; } }
.k-schreiben { display: flex; flex-direction: column; gap: 8px; }
.k-schreiben label { font-size: 13px; font-weight: 700; }
.k-schreiben textarea, .schreiben textarea.feld { min-height: 48px; border-radius: 14px; border: 1.5px solid var(--feld-rand); background: var(--flaeche);
  color: var(--text); padding: 12px 14px; font: 500 15px 'Bricolage Grotesque', sans-serif; resize: none; width: 100%; line-height: 1.45; }
.k-schreiben textarea:focus, .schreiben textarea.feld:focus { outline: none; border-color: var(--akzent); }
.k-schreiben .senden { align-self: flex-end; height: 40px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--akzent); color: #121212;
  font: 800 14px 'Bricolage Grotesque', sans-serif; }
.antwort-an { font-size: 13px; color: var(--meta); display: flex; align-items: center; gap: 6px; }
.antwort-an b { color: var(--text); }
.antwort-an button { border: 0; background: var(--flaeche); color: var(--text); width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: 15px; line-height: 1; }
textarea.mono-feld, .schreiben textarea.mono-feld { font: 500 13px/1.5 'JetBrains Mono', monospace !important; }
.schreiben .werkzeuge button.w.an { border-color: var(--akzent); color: var(--akzent-text); }
.beitrag { scroll-margin-top: 90px; }
.beitrag:target { animation: aufleuchten 2s ease-out; }

/* Neues Thema: Bereiche als Kacheln */
.bereich-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bereich-wahl .wahl-knopf span i { font-style: normal; }
.bereich-wahl .wahl-knopf input:checked + span { background: var(--flaeche); color: var(--text); border-color: var(--akzent); }

/* Gemerkt und Suche */
.liste-seite { padding: 20px 16px 32px; display: flex; flex-direction: column; gap: 4px; }
.kachel-gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 10px; }
.kachel-gitter .kachel-app { flex: none; }
.leer { margin: 0; padding: 22px; border-radius: 18px; background: var(--flaeche); color: var(--meta); text-align: center; font-size: 14px; }
.leer svg { vertical-align: -3px; }
.such-feld { display: flex; align-items: center; gap: 10px; height: 52px; border-radius: 16px; border: 1.5px solid var(--feld-rand);
  background: var(--flaeche); padding: 0 16px; color: var(--meta); }
.such-feld:focus-within { border-color: var(--akzent); }
.such-feld input { flex: 1; border: 0; background: transparent; color: var(--text); font: 500 17px 'Bricolage Grotesque', sans-serif; outline: none; min-width: 0; }
.leute { display: flex; flex-direction: column; }
.person-zeile { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linie); color: var(--text); text-decoration: none; }
.person-zeile .av { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }

@media (min-width: 900px) {
  .liste-seite { max-width: 980px; padding: 32px 32px 64px; }
  .kachel-gitter { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
}

/* Entdecken: alle Apps */
.entdecken .hallo { padding: 20px 16px 4px; }
.entdecken .hallo h1 { margin: 0; font-size: 28px; letter-spacing: -.6px; }
.entdecken .hallo p { margin: 4px 0 0; color: var(--meta); }
.entdecken .pillen { margin: 12px 0 4px; }
.entdecken .abschnitt { padding: 16px; }
.kachel-wer { font-size: 12px; opacity: .75; }

/* Plattformen (Brett 17): Chips in Übersichten, „Auch für“ und Installationshinweis auf der App-Seite */
.pl-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; align-self: start; }   /* nie strecken: sonst wird die Pille hoch und die Schrift klebt oben */
.pl-chips span { font-size: 11px; font-weight: 700; line-height: 1.3; padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,.13); color: inherit; }
.kachel-app .pl-chips span { min-height: 0; opacity: 1; }   /* die Kachel gibt ihren Textzeilen 31 px Mindesthöhe – nicht den Pillen */
.pl-filter { margin-top: 8px; }
.auch-fuer { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.auch-fuer > span { opacity: .75; margin-right: 2px; }
.pl-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 999px; background: rgba(255,255,255,.12);
  color: inherit; font-weight: 700; font-size: 12.5px; text-decoration: none; transition: background .15s, transform .12s; }
.pl-chip:hover { background: rgba(255,255,255,.2); }
.pl-chip:active { transform: scale(.95); }
.installier-hinweis { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.45; background: rgba(0,0,0,.25);
  border-radius: 12px; padding: 9px 11px; }
.installier-hinweis svg { flex: none; margin-top: 1px; }

/* App-Seite: Making-of-Kasten zeigt das letzte Kapitel */
.mo-letztes { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--mo-rand); }
.mo-letztes .wann { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--meta); text-transform: uppercase; letter-spacing: .3px; }
.mo-letztes h3 { margin: 0; font-size: 18px; font-weight: 800; }
.mo-letztes p { margin: 0; }

/* Melden (Stufe 5) */
.melde-fenster { border: 1px solid var(--linie); border-radius: 20px; background: var(--flaeche); color: var(--text); padding: 0; width: min(380px, calc(100% - 32px));
  font-family: 'Bricolage Grotesque', system-ui, sans-serif; box-shadow: var(--schatten); }
.melde-fenster::backdrop { background: rgba(8,8,8,.6); }
.melde-form { display: flex; flex-direction: column; gap: 8px; padding: 18px; margin: 0; }
.melde-form > b { font-size: 18px; }
.melde-grund { display: flex; gap: 10px; align-items: center; padding: 9px 11px; border-radius: 12px; border: 1.5px solid var(--linie); cursor: pointer; font-size: 14px; }
.melde-grund:has(input:checked) { border-color: var(--akzent); background: color-mix(in srgb, var(--akzent) 7%, transparent); }
.melde-grund input { accent-color: var(--akzent); }
.melde-form textarea { border-radius: 12px; border: 1.5px solid var(--feld-rand); background: var(--bg); color: var(--text); font: 500 14px 'Bricolage Grotesque', sans-serif; padding: 9px 11px; resize: vertical; }
.melde-antwort { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--akzent-text); }
.melde-knoepfe { display: flex; gap: 8px; } .melde-knoepfe .knopf { flex: 1; height: 42px; }
.ak-melden { border: 0; background: transparent; color: var(--meta); cursor: pointer; margin-left: auto; }
.aus-hinweis { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: #E5484D; }
.ausgeblendet { opacity: .6; }

/* Idee D: Gebaut mit */
.gebaut-mit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; }
.gebaut-mit span { opacity: .75; margin-right: 2px; }
.gebaut-mit a { color: inherit; text-decoration: none; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,.13); line-height: 1.3; }
.gebaut-mit a:hover { background: rgba(255,255,255,.22); }
.werkzeug-vorschlaege { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.vorschlag { border: 1px dashed var(--linie); background: transparent; color: var(--meta); border-radius: 999px; padding: 4px 10px;
  font: 600 12px 'Bricolage Grotesque', sans-serif; cursor: pointer; transition: transform .12s, color .15s, border-color .15s; }
.vorschlag:hover { color: var(--text); border-color: var(--akzent); }
.vorschlag:active { transform: scale(.94); }
.vorschlag.drin { display: none; }

/* Stufe 8 (Brett 22 A): Prompt-Sammlung */
.suche-zeile { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--flaeche);
  border: 1.5px solid var(--linie); margin: 4px 16px 10px; color: var(--meta); }
.suche-zeile input { flex: 1; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; outline: none; min-width: 0; }
.prompt-gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; padding: 12px 16px; align-items: start; }
.prompt-karte { background: var(--mo-code); border: 1px solid var(--mo-code-rand); border-radius: 16px; padding: 14px 14px 10px;
  display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 80px; }
.pk-lab { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--akzent-text); letter-spacing: .3px; }
.pk-text { margin: 0; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.55; color: var(--gedaempft); white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.pk-text.offen { -webkit-line-clamp: unset; }
.pk-fuss { display: flex; align-items: center; gap: 6px; }
.pk-app { display: flex; align-items: center; gap: 7px; min-width: 0; flex: 1; color: var(--text); text-decoration: none; font-size: 13px; font-weight: 700; }
.pk-app img, .pk-app i { width: 18px; height: 18px; border-radius: 5px; flex: none; }
.pk-app span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-app:hover span { text-decoration: underline; text-decoration-color: var(--akzent); }
.pk-knopf { height: 32px; min-width: 32px; padding: 0 8px; border-radius: 10px; border: 0; background: var(--flaeche2); color: var(--text);
  display: flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; transition: transform .12s, background .15s; }
.pk-knopf:hover { background: var(--linie); }
.pk-knopf:active { transform: scale(.9); }
.pk-knopf b { font-size: 12px; font-weight: 700; color: var(--meta); font-variant-numeric: tabular-nums; }
.pk-knopf b:empty { display: none; }
.pk-knopf.kopiert { background: var(--ok-bg); color: var(--ok-text); }
.pk-knopf.an svg { fill: var(--akzent); stroke: var(--akzent); }
.pk-notiz { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--meta); border-top: 1px solid var(--mo-code-rand); padding-top: 8px; }
.pk-notiz textarea { font: inherit; font-size: 13px; color: var(--text); background: transparent; border: 1px dashed var(--feld-rand); border-radius: 10px;
  padding: 6px 8px; resize: vertical; }
.pk-notiz textarea.gespeichert { border-color: var(--ok-icon); }
@media (min-width: 900px) { .suche-zeile { margin: 4px 0 10px; } .prompt-gitter { padding: 12px 0; } }

/* Stufe 10 (Brett 23 · Wünsche A): Reiter, Wunschliste, Kasten auf der App-Seite */
.app-reiter { display: flex; gap: 18px; font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--linie); margin: 4px 0 12px; grid-column: 1 / -1; overflow-x: auto; scrollbar-width: none; }
.app-reiter a { color: var(--meta); text-decoration: none; padding: 10px 0; white-space: nowrap; }
.app-reiter a:hover { color: var(--text); }
.app-reiter a.an { color: var(--text); box-shadow: 0 2px 0 var(--akzent); }
.app-reiter b { font-size: 11.5px; font-weight: 700; color: var(--akzent-text); margin-left: 2px; }
.wuensche-seite { display: flex; flex-direction: column; gap: 12px; padding: 12px 16px 32px; max-width: 760px; margin: 0 auto; }
.ws-kopf { display: flex; gap: 12px; align-items: center; } .ws-kopf h1 { margin: 0; font-size: 22px; line-height: 1.15; }
.ws-neu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.ws-neu > summary::-webkit-details-marker { display: none; }
.ws-neu[open] > summary { background: var(--flaeche); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--linie); }
.ws-neu form { padding: 14px 0 4px; gap: 10px; }
.ws-liste { display: flex; flex-direction: column; gap: 10px; }
.ws-titel { margin: 10px 0 0; font-size: 18px; }
.stimme { display: flex; gap: 12px; align-items: flex-start; background: var(--flaeche); border-radius: 16px; padding: 12px 14px; scroll-margin-top: 80px; }
.stimme.ausgeblendet { opacity: .6; }
.pfeil { flex: none; width: 46px; border: 0; border-radius: 12px; background: var(--flaeche2); color: var(--text); padding: 6px 0; display: flex; flex-direction: column; align-items: center;
  font: 800 13px 'Bricolage Grotesque', sans-serif; line-height: 1.25; cursor: pointer; transition: transform .12s, background .15s; }
.pfeil:hover { background: var(--linie); } .pfeil:active { transform: scale(.92); }
.pfeil.an { background: color-mix(in srgb, var(--akzent) 22%, transparent); color: var(--akzent-text); }
.ws-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ws-text b { font-size: 15px; } .ws-text p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--gedaempft); white-space: pre-line; }
.ws-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; margin-top: 2px; } .ws-meta form { margin: 0; display: inline; }
.pille { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--flaeche2); color: var(--gedaempft); }
.pille.o { background: color-mix(in srgb, var(--akzent) 20%, transparent); color: var(--akzent-text); }
.pille.g { background: var(--ok-bg); color: var(--ok-text); }
.pille.b { background: color-mix(in srgb, #5B8DEF 22%, transparent); color: #7FA6F5; }
.ws-link { border: 0; background: none; color: var(--meta); font: 600 12px 'Bricolage Grotesque', sans-serif; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--linie); }
.ws-link:hover { color: var(--text); }
.ws-verwalten { margin-top: 6px; font-size: 12.5px; } .ws-verwalten summary { cursor: pointer; color: var(--akzent-text); font-weight: 700; }
.ws-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 0; }
.ws-form select, .ws-form input:not([type=hidden]) { height: 34px; border-radius: 9px; border: 1.5px solid var(--feld-rand); background: transparent; color: var(--text); font: inherit; font-size: 13px; padding: 0 8px; min-width: 0; }
.ws-form input[name=erledigt_in] { flex: 1; min-width: 120px; }
.wuensche-kasten { display: flex; flex-direction: column; gap: 6px; margin: 18px 0 6px; padding: 0 16px; }
.detail-links > .app-reiter { margin: 0 0 4px; padding: 0 16px; }
@media (min-width: 900px) { .wuensche-kasten { padding: 0; } .detail-links > .app-reiter { padding: 0; } }
.wuensche-kasten h2 { margin: 0 0 4px; font-size: 18px; } .wuensche-kasten h2 span { color: var(--meta); font-weight: 500; font-size: 14px; }
.wk-zeile { display: flex; align-items: center; gap: 10px; background: var(--flaeche); border-radius: 12px; padding: 9px 12px; color: inherit; text-decoration: none; font-size: 14px; }
.wk-zeile i { font-style: normal; font-weight: 800; font-size: 12px; color: var(--akzent-text); min-width: 38px; }
.wk-zeile b { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zahlen-unter { margin: 10px 0 2px; font-size: 14px; } .zahlen-unter a { font-size: 12px; font-weight: 500; margin-left: 6px; }
