/* Grafiken auswählen, herunterladen, teilen: gemeinsam für Quizpoker-Seite und Presse-Cloud. Werte aus tokens.css. */
/* Grafiken zum Teilen: Raster mit Auswahl, Filter und Leiste zum gesammelten Herunterladen */
.ev-grafiken { padding-bottom: 72px; margin-bottom: 72px; border-bottom: 1px solid var(--line); }
.gr-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.gr-filter button { height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--dgt-radius-md); background: transparent; color: var(--muted); font: 500 14px/1 var(--dgt-font-ui); cursor: pointer;
  transition: border-color var(--dgt-dur-fast) var(--dgt-ease-out), color var(--dgt-dur-fast) var(--dgt-ease-out); }
.gr-filter button:hover { color: var(--fg); border-color: var(--muted); }
.gr-filter button[aria-pressed="true"] { color: var(--fg); border-color: var(--accent); background: var(--surface); }
.gr-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: dense; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.gr[hidden], .gr[data-aus] { display: none; }
.gr { position: relative; display: grid; gap: 10px; }
.gr__wahl { display: grid; gap: 10px; cursor: pointer; }
.gr__wahl input { position: absolute; top: 12px; left: 12px; z-index: 1; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.gr__bild { display: grid; place-items: center; height: 220px; padding: 16px; border: 1px solid var(--line); border-radius: var(--dgt-radius-md); background: var(--dgt-ink-950);
  transition: border-color var(--dgt-dur-fast) var(--dgt-ease-out), box-shadow var(--dgt-dur-fast) var(--dgt-ease-out); }
.gr__bild img { max-width: 100%; max-height: 186px; width: auto; height: auto; border-radius: var(--dgt-radius-sm); }
.gr__wahl:hover .gr__bild { border-color: var(--muted); }
.gr__wahl:has(input:checked) .gr__bild { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.gr__wahl:has(input:focus-visible) .gr__bild { outline: var(--dgt-focus-width) solid var(--accent); outline-offset: var(--dgt-focus-offset); }
.gr__fuss { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.gr__name { font-weight: 600; }
.gr--quer { grid-column: span 2; }
@media (max-width: 560px) { .gr-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .gr__fuss .dl { font-size: 12px; padding: 0 8px; } .gr__fuss .datei-info { display: none; } .gr-leiste { padding: 10px; gap: 8px; } .gr-leiste .knopf { height: auto; min-height: 40px; padding: 8px 12px; line-height: 1.2; text-align: center; } .gr-leiste .knopf { flex: 1 1 0; justify-content: center; } .gr--quer { grid-column: 1 / -1; } .gr__bild { height: 160px; padding: 10px; } .gr__bild img { max-height: 138px; } }

.gr-leiste { position: sticky; bottom: 16px; z-index: 3; margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 12px 12px 20px;
  border: 1px solid var(--line); border-radius: var(--dgt-radius-lg); background: var(--surface); box-shadow: 0 20px 40px var(--bg); }
.gr-leiste__zahl { font-weight: 600; }
.gr-leiste__alle { margin-right: auto; padding: 4px 0; border: 0; background: none; color: var(--accent); font: 500 14px/1.4 var(--dgt-font-ui); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gr-leiste[data-leer] .gr-leiste__zahl { color: var(--muted); font-weight: 500; }
.knopf:disabled { cursor: not-allowed; filter: saturate(0.4) brightness(0.8); }

/* Personenwahl unter „Für Teilnehmende“ */
.gr-leute { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: -8px 0 28px; }
.gr-leute[hidden] { display: none; }
.gr-leute__frage { font-weight: 600; color: var(--muted); }
.gr-leute__wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.gr-leute__wahl button { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px 0 6px; border: 1px solid var(--line); border-radius: var(--dgt-radius-md);
  background: transparent; color: var(--fg); font: 600 15px/1 var(--dgt-font-ui); cursor: pointer;
  transition: border-color var(--dgt-dur-fast) var(--dgt-ease-out), background-color var(--dgt-dur-fast) var(--dgt-ease-out); }
.gr-leute__wahl button:hover { border-color: var(--muted); }
.gr-leute__wahl button[aria-pressed="true"] { border-color: var(--accent); background: var(--surface); }
.gr-leute__wahl button:active { transform: scale(.97); }
.gr-leute__bild { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--surface);
  box-shadow: 0 0 0 2px var(--accent); font: 800 16px/1 var(--dgt-font-display); color: var(--accent); }
.gr-leute__bild img { width: 100%; height: 100%; object-fit: cover; }

.gr-leiste [data-teilen][hidden] { display: none; }

/* Schloss für die persönlichen Grafiken */
.gr-schloss { margin-bottom: 24px; padding: 28px; border: 1px solid var(--line); border-radius: var(--dgt-radius-lg); background: var(--surface); }
.gr-schloss[hidden], .gr-schloss [hidden] { display: none; }
.gr-schloss h3 { font: 700 22px/1.2 var(--dgt-font-display); letter-spacing: -0.02em; margin: 0 0 6px; }
.gr-schloss__aus { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.gr-schloss__aus .stapel { flex: 1 1 320px; min-width: 0; }
.gr-schloss__aus p { max-width: 62ch; }
@media (max-width: 760px) { .gr-schloss { padding: 20px; } }
button.dl { background: transparent; cursor: pointer; font: 500 13px/1 var(--dgt-font-mono); }
