/* K2 „Digitaler Mustertisch" (21.10.2026) — gemeinsam für /muster und /sortiment (Reiter „Material & Farben").
   Markup: partials/mustertisch.php, Verhalten: js/mustertisch.js. Variablen (--ink, --border, --muted, --accent, --btn …)
   kommen aus css/theme.css und dem :root der Seite. */
.mustertisch { margin: 8px 0 40px; scroll-margin-top: 72px; }
.mt-kopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.mt-h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.15; margin: 0 0 6px; color: var(--ink); }
.mt-text { font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 62ch; margin: 0; }
.mt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-chips button { display: inline-flex; align-items: baseline; gap: 6px; font: inherit; font-size: 13.5px; font-weight: 700; padding: 8px 15px; border-radius: 999px; background: #fff; color: #241F17; border: 1.5px solid var(--border); cursor: pointer; }
.mt-chips button.on { background: #241F17; color: #fff; border-color: #241F17; }
.mt-chips small { font-size: 12px; font-weight: 500; opacity: .78; }
.mt-tisch { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr); gap: 24px; align-items: center; padding: 36px 40px; border-radius: 24px;
  /* Eigene Tisch-Fassung (21.10.2026): Holztextur des Konfigurators mit 50 % Weiß schon eingerechnet, 720 px, AVIF 23 KB
     statt 107 KB (nginx handelt .avif/.webp neben der .jpg aus). Liegt nur am Server (bilder/ ist nicht im Git), Bau: README. */
  background: url('/bilder/middle/wood-texture-tisch.jpg') center / cover, #f4ede2;
  box-shadow: inset 0 0 80px rgba(110,75,35,.20), inset 0 -2px 0 rgba(110,75,35,.12), 0 18px 40px -24px rgba(60,40,20,.45); }
.mt-ablage { position: relative; height: 470px; display: flex; align-items: flex-start; justify-content: center; }
.mt-brett { width: 100%; height: 400px; overflow: visible; transform: rotate(-4deg); filter: drop-shadow(0 18px 18px rgba(60,40,20,.34)) drop-shadow(0 3px 4px rgba(60,40,20,.25)); }
.mt-brett .kbb-tex { transition: opacity .45s ease; }
.mt-karte { position: absolute; right: -6px; bottom: 0; width: 236px; padding: 14px 16px 16px; background: #fffdf7; border-radius: 4px; transform: rotate(2.5deg);
  box-shadow: 0 2px 2px rgba(60,40,20,.12), 0 12px 22px -6px rgba(60,40,20,.35); background-image: repeating-linear-gradient(#fffdf7 0 23px, rgba(122,198,24,.28) 23px 24px); background-position: 0 38px; }
.mt-karte p { margin: 0; }
.mt-karte-mat { font-size: 11.5px; font-weight: 600; color: rgba(36,31,23,.66); letter-spacing: .01em; }
.mt-karte-name { font-family: var(--headline); font-size: 22px; font-weight: 700; color: var(--accent); line-height: 1.15; margin: 4px 0 2px !important; }
.mt-karte-preis { font-size: 13px; color: var(--ink); margin-bottom: 10px !important; }
.mt-karte-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 700; color: #fff; background: var(--btn); border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.mt-karte-btn:hover { background: var(--btn-hover); }
.mt-karte-btn.just-added { background: var(--green-text); }
/* /sortiment: Link zur Musterseite statt Warenkorb-Knopf — längerer Text, darf umbrechen */
.mt-karte-link { color: #fff; text-decoration: none; border-radius: 12px; line-height: 1.25; text-align: left; }
.mt-karte-link:hover, .mt-karte-link:focus { color: #fff; }
/* Zeilenabstand 34 px (Judith 23.10.2026): Der Farbname erscheint beim Drüberfahren 8 px unter der Kachel und ist rund 20 px
   hoch; bei 16 px lag er unter der Kachel der nächsten Reihe. Die Kachel unter der Maus kommt zusätzlich nach vorn. */
.mt-muster { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 34px 14px; align-content: center; }
.mt-stueck { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 3px; cursor: pointer; background: #ddd center / cover; transform: translate(var(--x), var(--y)) rotate(var(--r));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 1px 1px rgba(60,40,20,.25), 0 6px 10px -2px rgba(60,40,20,.28); transition: transform .2s ease, box-shadow .2s ease; }
.mt-stueck:hover { transform: translate(var(--x), calc(var(--y) - 4px)) rotate(calc(var(--r) / 2)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 2px 2px rgba(60,40,20,.2), 0 14px 18px -4px rgba(60,40,20,.32); }
.mt-stueck[aria-checked="true"], .mt-stueck.plexi.neon[aria-checked="true"] { z-index: 2; transform: translate(var(--x), calc(var(--y) - 10px)) rotate(0deg) scale(1.1);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink), 0 20px 24px -6px rgba(60,40,20,.4); }
.mt-stueck[aria-checked="true"]::after { content: "\2713"; content: "\2713" / ""; position: absolute; right: -8px; top: -8px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; line-height: 20px; text-align: center; }
.mt-stueck:focus-visible { outline: 3px solid #1a70b0; outline-offset: 5px; }
.mt-stueck .mt-name { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; font-size: 11.5px; font-weight: 700; color: var(--ink); background: #fffdf7; padding: 2px 7px; border-radius: 4px; box-shadow: 0 2px 6px rgba(60,40,20,.25); opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 3; }
.mt-stueck:hover .mt-name, .mt-stueck:focus-visible .mt-name { opacity: 1; }
.mt-stueck:hover, .mt-stueck:focus-visible { z-index: 3; }
.mt-stueck.plexi { background: var(--c); }
.mt-stueck.plexi::before { content: ""; position: absolute; inset: 0; border-radius: 3px; background: linear-gradient(135deg, rgba(255,255,255,.6) 0%, rgba(255,255,255,.08) 42%, rgba(255,255,255,0) 60%); }
.mt-stueck.plexi.trans { background: color-mix(in srgb, var(--c) calc(var(--op) * 100%), transparent); backdrop-filter: blur(1.5px); }
.mt-stueck.plexi.neon { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 80%, #fff), 0 1px 1px rgba(60,40,20,.2), 0 6px 12px -2px color-mix(in srgb, var(--c) 45%, transparent); }
.mt-muster.ein-stueck { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .mt-muster { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .mt-tisch { grid-template-columns: 1fr; padding: 20px 16px 24px; gap: 18px; }
  .mt-ablage { height: 300px; justify-content: flex-start; }
  .mt-brett { width: 56%; height: 280px; }
  .mt-karte { right: 0; bottom: 14px; width: 50%; max-width: 230px; }
  .mt-karte-btn { border-radius: 12px; line-height: 1.25; text-align: left; font-size: 12.5px; padding: 8px 12px; }
  .mt-karte-btn .bi { display: none; }
  .mt-muster { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 10px; }
  .mt-stueck .mt-name { display: none; }
}
@media (max-width: 420px) { .mt-karte-name { font-size: 18px; } .mt-karte { padding: 10px 12px 12px; } }
