/* ======================================
   EVD Match Container Widget Styles
   Basierend auf der Original-Demo site-01.css
   Mit neuem Button-Design
====================================== */

/* CSS-Variablen Fallbacks */
:root {
    --bg-transparent-rot: rgba(223, 9, 20, 0.2);
    --fuechse-rot: #DF0914;
    --text-weiss: #ffffff;
}

.evd-mc-container {
    display: flex;
    justify-content: center;
    gap: 30px; /* Reduziert von 40px */
    padding: 0 15px; /* Reduziert von 20px */
    max-width: 1400px; /* Wie in der Demo */
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.evd-mc-card {
    background-color: #2b2b2b;
    padding: 10px;
    border-radius: 10px; /* Wie in der Demo, nicht 15px */
    width: 400px; /* Wie in der Demo */
    text-align: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Exakt wie in der Demo */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.evd-mc-card h2 {
    margin: 0; /* Entferne margin da wir gap verwenden */
    margin-top: 0 !important;
    font-size: 24px; /* Wie in der Demo */
    color: white;
    font-family: 'Redzone MediumReg', sans-serif;
}

/* Logos und VS/Ergebnis - horizontal in einer Linie */
.evd-mc-card .evd-mc-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px; /* Wie in der Demo */
    width: 100%;
    flex-wrap: wrap; /* erlaubt Zeilenumbruch für das Extra unter das Ergebnis */
}

.evd-mc-card .evd-mc-team-logo {
    width: 100px; /* Default kleiner als zuvor (120px) */
    height: 100px;
    object-fit: contain;
    border-radius: 10px; /* abgerundete Ecken für Team-Logos */
    padding: 0; /* kein Rahmen-/Hintergrundabstand */
    background: transparent; /* kein farbiger Hintergrund */
    border: 0; /* keine Umrandung */
    box-sizing: content-box; /* Padding addiert zur Gesamtfläche */
}

/* Platzhalter für fehlende Logos */
.evd-mc-card .evd-mc-team-logo[src=""], 
.evd-mc-card .evd-mc-team-logo:not([src]) {
    display: none;
}

/* Ergebnis/VS - zwischen den Logos */
.evd-mc-card .evd-mc-vs {
    font-size: 32px; /* Wie in der Demo */
    font-weight: bold;
    color: white;
    font-family: 'Redzone MediumReg', sans-serif;
    margin: 0;
    flex-shrink: 0; /* Verhindert Schrumpfen des VS/Ergebnis-Texts */
    line-height: 1;
}

/* Zusatz (n.V./n.P.) wenn per <br> direkt in .evd-mc-vs eingefügt */
.evd-mc-card .evd-mc-vs .evd-mc-extra {
    display: inline-block;
    font-size: 24px;
    font-weight: 800;
    color: #ffffff; /* sicher weiß */
    line-height: 1;
    margin-top: 2px;
}

/* Zusatz (n.V./n.P.) in neuer Zeile unter dem Ergebnis */
.evd-mc-card .evd-mc-vs-extra {
    flex: 0 0 100%; /* neue, volle Zeile unter dem Ergebnis */
    width: 100%;
    text-align: center;
    margin-top: 2px;
}
.evd-mc-card .evd-mc-vs-extra .evd-mc-extra {
    display: inline-block;
    font-size: 24px;
    font-weight: 800;
    color: #ffffff; /* statt Rot jetzt Weiß */
    line-height: 1;
}

/* Arena und Datum - separater Block */
.evd-mc-card .evd-mc-details {
    text-align: center;
    margin: 0;
}

.evd-mc-card .evd-mc-details p {
    margin: 0;
    line-height: 1.6; /* Wie in der Demo */
    font-size: 18px; /* Wie in der Demo */
}

/* Button Container - Styles für evd-mc-buttons */
.evd-mc-card .evd-mc-buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 0;
    border: none;
    background: transparent;
}

/* Standard Website Button Styles für Match Container - Zusammengefasst */
.evd-mc-card .button-match,
.evd-mc-card .button-ticket,
.evd-mc-card .button-shop,
.evd-mc-card .button-info {
    text-decoration: none;
    padding: 12px 8px;
    border-radius: 4px;
    font-family: 'Redzone BlackReg', sans-serif;
    font-size: 15px !important;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
    margin: 0 !important;
    box-sizing: border-box;
    color: var(--text-weiss) !important;
    background-color: var(--bg-transparent-rot);
    border: 2px solid var(--fuechse-rot);
    line-height: 1;
}

/* Hover-Effekt für alle Buttons */
.evd-mc-card .button-match:hover,
.evd-mc-card .button-ticket:hover,
.evd-mc-card .button-shop:hover,
.evd-mc-card .button-info:hover {
    background-color: var(--fuechse-rot);
    color: var(--text-weiss);
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(223, 9, 20, 0.3);
}

/* Responsive Design - Angepasst an Demo-Struktur */
@media (max-width: 768px) {
    .evd-mc-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 10px;
    }
    
    .evd-mc-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding: 15px;
    }
    
    .evd-mc-card h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
      .evd-mc-card .evd-mc-info {
        gap: 20px;
        margin: 20px 0;
    }
    
    .evd-mc-card .evd-mc-team-logo {
        width: 50px; /* etwas kleiner auf Tablets */
        height: 50px;
        padding: 0; /* kein Hintergrundabstand */
        background: transparent;
        border: 0;
    }
    
    .evd-mc-card .evd-mc-vs {
        font-size: 24px;
    }
    
    .evd-mc-card p {
        font-size: 16px;
        margin: 15px 0;
    }    .evd-mc-card .button-match,
    .evd-mc-card .button-ticket,
    .evd-mc-card .button-shop,
    .evd-mc-card .button-info {
        font-size: 14px !important;
        padding: 8px 6px !important;
        width: 120px !important;
        min-width: 120px !important;
        max-width: 120px !important;
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        line-height: 1 !important;
    }
    
    .evd-mc-card .evd-mc-buttons {
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    .evd-mc-card {
        padding: 10px;
    }
    
    .evd-mc-card h2 {
        font-size: 18px;
    }
      .evd-mc-card .evd-mc-info {
        gap: 15px;
    }
                    .evd-mc-card .evd-mc-team-logo {
                        width: 80px; /* noch etwas kleiner auf kleinen Screens */
                        height: 80px;
                        padding: 0; /* kein Hintergrundabstand */
                        background: transparent;
                        border: 0;
                }
    
    .evd-mc-card .evd-mc-vs {
        font-size: 20px;
    }
      .evd-mc-card p {
        font-size: 14px;
    }      .evd-mc-card .button-match,
      .evd-mc-card .button-ticket,
      .evd-mc-card .button-shop,
      .evd-mc-card .button-info {
        font-size: 13px !important;
        padding: 6px 4px !important;
        width: 100px !important;
        min-width: 100px !important;
        max-width: 100px !important;
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        line-height: 1 !important;
    }
    
    .evd-mc-card .evd-mc-buttons {
        flex-direction: column !important;
        gap: 8px !important;
    }
}

/* Dark Mode Support: Team-Logo Hervorhebung */
@media (prefers-color-scheme: dark) {
    .evd-mc-card .evd-mc-team-logo {
        background: transparent; /* kein roter Hintergrund im Dark Mode */
        border: 0; /* keine Umrandung im Dark Mode */
        border-radius: 10px;
    }
}


