@font-face {
  font-family: "Frutiger LT";
  src: url("../assets/fonts/FrutigerLTPro-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Frutiger LT";
  src: url("../assets/fonts/FrutigerLTPro-Roman.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Frutiger LT";
  src: url("../assets/fonts/FrutigerLTPro-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-accent: #D71946;
  --color-dark: #455563;
  --color-gray-light: #D9D9D9;
  --color-gray-lighter: #E4E5E6;
  --color-gray-mid: #949CA3;
  --color-success: #1CA638;
  --color-warning: #E67B39;
  --color-white: #FFFFFF;
  --color-black: #000000;
  --font-family: "Frutiger LT", -apple-system, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --stage-w: 1194px;
  --stage-h: 834px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #0b0e11;
  overflow: hidden;
  font-family: var(--font-family);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.viewport {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage {
  position: relative;
  width: var(--stage-w);
  height: var(--stage-h);
  flex: none;
  transform-origin: center center;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  overflow: hidden;
  background: var(--color-white);
}
.screen.is-active { display: block; }

.screen-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.screen-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.screen-bg-overlay.hero {
  background: none;
}
.bg-isolate {
  position: absolute;
  inset: 0;
  isolation: isolate;
  z-index: 0;
}
.screen-bg-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1100px 620px at 88% -8%, rgba(215,25,70,.10) 0%, rgba(215,25,70,0) 55%),
    linear-gradient(160deg, #EEF1F3 0%, #E7EAEC 45%, #DEE3E6 100%);
}
.screen-bg-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #2F3B47 0%, #455563 38%, rgba(69,85,99,0) 60%);
  opacity: .06;
}

.abs { position: absolute; }

/* ---------- Typography ---------- */
.tx {
  position: absolute;
  color: var(--color-black);
  line-height: 1.18;
  white-space: pre-wrap;
}
.tx.w700 { font-weight: 700; }
.tx.w400 { font-weight: 400; }
.tx.w300 { font-weight: 300; }
.tx.center { text-align: center; }
.tx.right { text-align: right; }
.tx.on-dark { color: var(--color-white); text-shadow: 0 2px 12px rgba(0,0,0,.45), 0 1px 3px rgba(0,0,0,.4); }

/* ---------- Cards ---------- */
.card {
  position: absolute;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(30,40,48,.10);
  z-index: 2;
}

.hero-card {
  position: absolute;
  background: rgba(255,255,255,.58);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  z-index: 2;
}

.screen-fg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 4;
  pointer-events: none;
}

/* ---------- Form fields ---------- */
.field { position: absolute; z-index: 2; }
.field label {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 16px;
  color: var(--color-black);
}
.field input {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: 40px;
  border: 1px solid rgba(69,85,99,.35);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  padding: 0 12px;
  font-size: 16px;
  font-family: var(--font-family);
  color: var(--color-black);
  outline: none;
}
.field input:focus { border-color: var(--color-accent); border-width: 2px; }

/* ---------- Buttons ---------- */
.btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: var(--font-family);
  cursor: pointer;
  border: none;
  transition: background-color .15s ease, transform .1s ease, box-shadow .15s ease;
  z-index: 2;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(215,25,70,.30);
}
.btn-primary:active { background: #b81339; transform: scale(.98); }

.role-btn {
  background: rgba(255,255,255,.72);
  border: 1.5px solid rgba(255,255,255,.65) !important;
  color: var(--color-black);
  font-size: 24px;
  font-weight: 400;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  box-shadow: 0 2px 8px rgba(30,40,48,.06);
}
.role-btn:active { background: var(--color-gray-lighter); transform: scale(.99); }
.role-btn.is-disabled {
  opacity: .55;
  cursor: not-allowed;
}
.role-btn .soon-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-dark);
  background: var(--color-gray-lighter);
  border-radius: 20px;
  padding: 4px 10px;
  flex: none;
}

.help-btn {
  background: var(--color-dark);
  color: var(--color-white);
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(30,40,48,.22);
}
.help-btn:active { transform: scale(.97); }

.vehicle-btn {
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-lighter) !important;
  color: var(--color-black);
  font-size: 22px;
  font-weight: 700;
  justify-content: flex-start;
  padding-left: 22px;
  box-shadow: 0 2px 8px rgba(30,40,48,.06);
}
.vehicle-btn:active { background: var(--color-gray-lighter); transform: scale(.99); }

.back-btn {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--color-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background-color .15s ease, transform .1s ease;
}
.back-btn svg { width: 18px; height: 18px; }
.back-btn:active { background: #313d48; transform: scale(.92); }

/* ---------- Sidebar ---------- */
.sidebar {
  position: absolute;
  left: 32px;
  top: 32px;
  width: 84px;
  height: 770px;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease;
}
.sidebar.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.sidebar-shape {
  position: absolute;
  left: 0;
  top: 0;
  width: 84px;
  height: 770px;
  overflow: visible;
  filter: drop-shadow(0 10px 24px rgba(20,26,32,.30));
}
.sidebar-shape path {
  transition: d .38s cubic-bezier(.4,0,.2,1);
}
.sidebar__icon-btn {
  position: absolute;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform .12s ease;
  z-index: 4;
}
.sidebar__icon-btn:active { transform: scale(.9); }
.sidebar__icon-glyph {
  width: 32px;
  height: 32px;
  flex: none;
  background-color: #EDEFF1;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  pointer-events: none;
  transform: scale(1);
  transition: background-color .3s ease, transform .4s cubic-bezier(.34,1.56,.64,1), filter .3s ease;
}
.sidebar__icon-btn.is-active .sidebar__icon-glyph {
  background-color: var(--color-accent);
  filter: drop-shadow(0 2px 6px rgba(215,25,70,.45));
}

/* Per-icon sizing: source SVGs have very different content proportions
   (square gear vs. wide car), so each gets a tuned box to read as the
   same optical size instead of all being squeezed into one square. */
.sidebar__icon-glyph.icon-home { width: 29px; height: 32px; }
.sidebar__icon-glyph.icon-benachrichtigungen { width: 29px; height: 32px; }
.sidebar__icon-glyph.icon-kalender { width: 30px; height: 30px; }
.sidebar__icon-glyph.icon-shop { width: 36px; height: 27px; }
.sidebar__icon-glyph.icon-fahrzeuge { width: 42px; height: 21px; }
.sidebar__icon-glyph.icon-einstellungen { width: 30px; height: 30px; }

.sidebar__icon-btn.is-active .sidebar__icon-glyph { transform: scale(1.18); }

/* ---------- Home content ---------- */
.avatar-image {
  position: absolute;
  object-fit: cover;
  z-index: 1;
  border-radius: 6px;
  mix-blend-mode: soft-light;
  opacity: 1;
}

.status-bar {
  position: absolute;
  border-radius: 4px;
}

.history-row {
  position: absolute;
  border: 1px solid var(--color-gray-lighter);
  border-radius: 8px;
  background: #F4F5F6;
}
.history-row.critical { border-color: var(--color-accent); background: #FDF1F4; }

.error-row {
  position: absolute;
  background: var(--color-white);
  border: 1px solid var(--color-gray-lighter);
  border-radius: 8px;
}
.error-row.critical { border-color: var(--color-accent); background: #FDF1F4; }

.error-stripe {
  position: absolute;
  border-radius: 4px;
}

/* ---------- Utility ---------- */
.hidden { display: none !important; }

.toast {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  background: rgba(20,24,28,.92);
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 15px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.toast.is-visible { opacity: 1; }

/* ---------- Modal overlays ---------- */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18,24,29,.58);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, background-color .22s ease, visibility 0s linear .22s;
}
.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .22s ease, background-color .22s ease;
}

.modal-card {
  position: relative;
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0,0,0,.4);
  padding: 32px;
  transform-origin: center center;
  transform: scale(.15);
  opacity: 0;
  transition: transform .32s cubic-bezier(.2,.9,.3,1.2), opacity .18s ease;
}
.modal-backdrop.is-open .modal-card { transform: scale(1); opacity: 1; }

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--color-gray-lighter);
  color: var(--color-dark);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background-color .15s ease;
}
.modal-close:hover { background: var(--color-gray-light); }

.modal-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-black);
  margin: 0 0 24px;
}

.modal-field {
  position: relative;
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-gray-light);
  border-radius: 10px;
  color: var(--color-black);
  font-size: 15px;
  font-family: var(--font-family);
  margin-bottom: 14px;
  cursor: text;
  background: #FAFBFB;
  outline: none;
}
.modal-field::placeholder { color: #606060; }
.modal-field:focus { border-color: var(--color-accent); border-width: 1.5px; }
.modal-field .field-icon {
  display: inline-block;
  width: 18px;
  margin-right: 4px;
}

.modal-note {
  width: 100%;
  min-height: 110px;
  border: 1px solid var(--color-gray-light);
  border-radius: 10px;
  background: #FAFBFB;
  color: var(--color-dark);
  font-size: 15px;
  padding: 14px 16px;
  font-family: var(--font-family);
  resize: none;
  outline: none;
}
.modal-note:focus { border-color: var(--color-accent); border-width: 1.5px; }

.modal-btn-primary {
  margin-top: 8px;
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 10px;
  background: var(--color-accent);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}
.modal-btn-primary:active { background: #b81339; }

.modal-vr-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 20px rgba(215,25,70,.3);
}
.modal-vr-icon svg { width: 36px; height: 36px; }
.modal-vr-text {
  font-size: 16px; line-height: 1.5; color: var(--color-dark);
  margin: 0 0 24px; font-family: var(--font-family);
}

/* Month picker */
.month-picker { z-index: 6; }
.month-trigger {
  position: relative;
  background: var(--color-white);
  border: 1.5px solid var(--color-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-weight: 700;
  font-size: 19px;
  color: var(--color-black);
  cursor: pointer;
  font-family: var(--font-family);
}
.month-trigger.is-open { border-radius: 8px 8px 0 0; }
.month-trigger-chevron { flex: none; margin-left: 12px; transition: transform .2s ease; }
.month-trigger.is-open .month-trigger-chevron { transform: rotate(180deg); }

.month-dropdown {
  position: absolute;
  left: 0;
  top: 48px;
  width: 100%;
  background: var(--color-white);
  border: 1.5px solid var(--color-accent);
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 14px 30px rgba(30,40,48,.16);
  padding: 16px 20px 22px;
  display: none;
}
.month-dropdown.is-open { display: block; }

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 34px);
  gap: 6px 4px;
  justify-content: center;
}
.month-grid .dow {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-dark);
  text-align: center;
}
.month-grid .day {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 300;
  color: var(--color-black);
  cursor: default;
}
.month-grid .day.is-muted { color: var(--color-gray-mid); }
.month-grid .day.is-in-week { background: var(--color-gray-lighter); border-radius: 0; }
.month-grid .day.is-week-start { border-radius: 50% 0 0 50%; }
.month-grid .day.is-week-end { border-radius: 0 50% 50% 0; }
.month-grid .day.is-today { background: var(--color-accent) !important; color: #fff; border-radius: 50%; font-weight: 700; }

/* Warenkorb */
.cart-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-gray-lighter);
}
.cart-row img { width: 90px; height: 90px; object-fit: contain; }
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  padding: 6px 0;
}
.cart-summary-row.total { font-weight: 700; font-size: 22px; padding-top: 14px; }

/* ---------- Shop ---------- */
.shop-tab {
  position: absolute;
  top: 130px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--color-dark);
  background: var(--color-white);
  color: var(--color-black);
  font-size: 18px;
  font-family: var(--font-family);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.shop-tab.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  font-weight: 700;
}

.cart-fab {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 90px;
  height: 56px;
  border-radius: 8px;
  border: 1px solid var(--color-dark);
  background: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-fab .sidebar__icon-glyph {
  width: 30px;
  height: 22px;
  background-color: var(--color-dark);
}
.cart-fab-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 11px;
  background: var(--color-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-grid {
  position: absolute;
  left: 32px;
  top: 212px;
  width: 933px;
  display: grid;
  grid-template-columns: repeat(3, 293px);
  align-items: start;
  gap: 22px 27px;
}

.product-card { position: relative; display: flex; flex-direction: column; padding-bottom: 8px; }
.product-card.is-hidden { display: none; }

.product-image-box {
  position: relative;
  flex: none;
  width: 293px;
  height: 152px;
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(30,40,48,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.product-image-box img {
  max-width: 68%;
  max-height: 68%;
  object-fit: contain;
}

.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-gray-lighter);
  background: rgba(255,255,255,.92);
  font-size: 18px;
  line-height: 1;
  color: var(--color-gray-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fav-btn.is-fav { color: var(--color-accent); border-color: var(--color-accent); }

.product-name {
  position: static;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.25;
  color: var(--color-black);
}

.product-footer {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}
.product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
  font-family: var(--font-family);
}
.product-add-btn {
  width: 34px; height: 34px; padding: 0; border-radius: 50%; border: none;
  background: var(--color-accent); color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-family: var(--font-family); flex: none;
}
.product-add-btn svg { width: 16px; height: 16px; display: block; }
.product-add-btn:active { background: #b81339; transform: scale(.94); }

.cart-qty { display: flex; align-items: center; gap: 10px; flex: none; }
.cart-qty-btn {
  width: 30px; height: 30px; padding: 0; border-radius: 50%;
  border: 1px solid var(--color-gray-light); background: var(--color-white);
  color: var(--color-black);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-family: var(--font-family);
}
.cart-qty-btn svg { width: 13px; height: 13px; display: block; }
.cart-qty-btn:active { background: var(--color-gray-lighter); }
.cart-qty-value { min-width: 20px; text-align: center; font-size: 16px; font-weight: 700; }

/* ---------- Einstellungen ---------- */
.settings-input {
  position: absolute;
  border: 1px solid var(--color-gray-light);
  border-radius: 8px;
  background: #F4F5F6;
  padding: 0 14px;
  font-size: 16px;
  font-family: var(--font-family);
  color: var(--color-black);
  outline: none;
}
.settings-input:focus { border-color: var(--color-accent); }

.settings-select {
  position: absolute;
  border: 1px solid var(--color-gray-light);
  border-radius: 8px;
  background: #F4F5F6;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-family);
  color: var(--color-black);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23455563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}

/* ---------- Fahrzeug-Detail ---------- */
.range-track {
  position: absolute;
  height: 6px;
  border-radius: 3px;
  background: var(--color-gray-lighter);
}
.range-track.temp {
  background: linear-gradient(90deg, #3B82C4 0%, var(--color-warning) 100%);
}
.range-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-warning) 50%, var(--color-success) 100%);
}
.range-dot {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--color-dark);
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.chart-plot {
  position: relative;
  height: calc(100% - 26px);
  padding-left: 34px;
}
.chart-bars {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 100%;
  border-bottom: 1px solid var(--color-gray-lighter);
}
.chart-bar {
  width: 13%;
  min-height: 3px;
  background: var(--color-accent);
  border-radius: 4px 4px 0 0;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  padding-left: 34px;
  padding-top: 8px;
}
.chart-bar-label {
  width: 13%;
  text-align: center;
  font-size: 12px;
  color: var(--color-dark);
  font-family: var(--font-family);
}
.chart-gridline {
  position: absolute;
  left: 34px;
  right: 0;
  z-index: 0;
  border-top: 1px solid var(--color-gray-lighter);
}
.chart-gridline-label {
  position: absolute;
  left: 0;
  transform: translate(calc(-100% - 6px), -50%);
  font-size: 11px;
  color: var(--color-gray-mid);
  font-family: var(--font-family);
  white-space: nowrap;
}

.map-box {
  position: relative;
  width: 100%;
  height: 340px;
  border-radius: 12px;
  overflow: hidden;
  background: #E4E5E6;
}
.map-box svg, .map-box img { display: block; width: 100%; height: 100%; object-fit: cover; }
.map-pin {
  position: absolute;
  left: 61%;
  top: 46%;
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.35));
  pointer-events: none;
}

.link-overlay {
  cursor: pointer;
  border-radius: 8px;
  transition: background-color .12s ease;
}
.link-overlay:hover { background: rgba(215,25,70,.05); }
.link-overlay:active { background: rgba(215,25,70,.1); }

/* ---------- Wartungsanleitung ---------- */
.wa-list-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 12px;
}
.wa-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  color: var(--color-black);
  margin-bottom: 8px;
}
.wa-list-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-dark);
  flex: none;
}
.wa-action-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(30,40,48,.08);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-black);
  cursor: pointer;
  font-family: var(--font-family);
}
.wa-action-btn:active { background: var(--color-gray-lighter); }
.wa-action-btn svg { width: 20px; height: 20px; flex: none; }

.wiz-orders-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(30,40,48,.08);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-black);
  cursor: pointer;
  font-family: var(--font-family);
}
.wiz-orders-btn:active { background: var(--color-gray-lighter); }
.wiz-orders-btn svg { width: 20px; height: 20px; flex: none; }

.vd-orders-gap-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(30,40,48,.10);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-black);
  cursor: pointer;
  font-family: var(--font-family);
  z-index: 2;
}
.vd-orders-gap-btn:active { background: var(--color-gray-lighter); }
.vd-orders-gap-btn svg { width: 22px; height: 22px; flex: none; }

/* ---------- Auftrag-Detail (ED-01 Batteriewechsel) ---------- */
.badge-pill {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 14px;
  font-family: var(--font-family);
  text-align: center;
  z-index: 2;
}
.badge-pill .badge-label { font-size: 14px; font-weight: 700; }
.badge-pill .badge-value { font-size: 18px; font-weight: 700; }
.badge-pill.priority { background: var(--color-white); border: 1.5px solid var(--color-accent); }
.badge-pill.priority .badge-label,
.badge-pill.priority .badge-value { color: var(--color-accent); }
.badge-pill.status { background: var(--color-gray-lighter); }
.badge-pill.status .badge-label { color: var(--color-dark); }
.badge-pill.status .badge-value { color: var(--color-black); }

#auftrag-scope-card { left: 670px; width: 358px; }
#screen-auftrag-ed01.is-detail #auftrag-scope-card { left: 166px; width: 862px; }

#auftrag-info-card, #auftrag-doku-card, #auftrag-kosten-card { display: block; }
#screen-auftrag-ed01.is-detail #auftrag-info-card,
#screen-auftrag-ed01.is-detail #auftrag-doku-card,
#screen-auftrag-ed01.is-detail #auftrag-kosten-card { display: none; }

#auftrag-rows-detailed { display: none; }
#screen-auftrag-ed01.is-detail #auftrag-rows-simple { display: none; }
#screen-auftrag-ed01.is-detail #auftrag-rows-detailed { display: flex; }

.auftrag-card-title { font-size: 18px; }
.auftrag-scope-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.auftrag-toggle-btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--color-gray-light); background: var(--color-white);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.auftrag-toggle-btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
#screen-auftrag-ed01.is-detail .auftrag-toggle-btn svg { transform: rotate(180deg); }

.auftrag-rows { display: flex; flex-direction: column; gap: 9px; }

.auftrag-row {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--color-gray-light); border-radius: 10px;
  padding: 9px 18px; gap: 16px;
}
.auftrag-row.simple { padding: 10px 18px; }
.auftrag-row-left { display: flex; align-items: center; gap: 12px; }
.auftrag-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--color-white); border: 2px solid var(--color-gray-mid); }
.auftrag-dot.done { background: var(--color-success); border-color: var(--color-success); }
.auftrag-dot.active { background: var(--color-dark); border-color: var(--color-dark); }
.auftrag-row-label { font-size: 15px; color: var(--color-black); font-family: var(--font-family); }
.auftrag-row-right { display: flex; align-items: center; gap: 14px; flex: none; }
.auftrag-row-planist { font-size: 13px; color: var(--color-gray-mid); white-space: nowrap; font-family: var(--font-family); }
.auftrag-row-time { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; width: 160px; }
.auftrag-row-value { font-size: 14px; font-weight: 700; color: var(--color-black); white-space: nowrap; font-family: var(--font-family); }
.progress-track { width: 100%; height: 6px; border-radius: 3px; background: var(--color-gray-lighter); }
.progress-fill { height: 6px; border-radius: 3px; background: var(--color-dark); }

.auftrag-detail-btn {
  margin-top: 2px; align-self: center;
  background: var(--color-gray-lighter); border: none; border-radius: 10px;
  padding: 10px 26px; font-size: 14px; font-weight: 700; color: var(--color-black);
  cursor: pointer; font-family: var(--font-family);
}
.auftrag-detail-btn:active { background: var(--color-gray-light); }

.auftrag-info-group { margin-bottom: 12px; }
.auftrag-info-group:last-child { margin-bottom: 0; }
.auftrag-info-label { font-size: 12px; color: var(--color-gray-mid); font-family: var(--font-family); margin-bottom: 3px; }
.auftrag-info-value { font-size: 15px; color: var(--color-black); font-family: var(--font-family); line-height: 1.3; }

.auftrag-doku-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.auftrag-doku-icons { display: flex; align-items: center; gap: 8px; }
.auftrag-doku-icon-btn {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--color-gray-light);
  background: var(--color-white); display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 15px; line-height: 1; color: var(--color-dark); font-family: var(--font-family);
}
.auftrag-doku-icon-btn svg { width: 12px; height: 12px; transition: transform .2s ease; }
.auftrag-doku-card.is-collapsed .auftrag-doku-icon-btn svg { transform: rotate(180deg); }
#auftrag-doku-card.is-collapsed .auftrag-doku-grid { display: none; }
.auftrag-doku-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auftrag-doku-tile {
  border: 1px solid var(--color-gray-light); border-radius: 10px; padding: 14px 10px;
  text-align: center; font-size: 13px; color: var(--color-black); font-family: var(--font-family);
  cursor: pointer; background: var(--color-white);
}
.auftrag-doku-tile:active { background: var(--color-gray-lighter); }

.auftrag-kosten-row { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; font-size: 13px; font-family: var(--font-family); }
.auftrag-kosten-row .label { color: var(--color-dark); }
.auftrag-kosten-row .value { font-weight: 700; color: var(--color-black); }
.auftrag-kosten-divider { height: 1px; background: var(--color-gray-lighter); margin: 5px 0; }
.auftrag-kosten-row.total { padding-top: 8px; font-size: 15px; }
.auftrag-kosten-row.total .label { font-weight: 700; color: var(--color-black); }
.auftrag-kosten-row.total .value { color: var(--color-accent); }

/* ---------- Hilfe ---------- */
.hilfe-search-wrap { position: absolute; z-index: 5; }
.hilfe-search-box {
  display: flex; align-items: center; gap: 14px;
  background: var(--color-white); border-radius: 16px;
  padding: 0 20px; height: 54px;
  box-shadow: 0 4px 14px rgba(30,40,48,.08);
}
.hilfe-search-box svg { width: 22px; height: 22px; flex: none; }
.hilfe-search-box input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 17px; font-family: var(--font-family); color: var(--color-black);
}
.hilfe-search-box input::placeholder { color: var(--color-gray-mid); }
.hilfe-mic-btn { cursor: pointer; }

.hilfe-search-suggestions {
  position: absolute; left: 0; top: 62px; width: 100%;
  background: var(--color-white); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(30,40,48,.14);
  padding: 8px 0; display: none; z-index: 6;
}
.hilfe-search-suggestions.is-open { display: block; }
.hilfe-suggestion-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px; cursor: pointer;
  font-size: 15px; color: var(--color-black); font-family: var(--font-family);
}
.hilfe-suggestion-item svg { width: 17px; height: 17px; flex: none; }
.hilfe-suggestion-item:active { background: var(--color-gray-lighter); }

.hilfe-faq-list { position: absolute; z-index: 2; }
.hilfe-faq-card { position: static; margin-bottom: 16px; padding: 20px 24px; cursor: pointer; }
.hilfe-faq-card:last-child { margin-bottom: 0; }
.hilfe-faq-card:active { background: var(--color-gray-lighter); }
.hilfe-faq-title { font-size: 17px; font-weight: 700; color: var(--color-black); font-family: var(--font-family); margin-bottom: 8px; }
.hilfe-faq-desc { font-size: 14px; line-height: 1.5; color: var(--color-dark); font-family: var(--font-family); }

.hilfe-scan-card {
  position: absolute;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: var(--color-accent); border: none; border-radius: 16px;
  cursor: pointer; z-index: 2;
  box-shadow: 0 10px 26px rgba(215,25,70,.3);
}
.hilfe-scan-card:active { transform: scale(.98); }
.hilfe-scan-icon-wrap {
  width: 96px; height: 96px; border-radius: 50%;
  background: rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center;
}
.hilfe-scan-icon-wrap svg { width: 52px; height: 52px; }
.hilfe-scan-label { color: var(--color-white); font-size: 18px; font-weight: 700; text-align: center; padding: 0 18px; font-family: var(--font-family); }

.camera-scan-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 50;
  background: #000;
}
.camera-scan-overlay.is-open { display: block; animation: camScanIn .18s ease; }
@keyframes camScanIn { from { opacity: 0; } to { opacity: 1; } }
.camera-scan-overlay img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camera-scan-close {
  position: absolute;
  left: 924px; top: 56px; width: 62px; height: 62px;
  border: none; background: transparent; border-radius: 50%;
  cursor: pointer;
}
.camera-scan-close:active { background: rgba(255,255,255,.12); }

/* ---------- Wizard: Warnung ---------- */
.warn-card {
  position: relative;
  z-index: 0;
  padding: 20px 28px 20px 90px;
  color: #fff;
  margin-bottom: 20px;
}
.warn-card-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: visible;
}
.warn-card .warn-icon {
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 90px;
  height: 90px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.warn-card .warn-icon svg { width: 46px; height: 46px; }
.warn-title { font-size: 26px; font-weight: 700; margin: 0 0 6px; }
.warn-subtitle { font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.warn-consequence { font-size: 14px; margin: 0 0 10px; opacity: .95; }
.warn-bullets { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }

/* ---------- Wizard: Schritte ---------- */
.step-num {
  font-size: 40px;
  font-weight: 300;
  color: var(--color-black);
  line-height: 1;
}
.step-main {
  font-size: 19px;
  color: var(--color-black);
  line-height: 1.35;
}
.step-arrow-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 10px;
  color: var(--color-dark);
  font-size: 17px;
  line-height: 1.35;
}

.wizard-nav-btn {
  position: absolute;
  width: 56px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid var(--color-gray-light);
  background: var(--color-white);
  box-shadow: 0 4px 14px rgba(30,40,48,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.wizard-nav-btn svg { width: 20px; height: 20px; }
.wizard-nav-btn:disabled { opacity: .35; cursor: default; }
.wizard-nav-btn:active:not(:disabled) { background: var(--color-gray-lighter); }

.wizard-dots {
  display: flex;
  align-items: center;
  gap: 0;
}
.wizard-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-gray-light);
  flex: none;
}
.wizard-dot.is-current {
  width: 34px;
  height: 34px;
  background: var(--color-dark);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wizard-dot-line {
  width: 24px;
  height: 2px;
  background: var(--color-gray-light);
  flex: none;
}

.wa-figure {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #F4F5F6;
}
.wa-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wa-figure-caption { margin-top: 10px; font-size: 14px; color: var(--color-dark); text-align: right; }
