/* /custom/micronsystems/css/galespeed-calc.css */

/* --- Caliper cards (clickable) --- */
.gs6-caliperCards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin: 14px 0 18px;
}

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

.gs6-caliperCard{
  text-align:left;
  border:1px solid #e6e9ef;
  background:#fff;
  border-radius:14px;
  padding:14px 14px 12px;
  cursor:pointer;
  transition: transform .08s ease, border-color .12s ease, box-shadow .12s ease, background .12s ease;
  box-shadow: 0 1px 0 rgba(16,24,40,.02);
  position:relative;
}

.gs6-caliperCard:hover{
  border-color:#c9d2e3;
  box-shadow: 0 10px 30px rgba(16,24,40,.07);
  transform: translateY(-1px);
}

.gs6-caliperCard:focus{
  outline:none;
  box-shadow: 0 0 0 3px rgba(0, 86, 210, .18), 0 10px 30px rgba(16,24,40,.07);
  border-color:#9fb7ea;
}

.gs6-caliperCard.is-active{
  border-color:#0b1220;
  box-shadow: 0 12px 34px rgba(11,18,32,.10);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.gs6-caliperCard.is-active::after{
  content:"";
  position:absolute;
  inset: -1px;
  border-radius:14px;
  border:2px solid #0b1220;
  pointer-events:none;
}

.gs6-caliperTitle{
  font-weight:700;
  font-size:15px;
  line-height:1.25;
  margin:0 0 6px;
}

.gs6-caliperHint{
  color:#586174;
  font-size:13px;
  line-height:1.35;
}

/* Optional: kleine “ausgewählt”-Marke */
.gs6-caliperCard.is-active .gs6-caliperTitle::before{
  content:"✓ ";
}

mark, .mark {
	background-color: unset;
}

.gs6{font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;line-height:1.45;color:#121826}
.gs6 *{box-sizing:border-box}

.gs6-wrap{max-width:1050px;margin:0 auto;padding:16px}
.gs6-h2{margin:0 0 10px;font-size:26px}
.gs6-h3{margin:0 0 10px;font-size:16px}

.gs6-note{background:#f6f7f9;border:1px solid #e5e7eb;border-radius:12px;padding:12px 14px}
.gs6-warn{background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;padding:12px 14px;margin-top:10px}
.gs6-muted{color:#6b7280}
.gs6-small{font-size:12px}

.gs6-modeRow{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}
.gs6-tabs{display:inline-flex;border:1px solid #d1d5db;border-radius:999px;overflow:hidden;background:#fff}
.gs6-tabs button{appearance:none;border:0;background:transparent;padding:10px 14px;cursor:pointer;font-weight:900}
.gs6-tabs button[aria-pressed="true"]{background:#111827;color:#fff}

/* compatibility */
.gs6-compat{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}
@media (max-width:900px){.gs6-compat{grid-template-columns:1fr}}
.gs6-compatBox{border:1px solid #e5e7eb;border-radius:14px;background:#fff;padding:10px 12px;min-width:0}
.gs6-compatTitle{font-weight:900;background:#f3f4f6;border-radius:10px;padding:8px 10px;margin:-2px -2px 10px}
.gs6-compatMini{font-size:12px;color:#4b5563;margin:4px 0}

/* cards */
.gs6-card{border:1px solid #e5e7eb;border-radius:14px;background:#fff;padding:14px;min-width:0;margin-top:12px}
.gs6-card--full{width:100%}

/* input grid: caliper full width then 3 columns */
.gs6-row{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  min-width:0;
}
.gs6-field{min-width:0}
.gs6-field-full{grid-column:1 / -1}
@media (max-width:700px){
  .gs6-row{grid-template-columns:1fr}
  .gs6-field-full{grid-column:auto}
}

.gs6-label{display:block;font-size:13px;font-weight:800;color:#374151;margin:0 0 6px}
.gs6-select,.gs6-input{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:10px;font-size:14px;background:#fff;min-width:0}
.gs6-input:disabled{background:#f3f4f6;color:#6b7280}

.gs6-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.gs6-btn{appearance:none;border:1px solid #d1d5db;border-radius:999px;padding:10px 14px;font-weight:900;cursor:pointer}
.gs6-btn--primary{background:#111827;color:#fff;border-color:#111827}
.gs6-btn--secondary{background:#fff;color:#111827}

/* legend */
.gs6-legend{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.gs6-pill{display:inline-flex;align-items:center;gap:8px;border:1px solid #e5e7eb;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:900;background:#fff}
.gs6-pill--ok{border-color:#86efac;background:#f0fdf4}
.gs6-pill--mid{border-color:#fde68a;background:#fffbeb}
.gs6-pill--ng{border-color:#fdba74;background:#fff7ed}
.gs6-sym{font-size:14px;line-height:1}

/* lineup */
.gs6-lineupTitle{margin-top:16px;text-align:center;font-weight:1000}
.gs6-lineup{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px}
@media (max-width:980px){.gs6-lineup{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.gs6-lineup{grid-template-columns:1fr}}

.gs6-lineup .col{border:1px solid #e5e7eb;border-radius:14px;overflow:hidden;background:#fff;min-width:0}
.gs6-lineup .colHead{padding:10px 12px;background:#f9fafb;font-weight:1000}
.gs6-lineup .colBody{padding:10px 12px;min-width:0}
.gs6-lineup .item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #f0f0f0;min-width:0}
.gs6-lineup .item:last-child{border-bottom:none}
.gs6-lineup .code{font-weight:900;min-width:0;overflow-wrap:anywhere;word-break:break-word;flex:1 1 auto}
.gs6-lineup .mark{display:inline-flex;align-items:center;justify-content:flex-end;flex:0 0 auto}

/* pills used by JS in lineup */
.pill{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:28px;border-radius:999px;border:1px solid #e5e7eb;background:#fff;font-weight:1000}
.pill.ok{border-color:#86efac;background:#f0fdf4}
.pill.mid{border-color:#fde68a;background:#fffbeb}
.pill.ng{border-color:#fdba74;background:#fff7ed}
.pill .sym{font-size:14px;line-height:1}

/* ===== Bremscharakteristik Tabs ===== */
.gs6-bcHead{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}
.gs6-tabs--bc{margin-top:10px}

/* active/inactive for role=tab */
.gs6-bcTab[aria-selected="true"]{background:#111827;color:#fff}
.gs6-bcTab[aria-selected="false"]{background:transparent;color:#111827}

.gs6-bcPanels{margin-top:12px}
.gs6-bcTopRow{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.gs6-bcRight{font-size:13px;color:#374151}
.gs6-bcValue{
  display:inline-block;
  margin-left:8px;
  padding:6px 10px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#f9fafb;
  font-weight:1000;
}

/* grids */
.gs6-bcGrid{display:grid;gap:12px}
.gs6-bcGrid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.gs6-bcGrid--5{grid-template-columns:repeat(5,minmax(0,1fr))}
@media (max-width:980px){.gs6-bcGrid--5{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px){
  .gs6-bcGrid--3{grid-template-columns:1fr}
  .gs6-bcGrid--5{grid-template-columns:1fr}
}

.gs6-bcBox{
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#fff;
  padding:12px;
  min-width:0;
  box-shadow:0 6px 16px rgba(17,24,39,.06);
}
.gs6-bcBoxTitle{
  font-weight:1000;
  padding-bottom:8px;
  border-bottom:3px solid #b91c1c;
  margin-bottom:10px;
  text-align:center;
}
.gs6-bcBoxRow{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:8px 0;
  border-bottom:1px solid #f0f0f0;
  font-size:13px;
}
.gs6-bcNum{font-weight:1000;color:#ef4444}
.gs6-bcSym{font-weight:1000;color:#ef4444}
.gs6-bcConst{color:#ef4444} /* konstant; original zeigt diese auch immer */
.gs6-bcDesc{
  margin-top:10px;
  padding:10px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  background:#f9fafb;
  text-align:center;
  color:#ef4444;
  font-weight:900;
  font-size:13px;
}

/* ===== Products (Boxen wie vorher) ===== */
.gs6-products{margin-top:18px}
.prodGrid{display:grid;grid-template-columns:1fr;gap:12px}
@media (min-width:860px){.prodGrid{grid-template-columns:1fr 1fr}}
.prodBox{border:1px solid #e5e7eb;border-radius:14px;background:#fff;padding:14px;min-width:0}
.prodBox h4{margin:0 0 8px;font-size:14px}
.prodList{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}
.prodList a{color:#111827;text-decoration:underline}
.badgeOk{display:inline-flex;align-items:center;gap:6px;font-weight:1000}
.badgeOk .sym{font-size:15px}
.empty{border:1px dashed #d1d5db;border-radius:14px;padding:12px 14px;background:#fafafa;color:#6b7280}
.hint{font-size:12px;color:#6b7280;margin-top:6px}

.gs6-modalOverlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gs6-modalOverlay[hidden] {
  display: none !important;
}

.gs6-modalBox {
  width: min(600px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 38px 30px 34px;
  text-align: center;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.28);
}

.gs6-modalTitle {
  margin: 0;
  color: #b60018;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gs6-modalLine {
  height: 1px;
  background: #d0d0d0;
  margin: 10px 0 14px;
}

.gs6-modalText {
  color: #111;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
}

.gs6-modalText p {
  margin: 4px 0;
}

.gs6-modalOk {
  margin-top: 46px;
  min-width: 200px;
  height: 56px;
  border: 0;
  border-radius: 9px;
  background: #c9001c;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(201, 0, 28, 0.28);
}

.gs6-modalOk:hover {
  background: #b60018;
}

.gs6-results-hidden #gsLineup,
.gs6-results-hidden #gsBrakeCharacter,
.gs6-results-hidden #gsProducts,
.gs6-results-hidden .gs6-lineupTitle,
.gs6-results-hidden .gs6-legend {
  display: none !important;
}