@view-transition { navigation: auto; }

.kopf { view-transition-name: kopf; }
main.unterseite .app-symbol .symbol-bild { view-transition-name: app-symbol; }

::view-transition-old(root) { animation: .22s ease-out both seite-aus; }
::view-transition-new(root) { animation: .34s cubic-bezier(.22, .61, .36, 1) both seite-ein; }
::view-transition-group(app-symbol) { animation-duration: .5s; animation-timing-function: cubic-bezier(.22, .61, .36, 1); }
::view-transition-group(*) { animation-duration: .4s; }

@keyframes seite-aus { to { opacity: 0; } }
@keyframes seite-ein { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

.produktwahl { position: relative; }
.produktwahl > summary {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  list-style: none; cursor: pointer;
  font-size: clamp(.8rem, .95vw, .9rem); font-weight: 600; color: var(--creme);
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px;
  transition: border-color .25s, background .25s;
}
.produktwahl > summary::-webkit-details-marker { display: none; }
.produktwahl > summary::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .25s;
}
.produktwahl[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.produktwahl > summary:hover,
.produktwahl[open] > summary {
  border-color: var(--kopf-akzent-hell, var(--rot-hell));
  background: rgba(255, 255, 255, .05);
}
.produktwahl > summary:focus-visible { outline: 2px solid var(--creme); outline-offset: 3px; }
.produktwahl ul {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 100;
  display: grid; gap: 2px;
  min-width: 230px; max-height: min(70vh, 560px); overflow-y: auto;
  margin: 0; padding: 8px; list-style: none;
  background: rgba(10, 10, 14, .96);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9);
  backdrop-filter: blur(14px);
}
.kopf-nav .produktwahl a,
.kopf-nav .produktwahl .kopf-hier {
  display: flex !important; align-items: center;
  min-height: 42px; padding: 0 12px; border-radius: 10px;
  font-size: .9rem; white-space: nowrap;
}
.kopf-nav .produktwahl a::after,
.kopf-nav .produktwahl .kopf-hier::after { display: none; }
.kopf-nav .produktwahl a:hover,
.kopf-nav .produktwahl a:focus-visible { background: rgba(255, 255, 255, .07); }
.kopf-nav .produktwahl .kopf-hier {
  color: var(--creme);
  background: color-mix(in srgb, var(--kopf-akzent, var(--rot)) 22%, transparent);
}
@media (max-width: 400px) {
  .produktwahl > summary { padding: 0 10px; font-size: .74rem; }
  .produktwahl ul { right: -6px; min-width: 210px; }
}


.produkt-stufe {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  font: 700 .68rem/1.2 var(--schrift-kopf); letter-spacing: .1em; text-transform: uppercase;
  color: var(--akzent-hell);
  border: 1px solid color-mix(in srgb, var(--akzent-hell) 42%, transparent);
}
.produkt-stufe::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
}
[data-stufe="live"] .produkt-stufe,
.produkt-stufe[data-stufe="live"] {
  background: color-mix(in srgb, var(--akzent) 22%, transparent);
  box-shadow: 0 0 16px -8px var(--akzent-hell);
}
[data-stufe="bau"] .produkt-stufe,
.produkt-stufe[data-stufe="bau"] { border-style: dashed; }
[data-stufe="bau"] .produkt-stufe::before,
.produkt-stufe[data-stufe="bau"]::before { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }

.produkt-wege { display: flex; flex-wrap: wrap; gap: 8px; }
.produkt-wege:empty { display: none; }
.weg {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 6px 11px;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, .09);
  font-size: .8rem; line-height: 1.2; color: var(--grau-hell); text-decoration: none;
}
.weg svg { width: 16px; height: 16px; flex: none; }
.weg em { font-style: normal; color: var(--grau); }
a.weg {
  color: var(--creme);
  border-color: color-mix(in srgb, var(--akzent-hell) 45%, transparent);
  background: color-mix(in srgb, var(--akzent) 10%, transparent);
  transition: background .25s var(--weich), border-color .25s var(--weich);
}
a.weg:hover { border-color: var(--akzent-hell); background: color-mix(in srgb, var(--akzent) 24%, transparent); }
a.weg:focus-visible { outline: 2px solid var(--akzent-hell); outline-offset: 2px; }
.weg-wartet { border-style: dashed; }

