/* =========================================
   IT-Notfall – page-specific styles
   ========================================= */

:root{
  --page-bg-image:
    radial-gradient(circle at 12% 0%, rgba(16,210,255,.22), transparent 58%),
    radial-gradient(circle at 88% 8%, rgba(16,210,255,.16), transparent 58%),
    radial-gradient(circle at 50% 96%, rgba(16,210,255,.12), transparent 62%);
}

.emergency-hero{
  --hero-bg-image:
    radial-gradient(1200px 520px at 12% -120px, rgba(16,210,255,.18), transparent 60%),
    radial-gradient(820px 320px at 88% -140px, rgba(16,210,255,.14), transparent 60%),
    radial-gradient(680px 240px at 50% -80px, rgba(16,210,255,.10), transparent 55%);
}

body::before{
  background:
    linear-gradient(135deg,
      rgba(16,210,255,.55),
      rgba(16,210,255,.04)),
    linear-gradient(150deg,
      rgba(16,210,255,.32),
      rgba(16,210,255,.02));
}

body::after{
  background:
    linear-gradient(165deg,
      rgba(16,210,255,.35),
      rgba(16,210,255,.04));
}

.emergency-list{
  margin:0 0 0 1.2rem;
  padding:0;
  display:grid;
  gap:.45rem;
}

.emergency-list li{
  line-height:1.6;
}

.emergency-list--hero{
  margin-top:.25rem;
  margin-bottom:0;
}

.diagnose-wizard{
  margin-top:var(--stack-gap);
  border:1px solid color-mix(in oklab, var(--line), var(--text) 14%);
  border-radius:18px;
  overflow:hidden;
  background:
    linear-gradient(180deg,
      rgb(11 15 20 / .82),
      rgb(11 15 20 / .64),
      rgb(11 15 20 / .28));
  -webkit-backdrop-filter:blur(18px) saturate(160%);
  backdrop-filter:blur(18px) saturate(160%);
  box-shadow:0 24px 56px rgba(0,0,0,.55);
}

.diagnose-wizard__grid{
  display:grid;
  grid-template-columns:minmax(0, 1.05fr) minmax(0, .95fr);
}

.diagnose-wizard__panel{
  padding:clamp(16px, 2vw, 22px);
}

.diagnose-wizard__panel--right{
  border-left:1px solid color-mix(in oklab, var(--line), var(--text) 14%);
  background:color-mix(in oklab, var(--bg-2), transparent 30%);
}

.wizard-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:8px;
}

.wizard-step{
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:.82rem;
  color:var(--muted);
}

.wizard-breadcrumb{
  font-size:.9rem;
  color:var(--muted);
  margin:0 0 14px;
}

.wizard-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.wizard-icon-btn{
  width:var(--control-height);
  height:var(--control-height);
  display:inline-grid;
  place-items:center;
  border-radius:var(--control-radius);
  border:1px solid color-mix(in oklab, var(--line), var(--text) 26%);
  background:color-mix(in oklab, var(--card), var(--text) 3%);
  color:var(--text);
  cursor:pointer;
  transition:transform .15s ease, background .2s ease, border-color .2s ease;
}

.wizard-icon-btn:hover{
  transform:translateY(-1px);
  background:color-mix(in oklab, var(--card), var(--text) 6%);
  border-color:color-mix(in oklab, var(--line), var(--text) 40%);
}

.wizard-icon-btn:disabled{
  opacity:.45;
  cursor:not-allowed;
  transform:none;
}

.wizard-icon-btn:focus-visible{
  outline:none;
  box-shadow:var(--focus-ring);
}

.wizard-icon-btn .icon{
  width:20px;
  height:20px;
}

.wizard-title{
  margin:0 0 .4rem;
  font-size:1.35rem;
  letter-spacing:.01em;
}

.wizard-lead{
  margin:0 0 .8rem;
  color:var(--muted);
  max-width:65ch;
}

.wizard-options{
  display:grid;
  gap:10px;
}

.wizard-option{
  width:100%;
  text-align:left;
  padding:12px 14px;
  border-radius:var(--control-radius);
  border:1px solid color-mix(in oklab, var(--line), var(--text) 22%);
  background:color-mix(in oklab, var(--card), var(--text) 2%);
  color:var(--text);
  font:inherit;
  font-weight:650;
  line-height:1.3;
  cursor:pointer;
  transition:transform .15s ease, background .2s ease, border-color .2s ease;
}

.wizard-option:hover{
  transform:translateY(-1px);
  background:color-mix(in oklab, var(--card), var(--text) 5%);
  border-color:color-mix(in oklab, var(--line), var(--text) 36%);
}

.wizard-option--primary{
  border-color:color-mix(in oklab, var(--cyan), var(--line) 55%);
  background:
    linear-gradient(160deg,
      color-mix(in oklab, var(--cyan), transparent 86%),
      transparent 70%),
    color-mix(in oklab, var(--card), var(--text) 2%);
}

.wizard-option:focus-visible{
  outline:2px solid color-mix(in oklab, var(--cyan), transparent 35%);
  outline-offset:3px;
}

.wizard-summary{
  margin-top:var(--stack-gap);
  padding-top:var(--stack-gap);
  border-top:1px solid color-mix(in oklab, var(--line), var(--text) 14%);
}

.wizard-summary__text,
.wizard-summary__cause,
.wizard-summary__tried{
  margin:0;
}

.wizard-summary__text{
  color:var(--text);
  font-weight:650;
  line-height:1.45;
}

.wizard-summary__cause,
.wizard-summary__tried{
  color:var(--muted);
  line-height:1.55;
}

.wizard-summary__text + :is(.wizard-summary__cause, .wizard-summary__tried, .wizard-summary__details),
.wizard-summary__cause + :is(.wizard-summary__tried, .wizard-summary__details),
.wizard-summary__tried + .wizard-summary__details{
  margin-top:var(--stack-gap);
}

.wizard-summary__details{
  border-radius:14px;
  padding:12px 14px;
  border:1px solid color-mix(in oklab, var(--line), var(--text) 14%);
  background:color-mix(in oklab, var(--bg-2), transparent 20%);
}

.wizard-summary__details > summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-weight:650;
  color:var(--muted);
  cursor:pointer;
  list-style:none;
}

.wizard-summary__details > summary::-webkit-details-marker{
  display:none;
}

.wizard-summary__details > summary::after{
  content:"";
  flex-shrink:0;
  width:10px;
  height:10px;
  border-radius:2px;
  border:2px solid currentColor;
  border-left:0;
  border-top:0;
  transform:rotate(45deg);
  transition:transform .18s ease;
}

.wizard-summary__details[open] > summary::after{
  transform:rotate(225deg);
}

.wizard-summary__details .wizard-summary__list{
  margin:12px 0 0 1.2rem;
}

.wizard-summary__title{
  margin:0 0 .6rem;
  font-size:1.1rem;
}

.wizard-summary__list{
  margin:0 0 0 1.2rem;
  padding:0;
  display:grid;
  gap:.35rem;
}

.wizard-summary__list li{
  line-height:1.5;
}

.wizard-contact{
  margin-top:var(--stack-gap-lg);
}

.wizard-contact-fields{
  display:grid;
  gap:12px;
  grid-template-columns:repeat(auto-fit, minmax(200px,1fr));
}

.wizard-contact-fields .field select{
  max-width:100%;
}

.wizard-contact-comment{
  grid-column:1/-1;
}

.wizard-contact-comment textarea{
  min-height:96px;
  resize:vertical;
}

.wizard-contact-note{
  margin-top:var(--stack-gap);
}

.wizard-contact .cta-row{
  margin-top:var(--stack-gap);
}

.wizard-contact .note{
  margin-top:var(--stack-gap);
}

.wizard-explain__title{
  margin:0 0 .5rem;
  font-size:1.2rem;
}

.wizard-explain__body p{
  margin:.4rem 0 0;
  color:var(--text);
}

.wizard-bullets{
  margin:.8rem 0 0 1.2rem;
  padding:0;
  display:grid;
  gap:.35rem;
}

.wizard-bullets li{
  color:var(--muted);
  line-height:1.5;
}

@media (max-width:900px){
  .diagnose-wizard__grid{
    grid-template-columns:1fr;
  }

  .diagnose-wizard__panel--right{
    border-left:0;
    border-top:1px solid color-mix(in oklab, var(--line), var(--text) 14%);
  }
}

@media (max-width:640px){
  .diagnose-wizard__panel{
    padding:16px;
  }
}
