/* De merkenwand. A quiet band of twelve slots; one slot at a time swaps its brand with a soft
   blur-fade, so all brands pass by without the band ever looking busy. Logos sit in one muted ink. */
.wand-sec { padding-block: clamp(3rem, 6vw, 5rem); }
.wand-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 1.5rem; }
.wand-head .h2 { margin: 0; }
.wand-head > p { margin: 0; max-width: 34rem; color: var(--muted); }

.wand { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.wand__slot { position: relative; display: grid; place-items: center; height: 6.25rem; background: var(--paper); overflow: hidden; }
.wand__logo { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; opacity: 0.5; }
.wand__logo img { max-width: 64%; max-height: 2.5rem; object-fit: contain; }
.wand__logo img.is-mono { filter: brightness(0); }
.wand__logo img.is-badge { filter: grayscale(1) contrast(3); }
.wand__word { font: 700 1.375rem/1 var(--f-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }
.wand:hover .wand__slot:hover .wand__logo { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .wand__logo { transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), filter 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
  .wand__logo.is-in { opacity: 0; transform: translateY(10px) scale(0.97); filter: blur(8px); }
  .wand__logo.is-out { opacity: 0; transform: translateY(-10px) scale(0.97); filter: blur(8px); transition-duration: 0.7s; }
}

.wand-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; margin-top: 1rem; font-size: 0.9375rem; color: var(--muted); }
.wand-foot a { color: inherit; text-underline-offset: 3px; }
.wand-foot a:hover { color: var(--text); }
.wand-alle summary { cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: 3px; }
.wand-alle summary::-webkit-details-marker { display: none; }
.wand-alle summary::after { content: " +"; }
.wand-alle[open] summary::after { content: " −"; }
.wand-alle p { margin: 0.75rem 0 0; max-width: 46rem; line-height: 1.7; color: var(--muted); }

@media (max-width: 48rem) {
  .wand { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wand__slot:nth-child(n + 7) { display: none; }
  .wand__slot { height: 5.25rem; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wand__logo img { filter: invert(1); }
  :root:not([data-theme="light"]) .wand__logo img.is-mono { filter: brightness(0) invert(1); }
  :root:not([data-theme="light"]) .wand__logo img.is-badge { filter: grayscale(1) contrast(3) invert(1); }
}
:root[data-theme="dark"] .wand__logo img { filter: invert(1); }
:root[data-theme="dark"] .wand__logo img.is-mono { filter: brightness(0) invert(1); }
:root[data-theme="dark"] .wand__logo img.is-badge { filter: grayscale(1) contrast(3) invert(1); }
