:root{
  --bg: #0b0f17;
  --panel: #121a26;
  --panel2: #0f1622;
  --text: #e8eefc;
  --muted: #9fb0d0;
  --muted2:#7f93b8;
  --border: rgba(159,176,208,0.18);
  --accent: #7dd3fc;
  --accent2:#a78bfa;
  --ok:#34d399;
  --warn:#fbbf24;
  --bad:#f87171;
  --na:#94a3b8;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  background: radial-gradient(1200px 700px at 15% 5%, rgba(125,211,252,0.09), transparent 60%),
              radial-gradient(900px 600px at 85% 10%, rgba(167,139,250,0.08), transparent 55%),
              var(--bg);
  color: var(--text);
}

a{ color: var(--accent); text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}

.header{
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(11, 15, 23, 0.75);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content: space-between;
  padding: 14px 16px;
  max-width: 1160px;
  margin:0 auto;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.logo{
  width:36px;
  height:36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(125,211,252,0.9), rgba(167,139,250,0.85));
  box-shadow: var(--shadow);
}
.brand h1{
  font-size: 16px;
  margin:0;
  letter-spacing: 0.2px;
}
.meta{
  display:flex;
  flex-direction: column;
  gap:2px;
}
.sub{
  font-size: 12px;
  color: var(--muted);
}

.top-actions{ display:flex; gap:10px; align-items:center; }

.btn{
  border: 1px solid var(--border);
  background: rgba(18,26,38,0.8);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor:pointer;
  transition: transform 0.03s ease, border 0.2s ease, background 0.2s ease;
  font-size: 13px;
}
.btn:hover{ border-color: rgba(125,211,252,0.55); }
.btn:active{ transform: translateY(1px); }
.btn.primary{
  background: linear-gradient(135deg, rgba(125,211,252,0.18), rgba(167,139,250,0.18));
  border-color: rgba(125,211,252,0.35);
}
.btn.ghost{
  background: transparent;
}
.btn.small{
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(18,26,38,0.65);
  font-size: 12px;
  color: var(--muted);
}

.progress{
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px 12px;
}
.progress-track{
  display:flex;
  gap: 10px;
  align-items:center;
}
.step{
  flex:1;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(18,26,38,0.55);
  color: var(--muted);
  font-size: 12px;
  text-align:center;
}
.step.active{
  color: var(--text);
  border-color: rgba(125,211,252,0.45);
  background: linear-gradient(135deg, rgba(125,211,252,0.14), rgba(167,139,250,0.12));
}
.step.done{
  border-color: rgba(52,211,153,0.35);
  background: rgba(52,211,153,0.06);
  color: rgba(232,238,252,0.9);
}

.notice{
  margin: 18px 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(251,191,36,0.35);
  background: rgba(251,191,36,0.08);
  color: rgba(232,238,252,0.95);
  font-size: 13px;
}
.notice strong{ color: rgba(251,191,36,0.95); }

.card{
  border: 1px solid var(--border);
  background: rgba(18,26,38,0.55);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.grid{
  display:grid;
  gap: 14px;
}
.grid.cols-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.cols-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.cols-4{ grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px){
  .grid.cols-2, .grid.cols-3, .grid.cols-4{ grid-template-columns: 1fr; }
  .top-actions{ display:none; }
}

.h2{ font-size: 18px; margin: 0 0 6px; }
.p{ margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

.option{
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(15,22,34,0.6);
  /* <button> elements don't reliably inherit the body text color in all browsers.
     Without an explicit color, the option cards can render with near-black text on a dark background. */
  color: var(--text);
  cursor:pointer;
  transition: border 0.2s ease, transform 0.03s ease;
}
.option:hover{ border-color: rgba(125,211,252,0.45); }
.option:active{ transform: translateY(1px); }
.option.selected{
  border-color: rgba(125,211,252,0.75);
  background: linear-gradient(135deg, rgba(125,211,252,0.12), rgba(167,139,250,0.12));
}
.option h3{ margin:0 0 6px; font-size: 15px; }
.option p{ margin:0; color: var(--muted); font-size: 12px; line-height:1.4; }

/* Option cards used in the wizard are rendered with custom divs (option-title/option-desc).
   Style them explicitly so the text is readable and consistent. */
.option-title{ font-weight: 700; font-size: 15px; line-height: 1.25; }
.option-desc{ margin-top: 6px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }

.form-row{
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid rgba(159,176,208,0.12);
}
.form-row:first-child{ border-top: 0; padding-top: 0; }
.form-row label{ font-size: 13px; color: rgba(232,238,252,0.92); }
.form-row .hint{ font-size: 12px; color: var(--muted2); }

.toggle{
  display:flex;
  align-items:center;
  gap: 10px;
}
.toggle input[type="checkbox"]{
  width: 18px; height: 18px;
}

.range{
  width: 260px;
}
.range input[type="range"]{ width: 100%; }
.range .val{ font-size: 12px; color: var(--muted); text-align:right; }

.dealbreakerList{ margin: 8px 0 0 18px; padding: 0; }
.dealbreakerList li{ margin: 4px 0; }
.dealbreakerList.compact{ margin-top: 6px; }
.dealbreakerList.compact li{ margin: 2px 0; }

details.dealbreakerDetails summary{ cursor: pointer; user-select:none; }
details.dealbreakerDetails{ margin-top: 10px; }

.nav{
  display:flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 18px;
}

.hidden{ display:none !important; }

.table{
  width:100%;
  border-collapse: collapse;
  font-size: 13px;
  overflow:hidden;
  border-radius: 12px;
}
.table th, .table td{
  padding: 10px 10px;
  border-bottom: 1px solid rgba(159,176,208,0.12);
  text-align:left;
  vertical-align: top;
}
.table th{
  color: rgba(232,238,252,0.9);
  background: rgba(15,22,34,0.6);
  border-bottom: 1px solid rgba(159,176,208,0.18);
  position: sticky;
  top: 0;
  z-index: 1;
}
.table tr:hover td{ background: rgba(125,211,252,0.06); }

.kpi{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.kpi .pill{
  display:flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(159,176,208,0.18);
  background: rgba(15,22,34,0.6);
  min-width: 150px;
}
.kpi .pill .label{ font-size: 12px; color: var(--muted); }
.kpi .pill .value{ font-size: 16px; }

.score{
  font-weight: 700;
}
.score.ok{ color: var(--ok); }
.score.warn{ color: var(--warn); }
.score.bad{ color: var(--bad); }
.score.na{ color: var(--na); }

.provider-card h3{ margin:0; font-size: 16px; }
.provider-card .subline{ margin-top: 4px; color: var(--muted); font-size: 12px; }

.list{
  margin: 10px 0 0;
  padding: 0 0 0 18px;
  color: rgba(232,238,252,0.92);
  font-size: 13px;
}
.list li{ margin: 6px 0; }

.modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display:none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 50;
}
.modal.open{ display:flex; }
.modal .dialog{
  width: min(980px, 100%);
  max-height: 85vh;
  overflow:auto;
  border-radius: 16px;
  border: 1px solid rgba(159,176,208,0.2);
  background: rgba(10,14,20,0.95);
  box-shadow: var(--shadow);
  padding: 16px;
}
.modal .dialog-header{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}
.modal .dialog-header h3{ margin:0; font-size: 16px; }
.modal .dialog-header .small{ font-size: 12px; color: var(--muted); }
.modal .dialog-body{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}
@media (max-width: 900px){
  .modal .dialog-body{ grid-template-columns: 1fr; }
}
.modal .section{ border: 1px solid rgba(159,176,208,0.15); border-radius: 14px; padding: 12px; background: rgba(18,26,38,0.55); }
.modal .section h4{ margin:0 0 8px; font-size: 13px; color: rgba(232,238,252,0.92); }
.modal .section p{ margin:0; font-size: 13px; color: var(--muted); line-height:1.45; }
.modal .links{ margin-top: 10px; display:flex; flex-direction: column; gap: 6px; }
.modal .links a{ font-size: 13px; word-break: break-all; }

.footer{
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(159,176,208,0.15);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.print-only{ display:none; }
@media print{
  body{ background:#fff; color:#000; }
  .header,.progress,.nav,.top-actions,.btn,.notice{ display:none !important; }
  .card{ border: 1px solid #ccc; box-shadow:none; background:#fff; }
  a{ color:#000; text-decoration: underline; }
  .print-only{ display:block; }
  .no-print{ display:none !important; }
}

/* --- Ergänzungen für die Wizard-Variante --- */

.stack{display:flex;flex-direction:column;gap:14px}
.small{font-size:12px;opacity:.85}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}
.muted{color:var(--muted)}
.hr{height:1px;background:var(--line);margin:16px 0}

.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.actions.right{justify-content:flex-end}

.providerGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}
.providerCard{border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,0.02);padding:12px}
.providerCardHeader{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px}
.providerName{font-weight:700}
.providerScore{font-weight:700;font-size:16px}
.providerMeta{display:flex;gap:8px;flex-wrap:wrap}

.pill{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:4px 10px;font-size:12px;color:var(--muted)}
.badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:4px 10px;font-size:12px;border:1px solid var(--line)}
.badge.ok{border-color:rgba(46,204,113,0.35)}
.badge.warn{border-color:rgba(241,196,15,0.35)}
.badge.bad{border-color:rgba(231,76,60,0.35)}

.reasonList{margin:8px 0 0 18px;color:var(--muted)}

.table{border:1px solid var(--line);border-radius:14px;overflow:hidden}
.tr{display:grid;grid-template-columns:2fr .6fr .6fr;gap:10px;padding:10px 12px;border-top:1px solid var(--line)}
.tr:first-child{border-top:none}
.tr.header{background:rgba(255,255,255,0.03);font-weight:600;color:var(--muted)}
.td{min-width:0}
.tr.clickable{cursor:pointer}
.tr.clickable:hover{background:rgba(255,255,255,0.04)}

.link{color:var(--accent);text-decoration:none}
.link:hover{text-decoration:underline}

/* Print / PDF */
@media print{
  .topActions,.controlbar,.stepper,.toast{display:none!important}
  body{background:#fff;color:#000}
  .providerCard{break-inside:avoid}
  .pill,.badge{color:#000;border-color:#aaa}
}

/* Mini input fields (e.g., base weight overrides) */
.inlineInput {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
}
.miniInput {
  width: 72px;
  padding: 4px 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  color: var(--text);
}
.miniInput:focus {
  outline: none;
  border-color: rgba(242,88,36,0.9);
  box-shadow: 0 0 0 2px rgba(242,88,36,0.25);
}
