/* WM Tippspiel 2026 — Basis-Styles
   Du kannst diese Datei frei anpassen oder in deinem Theme überschreiben.
   Alle Klassen beginnen mit .wmt- um Konflikte zu vermeiden.
-------------------------------------------------- */

/* ── Layout ────────────────────────────────────────── */
.wmt-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: inherit;
}

/* ── Formulare ─────────────────────────────────────── */
.wmt-auth-container { max-width: 420px; margin: 0 auto; padding: 0 16px; }

/* Cleanes Formular ohne Box */
.wmt-form-clean { display: flex; flex-direction: column; gap: 12px; }
.wmt-form { display: flex; flex-direction: column; gap: 12px; }
.wmt-feld { display: flex; flex-direction: column; }

/* Inputs mit Placeholder statt Labels */
.wmt-auth-container .wmt-feld input[type="text"],
.wmt-auth-container .wmt-feld input[type="email"],
.wmt-auth-container .wmt-feld input[type="password"] {
    padding: 14px 16px !important;
    border: none !important;
    border-bottom: 1.5px solid var(--color-border-secondary) !important;
    border-radius: 0 !important;
    font-size: 1rem !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: border-color 0.2s;
    width: 100%;
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
}
.wmt-auth-container .wmt-feld input::placeholder { color: var(--color-text-tertiary); }
.wmt-auth-container .wmt-feld input:focus {
    outline: none !important;
    border-bottom-color: #16a34a !important;
    box-shadow: none !important;
}

.wmt-hinweis-feld { font-size: 0.8rem; color: #9ca3af; margin-top: 4px; }
.wmt-form-fuss { text-align: center; margin-top: 20px; font-size: 0.875rem; color: #9ca3af; }
.wmt-fehler {
    background: #fef2f2;
    border-left: 3px solid #dc2626;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

/* Avatar-Upload im Formular */
.wmt-avatar-upload-feld { flex-direction: row !important; align-items: center; gap: 16px; padding: 12px 0; }
.wmt-avatar-upload-info { display: flex; flex-direction: column; gap: 6px; }

/* Avatar-Upload */
.wmt-avatar-upload { display: flex; align-items: center; gap: 16px; }
.wmt-avatar-vorschau {
    width: 72px; height: 72px;
    border-radius: 50%;
    border: 2px dashed #d1d5db;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0; font-size: 1.5rem;
}
.wmt-avatar-vorschau img { width: 100%; height: 100%; object-fit: cover; }
.wmt-file-input { display: none; }

/* ── Buttons ────────────────────────────────────────── */
.wmt-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; padding: 10px 20px;
    border-radius: 8px; font-size: 0.9rem; font-weight: 600;
    border: 1.5px solid transparent; cursor: pointer;
    text-decoration: none; transition: all 0.15s;
}
.wmt-btn-primary { background: #16a34a; color: #fff; border-color: #16a34a; }
.wmt-btn-primary:hover { background: #15803d; color: #fff; }
.wmt-btn-outline { background: transparent; color: #374151; border-color: #d1d5db; }
.wmt-btn-outline:hover { background: #f9fafb; }
.wmt-btn-secondary { background: #f3f4f6; color: #374151; }
.wmt-btn-block { width: 100%; }
.wmt-btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.wmt-btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ── User-Bar ───────────────────────────────────────── */
.wmt-user-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; background: var(--color-background-secondary);
    border-radius: var(--border-radius-md); margin-bottom: 24px;
    gap: 12px; flex-wrap: wrap;
}
.wmt-user-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.wmt-user-name { font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wmt-avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.wmt-avatar-svg { display: flex; align-items: center; flex-shrink: 0; }
.wmt-user-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wmt-user-link {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 10px; border-radius: var(--border-radius-md);
    font-size: 0.8rem; color: var(--color-text-secondary);
    text-decoration: none; white-space: nowrap;
    border: 0.5px solid var(--color-border-secondary);
    background: var(--color-background-primary);
    transition: all 0.15s;
}
.wmt-user-link:hover { background: var(--color-background-secondary); color: var(--color-text-primary); }
.wmt-user-link .ti { font-size: 14px; }

/* ── Phasen-Block ───────────────────────────────────── */
.wmt-phase-block { margin-bottom: 48px; }
.wmt-phase-header { text-align: center; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 2px solid #e5e7eb; }
.wmt-phase-titel { margin: 0 0 6px; font-size: 1.4rem; }
.wmt-deadline { font-size: 0.875rem; color: #dc2626; font-weight: 600; margin-bottom: 6px; }
.wmt-ko-badge {
    display: inline-block; background: #fef9c3; color: #854d0e;
    padding: 3px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
}

/* ── Spieltag-Gruppierung ────────────────────────────── */
.wmt-spieltag { margin-bottom: 32px; }
.wmt-spieltag-header {
    text-align: center;
    margin-bottom: 12px;
    position: relative;
}
.wmt-spieltag-header::before,
.wmt-spieltag-header::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #e5e7eb;
}
.wmt-spieltag-header::before { left: 0; }
.wmt-spieltag-header::after  { right: 0; }
.wmt-spieltag-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    background: #fff;
    padding: 0 12px;
    position: relative;
    z-index: 1;
}

/* ── Spiele — kein Rahmen, nur Trennlinie ────────────── */
.wmt-spiele-liste { display: flex; flex-direction: column; }
.wmt-spiel {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}
.wmt-spiel:last-child { border-bottom: none; }
.wmt-spiel.wmt-gesperrt { opacity: 0.6; }
.wmt-spiel.wmt-beendet { background: transparent; }
.wmt-spiel.wmt-laufend { background: #fff7ed; border-radius: 8px; padding: 12px 10px; }
@keyframes wmt-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}

/* Status-Labels kompakt */
.wmt-status-label {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px;
    font-size: 0.7rem; font-weight: 700;
    border-radius: 50%;
}
.wmt-status-beendet { background: #dcfce7; color: #15803d; }
.wmt-status-laufend { animation: wmt-pulse 1.5s infinite; }
.wmt-status-gesperrt { color: #9ca3af; font-size: 0.8rem; }

/* Uhrzeit */
.wmt-uhrzeit { font-size: 0.8rem; color: #9ca3af; font-weight: 500; white-space: nowrap; }
.wmt-spiel-datum { display: none; } /* nicht mehr nötig, steht im Spieltag-Header */
.wmt-spiel-teams {
    display: grid;
    grid-template-columns: 44px 1fr auto 1fr;
    align-items: center;
    gap: 10px;
}
.wmt-spiel-zeit {
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; width: 44px;
}
.wmt-team { display: flex; align-items: center; gap: 8px; }
.wmt-team-heim { justify-content: flex-end; text-align: right; flex-direction: row; }
.wmt-team-gast { justify-content: flex-start; flex-direction: row; }
.wmt-flagge { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.wmt-teamname { font-weight: 600; font-size: 0.95rem; }
.wmt-tipp-inputs { display: flex; align-items: center; gap: 6px; }
.wmt-score-input {
    width: 52px; text-align: center;
    padding: 8px 4px; font-size: 1.2rem; font-weight: 700;
    border: 2px solid #d1d5db; border-radius: 8px;
}
.wmt-score-input:focus { border-color: #16a34a; outline: none; }
.wmt-vs { font-weight: 700; color: #9ca3af; font-size: 1.1rem; }
.wmt-tipp-final { font-size: 1.3rem; font-weight: 700; color: #374151; }
.wmt-ergebnis-zeile {
    margin-top: 8px; padding-top: 8px;
    border-top: 1px solid #f3f4f6;
    font-size: 0.8rem; color: #6b7280;
}
.wmt-punkte-gut { color: #16a34a; }
.wmt-punkte-schlecht { color: #dc2626; }
.wmt-spiel-status { font-size: 0.75rem; color: #9ca3af; margin-top: 6px; }

/* ── Tipp-Submit ────────────────────────────────────── */
.wmt-tipp-submit { text-align: center; margin-top: 32px; }
.wmt-submit-hinweis { font-size: 0.8rem; color: #9ca3af; margin-top: 8px; }

/* ── Rangliste ──────────────────────────────────────── */
.wmt-rangliste-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border-tertiary);
}
.wmt-rangliste-titel { margin: 0; font-size: 1.1rem; font-weight: 500; }
.wmt-teilnehmer-count { font-size: 0.8rem; color: var(--color-text-tertiary); }

/* Rangliste — keine Rahmen, nur Trennlinien */
.wmt-rangliste { display: flex; flex-direction: column; }
.wmt-rang-zeile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border-tertiary);
    font-size: 0.875rem;
}
.wmt-rang-zeile:last-child { border-bottom: none; }
.wmt-rang-ich { background: var(--color-background-success); border-radius: var(--border-radius-md); padding: 8px 10px; margin: 2px -10px; }
.wmt-rang-platz { width: 28px; text-align: center; flex-shrink: 0; }
.wmt-platz-zahl { font-size: 0.875rem; font-weight: 500; color: var(--color-text-tertiary); }
.wmt-rang-1 .wmt-platz-zahl { color: #ca8a04; font-weight: 700; }
.wmt-rang-2 .wmt-platz-zahl { color: var(--color-text-secondary); }
.wmt-rang-3 .wmt-platz-zahl { color: #c2410c; }
.wmt-rang-avatar { flex-shrink: 0; }
.wmt-rang-name { flex: 1; font-size: 0.9rem; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--color-text-primary); }
.wmt-rang-stats { font-size: 0.9rem; color: var(--color-text-tertiary); font-weight: 400; margin-left: 8px; white-space: nowrap; flex-shrink: 0; }
.wmt-rang-punkte { text-align: right; flex-shrink: 0; min-width: 60px; }
.wmt-punkte-zahl { font-size: 0.9rem; font-weight: 400; color: #16a34a; display: block; line-height: 1; }
.wmt-punkte-label { font-size: 0.9rem; color: var(--color-text-tertiary); font-weight: 400; }
.wmt-du-badge {
    display: inline-block; background: #16a34a; color: #fff;
    padding: 1px 7px; border-radius: 20px; font-size: 0.68rem;
    margin-left: 6px; vertical-align: middle;
}

/* Preis-Banner — nur Bild, volle Breite */
.wmt-preis-banner {
    margin-bottom: 24px; border-radius: var(--border-radius-lg); overflow: hidden;
}
.wmt-preis-banner img {
    width: 100%; height: auto; display: block;
}

/* ── Stats-Leiste (Meine Tipps) ─────────────────────── */
.wmt-stats-leiste {
    display: flex; gap: 16px; margin-bottom: 24px;
}
.wmt-stat {
    flex: 1; background: #f9fafb; border: 1px solid #e5e7eb;
    border-radius: 10px; padding: 16px; text-align: center;
}
.wmt-stat-zahl { display: block; font-size: 1.8rem; font-weight: 800; color: #16a34a; line-height: 1; }
.wmt-stat-label { font-size: 0.75rem; color: #9ca3af; margin-top: 4px; display: block; }

/* ── Tipp-Liste (Meine Tipps) ───────────────────────── */
.wmt-phase-gruppe { font-size: 1rem; color: #6b7280; margin: 20px 0 10px; padding-bottom: 6px; border-bottom: 1px solid #e5e7eb; }
.wmt-tipp-zeile {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem; flex-wrap: wrap;
}
.wmt-tipp-datum { color: #9ca3af; width: 80px; flex-shrink: 0; }
.wmt-tipp-spiel { flex: 1; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wmt-tipp-score { font-weight: 700; background: #f3f4f6; padding: 2px 10px; border-radius: 20px; }
.wmt-tipp-ergebnis { display: flex; align-items: center; gap: 8px; }
.wmt-ergebnis-score { font-weight: 700; }
.wmt-punkte-badge { padding: 2px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.wmt-punkte-badge.wmt-punkte-gut { background: #dcfce7; color: #15803d; }
.wmt-punkte-badge.wmt-punkte-schlecht { background: #fee2e2; color: #dc2626; }
.wmt-live-badge { background: #fee2e2; color: #dc2626; padding: 2px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }

/* ── Sonstiges ──────────────────────────────────────── */
.wmt-leer { text-align: center; padding: 48px 16px; color: #6b7280; }
.wmt-leer-icon { font-size: 3rem; margin-bottom: 12px; }
.wmt-hinweis { background: #f3f4f6; border-radius: 8px; padding: 14px 16px; color: #374151; }
.wmt-nav-links { margin-top: 32px; padding-top: 16px; border-top: 1px solid #e5e7eb; font-size: 0.875rem; }
.wmt-cta { text-align: center; padding: 32px; background: #f9fafb; border-radius: 10px; margin-top: 24px; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 600px) {
    .wmt-spiel-teams { grid-template-columns: 1fr auto 1fr; gap: 6px; }
    .wmt-teamname { font-size: 0.8rem; }
    .wmt-rang-zeile { grid-template-columns: 36px 40px 1fr auto; gap: 8px; }
    .wmt-preis-banner { flex-direction: column; }
    .wmt-stats-leiste { gap: 8px; }
    .wmt-form-box { padding: 20px; }
}

/* ── TBD-Paarungen (noch nicht bekannt) ─────────────── */
.wmt-spiel.wmt-tbd { opacity: 0.45; }
.wmt-tbd-team { font-style: italic; color: #9ca3af; font-size: 0.85rem; font-weight: 400; }
.wmt-tbd-label { font-size: 1.2rem; color: #d1d5db; }

/* ── Ergebnis-Zeile nach Spielende ──────────────────── */
.wmt-ergebnis-zeile {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    margin-top: 8px; padding: 8px 0 4px;
    border-top: 1px solid #f3f4f6;
    font-size: 0.8rem;
}
.wmt-ergebnis-block { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.wmt-ergebnis-label { font-size: 0.7rem; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.05em; }
.wmt-ergebnis-score { font-size: 1rem; font-weight: 700; color: #111; }
.wmt-ergebnis-sep { color: #d1d5db; }

/* ── AGB / Teilnahmebedingungen ─────────────────────── */
.wmt-agb-feld { margin-top: 8px; }
.wmt-agb-box {
    border: 0.5px solid var(--color-border-secondary);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}
.wmt-agb-details { border-bottom: 0.5px solid var(--color-border-tertiary); }
.wmt-agb-summary {
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--color-text-info);
    cursor: pointer;
    list-style: none;
    display: flex; align-items: center; gap: 6px;
}
.wmt-agb-summary::-webkit-details-marker { display: none; }
.wmt-agb-summary::before { content: '+'; font-weight: 500; }
details[open] .wmt-agb-summary::before { content: '−'; }
.wmt-agb-text {
    padding: 14px;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-height: 220px;
    overflow-y: auto;
    border-bottom: 0.5px solid var(--color-border-tertiary);
}
.wmt-agb-text p { margin: 0 0 8px; }
.wmt-agb-text h3 { font-size: 0.82rem; font-weight: 500; margin: 12px 0 4px; }
.wmt-agb-label {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    cursor: pointer;
}
.wmt-agb-label input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; accent-color: #16a34a; }
.wmt-pflicht-hinweis { font-size: 0.75rem; color: var(--color-text-tertiary); margin-top: 4px; }

/* ── Erfolgs-Meldung ────────────────────────────────── */
.wmt-erfolg {
    background: var(--color-background-success);
    border-left: 3px solid #16a34a;
    color: var(--color-text-success);
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

/* Deaktiviertes E-Mail-Feld im Profil */
.wmt-auth-container .wmt-feld input:disabled {
    color: var(--color-text-tertiary) !important;
    cursor: not-allowed;
    border-bottom-color: var(--color-border-tertiary) !important;
}

/* ── iCal-Link ──────────────────────────────────────── */
.wmt-ical-link {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--color-text-info);
    text-decoration: none; font-size: 0.875rem;
}
.wmt-ical-link:hover { text-decoration: underline; }

/* Ausstehende Punkte */
.wmt-punkte-ausstehend { color: var(--color-text-tertiary) !important; font-size: 1rem !important; }

.wmt-punkte-inline {
    font-size: 0.9rem; font-weight: 400; color: #16a34a;
    white-space: nowrap;
}
.wmt-punkte-inline.wmt-punkte-ausstehend {
    color: var(--color-text-tertiary); font-weight: 400;
}

/* ── Rangliste Mobile ────────────────────────────────── */
@media (max-width: 480px) {
    .wmt-rang-stats { display: none; }
    .wmt-rang-name { font-size: 0.85rem; }
    .wmt-rang-zeile { gap: 8px; padding: 9px 0; }
    .wmt-rang-platz { width: 22px; }
    .wmt-rang-avatar img,
    .wmt-rang-avatar svg { width: 32px; height: 32px; }
    .wmt-punkte-inline { font-size: 0.85rem; }
}

.wmt-rang-name-link {
    color: var(--color-text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border-secondary);
}
.wmt-rang-name-link:hover { border-bottom-color: #16a34a; color: #16a34a; }

/* ── Gruppentabellen ────────────────────────────────── */
.wmt-gruppen-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 16px;
}
.wmt-gruppe {
    border-bottom: 1px solid var(--color-border-tertiary);
    padding-bottom: 16px;
}
.wmt-gruppe-header {
    margin-bottom: 8px;
}
.wmt-gruppe-titel {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-tertiary);
}
.wmt-gruppe-tabelle {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.wmt-gruppe-tabelle th {
    padding: 6px 4px;
    color: var(--color-text-tertiary);
    font-weight: 400;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--color-border-tertiary);
}
.wmt-gruppe-tabelle td {
    padding: 8px 4px;
    border-bottom: 1px solid var(--color-border-tertiary);
    color: var(--color-text-primary);
    font-size: 0.9rem;
    font-weight: 400;
}
.wmt-gruppe-tabelle tr:last-child td { border-bottom: none; }
.wmt-th-platz { width: 24px; text-align: center; color: var(--color-text-tertiary); }
.wmt-th-team { text-align: left; }
.wmt-th-zahl { text-align: center; width: 32px; }
.wmt-team-zelle { display: flex; align-items: center; gap: 8px; }
.wmt-flagge-sm { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.wmt-team-kurz { font-size: 0.9rem; font-weight: 400; }
.wmt-qualifiziert td:first-child { border-left: 3px solid #16a34a; }
.wmt-dritter td:first-child { border-left: 3px solid #f59e0b; }
.wmt-gruppen-legende { font-size: 0.75rem; color: var(--color-text-tertiary); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wmt-legende-item { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.wmt-qualifiziert-dot { background: #16a34a; }
.wmt-dritter-dot { background: #f59e0b; }
.wmt-gruppen-stand { font-size: 0.75rem; color: var(--color-text-tertiary); }

@media (max-width: 600px) {
    .wmt-gruppen-grid { grid-template-columns: 1fr; }
}

.wmt-user-link-aktiv {
    font-weight: 600;
    color: var(--color-text-primary);
    padding: 5px 10px;
    font-size: 0.8rem;
    cursor: default;
}
