/* Golfhub Turniere – responsive Tabelle */

.gh-turniere {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.gh-turniere-tabelle {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    color: #1A1919; /* CI-Textfarbe */
}

.gh-turniere-tabelle th,
.gh-turniere-tabelle td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e2e2;
    vertical-align: middle;
}

.gh-turniere-tabelle thead th {
    background: #76B82A; /* Golfhub CI-Grün (wie Preise-Sektion) */
    color: #fff;
    font-family: "Eleveth Clean", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.gh-turniere-tabelle tbody tr:nth-child(even) {
    background: #F8F5F5; /* CI-Hellgrau */
}

.gh-turniere-tabelle tbody tr:hover {
    background: #eef6e3; /* leichter Grünton beim Hover */
}

/* Abgesagte Turniere abdimmen */
.gh-turniere-tabelle tr.gh-status-abgesagt td {
    opacity: 0.55;
    text-decoration: line-through;
}
.gh-turniere-tabelle tr.gh-status-abgesagt td:last-child {
    text-decoration: none;
}

/* Buchen-Button */
.gh-buchen-btn {
    display: inline-block;
    padding: 0.45rem 1rem;
    background: #009FE3; /* Golfhub CI-Blau */
    color: #fff !important;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: background 0.15s ease;
}
.gh-buchen-btn:hover {
    background: #0083bb;
}

/* Status-Badges */
.gh-status-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}
.gh-badge-ausgebucht {
    background: #E83759; /* Golfhub CI-Rot (wie Checkliste-Sektion) */
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.75rem;
}
.gh-badge-abgesagt {
    background: #eee;
    color: #666;
}

.gh-turniere-leer {
    padding: 1rem;
    background: #F8F5F5; /* CI-Hellgrau */
    border-radius: 8px;
    text-align: center;
    color: #555;
}

/* ------------------------------------------------------------------
 * Mobil: Tabelle wird zu Karten
 * ---------------------------------------------------------------- */
@media (max-width: 768px) {
    .gh-turniere {
        overflow-x: visible;
    }

    .gh-turniere-tabelle thead {
        display: none;
    }

    .gh-turniere-tabelle,
    .gh-turniere-tabelle tbody,
    .gh-turniere-tabelle tr,
    .gh-turniere-tabelle td {
        display: block;
        width: 100%;
    }

    .gh-turniere-tabelle tr {
        margin-bottom: 1rem;
        border: 1px solid #e2e2e2;
        border-radius: 10px;
        overflow: hidden;
        background: #fff !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    }

    .gh-turniere-tabelle td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        border-bottom: 1px solid #f0f0f0;
        padding: 0.6rem 1rem;
    }

    .gh-turniere-tabelle td:last-child {
        border-bottom: none;
        justify-content: center;
        padding: 0.9rem 1rem;
    }

    .gh-turniere-tabelle td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #555;
        flex-shrink: 0;
    }

    .gh-turniere-tabelle td:last-child::before {
        display: none;
    }

    .gh-buchen-btn {
        width: 100%;
        text-align: center;
    }
}
