/* Jugendtreff Tutorials – dunkel, ruhig, Minecraft-Grün als Akzent */
@font-face { font-family: "Bricolage"; src: url("/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
:root {
  --grund: #0f1216; --flaeche: #171b21; --flaeche2: #1e232b; --linie: #2a313b; --text: #e9edf2; --leise: #9aa4b2;
  --gruen: #8fd14f; --gruen-d: #5fa82a; --gelb: #f2b33d; --rot: #f06b6b; --rund: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--text); font: 16px/1.5 "Bricolage", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: hidden; }
a { color: var(--gruen); }
img { max-width: 100%; height: auto; }
h1, h2 { line-height: 1.2; letter-spacing: -0.01em; }
.leise { color: var(--leise); } .klein { font-size: 14px; }
small { color: var(--leise); font-weight: 500; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 10px max(16px, calc((100vw - 1400px) / 2));
  background: rgba(15, 18, 22, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linie); }
.marke { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 19px; flex: none; }
.marke small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--leise); font-weight: 700; margin-top: -2px; }
.marke-zeichen { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--flaeche2); image-rendering: pixelated; }
.marke > span:last-child { display: flex; flex-direction: column; line-height: 1.1; }
.suche { flex: 1; min-width: 0; }
.suche input { width: 100%; max-width: 560px; display: block; margin: 0 auto; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--linie); background: var(--flaeche); color: var(--text); font: inherit; font-size: 15px; }
.suche input:focus { outline: 2px solid var(--gruen-d); border-color: transparent; }
.kopf-rechts { display: flex; align-items: center; gap: 8px; flex: none; }
.avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gruen-d); color: #0b1606; font-weight: 800; text-decoration: none; flex: none; }
.avatar.gross { width: 64px; height: 64px; font-size: 28px; }
@media (max-width: 760px) {
  .kopf { flex-wrap: wrap; gap: 10px; }
  .suche { order: 3; flex-basis: 100%; }
  .kopf-rechts { margin-left: auto; }
  .kopf-rechts .knopf.hell { padding: 9px 12px; font-size: 14px; }
}

/* Knöpfe, Chips */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 9px 16px; border-radius: 12px; border: 1px solid var(--linie);
  background: var(--flaeche2); color: var(--text); font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.knopf:hover { border-color: #3a4350; }
.knopf.hell, .knopf.an { background: var(--gruen); border-color: var(--gruen); color: #0b1606; }
.knopf.gefahr { color: var(--rot); }
.knopf.klein { min-height: 34px; padding: 5px 11px; font-size: 14px; border-radius: 10px; }
.knopf.breit { width: 100%; }
.knopf:disabled { opacity: .5; cursor: wait; }
.pille { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--linie); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.pille.warn { background: rgba(242, 179, 61, .15); border-color: var(--gelb); color: var(--gelb); }
.pille.ok { color: var(--gruen); border-color: var(--gruen-d); }
.pille.schlecht { color: var(--rot); border-color: var(--rot); }
.chip { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--flaeche2); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.chip.an { background: var(--text); color: var(--grund); }
.chip.klein { padding: 3px 10px; font-size: 12px; color: var(--leise); }

main { padding: 0 max(16px, calc((100vw - 1400px) / 2)) 60px; }
.einstieg { padding: 28px 0 8px; }
.einstieg h1 { margin: 0; font-size: clamp(26px, 4vw, 40px); font-weight: 800; }
.einstieg p { margin: 6px 0 0; color: var(--leise); }
.leiste { display: flex; align-items: center; gap: 12px; margin: 16px 0 18px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.sortierung { display: flex; gap: 4px; flex: none; background: var(--flaeche); border-radius: 999px; padding: 3px; }
.sortierung a { padding: 5px 12px; border-radius: 999px; color: var(--leise); text-decoration: none; font-size: 14px; font-weight: 700; }
.sortierung a.an { background: var(--flaeche2); color: var(--text); }

/* Pinnwand (Spalten wie bei Pinterest) */
.pinnwand { column-width: 260px; column-gap: 16px; }
.karte { break-inside: avoid; margin: 0 0 16px; background: var(--flaeche); border-radius: var(--rund); overflow: hidden; border: 1px solid var(--linie); transition: transform .15s; }
.karte:hover { transform: translateY(-2px); }
.karte-bild { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--flaeche2); }
.karte-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.karte-bild.ohne img { visibility: hidden; }
.spielen { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; font-size: 14px; opacity: 0; transition: opacity .15s; }
.karte:hover .spielen { opacity: 1; }
.karte-text { padding: 12px 14px 14px; display: grid; gap: 8px; }
.karte-titel { color: var(--text); text-decoration: none; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.karte-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--leise); font-size: 13px; }
.karte-meta span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.karte-items { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.karte-items img { width: 28px; height: 28px; image-rendering: pixelated; background: var(--flaeche2); border-radius: 6px; padding: 2px; }
.karte-items span { font-size: 12px; color: var(--leise); font-weight: 700; padding-left: 2px; }
.karte .chip.klein { justify-self: start; }
.leer { text-align: center; padding: 70px 16px; color: var(--leise); }
.leer img { image-rendering: pixelated; }

/* Video-Seite */
.video-seite { padding-top: 22px; }
.video-raster { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .video-raster { grid-template-columns: 1fr; } }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--rund); overflow: hidden; background: #000; }
.player img, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.player-start { position: absolute; inset: 0; margin: auto; width: 84px; height: 60px; border: 0; border-radius: 16px; background: rgba(230, 33, 23, .92); color: #fff; font-size: 26px; cursor: pointer; }
.player-hinweis { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 8px 12px; font-size: 12px; color: #ddd; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.video-haupt h1 { font-size: clamp(22px, 3vw, 30px); margin: 16px 0 6px; }
.video-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--leise); font-size: 14px; }
.video-aktionen { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.video-text { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); padding: 14px 16px; white-space: normal; overflow-wrap: anywhere; }
.video-liste { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); padding: 16px; position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; }
@media (max-width: 1000px) { .video-liste { position: static; max-height: none; } }
.liste-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.liste-kopf h2 { margin: 0; font-size: 20px; } .liste-kopf h2 small { display: block; font-size: 13px; }
.liste-knoepfe { display: flex; gap: 6px; }
.item-liste { list-style: none; margin: 8px 0 0; padding: 0; }
.item-liste label { display: grid; grid-template-columns: 22px 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--linie); cursor: pointer; }
.item-liste li:last-child label { border-bottom: 0; }
.item-liste img { image-rendering: pixelated; }
.item-liste input { width: 20px; height: 20px; accent-color: var(--gruen-d); }
.item-name { font-weight: 700; overflow-wrap: anywhere; } .item-name small { display: block; font-size: 12px; }
.item-menge { text-align: right; } .item-menge small { display: block; font-size: 12px; }
.item-liste input:checked ~ .item-name, .item-liste input:checked ~ .item-menge { opacity: .4; text-decoration: line-through; }
.mehr { margin-top: 36px; }

/* Boxen, Formulare */
.box { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); padding: 22px; }
.box.schmal { max-width: 440px; margin: 36px auto 0; display: grid; gap: 14px; }
.box h1 { margin: 0; }
label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
label small { font-weight: 500; }
input, select, textarea { font: inherit; font-size: 16px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--linie); background: var(--grund); color: var(--text); width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gruen-d); border-color: transparent; }
input[type=checkbox] { width: auto; }
.haken { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.haken input { width: 20px; height: 20px; accent-color: var(--gruen-d); }
.falle { position: absolute; left: -9999px; }
.hinweis { padding: 12px 16px; border-radius: 12px; background: rgba(143, 209, 79, .12); border: 1px solid var(--gruen-d); margin: 0 0 14px; }
.hinweis.schlecht { background: rgba(240, 107, 107, .12); border-color: var(--rot); }
.text ol { padding-left: 20px; display: grid; gap: 8px; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Editor */
.editor { padding-top: 20px; }
.editor-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; position: sticky; top: 61px; z-index: 20; background: var(--grund); padding: 10px 0; }
.editor-kopf h1 { margin: 0; font-size: clamp(22px, 3vw, 30px); }
.editor-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
@media (max-width: 960px) {
  .editor-raster { grid-template-columns: 1fr; }
  .editor-kopf { position: static; }
  /* Speichern-Knopf am Handy immer unten im Daumenbereich */
  #speichern { position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 40; min-height: 52px; font-size: 17px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
  body.mit-editor main { padding-bottom: 100px; }
}
.editor .box { display: grid; gap: 14px; }
.editor h2 { margin: 0; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.nr { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gruen); color: #0b1606; font-size: 15px; }
.yt-vorschau { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: center; background: var(--grund); border-radius: 12px; padding: 8px; }
.yt-vorschau img { border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.ablage { border: 2px dashed var(--linie); border-radius: 12px; padding: 14px; text-align: center; color: var(--leise); font-size: 14px; }
.ablage.drueber { border-color: var(--gruen); color: var(--gruen); }
.liste-eingabe { display: grid; gap: 10px; }
.unklar { background: rgba(242, 179, 61, .1); border: 1px solid var(--gelb); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.unklar ul { margin: 6px 0 0; padding-left: 18px; }
.item-editor { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.item-editor li { display: grid; grid-template-columns: 40px minmax(0, 1fr) 110px 36px; gap: 10px; align-items: center; background: var(--grund); border: 1px solid var(--linie); border-radius: 12px; padding: 6px 8px; }
.item-editor li.unsicher { border-color: var(--gelb); }
.item-editor img { image-rendering: pixelated; width: 40px; height: 40px; }
.item-editor .name { font-weight: 700; overflow-wrap: anywhere; line-height: 1.25; } .item-editor .name small { display: block; font-size: 12px; }
.item-editor input { padding: 8px 10px; text-align: right; }
.item-editor .weg { border: 0; background: none; color: var(--leise); font-size: 20px; cursor: pointer; border-radius: 8px; height: 36px; }
.item-editor .weg:hover { color: var(--rot); background: var(--flaeche2); }
.item-editor .menge-text { grid-column: 2 / 4; font-size: 12px; color: var(--leise); margin-top: -6px; }
.item-hinzu { position: relative; }
.vorschlaege { position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: 6px; background: var(--flaeche2); border: 1px solid var(--linie); border-radius: 12px; max-height: 300px; overflow-y: auto; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.vorschlaege li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.vorschlaege li[aria-selected=true], .vorschlaege li:hover { background: var(--grund); }
.vorschlaege img { width: 32px; height: 32px; image-rendering: pixelated; }
@media (max-width: 520px) { .item-editor li { grid-template-columns: 36px minmax(0, 1fr) 84px 30px; gap: 8px; } .item-editor img { width: 36px; height: 36px; } }

/* Konto, Team */
.konto { max-width: 1000px; margin: 0 auto; padding-top: 24px; }
.konto-kopf { display: flex; align-items: center; gap: 16px; } .konto-kopf h1 { margin: 0; } .konto-kopf p { margin: 0; }
.konto-kopf form { margin-left: auto; }
.zeilen { list-style: none; padding: 0; display: grid; gap: 8px; }
.zeilen li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 10px 12px; }
.zeilen li > a:not(.knopf) { flex: 1; min-width: 160px; color: var(--text); font-weight: 700; }
.zeilen img { border-radius: 8px; object-fit: cover; }
.zeilen form { display: flex; gap: 6px; margin: 0; } .zeilen select { padding: 6px 8px; width: auto; }
.pruefen { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; margin-bottom: 12px; }
.pruefen img { border-radius: 10px; width: 100%; }
.pruefen p { margin: 4px 0 8px; }
.pruefen .ablehnen { display: flex; gap: 6px; } .pruefen .ablehnen input { width: 200px; }
@media (max-width: 640px) { .pruefen { grid-template-columns: 1fr; } .pruefen .ablehnen { flex-wrap: wrap; } .pruefen .ablehnen input { width: 100%; } }
details summary { cursor: pointer; font-weight: 700; }
details form { display: grid; gap: 12px; margin-top: 12px; }
.konto > details { margin-top: 30px; }

.fuss { text-align: center; color: var(--leise); font-size: 13px; padding: 24px 16px 40px; border-top: 1px solid var(--linie); }
