/* Drink Buddy – Look & Feel 1:1 nach Drinkally 1.2.3 (Flutter, Material-2 dark + Cupertino).
   Maße in CSS-px = logische Flutter-Pixel. Quellen: re/notes/02_ui_home_drinks.md, 03_ui_statistik_settings.md */

@font-face { font-family: "CupertinoIcons"; src: url("../fonts/CupertinoIcons.ttf") format("truetype"); font-display: block; }
@font-face { font-family: "MaterialIcons"; src: url("../fonts/MaterialIcons-Regular.otf") format("opentype"); font-display: block; }

:root {
  --bg: #000000;
  --card: #1C1C1E;
  --field: #2C2C2E;
  --chip-active: #44464A;
  --blue: #5C81FF;
  --red: #EA2B4A;
  --text: rgba(255, 255, 255, .85);     /* #D9FFFFFF */
  --text2: rgba(255, 255, 255, .6);     /* #99FFFFFF */
  --sep: rgba(158, 158, 158, .2);
  --shadow: rgba(0, 0, 0, .3);
  --ios-blue: #2196F3;                  /* Text-Buttons in Sheets (Colors.blue) */
  --ios-red: #F44336;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --gap: 12px;                          /* EIN Kachel-Abstand: Spalte = Zeile (Original 0.03·W ≈ 12 px) */
  --appbar: 56px;
  --nav: 56px;
  --font: "Helvetica Neue", Roboto, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 14px; line-height: 1.17; -webkit-font-smoothing: antialiased; overscroll-behavior: none;
  -webkit-text-size-adjust: 100%; }
body { overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
img { -webkit-user-drag: none; user-select: none; }

.ci { font-family: "CupertinoIcons"; font-style: normal; font-weight: normal; line-height: 1; display: inline-block;
  speak: never; -webkit-font-smoothing: antialiased; }
.mi { font-family: "MaterialIcons"; font-style: normal; font-weight: normal; line-height: 1; display: inline-block;
  font-feature-settings: "liga"; }

/* ------------------------------------------------------------ App-Hülle */
#app { position: fixed; inset: 0; display: flex; flex-direction: column; }
.appbar { flex: none; height: calc(var(--appbar) + var(--safe-top)); padding-top: var(--safe-top); background: var(--bg);
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 5; }
.appbar .logo { height: 40px; width: auto; filter: brightness(.85); cursor: pointer; position: relative; }
.logo-wrap { position: relative; height: 40px; display: inline-block; }
.logo-wrap .glow { position: absolute; inset: 0; mix-blend-mode: multiply; pointer-events: none;
  -webkit-mask: var(--logo-mask) center/contain no-repeat; mask: var(--logo-mask) center/contain no-repeat; opacity: 0; }
.appbar .action { position: absolute; right: 4px; top: calc(var(--safe-top) + 6px); width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; color: var(--text); font-size: 24px; }
.appbar .action .avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255, 255, 255, .35); display: block; }
.appbar .back { position: absolute; left: 4px; top: calc(var(--safe-top) + 4px); width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center; color: var(--text); font-size: 24px; }
.appbar.titled { justify-content: flex-start; }
.appbar .title { position: absolute; left: 72px; font-size: 20px; font-weight: 500; color: var(--text); }

.page { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; position: relative; }
.page::-webkit-scrollbar { display: none; }

.bottomnav { flex: none; height: calc(var(--nav) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
  background: var(--card); display: flex; }
.bottomnav button { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 24px;
  color: rgba(255, 255, 255, .7); }
.bottomnav button.active { color: #FFFFFF; }

.fab { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav) + var(--safe-bottom) + 16px);
  width: 56px; height: 56px; border-radius: 50%; background: var(--field); color: var(--text); font-size: 26px;
  display: flex; align-items: center; justify-content: center; z-index: 4; transition: transform .1s; }
.fab:active { transform: translateX(-50%) scale(.95); }

/* ------------------------------------------------------------ Gemeinsame Bausteine */
.px20 { padding-left: 20px; padding-right: 20px; }
.header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; }
.header h2 { margin: 0; font-size: 18px; font-weight: 700; color: var(--text); }
.header .sub { font-size: 13px; color: var(--text2); }
.info-msg { text-align: center; color: var(--text2); font-size: 11.5px; line-height: 1.25; }
.placeholder { background: var(--card); border-radius: 20px; padding: 20px; text-align: center; font-size: 13px; color: var(--text2); }
.card { background: var(--card); border-radius: 20px; box-shadow: 0 0 10px 2px var(--shadow); }
.sep { height: .7px; background: var(--sep); }

.blue-button { display: block; margin: 0 auto; height: 50px; padding: 0 58px; border-radius: 8px;
  background: var(--blue); color: #FFFFFF; font-size: 17px; transition: opacity .1s; }
.blue-button:active { opacity: .4; }
.blue-button:disabled { background: var(--field); color: var(--text); }
.text-button { color: var(--ios-blue); font-size: 17px; min-height: 44px; display: inline-flex; align-items: center; }
.text-button:active { opacity: .4; }

/* ------------------------------------------------------------ Sheets (showCupertinoModalPopup + ModalPopupBuilder) */
.barrier { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 50; opacity: 0; transition: opacity .3s; }
.barrier.show { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; top: var(--safe-top); z-index: 51; display: flex; flex-direction: column;
  background: var(--card); border-radius: 25px 25px 0 0; transform: translateY(105%);
  transition: transform .335s cubic-bezier(.2, .9, .3, 1); padding-bottom: var(--safe-bottom); overflow: hidden; }
.sheet.show { transform: none; }
.sheet.dragging { transition: none; }
.sheet.fit { top: auto; max-height: calc(100% - var(--safe-top) - 38px); border-radius: 25px; left: 8px; right: 8px; bottom: calc(8px + var(--safe-bottom)); }
.sheet-head { flex: none; position: relative; height: 64px; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; }
.sheet-head .t { position: absolute; left: 0; right: 0; text-align: center; font-size: 18px; font-weight: 500; color: var(--text); pointer-events: none; }
.sheet-body { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; }
.sheet-body::-webkit-scrollbar { display: none; }

/* ------------------------------------------------------------ Snackbar */
.snackbar { position: fixed; left: 0; right: 0; bottom: calc(var(--nav) + var(--safe-bottom)); z-index: 80; background: var(--card);
  border-radius: 10px 10px 0 0; min-height: 48px; display: flex; align-items: center; padding: 0 8px 0 24px; color: var(--text);
  font-size: 14px; transform: translateY(110%); transition: transform .25s ease; box-shadow: 0 -2px 10px rgba(0, 0, 0, .4); }
.snackbar.floating { left: 8px; right: 8px; border-radius: 10px; bottom: calc(var(--nav) + var(--safe-bottom) + 76px); }
.snackbar.show { transform: none; pointer-events: auto; }
.snackbar:not(.show) { pointer-events: none; }   /* verdeckt beim Ein-/Ausfahren nicht die Navigation */
.snackbar .msg { flex: 1; text-align: center; padding: 14px 0; }
.snackbar .act { color: var(--ios-blue); font-weight: 500; font-size: 14px; padding: 0 16px; height: 36px; }

/* ------------------------------------------------------------ Kontextmenü (CupertinoContextMenu) */
.ctx-layer { position: fixed; inset: 0; z-index: 70; }
.ctx-blur { position: absolute; inset: 0; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); background: rgba(0, 0, 0, .35);
  opacity: 0; transition: opacity .25s; }
.ctx-layer.show .ctx-blur { opacity: 1; }
.ctx-clone { position: absolute; transition: transform .5s cubic-bezier(.175, .885, .32, 1.275); transform-origin: center; }
.ctx-menu { position: absolute; width: 250px; border-radius: 13px; overflow: hidden; background: rgba(37, 37, 39, .92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transform: scale(.4); opacity: 0;
  transition: transform .5s cubic-bezier(.175, .885, .32, 1.275), opacity .2s; }
.ctx-layer.show .ctx-menu { transform: none; opacity: 1; }
.ctx-menu button { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
  height: 46px; font-size: 16px; color: var(--text); text-align: left; }
.ctx-menu button + button { border-top: .5px solid #57585A; }
.ctx-menu button:active { background: rgba(255, 255, 255, .08); }
.ctx-menu button.destructive { color: var(--ios-red); }
.ctx-menu button.plus { color: #F5C242; }
.ctx-menu .ci { font-size: 20px; }

/* ------------------------------------------------------------ Alert (CupertinoAlertDialog) */
.alert-layer { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .4); backdrop-filter: blur(1px); opacity: 0; transition: opacity .15s; }
.alert-layer.show { opacity: 1; }
.alert { width: 270px; border-radius: 14px; background: rgba(37, 37, 39, .97); text-align: center; overflow: hidden;
  transform: scale(1.1); transition: transform .1s cubic-bezier(0, 0, .2, 1); }
.alert-layer.show .alert { transform: none; }
.alert .a-body { padding: 19px 16px 16px; }
.alert .a-title { font-size: 17px; font-weight: 600; color: #FFFFFF; }
.alert .a-msg { margin-top: 10px; font-size: 13px; color: #FFFFFF; line-height: 1.3; }
.alert .a-actions { display: flex; border-top: .5px solid #57585A; }
.alert .a-actions.stack { flex-direction: column; }
.alert .a-actions.stack button { flex: none; }   /* sonst schrumpft Safari die Knöpfe in der Spalte auf Texthöhe */
.alert .a-actions button { flex: 1; height: 44px; font-size: 17px; color: #0A84FF; }
.alert .a-actions button + button { border-left: .5px solid #57585A; }
.alert .a-actions.stack button + button { border-left: 0; border-top: .5px solid #57585A; }
.alert .a-actions button.default { font-weight: 600; }
.alert .a-actions button.destructive { color: #FF453A; }
.alert input { width: 100%; margin-top: 20px; height: 44px; border-radius: 10px; border: 0; background: var(--field);
  color: var(--text); text-align: center; font-size: 16px; outline: none; }
.alert .a-err { color: var(--ios-red); font-size: 13px; margin-top: 12px; min-height: 0; }

/* ------------------------------------------------------------ Action Sheet + Picker-Räder (Cupertino) */
.action-sheet { position: fixed; left: 8px; right: 8px; bottom: calc(8px + var(--safe-bottom)); z-index: 61; transform: translateY(110%);
  transition: transform .335s cubic-bezier(.2, .9, .3, 1); }
.action-sheet.show { transform: none; }
.action-sheet .as-group { background: rgba(37, 37, 39, .97); border-radius: 14px; overflow: hidden; }
.action-sheet .as-cancel { margin-top: 8px; background: rgba(37, 37, 39, .97); border-radius: 14px; height: 57px; width: 100%;
  font-size: 20px; color: #0A84FF; font-weight: 400; }
.picker { position: relative; height: 180px; display: flex; justify-content: center; gap: 0; overflow: hidden; }
.picker .band { position: absolute; left: 40px; right: 40px; top: 50%; height: 32px; margin-top: -16px; border-radius: 8px;
  background: rgba(118, 118, 128, .24); pointer-events: none; }
.wheel { position: relative; height: 180px; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 35%, #000 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.35) 12%, #000 40%, #000 60%, rgba(0,0,0,.35) 88%, transparent 100%); }
.wheel::-webkit-scrollbar { display: none; }
.wheel .pad { height: 74px; }
.wheel .item { height: 32px; line-height: 32px; scroll-snap-align: center; text-align: center; font-size: 21px; color: #FFFFFF;
  white-space: nowrap; padding: 0 10px; }
.wheel .item.dim { color: rgba(255, 255, 255, .35); }
.sheet-picker { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--card); border-radius: 13px 13px 0 0;
  padding: 16px 0 calc(28px + var(--safe-bottom)); transform: translateY(110%); transition: transform .335s cubic-bezier(.2, .9, .3, 1); }
.sheet-picker.show { transform: none; }

/* ------------------------------------------------------------ Home */
.home { padding-top: 20px; padding-bottom: 20px; }
.carousel { position: relative; height: 180px; margin: 0; overflow: hidden; touch-action: pan-y; }
.carousel .track { display: flex; height: 100%; transition: transform .3s ease; }
.carousel .slide { flex: 0 0 100%; padding: 0 20px; height: 100%; }
.dots { display: flex; justify-content: center; padding: 18px 0; }
.dots i { width: 6px; height: 6px; border-radius: 50%; margin: 0 3px; background: rgba(255, 255, 255, .4); }
.dots i.on { background: rgba(255, 255, 255, .9); }

.info-card { position: relative; height: 100%; border-radius: 20px; overflow: hidden; color: #FFFFFF;
  box-shadow: 0 5px 12px rgba(0, 0, 0, .45); display: flex; flex-direction: column; align-items: center; justify-content: space-evenly;
  transition: background .4s; }
.info-card .btns { position: absolute; left: 8px; right: 8px; top: 4px; display: flex; justify-content: space-between; }
.info-card .btns button { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .6); font-size: 18px; }
.info-card .btns button:active { opacity: .4; }
.info-card .head { font-size: 19.6px; font-weight: 300; text-transform: uppercase; letter-spacing: .2px; margin-top: 4px; }
.info-card .val { display: flex; align-items: flex-end; justify-content: center; line-height: 1; }
.info-card .val .num { font-size: 60.2px; font-weight: 400; }
.info-card .val .pm { font-size: 22.4px; font-weight: 300; margin-left: 4px; padding-bottom: 5px; }
.info-card .val .ghost { visibility: hidden; font-size: 22.4px; font-weight: 300; margin-right: 4px; }
.info-card .sober { font-size: 14px; font-weight: 300; }

.chart-card { position: relative; height: 100%; border-radius: 20px; background: var(--card); overflow: hidden;
  box-shadow: 0 5px 12px rgba(0, 0, 0, .45); }
.chart-card .lbl { position: absolute; left: 20px; top: 13px; font-size: 12.4px; color: var(--text2); text-transform: uppercase; }


.history { background: var(--card); border-radius: 20px; box-shadow: 0 0 10px 2px var(--shadow); overflow: hidden; }
.history .empty { padding: 14px 20px 18px; text-align: center; font-size: 13px; color: var(--text2); }
.history .group { padding: 13px 8px 6px; text-align: center; font-size: 13px; color: var(--text2); }
.history .row-wrap { position: relative; overflow: hidden; }
.history .row-wrap + .row-wrap::before { content: ""; position: absolute; top: 0; left: 6%; right: 6%; height: .7px; background: var(--sep); z-index: 2; }
.swipe-bg { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 4%; color: #FFFFFF; font-size: 24px; }
.swipe-bg.edit { background: var(--blue); justify-content: flex-start; }
.swipe-bg.del { background: var(--red); justify-content: flex-end; }
.drink-row { position: relative; z-index: 1; background: var(--card); display: flex; align-items: center; min-height: 72px;
  padding: 8px 16px; gap: 16px; touch-action: pan-y; }
.drink-row img { width: 41px; height: 41px; object-fit: contain; flex: none; }
.drink-row .mid { flex: 1; min-width: 0; }
.drink-row .name { font-size: 16px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drink-row .meta { display: flex; justify-content: space-between; margin-top: 4px; font-size: 14px; color: var(--text2); }
.drink-row .meta .sz { width: 30vw; max-width: 130px; display: flex; justify-content: space-between; }

/* ------------------------------------------------------------ Drinks */
.drinks { padding-top: 20px; padding-bottom: 100px; }
.chips { display: flex; overflow-x: auto; padding: 0 20px 0 0; margin: 6px 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 18px; border-radius: 18px; background: var(--card); color: var(--text);
  font-size: 14.5px; font-weight: 500; margin-right: 10px; display: flex; align-items: center; white-space: nowrap; }
.chip.on { background: var(--chip-active); }
.chip.edit { width: 36px; padding: 0; justify-content: center; margin-left: 20px; color: var(--blue); font-size: 18px; border-radius: 50%; }
.grid { display: flex; flex-wrap: wrap; gap: var(--gap); }
.tile { width: calc((100% - var(--gap)) / 2); height: 70px; border-radius: 20px; background: var(--card); box-shadow: 0 0 10px 2px var(--shadow);
  display: flex; align-items: center; padding: 0 10px; gap: 7px; transition: transform .15s; overflow: hidden; }
.tile:active, .tile.pressed { transform: scale(.97); }
.tile img { width: 38.5px; height: 38.5px; object-fit: contain; flex: none; }
.tile .mid { flex: 1; min-width: 0; }
.tile .name { font-size: 16px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .meta { display: flex; justify-content: space-between; margin-top: 4px; font-size: 13.5px; color: var(--text2); }

/* ------------------------------------------------------------ Formulare in Sheets */
.form { padding: 20px 40px; }
.f-title { margin: 20px 0 0; text-align: center; font-size: 21px; font-weight: 500; color: var(--text); }
.f-desc { text-align: center; font-size: 14px; color: var(--text2); margin: 10px 0 0; white-space: pre-line; }
.field { width: 100%; height: 50px; border-radius: 10px; background: var(--field); border: 0; outline: none; text-align: center;
  font-size: 17px; color: var(--text); padding: 0 12px; }
.field::placeholder { color: rgba(255, 255, 255, .35); }
.f-label { font-size: 12px; font-weight: 700; color: var(--text2); padding: 16px 0 10px; }
.err { color: var(--ios-red); text-align: center; font-size: 14px; padding: 20px 40px 0; min-height: 0; }
.err:empty { padding: 0; }
.icon-tile { width: 80px; height: 80px; border-radius: 20px; background: var(--field); display: flex; align-items: center;
  justify-content: center; margin: 0 auto 4px; }
.icon-tile img { width: 64px; height: 64px; object-fit: contain; }
.cat-chips { background: var(--field); border-radius: 10px; padding: 10px; display: flex; flex-wrap: wrap; gap: 5px; max-height: 120px; overflow-y: auto; }
.cat-chip { height: 32px; padding: 0 12px; border-radius: 16px; border: .5px solid var(--text2); color: var(--text2); font-size: 14px; }
.cat-chip.on { border-color: var(--blue); color: var(--text); }
.manage-link { display: block; margin: 8px auto 0; color: var(--ios-blue); font-size: 15px; min-height: 36px; }

.icon-sections h4 { margin: 0; padding: 5px 0 10px; font-size: 14px; font-weight: 500; color: var(--text2); text-transform: uppercase; }
.icon-box { background: var(--field); border-radius: 20px; padding: 8px; display: flex; flex-wrap: wrap; margin-bottom: 16px; }
.icon-box button { width: 16.66%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 15px; }
.icon-box button img { width: 70%; height: 70%; object-fit: contain; }
.icon-box button:active { background: rgba(255, 255, 255, .08); }

.mode-carousel { overflow: hidden; touch-action: pan-y; }
.mode-carousel .track { display: flex; transition: transform .3s ease; }
.mode-card-wrap { flex: 0 0 100%; padding: 10px 60px; }
.mode-card { height: 230px; background: var(--field); border-radius: 20px; padding: 20px; display: flex; flex-direction: column;
  align-items: center; justify-content: space-between; text-align: center; }
.mode-card .mt { font-size: 20px; color: var(--text); }
.mode-card img { height: 68px; }
.mode-card .md { font-size: 14px; color: var(--text2); }

.ratio-glass { display: flex; justify-content: center; padding: 20px 0; height: 130px; }
.ratio-glass img { height: 90px; }
.ratio-box { height: 50px; border-radius: 10px; background: var(--field); display: flex; align-items: center; justify-content: center;
  font-size: 25px; color: var(--text); margin: 0 20px 20px; }
.slider { -webkit-appearance: none; appearance: none; width: calc(100% - 16px); margin: 8px; height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--blue) var(--p, 25%), rgba(118, 118, 128, .4) var(--p, 25%)); outline: none; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.slider::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #FFFFFF; border: 0; }

/* ------------------------------------------------------------ Listen (settings_ui, Cupertino-Gruppen) */
.list-section { margin: 0 12px 0; }
.list-section .ls-title { font-size: 12px; color: var(--text2); padding: 22px 13px 8px; }
.list-group { background: var(--card); border-radius: 12px; overflow: hidden; }
.list-item { display: flex; align-items: center; min-height: 50px; padding: 0 13px; gap: 13px; font-size: 15.5px; color: var(--text); position: relative; width: 100%; text-align: left; }
.list-item + .list-item::before { content: ""; position: absolute; top: 0; left: 13px; right: 0; height: .5px; background: var(--sep); }
.list-item.with-icon + .list-item.with-icon::before { left: 0; }
.list-item:active { background: rgba(255, 255, 255, .05); }
.list-item .li-icon { width: 22px; font-size: 22px; color: var(--text2); text-align: center; }
.list-item .li-title { flex: 1; }
.list-item .li-value { color: var(--text2); }
.list-item .chev { color: var(--text2); font-size: 16px; }
.list-item.red { color: var(--red); }
.list-item.red .li-icon { color: var(--red); }
.list-item.dim { color: var(--text2); }

.segmented { display: inline-flex; background: #2C2C2E; border-radius: 9px; padding: 2px; }
.segmented button { min-width: 70px; height: 32px; padding: 0 10px; border-radius: 7px; font-size: 14px; color: var(--text); }
.segmented button.on { background: #636366; font-weight: 600; }

/* ------------------------------------------------------------ Statistik */
.stats { padding-top: 20px; padding-bottom: 110px; }
.tabbar { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav) + var(--safe-bottom) + 20px); width: 75%;
  height: 50px; background: var(--field); border-radius: 20px; display: flex; align-items: center; padding: 0 6px; z-index: 4;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .5); }
.tabbar button { flex: 1; height: 38px; border-radius: 15px; font-size: 13.5px; color: var(--text2); }
.tabbar button.on { color: var(--text); font-weight: 700; }

/* ------------------------------------------------------------ Agreement */
.agreement { padding: 40px 20px 40px; background: var(--card); min-height: 100%; }
.agreement .lang-row { display: flex; align-items: center; gap: 30px; height: 64px; padding: 0 20px; background: var(--field);
  border-radius: 20px; margin: 20px 0; width: 100%; font-size: 17px; color: var(--text); }
.agreement .box { background: var(--field); border-radius: 20px; padding: 20px; }
.agreement .scroll { height: 200px; overflow-y: auto; padding-right: 12px; font-size: 14.5px; color: var(--text); line-height: 1.2; }
.check-row { display: flex; align-items: center; gap: 16px; padding-top: 18px; font-size: 14.5px; color: var(--text); }
.check-row > span:first-child { flex: 1; padding-right: 20px; }
.check-row a { color: var(--ios-blue); text-decoration: none; }
.cbox { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 2px; flex: none; margin: 0 8px;
  display: flex; align-items: center; justify-content: center; }
.cbox.on { background: var(--text); border-color: var(--text); }
.cbox.on::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #000; border-bottom: 2px solid #000;
  transform: rotate(-45deg) translate(1px, -1px); }
.start-btn { display: block; margin: 20px auto 0; width: 178px; height: 52px; border-radius: 8px; background: var(--field);
  color: var(--text); font-size: 17px; }
.start-btn.ok { background: var(--blue); color: #FFFFFF; }

@media (min-width: 600px) {
  #app { max-width: 430px; margin: 0 auto; border-left: 1px solid #111; border-right: 1px solid #111; }
  .sheet, .snackbar, .action-sheet, .sheet-picker { max-width: 430px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@keyframes einblenden { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

/* Bearbeiten-Sheets: Formular 60 px eingerückt wie EditDrinksScreen/HistoryEditDrink */
.form.edit { padding: 20px 60px; }
.form.edit .knopf { padding: 32px 0 20px; }
