/* ===========================================================================
   LORO-X Übergangs- und Anschlussstücke
   Ergänzt das zentrale Design-System (templates/css/style.css) - hier stehen
   NUR die Regeln, die es dort nicht schon gibt. Farben ausschliesslich über
   die zentralen CI-Variablen, keine eigenen Farbwerte.
   Mobile first: eine Spalte, ab 700 px nebeneinander.
   Stand: 2026-07-22
   =========================================================================== */

.ueb-tool { max-width: 1100px; }

.ueb-tool .lead { font-size: 1.05rem; }

/* ---------- Auswahlbereich ---------- */
.ueb-filter { margin-bottom: 1.25rem; }

.ueb-filter-body {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.ueb-feld { flex: 1 1 220px; min-width: 0; }

.ueb-feld label {
    display: block;
    font-weight: 700;
    margin-bottom: .25rem;
}

.ueb-feld-knopf {
    flex: 0 0 auto;
    display: flex;
    gap: .5rem;
}

/* ---------- Trefferliste ---------- */
.ueb-anzahl {
    margin: 0 0 .75rem;
    font-weight: 700;
}

.ueb-liste {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 700px) {
    .ueb-liste { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
    .ueb-liste { grid-template-columns: repeat(3, 1fr); }
}

.ueb-eintrag-kopf {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    font-weight: 700;
}

/* Der Pfeil trägt die Leserichtung - er darf nicht umbrechen */
.ueb-pfeil {
    flex: 0 0 auto;
    font-size: 1.15rem;
    line-height: 1;
}

.ueb-system { flex: 0 1 auto; }

.ueb-eintrag-inhalt {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ---------- Artikelkachel ---------- */
.ueb-artikel {
    flex: 1 1 140px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.ueb-artikel-rolle {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    opacity: .75;
}

/* Bild NICHT als display:block in enger Spalte - sonst kollabiert es auf 0.
   (dokumentierte Stolperfalle des Hauses) */
.ueb-artikel-bild {
    max-width: 100%;
    height: 90px;
    width: auto;
    object-fit: contain;
}

.ueb-artikel-nr {
    display: block;
    font-weight: 700;
}

.ueb-artikel-text {
    font-size: .9rem;
    line-height: 1.45;
    hyphens: auto;
}

/* Artikel, den es nicht mehr gibt - sachlicher Hinweis statt Platzhalterbild */
.ueb-artikel-fehlt {
    font-size: .9rem;
    font-style: italic;
}

.ueb-artikel-direkt { justify-content: center; }

/* ---------- Hinweise ---------- */
.ueb-hinweis,
.ueb-leer { margin: 1rem 0; }

.ueb-fuss { margin-top: 1.75rem; }

.ueb-quelle {
    font-size: .9rem;
    opacity: .85;
}
