/* ============================================================
   profil.css — Öffentliche Spielerprofil-Seite
   ============================================================ */

.profil-main {
    padding: 32px 20px 60px;
}

/* ── Hero ───────────────────────────────────────────────────── */
.profil-hero {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.profil-hero-photo {
    position: relative;
    flex-shrink: 0;
}

.profil-hero-photo img {
    width: 220px;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid var(--kev-yellow);
    display: block;
}

.profil-hero-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--kev-yellow);
    color: var(--kev-black);
    border-radius: 8px;
    padding: 4px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}
.badge-number { font-size: 1.4rem; font-weight: 900; font-family: 'Roboto Condensed', sans-serif; }
.badge-pos    { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

.profil-hero-info {
    flex: 1;
    padding-top: 8px;
}

.club-tag {
    display: inline-block;
    background: #2d2d2d;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.profil-name {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 3rem;
    line-height: 1;
    font-weight: 400;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.profil-name strong {
    display: block;
    color: var(--kev-yellow);
    font-weight: 900;
    font-size: 3.6rem;
}

.profil-attrs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.attr-row {
    display: flex;
    gap: 12px;
    align-items: baseline;
}
.attr-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    min-width: 110px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.attr-value {
    color: var(--kev-white);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ── Stat-Bar ───────────────────────────────────────────────── */
.profil-statbar {
    display: flex;
    gap: 0;
    background: #111;
    border-radius: 12px;
    border: 1px solid #2d2d2d;
    overflow: hidden;
    margin-bottom: 32px;
}
.statbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    border-right: 1px solid #2d2d2d;
    transition: background 0.15s;
}
.statbar-item:last-child { border-right: none; }
.statbar-item:hover { background: #1a1a1a; }

.statbar-highlight { background: #1a1500; }
.statbar-highlight:hover { background: #221c00; }

.statbar-num {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--kev-yellow);
    line-height: 1;
    margin-bottom: 4px;
}
.statbar-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Grid ───────────────────────────────────────────────────── */
.profil-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ── Cards ──────────────────────────────────────────────────── */
.profil-card {
    background: #111;
    border: 1px solid #2d2d2d;
    border-radius: 12px;
    padding: 24px;
}
.profil-card h2 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--kev-yellow);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2d2d2d;
}
.profil-card p {
    color: #ccc;
    line-height: 1.65;
    font-size: 0.92rem;
}

/* ── Stats-Tabelle ──────────────────────────────────────────── */
.profil-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.profil-table th {
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid #2d2d2d;
}
.profil-table td {
    padding: 8px 8px;
    border-bottom: 1px solid #222;
    color: var(--kev-white);
}
.profil-table tr:last-child td { border-bottom: none; }
.profil-points {
    font-weight: 700;
    color: var(--kev-yellow);
}

/* ── Spiele-Liste ───────────────────────────────────────────── */
.profil-games {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.game-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #1a1a1a;
    font-size: 0.85rem;
}
.game-date     { color: var(--text-muted); min-width: 80px; font-size: 0.78rem; }
.game-opponent { flex: 1; font-weight: 600; }
.game-result   { font-weight: 700; font-family: 'Roboto Condensed', sans-serif; min-width: 40px; text-align: right; }

.result-win  { border-left: 3px solid #4caf50; }
.result-loss { border-left: 3px solid #f44336; }
.result-draw { border-left: 3px solid #ff9800; }
.result-win  .game-result { color: #4caf50; }
.result-loss .game-result { color: #f44336; }
.result-draw .game-result { color: #ff9800; }

/* ── Herkunftsgeschichte im "Über"-Block ────────────────────── */
.profil-story { margin-top: 12px; }
.profil-rink {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #242424;
    font-size: 0.88rem;
}
.profil-rink-label { color: #9a9a9a; margin-right: 6px; }
.profil-rink a { color: var(--kev-yellow); text-decoration: none; font-weight: 600; }
.profil-rink a:hover { text-decoration: underline; }

/* ── Kontakt ────────────────────────────────────────────────── */
.profil-contact { grid-column: 1 / -1; }
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 12px 24px;
    background: var(--kev-yellow);
    color: var(--kev-black);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s;
}
.contact-btn:hover { background: var(--kev-yellow-dark); color: var(--kev-black); }
.contact-btn.contact-instagram-btn { background: linear-gradient(135deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); color: #fff; }
.contact-btn.contact-instagram-btn:hover { background: linear-gradient(135deg,#f5a84a 0%,#eb7d55 25%,#e43d58 50%,#d93a7e 75%,#c82ea0 100%); color: #fff; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid #2d2d2d;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 700px) {
    .profil-hero {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    .profil-hero-photo img {
        width: 180px;
        height: 220px;
    }
    .profil-hero-info { padding-top: 0; text-align: center; }
    .profil-name { font-size: 2.4rem; }
    .profil-name strong { font-size: 2.8rem; }
    .attr-row { justify-content: center; }

    .profil-statbar { flex-wrap: wrap; }
    .statbar-item { min-width: 33%; border-bottom: 1px solid #2d2d2d; }

    .profil-grid { grid-template-columns: 1fr; }
    .profil-contact { grid-column: 1; }
}

@media (max-width: 400px) {
    .statbar-item { min-width: 50%; }
}
