/* =====================================================================================================
   Team-Karten (2026-11-14) — Sammelalbum im Kundenbereich (views/kunden_teamkarten.php), Karte aus
   partials/_teamkarte.php, Hinweis nach der Glücksrad-Drehung (.tk-neu). Stil des Kundenbereichs:
   Serifenschrift, klare Kanten, Rot als Akzent.
   ===================================================================================================== */

.tk { max-width: 1240px; margin: 0 auto; padding: clamp(6rem, 10vw, 8rem) 16px 4rem; color: #f2f2f2; font-family: var(--lx-sans, system-ui, sans-serif); }
.tk-kopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2rem 2rem; margin-bottom: 1.6rem; }
.tk-kicker { margin: 0; color: var(--lx-red-2, #E0233F); font-size: .68rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.tk-titel { margin: .4rem 0 .5rem; font: 400 clamp(2.4rem, 6vw, 4rem)/1 var(--lx-serif, Georgia, serif); }
.tk-unter { margin: 0; max-width: 42rem; color: #a5a5a5; font-size: .95rem; line-height: 1.6; }
.tk-stand { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; align-items: center; min-width: min(100%, 18rem); }
.tk-stand__zahl { grid-row: span 2; display: flex; align-items: baseline; gap: .3rem; }
.tk-stand__zahl b { font: 400 2.6rem/1 var(--lx-serif, Georgia, serif); }
.tk-stand__zahl small { color: #8a8a8a; }
.tk-stand__balken { height: 3px; background: rgba(255, 255, 255, .1); }
.tk-stand__balken i { display: block; width: var(--w); height: 100%; background: linear-gradient(90deg, #E0233F, #F5C451); }
.tk-stand__text { font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #8a8a8a; }
.tk-hinweis { margin: 0 0 1.4rem; padding: 1rem 1.2rem; border: 1px solid rgba(224, 35, 63, .4); background: rgba(224, 35, 63, .08); }
.tk-hinweis a { color: #fff; font-weight: 700; }
.tk-filter { display: inline-flex; gap: 0; margin-bottom: 1.4rem; border: 1px solid rgba(255, 255, 255, .14); }
.tk-filter button { padding: .65rem 1.1rem; border: 0; background: transparent; color: #a5a5a5; font: 600 .7rem/1 var(--lx-sans, system-ui); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.tk-filter button.is-aktiv { color: #0b0b0d; background: #fff; }
.tk-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.tk-raster li[hidden] { display: none; }

/* ---------- Karte ---------- */
.tk-karte { position: relative; isolation: isolate; display: grid; grid-template-rows: auto auto auto auto 1fr; justify-items: center; gap: .35rem; min-height: 21rem; padding: .8rem .85rem 1rem; overflow: hidden; text-align: center;
  border: 1px solid color-mix(in srgb, var(--r) 55%, transparent);
  background: radial-gradient(110% 60% at 50% 0%, color-mix(in srgb, var(--r) 26%, transparent), transparent 70%), linear-gradient(180deg, #17171b, #0b0b0d);
  box-shadow: 0 20px 40px -26px #000, inset 0 1px 0 rgba(255, 255, 255, .06); }
.tk-karte::before { content: ""; position: absolute; inset: 6px; z-index: -1; border: 1px solid color-mix(in srgb, var(--r) 22%, transparent); pointer-events: none; }
.tk-karte__kopf { display: flex; justify-content: space-between; width: 100%; }
.tk-karte__nr { font-size: .62rem; font-weight: 700; letter-spacing: .1em; color: color-mix(in srgb, var(--r) 80%, #fff); font-variant-numeric: tabular-nums; }
.tk-karte__rar { font-size: .58rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--r); }
.tk-karte__bild { display: grid; place-items: center; width: 6.2rem; aspect-ratio: 1; margin-top: .3rem; overflow: hidden; border-radius: 50%; background: linear-gradient(145deg, #2a2b31, #141418);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--r) 70%, transparent), 0 0 30px -6px var(--r); }
.tk-karte__bild img { width: 100%; height: 100%; object-fit: cover; }
.tk-karte__kuerzel { font: 400 2rem/1 var(--lx-serif, Georgia, serif); color: #fff; }
.tk-karte__name { margin: .4rem 0 0; font: 400 1.3rem/1.1 var(--lx-serif, Georgia, serif); color: #fff; overflow-wrap: anywhere; }
.tk-karte__rolle { margin: 0; font-size: .64rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #9b9b9b; }
.tk-karte__werte { align-self: end; display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; width: 100%; margin: .4rem 0 0; }
.tk-karte__werte div { padding: .4rem .3rem; background: rgba(255, 255, 255, .04); }
.tk-karte__werte dt { font-size: .5rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #8a8a8a; }
.tk-karte__werte dd { margin: .15rem 0 0; font-size: .74rem; font-weight: 700; color: #fff; }
.tk-karte__neu { position: absolute; top: .7rem; left: 50%; translate: -50% 0; padding: .15rem .5rem; font-size: .55rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #fff; background: #E0233F; }
.tk-karte__anzahl { position: absolute; right: .55rem; bottom: .5rem; font-size: .68rem; font-weight: 800; color: rgba(255, 255, 255, .55); }

/* Holografisch (Legendär, Mythisch): Regenbogen-Glanz, folgt mit Maus dem Zeiger */
.tk-karte__glanz { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; }
.tk-karte.is-holo .tk-karte__glanz { opacity: .55;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 95, 174, .22) 35%, rgba(122, 243, 255, .2) 45%, rgba(255, 215, 94, .22) 55%, transparent 70%) var(--mx, 30%) var(--my, 30%) / 260% 260%; }
.tk-karte--mythisch { border-color: rgba(255, 111, 181, .8); box-shadow: 0 20px 40px -24px #000, 0 0 40px -14px rgba(255, 111, 181, .7); }
@media (hover: hover) and (pointer: fine) {
  .tk-karte.is-holo .tk-karte__glanz { animation: tkHolo 6s ease-in-out infinite; }
  .tk-karte.is-holo:hover .tk-karte__glanz { animation: none; opacity: .8; }
}
@keyframes tkHolo { 0%, 100% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } }

/* Fehlend: Silhouette */
.tk-karte--leer { border-style: dashed; border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .02); box-shadow: none; }
.tk-karte--leer::before { display: none; }
.tk-karte--leer .tk-karte__nr { justify-self: start; color: rgba(255, 255, 255, .3); }
.tk-karte__silhouette { width: 6.2rem; aspect-ratio: 1; margin-top: 1.4rem; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .1) 0 22%, transparent 23%), radial-gradient(ellipse 60% 40% at 50% 100%, rgba(255, 255, 255, .1) 0 98%, transparent 100%), rgba(255, 255, 255, .03); }
.tk-karte__fehlt { align-self: end; font-size: .62rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: color-mix(in srgb, var(--r) 60%, #555); }

/* ---------- Hinweis nach der Glücksrad-Drehung ---------- */
.tk-neu { position: fixed; left: 16px; bottom: 16px; z-index: 9000; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; align-items: center; width: min(22rem, calc(100vw - 32px)); padding: .8rem 1rem .8rem .8rem;
  color: #fff; text-decoration: none; border: 1px solid color-mix(in srgb, var(--r) 70%, transparent); background: linear-gradient(180deg, #17171b, #0b0b0d); box-shadow: 0 20px 50px -20px #000, 0 0 30px -12px var(--r);
  opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .5s cubic-bezier(.2, 1.3, .4, 1); }
.tk-neu.is-an { opacity: 1; transform: none; }
.tk-neu__bild { display: grid; place-items: center; width: 3.2rem; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: #222; box-shadow: 0 0 0 2px var(--r); font: 400 1.1rem/1 var(--lx-serif, Georgia, serif); }
.tk-neu__bild img { width: 100%; height: 100%; object-fit: cover; }
.tk-neu small { display: block; font-size: .6rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--r); }
.tk-neu b { font: 400 1.15rem/1.15 var(--lx-serif, Georgia, serif); }
.tk-neu span.tk-neu__mehr { display: block; margin-top: .15rem; font-size: .72rem; color: #a5a5a5; }

@media (max-width: 560px) {
  .tk-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .tk-karte { min-height: 15rem; padding: .6rem .55rem 1.9rem; }
  .tk-karte--leer { padding-bottom: .7rem; }
  .tk-karte__kopf { flex-direction: column; align-items: center; gap: .15rem; }
  .tk-karte__neu { top: auto; bottom: .5rem; left: .5rem; translate: none; }
  .tk-karte__werte div:nth-child(n+3) { display: none; }
  .tk-karte__werte { grid-template-columns: 1fr; }
  .tk-karte--leer .tk-karte__nr { justify-self: center; }
  .tk-karte__bild, .tk-karte__silhouette { width: 4.4rem; }
  .tk-karte__name { font-size: 1.05rem; }
  .tk-karte__werte dt { font-size: .44rem; letter-spacing: .08em; }
  .tk-karte__werte dd { font-size: .66rem; }
}
@media (prefers-reduced-motion: reduce) { .tk-karte.is-holo .tk-karte__glanz { animation: none; } .tk-neu { transition: opacity .2s; transform: none; } }

/* Der Kundenbereich setzt Ecken global auf 0 (!important) — Profilbilder sollen hier rund bleiben */
body.ccm-public-body .ccm-page--public .tk .tk-karte__bild, body.ccm-public-body .ccm-page--public .tk .tk-karte__silhouette, body.ccm-public-body .tk-neu .tk-neu__bild { border-radius: 50% !important; }
