/* ============================================================================
   BASIS TABELLEN-STYLES
   ============================================================================ */

.data-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.data-table th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table thead tr {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}


/* ============================================================================
   KATEGORIE-HEADER (Analytics, DRM, etc.)
   ============================================================================ */

.category-header td {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    padding: 16px 12px;
    font-size: 15px;
    font-weight: 600;
    border-top: 3px solid #3498db;
    position: sticky;
    top: 0;
    z-index: 10;
}

.category-total {
    color: var(--gi-body-font-color);
    font-weight: normal;
    font-size: 14px;
    margin-left: 8px;
}


/* ============================================================================
   SPACER ZWISCHEN KATEGORIEN
   ============================================================================ */

.category-spacer {
    height: 40px;
    background: var(--gi-site-body);
    border-left: none;
    border-right: none;
}

.category-spacer td {
    height: 20px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    line-height: 0;
}

/* Ersten Spacer ausblenden (vor erster Kategorie) */
tbody .category-spacer:first-child {
    display: none;
}


/* ============================================================================
   DATEN-ZEILEN (Firmen, Beschreibungen)
   ============================================================================ */

.data-row {
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.2s ease;
}

.data-row td {
    padding: 12px;
    vertical-align: middle;
}

.data-row:hover {
    transform: translateX(2px);
}


/* ============================================================================
   TABELLEN-ZELLEN (Spalten)
   ============================================================================ */

.firma-cell {
    width: 20%;
    font-weight: 500;
    color: var(--gi-body-font-color);
}

.desc-cell {
    width: 50%;
    color: var(--gi-body-font-color);
    font-size: 14px;
}

.url-cell {
    width: 5%;
    text-align: center;
}

.amount-cell {
    width: 25%;
    text-align: right;
}


/* ============================================================================
   SUCHLINK (🔍 Icon)
   ============================================================================ */

.search-link {
    text-decoration: none;
    font-size: 16px;
    opacity: 0.6;
    transition: all 0.2s;
    display: inline-block;
}

.search-link:hover {
    opacity: 1;
    transform: scale(1.2);
}


/* ============================================================================
   METRIKEN & BALKEN-VISUALISIERUNG
   ============================================================================ */

.metric-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.bar-viz {
    height: 6px;
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
    border-radius: 3px;
    transition: all 0.3s ease;
    max-width: 100%;
    min-width: 2px;
    justify-self: end;
    box-shadow: 0 1px 3px rgba(52, 152, 219, 0.3);
}

.bar-viz.top-metric {
    background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 1px 3px rgba(231, 76, 60, 0.3);
}

.metric-bar .value {
    font-weight: 700;
    color: var(--gi-body-font-color);
    font-size: 14px;
    width: 60px;
    text-align: right;
}

.bar-viz.top-metric + .value {
    color: #e74c3c;
}


/* ============================================================================
   HOVER-EFFEKTE
   ============================================================================ */

.data-row:hover .bar-viz {
    height: 8px;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.5);
}

.data-row:hover .bar-viz.top-metric {
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.5);
}


/* ============================================================================
   ÜBERSICHTSTABELLE (Oben)
   ============================================================================ */

.overview-table {
    margin: 30px 0;
}

.overview-table .data-row td {
    padding: 10px 12px;
}


/* ============================================================================
   ÜBERSCHRIFTEN
   ============================================================================ */

.data-table caption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ============================================================================
   RESPONSIVE (Mobile)
   ============================================================================ */

@media (max-width: 768px) {
    .firma-cell {
        width: 30%;
    }
    
    .desc-cell {
        width: 40%;
        font-size: 13px;
    }
	div.bar-viz {display:none;}
	.metric-bar .value {width:100%;}
    
    .amount-cell {
        width: 30%;
    }
    
    .bar-viz {
        max-width: 40px;
    }
}