/* ======================================================
   Tankstrategie – Seitenspezifisches CSS
   ====================================================== */

/* Datum neben Titel */
.ts-date {
    font-size: 0.55em;
    font-weight: 400;
    color: #666;
    display: block;
    margin-top: 2px;
}

/* Intro */
.ts-intro {
    background: #f0f7ff;
    border-left: 4px solid #2563eb;
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 4px;
    line-height: 1.6;
}
.ts-intro p { margin: 0 0 8px; }
.ts-intro p:last-child { margin-bottom: 0; }

/* Allgemeine Sektionen */
.ts-section {
    margin-bottom: 32px;
}
.ts-section h2 {
    font-size: 1.35rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 6px;
    margin-bottom: 16px;
}
.ts-section h3 {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
}
.ts-section h4 {
    font-size: 1rem;
    margin-top: 16px;
    margin-bottom: 8px;
    color: #374151;
}
.ts-section ul {
    padding-left: 20px;
    line-height: 1.65;
}
.ts-section li {
    margin-bottom: 6px;
}
.ts-section p {
    line-height: 1.65;
    margin-bottom: 12px;
}

/* Kurzfassung */
.ts-kurzfassung ul {
    list-style: none;
    padding: 0;
}
.ts-kurzfassung li {
    padding: 8px 12px;
    background: #fafafa;
    border-left: 3px solid #2563eb;
    margin-bottom: 6px;
    border-radius: 2px;
}

/* Tankzeit */
.ts-tankzeit-box {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
}
.ts-label {
    font-size: 0.85rem;
    color: #666;
    display: block;
}
.ts-value {
    font-weight: 600;
    font-size: 1rem;
}
.ts-value--big {
    font-size: 1.4rem;
    color: #166534;
}
.ts-tankzeit-hinweis {
    width: 100%;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
}
.ts-hinweis--warnung {
    background: #fef3c7;
    color: #92400e;
    border-left: 3px solid #f59e0b;
}
.ts-tankzeit-gruende {
    padding-left: 20px;
    color: #4b5563;
    font-size: 0.95rem;
}

/* Meiden-Cards */
.ts-marken-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.ts-card {
    flex: 1 1 280px;
    max-width: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.ts-card--meiden {
    border: 1px solid #fca5a5;
}
.ts-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-weight: 600;
}
.ts-card--meiden .ts-card-header {
    background: #fef2f2;
    color: #991b1b;
}
.ts-card-rank {
    font-size: 1.1rem;
    opacity: .6;
}
.ts-card-name {
    flex: 1;
    font-size: 1.05rem;
}
.ts-card-score {
    font-size: 0.85rem;
    background: #991b1b;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
}
.ts-card-body {
    padding: 14px;
}
.ts-card-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}
.ts-metric {
    text-align: center;
    padding: 6px;
    background: #f9fafb;
    border-radius: 4px;
}
.ts-metric-label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 2px;
}
.ts-metric-value {
    font-weight: 700;
    font-size: 1rem;
    color: #111;
}
.ts-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 8px;
}
.ts-badge--raffinerie {
    background: #dbeafe;
    color: #1e40af;
}
.ts-ersparnis {
    background: #ecfdf5;
    color: #065f46;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
}

/* Tabellen */
.ts-bevorzugen-table-wrap {
    overflow-x: auto;
}
.ts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.ts-table th {
    background: #f3f4f6;
    text-align: left;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}
.ts-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f3f4f6;
}
.ts-table tbody tr:hover {
    background: #f9fafb;
}

/* Gleichgewicht-Stufen */
.ts-gleichgewicht-stufen {
    display: grid;
    gap: 12px;
}
.ts-gleichgewicht-stufe {
    background: #f9fafb;
    border-left: 3px solid #6366f1;
    padding: 12px 16px;
    border-radius: 2px;
}
.ts-gleichgewicht-stufe h4 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    color: #4338ca;
}
.ts-gleichgewicht-stufe p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
}

/* Scores Detail */
.ts-scores-detail dl {
    margin: 0;
}
.ts-scores-detail dt {
    font-weight: 600;
    margin-top: 12px;
    color: #1f2937;
}
.ts-scores-detail dd {
    margin: 4px 0 0 0;
    padding-left: 16px;
    color: #4b5563;
    line-height: 1.55;
}

/* Algo-Hinweis */
.ts-hinweis--algo {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 16px 20px;
    margin-top: 24px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #374151;
}

/* Methode */
.ts-methode ul {
    list-style: disc;
}

/* Responsive */
@media (max-width: 640px) {
    .ts-card {
        max-width: 100%;
    }
    .ts-card-metrics {
        grid-template-columns: 1fr 1fr;
    }
    .ts-tankzeit-box {
        flex-direction: column;
        align-items: flex-start;
    }
    .ts-value--big {
        font-size: 1.2rem;
    }
}
