:root {
  --bg: #111110;
  --card: #1c1b18;
  --card-hover: #25231e;
  --line: #2e2b24;
  --brass: #d4a63a;
  --brass-light: #f0c766;
  --text: #ece8dd;
  --muted: #8a8676;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  padding: max(20px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
           max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  max-width: 1280px;
  margin: 0 auto;
}

svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }

/* Kopfzeile */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { width: 30px; height: 30px; color: var(--brass); }
.brand-name { font-size: 22px; font-weight: 500; letter-spacing: 0.2px; }
.brass { color: var(--brass); }

.actions { display: flex; align-items: center; gap: 6px; }

.clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  margin-right: 10px;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}
.clock-time { font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--text); }
.clock-date { font-size: 12.5px; color: var(--muted); }

.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: none; border-radius: 10px;
  background: transparent; color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--card); color: var(--brass); }
#sync-btn { color: var(--brass); }

/* Kacheln */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 190px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.tile svg { width: 46px; height: 46px; color: var(--brass); stroke-width: 1.4; }
.tile-title { font-size: 20px; font-weight: 500; }
.tile:hover { background: var(--card-hover); border-color: #6b5220; }
.tile:active { transform: scale(0.985); }
.tile:focus-visible, .icon-btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.tile-text { display: flex; flex-direction: column; gap: 4px; }
.tile-sub { font-size: 14px; color: var(--muted); }
.tile.selected { background: #2a2112; border-color: var(--brass); }
.tile.selected .tile-sub { color: var(--brass-light); }

/* Kopf einer Unterseite: wo bin ich */
.page-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.back-btn {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--card); color: var(--brass);
  border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer;
}
.back-btn svg { width: 24px; height: 24px; stroke-width: 2; }
.back-btn:hover { background: var(--card-hover); border-color: #6b5220; }
.page-title { display: flex; flex-direction: column; min-width: 0; }
.crumbs { font-size: 13px; color: var(--muted); }
.page-title h1 {
  margin: 0; font-size: 26px; font-weight: 500; color: var(--text);
  border-left: 3px solid var(--brass); padding-left: 10px; margin-top: 2px;
}

/* Aktive Waffe */
.active-weapon {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; margin-bottom: 16px;
  background: #2a2112; border: 1px solid #6b5220; border-radius: var(--radius);
}
.active-weapon svg { width: 30px; height: 30px; color: var(--brass); flex-shrink: 0; }
.active-weapon div { display: flex; flex-direction: column; }
.aw-label { font-size: 12.5px; color: var(--brass); }
.aw-name { font-size: 19px; font-weight: 500; color: var(--text); }
.aw-cal { font-size: 15px; font-weight: 400; color: var(--brass-light); margin-left: 6px; }
.active-weapon.empty { background: var(--card); border-color: var(--line); border-style: dashed; }
.active-weapon.empty svg { color: var(--muted); }
.active-weapon.empty .aw-label { color: var(--muted); }
.active-weapon.empty .aw-name { color: var(--muted); font-weight: 400; font-size: 16px; }

/* Leerer Zustand */
.empty-state {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 48px 24px;
  background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty-state svg { width: 48px; height: 48px; color: var(--muted); margin-bottom: 12px; }
.es-title { margin: 0 0 6px; font-size: 18px; font-weight: 500; }
.es-text { margin: 0; color: var(--muted); max-width: 380px; line-height: 1.5; }

/* Längliche Kacheln */
.wide-list { display: flex; flex-direction: column; gap: 10px; }
.wide-tile {
  display: flex; align-items: center; gap: 16px;
  width: 100%; min-height: 84px; padding: 14px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); font: inherit; text-align: left; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.wide-tile:hover { background: var(--card-hover); border-color: #6b5220; }
.wide-tile:active { transform: scale(0.995); }
.wide-tile .tile-text { flex: 1; min-width: 0; }
.wide-tile .tile-title { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.wide-tile .tile-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wt-icon {
  width: 54px; height: 54px; flex-shrink: 0; display: grid; place-items: center;
  background: #15140f; border: 1px solid var(--line); border-radius: 12px; color: var(--brass);
}
.wt-icon svg { width: 30px; height: 30px; stroke-width: 1.5; }
.wt-thumb { width: 54px; height: 54px; flex-shrink: 0; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.wt-chev { color: var(--muted); }
.wt-chev svg { width: 22px; height: 22px; }
.wide-tile.add { border-style: dashed; border-color: #6b5220; }
.wide-tile.add .tile-title { color: var(--brass-light); }
.wide-tile.add .wt-icon { background: #2a2112; border-color: #6b5220; }
.badge {
  font-size: 11.5px; font-weight: 500; padding: 2px 8px; border-radius: 6px;
  background: #2a2112; color: var(--brass-light); border: 1px solid #6b5220;
}
.hint { color: var(--muted); text-align: center; margin-top: 24px; }
.aw-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.muted { color: var(--muted); }

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  background: var(--card); color: var(--text);
  border: 1px solid #3a362c; border-radius: 12px;
  font: inherit; font-size: 15.5px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { background: var(--card-hover); border-color: #6b5220; }
.btn.primary { background: var(--brass); color: #1a1408; border-color: var(--brass); font-weight: 500; }
.btn.primary:hover { background: var(--brass-light); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.danger { background: #8f2a22; border-color: #8f2a22; color: #fff; }
.btn.danger:hover { background: #a8342a; }
.btn.danger-outline { background: transparent; border-color: #6e2a24; color: #f08a7e; }
.btn.danger-outline:hover { background: #2a1513; }
.btn[hidden] { display: none; }

/* Fenster */
.no-scroll { overflow: hidden; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.72);
  opacity: 0; transition: opacity .15s;
}
.modal-backdrop.open { opacity: 1; }
.modal {
  position: relative;
  width: 100%; max-width: 560px; max-height: 100%; overflow-y: auto;
  padding: 24px;
  background: #181713; border: 1px solid #3a362c; border-radius: 18px;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: rgba(17, 17, 16, 0.85); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); cursor: pointer;
}
.modal-close svg { width: 20px; height: 20px; }
.detail-photo { display: block; width: calc(100% + 48px); margin: -24px -24px 18px; max-height: 280px; object-fit: cover; border-radius: 18px 18px 0 0; }
.detail-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; padding-right: 48px; }
.detail-head h2 { margin: 0; font-size: 24px; font-weight: 500; }
.detail-cal { color: var(--brass-light); font-size: 16px; }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin: 0 0 14px; }
.d-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.d-row dt { font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.d-row dd { margin: 0; font-size: 15.5px; overflow-wrap: anywhere; }
.detail-notes { margin-bottom: 14px; }
.dn-label { font-size: 12.5px; color: var(--muted); }
.detail-notes p { margin: 4px 0 0; line-height: 1.5; }
.detail-counts { display: flex; gap: 18px; flex-wrap: wrap; padding: 12px 14px; background: #111110; border-radius: 10px; font-size: 14px; color: var(--muted); }
.detail-counts span { display: inline-flex; align-items: center; gap: 6px; }
.detail-counts svg { width: 18px; height: 18px; color: var(--brass); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.confirm { text-align: center; }
.confirm-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #2a1513; color: #f08a7e; margin-bottom: 12px; }
.confirm-icon svg { width: 28px; height: 28px; }
.confirm h2 { margin: 0 0 8px; font-size: 20px; font-weight: 500; }
.confirm p { margin: 0; color: #c9c4b5; line-height: 1.5; }
.confirm .modal-actions { justify-content: center; }
.confirm-icon.brass { background: #2a2312; color: var(--brass); }

/* Backup / Import */
.info-box {
  margin-top: 18px; padding: 6px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; flex-wrap: wrap; }
.info-row + .info-row { border-top: 1px solid var(--line); }
.info-row span { color: var(--muted); }
.info-row b { font-weight: 500; color: var(--text); }
.info-row { align-items: center; }
.info-action { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.info-action .btn { min-height: 40px; padding: 0 16px; }
.info-select {
  min-height: 42px; min-width: 170px; padding: 6px 12px;
  background: #111110; color: var(--text); border: 1px solid #3a362c; border-radius: 10px; font: inherit;
}
.info-select:focus { outline: none; border-color: var(--brass); }
.info-select:disabled { opacity: .5; }
.info-note { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.info-box > .info-note:first-child { border-top: 0; }
/* Abgleich (Wolken-Symbol + Fenster) */
.sync-panel h2 { margin: 0 0 12px; font-size: 20px; font-weight: 500; }
.sync-panel .modal-text { margin: 0 0 16px; color: #c9c4b5; line-height: 1.5; }
.sync-login { display: grid; gap: 14px; }
.sync-login .modal-actions { margin-top: 6px; }
.sync-error { margin: 0; color: #f08a7e; font-size: 14px; }
.sync-info { margin-top: 0; }
.sync-status[data-sync="idle"] { color: #8fc28a; }
.sync-status[data-sync="error"], .sync-status[data-sync="off"] { color: #f08a7e; }
.sync-status[data-sync="offline"] { color: var(--muted); }
#sync-btn[data-sync="off"] svg, #sync-btn[data-sync="offline"] svg { stroke: var(--muted); }
#sync-btn[data-sync="error"] svg { stroke: #f08a7e; }
#sync-btn[data-sync="busy"] svg { animation: sync-pulse 1s ease-in-out infinite alternate; }
@keyframes sync-pulse { from { opacity: 1; } to { opacity: .35; } }
.import-list { list-style: none; padding: 0; margin: 14px 0 0; color: #c9c4b5; line-height: 1.8; }
.import-list b { color: var(--brass-light); font-weight: 500; }
.import-hint { margin-top: 10px !important; font-size: 14px; color: var(--muted) !important; }

/* Formular */
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.f-label { font-size: 13.5px; color: var(--muted); }
.req { color: var(--brass); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: #111110; color: var(--text);
  border: 1px solid #3a362c; border-radius: 10px;
  font: inherit; font-size: 16px;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input::placeholder, .field textarea::placeholder { color: #5b5849; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); }
.field .invalid { border-color: #c0483c; }
.f-error { font-size: 13px; color: #f08a7e; min-height: 0; }
.f-error:empty { display: none; }
.req-hint { font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

.photo-field { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.photo-box {
  width: 120px; height: 90px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden;
  background: #111110; border: 1px dashed #3a362c; border-radius: 12px; color: var(--muted);
}
.photo-box svg { width: 32px; height: 32px; }
.photo-box img { width: 100%; height: 100%; object-fit: cover; }
.photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.photo-actions .f-label { width: 100%; }

/* Abschnitt-Überschrift */
.section-label { margin: 22px 0 10px; font-size: 13.5px; color: var(--muted); }

/* Sortierbare Zeilen */
.sort-row { display: flex; gap: 8px; align-items: stretch; }
.sort-row .wide-tile { flex: 1; min-width: 0; }
.move-btns { display: flex; flex-direction: column; gap: 6px; }
.move-btn {
  flex: 1; width: 52px; min-height: 38px; display: grid; place-items: center;
  background: var(--card); color: var(--brass);
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.move-btn svg { width: 22px; height: 22px; stroke-width: 2; }
.move-btn:hover:not(:disabled) { background: var(--card-hover); border-color: #6b5220; }
.move-btn:disabled { color: #3a372e; cursor: default; }

.step-num {
  width: 54px; height: 54px; flex-shrink: 0; display: grid; place-items: center;
  background: #2a2112; border: 1px solid #6b5220; border-radius: 12px;
  color: var(--brass-light); font-size: 20px; font-weight: 500;
}
.step-num.small { width: 26px; height: 26px; font-size: 13px; border-radius: 7px; }

/* Werkzeugleiste */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar-info { flex: 1; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; min-width: 160px; }
.toolbar-info svg { width: 20px; height: 20px; color: var(--brass); }

/* Fenster-Überschriften */
.modal-title { margin: 0 0 6px; font-size: 21px; font-weight: 500; padding-right: 48px; }
.modal-sub { margin: 0 0 8px; color: var(--muted); }
.prompt h2 { margin: 0 0 16px; font-size: 20px; font-weight: 500; }
.step-form { margin-top: 16px; }
.step-form .photo-field { margin: 18px 0 0; padding: 18px 0 0; border-bottom: none; border-top: 1px solid var(--line); }
.modal-image { padding: 0; max-width: 900px; background: #000; }
.image-view { display: block; width: 100%; height: auto; border-radius: 18px; }

/* Checkliste (Werkbank) */
.progress-box {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  padding: 14px 18px; margin-bottom: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.progress-text { font-size: 16px; color: var(--muted); }
.progress-text strong { color: var(--brass-light); font-size: 20px; font-weight: 500; }
.progress-bar { grid-column: 1 / -1; height: 8px; background: #111110; border-radius: 4px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--brass); transition: width .25s; }

.checklist { display: flex; flex-direction: column; gap: 10px; }
.check-row {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: background .15s, border-color .15s;
}
.check-box {
  width: 52px; height: 52px; flex-shrink: 0; display: grid; place-items: center;
  background: #111110; border: 2px solid #4a4536; border-radius: 12px;
  color: transparent; cursor: pointer;
}
.check-box svg { width: 30px; height: 30px; stroke-width: 2.6; }
.check-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.check-num { font-size: 12.5px; color: var(--brass); }
.check-title { font-size: 18px; font-weight: 500; }
.check-hint { margin: 2px 0 0; color: #c9c4b5; line-height: 1.45; font-size: 15px; }
.check-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14.5px; }
.check-meta svg { width: 17px; height: 17px; color: var(--brass); }
.check-values { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 6px; }
.soll { color: var(--muted); font-size: 15px; }
.soll strong { color: var(--text); font-weight: 500; }
.ist { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; cursor: text; }
.ist input {
  width: 110px; min-height: 42px; padding: 6px 10px;
  background: #111110; color: var(--text);
  border: 1px solid #3a362c; border-radius: 10px; font: inherit; font-size: 16px;
}
.ist input:focus { outline: none; border-color: var(--brass); }
.check-photo { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: none; cursor: zoom-in; flex-shrink: 0; }
.check-photo img { display: block; width: 72px; height: 72px; object-fit: cover; }

.check-row.done { background: #1a1910; border-color: #4d3d18; }
.check-row.done .check-box { background: var(--brass); border-color: var(--brass); color: #1a1408; }
.check-row.done .check-title { color: var(--muted); text-decoration: line-through; text-decoration-color: #6b5220; }
.check-row.done .check-hint { color: #75715f; }

/* Status der Ladedaten */
.status-badge {
  display: inline-block; vertical-align: middle;
  font-size: 11.5px; font-weight: 500; padding: 2px 8px; border-radius: 6px; white-space: nowrap;
}
.status-badge.ok { background: #16261a; color: #8fd49a; border: 1px solid #2f5a37; }
.status-badge.open { background: #2c1d0c; color: #f0a24a; border: 1px solid #6a4416; }
.status-badge.ordered { background: #14212c; color: #8cc4f0; border: 1px solid #2c4f6a; }

/* Einkaufsliste */
.shop-row { align-items: stretch; }
.shop-step { flex: none; min-width: 118px; align-self: stretch; height: auto; }
.shop-step svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 560px) {
  .shop-row { flex-wrap: wrap; }
  .shop-row > .wide-tile { flex: 1 1 100%; }
  .shop-step { flex: 1; min-height: 46px; }
  .shop-row .move-btns { flex-direction: row; }
  .shop-row .move-btn { min-height: 46px; }
}

/* Rezept */
.recipe-card {
  margin-bottom: 16px; padding: 16px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.recipe-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.recipe-label { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 500; }
.recipe-label svg { width: 22px; height: 22px; color: var(--brass); }
.recipe-photo {
  display: block; width: 100%; padding: 0; margin-bottom: 12px;
  background: #111110; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: zoom-in;
}
.recipe-photo img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.r-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.r-group { padding: 10px 12px; background: #111110; border-radius: 10px; display: flex; flex-direction: column; gap: 4px; }
.r-title { font-size: 12.5px; color: var(--brass); margin-bottom: 2px; }
.r-val { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.r-val span { color: var(--muted); }
.r-val strong { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.r-notes { margin-top: 10px; padding: 10px 12px; background: #111110; border-radius: 10px; }
.r-notes p { margin: 2px 0 0; line-height: 1.5; font-size: 14.5px; }
.hint.left { text-align: left; margin: 0; }
.r-name { margin-bottom: 22px; }
.lab-status { display: flex; align-items: center; gap: 4px; margin: 0 0 12px; color: var(--muted); }
.r-fieldset { border: none; padding: 0; margin: 0 0 22px; }
.r-fieldset legend { padding: 0; margin-bottom: 10px; color: var(--brass); font-size: 15px; font-weight: 500; }
.pick-btn { min-height: 40px; padding: 0 14px; margin-bottom: 12px; font-size: 14px; }
.pick-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--brass); stroke-width: 1.6; }

/* Hinweis auf neue Version */
.update-bar {
  position: fixed; z-index: 70;
  left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px;
  padding: 10px 10px 10px 18px;
  background: #2a2112; border: 1px solid var(--brass); border-radius: 14px;
  color: var(--brass-light); font-size: 15px; white-space: nowrap;
}

/* Hinweis */
.toast {
  position: fixed;
  left: 50%; bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 60;
  transform: translate(-50%, 20px);
  padding: 10px 18px;
  background: #2a2112;
  border: 1px solid #6b5220;
  color: var(--brass-light);
  border-radius: 10px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Tablet hochkant */
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Handy */
@media (max-width: 560px) {
  body { padding-left: 16px; padding-right: 16px; }
  .topbar { margin-bottom: 20px; }
  .brand-name { font-size: 19px; }
  .brand-icon { width: 26px; height: 26px; }
  .clock { margin-right: 4px; padding-right: 8px; }
  .clock-time { font-size: 16px; }
  .clock-date { font-size: 11px; }
  .actions { gap: 0; }
  .icon-btn { width: 34px; height: 34px; }
  .icon-btn svg { width: 20px; height: 20px; }
  .tiles { gap: 12px; }
  .tile { min-height: 140px; padding: 18px; }
  .tile svg { width: 38px; height: 38px; }
  .tile-title { font-size: 16px; }
  .tile-sub { font-size: 13px; }
  .page-title h1 { font-size: 21px; }
  .back-btn { width: 42px; height: 42px; }
  .aw-name { font-size: 17px; }
  .form { padding: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; }
  .modal { padding: 20px; }
  .detail-photo { width: calc(100% + 40px); margin: -20px -20px 16px; }
  .wide-tile { min-height: 74px; padding: 12px 14px; gap: 12px; }
  .wide-tile .tile-title { font-size: 16px; }
  .wt-icon, .wt-thumb { width: 46px; height: 46px; }
  .modal-actions .btn, .form-actions .btn { flex: 1; }
  .modal-actions { flex-wrap: wrap; }
  .move-btn { width: 44px; }
  .step-num { width: 46px; height: 46px; font-size: 18px; }
  .check-row { padding: 14px; gap: 12px; }
  .check-box { width: 46px; height: 46px; }
  .check-title { font-size: 16px; }
  .check-photo img { width: 56px; height: 56px; }
  .toolbar .btn { flex: 1; }
}

@media (max-width: 380px) {
  .brand-name { display: none; }
}
