/* ============================================================================
   Auktionen im Frontend — Karten-Kennzeichen, Uhr, Preisbox im Reader.

   ⚠️ Dunkelmodus hängt an `html.mm-dark` (globales Theme), NICHT an der alten
   Filter-Klasse `.mm_dark` mit Unterstrich — die greift ins Leere.

   ⚠️ Der Mindestpreis erscheint hier NIE als Zahl. Es gibt nur den Hinweis,
   dass einer gesetzt ist und ob er erreicht wurde (AuktionAnzeige liefert
   erst gar keinen Betrag ins Frontend).
   ========================================================================== */

:root {
  --auk-orange:    #e85d26;
  --auk-orange-dk: #c04b1e;
  --auk-gruen:     #2d7a3a;
  --auk-gruen-bg:  #e8f4ea;
  --auk-rot:       #b3341c;
  --auk-rot-bg:    #fdeae6;
  --auk-blau:      #1a5fa5;
  --auk-blau-bg:   #e7effa;
}
html.mm-dark {
  --auk-gruen:    #5cc06f;
  --auk-gruen-bg: rgba(45,122,58,.20);
  --auk-rot:      #ff8f79;
  --auk-rot-bg:   rgba(179,52,28,.22);
  --auk-blau:     #6ba8e8;
  --auk-blau-bg:  rgba(26,95,165,.22);
  --auk-orange-dk:#ff8a5c;
}

/* ------------------------------------------------------- Kennzeichen (Karte) */
.mm_card_tag.mm_auk_tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--auk-orange); color: #fff; font-weight: 700;
  letter-spacing: .01em;
}
.mm_card_tag.mm_auk_tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex: none;
  animation: mm_auk_puls 1.9s ease-in-out infinite;
}
.mm_card_tag.mm_auk_bald  { background: var(--auk-rot); }
.mm_card_tag.mm_auk_plan  { background: var(--auk-blau); }
.mm_card_tag.mm_auk_ende  { background: #6b7688; }
.mm_card_tag.mm_auk_plan::before,
.mm_card_tag.mm_auk_ende::before { animation: none; }
@keyframes mm_auk_puls { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) {
  .mm_card_tag.mm_auk_tag::before { animation: none; }
}

/* ------------------------------------------------------------ Preis (Karte) */
.mm_auk_label {
  display: block; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .05em; color: #8592a8; font-weight: 600; line-height: 1.2;
}
html.mm-dark .mm_auk_label { color: rgba(255,255,255,.45); }
.mm_card_price_now.mm_auk_preis { color: var(--auk-orange-dk); }
.mm_auk_uhr {
  display: inline-block; margin-top: 3px;
  font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--auk-orange-dk); background: rgba(232,93,38,.10);
  border-radius: 6px; padding: 2px 7px;
}
html.mm-dark .mm_auk_uhr { background: rgba(232,93,38,.18); }
.mm_auk_uhr.mm_auk_uhr_plan { color: var(--auk-blau); background: var(--auk-blau-bg); }
.mm_auk_uhr.is-bald { color: var(--auk-rot); background: var(--auk-rot-bg); }

/* ==================================================== Reader: Auktionsbox === */
.mm_rd_auktion { }
.mm_rd_auk_kopf {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.mm_rd_auk_badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--auk-orange); color: #fff;
  font-size: 12.5px; font-weight: 700; padding: 3px 11px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .04em;
}
.mm_rd_auk_badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  animation: mm_auk_puls 1.9s ease-in-out infinite;
}
.mm_rd_auk_badge.plan { background: var(--auk-blau); }
.mm_rd_auk_badge.plan::before { animation: none; }
.mm_rd_auk_badge.bald { background: var(--auk-rot); }
@media (prefers-reduced-motion: reduce) { .mm_rd_auk_badge::before { animation: none; } }

.mm_rd_auk_lbl {
  font-size: 12.5px; color: #55617a; text-transform: uppercase;
  letter-spacing: .05em; font-weight: 600;
}
html.mm-dark .mm_rd_auk_lbl { color: rgba(255,255,255,.55); }

.mm_rd_auk_preis {
  font-family: 'Saira Semi Condensed', 'Barlow Semi Condensed', system-ui, sans-serif;
  font-size: 34px; font-weight: 700; line-height: 1.1;
  font-variant-numeric: tabular-nums; color: #16202e;
}
html.mm-dark .mm_rd_auk_preis { color: #fff; }
.mm_rd_auk_sub { font-size: 13px; color: #55617a; margin-top: 2px; }
html.mm-dark .mm_rd_auk_sub { color: rgba(255,255,255,.6); }

/* Uhr — die wichtigste Zahl der Seite, deshalb eigene Fläche. */
.mm_rd_auk_uhr {
  display: flex; align-items: baseline; gap: 8px; margin-top: 12px;
  background: rgba(232,93,38,.10); border: 1px solid rgba(232,93,38,.28);
  border-radius: 10px; padding: 9px 12px;
}
html.mm-dark .mm_rd_auk_uhr { background: rgba(232,93,38,.16); border-color: rgba(232,93,38,.42); }
.mm_rd_auk_uhr .t {
  font-family: 'Saira Semi Condensed', system-ui, sans-serif;
  font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--auk-orange-dk);
}
.mm_rd_auk_uhr .l { font-size: 12.5px; color: #55617a; }
html.mm-dark .mm_rd_auk_uhr .l { color: rgba(255,255,255,.6); }
.mm_rd_auk_uhr.is-bald { background: var(--auk-rot-bg); border-color: var(--auk-rot); }
.mm_rd_auk_uhr.is-bald .t { color: var(--auk-rot); }

/* Mindestpreis-Hinweis: Existenz ja, Betrag nein. */
.mm_rd_auk_reserve {
  display: flex; align-items: flex-start; gap: 7px;
  margin-top: 10px; font-size: 13px; line-height: 1.45;
  padding: 8px 11px; border-radius: 9px;
}
.mm_rd_auk_reserve.offen  { background: #f1f4f8; color: #55617a; }
.mm_rd_auk_reserve.erfuellt { background: var(--auk-gruen-bg); color: var(--auk-gruen); }
html.mm-dark .mm_rd_auk_reserve.offen { background: rgba(255,255,255,.06); color: rgba(255,255,255,.66); }

/* Gebotsfeld */
.mm_rd_auk_form { margin-top: 14px; }
.mm_rd_auk_zeile { display: flex; gap: 8px; }
.mm_rd_auk_feld {
  flex: 1; display: flex; align-items: stretch;
  border: 1px solid #d7dee8; border-radius: 10px; background: #fff; overflow: hidden;
}
html.mm-dark .mm_rd_auk_feld { border-color: rgba(255,255,255,.18); background: #0f1923; }
/* ⚠️ `input[type="text"]` mitschreiben: die globale Regel in style.css hat
   dieselbe Spezifität (0,1,1) und gewinnt über die Reihenfolge — das Feld
   blieb dadurch im Dunkelmodus weiß. Mit dem Attribut sind es (0,2,1). */
.mm_rd_auk_feld input,
.mm_rd_auk_feld input[type="text"] {
  border: 0; background: transparent; outline: 0; width: 100%;
  padding: 11px 12px; font: inherit; font-size: 17px; font-weight: 700;
  font-variant-numeric: tabular-nums; color: inherit; border-radius: 0;
}
.mm_rd_auk_feld .e {
  display: grid; place-items: center; padding: 0 12px;
  background: #f4f6f9; border-left: 1px solid #e3e8ee; color: #55617a; font-size: 15px;
}
html.mm-dark .mm_rd_auk_feld .e { background: #16202d; border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.6); }
.mm_rd_auk_feld:focus-within { border-color: var(--auk-orange); box-shadow: 0 0 0 2px rgba(232,93,38,.16); }

/* Orange gefüllt = echte Handlung (Entscheidung 07.08.). Bieten ist eine. */
.mm_rd_auk_btn {
  border: 1px solid var(--auk-orange); background: var(--auk-orange); color: #fff;
  border-radius: 10px; padding: 0 20px; font: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s;
}
.mm_rd_auk_btn:hover { background: var(--auk-orange-dk); border-color: var(--auk-orange-dk); color: #fff; }
html.mm-dark .mm_rd_auk_btn:hover { background: #ff7440; border-color: #ff7440; }
.mm_rd_auk_btn:disabled { opacity: .5; cursor: not-allowed; }

.mm_rd_auk_hinweis { font-size: 12.5px; color: #8592a8; margin-top: 8px; line-height: 1.5; }
html.mm-dark .mm_rd_auk_hinweis { color: rgba(255,255,255,.45); }
.mm_rd_auk_hinweis b { color: #55617a; }
html.mm-dark .mm_rd_auk_hinweis b { color: rgba(255,255,255,.7); }

/* Listenpreis als Nebenzeile — Bezugsgröße, nicht Preis. */
.mm_rd_auk_liste {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid #eef1f5;
  font-size: 13px; color: #8592a8; display: flex; justify-content: space-between; gap: 10px;
}
html.mm-dark .mm_rd_auk_liste { border-color: rgba(255,255,255,.10); color: rgba(255,255,255,.45); }
.mm_rd_auk_liste b { color: #55617a; font-variant-numeric: tabular-nums; }
html.mm-dark .mm_rd_auk_liste b { color: rgba(255,255,255,.7); }

/* Hinweisfeld „Bieten kommt noch" */
.mm_auk_bald_hinweis {
  margin-top: 12px; font-size: 13px; line-height: 1.5;
  background: #fff8f4; border: 1px dashed #f0b79a; color: #8a4a2c;
  border-radius: 9px; padding: 10px 12px;
}
html.mm-dark .mm_auk_bald_hinweis {
  background: rgba(232,93,38,.10); border-color: rgba(232,93,38,.42); color: #ffb694;
}

/* ==========================================================================
   Bieten (seit 2026-08-25). Drei Zustände in der Gebotsbox: Feld, Rückfrage,
   Meldung — plus die beiden Fälle „nicht angemeldet" und „eigene Maschine".

   ⚠️ Das Hinweisfeld .mm_auk_bald_hinweis („Bieten kommt noch") wird nicht
   mehr gerendert, die Regeln bleiben aber stehen: die Karten- und
   Listenansichten könnten es wieder brauchen, und es kostet nichts.
   ========================================================================== */

/* Nicht angemeldet: der Weg zur Anmeldung, mit Rücksprung zur Maschine. */
.mm_rd_auk_anmeld {
  margin-top: 4px; padding: 14px; border-radius: 10px;
  background: rgba(232,93,38,.08); border: 1px solid rgba(232,93,38,.30);
}
.mm_rd_auk_anmeld p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: #55617a; }
html.mm-dark .mm_rd_auk_anmeld p { color: rgba(255,255,255,.72); }
.mm_rd_auk_anmeld .mm_rd_auk_btn {
  display: inline-flex; align-items: center; height: 44px; text-decoration: none;
}

/* Eigene Maschine — Anzeige des Verbots, entschieden wird es im Dienst. */
.mm_rd_auk_sperre {
  margin-top: 4px; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.5;
  background: #fdeae6; border: 1px solid rgba(179,52,28,.35); color: #8a3320;
}
html.mm-dark .mm_rd_auk_sperre {
  background: rgba(179,52,28,.18); border-color: rgba(255,143,121,.40); color: #ff9d84;
}

/* Rückfrage vor dem verbindlichen Gebot. */
.mm_rd_auk_frage {
  margin-top: 12px; padding: 16px; border-radius: 10px;
  background: #fff8f4; border: 1px solid rgba(232,93,38,.42);
}
html.mm-dark .mm_rd_auk_frage { background: rgba(232,93,38,.12); border-color: rgba(232,93,38,.50); }
.mm_rd_auk_frage .f { margin: 0 0 4px; font-size: 15.5px; font-weight: 700; color: #2b3648; }
html.mm-dark .mm_rd_auk_frage .f { color: #f2f6fa; }
.mm_rd_auk_frage .s { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: var(--auk-orange-dk); font-variant-numeric: tabular-nums; }
.mm_rd_auk_frage .k { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: #55617a; cursor: pointer; }
html.mm-dark .mm_rd_auk_frage .k { color: rgba(255,255,255,.72); }
.mm_rd_auk_frage .k input { margin-top: 2px; accent-color: var(--auk-orange); flex: 0 0 auto; }
.mm_rd_auk_frage .p { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: #b3341c; }
html.mm-dark .mm_rd_auk_frage .p { color: #ff8f79; }
.mm_rd_auk_frage .w { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.mm_rd_auk_frage .w .mm_rd_auk_btn { height: 44px; }

/* Abbrechen — bewusst schwach, damit der Hauptweg der Hauptweg bleibt. */
.mm_rd_auk_ab {
  border: 1px solid rgba(13,21,29,.18); background: transparent; color: #55617a;
  border-radius: 10px; height: 44px; padding: 0 16px; font: inherit; font-size: 14.5px;
  font-weight: 600; cursor: pointer;
}
html.mm-dark .mm_rd_auk_ab { border-color: rgba(255,255,255,.20); color: rgba(255,255,255,.72); }
.mm_rd_auk_ab:hover { border-color: var(--auk-orange); color: var(--auk-orange-dk); }

/* Ergebnis eines Gebots. Rot und grün tragen zusätzlich ein Zeichen, damit die
   Aussage nicht allein an der Farbe hängt. */
.mm_rd_auk_meldung {
  margin-top: 12px; padding: 11px 13px; border-radius: 9px;
  font-size: 13.5px; line-height: 1.5; display: flex; gap: 8px; align-items: flex-start;
}
.mm_rd_auk_meldung::before { flex: 0 0 auto; font-weight: 800; }
.mm_rd_auk_meldung.ok { background: var(--auk-gruen-bg); border: 1px solid var(--auk-gruen); color: var(--auk-gruen); }
.mm_rd_auk_meldung.ok::before { content: "\2713"; }
.mm_rd_auk_meldung.fehler { background: var(--auk-rot-bg); border: 1px solid var(--auk-rot); color: var(--auk-rot); }
.mm_rd_auk_meldung.fehler::before { content: "\26A0"; }

/* Das Gebotsfeld ist jetzt beschreibbar — der Fokus muss sichtbar sein. */
.mm_rd_auk_feld input[data-mm-auk-betrag] { cursor: text; }
.mm_rd_auk_feld:focus-within { border-color: var(--auk-orange); }
