.teamfoto {
  width: 100%;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.grid-kacheln {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.rechtskacheln {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  height: 100%;
  gap: 1rem;
}

.rechtskacheln .kachel {
  flex: 1;
}

@media (max-width: 640px) {
  .grid-kacheln {
    grid-template-columns: 1fr;
  }

  .rechtskacheln {
    flex-direction: column;
  }

  .rechtskacheln .kachel {
    flex: initial;
  }
}

.trainer-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.trainer img {
  max-width: 160px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

@media (max-width: 640px) {
  .trainer img {
    max-width: 140px;
  }
}

.kachel.trainerkachel .trainer-zitat{
  position: relative;
  font-family: 'Handlee', 'Figtree', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(1.04rem, 0.98rem + 0.35vw, 1.12rem);
  line-height: 1.35;
  color: #CFE1FF;
  margin: .75rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid var(--quote-bar);
  border-radius: .5rem;
  hyphens: auto;
  -webkit-hyphens: auto; 
  word-break: normal;
  overflow-wrap: break-word;
}

.kachel.trainerkachel .trainer-zitat .qmark{
  font-family: 'Figtree', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 1em;
  line-height: 0;
  vertical-align: -.05em;
  margin-right: .35em;
  color: rgba(207, 225, 255, .38);
  opacity: .88;
}

.kachel.trainerkachel .trainer-zitat cite{
  display: block;
  margin-top: .35rem;
  font-style: normal;                    /* Handlee hat kein echtes Italic */
  font-size: .90em;
  text-align: right;
  opacity: .95;
}

.kachel.trainerkachel .trainer-zitat cite::before{
  content:"– ";
}

.trainertext {
  flex: 1;
  min-width: 160px;
}

.trainertext .rolle {
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.trainertext .name {
  font-size: 1rem;
  font-weight: bold;
  margin: 0 0 0.4rem;
}

.trainertext .kontaktinfo {
  font-size: 0.7rem;
  color: #ccc;
  margin: 0.5rem 0 0;
}

.kader {
  margin-top: 1rem;
}

.kader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.spieler {
  text-align: center;
}

.spieler img {
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .spieler img {
    max-width: 120px;
  }
}

.spieler p,
.trainer p {
  margin: 0;
  font-weight: 500;
}

.spieler small {
  color: #666;
  font-size: 0.85em;
}

.spielerbild-wrapper {
  position: relative;
  display: inline-block;
}

.spielerbild-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

.spielernummer {
  position: absolute;
  bottom: 0.2em;
  right: 0.2em;
  width: 25%;
  aspect-ratio: 1 / 1;
  background-color: #000;
  color: var(--R-color-foreground);
  font-weight: bold;
  font-size: 0.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
  pointer-events: none;
  z-index: 2;
}

.vereinslogoscm,
.vereinslogoscmsvg,
.vereinslogosvgscm {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.vereinslogoscm {
  bottom: -4px;
  left: 1px;
  width: 26%;
}

.vereinslogoscmsvg {
  bottom: -6px;
  left: -9px;
  width: 33%;
}

.vereinslogosvgscm {
  bottom: -7px;
  left: -9px;
  width: 38%;
}

.vereinslogoscm img,
.vereinslogoscmsvg img,
.vereinslogosvgscm img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
}

.spielehinweis {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #ccc;
}


/* === Kaderbilder: explizite Klick-Affordanz (an .pswp-link) === */
.kader-grid.pswp-gallery .spielerbild-wrapper > a.pswp-link{
  position: relative;
  display: block;
  border-radius: 50%;
  /* „Kachel-Feeling“ wie bei .titelkachel */
  transition: transform .18s ease, box-shadow .18s ease, outline-color .18s ease;
  outline: 2px solid transparent;
  outline-offset: -2px;
  cursor: zoom-in;                         /* sofort erkennbar */
}

/* Hover/Fokus: Lift + Glow + Mauerbach-Gelb-Ring */
.kader-grid.pswp-gallery .spielerbild-wrapper > a.pswp-link:is(:hover, :focus-visible){
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  outline-color: #ffe600;
}

/* 🔍-Badge (Affordanz) – eingeblendet bei Hover/Fokus */
.kader-grid.pswp-gallery .spielerbild-wrapper > a.pswp-link::after{
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
  /* Lupe als Inline-SVG in Gelb */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffe600'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0016 9.5 6.5 6.5 0 109.5 16a6.47 6.47 0 004.23-1.57l.27.28v.79l5 5L20.49 19l-5-5zM10 14a4 4 0 110-8 4 4 0 010 8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;

  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
}

/* Affordanz beim Hover/Fokus sanft einblenden */
.kader-grid.pswp-gallery .spielerbild-wrapper > a.pswp-link:is(:hover, :focus-visible)::after{
  opacity: 1;
  transform: none;
}

/* Touch-Geräte: Badge dezent immer sichtbar, ohne Hover */
@media (hover: none) and (pointer: coarse){
  .kader-grid.pswp-gallery .spielerbild-wrapper > a.pswp-link::after{
    opacity: .85;
    transform: none;
  }
}

/* Tastaturfokus klar sichtbar (auch wenn kein Hover) – konsistent zum Kachelmuster */
.kader-grid.pswp-gallery .spielerbild-wrapper > a.pswp-link:focus-visible{
  outline: 3px solid #ffe600;
  outline-offset: 2px;
}

/* Trainerbilder klickbar „anfühlen“ lassen (optional) */
.trainerteam.pswp-gallery .trainer > a.pswp-link{
  position: relative;
  display: inline-block;
  border-radius: 50%;
  transition: transform .18s ease, box-shadow .18s ease, outline-color .18s ease;
  outline: 2px solid transparent;
  outline-offset: -2px;
  cursor: zoom-in;
}
.trainerteam.pswp-gallery .trainer > a.pswp-link:is(:hover, :focus-visible){
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  outline-color: #ffe600;
}