/* Maschinenkarten v2 (02.10.2026): großes Poster (vorne, beim Überfahren hinten), darunter die richtigen
   Daten als dunkle Leiste an der Stelle, wo auf dem Poster der falsche Datenblock stand. */
.mk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mk { position: relative; container-type: inline-size; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 12px; background: var(--surface);
  box-shadow: 0 1px 2px rgba(20, 30, 20, .06), 0 22px 44px -30px rgba(25, 31, 21, .45);
  transition: transform .6s cubic-bezier(.22, 1, .36, 1), box-shadow .6s cubic-bezier(.22, 1, .36, 1), opacity .4s ease; }
.mk:hover { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(20, 30, 20, .06), 0 34px 60px -30px rgba(21, 26, 18, .5); }

/* Poster: beide Ansichten übereinander, Format 5:6, nichts wird gezoomt */
.mk-pic { position: relative; display: block; aspect-ratio: 5 / 6; background: #fdfdfd; overflow: hidden; }
.mk-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .55s ease; }
.mk-h { opacity: 0; }
@media (hover: hover) { .mk:hover .mk-h, .mk:focus-within .mk-h { opacity: 1; } .mk:hover .mk-v, .mk:focus-within .mk-v { opacity: 0; } }
@media (hover: none) { .mk.is-back .mk-h { opacity: 1; } .mk.is-back .mk-v { opacity: 0; } }   /* gedreht wird nur auf Geräten ohne Maus; mit Maus zählt allein das Überfahren */
.mk-tag { position: absolute; right: 12px; top: 12px; z-index: 2; padding: 7px 10px; border-radius: 4px; background: var(--lime); color: var(--lime-ink);
  font: 700 11px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 6px 16px -8px rgba(23, 28, 21, .5); }
.mk-flip { display: none; }
@media (hover: none) {
  .mk-flip { position: absolute; z-index: 3; left: 12px; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 10px; border: 0; border-radius: 999px;
    background: rgba(31, 38, 28, .84); color: #fff; font: 600 12.5px/1 var(--text); cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    top: calc(120cqw - 48px); }   /* unten rechts auf dem Poster: Poster ist 1,2 × Kartenbreite hoch */
  .mk-flip svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s ease; }
  .mk.is-back .mk-flip svg { transform: rotate(180deg); }
}

/* Datenleiste: die richtigen Werte, dunkel wie der Fuß des Posters */
.mk-leiste { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; background: var(--moss-1); color: #fff; }
.mk-leiste li { display: grid; justify-items: center; gap: 3px; padding: 13px 4px 12px; text-align: center; min-width: 0; }
.mk-leiste li + li { box-shadow: inset 1px 0 0 rgba(243, 240, 232, .1); }
.mk-leiste svg { width: 18px; height: 18px; margin-bottom: 2px; fill: none; stroke: var(--lime); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mk-leiste b { max-width: 100%; font: 700 15.5px/1.05 var(--display); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-leiste span { font: 600 10px/1.1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); }

/* Name, Preis, Knöpfe */
.mk-body { display: flex; flex: 1; flex-direction: column; padding: 18px 18px 18px; }
.mk-titel { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mk-marke { margin: 0 0 5px; font: 600 11.5px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--olive); }
.mk-name { margin: 0; font: 700 clamp(22px, 1.75vw, 27px)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.mk-preis { display: grid; justify-items: end; gap: 2px; margin: 0; text-align: right; white-space: nowrap; }
.mk-preis small { font: 600 11px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mk-preis b { font: 700 21px/1 var(--display); color: var(--ink); }
.mk-preis em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.mk-why { margin: 12px 0 16px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.mk-btns { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: auto; }
.mk-btns a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 6px; font: 600 14.5px/1 var(--text); text-decoration: none; transition: background .3s, color .3s, box-shadow .3s; }
.mk-more { background: var(--moss-1); color: #fff; }
.mk-more span { transition: transform .3s ease; }
.mk:hover .mk-more { background: var(--lime); color: var(--lime-ink); }
.mk:hover .mk-more span { transform: translateX(4px); }
.mk-ask { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.mk-ask:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Tor-Check: was nicht durchpasst, tritt zurück */
.mk.is-zu-breit { opacity: .4; }
.mk.is-zu-breit:hover { opacity: .8; }
.mk.is-zu-breit .mk-pic::before { content: 'Zu breit f\FC r Ihre Durchfahrt'; position: absolute; left: 12px; top: 12px; z-index: 2; padding: 7px 10px; border-radius: 4px; background: var(--ink); color: #fff; font: 600 11.5px/1 var(--text); }

@media (max-width: 1240px) { .mk-leiste b { font-size: 14px; } .mk-leiste span { font-size: 9.5px; letter-spacing: .06em; } }
@media (max-width: 1100px) { .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mk-leiste b { font-size: 16px; } .mk-leiste span { font-size: 10px; } }
@media (max-width: 560px) {
  .mk-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .mk-body { padding: 16px; }
}

/* v3 (02.10.): Karte in der Farbe des Bildhintergrunds, kleinere Radien, Rauschen auf der Datenleiste */
.mk { border-radius: 6px; background: #fbfbfa; }
.mk-pic { background: #fbfbfa; }
.mk-pic img { object-fit: cover; }   /* Bild hat genau das Format der Fläche: kein Zoom, aber auch kein heller Haarstrich am Rand */
.mk-daten { position: relative; isolation: isolate; overflow: hidden; background: var(--moss-1); }
.mk-daten > .grain { z-index: 0; }
.mk-leiste { z-index: 1; background: transparent; }
.mk-leiste b { font-size: clamp(11.5px, 4.6cqw, 16px); overflow: visible; text-overflow: clip; }
.mk-leiste span { font-size: clamp(8.5px, 2.9cqw, 10px); }
.mk-tag { border-radius: 3px; }
.mk-btns a { border-radius: 4px; }
@media (hover: none) { .mk-flip { border-radius: 4px; } }
.mk.is-zu-breit .mk-pic::before { border-radius: 3px; }
@media (max-width: 1240px) { .mk-leiste b { font-size: clamp(11.5px, 4.6cqw, 16px); } .mk-leiste span { font-size: clamp(8.5px, 2.9cqw, 10px); letter-spacing: .06em; } }
.mk-btns a { white-space: nowrap; }
.mk-tag { top: auto; bottom: 12px; right: 12px; }   /* unten rechts, damit die Kopfzeile des Posters frei bleibt */
.mk-why b { display: block; margin-bottom: 4px; font: 700 16px/1.25 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.mk-name { text-transform: none; }   /* Modellnamen stehen schon groß in den Daten; so bleibt das kleine i im DRT 480i */

/* v4 (02.10.): alle Zeilen einer Reihe auf gleicher Höhe (Subgrid), Name immer einzeilig, Preis in eigener Zeile */
.mk-grid { row-gap: 20px; }
.mk { display: flex; flex-direction: column; }   /* Ausrichtung ohne Subgrid: feste Zeilenhöhen, der Text dazwischen wächst */
.mk > :is(.mk-kopf, .mk-claim, .mk-why, .mk-preis, .mk-btns) { padding-inline: 18px; }
.mk-kopf { padding-top: 18px; }
.mk-marke { margin: 0 0 6px; }
.mk-name { margin: 0; white-space: nowrap; font-size: clamp(17px, 8cqw, 27px); line-height: 1; }
.mk-claim { margin: 14px 0 0; font: 700 clamp(14px, 5.2cqw, 16px)/1.25 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.mk-why { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.mk-preis { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 16px 18px 0; padding: 14px 0 0 !important; border-top: 1px solid rgba(31, 38, 28, .1); text-align: left; justify-items: initial; }
.mk-preis b { font: 700 clamp(19px, 7.4cqw, 24px)/1 var(--display); white-space: nowrap; }
.mk-preis b small { margin-right: 2px; font: 600 11px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mk-preis em { font-size: 11.5px; line-height: 1.35; text-align: right; color: var(--muted); }
.mk-btns { margin: 14px 0 0; padding-bottom: 18px; align-self: end; }


.mk-claim { min-height: 2.5em; }   /* immer zwei Zeilen Platz, damit der Text darunter überall auf gleicher Höhe beginnt */
.mk-why { flex: 1; }               /* wächst, damit Preis und Knöpfe in jeder Karte unten auf einer Linie stehen */
.mk-btns { align-self: stretch; }

/* 03.10.2026 (Nutzer): Karten zeigen den Kopf der Produktseite als Vorschau, ganz, ohne Vorne/Hinten-Wechsel */
.mk-pic.ist-poster { aspect-ratio: 1200 / 660; background: #f1f0ec; }
.mk-pic.ist-poster img { object-fit: cover; opacity: 1; transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) { .mk:hover .mk-pic.ist-poster img { transform: scale(1.04); opacity: 1; } }
/* 03.10.2026 (Nutzer): unten rechts im Vorschaubild war es leer. Dort steht jetzt der Kurztitel wie im Menü */
.mk-bildzeile { position: absolute; z-index: 2; right: 4.5%; bottom: 7%; display: grid; justify-items: end; gap: 3px; text-align: right; color: #0b0b0b; pointer-events: none; }
.mk-bildzeile i { font: 600 10.5px/1 var(--text); font-style: normal; letter-spacing: .18em; text-transform: uppercase; color: #56701f; }
.mk-bildzeile b { display: flex; align-items: center; gap: 8px; font: 600 clamp(15px, 1.35vw, 19px)/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.mk-bildzeile b::before { content: ''; width: 22px; height: 3px; border-radius: 2px; background: var(--lime, #a4c639); }
.mk-bildzeile em { position: absolute; right: -2px; top: -26px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--lime, #a4c639); color: #1d2416;
  font: 700 13px/1 var(--text); font-style: normal; opacity: 0; transform: translate(-4px, 4px); transition: opacity .35s, transform .45s cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) { .mk:hover .mk-bildzeile em { opacity: 1; transform: none; } }
.mk-pic.ist-poster .mk-tag { bottom: auto; top: 12px; right: 12px; }
/* 12.10.2026 Heiko: Netto-Preis auf den Karten hervorheben */
.mk-preis em strong { display: inline-block; margin-top: 2px; font: 700 15.5px/1 var(--display); color: var(--ink); }
/* 14.10.2026 Nutzer: „inkl. MwSt.“ steht beim Preis, nicht über dem Nettobetrag */
.mk-preis b .mk-mwst { margin-left: 5px; font: 500 12px/1 var(--text); letter-spacing: 0; text-transform: none; color: var(--muted); }
.mk-preis em { align-self: flex-end; }

/* 16.10.2026: 3:4-Karten mit aktuellen Originalbildern statt Hero-Screenshots.
   Ein gemeinsamer Aufstandspunkt und modellbezogene Groessen halten die
   komplette Maschine mittig im Bild, auch auf schmalen Displays. */
.mk .mk-pic.ist-poster { aspect-ratio:3 / 4; background:#eeefec; isolation:isolate; }
.mk .mk-pic.ist-poster .mk-bildzeile { display:none; }
.mk-scene { position:absolute; inset:0; display:block; overflow:hidden;
  background:radial-gradient(ellipse at 50% 28%,#fff 0%,#f3f3f0 52%,#e6e7e4 100%); }
.mk-scene::before { content:""; position:absolute; inset:0; z-index:0;
  background:linear-gradient(105deg,#90ad2f,#b5cf52); opacity:.82;
  clip-path:polygon(0 40%,100% 23%,100% 32%,0 49%); }
.mk-scene-model { position:absolute; z-index:1; left:5%; right:5%; top:9%;
  display:block; text-align:center; white-space:nowrap;
  font:400 calc(156cqw / var(--model-length,8))/1.06 Anton,'Barlow Semi Condensed',sans-serif;
  letter-spacing:-.025em; transform:scaleY(1.85); transform-origin:50% 0;
  background:linear-gradient(#131611 0%,#242820 38%,rgba(45,50,40,.16) 90%,transparent);
  -webkit-background-clip:text; background-clip:text; color:transparent; }
.mk .mk-pic.ist-poster img.mk-scene-machine {
  position:absolute; z-index:2; inset:auto; left:var(--machine-left); top:var(--machine-top);
  width:var(--machine-width); height:auto; max-width:none; max-height:none;
  padding:0; object-fit:contain; opacity:1; transform:none; transition:none; }
@media(max-width:560px){
  .mk .mk-pic.ist-poster { aspect-ratio:3 / 4; }
}
/* Daten bleiben in jeder Kartenbreite vollstaendig lesbar. */
.mk .mk-leiste li { gap:3px; padding:12px 3px 10px; }
.mk .mk-leiste b { font-size:clamp(12px,4.6cqw,16px); letter-spacing:0; white-space:nowrap; }
.mk .mk-leiste span { display:flex; align-items:center; justify-content:center;
  min-height:2.2em; font-size:clamp(8.5px,2.7cqw,10px); line-height:1.1; letter-spacing:.02em; }
.mk .mk-daten { margin-top:0; }
/* Die Bild- und Bodenlinie bleibt auch beim Ueberfahren einer Karte gerade. */
.mk:hover { transform:none; }
