/* ============================================================
   Seite: team-spieler.html
   ============================================================ */

/* === Spieler-Hero === */
.player-hero {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--ink); color: white;
  min-height: 760px;
  overflow: hidden;
}
.player-hero .photo-side {
  position: relative;
  background-size: cover; background-position: center 12%;
  background-color: var(--graphite);
}
.player-hero .photo-side::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,46,63,0.0) 60%, rgba(11,46,63,0.5) 100%);
}
.player-hero .number-bg {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-weight: 900; font-style: normal;
  font-size: 720px; line-height: 0.78; color: var(--red);
  opacity: 0.55; letter-spacing: -0.04em;
  z-index: 1; pointer-events: none;
}
.player-hero .info-side {
  position: relative; padding: 80px 56px 128px;   /* unten Platz fuer die Hero-Welle */
  display: flex; flex-direction: column; justify-content: space-between;
  z-index: 2;
}
.player-hero .info-side .halftone {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1.2px, transparent 1.6px);
  background-size: 20px 20px;
  pointer-events: none;
}
.player-hero .breadcrumb {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
  position: relative;
}
.player-hero .breadcrumb a {
  color: rgba(255,255,255,0.6); text-decoration: none;
}
.player-hero .breadcrumb a:hover { color: white; }
.player-hero .breadcrumb .sep { margin: 0 12px; opacity: 0.5; }
.player-hero .breadcrumb .here { color: white; font-weight: 700; }

.player-hero .name-block { position: relative; margin-top: 40px; }
.player-hero .name-block .eyebrow {
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--red); font-weight: 700;
  margin-bottom: 18px;
}
.player-hero .name-block .first {
  font-family: var(--display); font-weight: 700; font-style: normal;
  font-size: 56px; line-height: 0.92; text-transform: uppercase;
  letter-spacing: 0.005em; color: rgba(255,255,255,0.6);
}
.player-hero .name-block .last {
  font-family: var(--display); font-weight: 900; font-style: normal;
  font-size: 168px; line-height: 0.86; text-transform: uppercase;
  letter-spacing: -0.01em; color: white; margin-top: -10px;
}
.player-hero .name-block .pos-line {
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.32em;
  text-transform: uppercase; color: rgba(255,255,255,0.75);
  margin-top: 22px;
}
.player-hero .name-block .pos-line .r { color: var(--red); font-weight: 700; }

.player-hero .quick-meta {
  position: relative; margin-top: 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.player-hero .quick-meta .cell {
  padding: 22px 18px 0; border-right: 1px solid rgba(255,255,255,0.18);
}
.player-hero .quick-meta .cell:last-child { border-right: none; }
.player-hero .quick-meta .l {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
}
.player-hero .quick-meta .v {
  font-family: var(--display); font-weight: 800; font-style: normal;
  font-size: 28px; text-transform: uppercase; margin-top: 8px;
}

.player-hero .ctas {
  position: relative; display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap;
}
.player-hero .ctas .cta {
  text-decoration: none;
  font-family: var(--display); font-weight: 900; font-style: normal;
  font-size: 16px; padding: 14px 22px; text-transform: uppercase;
  letter-spacing: 0.02em;
}
.player-hero .ctas .cta.primary { background: var(--red); color: white; }
.player-hero .ctas .cta.outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.5); }

/* === Stats block === */
.stats-block {
  background: var(--red); color: white;
  padding: 36px 56px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  position: relative; overflow: hidden;
}
.stats-block .halftone {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.18) 1.2px, transparent 1.6px);
  background-size: 16px 16px; opacity: 0.35;
}
.stats-block .cell {
  padding-right: 22px; border-right: 1px solid rgba(255,255,255,0.25);
  position: relative;
}
.stats-block .cell:not(:first-child) { padding-left: 22px; }
.stats-block .cell:last-child { border-right: none; padding-right: 0; }
.stats-block .v {
  font-family: var(--display); font-weight: 900; font-style: normal;
  font-size: 64px; color: white; line-height: 0.9;
}
.stats-block .v small { font-size: 26px; opacity: 0.7; }
.stats-block .l {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.85); margin-top: 8px;
}

/* === Bio + Quote layout === */
.bio-quote { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
.bio-block {
  background: white; border: 1px solid rgba(11,46,63,0.08);
  padding: 36px 40px;
}
.bio-block .label { color: var(--red); margin-bottom: 18px; }
.bio-block .h {
  font-family: var(--display); font-weight: 900; font-style: normal;
  font-size: 44px; text-transform: uppercase; line-height: 0.95;
  margin: 0 0 24px;
}
.bio-block .h .r { color: var(--red); }
.bio-block p {
  font-family: var(--body); font-size: 15px; line-height: 1.65;
  color: var(--ink); margin: 0 0 14px;
}
.bio-block p:last-child { margin-bottom: 0; }

.quote-block {
  background: var(--ink); color: white;
  padding: 36px 40px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
}
/* Foto-Variante: Hintergrund-Foto + dunkles Overlay für Lesbarkeit.
   Aktiviert per JS: Klasse `.with-photo` + style.backgroundImage (Inhalt,
   nicht Design — welches Spielerfoto, nicht wie es aussieht). */
.quote-block.with-photo {
  background-size: cover;
  background-position: center;
  background-color: var(--ink);
}
.quote-block.with-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,46,63,0.80) 0%, rgba(11,46,63,0.55) 55%, rgba(11,46,63,0.88) 100%);
  z-index: 1;
}
.quote-block.with-photo > * { position: relative; z-index: 2; }
.quote-block .giant-q {
  position: absolute; left: -18px; top: -60px;
  font-family: var(--display); font-weight: 900; font-style: normal;
  font-size: 280px; line-height: 0.78; color: var(--red);
  opacity: 0.92; letter-spacing: -0.04em;
}
.quote-block.with-photo .giant-q { opacity: 0.85; z-index: 2; }
.quote-block .text {
  position: relative;
  font-family: var(--display); font-weight: 900; font-style: normal;
  font-size: 36px; line-height: 0.98; text-transform: uppercase;
  letter-spacing: 0.005em; color: white;
  margin-top: 80px;
}
.quote-block .text .r { color: var(--red); }
.quote-block .attribution {
  position: relative;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.7); margin-top: 26px;
}

/* === Career timeline === */
.career-row {
  display: grid; grid-template-columns: 110px 1fr 200px;
  gap: 22px; align-items: center;
  padding: 22px 28px; background: white;
  border: 1px solid rgba(11,46,63,0.08);
}
.career-row + .career-row { margin-top: 10px; }
.career-row.current { border-left: 4px solid var(--red); padding-left: 24px; }
.career-row .years {
  font-family: var(--display); font-weight: 900; font-style: normal;
  font-size: 24px; color: var(--red); line-height: 1;
}
.career-row .years small {
  display: block; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.22em; color: #6B7B82; margin-top: 4px;
  font-weight: 500; font-style: normal;
}
.career-row .club {
  font-family: var(--display); font-weight: 800; font-size: 22px;
  text-transform: uppercase; letter-spacing: 0.01em;
}
.career-row .club small {
  display: block; font-family: var(--body); font-size: 13px;
  color: #5b5853; margin-top: 6px; font-weight: 400;
  text-transform: none; letter-spacing: 0;
}
.career-row .league {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink); text-align: right;
  padding: 8px 12px; background: var(--paper); justify-self: end;
}

.volleybox-link { margin-top: 18px; }
.volleybox-link a {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--red); text-decoration: none;
  font-weight: 700; padding: 10px 14px; border: 1.5px solid var(--red);
}

/* === Season stats grid === */
.stat-card {
  background: white; border: 1px solid rgba(11,46,63,0.08);
  padding: 28px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.stat-card .ghost {
  position: absolute; right: -20px; bottom: -30px;
  font-family: var(--display); font-weight: 900; font-style: normal;
  font-size: 160px; line-height: 0.78; color: var(--red); opacity: 0.10;
}
.stat-card .label { color: var(--red); }
.stat-card .v {
  font-family: var(--display); font-weight: 900; font-style: normal;
  font-size: 84px; line-height: 0.9; color: var(--ink); margin-top: 10px;
}
.stat-card .v small { font-size: 28px; color: #6B7B82; }
.stat-card .l {
  font-family: var(--body); font-size: 13px; line-height: 1.5;
  color: #5b5853; margin-top: 8px;
}
.stat-card .progress {
  position: relative; height: 6px; background: var(--paper);
  margin-top: 16px; overflow: hidden;
}
.stat-card .progress .bar { position: absolute; top: 0; left: 0; bottom: 0; background: var(--red); }
.stat-card .progress-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: #6B7B82; margin-top: 8px;
  display: flex; justify-content: space-between;
}

/* === Strip "weitere Spieler" === */
.more-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.more-strip .mini {
  position: relative; aspect-ratio: 3/4;
  background: white; overflow: hidden; cursor: pointer;
  text-decoration: none; color: var(--ink);
  transition: transform .18s;
}
.more-strip .mini:hover { transform: translateY(-2px); }
.more-strip .mini .photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 12%;
  background-color: var(--sand);
}
.more-strip .mini .photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,46,63,0) 50%, rgba(11,46,63,0.85) 100%);
}
.more-strip .mini .num {
  position: absolute; top: 8px; left: 10px; z-index: 2;
  font-family: var(--display); font-weight: 900; font-style: normal;
  font-size: 28px; color: var(--red); line-height: 1;
}
.more-strip .mini .name {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; color: white;
}
.more-strip .mini .first {
  font-family: var(--body); font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; opacity: 0.85; font-weight: 600;
}
.more-strip .mini .last {
  font-family: var(--display); font-weight: 900; font-style: normal;
  font-size: 20px; text-transform: uppercase; line-height: 1; margin-top: 2px;
}

/* === Zurück-zum-Kader Tile === */
.team-cta-tile {
  background: var(--ink); color: white; padding: 48px 56px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center;
  position: relative; overflow: hidden;
}
.team-cta-tile .ghost {
  position: absolute; right: -60px; top: -80px; font-family: var(--display);
  font-weight: 900; font-style: normal; font-size: 280px; color: var(--red);
  line-height: 0.78; opacity: 0.18;
}
.team-cta-tile .copy { position: relative; }
.team-cta-tile .copy h2 { font-size: 64px; color: white; margin: 10px 0 0; line-height: 0.92; }
.team-cta-tile .copy h2 .accent { color: var(--red); }
.team-cta-tile .actions { position: relative; display: flex; flex-direction: column; gap: 14px; }
.team-cta-tile .actions p { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,0.92); margin: 0; }
.team-cta-tile .actions a {
  background: var(--red); color: white; text-decoration: none; font-family: var(--display);
  font-weight: 900; font-style: normal; font-size: 18px; padding: 16px 24px;
  text-transform: uppercase; align-self: flex-start;
}

/* — Handy: Spielerprofil war Desktop-only (fixe Grids/Riesen-Name) — jetzt responsive — */
@media (max-width: 640px) {
  .player-hero { grid-template-columns: 1fr; }
  .player-hero .photo-side { min-height: 62vw; }
  .player-hero .info-side { padding: 36px 20px 84px; }
  .player-hero .name-block { margin-top: 26px; }
  .player-hero .name-block .first { font-size: clamp(30px, 9vw, 56px); }
  .player-hero .name-block .last { font-size: clamp(52px, 17vw, 168px); margin-top: -6px; }
  .player-hero .quick-meta { grid-template-columns: repeat(2, 1fr); }
  .player-hero .ctas { flex-direction: column; }
  .player-hero .ctas .cta { text-align: center; }
  .stats-block { grid-template-columns: repeat(2, 1fr); padding: 28px 20px; }
  .bio-quote { grid-template-columns: 1fr; gap: 24px; }
  .career-row { grid-template-columns: 1fr; gap: 4px 12px; }
  .career-row.current { padding-left: 18px; }
  .more-strip { grid-template-columns: repeat(3, 1fr); }
}
