/* kickzwall – Sneaker-Schrank */
.schrank-kopf { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.schrank-kopf h1 { margin: 0 0 4px; }
.schrank-steuerung { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.umschalter { display: inline-flex; border: 2px solid var(--tinte); border-radius: var(--radius); overflow: hidden; }
.umschalter button { font: inherit; font-size: 14px; padding: 9px 12px; border: 0; background: #fff; color: var(--tinte); cursor: pointer; }
.umschalter button + button { border-left: 2px solid var(--tinte); }
.umschalter button[aria-pressed="true"] { background: var(--tinte); color: #fff; }
.schrankwand {
  --fach: 62px; --breite: 260px; --rahmen: 10px;
  display: flex; flex-wrap: nowrap; gap: 4px; align-items: flex-end; justify-content: flex-start;
  overflow-x: auto; padding: 28px 16px 16px; background: linear-gradient(#e9e7e3, #dcd9d3); border-radius: 6px;
}
.schrank { flex: 0 0 auto; position: relative; width: var(--breite); perspective: 1800px; }
.korpus {
  position: relative; background: #fbfbfa; border: var(--rahmen) solid #f4f3f0; border-bottom-width: 26px;
  box-shadow: inset 0 0 0 1px #e2e0db, 0 6px 14px rgba(0,0,0,.12);
}
.fach {
  height: var(--fach); display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 4px; padding: 0 6px 3px;
  border-bottom: 5px solid #ffffff; box-shadow: 0 1px 0 #dedcd6; background: linear-gradient(#f1f0ed, #fafaf9 60%);
}
.fach.trenner { border-bottom-width: 12px; }
.platz { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: pointer; }
.platz img { width: 100%; height: auto; max-height: calc(var(--fach) - 4px); object-fit: contain; filter: drop-shadow(0 3px 2px rgba(0,0,0,.18)); transition: transform .2s ease; }
.platz:hover img { transform: translateY(-3px) scale(1.06); }
.schrankwand .platz.frei { cursor: default; border: 0 !important; outline: 0 !important; background: none !important; box-shadow: none !important; }
.schrankwand .platz.frei::before, .schrankwand .platz.frei::after { content: none !important; }
.tuer {
  position: absolute; z-index: 3; width: calc(50% - var(--rahmen)); box-sizing: border-box;
  border: 9px solid #ffffff; outline: 1px solid #e0ded8; cursor: pointer;
  background: linear-gradient(115deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,.08) 38%, rgba(255,255,255,.22) 52%, rgba(255,255,255,.06) 70%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  transition: transform .7s cubic-bezier(.2,.7,.2,1), box-shadow .7s ease;
  transform-style: preserve-3d; backface-visibility: hidden;
}
.tuer.l { left: var(--rahmen); transform-origin: left center; }
.tuer.r { right: var(--rahmen); transform-origin: right center; }
.tuer::after {
  content: ""; position: absolute; top: calc(50% - 4.5px); width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #d8d6d0); box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.tuer.l::after { right: -6px; }
.tuer.r::after { left: -6px; }
.schrank.offen .tuer.l, .schrankwand[data-modus="hover"] .schrank:hover .tuer.l { transform: rotateY(-104deg); box-shadow: 8px 0 18px rgba(0,0,0,.12); }
.schrank.offen .tuer.r, .schrankwand[data-modus="hover"] .schrank:hover .tuer.r { transform: rotateY(104deg); box-shadow: -8px 0 18px rgba(0,0,0,.12); }
.schrank.offen .tuer, .schrankwand[data-modus="hover"] .schrank:hover .tuer { pointer-events: none; }
.schrank-info {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 20; max-width: min(520px, 92vw);
  display: flex; gap: 14px; align-items: center; background: var(--karton); border: 2px solid var(--tinte); border-radius: var(--radius);
  padding: 10px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.schrank-info[hidden] { display: none; }
.schrank-info img { width: 120px; height: auto; }
.schrank-info h3 { margin: 0 0 2px; font-size: 15px; }
.schrank-info p { margin: 0; font-size: 13px; color: var(--grau); }
.schrank-info .sku { font-family: var(--mono); }
.schrank-info button { margin-left: auto; align-self: flex-start; border: 0; background: none; font-size: 20px; cursor: pointer; line-height: 1; }
@media (max-width: 640px) { .schrankwand { --fach: 48px; --breite: 200px; } }

/* Profilseite: Darstellung wählen & Panoramabild */
.ansicht-leiste { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 0 0 16px; }
.ansicht-leiste .profil-treffer { margin: 0; }
.ansicht-wahl { display: inline-flex; border: 2px solid var(--tinte); border-radius: var(--radius); overflow: hidden; }
.ansicht-wahl button { font: inherit; font-size: 14px; padding: 8px 14px; border: 0; background: #fff; color: var(--tinte); cursor: pointer; }
.ansicht-wahl button + button { border-left: 2px solid var(--tinte); }
.ansicht-wahl button[aria-pressed="true"] { background: var(--tinte); color: #fff; }
.schrank-aktionen { display: flex; justify-content: flex-end; margin: 0 0 12px; }
#schrankBereich[hidden] { display: none; }

/* Fächer fest: Bildhöhe darf die Fachhöhe nie aufblähen */
.fach { box-sizing: border-box; grid-template-rows: minmax(0, 1fr); overflow: visible; }
.platz { height: auto; min-height: 0; align-self: stretch; }
.platz img { width: auto; max-width: 100%; height: auto; max-height: calc(var(--fach) - 12px); }

/* Schränke ohne seitlichen/oberen Korpusrand, Sockel bleibt; halber Schrank für bis zu 14 Paare */
.schrankwand { --rahmen: 0px; }
.korpus { border-width: 0 0 26px 0; }
.schrank.halb { width: calc(var(--breite) / 2); }
.schrank.halb .fach { grid-template-columns: 1fr; }
.tuer.einzeln { width: 100%; right: 0; }
.tuer.einzeln::after { left: 6px; }
/* Größere Schuhe wie im echten Schrank: höhere Fächer, breitere Schränke, Türen 2 / 6 / 6 Fächer */
.schrankwand { --fach: 78px; --breite: 300px; }
.fach { padding: 0 4px 3px; }
.platz img { max-height: calc(var(--fach) - 8px); }
@media (max-width: 640px) { .schrankwand { --fach: 60px; --breite: 230px; } }
/* Ansicht-Knöpfe & Panoramabild-Knopf in einer Reihe */
.ansicht-knoepfe { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.ansicht-bild { font: inherit; font-size: 14px; padding: 8px 14px; border: 2px solid var(--tinte); border-radius: var(--radius); background: var(--tinte); color: #fff; cursor: pointer; }
.ansicht-bild[hidden] { display: none; }
.ansicht-bild:disabled { opacity: .6; cursor: wait; }
/* Sneaker Wall: offene Regalwand, max. 14 Paare übereinander */
.schrankwand.ist-wand { display: block; padding: 24px 16px 16px; }
.sneakerwall { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; width: max-content; }
.sneakerwall .platz { height: var(--fach); box-sizing: border-box; padding: 0 5px 2px; border-bottom: 5px solid #fff; box-shadow: 0 1px 0 rgba(0,0,0,.12); }
.sneakerwall .platz img { max-height: calc(var(--fach) - 8px); }
@media (max-width: 640px) { .sneakerwall { grid-auto-columns: 120px; } }
/* Fächer dunkler / schattiger */
.fach { background: linear-gradient(#cfccc5, #e2dfd9 55%, #ebe9e4); box-shadow: inset 0 10px 14px -8px rgba(0,0,0,.28), 0 1px 0 #c9c6bf; }
.korpus { background: #e6e3dd; }
/* Halber Schrank: Griff wie beim breiten Schrank an der Türkante */
.tuer.einzeln::after { left: -6px; }
/* Schrankfarbe Anthrazit */
.schrankwand[data-farbe="anthrazit"] .korpus { background: #3a3c40; border-color: #2e3033; box-shadow: inset 0 0 0 1px #2a2c2f, 0 6px 14px rgba(0,0,0,.25); }
.schrankwand[data-farbe="anthrazit"] .fach { background: linear-gradient(#25272a, #33353a 55%, #3b3e42); border-bottom-color: #4a4d52; box-shadow: inset 0 10px 14px -8px rgba(0,0,0,.5), 0 1px 0 #1e2023; }
.schrankwand[data-farbe="anthrazit"] .tuer { border-color: #3d4044; outline-color: #26282b; }
/* Anthrazit: dunkle Türgriffe */
.schrankwand[data-farbe="anthrazit"] .tuer::after { background: radial-gradient(circle at 35% 35%, #5a5d62, #1f2124); box-shadow: 0 1px 2px rgba(0,0,0,.5); }
.schrank-qualitaet { font: inherit; font-size: 14px; padding: 8px 10px; border: 2px solid #111; background: #fff; margin-left: 8px; vertical-align: middle; }
.schrank-q-hinweis { display: block; margin-top: 6px; color: #6b6b66; font-size: 12px; }
.schrank-q-hinweis:empty { display: none; }

/* Schränke ohne Lücke direkt nebeneinander */
.schrankwand:not(.ist-wand) { gap: 0; }

/* Sneaker Wall dunkel (anthrazit) */
.schrankwand.ist-wand[data-wandfarbe="dunkel"] { background: linear-gradient(#2b2d31, #1f2023); border-radius: var(--radius, 8px); }
.schrankwand[data-wandfarbe="dunkel"] .sneakerwall .platz { border-bottom-color: #4a4d52; box-shadow: 0 1px 0 rgba(0,0,0,.5); }
.schrankwand[data-wandfarbe="dunkel"] .sneakerwall .platz img { filter: drop-shadow(0 3px 2px rgba(0,0,0,.45)); }
