/* =====================================================================
   schaelsickshop – Admin-Design (Pflege, Bestellungen, Installer)
   ===================================================================== */

:root {
  --ink: #15181e;
  --ink-2: #3b4250;
  --muted: #6b7280;
  --line: #e3e6eb;
  --soft: #f3f4f6;
  --bg: #f6f7f9;
  --card: #ffffff;
  --brand: #1f3a68;
  --done: #157f3b;
  --done-bg: #e8f5ec;
  --danger: #b42318;
  --radius: 12px;
  --radius-sm: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.25; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
code { background: var(--soft); padding: 1px 5px; border-radius: 4px; font-size: .92em; }

/* ---------- Kopfleiste ---------- */
.topbar { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 10; }
.topbar__inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 28px; min-height: 56px; flex-wrap: wrap; }
.topbar__brand { color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; }
.topbar__brand span { font-weight: 500; opacity: .55; margin-left: 4px; }
.topbar__nav { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
.topbar__nav a {
  color: rgba(255,255,255,.72); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; white-space: nowrap;
}
.topbar__nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.topbar__nav a.is-active { color: #fff; background: rgba(255,255,255,.14); }
.topbar__nav .count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 12px; text-align: center; line-height: 20px; margin-left: 2px; }
.topbar__meta { display: flex; gap: 16px; align-items: center; font-size: 14px; }
.topbar__meta a, .linklike { color: rgba(255,255,255,.72); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.topbar__meta a:hover, .linklike:hover { color: #fff; }
.topbar__meta form { margin: 0; }
@media (max-width: 760px) {
  .topbar { position: static; }
  .topbar__inner { gap: 8px 16px; padding: 8px 16px; }
  .topbar__nav { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; margin: 0 -8px; }
}

.admin-main { max-width: 1240px; margin: 0 auto; padding: 28px 20px 80px; }
@media (max-width: 600px) { .admin-main { padding: 20px 16px 60px; } }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; letter-spacing: -.01em; }
.page-head p { margin: 4px 0 0; max-width: 640px; }

.search input { width: 300px; max-width: 100%; }
@media (max-width: 600px) { .search, .search input { width: 100%; } }

/* ---------- Filter-Tabs ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.tab {
  text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 14px;
  padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
}
.tab:hover { border-color: #c5cad3; }
.tab .count { color: var(--muted); margin-left: 2px; }
.tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab.is-active .count { color: rgba(255,255,255,.7); }

/* ---------- Bestellkarten ---------- */
.orders { display: grid; gap: 12px; }
.order { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.order--archived { background: #fbfbfc; }
.order__head { display: grid; grid-template-columns: auto 1fr auto auto; gap: 4px 16px; align-items: baseline; }
.order__id strong { font-size: 15px; }
.order__id .muted { font-size: 13px; margin-left: 6px; }
.order__customer { font-weight: 600; }
.order__teams { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.order__total { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; min-width: 90px; }
.order__id .muted { white-space: nowrap; }
@media (max-width: 760px) {
  .order { padding: 14px; }
  .order__head { grid-template-columns: 1fr auto; }
  .order__id { grid-column: 1; grid-row: 1; }
  .order__id .muted { display: block; margin: 0; }
  .order__total { grid-column: 2; grid-row: 1; }
  .order__customer, .order__teams { grid-column: 1 / -1; justify-content: flex-start; }
  .order__customer { margin-top: 6px; }
  .order__foot { flex-direction: column; align-items: stretch; }
}
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: #eef2f8; color: var(--brand); }

.order__items { list-style: none; margin: 10px 0 14px; padding: 0; font-size: 14px; color: var(--ink-2); }
.order__items li { padding: 2px 0; }
.order__items .qty { display: inline-block; min-width: 26px; font-weight: 600; color: var(--ink); }

.order__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px 20px; flex-wrap: wrap; }
.order__meta { font-size: 13px; }

/* Status-Schalter */
.steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.step {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 12px 0 8px; border-radius: 999px;
  border: 1px dashed #c3c8d1; background: #fff; color: var(--muted);
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.step:hover { border-color: var(--ink-2); color: var(--ink); }
.step__icon {
  width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #c3c8d1;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; line-height: 1;
}
.step.is-done { border: 1px solid transparent; background: var(--done-bg); color: var(--done); }
.step.is-done .step__icon { background: var(--done); border-color: var(--done); color: #fff; }
.step.is-done:hover { border-color: var(--done); }
.step__date { font-size: 12px; opacity: .75; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .steps { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .step { justify-content: flex-start; width: 100%; }
}

/* Details */
.order__details { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.order__details summary { cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 500; width: max-content; }
.order__details summary:hover { color: var(--ink); }
.details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; padding: 12px 0 4px; font-size: 14px; }
.details-grid h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.details-grid p { margin: 0; }
.span-all { grid-column: 1 / -1; }

.empty-state { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--muted); }

/* ---------- Meldungen ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.alert a { color: inherit; font-weight: 600; }
.alert--success { background: var(--done-bg); color: #0f5f2c; }
.alert--error { background: #fdecea; color: #8c1d13; }
.alert--warn { background: #fff6e0; color: #7a4b00; }
.alert--info { background: #eef3fb; color: #1f3a68; }

/* ---------- Formulare ---------- */
.form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
/* :where() = niedrige Priorität, damit spezielle Feldstile (z. B. Preisfeld) gewinnen */
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
  display: block; width: 100%; margin-top: 6px;
  font: inherit; font-weight: 400; color: var(--ink);
  padding: 9px 11px; min-height: 42px; border: 1px solid #cfd4dc; border-radius: var(--radius-sm); background: #fff;
}
.search input { margin-top: 0; }
:where(input, select, textarea):focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,58,104,.15); }
textarea.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 0 18px; border-radius: var(--radius-sm);
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { background: #2a2f3a; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--soft); }
.btn--block { width: 100%; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Login / Installer ---------- */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px; width: 100%; max-width: 400px; box-shadow: 0 10px 30px rgba(20,24,32,.06); }
.auth-card--wide { max-width: 680px; }
.auth-card h1 { font-size: 22px; margin-bottom: 18px; }
.auth-card h2 { font-size: 15px; margin: 24px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.auth-card__brand { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; font-size: 14px; }
.checklist .ok { color: var(--done); }
.checklist .fail { color: var(--danger); font-weight: 600; }
.next-steps { padding-left: 20px; }
.next-steps li { margin-bottom: 6px; }

/* =====================================================================
   Pflege-Seiten (Artikel, Mannschaften, Einstellungen)
   ===================================================================== */
.crumbs { margin: 0 0 6px; font-size: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.warn { color: #9a5b00; font-weight: 500; }
.nowrap { white-space: nowrap; }
.req { color: var(--danger); }
.hint { display: block; margin-top: 6px; font-size: 13px; font-weight: 400; color: var(--muted); }
.error-list { margin: 6px 0 0; padding-left: 18px; }
.narrow { max-width: 480px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.card h2 { font-size: 16px; margin-bottom: 14px; }
.card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card__head h2 { margin-bottom: 6px; }
.card > p.small { margin: 0 0 14px; }

/* Buttons klein / gefährlich */
.btn--small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn--danger { background: #fff; color: var(--danger); border-color: #f0c4bf; }
.btn--danger:hover { background: #fdecea; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--brand); cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }

/* ---------- Listen (Artikel, Mannschaften, Größen) ---------- */
.list { display: grid; gap: 8px; margin-bottom: 16px; }
.list--plain { gap: 0; margin: 0; }
.list-row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 4px 16px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin: 0;
}
.list--plain .list-row { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 8px 0; }
.list--plain .list-row:first-child { border-top: 0; }
.list-row--compact { grid-template-columns: minmax(0, 1fr) auto auto; }
.list-row.is-inactive .list-row__thumb, .list-row.is-inactive .list-row__title, .list-row.is-inactive .list-row__price { opacity: .5; }
.list-row.is-inactive .inline-edit input { color: var(--muted); }
.list-row__thumb { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--soft); display: block; }
.list-row__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.list-row__main { min-width: 0; }
.list-row__title { font-weight: 600; color: var(--ink); text-decoration: none; }
.list-row__title:hover { text-decoration: underline; }
.list-row__sub { font-size: 13px; margin-top: 2px; }
.list-row__price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.list-row__actions { display: flex; align-items: center; gap: 8px; margin: 0; }
@media (max-width: 760px) {
  .list-row { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .list-row__thumb { width: 48px; height: 48px; grid-row: span 2; }
  .list-row__actions { grid-column: 2 / -1; }
  .list-row--compact { grid-template-columns: minmax(0, 1fr) auto; }
  .list-row--compact .list-row__sub { grid-column: 1; grid-row: 2; }
  .list-row--compact .list-row__actions { grid-column: 2; grid-row: 1 / span 2; }
}

.pill {
  height: 30px; padding: 0 12px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line); background: var(--soft); color: var(--muted); white-space: nowrap;
}
.pill:hover { border-color: #c5cad3; }
.pill--on { background: var(--done-bg); color: var(--done); border-color: transparent; }
.pill--on:hover { border-color: var(--done); }

.icon-group { display: inline-flex; }
.icon-btn {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: inherit; font-size: 15px; cursor: pointer;
  border-radius: 8px; list-style: none;
}
.icon-group .icon-btn:first-child { border-radius: 8px 0 0 8px; }
.icon-group .icon-btn:last-child { border-radius: 0 8px 8px 0; margin-left: -1px; }
.icon-btn:hover:not(:disabled) { background: var(--soft); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn--danger:hover:not(:disabled) { color: var(--danger); border-color: #f0c4bf; background: #fdecea; }
summary.icon-btn::-webkit-details-marker { display: none; }

.menu { position: relative; }
.menu__panel {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 190px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(20,24,32,.12); padding: 6px;
}
.menu__panel a, .menu__panel button {
  display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px;
  font: inherit; font-size: 14px; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.menu__panel a:hover, .menu__panel button:hover { background: var(--soft); }
.menu__panel .danger { color: var(--danger); }

.add-row { display: flex; gap: 10px; align-items: center; padding: 12px; }
.add-row input { margin-top: 0; flex: 1; }
.add-row .btn { flex: none; }
@media (max-width: 600px) { .add-row { flex-wrap: wrap; } .add-row input { flex-basis: 100%; } }

.inline-edit { display: flex; gap: 8px; align-items: center; }
.inline-edit input { margin-top: 0; min-height: 36px; padding: 6px 10px; border-color: transparent; background: transparent; font-weight: 600; }
.inline-edit input:hover { border-color: var(--line); }
.inline-edit input:focus { background: #fff; border-color: var(--brand); }
.input-short { max-width: 140px; }

/* ---------- Artikel-Editor ---------- */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.editor__side { position: sticky; top: 72px; }
@media (max-width: 960px) {
  .editor { grid-template-columns: 1fr; gap: 0; }
  /* Seitenleiste auflösen, damit "Speichern" am unteren Bildschirmrand kleben kann */
  .editor__side { display: contents; }
}
.editor__save { margin-top: 4px; }
@media (max-width: 960px) {
  .editor__save { position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--line); padding: 12px 0; box-shadow: 0 -8px 16px -12px rgba(20,24,32,.25); }
}
.w-price input { max-width: 180px; }
.input-affix { position: relative; display: block; max-width: 180px; }
.input-affix input { padding-right: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.input-affix > span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); margin-top: 1px; color: var(--muted); font-weight: 400; }
.input-affix--sm { max-width: 120px; }
.input-affix--sm input { min-height: 36px; padding-top: 6px; padding-bottom: 6px; margin-top: 0; }
.input-affix--sm > span { margin-top: 0; }
textarea { resize: vertical; line-height: 1.5; }

.check-group { padding: 12px 0; border-top: 1px solid var(--line); }
.check-group__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; font-size: 14px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.form .check-pill { display: inline-block; margin: 0; font-weight: 500; }
.check-pill { position: relative; }
.check-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.check-pill span {
  display: inline-flex; align-items: center; min-width: 44px; height: 36px; padding: 0 12px; justify-content: center;
  border: 1px solid #cfd4dc; border-radius: 8px; background: #fff; font-size: 14px; color: var(--ink-2);
}
.check-pill:hover span { border-color: var(--ink-2); }
.check-pill input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.check-pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(31,58,104,.25); }
.check-pill.is-muted span { border-style: dashed; }
.team-checks { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.team-checks[hidden] { display: none; }

.radio-stack { display: grid; gap: 8px; }
.form .radio { display: flex; gap: 10px; align-items: center; font-weight: 400; margin: 0; cursor: pointer; }
.radio input { width: 18px; height: 18px; accent-color: var(--ink); }

.flock-row { display: grid; grid-template-columns: 130px auto 1fr; gap: 10px 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.flock-row__label { font-size: 14px; }
.form .flock-row__price { display: flex; align-items: center; gap: 8px; margin: 0; justify-self: start; }
.flock-row__price[hidden] { display: none; }
@media (max-width: 600px) { .flock-row { grid-template-columns: 1fr; } }

.segmented { display: inline-flex; justify-self: start; border: 1px solid #cfd4dc; border-radius: 8px; overflow: hidden; }
.form .segmented label { margin: 0; position: relative; font-weight: 500; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: block; padding: 7px 14px; font-size: 14px; border-left: 1px solid #cfd4dc; background: #fff; color: var(--ink-2); }
.segmented label:first-child span { border-left: 0; }
.segmented input:checked + span { background: var(--ink); color: #fff; }
.segmented input:focus-visible + span { box-shadow: inset 0 0 0 2px var(--brand); }

.form .switch { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { width: 44px; height: 26px; border-radius: 999px; background: #cfd4dc; position: relative; transition: background .15s; flex: none; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + .switch__track { background: var(--done); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 3px rgba(31,58,104,.25); }

.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.photo-grid:empty { display: none; }
.photo { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.photo img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--soft); }
.photo figcaption { padding: 6px 8px; font-size: 12px; display: grid; gap: 2px; }
.form .photo figcaption label { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; font-size: 12px; cursor: pointer; }
.photo__del { color: var(--danger); }
.photo.is-deleted img { opacity: .3; }
.photo--new figcaption { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

.dropzone {
  display: flex !important; flex-direction: column; align-items: center; gap: 2px; text-align: center;
  border: 1.5px dashed #c3c8d1; border-radius: 10px; padding: 18px 12px; cursor: pointer; margin: 0 0 12px !important;
  background: var(--soft); transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--brand); background: #eef3fb; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone__title { font-weight: 600; color: var(--brand); }
.dropzone__hint { font-size: 13px; color: var(--muted); font-weight: 400; }

.danger-zone { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- Einstellungen ---------- */
.settings .card { margin-bottom: 16px; }
.settings__save { position: sticky; bottom: 0; padding: 12px 0; background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -8px 16px -12px rgba(20,24,32,.25); }
.form .field-block { margin-bottom: 14px; font-size: 14px; }
.form .field-block > label { display: inline; margin: 0; }
.color-input { width: 72px !important; height: 42px; padding: 3px !important; cursor: pointer; }

.size-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.size-groups .card { margin: 0; }
.group-head { margin: 0 0 8px; }
.group-head__input { font-size: 16px !important; font-weight: 700 !important; }

.pages-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.side-nav { display: grid; gap: 2px; position: sticky; top: 72px; }
.side-nav a { padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.side-nav a:hover { background: #fff; }
.side-nav a.is-active { background: var(--ink); color: #fff; }
@media (max-width: 760px) {
  .pages-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; display: flex; overflow-x: auto; }
  .side-nav a { white-space: nowrap; }
}

/* Shop geöffnet/geschlossen */
.card--status { border-left: 4px solid #e0a100; }
.card--status.is-open { border-left-color: var(--done); }
.card--status .switch { margin-bottom: 6px; }
.card--status p { margin: 0; }
.topbar__meta a.status-closed { background: #fff6e0; color: #7a4b00; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.topbar__meta a.status-closed:hover { color: #7a4b00; background: #ffeec2; }

/* Installer: Server-Grenzen */
.limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 14px 0 0; }
.limits div { background: var(--soft); border-radius: 8px; padding: 8px 10px; }
.limits dt { font-size: 12px; color: var(--muted); }
.limits dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
