/* =========================================================================
   Themenwolke auf der Blog-Übersicht: drehende Wortkugel, die die Karten filtert
   ========================================================================= */
.tw { overflow-x: clip; max-width: var(--max); margin-inline: auto; padding: 0 clamp(1.2rem, 5vw, 3rem); position: relative; }
.tw-head { display: grid; gap: .5rem; max-width: 52ch; }
.tw-head h2 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); margin: 0; }
.tw-head h2 em {
  font-style: normal; color: transparent; -webkit-text-fill-color: transparent;
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--gold), var(--coral)) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; animation: tw-shine 9s linear infinite;
}
@keyframes tw-shine { to { background-position: 250% 0; } }
.tw-head p { margin: 0; color: var(--muted); }

.tw-legend { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 0; }
.tw-chip {
  font: 500 .8rem var(--text); color: var(--ink); background: rgba(255,255,255,.04);
  border: 1px solid var(--line); border-radius: 999px; padding: .42rem .95rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: .5rem; transition: border-color .3s, background .3s;
}
.tw-chip i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.tw-chip:hover, .tw-chip[aria-pressed="true"] { border-color: var(--c); background: rgba(255,255,255,.09); }

.tw-stage {
  position: relative; width: min(100%, 700px); aspect-ratio: 1; margin: 0 auto;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.tw-stage.is-drag { cursor: grabbing; }
.tw-glow {
  position: absolute; inset: 4% -10%; pointer-events: none; z-index: 0;
  background: radial-gradient(38% 38% at 30% 38%, rgba(93,228,208,.14), transparent 70%),
              radial-gradient(34% 34% at 72% 42%, rgba(255,121,95,.11), transparent 70%),
              radial-gradient(40% 36% at 52% 78%, rgba(187,239,95,.09), transparent 70%);
  animation: tw-aurora 20s ease-in-out infinite alternate;
}
@keyframes tw-aurora { to { transform: translate3d(3%, -2%, 0) rotate(5deg) scale(1.06); } }
.tw-orb {
  position: absolute; inset: 13%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.07), rgba(93,228,208,.05) 40%, transparent 70%);
  box-shadow: inset 0 0 80px rgba(93,228,208,.08), 0 0 120px rgba(93,228,208,.06);
  animation: tw-breathe 7s ease-in-out infinite;
}
@keyframes tw-breathe { 50% { transform: scale(1.04); opacity: .8; } }
.tw-ring { position: absolute; inset: 6%; pointer-events: none; border-radius: 50%; border: 1px dashed rgba(247,243,234,.1); animation: tw-spin 60s linear infinite; }
.tw-ring.r2 { inset: 0; border-color: rgba(247,243,234,.06); animation-duration: 90s; animation-direction: reverse; }
.tw-ring::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.tw-ring.r2::after { background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
@keyframes tw-spin { to { transform: rotate(360deg); } }

.tw-w {
  position: absolute; left: 50%; top: 50%; margin: 0; padding: .1em .25em; background: none; border: 0;
  color: var(--c); font-family: var(--display); font-weight: 600; letter-spacing: -.01em; white-space: nowrap; cursor: pointer;
  transition: opacity .45s, filter .45s, text-shadow .3s, color .3s; will-change: transform; z-index: 1;
}
.tw-w:hover, .tw-w:focus-visible { color: #fff; text-shadow: 0 0 18px var(--c), 0 0 40px var(--c); outline: none; z-index: 999 !important; }
.tw-w:focus-visible { text-decoration: underline; text-underline-offset: .2em; }
.tw-w.is-sel { color: #fff; text-shadow: 0 0 22px var(--c), 0 0 50px var(--c); }
.tw-w sup { font: 500 .5em var(--text); opacity: .7; margin-left: .15em; }
.tw-stage.has-sel .tw-w:not(.is-sel):not(.is-rel) { opacity: .12 !important; filter: blur(1.5px); }
.tw-hint { text-align: center; color: var(--muted); font-size: .8rem; margin: .4rem 0 0; transition: opacity .4s; }

/* Filterleiste über den Karten */
.tw-status {
  display: none; align-items: center; flex-wrap: wrap; gap: .8rem 1.2rem; margin: 0 0 1.4rem;
  padding: .9rem 1.2rem; border: 1px solid var(--c, var(--line-strong)); border-radius: var(--radius-sm);
  background: rgba(20,22,28,.8); animation: tw-pop .5s var(--ease);
}
.tw-status.is-on { display: flex; }
.tw-status strong { font-family: var(--display); font-size: 1.15rem; color: var(--c); }
.tw-status span { color: var(--muted); font-size: .9rem; }
.tw-status button { margin-left: auto; background: none; border: 1px solid var(--line-strong); color: var(--ink); border-radius: 999px; padding: .35rem .9rem; font: 500 .8rem var(--text); cursor: pointer; transition: border-color .3s; }
.tw-status button:hover { border-color: var(--cyan); }
@keyframes tw-pop { from { opacity: 0; transform: translateY(-8px); } }

.blog-screenshot-card.tw-hide { display: none !important; }
.blog-screenshot-card.tw-in { animation: tw-card .7s var(--ease) both; animation-delay: calc(var(--tw-i, 0) * 70ms); }
@keyframes tw-card { from { opacity: 0; transform: translateY(26px) scale(.97); } }

@media (prefers-reduced-motion: reduce) {
  .tw-glow, .tw-orb, .tw-ring, .tw-head h2 em { animation: none; }
  .blog-screenshot-card.tw-in, .tw-status { animation: none; }
}
