/* Wunschliste (Arbeitsplatz › Wunschliste, seit 12.11.2026). Moritz: „clean … wie so eine wunschliste … smooth feeling
   wenn man klickt wie eine moderne app“. Ruhige weiße Karten auf dem Grund der Zentrale, Produktbilder auf hellem
   Studiogrund (multiply macht weiße Ränder unsichtbar), ein grüner Haken fürs Geholte, weiche Übergänge.
   Nur Klassen mit wl- (gilt seitenweit, siehe feedback-generische-css-klassen-seitenweit). */

/* ---------- Kopf ---------- */

.wl-kopfknoepfe {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wl-rund {
  width: 44px;
  padding: 0;
  justify-content: center;
}

.wl-zurueck {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0 0 4px -6px;
  padding: 6px 10px 6px 4px;
  border-radius: 10px;
  color: var(--marke-tief);
  font-size: 15px;
  font-weight: 560;
  text-decoration: none;
  transition: background-color 160ms ease;
}

@media (hover: hover) {
  .wl-zurueck:hover {
    background: var(--marke-zart);
  }
}

.wl-bereichskopf {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 6px 0 16px;
}

.wl-bereichskopf .titelzeile {
  flex: 1;
  min-width: 0;
  margin: 0;
  align-items: center;
}

.wl-bereichskopf .titelzeile > div:first-child {
  min-width: 0;
}

.wl-kopfbild {
  position: relative;
  flex: none;
  width: 76px;
  height: 76px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--flaeche-2);
  box-shadow: var(--schatten-1);
  view-transition-class: wl-bild;
}

.wl-im-bereich .grosstitel {
  hyphens: auto;
  -webkit-hyphens: auto;
}

.wl-bereichskopf + .wl-satz {
  max-width: 760px;
  margin: -8px 0 20px;
  color: var(--tinte-3);
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- Kostenziel ---------- */

.wl-ziel {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
  padding: 18px 20px 16px;
  border-radius: var(--radius-l);
  background: var(--flaeche);
  box-shadow: var(--schatten-1);
}

.wl-ziel-kopf {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tinte-2);
}

.wl-ziel-stand {
  font-weight: 500;
  color: var(--tinte-3);
}

.wl-ziel-spalten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 28px;
}

.wl-ziel-spalte {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.wl-ziel-name {
  font-size: 13px;
  color: var(--tinte-3);
}

.wl-ziel-wert {
  font-size: 26px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.028em;
  font-variant-numeric: tabular-nums;
}

.wl-ziel-offen,
.wl-ziel-extra {
  font-size: 13px;
  color: var(--tinte-3);
}

.wl-balken {
  height: 6px;
  border-radius: 999px;
  background: var(--flaeche-3);
  overflow: hidden;
}

.wl-balken > span {
  display: block;
  height: 100%;
  width: calc(var(--wert, 0) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gruen), oklch(0.68 0.14 160));
  transition: width 800ms var(--ease-out);
}

/* ---------- Brett: Bereiche als Karten ---------- */

.wl-brett {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}

.wl-karte {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 0;
  border-radius: var(--radius-l);
  background: var(--flaeche);
  box-shadow: var(--schatten-1);
  color: inherit;
  text-align: left;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 240ms var(--ease-out),
    box-shadow 240ms var(--ease-out);
}

.wl-karte-bild {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--flaeche-2);
  view-transition-class: wl-bild;
}

.wl-karte-text {
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
}

.wl-karte-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wl-karte-kopf strong {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.wl-karte-kopf svg {
  flex: none;
  color: var(--tinte-3);
  transition: transform 240ms var(--ease-out);
}

.wl-karte-ziel {
  font-size: 15px;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
}

.wl-karte-stand {
  font-size: 13px;
  color: var(--tinte-3);
}

.wl-karte-neu {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  min-height: 250px;
  padding: 20px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--linie);
  color: var(--tinte-2);
  text-align: center;
}

.wl-karte-neu span,
.wl-sache-neu span {
  max-width: 220px;
  font-size: 13px;
  color: var(--tinte-3);
}

/* Mosaik: bis zu vier Bilder der Sachen, oder das Titelbild ganz. Liegt über dem ganzen Rahmen, damit das
   Seitenverhältnis der Karte gilt und nie die Bilder die Höhe bestimmen. */
.wl-mosaik {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 1px;
  background: var(--linie-2);
}

.wl-mosaik[data-n='2'] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wl-mosaik[data-n='3'] {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.wl-mosaik[data-n='3'] .wl-zelle:first-child {
  grid-row: span 2;
}

.wl-mosaik[data-n='4'] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

/* Zelle mit hellem Studiogrund, das Bild multipliziert darauf: weiße Produktränder verschwinden */
.wl-zelle {
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 9%;
  background: var(--flaeche-2);
}

.wl-zelle img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.wl-mosaik[data-titelbild] .wl-zelle {
  padding: 0;
}

.wl-mosaik[data-titelbild] img {
  object-fit: cover;
  mix-blend-mode: normal;
}

.wl-mosaik-leer {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--tinte-3);
  background: var(--flaeche-2);
}

/* ---------- Sachen ---------- */

.wl-sachen {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.wl-sache {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--radius-l);
  background: var(--flaeche);
  box-shadow: var(--schatten-1);
  overflow: hidden;
  transition:
    transform 240ms var(--ease-out),
    box-shadow 240ms var(--ease-out);
}

.wl-sache-bild {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 10%;
  border: 0;
  background: var(--flaeche-2);
  cursor: pointer;
  overflow: hidden;
}

.wl-sache-bild img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition:
    transform 500ms var(--ease-out),
    opacity 300ms ease,
    filter 300ms ease;
}

.wl-ohne-bild {
  display: grid;
  place-items: center;
  color: var(--tinte-3);
  opacity: 0.7;
}

.wl-sache-text {
  display: grid;
  align-content: start;
  gap: 4px;
  flex: 1;
  padding: 12px 14px 14px;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.wl-sache-name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.wl-sache-preis {
  font-size: 14px;
  color: var(--tinte-2);
  font-variant-numeric: tabular-nums;
}

.wl-marken {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.wl-marke {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--flaeche-3);
  color: var(--tinte-2);
  font-size: 12px;
  font-weight: 560;
}

.wl-marke-gut {
  background: var(--gruen-zart);
  color: var(--gruen);
}

.wl-sache-neu {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  min-height: 240px;
  padding: 20px;
  border: 0;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--linie);
  color: var(--tinte-2);
  text-align: center;
  cursor: pointer;
}

.wl-karte-neu,
.wl-sache-neu {
  transition:
    box-shadow 200ms ease,
    background-color 200ms ease,
    color 200ms ease,
    transform 240ms var(--ease-out);
}

/* Haken: weißer Kreis, beim Abhaken grün mit kleinem Sprung */
.wl-haken {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: oklch(1 0 0 / 0.92);
  box-shadow:
    0 1px 3px oklch(0 0 0 / 0.1),
    inset 0 0 0 1.5px var(--linie);
  color: transparent;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition:
    background-color 200ms ease,
    color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms var(--ease-out);
}

.wl-haken[aria-pressed='true'] {
  background: var(--gruen);
  color: #fff;
  box-shadow: 0 4px 12px oklch(0.52 0.13 155 / 0.35);
}

.wl-haken:active {
  transform: scale(0.88);
}

.wl-haken.wl-pop {
  animation: wl-pop 420ms var(--ease-out);
}

.wl-geholt .wl-sache-bild img {
  opacity: 0.5;
  filter: saturate(0.4);
}

.wl-geholt .wl-sache-name {
  color: var(--tinte-2);
}

.wl-abschnitt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 30px 2px 12px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.wl-abschnitt span {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--gruen-zart);
  color: var(--gruen);
  font-size: 13px;
  font-weight: 600;
}

.wl-platz {
  min-height: 300px;
  border-radius: var(--radius-l);
  background: linear-gradient(100deg, var(--flaeche-3) 30%, var(--flaeche-2) 50%, var(--flaeche-3) 70%);
  background-size: 200% 100%;
  animation: wl-schimmer 1.2s linear infinite;
}

/* Bewegung: nur mit Maus heben, beim Tippen leicht eindrücken */
@media (hover: hover) {
  .wl-karte:hover,
  .wl-sache:hover {
    transform: translateY(-2px);
    box-shadow: var(--schatten-2);
  }

  .wl-karte:hover .wl-karte-kopf svg {
    transform: translateX(3px);
  }

  .wl-sache:hover .wl-sache-bild img {
    transform: scale(1.04);
  }

  .wl-haken:hover {
    color: var(--tinte-3);
  }

  .wl-haken[aria-pressed='true']:hover {
    color: #fff;
  }

  .wl-karte-neu:hover,
  .wl-sache-neu:hover {
    background: var(--marke-zart);
    box-shadow: inset 0 0 0 1.5px var(--marke-tief);
    color: var(--marke-tief);
  }
}

.wl-karte:active,
.wl-sache-neu:active {
  transform: scale(0.985);
}

/* Erstes Erscheinen: Karten kommen nacheinander herein (nur beim Öffnen, nie beim Neuzeichnen) */
.wl-erstmals .wl-karte,
.wl-erstmals .wl-sache,
.wl-erstmals .wl-ziel {
  animation: wl-rein 520ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}

/* ---------- Blatt einer Sache ---------- */

.wl-detail-bild {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  margin: 0 0 16px;
  padding: 7%;
  border-radius: var(--radius-l);
  background: var(--flaeche);
  box-shadow: var(--schatten-1);
  overflow: hidden;
}

.wl-detail-bild img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wl-detail-ort {
  margin: 0 4px 2px;
  color: var(--tinte-3);
  font-size: 13px;
  font-weight: 560;
}

.blatt .wl-detail-name {
  margin: 0 4px 8px;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.wl-detail-preis {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 4px 12px;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.wl-detail-preis strong {
  font-weight: 640;
}

.wl-detail-notiz {
  margin: 0 4px 12px;
  color: var(--tinte-2);
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-line;
}

.wl-detail-wer {
  margin: 0 4px 12px;
  color: var(--tinte-3);
  font-size: 13px;
}

.wl-detail-knoepfe {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 16px 0 8px;
}

.wl-detail-unten {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.knopf.wl-loeschen {
  color: var(--rot);
}

/* ---------- Formulare ---------- */

.wl-preiszeile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.wl-bis {
  color: var(--tinte-3);
  font-size: 14px;
}

.wl-turnus {
  margin-top: 8px;
}

.wl-schalter {
  margin: 0 0 14px;
  border-radius: var(--radius-m);
  background: var(--flaeche);
  box-shadow: inset 0 0 0 1px var(--linie);
  overflow: hidden;
}

.wl-schalterzeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
}

.wl-schalterzeile + .wl-schalterzeile {
  box-shadow: 0 -1px 0 var(--linie-2);
}

.wl-schalterzeile > span {
  display: grid;
  gap: 1px;
}

.wl-schalterzeile strong {
  font-size: 15px;
  font-weight: 600;
}

.wl-schalterzeile > span > span {
  color: var(--tinte-3);
  font-size: 13px;
}

.wl-notiz {
  min-height: 84px;
  resize: vertical;
}

.wl-linkstatus[data-art='laedt'] {
  color: var(--marke-tief);
}

.wl-linkstatus[data-art='gut'] {
  color: var(--gruen);
}

.wl-linkstatus[data-art='hinweis'] {
  color: var(--gelb);
}

.wl-bildwahl {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
}

.wl-bildwahl-bild {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  padding: 8px;
  border-radius: var(--radius-m);
  background: var(--flaeche);
  box-shadow: inset 0 0 0 1px var(--linie);
  color: var(--tinte-3);
  overflow: hidden;
}

.wl-bildwahl-bild img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wl-bildwahl-bild.wl-laedt::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, oklch(1 0 0 / 0.75) 50%, transparent 80%);
  background-size: 200% 100%;
  animation: wl-schimmer 1.1s linear infinite;
}

.wl-bildwahl-text {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.wl-bildwahl-knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Seite Bereiche am Telefon: Wunschliste ganz oben */
.bn-wunschliste {
  margin: 4px 0 16px;
}

/* ---------- Telefon ---------- */

@media (max-width: 600px) {
  .wl-neu span {
    display: none;
  }

  .wl-neu {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .wl-im-bereich .grosstitel {
    font-size: 24px;
  }

  .wl-kopfbild {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .wl-bereichskopf {
    gap: 12px;
  }

  .wl-ziel {
    padding: 16px;
  }

  .wl-ziel-spalten {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .wl-ziel-spalte {
    grid-template-columns: auto 1fr;
    align-items: baseline;
    column-gap: 12px;
  }

  .wl-ziel-wert {
    font-size: 20px;
    text-align: right;
  }

  .wl-ziel-offen {
    grid-column: 1 / -1;
    text-align: right;
  }

  .wl-brett,
  .wl-sachen {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .wl-karte-bild {
    aspect-ratio: 1 / 1;
  }

  .wl-karte-text {
    gap: 6px;
    padding: 10px 12px 12px;
  }

  .wl-karte-kopf strong {
    font-size: 15px;
  }

  .wl-karte-kopf svg {
    display: none;
  }

  .wl-karte-ziel {
    font-size: 13px;
  }

  .wl-karte-stand {
    font-size: 12px;
  }

  .wl-karte-neu,
  .wl-sache-neu {
    min-height: 200px;
  }

  .wl-sache-text {
    padding: 10px 12px 12px;
  }

  .wl-sache-name {
    font-size: 14px;
  }

  .wl-sache-preis {
    font-size: 13px;
  }

  .wl-haken {
    top: 8px;
    right: 8px;
  }
}

/* ---------- Übergänge zwischen Übersicht und Bereich, beim Abhaken ---------- */

html.wl-uebergang::view-transition-group(*) {
  animation-duration: 420ms;
  animation-timing-function: var(--ease-out);
}

html.wl-uebergang::view-transition-old(root),
html.wl-uebergang::view-transition-new(root) {
  animation-duration: 260ms;
}

html.wl-uebergang::view-transition-old(*.wl-bild),
html.wl-uebergang::view-transition-new(*.wl-bild) {
  height: 100%;
  object-fit: cover;
}

@keyframes wl-rein {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
}

@keyframes wl-pop {
  0% {
    transform: scale(0.7);
  }
  55% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes wl-schimmer {
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wl-erstmals .wl-karte,
  .wl-erstmals .wl-sache,
  .wl-erstmals .wl-ziel,
  .wl-haken.wl-pop {
    animation: none;
  }

  .wl-balken > span {
    transition: none;
  }
}
