/* ----------------------------------------------------------
   TV-FRONTEND.CSS – Desktop Ansicht (unverändert)
---------------------------------------------------------- */

table.tv-frontend {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    margin-bottom: 20px;
}

table.tv-frontend th,
table.tv-frontend td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

table.tv-frontend th {
    background-color: #f4f4f4;
    font-weight: bold;
}

table.tv-frontend tr:nth-child(even) {
    background-color: #f9f9f9;
}

table.tv-frontend a {
    color: #0073aa;
    text-decoration: none;
}

table.tv-frontend a:hover {
    text-decoration: underline;
}

/* ----------------------------------------------------------
   MONATSÜBERSCHRIFTEN IM FRONTEND
---------------------------------------------------------- */

.tv-month-title {
    margin: 30px 0 10px 0;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    font-family: Arial, sans-serif;
    border-left: none;
    padding-left: 0;
}

/* ----------------------------------------------------------
   RESPONSIVE MOBILE DARSTELLUNG
---------------------------------------------------------- */
@media (max-width: 768px) {

    /* Tabellenstruktur auflösen */
    table.tv-frontend,
    table.tv-frontend thead,
    table.tv-frontend tbody,
    table.tv-frontend th,
    table.tv-frontend td,
    table.tv-frontend tr {
        display: block;
        width: 100%;
    }

    /* Kopfzeile ausblenden */
    table.tv-frontend thead {
        display: none;
    }

    /* Jede Zeile wird zu einer Card */
    table.tv-frontend tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        padding: 10px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    /* Zellen werden untereinander gestapelt */
    table.tv-frontend td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding: 12px 12px 12px 130px; /* Platz für Label */
        min-height: 40px;
        font-size: 15px;
    }

    /* letzte Zeile ohne Border */
    table.tv-frontend td:last-child {
        border-bottom: none;
    }

    /* Labels anzeigen */
    table.tv-frontend td:before {
        content: attr(data-label);
        position: absolute;
        left: 12px;
        top: 12px;
        width: 110px;
        font-weight: bold;
        color: #333;
        font-size: 14px;
        text-transform: none;
    }
}
