:root {
  --ink: #0d1220;
  --ink-2: #3c4353;
  --muted: #667085;
  --hint: #98a1ae;
  --blue: #2447e6;
  --blue-dark: #1a35b8;
  --blue-bg: #eef1fe;
  --blue-bd: #c9d2f8;
  --blue-soft-bg: #f1f4fe;
  --blue-soft-bd: #ccd6f8;
  --green: #17924a;
  --green-text: #157347;
  --green-bg: #e9f7ee;
  --green-bd: #bfe6cc;
  --green-cell-bg: #f2faf5;
  --green-cell-bd: #d4ecdc;
  --amber: #d99a1b;
  --amber-text: #a8730d;
  --amber-bg: #fdf8ee;
  --amber-bd: #efdfb9;
  --red: #c23934;
  --red-bg: #fbeeed;
  --red-bd: #f0d2d0;
  --card-bd: #e5e7eb;
  --line: #eef0f3;
  --line-2: #d8dbe1;
  --disabled: #c3c7cf;
  --page: #eef0f3;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: 'Instrument Sans', -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
input, textarea, select, button { font-family: inherit; font-size: 14px; color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--blue-bd); border-color: var(--blue) !important; }
button { cursor: pointer; }
button, a, .dash-cell, .mini-cell, .slot-row, .svc-row, .wk-slot, .alt-cell, .alt-more, .wday-head, .admin-tab {
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.page { min-height: 100vh; min-height: 100dvh; display: flex; justify-content: center; padding: 28px 20px 64px; }
.shell { width: 100%; max-width: 1080px; }

/* ------------------------------ Topbar ------------------------------ */
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 16px; }
.topbar-left { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.brand-name { font-weight: 700; font-size: 15px; line-height: 1.1; }
.brand-sub { font-size: 11px; color: var(--muted); }
.back-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--card-bd); background: #fff; display: flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0; }
.screen-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.topbar-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; justify-content: flex-end; }
.meta-sep { color: var(--line-2); }
.meta-item { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }
.nav-link { font-weight: 600; }

/* ------------------------------ Karten und Buttons ------------------------------ */
.card { background: #fff; border: 1px solid var(--card-bd); border-radius: 16px; padding: 18px; }
.card-lg { padding: 22px; }
.btn { border-radius: 9px; font-weight: 600; font-size: 13px; padding: 10px 18px; border: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:disabled, .btn-primary.is-disabled { background: var(--disabled); cursor: default; }
.btn-outline { background: #fff; border: 1px solid var(--blue-bd); color: var(--blue); }
.btn-wide { width: 100%; padding: 11px; font-size: 14px; }
.btn-green { background: var(--green); color: #fff; }
.btn-red-outline { background: #fff; border: 1px solid var(--red-bd); color: var(--red); }

.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.pill-live { color: var(--green-text); background: var(--green-bg); }
.time-chip { display: inline-block; background: var(--blue-bg); border: 1px solid var(--blue-bd); color: var(--blue); font-weight: 700; font-size: 14px; border-radius: 8px; padding: 6px 12px; }
.badge { display: inline-block; border-radius: 99px; padding: 3px 10px; font-size: 11px; font-weight: 600; }
.badge-angefragt { background: var(--amber-bg); color: var(--amber-text); border: 1px solid var(--amber-bd); }
.badge-bestaetigt { background: var(--green-bg); color: var(--green-text); border: 1px solid var(--green-bd); }
.badge-abgelehnt, .badge-storniert { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-bd); }

.hint-line { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 0 4px; }
.check-line { display: flex; align-items: center; gap: 6px; }
.section-label { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 10px; }

/* ------------------------------ Home ------------------------------ */
.grid-home { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.cal-title-row { display: flex; align-items: center; gap: 10px; }
.cal-title { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.month-nav { display: flex; align-items: center; gap: 10px; }
.month-nav button { width: 28px; height: 28px; border: 1px solid var(--card-bd); border-radius: 8px; background: #fff; font-size: 15px; color: var(--ink); padding: 0; }
.month-label { font-weight: 700; font-size: 14px; min-width: 110px; text-align: center; }
.dow-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.dow-row div { text-align: center; font-size: 11px; color: var(--hint); }
.dash-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dash-cell { height: 60px; border-radius: 10px; border: 1px solid var(--line); background: #fafbfc; padding: 7px 8px; display: flex; flex-direction: column; justify-content: space-between; }
.dash-cell .num { font-size: 12px; font-weight: 600; color: #b6bcc6; }
.dash-cell .st { display: flex; align-items: center; gap: 5px; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #b6bcc6; }
.dash-cell .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); flex-shrink: 0; }
.dash-cell.is-out { background: #fff; border-color: var(--line); }
.dash-cell.is-out .dot { background: transparent; }
.dash-cell.is-ok { cursor: pointer; }
.dash-cell.is-ok .num { color: var(--ink); }
.dash-cell.s-full { background: var(--green-cell-bg); border-color: var(--green-cell-bd); }
.dash-cell.s-full .dot { background: var(--green); }
.dash-cell.s-full .st { color: var(--green-text); }
.dash-cell.s-part { background: var(--amber-bg); border-color: var(--amber-bd); }
.dash-cell.s-part .dot { background: var(--amber); }
.dash-cell.s-part .st { color: var(--amber-text); }
.dash-cell.s-online { background: var(--blue-soft-bg); border-color: var(--blue-soft-bd); }
.dash-cell.s-online .dot { background: var(--blue); }
.dash-cell.s-online .st { color: var(--blue); }
.dash-cell.is-today { border-color: var(--blue); }
.legend { margin-top: 14px; display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; }
.legend .meta-item .dot { width: 8px; height: 8px; border-radius: 50%; }
.legend-hint { margin-left: auto; color: var(--hint); }
.side-col { display: flex; flex-direction: column; gap: 12px; }
.next-label { font-size: 12px; color: var(--hint); }
.next-day { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.next-time { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.week-row { display: flex; justify-content: space-between; align-items: baseline; }
.week-name { font-weight: 700; font-size: 13px; }
.week-range { font-size: 12px; color: var(--muted); }
.week-link { font-size: 12px; font-weight: 600; white-space: nowrap; }
.card-divider { border-top: 1px solid var(--line); margin: 12px 0; }
.trust-col { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--ink-2); padding: 0 4px; }

/* ------------------------------ Kalender Screen ------------------------------ */
.grid-cal { display: grid; grid-template-columns: 290px minmax(0, 1fr) 236px; gap: 16px; align-items: start; }
.mini-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mini-head button { width: 28px; height: 28px; border: none; background: transparent; font-size: 16px; color: var(--ink); padding: 0; }
.mini-head .month-label { min-width: 0; }
.mini-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.mini-dow div { text-align: center; font-size: 11px; color: var(--hint); }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.mini-cell { height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--disabled); background: transparent; }
.mini-cell.is-out { color: #e2e4e9; }
.mini-cell.is-avail { color: var(--ink); font-weight: 600; cursor: pointer; }
.mini-cell.is-today { box-shadow: inset 0 0 0 1px var(--blue); }
.mini-cell.is-sel { background: var(--blue); color: #fff; font-weight: 600; }
.mini-legend { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--ink-2); }
.mini-legend .dot { width: 8px; height: 8px; border-radius: 50%; }
.week-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.week-label { font-weight: 700; font-size: 14px; }
.week-nav { display: flex; gap: 4px; }
.week-nav button { width: 26px; height: 26px; border: 1px solid var(--card-bd); border-radius: 7px; background: #fff; font-size: 14px; color: var(--ink); padding: 0; }
.week-grid { display: grid; grid-template-columns: 38px repeat(7, 1fr); }
.wday-head { text-align: center; padding: 4px 0 8px; cursor: pointer; }
.wday-head .wd { font-size: 11px; color: var(--hint); }
.wday-head .num { width: 24px; height: 24px; margin: 2px auto 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--ink); }
.wday-head.is-sel .num { background: var(--blue); color: #fff; }
.hour-rail { position: relative; height: 400px; }
.hour-rail div { position: absolute; right: 6px; font-size: 10px; color: var(--hint); transform: translateY(-4px); }
.wday-col { position: relative; height: 400px; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, #f1f2f5 0, #f1f2f5 1px, transparent 1px, transparent 40px); }
.wday-col.is-wknd { background-color: #f7f8fa; }
.wday-col.is-sel { background-color: #f5f7ff; }
.wk-slot { position: absolute; left: 5px; right: 5px; border-radius: 6px; background: var(--green-bg); border: 1px solid var(--green-bd); color: var(--green-text); font-size: 10px; font-weight: 600; display: flex; flex-direction: column; line-height: 1.3; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; }
.wk-slot.is-sel { background: var(--blue); border-color: var(--blue); color: #fff; }
.sel-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.sel-line { font-size: 13px; color: var(--ink-2); }
.sel-time-row { display: flex; align-items: center; gap: 10px; margin: 10px 0 14px; }
.sel-meta-label { font-size: 12px; color: var(--hint); margin-top: 10px; }
.sel-meta-value { font-size: 13px; font-weight: 600; }
.sel-empty { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ------------------------------ Terminvorschlag ------------------------------ */
.suggest-card { display: flex; gap: 12px; align-items: flex-start; background: var(--blue-bg); border: 1px solid var(--blue-bd); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.suggest-ico { flex-shrink: 0; margin-top: 1px; }
.suggest-card .txt { flex: 1; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.suggest-card .txt b { color: var(--ink); }
.suggest-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.rec-badge { color: var(--green-text); font-weight: 600; }

/* ------------------------------ Tagesansicht ------------------------------ */
.grid-two { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.day-part { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.slot-list { display: flex; flex-direction: column; gap: 8px; }
.slot-list + .day-part { margin-top: 22px; }
.slot-row { display: flex; align-items: center; gap: 14px; border: 1px solid var(--card-bd); background: #fff; border-radius: 10px; padding: 12px 16px; cursor: pointer; }
.slot-row.is-sel { border-color: var(--blue); background: var(--blue-bg); }
.slot-row .lbl { font-weight: 700; font-size: 15px; min-width: 100px; }
.slot-row .sub { font-size: 13px; color: var(--muted); flex: 1; }
.slot-check { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #d6d9e0; color: #fff; font-size: 11px; flex-shrink: 0; }
.slot-row.is-sel .slot-check, .svc-row.is-sel .slot-check { background: var(--blue); border-color: var(--blue); }
.day-empty { text-align: center; color: var(--muted); font-size: 14px; padding: 30px 0; line-height: 1.7; }

/* ------------------------------ Leistungen ------------------------------ */
.svc-list { display: flex; flex-direction: column; gap: 12px; }
.svc-row { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--card-bd); border-radius: 14px; padding: 18px 20px; cursor: pointer; }
.svc-row.is-sel { border-color: var(--blue); background: var(--blue-bg); }
.svc-icon { width: 44px; height: 44px; border-radius: 11px; background: #fff; border: 1px solid var(--card-bd); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.svc-main { flex: 1; }
.svc-name { font-weight: 700; font-size: 15px; }
.svc-name span { color: var(--hint); font-weight: 500; }
.svc-desc { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ------------------------------ Formular ------------------------------ */
.stepper-wrap { display: flex; justify-content: flex-end; margin: 0 0 20px; }
.stepper { display: flex; align-items: center; gap: 8px; font-size: 12px; background: #fff; border: 1px solid var(--card-bd); border-radius: 99px; padding: 6px 14px; }
.step-dot { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: #fff; color: var(--hint); border: 1px solid #d6d9e0; }
.step-dot.is-done, .step-dot.is-on { background: var(--blue); color: #fff; border-color: var(--blue); }
.step-dot.is-past { background: var(--blue-bg); color: var(--blue); border-color: var(--blue-bd); }
.step-name { font-weight: 600; }
.step-line { width: 24px; height: 1px; background: var(--line-2); }
.grid-form { display: grid; grid-template-columns: 240px minmax(0, 1fr) 220px; gap: 16px; align-items: start; }
.form-title { font-weight: 700; font-size: 15px; margin-bottom: 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 5px; }
.field input, .field textarea { width: 100%; border: 1px solid #d6d9e0; border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.field textarea { resize: vertical; }
.field input[readonly] { background: #f7f8fa; color: var(--muted); }
.field-error { font-size: 12px; color: var(--red); margin-top: 5px; display: none; }
.field.has-error input { border-color: var(--red) !important; }
.field.has-error .field-error { display: block; }
.form-nav { display: flex; justify-content: space-between; margin-top: 20px; gap: 10px; }
.check-table { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.check-row { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.check-row:last-child { border-bottom: none; padding-bottom: 0; }
.check-row .k { color: var(--muted); }
.check-row .v { font-weight: 600; text-align: right; }
.info-card { font-size: 13px; color: var(--ink-2); }
.info-card .body { margin-top: 10px; line-height: 1.5; }
.info-card .foot { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; }

/* ------------------------------ Bestätigung ------------------------------ */
.confirm-card { background: #fff; border: 1px solid var(--card-bd); border-radius: 20px; padding: 56px 40px 40px; text-align: center; }
.confirm-card h1 { margin: 18px 0 0; font-size: 42px; font-weight: 700; letter-spacing: -0.03em; }
.confirm-when { margin-top: 10px; font-size: 17px; font-weight: 600; color: var(--green-text); }
.confirm-sub { margin-top: 14px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.confirm-actions { margin-top: 28px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.confirm-trust { margin-top: 34px; display: flex; justify-content: center; align-items: center; gap: 14px; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; }
.btn-ics { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff !important; border-radius: 9px; padding: 11px 18px; font-weight: 600; font-size: 14px; text-decoration: none !important; }

/* ------------------------------ Ihre Termine ------------------------------ */
.appt-card { background: #fff; border: 1px solid var(--card-bd); border-radius: 16px; padding: 20px; }
.appt-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.appt-icon { width: 60px; height: 60px; border-radius: 14px; background: var(--blue-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.appt-main { flex: 1; min-width: 200px; }
.appt-date { font-size: 13px; color: var(--ink-2); }
.appt-range { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.appt-svc { font-size: 13px; color: var(--muted); margin-top: 2px; }
.appt-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.appt-details { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; display: flex; gap: 32px; flex-wrap: wrap; font-size: 13px; }
.appt-details .k { color: var(--hint); font-size: 12px; }
.appt-details .v { font-weight: 600; }
.appt-empty { background: #fff; border: 1px dashed #d6d9e0; border-radius: 16px; padding: 36px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.7; }
.appt-past { background: #fff; border: 1px solid var(--card-bd); border-radius: 12px; padding: 14px 18px; display: flex; gap: 16px; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.appt-past .d { font-weight: 600; color: var(--ink-2); }
.appt-past-empty { background: #f7f8fa; border: 1px solid var(--line); border-radius: 14px; padding: 30px; text-align: center; color: var(--hint); font-size: 13px; }

/* ------------------------------ Verschieben ------------------------------ */
.grid-res { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; align-items: start; }
.alt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.alt-cell { border: 1px solid var(--card-bd); background: #fff; border-radius: 12px; padding: 14px 10px; text-align: center; cursor: pointer; }
.alt-cell.is-sel { background: var(--green-bg); border-color: var(--green); }
.alt-cell .d { font-size: 12px; color: var(--muted); }
.alt-cell .t { font-size: 17px; font-weight: 700; margin-top: 2px; }
.alt-more { border: 1px dashed #c9cdd6; border-radius: 12px; padding: 14px 10px; text-align: center; cursor: pointer; color: var(--ink-2); font-size: 12px; }
.alt-more .b { font-weight: 600; }

/* ------------------------------ Login ------------------------------ */
.login-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; }
.login-card { background: #fff; border: 1px solid var(--card-bd); border-radius: 20px; padding: 40px 36px; max-width: 420px; width: 100%; text-align: center; }
.login-card h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 18px 0 8px; }
.login-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0 0 8px; }
.login-form { margin-top: 20px; text-align: left; }
.login-note { margin-top: 16px; font-size: 12px; color: var(--hint); line-height: 1.5; }
.login-ok { background: var(--green-bg); border: 1px solid var(--green-bd); color: var(--green-text); border-radius: 10px; padding: 12px 14px; font-size: 13px; margin-top: 16px; display: none; }
.login-err { background: var(--red-bg); border: 1px solid var(--red-bd); color: var(--red); border-radius: 10px; padding: 12px 14px; font-size: 13px; margin-bottom: 16px; }

/* ------------------------------ Toast ------------------------------ */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; border-radius: 10px; padding: 12px 18px; font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 60; max-width: 90vw; text-align: center; }
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ------------------------------ Admin ------------------------------ */
.admin-tabs { display: flex; gap: 6px; background: #fff; border: 1px solid var(--card-bd); border-radius: 12px; padding: 5px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-tab { border: none; background: transparent; border-radius: 8px; padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.admin-tab.is-on { background: var(--ink); color: #fff; }
.admin-tab .count { display: inline-block; min-width: 18px; padding: 1px 5px; border-radius: 99px; background: var(--amber-bg); color: var(--amber-text); font-size: 11px; margin-left: 4px; }
.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-row { background: #fff; border: 1px solid var(--card-bd); border-radius: 14px; padding: 16px 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.admin-row .main { flex: 1; min-width: 220px; }
.admin-row .t1 { font-weight: 700; font-size: 14px; }
.admin-row .t2 { font-size: 13px; color: var(--muted); margin-top: 2px; }
.admin-row .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-sm { padding: 8px 14px; font-size: 12px; border-radius: 8px; }
.admin-empty { background: #f7f8fa; border: 1px solid var(--line); border-radius: 14px; padding: 28px; text-align: center; color: var(--hint); font-size: 13px; }
.link-box { background: #f7f8fa; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 12px; word-break: break-all; margin-top: 10px; font-family: ui-monospace, monospace; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.switch-row .k { font-size: 13px; font-weight: 600; }
.switch-row .s { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ------------------------------ Mobil: eigenes Layout ------------------------------ */
.mobile-bar { display: none; }
@media (max-width: 719px) {
  .page { padding: 14px 12px 96px; }
  .topbar { margin-bottom: 16px; }
  .screen-title { font-size: 19px; }
  .topbar-meta { gap: 8px; font-size: 11px; }
  .meta-city, .meta-live { display: none; }
  .grid-home, .grid-two, .grid-form, .grid-res { grid-template-columns: minmax(0, 1fr); }
  .grid-cal { grid-template-columns: minmax(0, 1fr); }
  .week-card { display: none; }
  .card, .card-lg { padding: 16px; border-radius: 14px; }
  .dash-cell { height: 46px; padding: 5px 6px; border-radius: 8px; }
  .dash-cell .st .txt { display: none; }
  .legend { gap: 10px; font-size: 11px; }
  .legend-hint { margin-left: 0; width: 100%; }
  .side-col { flex-direction: column; }
  .next-card { display: flex; align-items: center; gap: 14px; }
  .next-card .next-main { flex: 1; }
  .next-card .next-time { font-size: 22px; }
  .next-card .btn { width: auto; margin-top: 0 !important; }
  .confirm-card { padding: 40px 20px 28px; }
  .confirm-card h1 { font-size: 30px; }
  .alt-grid { grid-template-columns: repeat(2, 1fr); }
  .appt-actions { flex-direction: row; align-items: center; width: 100%; }
  .stepper-wrap { justify-content: center; margin-bottom: 16px; }
  .sel-card-desktop { display: none; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--card-bd); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); align-items: center; gap: 12px; z-index: 50; }
  .mobile-bar .info { flex: 1; min-width: 0; }
  .mobile-bar .l1 { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-bar .l2 { font-size: 15px; font-weight: 700; }
  .mobile-bar .btn { flex-shrink: 0; }
  .login-card { padding: 30px 22px; }
}
@media (min-width: 720px) {
  .mobile-only { display: none !important; }
}
