/* Statistik, Einstellungen, Profil, Agreement, Onboarding (re/notes/03 + 02 §9). Maße in CSS-px = logische Flutter-Pixel. */

/* ------------------------------------------------------------ Unterseiten (AppBar mit Zurück + Titel) */
.subpage { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; background: var(--bg); }
.subpage .page { padding-bottom: calc(24px + var(--safe-bottom)); }
.appbar .back .mi { font-size: 24px; }
.appbar .action .ci { font-size: 24px; }

/* ------------------------------------------------------------ Statistik */
.stats { padding-left: 20px; padding-right: 20px; }
.stats-event { padding: 20px 20px 40px; }
.month-title { padding: 0 0 10px 10px; text-align: center; font-size: 13px; font-weight: 700; color: var(--text2); }
.month-card { background: var(--card); border-radius: 20px; box-shadow: 0 0 10px 2px var(--shadow); overflow: hidden; margin-bottom: 20px; }
.ev-row { display: flex; align-items: center; min-height: 64px; padding: 4px 16px; position: relative; cursor: pointer; transition: background .15s; }
.ev-row.pressed { background: rgba(255, 255, 255, .05); }
.ev-row + .ev-row::before { content: ""; position: absolute; top: 0; left: 6%; right: 6%; height: .7px; background: var(--sep); }
.ev-side { flex: 0 0 18%; display: flex; flex-direction: column; align-items: center; font-size: 12px; color: var(--text2); white-space: nowrap; }
.ev-mid { flex: 1; display: flex; justify-content: space-around; align-items: center; font-size: 18px; font-weight: 700; color: var(--text); }
.stats .info-msg { padding: 0 0 0; }
.stats-space50 { height: 50px; }

.tiles { display: flex; flex-wrap: wrap; gap: var(--gap); }
.tile-sq, .tile-sm { width: calc((100% - var(--gap)) / 2); background: var(--card); border-radius: 22px; padding: 13px 20px; display: flex; flex-direction: column; text-align: left; }
.tile-sq { aspect-ratio: 1; }
.tile-sm { aspect-ratio: 2; justify-content: space-between; }
.tile-big { width: 100%; background: var(--card); border-radius: 22px; position: relative; overflow: hidden; aspect-ratio: 2.06; }
.tile-t { font-size: 13.3px; color: var(--text2); text-transform: uppercase; line-height: 1.2; }
.tile-sq .main { margin-top: 26px; font-size: 25.2px; font-weight: 700; color: var(--text); white-space: nowrap; line-height: 1.17; }
.tile-sq .second { margin-top: auto; font-size: 12.6px; color: var(--text); line-height: 1.2; }
.tile-sm .row { display: flex; justify-content: space-between; align-items: baseline; }
.tile-sm .main { font-size: 19.6px; font-weight: 700; color: var(--text); white-space: nowrap; }
.tile-sm .second { font-size: 12.6px; color: var(--text2); }
.tile-sm.rev .tile-t { text-align: right; }
.tile-sm.rev .row { flex-direction: row-reverse; }
.tile-big .tile-t { position: absolute; left: 20px; top: 13px; }
.tile-big .plot { position: absolute; left: 20px; right: 20px; top: 13px; bottom: 4px; }
.tile-big .plot svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.event-list { margin-top: var(--gap); }   /* einheitlicher Abstand wie zwischen den Kacheln */

.filter { display: flex; gap: 10px; padding-top: 20px; padding-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.filter::-webkit-scrollbar { display: none; }
.filter button { flex: none; height: 36px; padding: 0 20px; border-radius: 999px; background: var(--card); color: var(--text); font-size: 15px; }
.filter button.on { background: var(--chip-active); }
.rank { margin: var(--gap) 0 60px; }
.rank .group { padding: 13px 8px 6px; }
.rank .drink-row .cnt { flex: none; font-size: 19.6px; font-weight: 700; color: var(--text); }
.rank .drink-row .meta .sz { width: 30vw; max-width: 130px; }
.rank .empty-row { height: 8px; }

/* ------------------------------------------------------------ Einstellungen / Profil (settings_ui, iOS-Dark) */
.sett { padding-top: 12px; }
.sett .list-section { margin: 0 16px; }
.sett .ls-title { font-size: 14px; color: #8E8E93; padding: 22px 18px 9px; }
.sett .list-item { min-height: 52px; padding: 0 22px 0 19px; gap: 12px; font-size: 17px; }
.sett .list-item + .list-item::before { left: 19px; right: 0; }
.sett .list-item.with-icon + .list-item.with-icon::before { left: 55px; }
.sett .list-item .li-icon { width: 24px; font-size: 22px; color: #8E8E93; text-align: center; flex: none; }
.sett .list-item .li-icon.mi { font-size: 24px; }
.sett .list-item .li-value { color: #8E8E93; }
.sett .list-item .chev { color: #8E8E93; font-size: 17px; }
.sett .list-item.red, .sett .list-item.red .li-icon { color: #F44336; }
.sett .list-item.dim { color: rgba(255, 255, 255, .35); pointer-events: none; }
.sett .list-item.dim .li-icon, .sett .list-item.dim .chev { color: rgba(255, 255, 255, .25); }
.sett .list-group.on-sheet { background: var(--field); }
.sett.in-sheet { padding-top: 0; }
.sett.in-sheet .list-section { margin: 0 16px; }

.seg2 { display: flex; width: 164px; padding: 2px 3px; background: rgba(118, 118, 128, .24); border-radius: 9px; flex: none; }
.seg2 button { flex: 1; height: 28px; border-radius: 7px; font-size: 15px; color: var(--text); }
.seg2 button.on { background: #636366; font-weight: 600; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); color: #fff; }

.about-card { width: 66.7%; margin: 20px auto 36px; height: 216px; background: var(--card); border-radius: 25px; padding: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; }
.about-card .nm { font-size: 18px; font-weight: 700; color: var(--text); }
.about-card .ver { font-size: 12px; color: var(--text2); margin-top: 2px; }
.about-card img { width: 40px; height: 40px; border-radius: 9px; }
.about-card .info-msg { font-size: 11.2px; }
.disclaimer-text { padding: 20px; font-size: 14px; color: var(--text); line-height: 1.3; white-space: pre-line; }
.data-page { padding-top: 32px; }

/* Appdaten-löschen-Dialog */
.del-dialog { width: 271px; }
.del-dialog .a-body { padding: 24px 0 0; }
.del-dialog .a-title { padding: 0 16px 18px; }
.del-dialog .d-rows { margin: 0 20px; border-top: .5px solid #57585A; border-bottom: .5px solid #57585A; padding: 8px 0 10px; text-align: left; }
.del-dialog .d-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; width: 100%; text-align: left; }
.del-dialog .d-row .tx { flex: 1; }
.del-dialog .d-row .tt { font-size: 15px; color: var(--text); }
.del-dialog .d-row .st { font-size: 12px; color: var(--text2); margin-top: 1px; line-height: 1.3; }
.del-dialog .d-note { padding: 14px 16px 16px; font-size: 11.2px; color: var(--text2); line-height: 1.3; }
.del-dialog .cbox { margin: 0 8px 0 0; border-radius: 2px; }

/* ------------------------------------------------------------ Agreement */
.agreement { flex: 1; overflow-y: auto; min-height: 0; padding: calc(40px + var(--safe-top)) 20px 40px; }
.agreement .header { padding-bottom: 12px; }
.agreement .lang-row { margin: 20px 0 0; height: 56px; gap: 0; padding: 0 20px; cursor: pointer; text-align: left; }
.agreement .lang-row .ci:first-child { font-size: 24px; width: 24px; }
.agreement .lang-row .nm { flex: 1; padding-left: 24px; }
.agreement .lang-row .chev { font-size: 18px; color: var(--text); }
.agreement .box { margin-top: 20px; }
.agreement .scroll { font-size: 14px; line-height: 1.17; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .45) transparent; }
.agreement .scroll::-webkit-scrollbar { width: 3px; }
.agreement .scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .45); border-radius: 2px; }
.agreement .check-row { padding: 0; min-height: 48px; font-size: 14px; margin-top: 0; text-align: left; width: 100%; }
.agreement .check-row.first { margin-top: 20px; }
.agreement .check-row .cbox { margin: 0 8px; }
.agreement .check-row .lnk { color: #2196F3; }
.agreement .start-btn { width: 163px; height: 48px; }

/* Onboarding-Sheet */
.onb { padding: 20px 0; }
.onb .o-h { text-align: center; font-size: 24px; font-weight: 700; color: var(--text); }
.onb .o-t { text-align: center; padding: 20px 30px 20px; font-size: 16px; font-weight: 500; color: var(--text); line-height: 1.2; }
.onb .info-msg { padding: 44px 20px 0; font-size: 11.2px; }
.onb .blue-button { width: 187px; height: 51px; margin-top: 44px; padding: 0; }

/* Picker-Sheet liegt über anderen Sheets (Onboarding) – sein Barrier muss ebenfalls darüber liegen */
/* Ebenen-Reihenfolge regelt jetzt stapeln() in ui.js */
.agreement .check-row .cbox { flex: none; width: 18px; height: 18px; }
