/* ============ HUNTWORKER – Dashboard & Account Styles ============ */

/* ---- Multi-step registration ---- */
.reg-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 28px 90px;
}
.reg-head { text-align: center; margin-bottom: 38px; }
.reg-head h1 { font-size: 34px; letter-spacing: -0.5px; margin-bottom: 12px; }
.reg-head p { color: var(--gray); font-size: 17.5px; max-width: 560px; margin: 0 auto; }

/* Info banner */
.reg-info {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--red-tint);
  border: 1px solid var(--red-line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 36px;
}
.reg-info .ic {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid; place-items: center;
}
.reg-info h3 { font-size: 17px; margin-bottom: 3px; color: var(--red-dark); }
.reg-info p { font-size: 15px; color: var(--red-dark); }

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}
.stepper .node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.stepper .dot {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  color: var(--gray-light);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  display: grid; place-items: center;
  transition: all 0.2s;
}
.stepper .label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  color: var(--gray-light);
  white-space: nowrap;
}
.stepper .bar {
  flex: 1;
  height: 2px;
  background: var(--line);
  margin: 0 8px;
  margin-bottom: 26px;
  min-width: 30px;
  transition: background 0.2s;
}
.stepper .node.active .dot { border-color: var(--red); background: var(--red); color: #fff; }
.stepper .node.active .label { color: var(--red-dark); }
.stepper .node.done .dot { border-color: var(--red); background: var(--red-tint); color: var(--red-dark); }
.stepper .node.done .label { color: var(--red-dark); }
.stepper .bar.done { background: var(--red); }

/* Step card */
.step-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 40px 44px 36px;
  display: none;
}
.step-panel.active { display: block; }
.step-panel h2 {
  font-size: 22px;
  margin-bottom: 6px;
}
.step-panel .step-tag {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red-dark);
  margin-bottom: 6px;
  display: block;
}
.step-panel .step-sub { color: var(--gray); font-size: 15.5px; margin-bottom: 30px; }

/* Form grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 26px;
}
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; align-content: start; }
.field label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 5px;
}
.field label .req { color: var(--red); }
.field .hint { font-size: 12.5px; color: var(--gray-light); font-weight: 400; font-family: var(--font-body); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 15.5px;
  padding: 12px 15px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--gray-light); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(19, 58, 72, 0.18);
}
.field .input-icon {
  position: relative;
}
.field .input-icon svg {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--gray-light);
  pointer-events: none;
}
.field .input-icon input { padding-left: 42px; }
.phone-row { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }

/* Choice chips / cards */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.choice:hover { border-color: var(--red); }
.choice input { position: absolute; opacity: 0; }
.choice .box {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid var(--line);
  display: grid; place-items: center;
  margin-top: 2px;
  transition: all 0.15s;
  color: #fff;
}
.choice.radio .box { border-radius: 50%; }
.choice strong { font-family: var(--font-head); font-size: 15.5px; display: block; }
.choice span.desc { font-size: 13.5px; color: var(--gray); }
.choice input:checked ~ .box { background: var(--red); border-color: var(--red); }
.choice:has(input:checked) { border-color: var(--red); background: var(--red-tint); }

/* Assurances */
.assurances { display: grid; gap: 12px; margin: 26px 0 22px; }
.assurance { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink); }
.assurance .ck {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid; place-items: center;
  margin-top: 1px;
}
.assurance strong { color: var(--red-dark); }

.consent {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 20px;
}
.consent a { font-weight: 700; }

.newsletter-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 18px 20px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
}
.newsletter-box input { width: 18px; height: 18px; accent-color: var(--red); margin-top: 2px; flex-shrink: 0; }

/* Toggle switch */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 18px 20px;
}
.switch-row .sw-text strong { display: block; font-family: var(--font-head); font-size: 15.5px; color: var(--ink); margin-bottom: 3px; }
.switch-row .sw-text span { font-size: 14px; color: var(--gray); line-height: 1.55; }
.switch { position: relative; flex-shrink: 0; width: 50px; height: 28px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch .track {
  position: absolute; inset: 0;
  background: var(--gray-light);
  border-radius: 999px;
  transition: background 0.2s;
}
.switch .track::before {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform 0.2s;
}
.switch input:checked ~ .track { background: var(--red); }
.switch input:checked ~ .track::before { transform: translateX(22px); }

/* Step nav */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.step-nav .req-note { font-size: 13px; color: var(--gray-light); }
.step-nav .grow { flex: 1; }

/* ============ Dashboard shell ============ */
.dash-body {
  background: var(--bg-soft);
  min-height: 100vh;
}
.dash-layout {
  display: grid;
  grid-template-columns: 264px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.dash-side {
  background: #0A2129;
  color: #C8D6DA;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.dash-side .brand { font-size: 26px; margin-bottom: 4px; padding: 0 8px; }
.dash-side .brand .eye { color: var(--red); }
.dash-side .brand .kju { color: var(--graphite); }
/* Kunden-Logo: transparentes Mark-Bild (roter Kreis + weisses a) statt CSS-Wortmarke */
.dash-side .brand .brand-logo { display: block; width: 46px; height: 46px; }
.dash-mobilebar .brand .brand-logo { display: block; width: 36px; height: 36px; }
.dash-side .role-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin: 0 8px 22px;
  background: rgba(19,58,72,0.16);
  color: var(--red);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 999px;
}
.dash-side nav { display: flex; flex-direction: column; gap: 4px; }
.dash-side .nav-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #828081;
  font-family: var(--font-head);
  font-weight: 700;
  padding: 14px 12px 6px;
}
.dash-side nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 11px;
  color: #CFCDCE;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s, color 0.15s;
}
.dash-side nav a svg { flex-shrink: 0; opacity: 0.85; }
.dash-side nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.dash-side nav a.active { background: var(--red); color: #fff; }
.dash-side nav a.active svg { opacity: 1; }
.dash-side .side-foot { margin-top: auto; padding: 0 8px; }
.dash-side .side-foot a { color: #9E9C9D; font-size: 14px; }

.dash-side .badge-count {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

/* Main */
.dash-main { padding: 0; min-width: 0; }
.dash-topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.dash-topbar h1 { font-size: 22px; }
.dash-topbar .tb-actions { display: flex; align-items: center; gap: 16px; }
.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  display: grid; place-items: center;
  color: var(--gray);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--red-dark); }
.icon-btn .dot {
  position: absolute;
  top: 8px; right: 9px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid #fff;
}
.avatar {
  display: flex;
  align-items: center;
  gap: 11px;
}
.avatar .circle {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
}
.avatar .who { line-height: 1.3; }
.avatar .who strong { font-family: var(--font-head); font-size: 14.5px; display: block; }
.avatar .who span { font-size: 12.5px; color: var(--gray-light); }

.dash-content { padding: 36px 40px 70px; max-width: 1080px; }
.dash-view { display: none; }
.dash-view.active { display: block; }

/* Section heading inside dash */
.dash-content h2.view-title { font-size: 26px; margin-bottom: 6px; }
.dash-content .view-lead { color: var(--gray); font-size: 16px; margin-bottom: 28px; }

/* Welcome / hero card */
.welcome {
  background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  border-radius: 20px;
  padding: 32px 36px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow);
}
.welcome h2 { color: #fff; font-size: 25px; margin-bottom: 7px; }
.welcome p { color: rgba(255,255,255,0.92); font-size: 16px; max-width: 480px; }
.welcome .btn-primary { background: #fff; color: var(--red-dark); }
.welcome .btn-primary:hover { background: var(--red-tint); }

/* Stat cards */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.stat .k { display: flex; align-items: center; gap: 9px; color: var(--gray); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.stat .k .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--red-tint); color: var(--red-dark); display: grid; place-items: center; flex-shrink: 0; }
.stat .v { font-family: var(--font-head); font-weight: 700; font-size: 30px; color: var(--ink); line-height: 1; }
.stat .v small { font-size: 14px; color: var(--gray-light); font-weight: 600; }

/* Panel */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 26px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
}
.panel-head h3 { font-size: 18px; }
.panel-head .link { font-family: var(--font-head); font-weight: 700; font-size: 14px; }
.panel-body { padding: 8px 26px 22px; }
.panel-body.flush { padding: 0; }

/* Job / Stellen list */
.job {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.job:last-child { border-bottom: none; }
.job .jic {
  flex-shrink: 0;
  width: 50px; height: 50px;
  border-radius: 13px;
  background: var(--red-tint);
  color: var(--red-dark);
  display: grid; place-items: center;
}
.job .jmeta { flex: 1; min-width: 0; }
.job .jmeta h4 { font-family: var(--font-head); font-size: 16.5px; margin-bottom: 4px; }
.job .jmeta .sub { font-size: 14px; color: var(--gray); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.job .jmeta .sub span { display: inline-flex; align-items: center; gap: 5px; }
.job .jact { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

/* Notification feed */
.notes { display: grid; }
.note {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.note:last-child { border-bottom: none; }
.note.unread { position: relative; }
.note.unread::before {
  content: "";
  position: absolute;
  left: -14px; top: 24px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
}
.note .nic {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
}
.note .nic.teal { background: var(--red-tint); color: var(--red-dark); }
.note .nic.orange { background: var(--red-tint); color: var(--red-dark); }
.note .ntext { flex: 1; }
.note .ntext h4 { font-family: var(--font-head); font-size: 15.5px; margin-bottom: 3px; }
.note .ntext p { font-size: 14px; color: var(--gray); }
.note .ntime { font-size: 12.5px; color: var(--gray-light); white-space: nowrap; flex-shrink: 0; }

/* Badge / status */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12.5px;
  padding: 4px 11px;
  border-radius: 999px;
}
.tag.new { background: var(--red-tint); color: var(--red-dark); }
.tag.match { background: var(--red-tint); color: var(--red-dark); }
.tag.live { background: #E9F7EF; color: #1F8A5B; }
.tag.wait { background: #FFF6E5; color: #B7791F; }
.tag .pdot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Case status timeline */
.case {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 26px;
  margin-bottom: 18px;
}
.case-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.case-head h4 { font-family: var(--font-head); font-size: 18px; margin-bottom: 3px; }
.case-head .sub { font-size: 14px; color: var(--gray); }
.timeline { display: flex; gap: 0; }
.tl-step { flex: 1; text-align: center; position: relative; }
.tl-step .tl-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  color: var(--gray-light);
  display: grid; place-items: center;
  margin: 0 auto 8px;
  position: relative;
  z-index: 1;
  font-size: 13px;
}
.tl-step::before {
  content: "";
  position: absolute;
  left: -50%; top: 13px;
  width: 100%; height: 2px;
  background: var(--line);
}
.tl-step:first-child::before { display: none; }
.tl-step .tl-label { font-size: 12.5px; color: var(--gray-light); font-family: var(--font-head); font-weight: 600; line-height: 1.3; }
.tl-step.done .tl-dot { background: var(--red); border-color: var(--red); color: #fff; }
.tl-step.done::before { background: var(--red); }
.tl-step.done .tl-label { color: var(--red-dark); }
.tl-step.current .tl-dot { background: #fff; border-color: var(--red); color: var(--red-dark); box-shadow: 0 0 0 4px var(--red-tint); }
.tl-step.current .tl-label { color: var(--red-dark); font-weight: 700; }

/* Profile form actions */
.form-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 6px;
}
.save-hint {
  font-size: 13.5px;
  color: #1F8A5B;
  display: none;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}
.save-hint.show { display: inline-flex; }

.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-light);
}

/* Mobile sidebar toggle */
.dash-mobilebar { display: none; }

@media (max-width: 860px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-side {
    position: fixed;
    z-index: 60;
    width: 264px;
    transform: translateX(-100%);
    transition: transform 0.25s;
  }
  .dash-side.open { transform: translateX(0); }
  .dash-mobilebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0A2129;
    color: #fff;
    padding: 14px 18px;
  }
  .dash-mobilebar .brand { font-size: 22px; }
  .dash-mobilebar .brand .eye { color: var(--red); }
  .dash-mobilebar .brand .kju { color: var(--graphite); }
  .dash-mobilebar button { background: none; border: none; color: #fff; cursor: pointer; }
  .dash-topbar { padding: 16px 20px; }
  .dash-content { padding: 24px 18px 60px; }
  .form-grid { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .welcome { flex-direction: column; align-items: flex-start; }
  .timeline { overflow-x: auto; }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 55; display: none; }
  .scrim.show { display: block; }
}

@media (max-width: 560px) {
  .step-panel { padding: 28px 22px; }
  .reg-head h1 { font-size: 27px; }
  .stepper .label { display: none; }
  .phone-row { grid-template-columns: 110px 1fr; }
}

/* Leistungsfall-Formular während der Wartezeit: sichtbar, aber gesperrt */
#meldForm.form-locked {
  pointer-events: none;
  opacity: .55;
  filter: saturate(.55);
  user-select: none;
}

/* Wartezeit-Sperre: Gate-Box mittig als Overlay, Hintergrund geblurt.
   Maus außerhalb der Box → Blur fadet aus (Formular-Vorschau klar sichtbar),
   Maus über der Box → Blur fadet wieder ein. Nur auf Hover-Geräten/Desktop. */
@media (hover: hover) and (min-width: 700px) {
  .dash-view.melden-locked #meldWartezeitGate {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 60;
    width: min(620px, calc(100vw - 48px));
    max-height: 80vh;
    overflow: auto;
    margin: 0;
    box-shadow: 0 24px 70px rgba(40, 18, 20, .35);
  }
  .dash-view.melden-locked .view-title,
  .dash-view.melden-locked .view-lead {
    filter: blur(7px);
    transition: filter .5s ease;
  }
  .dash-view.melden-locked #meldForm {
    filter: blur(7px) saturate(.55);
    transition: filter .5s ease;
  }
  .dash-view.melden-locked.blur-off .view-title,
  .dash-view.melden-locked.blur-off .view-lead {
    filter: blur(0);
  }
  .dash-view.melden-locked.blur-off #meldForm {
    filter: blur(0) saturate(.55);
  }
}
