/* ==========================================================================
   Audiobox [lm_audio_box teil="box"] (hooks/audio-bausteine.php), 23.11.2026
   Neueste Aufnahmen einer Reihe, einer Playlist oder eines Redners auf Seiten außerhalb der Audioübersicht.
   Geladen nur auf Seiten, die eine Box enthalten. Die Startseite hat dieselben Bausteine (Liste, Karte) in css/startseite.css.
   Farben und Schriftgrößen kommen aus den Global Colors und Global Fonts des Elementor-Kits (--e-global-…),
   Knöpfe tragen die Elementor-Button-Markierung und bekommen ihren Stil aus dem Kit.
   Breit oder schmal entscheidet die Breite der Spalte, in der die Box steht (Container-Abfrage), nicht der Bildschirm.
   ========================================================================== */
.lm-audiobox-huelle{
  --lmb-rot:var(--e-global-color-ff51695,#B70000);
  --lmb-dunkel:var(--e-global-color-3d5fc400,#4B4646);
  --lmb-grau:var(--e-global-color-79b6df38,#707070);
  --lmb-linie:var(--e-global-color-27b40c09,#B7B4B4);
  --lmb-flaeche:var(--e-global-color-e859e7d,#F2F2F2);
  --lmb-hell:var(--e-global-color-347c79e4,#DDDDDD);
  --lmb-punktlinie:2px dotted var(--lmb-linie);
  container-type:inline-size;
  text-align:left;
}

/* Liste: Aufbau wie die Terminliste der Startseite, Cover statt Datum */
.lm-audiobox .lm-audioliste{display:grid;margin:0;border-top:var(--lmb-punktlinie)}
.lm-audiobox .lm-audiozeile{display:grid;grid-template-columns:58px minmax(0,1fr);gap:16px;padding:14px 0;border-bottom:var(--lmb-punktlinie);text-decoration:none!important;align-items:center}
.lm-audiobox .lm-az-bild,.lm-audiobox .lm-ak-bild{position:relative;display:block;overflow:hidden;background:var(--lmb-hell);color:var(--lmb-grau)}
.lm-audiobox .lm-az-bild{aspect-ratio:1}
.lm-audiobox .lm-az-bild img{display:block;width:100%;height:100%;object-fit:cover}
.lm-audiobox .lm-az-bild svg,.lm-audiobox .lm-ak-bild svg{position:absolute;inset:0;margin:auto;width:42%;height:42%}
.lm-audiobox .lm-az-titel,.lm-audiobox .lm-ak-titel{display:block;font-size:var(--e-global-typography-lmh5-font-size);font-weight:var(--e-global-typography-lmh5-font-weight);line-height:var(--e-global-typography-lmh5-line-height)}
.lm-audiobox .lm-az-meta,.lm-audiobox .lm-ak-meta{display:block;font-size:var(--e-global-typography-lmklein-font-size);line-height:var(--e-global-typography-lmklein-line-height)}

/* Karte der neuesten Aufnahme: Cover mindestens quadratisch und unbeschnitten, daneben Dachzeile, Titel, Redner, Dauer */
.lm-audiobox .lm-audiokarte{display:none;grid-template-columns:minmax(0,54%) minmax(0,1fr);background:var(--lmb-flaeche);text-decoration:none!important}
.lm-audiobox .lm-ak-bild::before{content:"";display:block;padding-top:100%}
.lm-audiobox .lm-ak-bild img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.lm-audiobox .lm-ak-text{display:flex;flex-direction:column;justify-content:center;gap:6px;min-width:0;padding:20px 22px}
.lm-audiobox .lm-ak-art{display:block;color:var(--lmb-rot);font-size:var(--e-global-typography-lmdach-font-size);font-weight:var(--e-global-typography-lmdach-font-weight);line-height:1.25;text-transform:uppercase;letter-spacing:.1em}
.lm-audiobox .lm-ak-titel{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden}
.lm-audiobox .lm-ak-los{display:inline-flex;align-items:center;gap:7px;align-self:flex-start;margin-top:8px;padding:7px 14px 7px 11px;background:#fff;box-shadow:inset 0 0 0 1px var(--lmb-hell);color:var(--lmb-dunkel);font-size:var(--e-global-typography-lmklein-font-size);font-weight:500;line-height:1.3}
.lm-audiobox .lm-ak-los svg{width:15px;height:15px;color:var(--lmb-rot)}
.lm-audiobox .lm-audiokarte:hover .lm-ak-bild img,.lm-audiobox .lm-audiokarte:focus-visible .lm-ak-bild img{transform:scale(1.03)}
@media (prefers-reduced-motion:reduce){.lm-audiobox .lm-ak-bild img{transition:none}.lm-audiobox .lm-audiokarte:hover .lm-ak-bild img{transform:none}}

/* Knöpfe unter der Liste */
.lm-audiobox-knoepfe{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.lm-audiobox-knoepfe .elementor-button.lm-knopf-grau{background-color:var(--e-global-color-fd1bf3,#E2E2E2);color:var(--e-global-color-secondary,#54595F)}

/* Schmal (Vorgabe): nur die Liste, die neueste Aufnahme ist ihre erste Zeile. Die Zusatzzeile für die breite Fassung entfällt. */
.lm-audiobox .lm-az-letzte{display:none}
/* Breit: links Liste und Knöpfe, rechts die neueste Aufnahme als Karte – sie fehlt dann in der Liste */
@container (min-width:720px){
  .lm-audiobox.mit-karte{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}
  .lm-audiobox.mit-karte .lm-audiokarte{display:grid}
  .lm-audiobox.mit-karte .lm-az-neueste{display:none}
  .lm-audiobox.mit-karte .lm-az-letzte{display:grid}
}

/* Linkfarbe des Themes in den Zeilen neutralisieren: Text erbt die Seitenfarbe, Titel dunkel, beim Überfahren rot */
.lm-audiobox a.lm-audiozeile,.lm-audiobox a.lm-audiokarte{color:inherit!important}
.lm-audiobox .lm-az-titel,.lm-audiobox .lm-ak-titel{color:var(--lmb-dunkel)!important}
.lm-audiobox a.lm-audiozeile:hover .lm-az-titel,.lm-audiobox a.lm-audiokarte:hover .lm-ak-titel{color:var(--lmb-rot)!important}
