/**
 * Motor-Kompakt Sprit-Rechner v1.2.0
 * Läuft auf dunklem Theme mit H2-Gradient-Text.
 * Strategie: kompletten Wrapper in weißen "Card"-Container packen,
 * jede Textfarbe und Heading-Farbe explizit setzen mit !important.
 */

/* ---- Container mit eigenem hellen Hintergrund ---- */

.mkf-oel-wrapper {
    max-width: 860px;
    margin: 2em auto;
    padding: 28px;
    background: #ffffff !important;
    color: #1e2a38 !important;
    border-radius: 14px;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    -webkit-text-fill-color: initial;
}

.mkf-oel-wrapper,
.mkf-oel-wrapper * {
    box-sizing: border-box;
}

/* ---- Alle Headings HART überschreiben (Theme-Gradient ausschalten) ---- */

.mkf-oel-wrapper h1,
.mkf-oel-wrapper h2,
.mkf-oel-wrapper h3,
.mkf-oel-wrapper h4,
.mkf-oel-wrapper h5,
.mkf-oel-wrapper h6 {
    color: #0d1a2b !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #0d1a2b !important;
    text-fill-color: #0d1a2b !important;
    text-shadow: none !important;
    font-weight: 700;
    filter: none !important;
    /* verhindert theme-eigene Pseudoelemente vor der Überschrift */
    padding-left: 0 !important;
}

.mkf-oel-wrapper h1::before,
.mkf-oel-wrapper h2::before,
.mkf-oel-wrapper h3::before,
.mkf-oel-wrapper h4::before,
.mkf-oel-wrapper h5::before,
.mkf-oel-wrapper h6::before {
    display: none !important;
    content: none !important;
}

/* Absätze und Listen im Wrapper: dunkler Text auf Weiß */

.mkf-oel-wrapper p,
.mkf-oel-wrapper li,
.mkf-oel-wrapper span,
.mkf-oel-wrapper small,
.mkf-oel-wrapper label,
.mkf-oel-wrapper strong,
.mkf-oel-wrapper em,
.mkf-oel-wrapper code {
    color: #2c3a4e;
    -webkit-text-fill-color: #2c3a4e;
    background: transparent !important;
    background-image: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
}

.mkf-oel-wrapper strong {
    color: #0d1a2b;
    -webkit-text-fill-color: #0d1a2b;
    font-weight: 700;
}

.mkf-oel-wrapper a {
    color: #0d1a2b !important;
    -webkit-text-fill-color: #0d1a2b !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    background: transparent !important;
    background-image: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
}

.mkf-oel-wrapper a:hover {
    color: #f2b100 !important;
    -webkit-text-fill-color: #f2b100 !important;
}

/* ---- Rechner-Tool ---- */

.mkf-oel-tool {
    background: #ffffff;
    border: 1px solid #e6e9ee;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 2px 10px rgba(20, 30, 50, 0.04);
}

.mkf-oel-header h2 {
    margin: 0 0 8px 0;
    font-size: 1.7em;
    line-height: 1.2;
}

.mkf-oel-lead {
    margin: 0 0 18px 0;
    color: #47546a !important;
    -webkit-text-fill-color: #47546a !important;
    font-size: 1em;
}

.mkf-oel-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 640px) {
    .mkf-oel-form {
        grid-template-columns: 1fr 1fr;
    }
    .mkf-oel-row.mkf-oel-row-wide {
        grid-column: span 2;
    }
}

.mkf-oel-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mkf-oel-row label {
    font-weight: 600;
    font-size: 0.95em;
    color: #1e2a38 !important;
    -webkit-text-fill-color: #1e2a38 !important;
}

.mkf-oel-unit {
    color: #6b7887 !important;
    -webkit-text-fill-color: #6b7887 !important;
    font-weight: 400;
    font-size: 0.9em;
}

.mkf-oel-row input,
.mkf-oel-row select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #d5dae2;
    border-radius: 8px;
    font-size: 1em;
    background: #ffffff !important;
    color: #1e2a38 !important;
    -webkit-text-fill-color: #1e2a38 !important;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    font-family: inherit;
}

.mkf-oel-row input:focus,
.mkf-oel-row select:focus {
    outline: none;
    border-color: #f2b100;
    box-shadow: 0 0 0 3px rgba(242, 177, 0, 0.18);
}

.mkf-oel-hint {
    color: #7a8494 !important;
    -webkit-text-fill-color: #7a8494 !important;
    font-size: 0.82em;
    line-height: 1.4;
}

/* ---- Ergebnisblock (dunkler Kontrast, gelber Highlight) ---- */

.mkf-oel-result {
    margin-top: 22px;
    padding: 22px;
    background: linear-gradient(135deg, #0d1a2b 0%, #1a2b45 100%) !important;
    color: #ffffff !important;
    border-radius: 12px;
}

.mkf-oel-result-main {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    gap: 10px;
    flex-wrap: wrap;
}

.mkf-oel-result-label {
    font-size: 0.95em;
    opacity: 0.9;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.mkf-oel-result-value {
    font-size: 2.1em;
    font-weight: 700;
    color: #ffcc4d !important;
    -webkit-text-fill-color: #ffcc4d !important;
    line-height: 1.1;
    white-space: nowrap;
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
}

.mkf-oel-result-details {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 500px) {
    .mkf-oel-result-details {
        grid-template-columns: 1fr 1fr;
        gap: 10px 22px;
    }
}

.mkf-oel-result-details li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 4px 0;
    gap: 8px;
    background: none !important;
    list-style: none !important;
}

.mkf-oel-result-details li::before,
.mkf-oel-result-details li::marker {
    content: none !important;
    display: none !important;
}

.mkf-oel-result-details span {
    opacity: 0.9;
    font-size: 0.95em;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.mkf-oel-result-details strong {
    font-weight: 600;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-variant-numeric: tabular-nums;
}

.mkf-oel-disclaimer {
    margin: 18px 0 0 0;
    color: #7a8494 !important;
    -webkit-text-fill-color: #7a8494 !important;
    font-size: 0.82em;
    line-height: 1.5;
}

/* ---- SEO-Content unterhalb (auf weißem Wrapper) ---- */

.mkf-oel-info {
    margin-top: 36px;
    padding-top: 8px;
}

.mkf-oel-info h2 {
    font-size: 1.5em;
    margin: 1.6em 0 .6em 0;
}

.mkf-oel-info h3 {
    font-size: 1.15em;
    margin: 1.2em 0 .5em 0;
}

.mkf-oel-info p,
.mkf-oel-info li {
    color: #2c3a4e !important;
    -webkit-text-fill-color: #2c3a4e !important;
    font-size: 1em;
}

.mkf-oel-info ul {
    padding-left: 1.4em;
}

.mkf-oel-info ul li {
    margin: .4em 0;
}

/* Antwort-Kapsel */

.mkf-oel-answer {
    background: #fffbea !important;
    border-left: 4px solid #f2b100;
    padding: 14px 16px;
    border-radius: 4px 8px 8px 4px;
    margin: 18px 0 24px 0;
}

.mkf-oel-answer p {
    margin: 0;
    color: #1e2a38 !important;
    -webkit-text-fill-color: #1e2a38 !important;
}

.mkf-oel-answer code {
    background: #ffedb0 !important;
    color: #0d1a2b !important;
    -webkit-text-fill-color: #0d1a2b !important;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.95em;
    font-weight: 600;
}

/* Formel-Block */

.mkf-oel-formula {
    background: #f5f7fa !important;
    border: 1px solid #e6e9ee;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 14px 0;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.95em;
    color: #1e2a38 !important;
    -webkit-text-fill-color: #1e2a38 !important;
    line-height: 1.7;
    overflow-x: auto;
    white-space: pre;
}

/* Tabellen */

.mkf-oel-table-wrap {
    overflow-x: auto;
    margin: 14px 0 22px 0;
    border-radius: 8px;
    border: 1px solid #e6e9ee;
}

.mkf-oel-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff !important;
    font-size: 0.95em;
}

.mkf-oel-table th,
.mkf-oel-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #eef1f5;
    color: #1e2a38 !important;
    -webkit-text-fill-color: #1e2a38 !important;
    background: transparent !important;
}

.mkf-oel-table th {
    background: #f5f7fa !important;
    font-weight: 600;
    color: #0d1a2b !important;
    -webkit-text-fill-color: #0d1a2b !important;
    white-space: nowrap;
}

.mkf-oel-table td:not(:first-child) {
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.mkf-oel-table tr:last-child td {
    border-bottom: none;
}

/* Autor-Meta */

.mkf-oel-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
    padding: 14px 18px;
    margin: 12px 0 22px 0;
    background: #f5f7fa !important;
    border-radius: 8px;
    font-size: 0.88em;
    color: #47546a !important;
    -webkit-text-fill-color: #47546a !important;
    border-left: 4px solid #f2b100;
}

.mkf-oel-meta span {
    color: #47546a !important;
    -webkit-text-fill-color: #47546a !important;
}

.mkf-oel-meta strong {
    color: #0d1a2b !important;
    -webkit-text-fill-color: #0d1a2b !important;
}

.mkf-oel-meta a {
    color: #0d1a2b !important;
    -webkit-text-fill-color: #0d1a2b !important;
}

/* FAQ */

.mkf-oel-faq {
    border: 1px solid #e6e9ee;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 10px 0;
    background: #fafbfc !important;
}

.mkf-oel-faq summary {
    cursor: pointer;
    font-weight: 600;
    color: #0d1a2b !important;
    -webkit-text-fill-color: #0d1a2b !important;
    list-style: none;
    padding-right: 28px;
    position: relative;
}

.mkf-oel-faq summary::-webkit-details-marker {
    display: none;
}

.mkf-oel-faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6em;
    color: #f2b100 !important;
    -webkit-text-fill-color: #f2b100 !important;
    line-height: 1;
    font-weight: 400;
}

.mkf-oel-faq[open] summary::after {
    content: "−";
}

.mkf-oel-faq p {
    margin: 10px 0 4px 0;
    color: #47546a !important;
    -webkit-text-fill-color: #47546a !important;
}

.mkf-oel-faq ul li {
    color: #47546a !important;
    -webkit-text-fill-color: #47546a !important;
}

/* Quellen */

.mkf-oel-sources {
    margin-top: 28px;
    padding: 18px 22px;
    background: #f5f7fa !important;
    border-radius: 8px;
    font-size: 0.9em;
}

.mkf-oel-sources h3 {
    margin: 0 0 10px 0;
    font-size: 1.05em;
}

.mkf-oel-sources ol {
    margin: 0;
    padding-left: 1.4em;
}

.mkf-oel-sources li {
    margin: 5px 0;
    color: #47546a !important;
    -webkit-text-fill-color: #47546a !important;
}

/* ---- Ergebnis-Karten (Öl-Empfehlungen) ---- */

.mkf-oel-result {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mkf-oel-result-notes {
    padding: 12px 16px;
    background: #fffbea !important;
    border-left: 4px solid #f2b100;
    border-radius: 4px 8px 8px 4px;
    color: #1e2a38 !important;
    -webkit-text-fill-color: #1e2a38 !important;
    font-size: 0.95em;
}

.mkf-oel-spec-card {
    background: #ffffff !important;
    border: 1px solid #e6e9ee;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(20, 30, 50, 0.04);
}

.mkf-oel-spec-card h3 {
    margin: 0 0 8px 0 !important;
    font-size: 1.2em !important;
    color: #0d1a2b !important;
    -webkit-text-fill-color: #0d1a2b !important;
}

.mkf-oel-spec-card .mkf-oel-spec-sae {
    display: inline-block;
    background: #0d1a2b !important;
    color: #ffcc4d !important;
    -webkit-text-fill-color: #ffcc4d !important;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9em;
    letter-spacing: 0.03em;
    margin-right: 6px;
}

.mkf-oel-spec-card .mkf-oel-spec-cat {
    display: inline-block;
    background: #f5f7fa !important;
    color: #47546a !important;
    -webkit-text-fill-color: #47546a !important;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85em;
    margin-right: 6px;
    margin-bottom: 6px;
}

.mkf-oel-spec-card p {
    margin: 10px 0 0 0;
    color: #2c3a4e !important;
    -webkit-text-fill-color: #2c3a4e !important;
    line-height: 1.55;
}

.mkf-oel-spec-card .mkf-oel-spec-link {
    display: inline-block;
    margin-top: 10px;
    color: #0d1a2b !important;
    -webkit-text-fill-color: #0d1a2b !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
    font-size: 0.92em;
}

.mkf-oel-spec-card .mkf-oel-spec-link:hover {
    color: #f2b100 !important;
    -webkit-text-fill-color: #f2b100 !important;
}

/* ---- v2.0 Suchfeld & Stats ---- */

.mkf-oel-stats {
    margin-top: 8px !important;
    font-size: 0.85em !important;
    color: #6b7280 !important;
    -webkit-text-fill-color: #6b7280 !important;
    font-weight: 500 !important;
}

#mkf-oel-search {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 1.05em;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #ffffff !important;
    color: #0d1a2b !important;
    -webkit-text-fill-color: #0d1a2b !important;
    font-family: inherit;
    transition: border-color 0.15s ease;
}

#mkf-oel-search:focus {
    outline: none;
    border-color: #f2b100;
    box-shadow: 0 0 0 3px rgba(242, 177, 0, 0.15);
}

#mkf-oel-search::placeholder {
    color: #9ca3af;
    font-style: italic;
    opacity: 1;
}

.mkf-oel-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.85em !important;
    color: #6b7280 !important;
    -webkit-text-fill-color: #6b7280 !important;
    line-height: 1.4 !important;
    font-style: italic;
}
