/* Spieler Styles - 1:1 Demo Implementation für Füchse Duisburg */

/* =============================================================================
   1. CSS VARIABLEN UND FARBEN - DEMO SPECIFICATIONS
   ============================================================================= */
:root {
    /* Primärfarben */
    --fuechse-rot: #ed0000;
    --fuechse-grau-dunkel: #1a1a1a;
    --fuechse-grau: #333333;
    --fuechse-grau-hell: #444444;
    
    /* Schatten und Effekte */
    --text-shadow-standard: 1px 1px 3px rgba(0, 0, 0, 0.7);
    --text-shadow-stark: 3px 3px 8px rgba(0, 0, 0, 1), 0 0 22px rgba(0, 0, 0, 1);
    --box-shadow-standard: 0 4px 16px rgba(0, 0, 0, 0.4);
    --box-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.6);
      /* Z-Index Hierarchie - DEMO EXACT VALUES */
    --z-logo: 1;
    --z-image: 2;
    --z-gradient: 3;
    --z-content: 4;
    --z-number: 5;
    --z-position: 7;
}

/* =============================================================================
   2. PLAYER TEASER KARTE - DEMO EXACT STRUCTURE
   ============================================================================= */
.evd-player-teaser {
    position: relative;
    background-color: #1a1a1a;
    background-image: radial-gradient(66.24% 66.24% at 50% 33.76%, #484848 0%, rgba(0, 0, 0, 0) 100%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border: 1px solid #303030;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: .3s ease-out;
    box-shadow: var(--box-shadow-standard);
    height: 475px;
    width: 100%;
    color: #fff;
    transition-duration: 0.4s;
    transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.evd-player-teaser:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

/* =============================================================================
   3. LOGO HINTERGRUND - DEMO ::BEFORE
   ============================================================================= */
.evd-player-teaser::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url("../img/logo/fuechse-duisburg-logo.webp");
    background-repeat: no-repeat;
    background-size: 180px;
    background-position: top 20px right 10px;
    opacity: 0.2;
    filter: brightness(1.5) contrast(0.9);
    z-index: var(--z-logo);
    pointer-events: none;
}

/* =============================================================================
   4. GRADIENT OVERLAY - NUR UNTEN, OHNE LAYOUT-BEEINFLUSSUNG
   ============================================================================= */
.evd-player-teaser::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.2) 20%, 
        rgba(0, 0, 0, 0.5) 50%, 
        rgba(0, 0, 0, 0.8) 80%, 
        rgba(0, 0, 0, 0.95) 100%);
    z-index: var(--z-gradient);
    pointer-events: none;
}

/* =============================================================================
   5. SPIELERBILD - DEMO STRUCTURE
   ============================================================================= */
.evd-player-teaser__thumbnail {
    margin: 0 !important;
    margin-bottom: 0 !important;
    flex-grow: 1;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    z-index: var(--z-image);
    height: 100%;
    padding-top: 0;
    padding-bottom: 0;
    transition-duration: 0.5s;
    transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

/* Elementor Figure Override - Verhindert Standard-Margin-Reset */
.elementor .evd-player-teaser__thumbnail,
.elementor-widget .evd-player-teaser__thumbnail {
    margin-bottom: 0 !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

.evd-player-teaser__thumbnail img {
    width: auto;
    height: 100%;
    max-height: 100%;
    display: block;
    object-fit: cover;
    object-position: center bottom;
    margin-bottom: 0 !important;
}

.evd-player-teaser:hover .evd-player-teaser__thumbnail,
.evd-player-teaser:focus .evd-player-teaser__thumbnail {
    transform: scale(1.03);
}

/* =============================================================================
   6. SPIELERNUMMER - DEMO EXACT VALUES
   ============================================================================= */
.evd-player-teaser__number {
    font-style: normal;
    color: rgba(0,0,0,0) !important;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #fff;
    position: absolute;
    top: 0;
    left: 0;
    font-family: "Machine Std", monospace;
    font-size: 80px;
    line-height: 80px;
    transition: .3s ease-out;
    z-index: var(--z-number);
    height: 120px;
    width: 110px;
    padding-top: 20px;
    padding-left: 20px;
}

.evd-player-teaser__number:not(:empty) {
    padding-left: 10px;
}

.evd-player-teaser__number:not(:empty)[data-single-digit="true"] {
    padding-left: 35px;
}

/* Spezielle Anpassungen für EVD-Default Text */
.evd-player-teaser__number.evd-number--evd-default {
    font-size: 50px;
    line-height: 50px;
    padding-left: 15px;
    padding-top: 35px;
}

/* Anpassungen für 3-stellige Texte/Abkürzungen (wie "WEB", "CEO", etc.) */
.evd-player-teaser__number[data-length="3"] {
    font-size: 50px;
    line-height: 50px;
    padding-left: 15px;
    padding-top: 35px;
}

.evd-player-teaser__number::before,
.evd-player-teaser__number::after {
    content: "";
    position: absolute;
    transition: .3s ease-out;
    left: 0;
    top: 0;
    z-index: -1;
}

.evd-player-teaser__number::before {
    background-color: var(--fuechse-rot);
    height: 120px;
    width: 100%;
    transform: translateY(-116px);
    transition-duration: 0.3s;
    transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.evd-player-teaser:hover .evd-player-teaser__number::before,
.evd-player-teaser:focus .evd-player-teaser__number::before {
    transform: translateY(0);
}

/* =============================================================================
   7. CONTENT CONTAINER - DEMO STRUCTURE
   ============================================================================= */
.evd-player-teaser__content {
    background: transparent;
    padding: 45px 20px 30px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    z-index: var(--z-content);
    text-align: left;
}

.evd-player-teaser__content--no-position,
.evd-player-teaser__content:not(:has(.evd-player-teaser__position)) {
    padding-bottom: 30px;
}

/* =============================================================================
   7b. POSITION DISPLAY - RECHTE ECKE MIT ROTEM KASTEN
   ============================================================================= */
.evd-player-teaser__position {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--fuechse-rot);
    color: #fff !important;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 4px;
    z-index: var(--z-position) !important; /* Über allem anderen */
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--fuechse-rot);    line-height: 1.2;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* Position-Hover-Effekt für bessere Sichtbarkeit */
.evd-player-teaser:hover .evd-player-teaser__position {
    background-color: var(--fuechse-rot);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
}

/* Force Position Visibility - Höhere Spezifität */
.evd-player-teaser .evd-player-teaser__position {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    z-index: 999 !important;
    background-color: var(--fuechse-rot) !important;
    color: #fff !important;
    font-weight: 700 !important;
}

/* Zusätzliche Abstand-Regel für Content-Container wenn Position vorhanden ist */
.evd-player-teaser__content:has(+ .evd-player-teaser__position) {
    padding-bottom: 25px; /* 5px zusätzlicher Abstand */
}

/* Alternative: direkter Abstand zwischen Namen und Position */
.evd-player-teaser__title + .evd-player-teaser__position {
    margin-top: 5px;
}

/* =============================================================================
   8. SPIELERNAMEN - DEMO STRUCTURE
   ============================================================================= */
.evd-headline-player-teaser,
.evd-player-teaser__title {
    margin: 0;
    font-size: 30px;
    font-weight: bold;
    font-family: "Square Slabserif", sans-serif;
    text-align: left;
    width: 100%;
}

.evd-player-teaser__firstname,
.evd-player-teaser__lastname {
    color: #fff !important;
    text-align: left;
    display: block;
}

.evd-player-teaser__firstname {
    font-size: 22px;
    font-weight: normal;
    margin-bottom: 5px;
}

.evd-player-teaser__lastname {
    font-size: 36px;
    text-transform: uppercase;
    font-family: "Square Slabserif", sans-serif;
    display: block;
    text-shadow: var(--text-shadow-standard);
}

.evd-player-teaser__title-link {
    color: #fff;
    text-decoration: none;
}

/* =============================================================================
   9. ANIMATION UND TRANSITIONS - DEMO SPECIFICATIONS
   ============================================================================= */
* {
    transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000) !important;
}

.evd-player-teaser {
    transition-duration: 0.4s;
}

.evd-player-teaser__thumbnail {
    transition-duration: 0.5s;
}

.evd-player-teaser__number::before {
    transition-duration: 0.3s;
}

/* =============================================================================
   10. HOVER EFFECTS - DEMO IMPLEMENTATION
   ============================================================================= */
.evd-player-teaser:hover .evd-player-teaser__number::before,
.evd-player-teaser:focus .evd-player-teaser__number::before {
    transform: translateY(0);
}

.evd-player-teaser:hover .evd-player-teaser__thumbnail,
.evd-player-teaser:focus .evd-player-teaser__thumbnail {
    transform: scale(1.03);
}

/* Touch-Geräte-Optimierungen */
@media (hover: none) {
    .evd-player-teaser:active .evd-player-teaser__number::before {
        transform: translateY(0);
    }
    
    .evd-player-teaser:active .evd-player-teaser__thumbnail {
        transform: scale(1.03);
    }
}

/* =============================================================================
   11. RESPONSIVE DESIGN - DEMO BREAKPOINTS
   ============================================================================= */

/* Mobile Ansicht */
/* Zusätzliche Optimierung für schärfere Spielerbilder */
.evd-player-thumbnail {
    width: 100%;
    height: auto;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic; /* IE Fallback */
}

@media screen and (max-width: 480px) {
    .evd-player-teaser {
        height: 420px;
        width: 300px;
    }
    
    .evd-player-teaser__number {
        font-size: 60px;
        line-height: 60px;
        height: 90px;
        width: 90px;
        padding-top: 15px;
        padding-left: 15px;
    }
    
    .evd-player-teaser__number::before {
        height: 90px;
        transform: translateY(-86px);
    }
    
    .evd-player-teaser__content {
        padding: 30px 15px 20px;
    }
    
    .evd-player-teaser__firstname {
        font-size: 18px;
    }
    
    .evd-player-teaser__lastname {
        font-size: 30px;
    }
    
    .evd-player-teaser::before {
        background-size: 140px;
        background-position: top 15px right 5px;
    }
}

/* Kleine Handys */
@media screen and (max-width: 350px) {
    .evd-player-teaser {
        height: 380px;
        width: 260px;
    }
    
    .evd-player-teaser__number {
        font-size: 50px;
        line-height: 50px;
        height: 70px;
        width: 70px;
        padding-top: 12px;
        padding-left: 12px;
    }
    
    .evd-player-teaser__number::before {
        height: 70px;
        transform: translateY(-66px);
    }
    
    .evd-player-teaser__firstname {
        font-size: 16px;
    }
    
    .evd-player-teaser__lastname {
        font-size: 26px;
    }
    
    .evd-player-teaser::before {
        background-size: 120px;
    }
}

/* =============================================================================
   12. SPIELER GRUPPE WIDGET - GRID LAYOUTS
   ============================================================================= */
.evd-spieler-gruppe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.evd-spieler-gruppe-liste .evd-spieler-item {
    margin-bottom: 20px;
}

.evd-spieler-item {
    background-color: var(--fuechse-grau-dunkel);
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.evd-spieler-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.evd-spieler-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.evd-spieler-bild {
    position: relative;
    overflow: hidden;
    margin-bottom: 5px;
}

.evd-spieler-bild img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.evd-spieler-item:hover .evd-spieler-bild img {
    transform: scale(1.05);
}

.evd-spieler-no-image {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    background-color: var(--fuechse-grau-hell);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    overflow: hidden;
    position: relative;
}

.evd-spieler-no-image i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
}

.evd-spieler-trikotnummer {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--fuechse-rot) !important;
    font-weight: 900;
    font-size: 2.5rem;
    z-index: var(--z-number);
    text-shadow: var(--text-shadow-standard);
    background-color: transparent;
    line-height: 1;
}

.evd-spieler-name {
    margin: -5px 0 5px 0;
    padding: 0 10px;
    color: #fff;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
}

.evd-spieler-vorname {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0;
}

.evd-spieler-nachname {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
}

.evd-spieler-position {
    font-size: 1.6rem;
    color: var(--fuechse-rot) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    padding: 0 10px;
}

.evd-spieler-email {
    font-size: 1.1rem;
    padding: 0 10px 10px;
    margin-top: -5px;
}

.evd-spieler-email a {
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.evd-spieler-email a:hover {
    color: var(--fuechse-rot);
}

.evd-spieler-email i,
.evd-spieler-email svg {
    margin-right: 8px;
    font-size: 1.2em;
    color: #fff !important;
    fill: #fff !important;
}

.evd-spieler-email a:hover i,
.evd-spieler-email a:hover svg {
    color: var(--fuechse-rot) !important;
    fill: var(--fuechse-rot) !important;
}

/* =============================================================================
   13. SPIELER EINZELSEITE
   ============================================================================= */
.spieler-single-new .spieler-profile-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
        "header header"
        "stats stats"
        "bio bio";
    gap: 2rem;
    color: #fff;
    padding: 3rem;
    margin: 3rem 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.spieler-profile-header {
    grid-area: header;
    display: flex;
    margin-bottom: 1rem;
    border-bottom: 4px solid var(--fuechse-rot);
    padding-bottom: 2rem;
    position: relative;
    align-items: flex-start;
}

.spieler-portrait {
    flex: 0 0 auto;
    margin-right: 3rem;
    position: relative;
    transition: transform 0.3s ease;
    width: 25%;
}

.spieler-portrait-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

.spieler-no-image {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    background-color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    overflow: hidden;
    position: relative;
}

.spieler-no-image i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
}

.spieler-profile-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    padding-top: 0.5rem;
    min-width: 0;
}

.spieler-rueckennummer {
    font-size: 5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    position: absolute;
    top: 0;
    right: 0;
    text-shadow: var(--text-shadow-standard);
    font-style: italic;
    transform: skew(-5deg);
    z-index: var(--z-number);
}

.spieler-name {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: var(--text-shadow-standard);
    word-wrap: break-word;
    hyphens: auto;
    padding-right: 5rem;
}

.spieler-position {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--fuechse-rot);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
}

.spieler-personal-info {
    margin-top: 1.5rem;
}

.personal-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.15);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background-color: rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
}

.info-item .label {
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.info-item .value {
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.2;
}

.spieler-stats-data {
    grid-area: stats;
    background-color: rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow-standard);
}

.spieler-stats-data .section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.6rem;
    color: var(--fuechse-rot);
    position: relative;
    padding-bottom: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.spieler-stats-data .section-title:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--fuechse-rot);
    border-radius: 2px;
}

.saison-label {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-left: 0.8rem;
    font-weight: normal;
    font-style: italic;
}

.stats-row {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.stat-item {
    flex: 1;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.15) 100%);
    border-radius: 10px;
    padding: 1.8rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    max-width: 200px;
    box-shadow: var(--box-shadow-standard);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item:hover {
    background: linear-gradient(135deg, var(--fuechse-rot) 0%, var(--fuechse-grau-dunkel) 100%);
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.stat-label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.stat-label:after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--fuechse-rot);
    border-radius: 1px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.spieler-biography {
    grid-area: bio;
    margin-top: 1rem;
    background-color: rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow-standard);
}

.spieler-biography h2 {
    color: var(--fuechse-rot);
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 0.8rem;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.spieler-biography h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--fuechse-rot);
    border-radius: 2px;
}

.bio-text {
    line-height: 1.8;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.bio-text p:first-of-type::first-letter {
    font-size: 3rem;
    font-weight: 700;
    float: left;
    margin-right: 0.5rem;
    line-height: 1;
    color: var(--fuechse-rot);
    padding: 0.2rem;
}

/* =============================================================================
   14. FEHLERSEITE
   ============================================================================= */
.spieler-error-container,
.error-404 .spieler-error-container {
    background-color: var(--fuechse-grau-dunkel);
    color: #fff;
    padding: 4rem 3rem;
    border-radius: 8px;
    text-align: center;
    max-width: 800px;
    margin: 3rem auto;
    box-shadow: var(--box-shadow-standard);
    border-top: 4px solid var(--fuechse-rot);
    width: 85%;
}

.spieler-error-icon {
    font-size: 5rem;
    color: var(--fuechse-rot);
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.spieler-error-message h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    word-wrap: break-word;
}

.spieler-error-message p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
}

.spieler-error-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.spieler-error-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    background-color: var(--fuechse-rot);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 150px;
    margin-bottom: 10px;
}

.spieler-error-button i {
    margin-right: 0.5rem;
}

.spieler-error-button:hover {
    background-color: #ff1f2b;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-standard);
}

.spieler-error-button.secondary {
    background-color: var(--fuechse-grau);
    color: #fff;
}

.spieler-error-button.secondary:hover {
    background-color: var(--fuechse-grau-hell);
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* =============================================================================
   15. RESPONSIVE DESIGN
   ============================================================================= */
@media (max-width: 1200px) {
    .spieler-portrait {
        width: 25%; 
    }
    
    .spieler-name {
        font-size: 2.5rem;
        padding-right: 4.5rem;
    }
    
    .spieler-rueckennummer {
        font-size: 4.5rem;
    }
}

@media (max-width: 1024px) {
    .evd-spieler-gruppe-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .spieler-single-new .spieler-profile-container {
        padding: 2rem;
        gap: 1.5rem;
    }
    
    .personal-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stats-row {
        flex-wrap: wrap;
        justify-content: space-around;
    }
    
    .stat-item {
        flex: 1 0 calc(50% - 1.5rem);
        min-width: auto;
        margin-bottom: 1.5rem;
    }
    
    .spieler-portrait {
        width: 30%;
        margin-right: 2rem;
    }
    
    .spieler-name {
        font-size: 2.2rem;
        padding-right: 4rem;
    }
    
    .spieler-rueckennummer {
        font-size: 4rem;
    }
    
    .spieler-position {
        font-size: 1.2rem;
        padding: 0.2rem 0.8rem;
    }
    
    .spieler-biography h2, .spieler-stats-data .section-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .evd-spieler-gruppe-grid,
    .elementor .evd-spieler-gruppe-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        padding: 0 20px !important;
    }
    
    .spieler-error-container {
        padding: 3.5rem 2.8rem;
        margin: 2.5rem auto;
        width: 88%;
    }
    
    .spieler-error-message h2 {
        font-size: 2.2rem;
    }
    
    .spieler-error-icon {
        font-size: 4.5rem;
    }
}

@media (max-width: 768px) {
    .evd-player-teaser__position {
        padding: 6px 12px;
        font-size: 11px;
        bottom: 15px;
        right: 15px;
        border-width: 2px;
        font-weight: 700;
        z-index: var(--z-position) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    }
    
    .evd-player-teaser__firstname,
    .evd-player-teaser__lastname {
        text-shadow: var(--text-shadow-stark);
    }
    
    .spieler-single-new .spieler-profile-container {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .spieler-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 1.5rem;
    }
    
    .spieler-portrait {
        margin: 0 auto 1.5rem auto;
        width: 60%;
        max-width: 250px;
    }
    
    .spieler-profile-info {
        width: 100%;
        padding-top: 2.5rem;
        position: relative;
    }
    
    .spieler-rueckennummer {
        position: relative;
        top: -0.5rem;
        right: auto;
        font-size: 3.5rem;
        margin-bottom: 0.5rem;
        text-align: center;
        display: block;
    }
    
    .spieler-name {
        font-size: 2rem;
        text-align: center;
        padding-right: 0;
    }
    
    .spieler-position {
        margin: 0 auto 1.5rem auto;
        font-size: 1.1rem;
    }
    
    .personal-info-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .stats-row {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .stat-item {
        width: 100%;
        max-width: 280px;
    }
    
    .section-title, .spieler-biography h2 {
        text-align: center;
        font-size: 1.3rem;
    }
    
    .section-title:after, .spieler-biography h2:after {
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
    }
    
    .bio-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .info-item {
        padding: 0.6rem 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .info-item .label {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }
    
    .info-item .value {
        font-size: 1.1rem;
    }
    
    .evd-spieler-gruppe-grid,
    .elementor .evd-spieler-gruppe-grid {
        grid-template-columns: 1fr !important;
        max-width: 450px !important;
        margin: 0 auto !important;
        padding: 0 15px !important;
        gap: 25px !important;
    }
    
    .evd-spieler-gruppe-liste {
        padding: 0 15px;
    }
    
    .evd-player-teaser {
        height: 420px;
    }
    
    .evd-player-teaser__number {
        font-size: 60px;
        line-height: 60px;
        height: 90px;
        width: 90px;
        padding-top: 15px;
        padding-left: 15px;
    }
    
    .evd-player-teaser__number::before {
        height: 90px;
        transform: translateY(-86px);
    }
    
    .evd-player-teaser__content {
        padding: 30px 15px 20px;
    }
    
    .evd-player-teaser__firstname {
        font-size: 18px;
    }
    
    .evd-player-teaser__lastname {
        font-size: 30px;
    }
    
    .spieler-error-container {
        padding: 3rem 2.5rem;
        margin: 2rem auto;
        width: 90%;
    }
    
    .spieler-error-icon {
        font-size: 4rem;
        margin-bottom: 1.5rem;
    }
    
    .spieler-error-message h2 {
        font-size: 2rem;
        margin-bottom: 1.2rem;
    }
    
    .spieler-error-message p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        padding: 0 15px;
    }
    
    .spieler-error-actions {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .spieler-error-button {
        padding: 0.7rem 1.2rem;
        min-width: 140px;
    }
}

@media (max-width: 576px) {
    .spieler-error-container {
        padding: 2.5rem 2rem;
        margin: 1.5rem auto;
        width: 92%;
    }
    
    .spieler-error-button {
        width: 100%;
        max-width: 280px;
    }
    
    .spieler-error-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .evd-player-teaser__firstname {
        font-size: 18px;
        margin-bottom: 3px;
    }
    
    .evd-player-teaser__lastname {
        font-size: 30px;
    }
    
    .spieler-single-new .spieler-profile-container {
        padding: 1rem;
        margin: 1rem 0;
        gap: 1rem;
    }
    
    .spieler-portrait {
        width: 80%;
    }
    
    .spieler-rueckennummer {
        font-size: 3rem;
    }
    
    .spieler-name {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .spieler-position {
        font-size: 1rem;
        padding: 0.2rem 0.7rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    
    .spieler-stats-data, .spieler-biography {
        padding: 1.2rem;
    }
    
    .bio-text p:first-of-type::first-letter {
        font-size: 2.5rem;
        padding: 0.1rem;
    }
    
    .evd-spieler-gruppe-grid {
        padding: 0 10px;
    }
    
    .evd-spieler-bild {
        max-height: 380px;
    }
    
    .evd-spieler-trikotnummer {
        font-size: 2.5rem;
    }
    
    .spieler-error-container {
        padding: 2rem 1.8rem;
        width: 94%;
        margin: 1.2rem auto;
    }
    
    .spieler-error-message h2 {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
        padding: 0 10px;
    }
    
    .spieler-error-icon {
        font-size: 3.5rem;
        margin-bottom: 1.2rem;
    }
    
    .spieler-error-message p {
        font-size: 1rem;
        line-height: 1.5;
        padding: 0 15px;
    }
    
    .spieler-error-button {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
}

@media (max-width: 360px) {
    .spieler-error-container {
        padding: 1.8rem 1.5rem;
        width: 96%;
    }
    
    .spieler-error-message h2 {
        font-size: 1.6rem;
    }
    
    .spieler-error-icon {
        font-size: 3rem;
    }
    
    .evd-spieler-bild {
        max-height: 340px;
    }
    
    .evd-spieler-trikotnummer {
        font-size: 2.2rem;
    }
    
    .evd-spieler-vorname {
        font-size: 1.2rem;
    }
    
    .evd-spieler-nachname {
        font-size: 1.8rem;
    }
}

@media (max-width: 350px) {
    .evd-player-teaser__firstname {
        font-size: 16px;
    }
    
    .evd-player-teaser__lastname {
        font-size: 26px;
    }
}

/* =============================================================================
   16. UTILITIES
   ============================================================================= */
.evd-player-name-position-separator {
    display: block;
    width: 100%;
    height: 5px;
    clear: both;
    margin-bottom: 15px;
    visibility: visible !important;
}

/* =============================================================================
   17. ANSPRECHPERSON WIDGET - CONTACT CARD STYLES
   ============================================================================= */

/* Basis-Styling für Ansprechpersonen-Karten */
.evd-contact-card {
    cursor: default; /* Kein Pointer, da keine Navigation */
}

.evd-contact-card .evd-player-teaser__container {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Hover-Overlay für Kontaktinformationen */
.evd-contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 26, 26, 0.95);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: var(--z-position);
    padding: 20px;
}

.evd-player-teaser__thumbnail:hover .evd-contact-overlay {
    opacity: 1;
    visibility: visible;
}

/* Kontaktinformationen Container */
.evd-contact-info {
    text-align: center;
    width: 100%;
    max-width: 280px;
}

/* Beschreibung Styling */
.evd-contact-description {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Kontakt-Items */
.evd-contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.3;
    padding: 8px 0;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.evd-contact-item:last-child {
    margin-bottom: 0;
}

.evd-contact-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 5px;
    padding-right: 5px;
}

.evd-contact-item i {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    color: var(--fuechse-rot);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
    background-color: rgba(237, 0, 0, 0.1);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.evd-contact-item:hover i {
    background-color: rgba(237, 0, 0, 0.2);
    transform: scale(1.1);
}

.evd-contact-item span {
    flex: 1;
    text-align: left;
}

/* Kontakt-Links Styling */
.evd-contact-link {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    flex: 1;
    text-align: left;
    border-bottom: 1px solid transparent;
}

.evd-contact-link:hover {
    color: var(--fuechse-rot);
    text-decoration: none;
    border-bottom-color: var(--fuechse-rot);
}

.evd-contact-link:focus {
    outline: 2px solid var(--fuechse-rot);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Spezielle Styling für Adresse */
.evd-contact-address span {
    white-space: pre-line;
}

/* Verbessertes Layout für Kontaktinformationen */
.evd-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Trennlinie zwischen Beschreibung und Kontakten */
.evd-contact-description + .evd-contact-item {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 15px;
    margin-top: 15px;
}

/* Touch-optimierte Hover-Effekte */
@media (hover: none) {
    .evd-contact-item:active {
        background-color: rgba(255, 255, 255, 0.1);
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .evd-contact-item:active i {
        background-color: rgba(237, 0, 0, 0.3);
        transform: scale(1.1);
    }
    
    .evd-contact-link:active {
        color: var(--fuechse-rot);
    }
}

/* Mobile Anpassungen für Kontakt-Overlay */
@media (max-width: 768px) {
    .evd-contact-overlay {
        padding: 15px;
    }
    
    .evd-contact-info {
        max-width: 250px;
    }
    
    .evd-contact-description {
        font-size: 15px;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .evd-contact-item {
        font-size: 14px;
        margin-bottom: 12px;
        padding: 6px 0;
    }
    
    .evd-contact-item i {
        width: 18px;
        height: 18px;
        margin-right: 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .evd-contact-overlay {
        padding: 12px;
    }
    
    .evd-contact-info {
        max-width: 220px;
    }
    
    .evd-contact-description {
        font-size: 14px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .evd-contact-item {
        font-size: 13px;
        margin-bottom: 10px;
        padding: 5px 0;
    }
    
    .evd-contact-item i {
        width: 16px;
        height: 16px;
        margin-right: 8px;
        font-size: 12px;
    }
}

/* Verbessertes Layout für Kontaktinformationen */
.evd-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Trennlinie zwischen Beschreibung und Kontakten */
.evd-contact-description + .evd-contact-item {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 15px;
    margin-top: 15px;
}

/* Touch-optimierte Hover-Effekte */
@media (hover: none) {
    .evd-contact-item:active {
        background-color: rgba(255, 255, 255, 0.1);
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .evd-contact-item:active i {
        background-color: rgba(237, 0, 0, 0.3);
        transform: scale(1.1);
    }
    
    .evd-contact-link:active {
        color: var(--fuechse-rot);
    }
    
    /* Touch-Device Hover-Support für das Overlay */
    .evd-contact-overlay {
        opacity: 0;
        visibility: hidden;
    }
    
    .evd-player-teaser__thumbnail:active .evd-contact-overlay {
        opacity: 1;
        visibility: visible;
    }
}
