/*
 * App-spezifische Ergänzungen zu public/styles/huddlepick.css.
 * Nur Tokens aus dem Brand-Kit verwenden, keine eigenen Farben.
 */

/* Kopfbereich einer Seite: Titel plus Unterzeile */
.hp-page-head > :last-child { margin-bottom: 0; }
.hp-page-head h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }

.hp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hp-row--top { align-items: flex-start; }

/* Einfache Liste mit Trennlinien */
.hp-list { margin: 0; padding: 0; list-style: none; }
.hp-list > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--hp-border); }
.hp-list > li:last-child { border-bottom: 0; }

/* Vorschaubilder: Foto oder Initiale, immer quadratisch */
.hp-thumb { flex: none; width: 44px; height: 44px; border-radius: var(--hp-radius-sm); object-fit: cover; }
img.hp-thumb { background: var(--hp-surface-2); }
.hp-thumb.hp-initial { font-size: 1.25rem; border-radius: var(--hp-radius-sm); }
.hp-thumb--lg { width: 96px; height: 96px; border-radius: var(--hp-radius); }
.hp-thumb--lg.hp-initial { font-size: 2.6rem; }
.hp-venue { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hp-venue__name { font-weight: 600; }

.hp-venue-photo { display: block; width: 280px; max-width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--hp-radius-lg); }
img.hp-venue-photo { background: var(--hp-surface-2); }
.hp-venue-photo.hp-initial { font-size: 5rem; border-radius: var(--hp-radius-lg); }
.hp-venue-head { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.hp-venue-head figure { margin: 0; }

/* Auswahlliste mit Checkboxen (Umfrage-Kandidaten) */
.hp-options { display: grid; gap: 8px; }
.hp-option { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 14px; border: 1px solid var(--hp-border); border-radius: var(--hp-radius); background: var(--hp-bg); font-weight: 400; cursor: pointer; }
.hp-option:has(input:checked) { border-color: var(--hp-primary); }
.hp-option input { flex: none; }
.hp-option__hint { display: block; color: var(--hp-text-muted); font-size: 0.875rem; }

/* Radios nebeneinander (Art der Umfrage) */
.hp-choices { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Filter ein-/ausklappbar */
details.hp-details { padding: 12px 16px; border: 1px solid var(--hp-border); border-radius: var(--hp-radius); }
details.hp-details > summary { font-weight: 600; cursor: pointer; }
details.hp-details[open] > summary { margin-bottom: 12px; }

/* Teilen */
.hp-share { display: flex; gap: 8px; }
.hp-share input { flex: 1; min-width: 0; }
details.hp-qr-toggle > summary { list-style: none; }
details.hp-qr-toggle > summary::-webkit-details-marker { display: none; }
details.hp-qr-toggle[open] .hp-qr { margin-top: 12px; }

.hp-deadline { color: var(--hp-accent); font-weight: 600; }
.hp-veto { color: var(--hp-danger); font-size: 0.875rem; font-weight: 600; }

/* Gewinner-Karte */
.hp-winner { text-align: center; }
.hp-winner .hp-thumb--lg { margin: 0 auto 12px; }
.hp-winner__name { font-family: var(--hp-font-heading); font-size: 2rem; font-weight: 600; line-height: 1.15; color: var(--hp-accent); }
.hp-winner .hp-row { justify-content: center; margin-top: 16px; }
.hp-result__name a { color: inherit; }

/* Tabellen, die auf dem Handy seitlich scrollen dürfen */
.hp-table-scroll { overflow-x: auto; }

/* Kennzahlen (Statistik) */
.hp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.hp-tile__label, .hp-tile__sub { color: var(--hp-text-muted); font-size: 0.875rem; }
.hp-tile__value { font-family: var(--hp-font-heading); font-size: 1.9rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Balkendiagramm Ausgaben pro Monat: eine Reihe, eine Farbe */
.hp-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 180px; margin-bottom: 12px; }
.hp-bar-col { position: relative; display: flex; flex-direction: column; height: 100%; outline: none; }
.hp-bar-track { flex: 1; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--hp-border-strong); }
.hp-bar { width: min(22px, 70%); background: var(--hp-primary); border-radius: 4px 4px 0 0; }
.hp-bar-col:hover .hp-bar, .hp-bar-col:focus-visible .hp-bar { background: var(--hp-primary-hover); }
.hp-bar-label { padding-top: 4px; color: var(--hp-text-muted); font-size: 0.75rem; text-align: center; }
.hp-bar-label--current { color: var(--hp-text); font-weight: 600; }
.hp-bar-tip { display: none; position: absolute; bottom: calc(100% + 4px); left: 50%; z-index: 2; transform: translateX(-50%); padding: 4px 8px; border-radius: var(--hp-radius-sm); background: var(--hp-text); color: var(--hp-bg); font-size: 0.8rem; white-space: nowrap; pointer-events: none; }
.hp-bar-col:hover .hp-bar-tip, .hp-bar-col:focus-visible .hp-bar-tip { display: block; }
.hp-bar-col:first-child .hp-bar-tip { left: 0; transform: none; }
.hp-bar-col:last-child .hp-bar-tip { left: auto; right: 0; transform: none; }

.hp-narrow { max-width: 460px; }
.hp-link-danger { min-height: 0; padding: 0; border: 0; background: none; color: var(--hp-danger); font-weight: 600; }
.hp-link-danger:hover { background: none; color: var(--hp-danger); text-decoration: underline; }
