/* TT3110_H_DIESELSEITE 31.10.2026: dieselpreise.html + en/ (v3\diesel.py) — the public diesel price board.
   Marco ~12:0x: „richtig Luxus-Look … wo die Leute sagen, wow“. Loaded ONLY by these two pages (not in the hp.css bundle:
   budget). Only page tokens from tokens.css — light/dark follow them by themselves (--frei/--achtung/--rost switch too).
   The colour scale: --t = 0 cheapest … 1 dearest of its world (set by ds/diesel.js), green → amber → red.
   Motion only without prefers-reduced-motion. Mobile first: 390 → 1024 → 1590. */
.dp-kopf .rs-kopf-text { min-width: 0; }

/* ── the search (first-class, in the hero) ── */
.dp-suchblock { margin-top: var(--ab5); max-width: 640px; }
.dp-suche { position: relative; display: flex; align-items: center; gap: var(--ab3); height: 64px; padding: 0 var(--ab4);
  border-radius: 18px; cursor: text;
  background: var(--karte-verlauf) padding-box, var(--glanzkante) border-box; border: 1px solid transparent;
  box-shadow: var(--schatten-klein), 0 18px 40px -28px rgba(0, 0, 0, .55);
  transition: box-shadow .25s ease, transform .25s ease; }
.dp-suche:focus-within { box-shadow: 0 0 0 4px var(--tonhauch2), 0 22px 50px -26px rgba(0, 0, 0, .6); }
.dp-lupe { width: 22px; height: 22px; flex: none; color: var(--text-gold); }
.dp-suche input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text);
  font: inherit; font-size: 1.06rem; font-weight: 560; letter-spacing: .005em; }
.dp-suche input::placeholder { color: var(--kante); font-weight: 450; }
.dp-suche input::-webkit-search-cancel-button { display: none; }
.dp-leeren { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rand);
  background: var(--mulde); color: var(--matt); cursor: pointer; }
.dp-leeren:hover { color: var(--text); border-color: var(--ton); }
.dp-leeren svg { width: 14px; height: 14px; }
.dp-taste { flex: none; }
.dp-treffer { margin: var(--ab2) 0 0 var(--ab2); min-height: 1.4em; }

/* ── the highlight card (right of the hero) ── */
.dp-glanz { position: relative; overflow: hidden; display: grid; gap: var(--ab4); padding: var(--ab5); min-width: 0; isolation: isolate; }
.dp-glanz::before { content: ""; position: absolute; inset: -40% -30% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, var(--tonhauch2) 0%, transparent 70%); }
.dp-glanz-kopf { display: flex; align-items: center; gap: var(--ab3); }
.dp-glanz-kopf .aufschrift { margin: 0; }
.dp-glanz-zeichen { width: 40px; height: 40px; flex: none; padding: 9px; border-radius: 12px; color: var(--auf-ton, #1b1306);
  background: var(--gold-verlauf); box-shadow: 0 8px 20px -10px rgba(201, 132, 32, .8); }
.dp-glanz-datum { margin: 2px 0 0; font-family: var(--serif); font-size: var(--gr-zahl); line-height: 1.05; font-weight: 600;
  background: var(--gold-verlauf); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums; }
.dp-glanz-welten { display: grid; gap: var(--ab4); }
.dp-glanz-welt .aufschrift { margin: 0 0 var(--ab2); }
.dp-glanz-zeile { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 8px 0; border-top: 1px solid var(--rand); min-width: 0; }
.dp-glanz-wort { font-size: .72rem; font-weight: 680; letter-spacing: .04em; text-transform: uppercase; }
.dp-glanz-zeile.dp-billig .dp-glanz-wort { color: var(--frei); }
.dp-glanz-zeile.dp-teuer .dp-glanz-wort { color: var(--rost); }
.dp-glanz-land { font-weight: 650; color: var(--text); overflow-wrap: anywhere; }
.dp-glanz-preis { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.dp-glanz-welt { min-width: 0; }
.dp-kopf .rs-kopf-gitter > * { min-width: 0; max-width: 100%; }
.dp-rhythmus { margin: 0; padding-top: var(--ab3); border-top: 1px solid var(--rand); }

/* ── the board ── */
.dp-rumpf { display: grid; gap: var(--ab5); grid-template-columns: minmax(0, 1fr); }
.dp-rumpf > *, .dp-board .rs-panel, .dp-board [role="tablist"] { min-width: 0; max-width: 100%; }
.dp-rumpf > section { padding: var(--ab4); border-top: 0; }
.dp-board-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ab3); margin: 0 0 var(--ab4); }
.dp-board-kopf h2 { margin: 0; }
.dp-sort { display: flex; flex-wrap: wrap; gap: var(--ab2); }
.dp-skala { display: flex; align-items: center; gap: var(--ab3); margin: 0 0 var(--ab4); font-size: .78rem; font-weight: 640;
  color: var(--matt); font-variant-numeric: tabular-nums; }
.dp-skala i { flex: 1; height: 8px; border-radius: var(--rd-voll);
  background: linear-gradient(90deg, var(--frei), var(--achtung) 50%, var(--rost)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.dp-anders { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ab3); margin: 0 0 var(--ab4); padding: var(--ab3) var(--ab4);
  border-radius: var(--rd); background: var(--tonhauch); border: 1px solid var(--tonhauch2); }
.dp-board .rs-reiter { margin: 0 0 var(--ab4); }
.dp-board .rs-panel { padding: 0; border-top: 0; background: none; }
.dp-zeile { margin: 0 0 var(--ab3); font-size: .86rem; color: var(--matt); }
.dp-zeile.dp-nichts { padding: var(--ab5) var(--ab4); text-align: center; border-radius: var(--rd); border: 1px dashed var(--naht, var(--rand));
  font-size: .95rem; color: var(--text); }

/* the colour of a price: green (cheap) → amber → red (dear) */
.dp-kachel, .dp-tabelle tbody tr {
  --dp-farbe: color-mix(in oklab, color-mix(in oklab, var(--frei), var(--achtung) calc(min(var(--t, 0) * 2, 1) * 100%)),
    var(--rost) calc(max(var(--t, 0) * 2 - 1, 0) * 100%)); }

/* ── tile overview („Auf einen Blick") ── */
.dp-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; margin: 0 0 var(--ab5); }
.dp-kachel { appearance: none; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-height: 58px; padding: 6px 4px; border-radius: 12px; color: var(--text);
  border: 1px solid color-mix(in oklab, var(--dp-farbe, var(--ton)) 45%, transparent);
  background: linear-gradient(180deg, color-mix(in oklab, var(--dp-farbe, var(--ton)) 26%, var(--karte)) 0%,
    color-mix(in oklab, var(--dp-farbe, var(--ton)) 12%, var(--karte)) 100%);
  transition: transform .18s ease, box-shadow .18s ease; }
.dp-kachel:hover, .dp-kachel:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 22px -14px var(--dp-farbe, var(--ton)); outline: 0; }
.dp-kachel:focus-visible { box-shadow: 0 0 0 3px var(--tonhauch2); }
.dp-k-code { font-weight: 760; font-size: .82rem; letter-spacing: .04em; }
.dp-k-preis { font-family: var(--serif); font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--matt); }

/* ── the list ── */
.dp-tabelle-rahmen { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dp-tabelle { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.dp-tabelle th, .dp-tabelle td { padding: 12px 10px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--rand); }
.dp-tabelle thead th { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--kante);
  padding-top: 0; }
.dp-tabelle tbody tr { transition: background .2s ease; }
.dp-tabelle tbody tr:hover { background: var(--tonhauch); }
.dp-tabelle tbody th { font-weight: 400; }
.dp-landzelle { display: flex; align-items: center; gap: var(--ab3); min-width: 0; }
.dp-code { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; font-size: .74rem; font-weight: 780;
  letter-spacing: .04em; color: var(--text);
  background: color-mix(in oklab, var(--dp-farbe, var(--ton)) 22%, var(--karte2));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--dp-farbe, var(--ton)) 50%, transparent); }
.dp-name { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.dp-name b { font-weight: 650; color: var(--text); overflow-wrap: break-word; hyphens: auto; }
.dp-nur-handy { display: none !important; }
.dp-rang { font-size: .72rem; color: var(--kante); }
.dp-tabelle .dp-zahl { text-align: right; white-space: nowrap; width: 36%; }
.dp-preis { display: block; font-family: var(--serif); font-size: 1.12rem; font-weight: 620; color: var(--text); }
.dp-neben { display: block; font-size: .8rem; color: var(--matt); }
.dp-balken { display: block; height: 4px; margin: 6px 0 0 auto; width: min(140px, 100%); border-radius: var(--rd-voll); background: var(--mulde); overflow: hidden; }
.dp-balken i { display: block; height: 100%; width: calc(18% + var(--t, 0) * 82%); margin-left: 0; border-radius: inherit;
  background: var(--dp-farbe, var(--ton)); }
.dp-tabelle .dp-stand { white-space: nowrap; text-align: right; width: 1%; }
.dp-tabelle .chip { height: 22px; font-size: .7rem; }
.dp-chip-echt { color: var(--frei); background: color-mix(in oklab, var(--frei) 10%, transparent); border-color: color-mix(in oklab, var(--frei) 30%, transparent); }
.dp-chip-pm { margin-top: 3px; align-self: flex-start; height: 20px !important; font-size: .64rem !important; }
.dp-tabelle tr.dp-blitz { animation: dp-blitz 1.6s ease; }
@keyframes dp-blitz { 0%, 30% { background: var(--tonhauch2); } 100% { background: transparent; } }

/* ── how it is charged ── */
.dp-so p { max-width: 72ch; margin: 0 0 var(--ab3); }
.dp-so p:last-child { margin-bottom: 0; }
.dp-rhythmus-satz { padding: var(--ab3) var(--ab4); border-left: 3px solid var(--ton); border-radius: 0 var(--rd-k) var(--rd-k) 0; background: var(--tonhauch); }
.dp-wikilink { display: inline-flex; align-items: center; gap: 6px; color: var(--text-gold); font-weight: 650; }
.dp-wikilink svg { width: 16px; height: 16px; }
.dp-fuss { margin: 0; text-align: center; }

/* ── data sources (Marco F-QUELLE): quiet last block, gold hairline, same tokens in dark + light ── */
.dp-rumpf > .dp-quellen { margin: 0; padding: var(--ab4) 0 0; border-top: 1px solid color-mix(in oklab, var(--ton) 40%, transparent); font-size: .82rem; line-height: 1.5; color: var(--matt); }
.dp-quellen h2 { margin: 0 0 var(--ab2); }
.dp-quellen ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ab2) var(--ab4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.dp-quellen li { min-width: 0; overflow-wrap: anywhere; }
.dp-quellen b { display: block; color: var(--text); font-weight: 650; }
.dp-quellen a { color: var(--text-gold); text-decoration: underline; text-underline-offset: 2px; }

/* ── entrance (only when the data came; never without motion consent) ── */
@media (prefers-reduced-motion: no-preference) {
  .dp-bereit .dp-kachel { animation: dp-auf .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 14ms); }
  .dp-bereit .dp-tabelle tbody tr { animation: dp-auf .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 18ms); }
  .dp-bereit .dp-balken i { animation: dp-wachsen .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(120ms + var(--i, 0) * 18ms); transform-origin: left; }
  .dp-daten .dp-glanz-preis, .dp-daten .dp-glanz-land, .dp-daten .dp-glanz-datum { animation: dp-ein .7s ease both; }
}
@keyframes dp-auf { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes dp-wachsen { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dp-ein { from { opacity: 0; } to { opacity: 1; } }

/* ── phone (≤ 560 px) ── */
@media (max-width: 560px) {
  .dp-suche { height: 56px; padding: 0 var(--ab3); border-radius: 16px; }
  .dp-suche input { font-size: 1rem; }
  .dp-taste { display: none; }
  .dp-glanz { padding: var(--ab4); }
  .dp-rumpf > section { padding: var(--ab3); }
  .dp-kacheln { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 5px; }
  .dp-kachel { min-height: 52px; }
  .dp-tabelle th, .dp-tabelle td { padding: 10px 4px; }
  .dp-code { width: 32px; height: 32px; font-size: .66rem; border-radius: 9px; }
  .dp-preis { font-size: 1rem; }
  .dp-tabelle .dp-stand { display: none; }
  .dp-nur-handy { display: inline-flex !important; align-self: flex-start; margin-top: 4px; height: 20px !important; font-size: .64rem !important; padding: 0 7px; }
  .dp-rang { display: none; }
}
/* ── wide (≥ 1024 px): the two worlds side by side in the hero card ── */
@media (min-width: 1024px) {
  .dp-glanz { min-width: 380px; }
  .dp-glanz-welten { grid-template-columns: 1fr 1fr; }
  .dp-kacheln { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
}
