/* Was die Seite unverwechselbar macht – alles aus Heikos Marke abgeleitet:
   1. das Minimog-Icon (dicke Linie, Pfeil nach oben rechts) als Logo und Grafikmotiv,
   2. Kennzahlen als genietetes Typenschild, wie es an der Maschine hängt,
   3. der Tor-Check: Breite eingeben, sehen, welche Maschine durchpasst. */

:root { --mono: 'IBM Plex Mono', ui-monospace, 'Consolas', monospace; }

/* ---------- Logo ---------- */
.logo { flex-direction: row; align-items: center; gap: 11px; }
.logo-icon { width: 54px; height: auto; flex: none; }
.logo-text { display: flex; flex-direction: column; }

/* ---------- Eyebrow mit Streifen wie auf dem Maschinenaufkleber ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before {
  content: ''; width: 26px; height: 9px; flex: none;
  background: repeating-linear-gradient(180deg, currentColor 0 2px, transparent 2px 3.5px);
}

/* ---------- Icon als großes Motiv ---------- */
.hero, .demo { position: relative; isolation: isolate; overflow: hidden; }
.hero-motif, .demo-motif {
  position: absolute; z-index: -1; pointer-events: none; aspect-ratio: 2 / 1;
  -webkit-mask: url('bilder/minimog-icon.svg') center / contain no-repeat;
          mask: url('bilder/minimog-icon.svg') center / contain no-repeat;
}
.hero-motif { width: min(62vw, 900px); right: -8vw; bottom: -6%; background: var(--brand); opacity: .07; }
.demo-motif { width: min(70vw, 1000px); left: -12vw; bottom: -18%; background: #fff; opacity: .06; }

/* Maßlinie unter „ab 900 mm“ */
.facts .dimline {
  position: relative; display: block; width: 100%; max-width: 150px; height: 10px; margin: 4px 0 2px;
  border-left: 2px solid var(--brand); border-right: 2px solid var(--brand);
}
.facts .dimline::before { content: ''; position: absolute; left: 0; right: 0; top: 4px; border-top: 2px solid var(--brand); }
.gate-link { display: inline-block; margin: 18px 0 0; }
.gate-link::after { content: ' \2197 '; }

/* ---------- Typenschild auf den VMENG-Karten ---------- */
.vmeng .specs {
  position: relative; gap: 0 10px; padding: 12px 14px 10px; border-radius: 3px;
  background: linear-gradient(160deg, #3f4e34, var(--brand-strong));
  color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .18);
  --rivet: radial-gradient(circle, #d7e2da 0 2.2px, #b5cc68 2.6px, transparent 3.2px);
  background-image: var(--rivet), var(--rivet), var(--rivet), var(--rivet), linear-gradient(160deg, #3f4e34, var(--brand-strong));
  background-size: 12px 12px, 12px 12px, 12px 12px, 12px 12px, auto;
  background-position: 3px 3px, calc(100% - 3px) 3px, 3px calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), 0 0;
  background-repeat: no-repeat;
}
.vmeng .specs div { border-top: 1px solid rgba(255, 255, 255, .16); padding: 7px 4px 6px; }
.vmeng .specs div:nth-child(-n+2) { border-top: 0; }
.vmeng .specs dt { font: 500 10.5px/1.2 var(--mono); letter-spacing: .08em; color: #d5e2a9; }
.vmeng .specs dd { font: 600 14px/1.3 var(--mono); color: #fff; white-space: nowrap; }
.compact .specs dd, .table-wrap td.num { font-family: var(--mono); font-weight: 500; font-size: 14px; }

/* ---------- Tor-Check ---------- */
.gate {
  display: grid; grid-template-columns: minmax(280px, .8fr) 1.2fr; gap: clamp(24px, 4vw, 56px);
  margin-bottom: clamp(36px, 5vw, 56px); padding: clamp(22px, 3.5vw, 40px);
  border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line);
}
.gate-head h3.display { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 12px; }
.gate-head p { color: var(--muted); font-size: 15.5px; }
.gate-input {
  display: flex; align-items: center; gap: 10px; margin: 20px 0 10px; padding: 8px 8px 8px 16px;
  border: 2px solid var(--brand); border-radius: 3px; background: #fff; cursor: text;
}
.gate-input span { font: 600 14px/1.2 var(--text); color: var(--muted); }
.gate-input input {
  flex: 1; min-width: 0; min-height: 44px; border: 0; padding: 0; text-align: right; background: transparent;
  font: 400 34px/1 var(--display); color: var(--ink);
}
.gate-input input:focus { outline: none; }
.gate-input:focus-within { box-shadow: 0 0 0 4px var(--brand-soft); }
.gate-input em { font: 600 16px/1 var(--mono); font-style: normal; color: var(--brand); padding-right: 8px; }
.gate-range { width: 100%; accent-color: var(--brand); min-height: 32px; }
.gate-sum { margin: 10px 0 0 !important; font-weight: 700; color: var(--ink) !important; }

.gate-bars { --scale: 1300; margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; align-content: center; position: relative; }
.gate-bars li { display: grid; grid-template-columns: 200px 1fr 80px; align-items: center; gap: 12px; font-size: 14.5px; }
.gate-bars .gn { font-weight: 600; }
.gate-bars li.vm .gn::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 2px; background: var(--brand); vertical-align: 1px; }
.gate-bars .gb { position: relative; height: 22px; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); background-image: repeating-linear-gradient(90deg, #e7e5dd 0 1px, transparent 1px calc(100% / 6)); }
.gate-bars .gb i {
  position: absolute; left: 0; top: 3px; bottom: 3px; border-radius: 3px;
  width: calc((var(--w) - 700) / 600 * 100%); background: var(--brand);
  transition: background-color .2s ease, width .3s ease;
}
.gate-bars li.too-wide .gb i { background: #c9c6bb; }
.gate-bars li.too-wide .gn, .gate-bars li.too-wide .gw { color: #8a8d88; }
.gate-bars .gw { font: 500 13.5px/1 var(--mono); text-align: right; }
/* Torpfosten: senkrechte Linie in allen Balken an der eingegebenen Breite */
.gate-bars .gb::after {
  content: ''; position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px; border-radius: 2px;
  left: calc((var(--gate) - 700) / 600 * 100%); background: #b3261e;
}
.gate-bars li.axis { font: 500 11.5px/1 var(--mono); color: var(--muted); }
.gate-bars li.axis .gb { height: auto; background: none; box-shadow: none; display: flex; justify-content: space-between; }
.gate-bars li.axis .gb::after { display: none; }
.gate-note { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: var(--muted); }

@media (max-width: 900px) {
  .gate { grid-template-columns: 1fr; }
  .hero-motif { width: 120vw; right: -40vw; bottom: 30%; }
}
@media (max-width: 600px) {
  .gate-bars li { grid-template-columns: 1fr 70px; gap: 4px 10px; }
  .gate-bars .gn { grid-column: 1 / -1; font-size: 14px; }
  .gate-bars li.axis .gn { display: none; }
  .logo-icon { width: 44px; }
}
