/* ── Club Hero ───────────────────────────────────────────────────────────── */
.club-hero { background: var(--bg2); border-bottom: 1px solid var(--border); padding: 24px; margin-bottom: 20px; }
.club-hero-inner { max-width: 800px; display: flex; gap: 20px; align-items: flex-start; }
.club-logo-wrap { flex-shrink: 0; }
.club-logo-lg { width: 90px; height: 90px; object-fit: contain; border-radius: 12px; background: var(--bg3); padding: 4px; }
.club-logo-placeholder { width: 90px; height: 90px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 800; color: #fff; }
.club-hero-info h1 { font-size: 1.5rem; margin-bottom: 6px; }
.club-city { color: var(--muted); font-size: .88rem; margin-bottom: 4px; }
.club-website { color: var(--accent); font-size: .85rem; display: block; margin-bottom: 8px; }
.club-desc { color: var(--muted); font-size: .88rem; line-height: 1.6; margin-top: 8px; max-width: 500px; }

/* ── Mini-Logo (Tabellen, Spielkarten) ───────────────────────────────────── */
.mini-logo { width: 20px; height: 20px; object-fit: contain; border-radius: 3px; vertical-align: middle; margin-right: 5px; }
.team-with-logo { display: flex; align-items: center; gap: 4px; }
.badge-logo { width: 16px; height: 16px; object-fit: contain; vertical-align: middle; margin-right: 3px; }

/* Navbar Logo */
.nav-club-logo { width: 24px; height: 24px; object-fit: contain; border-radius: 4px; }

/* ── Kontaktkarten ──────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 16px; }
.contact-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; }
.contact-portrait { flex-shrink: 0; }
.contact-img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.contact-initials { width: 60px; height: 60px; border-radius: 50%; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; color: var(--accent); }
.contact-role { font-size: .75rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.contact-name { font-size: .95rem; margin-bottom: 8px; }
.contact-detail { font-size: .82rem; color: var(--muted); margin-bottom: 3px; }
.contact-detail a { color: var(--muted); }
.contact-detail a:hover { color: var(--accent); }

/* ── Mannschafts-Kader öffentlich ───────────────────────────────────────── */
.team-section { margin-bottom: 28px; }
.team-section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.team-section-header h3 { font-size: 1rem; }
.team-category-badge { background: var(--bg3); border-radius: 4px; padding: 2px 7px; font-size: .75rem; font-weight: 700; color: var(--accent); }
.squad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px,1fr)); gap: 10px; }
.squad-card { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 8px; text-decoration: none; color: var(--text); transition: all .15s; }
.squad-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.squad-portrait { width: 52px; height: 52px; flex-shrink: 0; }
.squad-img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.squad-initials { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem; color: #fff; }
.squad-name { font-size: .75rem; text-align: center; font-weight: 600; }
.squad-num { font-size: .72rem; color: var(--muted); }

/* ── Spielerprofil ──────────────────────────────────────────────────────── */
.player-profile { max-width: 800px; margin: 0 auto; }
.profile-hero { display: flex; gap: 20px; align-items: flex-start; background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-bottom: 24px; }
.profile-portrait { flex-shrink: 0; }
.portrait-img { width: 110px; height: 110px; border-radius: 12px; object-fit: cover; }
.portrait-placeholder { width: 110px; height: 110px; border-radius: 12px; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; color: var(--muted); }
.profile-name { font-size: 1.4rem; margin-bottom: 10px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.profile-badge { padding: 4px 10px; border-radius: 20px; font-size: .78rem; background: var(--bg3); border: 1px solid var(--border); display: flex; align-items: center; gap: 4px; }
.club-badge { border-color: var(--accent); color: var(--accent); }
.team-badge { border-color: var(--accent2); color: var(--accent2); }
.profile-details { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.detail-row { display: flex; gap: 10px; font-size: .85rem; }
.detail-label { color: var(--muted); min-width: 110px; }
.profile-comment { font-size: .88rem; color: var(--muted); line-height: 1.6; font-style: italic; border-left: 3px solid var(--border); padding-left: 12px; margin-top: 8px; }

/* Stats Overview */
.stats-overview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px,1fr)); gap: 10px; margin-bottom: 20px; }
.stat-overview-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; text-align: center; }
.stat-overview-card.accent { border-color: var(--accent); }
.stat-overview-num { font-size: 1.8rem; font-weight: 800; }
.stat-overview-label { font-size: .72rem; color: var(--muted); margin-top: 3px; }

/* Shoot bars */
.shoot-stats { display: flex; flex-direction: column; gap: 10px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.shoot-row { display: grid; grid-template-columns: 80px 1fr 130px; align-items: center; gap: 12px; font-size: .82rem; }
.shoot-bar-wrap { background: var(--bg3); border-radius: 4px; height: 8px; overflow: hidden; }
.shoot-bar { height: 100%; background: var(--accent); border-radius: 4px; transition: width .4s; }

/* ── Admin: Privacy Checkboxen ───────────────────────────────────────────── */
.privacy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 8px; margin-top: 8px; }
.privacy-item { display: flex; align-items: center; gap: 8px; background: var(--bg3); border-radius: 6px; padding: 8px 10px; font-size: .82rem; cursor: pointer; border: 1px solid var(--border); }
.privacy-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.privacy-item.active { border-color: var(--green); background: rgba(46,204,113,.08); }

/* ── Admin: Spieler-Detail-Modal ─────────────────────────────────────────── */
.player-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.upload-preview { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; margin-top: 8px; }
.upload-area { border: 2px dashed var(--border); border-radius: 8px; padding: 16px; text-align: center; cursor: pointer; font-size: .82rem; color: var(--muted); transition: border-color .15s; }
.upload-area:hover { border-color: var(--accent); }
.upload-area input { display: none; }

/* ── Public Toggle in Listen ─────────────────────────────────────────────── */
.public-toggle { display: flex; align-items: center; gap: 6px; font-size: .78rem; }
.toggle-switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--bg3); border-radius: 20px; cursor: pointer; transition: .2s; border: 1px solid var(--border); }
.toggle-slider:before { content:''; position:absolute; width:14px; height:14px; left:2px; bottom:2px; background:var(--muted); border-radius:50%; transition:.2s; }
input:checked + .toggle-slider { background: var(--green); border-color: var(--green); }
input:checked + .toggle-slider:before { background: #fff; transform: translateX(16px); }

@media (max-width: 600px) {
  .profile-hero { flex-direction: column; }
  .club-hero-inner { flex-direction: column; }
  .contact-card { flex-direction: column; }
  .player-detail-grid { grid-template-columns: 1fr; }
  .shoot-row { grid-template-columns: 60px 1fr; }
  .shoot-row span:last-child { display: none; }
}
