:root{
      --bg:#0b1220;
      --text:#e8eefc;
      --muted:#a9b6d6;
      --line:rgba(255,255,255,.10);
      --good:#2dd4bf;
      --warn:#fbbf24;
      --bad:#fb7185;
      --accent:#60a5fa;
      --shadow: 0 10px 30px rgba(0,0,0,.35);
      --radius:18px;
      --cardbg: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    }
    *{box-sizing:border-box}
    body{
      margin:0;
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
      background: radial-gradient(1200px 600px at 20% 0%, rgba(96,165,250,.20), transparent 60%),
                  radial-gradient(900px 500px at 90% 20%, rgba(45,212,191,.16), transparent 55%),
                  var(--bg);
      color:var(--text);
    }
    .wrap{max-width:1180px;margin:28px auto;padding:0 18px}
    header{display:flex;gap:18px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;margin-bottom:18px}
    .brand{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
    .brand img{height:38px;width:auto}
    .title{display:flex;flex-direction:column;gap:6px}
    h1{margin:0;font-size:22px;letter-spacing:.2px}
    .sub{color:var(--muted);font-size:13px;max-width:820px;line-height:1.35}
    .top-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
    button{
      background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
      color:var(--text);
      border:1px solid rgba(255,255,255,.14);
      padding:10px 12px;
      border-radius:12px;
      cursor:pointer;
      font-weight:700;
      font-size:13px;
    }
    button:active{transform:translateY(1px)}
    .badgeV{
      display:inline-flex;align-items:center;gap:8px;
      padding:7px 10px;border-radius:999px;
      font-weight:900;font-size:12px;
      border:1px solid rgba(255,255,255,.14);
      background: rgba(255,255,255,.06);
      color: var(--text);
    }
    .dot{width:10px;height:10px;border-radius:999px;background: var(--accent); box-shadow: 0 0 0 4px rgba(96,165,250,.18)}

    .grid{
      display:grid;
      grid-template-columns: 560px 1fr;
      gap:16px;
      align-items:start;
    }
    /* keep 2-column layout; if viewport is narrow, allow horizontal scroll instead of stacking */
    .wrap{min-width:1120px;}
    body{overflow-x:auto;}

    @media (max-width: 980px){.grid{grid-template-columns:1fr}}

    .card{
      background: var(--cardbg);
      border:1px solid var(--line);
      border-radius:var(--radius);
      box-shadow: var(--shadow);
      overflow:hidden;
    }
    .card .hd{
      padding:14px 16px;
      border-bottom:1px solid var(--line);
      display:flex;align-items:center;justify-content:space-between;gap:10px;
      background: linear-gradient(180deg, rgba(255,255,255,.05), transparent);
    }
    .card .hd .h{font-weight:900;font-size:14px}
    .card .bd{padding:14px 16px}

    .row{display:grid;grid-template-columns: 1fr 1fr;gap:10px;margin-bottom:10px}
    .field{display:flex;flex-direction:column;gap:6px}
    label{font-size:12px;color:var(--muted)}
    input, select{
      background: rgba(0,0,0,.25);
      border:1px solid rgba(255,255,255,.14);
      border-radius:12px;
      padding:10px 11px;
      color:var(--text);
      outline:none;
      font-size:13px;
    }
    input[type="range"]{padding:0;height:30px}
    
    .rangeWrap{ position:relative; padding-top:18px; }
    .rangeWrap input[type="range"]{ width:100%; }
    .bubble{
      position:absolute;
      top:0;
      left:0;
      transform:translateX(-50%);
      background: rgba(0,0,0,.35);
      border:1px solid rgba(255,255,255,.18);
      padding:4px 8px;
      border-radius:10px;
      font-size:12px;
      font-weight:800;
      color: var(--text);
      white-space:nowrap;
      pointer-events:none;
    }

    .hint{font-size:12px;color:var(--muted);line-height:1.35}
    .divider{height:1px;background:var(--line);margin:12px 0}

    .kpis{display:grid;grid-template-columns: 1fr 1fr 1fr;gap:10px;margin-bottom:12px}
    @media (max-width: 980px){.kpis{grid-template-columns:1fr}}
    .kpi{
      padding:12px 12px;border-radius:16px;border:1px solid rgba(255,255,255,.12);
      background: rgba(0,0,0,.18);
    }
    .kpi .t{font-size:12px;color:var(--muted);margin-bottom:6px}
    .kpi .v{font-size:18px;font-weight:900;letter-spacing:.2px}

    .status{
      display:inline-flex;align-items:center;gap:8px;
      padding:7px 10px;border-radius:999px;font-weight:900;font-size:12px;
      border:1px solid rgba(255,255,255,.14);
      background: rgba(255,255,255,.06);
    }
    .status.good .dotS{background:var(--good); box-shadow:0 0 0 4px rgba(45,212,191,.18)}
    .status.warn .dotS{background:var(--warn); box-shadow:0 0 0 4px rgba(251,191,36,.18)}
    .status.bad  .dotS{background:var(--bad);  box-shadow:0 0 0 4px rgba(251,113,133,.18)}
    .dotS{width:10px;height:10px;border-radius:999px;background: var(--accent); box-shadow: 0 0 0 4px rgba(96,165,250,.18)}

    .barWrap{margin-top:6px}
    .track{height:12px;border-radius:999px;background: rgba(255,255,255,.08);position:relative}
    .fill{position:absolute;left:0;top:0;bottom:0;border-radius:999px;background: linear-gradient(90deg, rgba(96,165,250,.18), rgba(96,165,250,.45));width:0%}
    .marker{position:absolute;top:-6px;width:2px;height:24px;background: rgba(255,255,255,.85);left:0%;box-shadow: 0 0 0 4px rgba(255,255,255,.12)}

    .recBox{
      border:1px solid rgba(255,255,255,.12);
      border-radius:16px;
      background: rgba(0,0,0,.18);
      padding:12px 12px;
      line-height:1.35;
      color: var(--text);
    }
    .recBox ul{margin:8px 0 0 18px;color:var(--muted)}

    /* Print */
    @media print{
      body{background:#fff;color:#000}
      .wrap{max-width:none;margin:0;padding:0}
      .top-actions{display:none}
      .card{box-shadow:none;border:1px solid #ddd;background:#fff}
      .card .hd{background:#fff}
      button{display:none !important}
      input,select{border:1px solid #ddd;background:#fff;color:#000}
      .kpi{background:#fff;border:1px solid #ddd}
      .track{background:#eee}
      .fill{background:#bbb}
      .marker{background:#111;box-shadow:none}
      .sub,.hint{color:#333}
      .recBox{background:#fff;border:1px solid #ddd}
      .recBox ul{color:#333}
    }
  
    header{position:relative}
    .verCorner{
      position:absolute;
      right:18px;
      top:14px;
      padding:8px 12px;
      border-radius:12px;
      font-weight:900;
      font-size:13px;
      background: rgba(255,0,0,.14);
      border:1px solid rgba(255,0,0,.45);
      color:#ff4d4d;
      letter-spacing:.2px;
    }
    /* Lesbarkeit */
    .sub{font-size:14px;line-height:1.45}
    label{font-size:13px}
    input, select{font-size:14px}
    .hint{font-size:13px;line-height:1.45}
    .card .hd .h{font-size:15px}

  
    @media (max-width: 1180px){
      .wrap{min-width:1120px;}
    }


/* Einheitlicher Toolbox-Header */
.tool-hero {
  width: 100%;
  margin: 0 0 32px;
  padding: 8px 2px 30px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.20);
}

.tool-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 26px;
  font-size: 14px;
  color: #a9bdd8;
}

.tool-breadcrumb a {
  color: #4da3ff;
  text-decoration: none;
}

.tool-breadcrumb a:hover {
  color: #7dbcff;
}

.tool-breadcrumb span:last-child {
  color: #e7eef9;
}

.tool-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.tool-hero-copy {
  max-width: 950px;
}

.tool-kicker {
  margin-bottom: 16px;
  color: #318cff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.tool-hero h1 {
  margin: 0 0 12px;
  color: #f3f7ff;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.tool-hero p {
  max-width: 980px;
  margin: 0;
  color: #bfd0e8;
  font-size: 17px;
  line-height: 1.65;
}

.tool-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
  padding-bottom: 3px;
}

.tool-version,
.tool-action-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(110, 150, 195, 0.38);
  border-radius: 14px;
  background: rgba(15, 32, 52, 0.78);
  color: #f1f6ff;
  font: inherit;
  font-weight: 700;
}

.tool-version {
  min-width: 64px;
  padding: 0 16px;
  font-weight: 500;
}

.tool-action-button {
  padding: 0 18px;
  cursor: pointer;
}

.tool-action-button:hover {
  border-color: rgba(69, 149, 244, 0.75);
  background: rgba(25, 55, 86, 0.92);
}

.tool-reset-button {
  border-color: rgba(71, 145, 219, 0.55);
}

@media (max-width: 1050px) {
  .tool-hero-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .tool-hero-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 650px) {
  .tool-hero {
    padding-bottom: 24px;
  }

  .tool-hero h1 {
    font-size: 36px;
  }

  .tool-hero-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}
