:root {
  --bg: #0a0a0a;
  --s1: #141414;
  --s2: #1e1e1e;
  --s3: #2a2a2a;
  --s4: #3a3a3a;
  --text: #f0f0f0;
  --text2: #999;
  --text3: #666;
  --red: #e63946;
  --red-dim: #e6394620;
  --green: #00c875;
  --green-dim: #00c87520;
  --yellow: #ffbe0b;
  --yellow-dim: #ffbe0b20;
  --blue: #4ea8de;
  --r: 12px;
  --r-sm: 8px;
  --r-lg: 16px;
  --shadow: 0 2px 12px rgba(0,0,0,.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(rgba(230,57,70,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230,57,70,.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
body::after {
  content: '';
  position: fixed; top: -30%; left: 50%; transform: translateX(-50%);
  width: 140%; height: 60%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(230,57,70,.06) 0%, transparent 70%);
}

/* ── Login ── */
.login-wrap {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100dvh; padding: 24px;
}
.login-box {
  background: var(--s1); border-radius: var(--r-lg); padding: 32px; width: 100%; max-width: 360px;
  box-shadow: var(--shadow);
}
.login-box h1 { font-size: 22px; margin-bottom: 4px; }
.login-box .sub { color: var(--text2); font-size: 13px; margin-bottom: 24px; }
.login-box label { display: block; font-size: 13px; color: var(--text2); margin-bottom: 4px; margin-top: 16px; }
.login-box input {
  width: 100%; padding: 12px 14px; background: var(--s2); border: 1px solid var(--s3);
  border-radius: var(--r-sm); color: var(--text); font-size: 16px; outline: none;
}
.login-box input:focus { border-color: var(--red); }
.login-box button {
  width: 100%; margin-top: 24px; padding: 14px; background: var(--red); color: #fff;
  border: none; border-radius: var(--r-sm); font-size: 16px; font-weight: 600; cursor: pointer;
}
.login-box button:active { opacity: .85; }
.login-error { color: var(--red); font-size: 13px; margin-top: 12px; text-align: center; }

/* ── App shell ── */
.app { display: flex; flex-direction: column; min-height: 100dvh; }
.app-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 8px; background: transparent;
  position: sticky; top: 0; z-index: 50;
}
.app-header h1 { font-size: 17px; font-weight: 600; display: none; }
.header-user { font-size: 13px; color: var(--text2); display: none; }

.app-content { flex: 1; padding: 0 16px 16px; padding-bottom: 100px; max-width: 600px; margin: 0 auto; width: 100%; }

.tab-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(20,20,20,.75);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex; padding: 6px 0 env(safe-area-inset-bottom, 8px);
  z-index: 50;
}
.tab-bar button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: none; color: var(--text3); font-size: 10px; padding: 6px 0;
  cursor: pointer; transition: color .15s;
}
.tab-bar button.active { color: var(--red); }
.tab-bar button .tab-icon { font-size: 22px; line-height: 1; }
.tab-icon-svg { width: 22px; height: 22px; display: block; margin: 0 auto 2px; }

/* ── Dashboard greeting ── */
.dash-greeting { padding: 16px 0 4px; text-align: center; }
.dash-greeting h2 { font-size: 28px; font-weight: 700; letter-spacing: -.5px; }
.dash-greeting .dash-date { font-size: 14px; color: var(--text2); margin-top: 2px; }

/* ── Cards (Glass) ── */
.card {
  background: rgba(20,20,20,.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--r); padding: 16px; margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.card-title { font-size: 13px; color: var(--text2); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
.card-title-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.card-title-row .card-title { margin-bottom: 0; }
.card-link { font-size: 13px; color: var(--red); font-weight: 600; text-decoration: none; cursor: pointer; }

/* ── Timer ── */
.timer-card {
  background: rgba(20,20,20,.65);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border-radius: var(--r); padding: 20px 16px; margin-bottom: 12px;
  border: 1px solid rgba(230,57,70,.3);
  box-shadow: 0 0 40px rgba(230,57,70,.1), 0 0 80px rgba(230,57,70,.04), var(--shadow);
}
.timer-card.idle {
  border-color: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
}
.timer-display {
  text-align: center; padding: 8px 0;
}
.timer-status {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text2); margin-bottom: 8px;
}
.timer-status .rec-dot { margin-right: 6px; }
.timer-time {
  font-size: 52px; font-weight: 200; font-variant-numeric: tabular-nums; letter-spacing: -2px;
}
.timer-sub { font-size: 16px; color: var(--red); font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }
.timer-meta { font-size: 13px; color: var(--text2); margin-top: 4px; font-variant-numeric: tabular-nums; }
.timer-label { font-size: 13px; color: var(--text2); margin-top: 4px; }

.rec-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--red);
  vertical-align: middle;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.timer-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.btn {
  padding: 14px 28px; border: none; border-radius: var(--r-sm); font-size: 15px;
  font-weight: 600; cursor: pointer; transition: opacity .15s;
}
.btn:active { opacity: .8; }
.btn-red { background: var(--red); color: #fff; }
.btn-outline {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: var(--text);
  -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 8px rgba(0,0,0,.25);
  transition: background .15s, border-color .15s, transform .1s;
}
.btn-outline:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.32); }
.btn-outline:active { transform: scale(.98); }
.btn-green { background: var(--green); color: #000; }
.btn-small { padding: 8px 16px; font-size: 13px; }
.btn-full { width: 100%; }
.btn-ghost { background: none; border: none; color: var(--red); font-size: 14px; cursor: pointer; padding: 8px 0; }
.btn-red-outline {
  background: transparent; border: 1px solid var(--red); color: var(--red);
}
.btn-red-outline:active { background: rgba(230,57,70,.15); }
.btn-leave-edit {
  background: var(--red); color: #fff; border: none; border-radius: var(--r-sm);
  width: 36px; height: 36px; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: opacity .15s;
}
.btn-leave-edit:active { opacity: .7; }
.mb-12 { margin-bottom: 12px; }

/* ── Stats row ── */
.stats-row { display: flex; gap: 10px; margin-bottom: 12px; }
.stat-box {
  flex: 1; background: rgba(20,20,20,.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--r); padding: 14px;
  box-shadow: var(--shadow);
}
.stat-label { font-size: 12px; color: var(--text2); margin-bottom: 4px; }
.stat-val { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-unit { font-size: 14px; font-weight: 400; color: var(--text2); margin-left: 2px; }
.stat-val.positive { color: var(--green); }
.stat-val.negative { color: var(--red); }

/* ── Today stats ── */
.today-stats {
  background: rgba(20,20,20,.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--r); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.today-stats .card-title { margin-bottom: 8px; }
.today-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--s2); font-size: 15px; }
.today-row:last-child { border-bottom: none; }
.today-row .val { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ── Quick actions ── */
.quick-action {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: rgba(20,20,20,.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-left: 1px solid rgba(255,255,255,.05);
  border-right: 1px solid rgba(255,255,255,.05);
  margin-bottom: 0;
  cursor: pointer; transition: background .15s;
}
.quick-action:first-child {
  border-radius: var(--r) var(--r) 0 0;
  border-top: 1px solid rgba(255,255,255,.05);
}
.quick-action:last-child {
  border-radius: 0 0 var(--r) var(--r); margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.quick-action:only-child {
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.05);
}
.quick-action + .quick-action { border-top: 1px solid rgba(255,255,255,.03); }
.quick-action:active { background: rgba(255,255,255,.04); }
.quick-action .qa-icon { font-size: 20px; flex-shrink: 0; width: 28px; text-align: center; }
.quick-action .qa-label { flex: 1; font-size: 15px; font-weight: 500; }
.quick-action .qa-arrow { color: var(--text3); font-size: 18px; }

/* ── Team preview on dashboard ── */
.team-preview {
  background: rgba(20,20,20,.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--r); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.team-preview-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--s2);
}
.team-preview-item:last-child { border-bottom: none; }
.team-avatar {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.team-preview-name { flex: 1; font-size: 14px; font-weight: 500; }
.team-preview-dates { font-size: 13px; color: var(--text2); }
.blocked-notice {
  background: rgba(230,57,70,.08); border: 1px solid rgba(230,57,70,.15);
  border-radius: var(--r-sm); padding: 10px 12px; margin-top: 8px;
  font-size: 13px; color: var(--text2); line-height: 1.4;
}
.blocked-notice strong { color: var(--text); }

/* ── Entries list ── */
.entry-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--s2);
}
.entry-item:last-child { border-bottom: none; }
.entry-date { font-size: 14px; font-weight: 500; }
.entry-times { font-size: 12px; color: var(--text2); }
.entry-hours { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.entry-badge {
  display: inline-block; font-size: 10px; padding: 2px 6px; border-radius: 4px;
  text-transform: uppercase; font-weight: 600;
}
.badge-ok { background: var(--green-dim); color: var(--green); }
.badge-pending { background: var(--yellow-dim); color: var(--yellow); }
.badge-nachtrag { background: var(--red-dim); color: var(--red); }

/* ── Leave ── */
.leave-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--s2);
}
.leave-item:last-child { border-bottom: none; }
.leave-dates { font-size: 14px; }
.leave-days { font-size: 13px; color: var(--text2); }
.leave-status { font-size: 12px; font-weight: 600; }
.leave-status.genehmigt { color: var(--green); }
.leave-status.beantragt { color: var(--yellow); }
.leave-status.abgelehnt { color: var(--red); }
.leave-status.sondergenehmigung { color: var(--yellow); }
.leave-status.aenderung { color: var(--blue); }
.leave-status.storno { color: var(--red); }

/* ── Team calendar ── */
.team-entry {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--s2);
}
.team-entry:last-child { border-bottom: none; }
.team-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.team-dot.urlaub { background: var(--blue); }
.team-dot.krank { background: var(--red); }
.team-dot.feiertag { background: var(--green); }
.team-name { font-size: 14px; font-weight: 500; flex: 1; }
.team-dates { font-size: 12px; color: var(--text2); }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text2); margin-bottom: 4px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-sm); color: var(--text); font-size: 16px; outline: none;
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--red); }
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }

.quick-btns { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.quick-btn {
  padding: 8px 14px; background: var(--s2); border: 1px solid var(--s3);
  border-radius: var(--r-sm); color: var(--text); font-size: 13px; cursor: pointer;
}
.quick-btn:active { border-color: var(--red); }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
}
.modal {
  background: rgba(22,22,22,.85);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.08);
  border-bottom: none;
  border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 24px;
  width: 100%; max-width: 500px; max-height: 80dvh; overflow-y: auto;
  animation: slideUp .25s ease-out;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal h2 { font-size: 18px; margin-bottom: 16px; }
.modal-close { float: right; background: none; border: none; color: var(--text2); font-size: 20px; cursor: pointer; }

/* ── Admin ── */
.admin-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--r-sm); margin-bottom: 8px;
}
.admin-item .name { font-weight: 500; }
.admin-item .meta { font-size: 12px; color: var(--text2); }
.admin-badge { font-size: 10px; padding: 2px 8px; border-radius: 4px; background: var(--red-dim); color: var(--red); font-weight: 600; }

/* ── Overview Grid ── */
.overview-grid { display: flex; flex-direction: column; gap: 2px; }
.overview-header {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 8px 0;
  font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.overview-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.03); align-items: center;
}
.overview-name { font-weight: 500; font-size: 14px; }
.overview-cell { display: flex; flex-direction: column; gap: 2px; }
.overview-val { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.overview-val.positive { color: var(--green); }
.overview-val.negative { color: var(--red); }
.overview-sub { font-size: 11px; color: var(--text3); }

/* ── Toast ── */
.toast-container { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 200; }
.toast {
  background: rgba(30,30,30,.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text); padding: 12px 20px; border-radius: var(--r-sm);
  font-size: 14px; margin-bottom: 8px; box-shadow: 0 8px 32px rgba(0,0,0,.5);
  animation: fadeIn .2s ease-out;
  border-left: 3px solid var(--green);
}
.toast.error { border-left-color: var(--red); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } }

/* ── Section tabs ── */
.section-tabs { display: flex; gap: 0; margin-bottom: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: var(--r-sm); overflow: hidden; }
.section-tab {
  flex: 1; padding: 10px; text-align: center; font-size: 13px; font-weight: 500;
  background: none; border: none; color: var(--text2); cursor: pointer;
}
.section-tab.active { background: var(--red); color: #fff; }

/* ── iOS Toggle ── */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; color: var(--text); font-size: 14px;
}
.toggle { position: relative; display: inline-block; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track {
  display: block; width: 44px; height: 26px; border-radius: 13px;
  background: var(--s3); transition: background .2s;
}
.toggle-thumb {
  display: block; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; position: absolute; top: 2px; left: 2px;
  transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.toggle input:checked + .toggle-track { background: var(--red); }
.toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(18px); }

/* ── Confirm box ── */
.leave-preview {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-sm); padding: 12px; margin-top: 12px;
  font-size: 13px; color: var(--muted); line-height: 1.6;
}
.preview-holidays { margin-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.preview-holidays-label { color: var(--green); font-size: 12px; margin-bottom: 4px; }
.preview-holiday-item { font-size: 12px; padding-left: 4px; }
.confirm-box {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r-sm); padding: 12px; margin-top: 16px;
}
.confirm-label {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; color: var(--text); font-size: 13px; line-height: 1.5;
}
.confirm-check {
  flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px;
  accent-color: var(--red); border-radius: 4px;
}
.confirm-text { flex: 1; }

/* ── Pulse button ── */
@keyframes softPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230,57,70,.4); }
  50% { box-shadow: 0 0 0 8px rgba(230,57,70,0); }
}
.btn-pulse { animation: softPulse 2.5s ease-in-out infinite; }

/* ── Wheel-style inputs (iOS feel on mobile) ── */
.wheel-input {
  -webkit-appearance: none; appearance: none;
  text-align: center; font-variant-numeric: tabular-nums;
  font-size: 17px; font-weight: 500; letter-spacing: .5px;
}
.wheel-input[readonly] { opacity: .6; }

/* Date/time inputs — red icon accent */
input[type="date"], input[type="time"] {
  color-scheme: dark;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(30%) sepia(90%) saturate(2000%) hue-rotate(335deg) brightness(95%);
  cursor: pointer; opacity: 1;
}

/* ── Day Picker ── */
.day-picker { display: flex; gap: 4px; }
.day-btn {
  flex: 1; padding: 8px 0; border: 1px solid var(--s3); border-radius: 8px;
  background: transparent; color: var(--text2); font-size: 12px; font-weight: 600;
  cursor: pointer; text-align: center; transition: all .15s;
}
.day-btn.active { background: var(--red); color: #fff; border-color: var(--red); }

/* ── Helpers ── */
.hidden { display: none !important; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-muted { color: var(--text2); font-size: 13px; }

/* ── Responsive (already mobile-first) ── */
@media (min-width: 600px) {
  .app-content { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Onboarding ── */
#onboarding {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 24px env(safe-area-inset-bottom, 24px);
  overflow: hidden;
}
.ob-slides { flex: 1; display: flex; align-items: center; width: 100%; max-width: 340px; }
.ob-slide {
  display: none; flex-direction: column; align-items: center; text-align: center;
  width: 100%; animation: obFadeIn .3s ease;
}
.ob-slide.active { display: flex; }
@keyframes obFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.ob-icon {
  width: 80px; height: 80px; border-radius: 24px;
  background: linear-gradient(135deg, var(--red) 0%, #c1121f 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; margin-bottom: 28px;
  box-shadow: 0 8px 32px rgba(230,57,70,.3);
}
.ob-slide h2 { font-size: 24px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.ob-slide p { font-size: 15px; line-height: 1.6; color: var(--text2); }
.ob-dots { display: flex; gap: 8px; margin-bottom: 32px; }
.ob-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--s3); transition: all .2s;
}
.ob-dot.active { background: var(--red); width: 24px; border-radius: 4px; }
.ob-actions { display: flex; gap: 12px; width: 100%; max-width: 340px; }
.ob-skip {
  flex: 1; padding: 14px; border: none; border-radius: 10px;
  background: var(--s2); color: var(--text2); font-size: 15px; font-weight: 500; cursor: pointer;
}
.ob-next {
  flex: 2; padding: 14px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--red) 0%, #c1121f 100%);
  color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: opacity .15s;
}
.ob-next:active { opacity: .85; }

/* ── Einheitliche Icons ── */
.ic { vertical-align: -0.18em; flex-shrink: 0; }
.qa-icon .ic { vertical-align: middle; }

/* ── Beleg / Ausgabe ── */
.exp-hint { color: var(--text2); font-size: 13px; line-height: 1.5; margin: 0 0 18px; }
.exp-label { display: block; font-size: 12px; color: var(--text2); text-transform: uppercase; letter-spacing: .4px; margin: 16px 0 7px; }
.exp-input {
  width: 100%; padding: 13px 14px; border: 1px solid var(--s3); border-radius: var(--r-sm);
  background: var(--s2); color: var(--text); font-size: 15px; -webkit-appearance: none; appearance: none;
}
.exp-input:focus { outline: none; border-color: var(--red); }
select.exp-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px;
}
#expProjektSearch { margin-bottom: 8px; }
.exp-filebtn {
  display: block; text-align: center; padding: 18px; border: 2px dashed var(--s4); border-radius: var(--r);
  background: var(--s2); color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer;
}
.exp-filebtn:active { background: var(--s3); }
.exp-fileinfo { color: var(--green); font-size: 13px; margin-top: 8px; min-height: 16px; }
.exp-toggle { display: flex; gap: 8px; }
.exp-toggle button {
  flex: 1; padding: 12px 8px; border: 1px solid var(--s3); border-radius: var(--r-sm);
  background: var(--s2); color: var(--text2); font-size: 14px; font-weight: 500; cursor: pointer;
}
.exp-toggle button.active { background: var(--red); border-color: var(--red); color: #fff; }
.exp-privat-hint {
  margin-top: 10px; padding: 11px 13px; border-radius: var(--r-sm);
  background: var(--yellow-dim); color: var(--yellow); font-size: 13px; line-height: 1.4;
}

/* ── Beleg-Wizard (Schritt für Schritt) ── */
.exp-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; min-height: 22px; }
.exp-back { background: none; border: none; color: var(--text2); font-size: 14px; cursor: pointer; padding: 4px 0; display: inline-flex; align-items: center; gap: 4px; }
.exp-back:active { opacity: .6; }
.exp-dots { display: flex; gap: 6px; margin-left: auto; }
.exp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--s3); transition: background .2s; }
.exp-dot.on { background: var(--red); }
.exp-q { font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 18px; }
.exp-choices { display: flex; flex-direction: column; gap: 12px; }
.exp-choice {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px;
  border: 1px solid var(--s3); border-radius: var(--r); background: var(--s2);
  color: var(--text); font-size: 16px; font-weight: 600; cursor: pointer; text-align: left;
}
.exp-choice:active { background: var(--s3); }
.exp-choice span { display: flex; flex-direction: column; gap: 2px; }
.exp-choice small { font-size: 12px; font-weight: 400; color: var(--text2); }
.exp-preview { display: block; width: 100%; max-height: 340px; object-fit: contain; border-radius: var(--r); background: #000; margin-bottom: 8px; }
.exp-preview-doc { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 16px; border: 1px dashed var(--s4); border-radius: var(--r); margin-bottom: 8px; color: var(--text2); word-break: break-all; text-align: center; }
.exp-filemeta { color: var(--text2); font-size: 13px; margin-bottom: 14px; text-align: center; }
.exp-projlist { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow-y: auto; margin-top: 10px; }
.exp-projitem {
  display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 13px 14px;
  border: 1px solid var(--s3); border-radius: var(--r-sm); background: var(--s2);
  color: var(--text); font-size: 15px; cursor: pointer;
}
.exp-projitem:active { background: var(--s3); }
.exp-projitem small { font-size: 12px; color: var(--text2); }
.exp-done { text-align: center; padding: 12px 0; }
.exp-done-ic { display: flex; justify-content: center; margin: 10px 0; }
.exp-done-t { font-size: 20px; font-weight: 700; margin-bottom: 8px; }


/* ── Beleg aufnehmen (nativer iPhone-Picker) ── */
.exp-choice-tall { padding: 22px 18px; }
.exp-scanhint { margin-top: 14px; padding: 13px 14px; border-radius: var(--r-sm); background: var(--s2); border: 1px solid var(--s3); color: var(--text2); font-size: 13px; line-height: 1.55; }
.exp-scanhint b { color: var(--text); font-weight: 600; }


/* ── Eck-Editor (Foto zuschneiden/entzerren) ── */
.ce-ov { position: fixed; inset: 0; z-index: 9999; background: #0a0a0a; display: flex; flex-direction: column; }
.ce-hint { color: #fff; text-align: center; font-size: 14px; font-weight: 500; padding: calc(14px + env(safe-area-inset-top,0)) 16px 8px; }
.ce-stage { flex: 1; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ce-img { max-width: 100%; max-height: 100%; display: block; -webkit-user-select: none; user-select: none; pointer-events: none; }
.ce-svg { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
#cePoly { fill: rgba(0,200,117,.16); stroke: #00c875; stroke-width: 3px; vector-effect: non-scaling-stroke; }
.ce-h { fill: #00c875; stroke: #fff; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.ce-hit { fill: transparent; }
.ce-bar { display: flex; gap: 10px; padding: 14px 16px calc(20px + env(safe-area-inset-bottom,0)); }
.ce-btn { flex: 1; padding: 14px 10px; border-radius: 10px; border: none; font-size: 15px; font-weight: 600; cursor: pointer; }
.ce-ghost { background: rgba(255,255,255,.14); color: #fff; }
.ce-go { background: var(--red); color: #fff; flex: 1.4; }
