﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NS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GZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}
/* Apple-ish clean vibes */
:root {
    --bg: #f5f6f7;
    --card: #ffffff;
    --text: #0b0c0d;
    --muted: #6b7280;
    --ring: #e5e7eb;
    --accent: #0a84ff; /* iOS Blau */
    --shadow: 0 8px 24px rgba(0,0,0,.06);
    --radius: 16px;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, system-ui, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.page {
    max-width: 980px;
    margin: 40px auto;
    padding: 0 16px;
}

.hero h1 {
    font-size: 32px;
    margin: 0;
    letter-spacing: -.02em;
}

.sub {
    color: var(--muted);
    margin-top: 6px;
}

.segment {
    display: inline-flex;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--ring);
    border-radius: 999px;
    box-shadow: var(--shadow);
    margin: 20px 0 24px 0;
}

.seg-btn {
    border: 0;
    background: transparent;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
}

    .seg-btn.active {
        background: var(--accent);
        color: #fff;
    }

.card {
    background: var(--card);
    border: 1px solid var(--ring);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

    .card h2 {
        margin-top: 0;
        font-size: 22px;
    }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-row select, .form-row input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--ring);
    border-radius: 12px;
    background: #fff;
    outline: none;
}

.form-row small {
    color: var(--muted);
    display: block;
    margin-top: 6px;
}

.pill-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pill {
    border: 1px solid var(--ring);
    background: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
}

    .pill.active {
        background: #eef5ff;
        border-color: var(--accent);
        color: var(--accent);
    }

.actions {
    margin-top: 16px;
}

button.primary {
    background: var(--accent);
    color: #fff;
    border: 0;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

    button.primary:hover {
        filter: brightness(0.95);
    }

.result {
    margin-top: 16px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid var(--ring);
    border-radius: 12px;
    color: #111827;
}
.result2 {
    margin-top: 16px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid var(--ring);
    border-radius: 12px;
    color: red;
}

}
/* ==== Apple-Style nur für den rechten Content ==== */
.apple {
    max-width: 980px;
    margin: 32px auto;
    padding: 0 24px 56px;
    font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Inter,system-ui,Roboto,Arial,sans-serif;
    color: #0b0c0d;
}

    .apple .hero h1 {
        font-size: 34px;
        margin: 0;
        letter-spacing: -.02em;
    }

    .apple .sub {
        color: #6b7280;
        margin: .35rem 0 1.25rem;
    }

    .apple .card {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        box-shadow: 0 12px 30px rgba(0,0,0,.08);
        padding: 20px;
        margin-top: 8px;
    }

    .apple .segment {
        display: inline-flex;
        gap: 0;
        padding: 4px;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 999px;
        box-shadow: 0 8px 22px rgba(0,0,0,.06);
        margin: 18px 0 22px;
    }

    .apple .seg-btn {
        border: 0;
        background: transparent;
        padding: 8px 16px;
        border-radius: 999px;
        cursor: pointer;
        font-weight: 600;
    }

        .apple .seg-btn.active {
            background: #0a84ff;
            color: #fff;
        }

    .apple .grid {
        display: grid;
        grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
        gap: 16px;
        margin-top: 12px;
    }

    .apple .form-row {
        margin-bottom: 14px;
    }

        .apple .form-row label {
            display: block;
            font-weight: 600;
            margin-bottom: 6px;
        }

    .apple select,
    .apple input[type="number"] {
        width: 100%;
        max-width: 420px;
        padding: 10px 12px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #fff;
        outline: none;
        font: inherit;
    }

        .apple select:focus,
        .apple input[type="number"]:focus {
            border-color: #cfd6ff;
            box-shadow: 0 0 0 4px rgba(10,132,255,.15);
        }

    .apple .pill-group {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .apple .pill {
        border: 1px solid #e5e7eb;
        background: #fff;
        color: #0b0c0d;
        border-radius: 999px;
        padding: 8px 14px;
        cursor: pointer;
    }

        .apple .pill.active {
            background: #eef5ff;
            border-color: #0a84ff;
            color: #0a84ff;
        }

    .apple .actions {
        margin-top: 14px;
    }

    .apple button.primary {
        background: #0a84ff;
        color: #fff;
        border: 0;
        padding: 10px 16px;
        border-radius: 12px;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 6px 18px rgba(10,132,255,.25);
    }

        .apple button.primary:hover {
            filter: brightness(.96);
        }

    .apple .result {
        margin-top: 16px;
        padding: 12px 14px;
        background: #f8fafc;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        color: #111827;
    }
.standings-wrap {
    overflow-x: auto;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

    .standings-table thead th {
        text-align: left;
        font-weight: 600;
        padding: 10px 12px;
        border-bottom: 1px solid #e9e9ee;
        background: #fafafa;
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .standings-table tbody td {
        padding: 10px 12px;
        border-bottom: 1px solid #f0f0f5;
        vertical-align: middle;
    }

    .standings-table tbody tr:hover {
        background: #fafbff;
    }

.rank {
    width: 44px;
    color: #6b7280;
}

.club {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
}

.crest {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0,0,0,.06);
}

.club-name {
    font-weight: 600;
}

.gd.pos {
    color: #0f9d58;
    font-weight: 600;
}

.gd.neg {
    color: #d93025;
    font-weight: 600;
}

.gd.neu {
    color: #6b7280;
    font-weight: 600;
}

.pts {
    display: inline-block;
    min-width: 36px;
    text-align: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
}

@media (max-width: 720px) {
    .standings-table thead th:nth-child(3),
    .standings-table thead th:nth-child(4),
    .standings-table thead th:nth-child(5),
    .standings-table thead th:nth-child(6),
    .standings-table thead th:nth-child(7) {
        display: none;
    }

    .standings-table tbody td:nth-child(3),
    .standings-table tbody td:nth-child(4),
    .standings-table tbody td:nth-child(5),
    .standings-table tbody td:nth-child(6),
    .standings-table tbody td:nth-child(7) {
        display: none;
    }
}

/*Einzelspiel h2h*/
/* ===== H2H (Letztes Duell) – Apple-style card ===== */
.h2h-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    padding: 18px;
}

.h2h-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.h2h-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0;
}

.h2h-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 0.9rem;
}

.h2h-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f6f7fb;
    border: 1px solid #e9ecf3;
    font-weight: 600;
    color: #4b5563;
}

.h2h-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
}

.h2h-team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.h2h-crest {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0,0,0,.06);
    object-fit: cover;
    background: #fff;
}

.h2h-name {
    font-weight: 700;
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h2h-score {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    padding: 6px 14px;
    border-radius: 14px;
    background: #f5f7ff;
    border: 1px solid #dfe6ff;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
    font-size: 28px;
}

.h2h-footer {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-size: .92rem;
}

.h2h-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c7ccd6;
}

/* Loading + Error (optional, same vibe) */
.h2h-loading,
.h2h-error {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fafafa;
    color: #4b5563;
}

.h2h-error {
    background: #fff5f5;
    border-color: #fecaca;
    color: #991b1b;
}

/* Responsive tweak */
@media (max-width: 520px) {
    .h2h-body {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .h2h-score {
        min-width: 0;
        width: 100%;
    }

    .h2h-team {
        justify-content: center;
    }
}

