/* =========================================
   AuftragsPilot Light Dashboard 1zu1
   Nur Dashboard-Optik, keine Rechner/Kasse/QR Logik
   ========================================= */

:root {
  --light-bg: #d9ecff;
  --light-blue: #6f96c9;
  --light-blue-dark: #547eb5;
  --light-text: #152652;
  --light-muted: #40527a;
  --light-card: rgba(255,255,255,.58);
  --light-card-strong: rgba(255,255,255,.72);
  --light-border: rgba(255,255,255,.78);
  --light-shadow: 0 18px 45px rgba(69, 104, 150, .20);
  --orange: #ff7a1a;
  --blue: #1e87ff;
  --green: #29b957;
  --purple: #8a4fff;
  --gold: #f5a400;
  --steel: #53739b;
}

body.ap-exact-dashboard-active,
body.ap-exact-dashboard-active .app,
body.ap-exact-dashboard-active .main {
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,.65), transparent 28%),
    radial-gradient(circle at 85% 6%, rgba(88,219,231,.34), transparent 32%),
    linear-gradient(135deg, #8eb4e5 0%, #d8eaff 46%, #bfeef0 100%) !important;
  color: var(--light-text) !important;
}

/* Desktop-Grundlayout */
@media screen and (min-width: 901px) {
  body.ap-exact-dashboard-active .sidebar {
    width: 300px !important;
  }

  body.ap-exact-dashboard-active .main {
    left: 300px !important;
    width: calc(100vw - 300px) !important;
    padding: 18px 26px 34px !important;
  }
}

/* Sidebar wie im Bild */
body.ap-exact-dashboard-active .sidebar {
  background:
    radial-gradient(circle at 90% 2%, rgba(255,255,255,.25), transparent 24%),
    linear-gradient(180deg, #7ea5d9 0%, #587fb4 100%) !important;
  border-right: 1px solid rgba(255,255,255,.52) !important;
  box-shadow: 12px 0 40px rgba(55, 83, 130, .22) !important;
}

body.ap-exact-dashboard-active .ap-exact-logo {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #ffffff !important;
  min-height: 118px !important;
  padding: 28px 24px 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  letter-spacing: -.04em !important;
  text-shadow: 0 2px 10px rgba(36,62,103,.28) !important;
}

body.ap-exact-dashboard-active .ap-exact-logo::before {
  content: "";
  width: 42px;
  height: 42px;
  display: inline-block;
  background: linear-gradient(135deg, #735cff, #3bc9ff 48%, #68f0a3);
  clip-path: polygon(12% 72%, 82% 8%, 63% 94%, 45% 58%);
  filter: drop-shadow(0 8px 16px rgba(36,93,177,.25));
}

/* Sidebar Navigation */
body.ap-exact-dashboard-active .ap-exact-nav {
  padding: 12px 26px !important;
  gap: 13px !important;
}

body.ap-exact-dashboard-active .ap-exact-nav-btn {
  min-height: 72px !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.20) !important;
  border: 1px solid rgba(255,255,255,.42) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),
    0 10px 22px rgba(43,72,120,.10) !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 750 !important;
  padding: 0 18px !important;
}

body.ap-exact-dashboard-active .ap-exact-nav-btn.is-active {
  background:
    radial-gradient(circle at 82% 20%, rgba(255,183,255,.42), transparent 32%),
    linear-gradient(135deg, rgba(109,183,255,.55), rgba(153,122,255,.38)) !important;
  border-color: rgba(255,255,255,.72) !important;
  box-shadow:
    0 14px 28px rgba(65,96,159,.18),
    inset 0 1px 0 rgba(255,255,255,.55) !important;
}

body.ap-exact-dashboard-active .ap-exact-nav-icon {
  width: 44px !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.18) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.30) !important;
  font-size: 25px !important;
}

/* Status unten */
body.ap-exact-dashboard-active .ap-exact-status {
  margin: 34px 26px 22px !important;
  min-height: 112px !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,.18) !important;
  border: 1px solid rgba(255,255,255,.48) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32) !important;
  color: #ffffff !important;
}

body.ap-exact-dashboard-active .ap-exact-status strong {
  color: #ffffff !important;
  font-size: 20px !important;
}

body.ap-exact-dashboard-active .ap-exact-status span {
  color: rgba(255,255,255,.88) !important;
}

/* Altes Exact Dashboard neutralisieren */
body.ap-exact-dashboard-active #dashboardPanel,
body.ap-exact-dashboard-active #apExactDashboard,
body.ap-exact-dashboard-active .ap-exact-shell {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Neue helle Startseite */
.ap-light-page {
  color: var(--light-text);
}

.ap-light-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--light-border);
  background:
    radial-gradient(circle at 85% 15%, rgba(94,236,224,.36), transparent 26%),
    linear-gradient(135deg, rgba(255,255,255,.64), rgba(234,242,255,.62)) !important;
  box-shadow: var(--light-shadow);
  padding: 42px 38px 26px;
  min-height: 310px;
}

.ap-light-wave {
  position: absolute;
  right: -40px;
  top: -22px;
  width: 640px;
  height: 190px;
  opacity: .48;
  background:
    repeating-radial-gradient(ellipse at center, rgba(255,255,255,.65) 0 1px, transparent 2px 10px);
  transform: rotate(-7deg);
  border-radius: 50%;
  pointer-events: none;
}

.ap-light-hero-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.ap-light-title h1 {
  margin: 0 0 12px;
  font-size: clamp(52px, 5vw, 74px);
  line-height: 1;
  letter-spacing: -.065em;
  color: #14265a;
  font-weight: 950;
}

.ap-light-title p {
  margin: 0;
  color: #263866;
  font-size: 19px;
  line-height: 1.45;
}

.ap-light-sync {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 25px;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.84);
  box-shadow:
    0 12px 26px rgba(73,113,172,.14),
    inset 0 1px 0 rgba(255,255,255,.75);
  font-weight: 800;
  color: #16305c;
  white-space: nowrap;
}

.ap-light-sync-dot {
  width: 12px;
  height: 12px;
  background: #35d565;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(53,213,101,.12);
}

.ap-light-strip {
  position: relative;
  z-index: 2;
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 24px;
  box-shadow:
    0 18px 34px rgba(84,120,174,.13),
    inset 0 1px 0 rgba(255,255,255,.72);
  padding: 18px 12px;
}

.ap-light-quick {
  appearance: none;
  border: 0;
  background: transparent;
  color: #172a5d;
  display: grid;
  place-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
  border-right: 1px solid rgba(60,82,129,.12);
}

.ap-light-quick:last-child {
  border-right: 0;
}

.ap-light-quick-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 34px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.82);
  box-shadow:
    0 10px 22px rgba(84,120,174,.13),
    inset 0 1px 0 rgba(255,255,255,.75);
}

.ap-light-help {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 300px 1fr 1fr 1fr;
  gap: 18px;
  align-items: center;
  border-radius: 21px;
  border: 1px solid rgba(255,255,255,.80);
  background: rgba(255,255,255,.54);
  box-shadow: var(--light-shadow);
  padding: 22px 26px;
}

.ap-light-help-title {
  display: flex;
  gap: 16px;
  align-items: center;
}

.ap-light-info {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: #277eff;
  background: linear-gradient(145deg, #d8e8ff, #f3f8ff);
  border: 1px solid rgba(255,255,255,.88);
  box-shadow: 0 10px 20px rgba(79,120,184,.13);
}

.ap-light-help-title strong {
  display: block;
  font-size: 22px;
  color: #16285d;
}

.ap-light-help-title span,
.ap-light-step p {
  color: #40527a;
}

.ap-light-step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  border-left: 1px solid rgba(56,80,128,.14);
  padding-left: 18px;
}

.ap-light-step-num {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #4f91ff, #87bbff);
  color: #ffffff;
  font-weight: 900;
  font-size: 20px;
  box-shadow: 0 10px 20px rgba(79,120,184,.18);
}

.ap-light-step strong {
  display: block;
  margin-bottom: 6px;
  color: #16285d;
  font-size: 16px;
}

.ap-light-step p {
  margin: 0;
  line-height: 1.4;
  font-size: 14px;
}

.ap-light-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ap-light-card {
  position: relative;
  overflow: hidden;
  min-height: 236px;
  text-align: left;
  cursor: pointer;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.84);
  background: rgba(255,255,255,.58);
  box-shadow:
    0 17px 34px rgba(77,112,166,.16),
    inset 0 1px 0 rgba(255,255,255,.75);
  padding: 28px 28px 22px;
  color: #172a5d;
  transition: transform .18s ease, box-shadow .18s ease;
}

.ap-light-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 22px 44px rgba(77,112,166,.22),
    inset 0 1px 0 rgba(255,255,255,.75);
}

.ap-light-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 37px;
  color: #fff;
  box-shadow: 0 14px 26px rgba(82,112,160,.20);
}

.ap-light-card h3 {
  margin: 18px 0 10px;
  font-size: 27px;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.ap-light-card p {
  margin: 0;
  color: #31446f;
  font-size: 15px;
  line-height: 1.45;
  max-width: 310px;
}

.ap-light-card-action {
  position: absolute;
  left: 28px;
  bottom: 24px;
  font-weight: 850;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ap-light-card-arrow {
  font-size: 25px;
}

.ap-light-card-ghost {
  position: absolute;
  right: 20px;
  bottom: 12px;
  font-size: 132px;
  opacity: .17;
  line-height: 1;
  pointer-events: none;
}

.ap-light-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -45px 20%;
  height: 95px;
  border-radius: 50%;
  opacity: .45;
  filter: blur(8px);
  pointer-events: none;
}

.ap-light-card.laser {
  background: linear-gradient(135deg, rgba(255,247,240,.75), rgba(255,222,205,.58));
  border-color: rgba(255,155,86,.54);
}
.ap-light-card.laser .ap-light-card-icon {
  background: linear-gradient(145deg, #ff9a3f, #ff681d);
}
.ap-light-card.laser h3,
.ap-light-card.laser .ap-light-card-action {
  color: var(--orange);
}
.ap-light-card.laser::after {
  background: #ff9a3f;
}

.ap-light-card.print3d {
  background: linear-gradient(135deg, rgba(236,247,255,.78), rgba(203,229,255,.62));
  border-color: rgba(73,154,255,.50);
}
.ap-light-card.print3d .ap-light-card-icon {
  background: linear-gradient(145deg, #61b5ff, #197cff);
}
.ap-light-card.print3d h3,
.ap-light-card.print3d .ap-light-card-action {
  color: var(--blue);
}
.ap-light-card.print3d::after {
  background: #4da3ff;
}

.ap-light-card.calc {
  background: linear-gradient(135deg, rgba(239,255,242,.82), rgba(205,245,215,.62));
  border-color: rgba(68,195,93,.46);
}
.ap-light-card.calc .ap-light-card-icon {
  background: linear-gradient(145deg, #6ce587, #23b753);
}
.ap-light-card.calc h3,
.ap-light-card.calc .ap-light-card-action {
  color: var(--green);
}
.ap-light-card.calc::after {
  background: #29b957;
}

.ap-light-card.orders {
  background: linear-gradient(135deg, rgba(249,242,255,.82), rgba(228,207,255,.62));
  border-color: rgba(151,93,255,.44);
}
.ap-light-card.orders .ap-light-card-icon {
  background: linear-gradient(145deg, #b78aff, #784bff);
}
.ap-light-card.orders h3,
.ap-light-card.orders .ap-light-card-action {
  color: var(--purple);
}
.ap-light-card.orders::after {
  background: #8a4fff;
}

.ap-light-card.market {
  background: linear-gradient(135deg, rgba(255,249,235,.86), rgba(255,226,169,.66));
  border-color: rgba(245,164,0,.48);
}
.ap-light-card.market .ap-light-card-icon {
  background: linear-gradient(145deg, #ffc14d, #f39a00);
}
.ap-light-card.market h3,
.ap-light-card.market .ap-light-card-action {
  color: #df8500;
}
.ap-light-card.market::after {
  background: #f5a400;
}

.ap-light-card.admin {
  background: linear-gradient(135deg, rgba(242,248,255,.82), rgba(210,228,247,.66));
  border-color: rgba(95,126,165,.42);
}
.ap-light-card.admin .ap-light-card-icon {
  background: linear-gradient(145deg, #86a9d2, #4f719c);
}
.ap-light-card.admin h3,
.ap-light-card.admin .ap-light-card-action {
  color: var(--steel);
}
.ap-light-card.admin::after {
  background: #6f91bd;
}

/* Mobile */
@media screen and (max-width: 900px) {
  body.ap-exact-dashboard-active .main {
    padding: 14px 14px 90px !important;
  }

  .ap-light-hero {
    padding: 28px 20px 20px;
    min-height: auto;
  }

  .ap-light-hero-top {
    display: block;
  }

  .ap-light-title h1 {
    font-size: 44px;
  }

  .ap-light-sync {
    margin-top: 18px;
    display: inline-flex;
  }

  .ap-light-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .ap-light-quick {
    border-right: 0;
    border-bottom: 1px solid rgba(60,82,129,.10);
    padding: 10px 0;
  }

  .ap-light-help {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ap-light-step {
    border-left: 0;
    padding-left: 0;
  }

  .ap-light-grid {
    grid-template-columns: 1fr;
  }

  .ap-light-card {
    min-height: 210px;
  }
}
