
.feed-dashboard {
    width: 100%;
    margin: 20px 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
}


/* =========================================
   HEADER
   ========================================= */

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.feed-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}

.feed-subtitle {
    margin-top: 4px;
    color: #777;
    font-size: 13px;
}

.feed-updated {
    color: #777;
    font-size: 12px;
    white-space: nowrap;
}

.feed-updated strong {
    color: #333;
}


/* =========================================
   TABELLE
   ========================================= */

.feed-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.feed-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
}


/* Tabellenkopf */

.feed-table th {
    padding: 10px 12px;
    background: #f3f3f3;
    border-bottom: 2px solid #ddd;
    text-align: left;
    white-space: nowrap;
    font-weight: 600;
}


/* Tabellenzellen */

.feed-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #e5e5e5;
    white-space: nowrap;
}


/* Hover */

.feed-table tbody tr:hover {
    background: #f8f8f8;
}


/* Letzte Zeile */

.feed-table tbody tr:last-child td {
    border-bottom: none;
}


/* =========================================
   DATUM / UHRZEIT
   ========================================= */

.feed-date {
    color: #555;
}

.feed-time {
    font-weight: 600;
}


/* =========================================
   SATELLIT
   ========================================= */

.feed-satellite {
    font-weight: 600;
}


/* =========================================
   TECHNISCHE DATEN
   Frequenz / Polarisation / SR
   ========================================= */

/*
 * Frequenz
 */

.feed-frequency {
    min-width: 90px;
    text-align: center !important;
    font-family: monospace;
    white-space: nowrap;
}


/*
 * Polarisation
 */

.feed-pol {
    width: 55px;
    min-width: 55px;
    text-align: center !important;
    font-weight: 600;
    white-space: nowrap;
}


/*
 * Symbolrate
 */

.feed-symbolrate {
    min-width: 80px;
    text-align: center !important;
    font-family: monospace;
    white-space: nowrap;
}


/*
 * Auch die Überschriften dieser drei Spalten
 * exakt mittig ausrichten.
 *
 * 4 = Frequenz
 * 5 = Pol.
 * 6 = SR
 */

.feed-table th:nth-child(4),
.feed-table th:nth-child(5),
.feed-table th:nth-child(6) {
    text-align: center;
}


/*
 * Und zusätzlich die Tabellenwerte.
 */

.feed-table td:nth-child(4),
.feed-table td:nth-child(5),
.feed-table td:nth-child(6) {
    text-align: center;
}


/* =========================================
   VERSCHLÜSSELUNG
   ========================================= */

.feed-encryption {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}


/*
 * FTA / unverschlüsselt
 */

.feed-encryption.fta {
    background: #e8f5e9;
    color: #287a32;
}


/*
 * Verschlüsselt
 */

.feed-encryption.encrypted {
    background: #f3e8e8;
    color: #9b3333;
}


.feed-encryption-icon {
    font-size: 13px;
}


/* =========================================
   KATEGORIE
   ========================================= */

.feed-category {
    color: #444;
}


/* =========================================
   FEHLER
   ========================================= */

.feed-error {
    padding: 15px;
    border: 1px solid #e0b4b4;
    border-radius: 5px;
    background: #fff3f3;
    color: #8a2222;
}


/* =========================================
   KEINE EINTRÄGE
   ========================================= */

.feed-empty {
    padding: 30px;
    text-align: center;
    color: #777;
    border: 1px solid #ddd;
    border-radius: 5px;
}


/* =========================================
   FOOTER
   ========================================= */

.feed-footer {
    margin-top: 8px;
    font-size: 11px;
    color: #888;
}

.feed-footer a {
    color: inherit;
    text-decoration: underline;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

    /* =========================================
       HEADER
       ========================================= */

    .feed-header {
        align-items: center;
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .feed-header h2 {
        text-align: center;
    }

    .feed-updated {
        white-space: normal;
        text-align: center;
    }


    /* =========================================
       TABELLE ALS MOBILE KARTEN
       ========================================= */

    .feed-table-wrapper {
        overflow-x: visible;
        border: none;
    }

    .feed-table {
        width: 100%;
        display: block;
        font-size: 13px;
        background: transparent;
    }


    /* Tabellenkopf ausblenden */

    .feed-table thead {
        display: none;
    }


    /* Jede Zeile wird zu einer Karte */

    .feed-table tbody {
        display: block;
        width: 100%;
    }

    .feed-table tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        margin-bottom: 10px;
        padding: 10px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 6px;
    }


    .feed-table tbody tr:last-child {
        margin-bottom: 0;
    }


    /* Zellen */

    .feed-table td {
        display: block;
        width: auto;
        padding: 5px 6px;
        border: none;
        white-space: normal;
        text-align: left;
    }


    /* =========================================
       MOBILE BESCHRIFTUNGEN
       ========================================= */

    .feed-table td::before {
        display: block;
        margin-bottom: 2px;
        color: #888;
        font-size: 10px;
        font-weight: normal;
        text-transform: uppercase;
    }


    /* Datum */

    .feed-table td:nth-child(1)::before {
        content: "Datum";
    }


    /* Uhrzeit */

    .feed-table td:nth-child(2)::before {
        content: "Uhrzeit";
    }


    /* Satellit */

    .feed-table td:nth-child(3)::before {
        content: "Satellit";
    }


    /* Frequenz */

    .feed-table td:nth-child(4)::before {
        content: "Frequenz";
    }


    /* Polarisation */

    .feed-table td:nth-child(5)::before {
        content: "Pol.";
    }


    /* SR */

    .feed-table td:nth-child(6)::before {
        content: "SR";
    }


    /* Verschlüsselung */

    .feed-table td:nth-child(7)::before {
        content: "Verschlüsselung";
    }


    /* Kategorie */

    .feed-table td:nth-child(8)::before {
        content: "Kategorie";
    }


    /* =========================================
       SATELLIT ÜBER DIE GANZE BREITE
       ========================================= */

    .feed-table td:nth-child(3) {
        grid-column: 1 / -1;
        padding-top: 8px;
        padding-bottom: 8px;
        font-size: 14px;
    }

    .feed-satellite {
        font-weight: 600;
    }


    /* =========================================
       TECHNISCHE WERTE
       ========================================= */

    .feed-frequency,
    .feed-pol,
    .feed-symbolrate {
        min-width: 0;
        width: auto;
        text-align: center !important;
        font-family: monospace;
    }


    /* =========================================
       VERSCHLÜSSELUNG
       ========================================= */

    .feed-table td:nth-child(7) {
        text-align: left;
    }


    /* =========================================
       KATEGORIE
       ========================================= */

    .feed-category {
        white-space: normal;
        overflow-wrap: anywhere;
    }


    /* =========================================
       FOOTER
       ========================================= */

    .feed-footer {
        text-align: center;
        line-height: 1.5;
    }
}
