/* onboarding.q4m.de — Stylesheet (Q4-Styleguide, Emerald/Grau) */
:root{
  --c-accent: #059669;
  --c-accent-dark: #047857;
  --c-accent-light: #10b981;
  --c-accent-bg: #ecfdf5;
  --c-text: #0f172a;
  --c-muted: #475569;
  --c-bg: #f8fafc;
  --c-panel: #ffffff;
  --c-panel-2: #f1f5f9;
  --c-border: #e2e8f0;
  --c-danger: #ef4444;
  --c-ok: #10b981;
  --r-sm: 10px;
  --r-md: 16px;
  --r-pill: 999px;
  --sh-card: 0 10px 30px rgba(0,0,0,.08);
  --sh-hover: 0 14px 40px rgba(5,150,105,.18);
}
@media (prefers-color-scheme: dark){
  :root{
    --c-text:#e2e8f0; --c-muted:#94a3b8;
    --c-bg:#0f172a; --c-panel:#1e293b; --c-panel-2:#334155;
    --c-border:#334155; --c-accent-bg: rgba(5,150,105,.14);
  }
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; color:var(--c-text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(5,150,105,.18), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(16,185,129,.12), transparent 60%),
    var(--c-bg);
  min-height:100vh; display:flex; flex-direction:column;
  line-height:1.55;
}
a{ color:var(--c-accent); text-decoration:none }
a:hover{ color:var(--c-accent-dark); text-decoration:underline }

/* Header */
.site-header{
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding: clamp(.6rem,2vw,1rem) clamp(.8rem,3vw,1.5rem);
  border-bottom:1px solid var(--c-border);
  background: color-mix(in oklab, var(--c-panel) 75%, transparent);
  backdrop-filter: blur(10px);
  position:sticky; top:0; z-index:50;
}
.brand{ display:flex; align-items:center; gap:.6rem; font-weight:600 }
.brand-mark{
  width:30px; height:30px; border-radius:8px;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-light));
  display:inline-flex; align-items:center; justify-content:center;
  color:#fff; font-weight:700; font-size:.85rem;
  box-shadow: 0 4px 12px rgba(5,150,105,.35);
}
.brand small{ color:var(--c-muted); font-weight:400; margin-left:.4rem }
.header-right{ font-size:.9rem; color:var(--c-muted); display:flex; gap:.8rem; align-items:center }
.header-right a{ color:var(--c-muted) }
.header-right a:hover{ color:var(--c-accent) }

main{ flex:1; width:100%; max-width:1100px; margin:0 auto; padding: clamp(.8rem,3vw,1.5rem) }
.narrow{ max-width: 760px; margin: 0 auto }

.page-head{ margin: .5rem 0 1.5rem }
.page-head h1{ margin:0 0 .35rem; font-size: clamp(1.4rem,2.4vw,1.9rem); font-weight:600; letter-spacing:-.01em }
.page-head p{ margin:0; color:var(--c-muted) }

.card{
  background: var(--c-panel); border:1px solid var(--c-border);
  border-radius: var(--r-md); padding: clamp(.9rem,2.5vw,1.4rem);
  box-shadow: var(--sh-card);
}
.card + .card{ margin-top: 1rem }

.btn{
  border:0; border-radius: var(--r-pill); cursor:pointer;
  padding:.7rem 1.1rem; font-size:.95rem; font-weight:500;
  display:inline-flex; align-items:center; gap:.5rem;
  font-family:inherit; text-decoration:none;
  transition: transform .05s, background .2s, box-shadow .2s, color .2s;
}
.btn:active{ transform: scale(.97) }
.btn-primary{ background: var(--c-accent); color:#fff; box-shadow: 0 6px 16px rgba(5,150,105,.3) }
.btn-primary:hover{ background: var(--c-accent-dark); color:#fff }
.btn-ghost{ background: var(--c-panel-2); color: var(--c-text) }
.btn-ghost:hover{ background: var(--c-border); color:var(--c-text) }
.btn-danger{ background: var(--c-danger); color:#fff }
.btn-sm{ padding:.45rem .8rem; font-size:.85rem }

input[type=text], input[type=password], input[type=email], input[type=url],
input[type=number], textarea, select, .input{
  background: var(--c-panel-2); color: var(--c-text);
  border:1px solid var(--c-border); border-radius: var(--r-sm);
  padding:.7rem .9rem; font-size: 1rem; font-family: inherit;
  outline:none; transition: border-color .15s, box-shadow .15s;
  width:100%;
}
input:focus, textarea:focus, select:focus, .input:focus{
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(5,150,105,.15);
}
textarea{ min-height: 120px; resize: vertical }

.field{ margin: 0 0 1.25rem }
.field > label.lbl{ display:block; font-weight:600; margin-bottom:.35rem }
.field .hint{ display:block; color: var(--c-muted); font-size:.85rem; margin-top:.3rem }
.field .req{ color: var(--c-danger); margin-left:.15rem }

/* Checkbox- und Radio-Gruppen */
.opt-group{ display:flex; flex-direction:column; gap:.5rem }
.opt{
  display:flex; align-items:flex-start; gap:.6rem;
  padding:.65rem .85rem; border:1px solid var(--c-border); border-radius: var(--r-sm);
  background: var(--c-panel-2); cursor:pointer; transition: border-color .15s, background .15s;
}
.opt:hover{ border-color: var(--c-accent) }
.opt input{ width:auto; margin-top:.15rem }
.opt.checked{ border-color: var(--c-accent); background: var(--c-accent-bg) }
.opt span.opt-label{ flex:1 }

/* Color */
.color-row{ display:flex; gap:.75rem; align-items:center; flex-wrap:wrap }
input[type=color]{
  width: 56px; height: 44px; padding: 2px; cursor:pointer;
  border:1px solid var(--c-border); border-radius: var(--r-sm); background:var(--c-panel-2);
}

/* File-Upload */
.uploader{
  border: 2px dashed var(--c-border); border-radius: var(--r-md);
  padding: 1.2rem; text-align:center; background: var(--c-panel-2);
  transition: border-color .15s, background .15s; cursor:pointer;
}
.uploader.drag{ border-color: var(--c-accent); background: var(--c-accent-bg) }
.uploader input[type=file]{ display:none }
.uploaded-list{ list-style:none; padding:0; margin:.7rem 0 0; display:flex; flex-direction:column; gap:.4rem }
.uploaded-list li{
  display:flex; justify-content:space-between; align-items:center; gap:.5rem;
  padding:.5rem .7rem; background: var(--c-panel-2); border-radius: var(--r-sm);
  font-size:.9rem;
}

/* Slider */
.slider-row{ display:flex; gap:.75rem; align-items:center; }
.slider-row input[type=range]{ flex:1 }
.slider-labels{ display:flex; justify-content:space-between; color:var(--c-muted); font-size:.82rem; margin-top:.3rem }

/* Wizard */
.wiz-progress{ height: 6px; background: var(--c-panel-2); border-radius: 999px; overflow:hidden; margin-bottom: 1.25rem }
.wiz-progress > span{ display:block; height:100%; background: linear-gradient(90deg, var(--c-accent), var(--c-accent-light)); transition: width .35s }
.wiz-meta{ display:flex; justify-content:space-between; align-items:center; margin-bottom:.6rem; color:var(--c-muted); font-size:.85rem }
.wiz-section-title{ margin:0 0 .25rem; font-size: clamp(1.15rem, 2vw, 1.4rem) }
.wiz-section-desc{ color: var(--c-muted); margin: 0 0 1.2rem }
.wiz-nav{ display:flex; justify-content:space-between; gap:.6rem; margin-top: 1.25rem }
.save-state{ font-size:.82rem; color: var(--c-muted) }
.save-state.ok{ color: var(--c-ok) }
.save-state.err{ color: var(--c-danger) }

/* Status-Pills */
.pill{ display:inline-block; padding:.18rem .55rem; font-size:.72rem; text-transform:uppercase; letter-spacing:.04em; border-radius: var(--r-pill); }
.pill-draft{ background: var(--c-panel-2); color: var(--c-muted) }
.pill-progress{ background: rgba(5,150,105,.15); color: var(--c-accent) }
.pill-submitted{ background: rgba(16,185,129,.18); color: var(--c-accent-dark) }

/* Tabelle */
table.t{ width:100%; border-collapse: collapse; font-size:.95rem }
table.t th, table.t td{ padding:.6rem .7rem; text-align:left; border-bottom:1px solid var(--c-border) }
table.t th{ color: var(--c-muted); font-weight:500; font-size:.82rem; text-transform:uppercase; letter-spacing:.03em }
table.t tr:hover td{ background: var(--c-panel-2) }

/* Footer */
.site-footer{ padding:1.2rem; border-top:1px solid var(--c-border); color:var(--c-muted); font-size:.85rem; text-align:center }

/* Login */
.login-wrap{ flex:1; display:flex; align-items:center; justify-content:center; padding: 1.5rem }
.login-card{ width:100%; max-width: 380px }
.alert{ padding:.7rem .9rem; border-radius: var(--r-sm); background: rgba(239,68,68,.12); color: var(--c-danger); border:1px solid rgba(239,68,68,.25); font-size:.9rem; margin-bottom:1rem }
.alert-ok{ background: rgba(16,185,129,.14); color: var(--c-accent-dark); border-color: rgba(16,185,129,.3) }

/* Hero / Cover */
.cover{
  border-radius: var(--r-md); padding: clamp(1.2rem, 4vw, 2.2rem);
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-dark));
  color:#fff; box-shadow: var(--sh-card); margin-bottom: 1.25rem;
}
.cover h1{ margin:0 0 .4rem; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600 }
.cover p{ margin:0; opacity:.92 }

/* Hide elements via show_if */
[data-hidden="1"]{ display:none !important }
