/* Meldo Zusatzmaterial – Frontend v1.0.0
   Farben: #3D7C85 (Petrol), #E8924F (Grün), #FAF8F3 (Hell), #111416 (Dunkel) */

.mzm-section { margin: 40px 0 24px; }
.mzm-title {
  font-family: 'Akko', sans-serif !important;
  font-weight: 700; color: #111416; font-size: 1.5rem; margin: 0 0 16px;
}


/* ---------- Reiter: Noten / Infos & Zusatzmaterial ---------- */
.mzm-tabs { margin: 8px 0 24px; }
.mzm-tabbar {
  display: flex; gap: 6px; margin-bottom: 24px; flex-wrap: wrap;
  border-bottom: 2px solid rgba(17,20,22,.08);
}

/* BuddyBoss stylt alle <button>-Elemente – hier konsequent zurücksetzen */
.mzm-tabs .mzm-tab,
.mzm-tabs .mzm-tab:hover,
.mzm-tabs .mzm-tab:focus,
.mzm-tabs .mzm-tab:active,
.mzm-tabs .mzm-tab.is-active {
  appearance: none !important; -webkit-appearance: none !important;
  border: none !important; border-radius: 0 !important;
  box-shadow: none !important; text-shadow: none !important;
  background: transparent !important; background-image: none !important;
  text-transform: none !important; letter-spacing: normal !important;
  min-width: 0 !important; min-height: 0 !important; width: auto !important;
  height: auto !important; line-height: 1.2 !important;
  font-family: 'Akko', sans-serif !important; font-weight: 600 !important;
  font-size: 1.02rem !important; margin: 0 !important;
  padding: 13px 20px 15px !important;
  cursor: pointer; display: inline-flex; align-items: center; gap: 9px;
  position: relative; transition: color .22s ease;
}
/* Reiterbeschriftung: lang am Rechner, kurz auf dem Handy.
   Muss VOR der Bildschirmregel stehen, sonst überschreibt sie diese. */
.mzm-tab-kurz { display: none; }
.mzm-tab-lang { display: inline; }

.mzm-tabs .mzm-tab { color: #9aa0a6 !important; }
.mzm-tabs .mzm-tab:hover { color: #3D7C85 !important; }
.mzm-tabs .mzm-tab.is-active { color: #111416 !important; }
.mzm-tabs .mzm-tab::before {
  content: ''; position: absolute; inset: 4px 6px auto 6px; bottom: 6px;
  border-radius: 12px; background: rgba(61,124,133,.06);
  opacity: 0; transition: opacity .22s ease; z-index: -1;
}
.mzm-tabs .mzm-tab:hover::before { opacity: 1; }
.mzm-tabs .mzm-tab::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: -2px; height: 3px;
  border-radius: 3px 3px 0 0; background: linear-gradient(90deg,#E8924F,#3D7C85);
  transform: scaleX(0); transform-origin: center;
  transition: transform .3s cubic-bezier(.34,1.3,.64,1);
}
.mzm-tabs .mzm-tab.is-active::after { transform: scaleX(1); }
.mzm-tabs .mzm-tab:focus-visible { outline: 2px solid #3D7C85 !important; outline-offset: -4px; }

.mzm-tab-ico { display: inline-flex; width: 19px; height: 19px; flex: 0 0 auto; opacity: .85; }
.mzm-tab-ico svg { width: 100%; height: 100%; }
.mzm-tabs .mzm-tab.is-active .mzm-tab-ico { color: #3D7C85; opacity: 1; }

.mzm-badge {
  background: rgba(17,20,22,.12) !important; color: #111416 !important;
  border-radius: 999px; font-size: .72rem !important; font-weight: 700;
  padding: 2px 9px !important; line-height: 1.5; transition: background .22s ease, color .22s ease;
}
.mzm-tabs .mzm-tab.is-active .mzm-badge { background: #E8924F !important; color:#111416 !important; }

.mzm-panel { display: none; }
.mzm-panel.is-active { display: block; animation: mzm-fade .3s ease; }
@keyframes mzm-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mzm-panel .mzm-section { margin-top: 0; }
.mzm-panel .mzm-infos { margin-top: 0; }
.mzm-panel .mzm-infos + .mzm-section { margin-top: 32px; }

@media (max-width: 600px) {
  .mzm-tabbar { gap: 0; }
  .mzm-tabs .mzm-tab { padding: 11px 10px 13px !important; font-size: .88rem !important; gap: 5px; }
  .mzm-tab-ico { width: 17px; height: 17px; }

  /* Auf schmalen Bildschirmen die kurze Beschriftung – sonst bricht die
     Leiste um und der Mixer-Reiter rutscht in die zweite Zeile. */
  .mzm-tab-lang { display: none; }
  .mzm-tab-kurz { display: inline; }
  .mzm-tabbar { flex-wrap: nowrap; }
  .mzm-badge { margin-left: 2px; }
}

/* Unter 380 Pixeln reicht auch die Kurzform nicht immer – dann darf
   waagrecht gewischt werden, statt dass ein Reiter umbricht. */
@media (max-width: 380px) {
  .mzm-tabbar {
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .mzm-tabbar::-webkit-scrollbar { display: none; }
  .mzm-tabs .mzm-tab { flex: 0 0 auto; padding: 11px 9px 13px !important; }
}

/* ---------- Kachelgrid ---------- */
.mzm-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.mzm-card {
  /* button-Resets gegen BuddyBoss */
  appearance: none; -webkit-appearance: none; border: none; text-align: left;
  cursor: pointer; width: 100%;
  display: flex; flex-direction: column; gap: 8px;
  background: #fff; border-radius: 16px; padding: 14px 14px;
  box-shadow: 0 4px 16px rgba(17,20,22,.07);
  transition: transform .22s cubic-bezier(.34,1.4,.64,1), box-shadow .22s ease;
  font-family: 'Akko', sans-serif;
  min-height: 0; line-height: 1.35;
}
.mzm-card:hover, .mzm-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(61,124,133,.16);
  outline: none; background: #fff;
}
.mzm-card-icon {
  width: 46px; height: 46px; border-radius: 14px; position: relative;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.mzm-card-icon svg { width: 26px; height: 26px; }
.mzm-card--pdf .mzm-card-icon svg { width: 30px; height: 30px; }
.mzm-card--pdf   .mzm-card-icon { background: rgba(61,124,133,.10);  color: #3D7C85; }
.mzm-card--audio .mzm-card-icon { background: rgba(232,146,79,.14); color: #D36910; }
.mzm-card--video .mzm-card-icon { background: rgba(61,124,133,.10);  color: #3D7C85; }
.mzm-card--other .mzm-card-icon { background: rgba(17,20,22,.06);   color: #111416; }
.mzm-card-name {
  font-family: 'Akko', sans-serif; font-weight: 600;
  color: #111416; font-size: 1rem;
}
.mzm-card-meta { font-size: .8rem; color: #8a8f94; }
.mzm-card--locked { opacity: .65; }
.mzm-card--locked .mzm-card-icon { background: rgba(17,20,22,.06); color: #8a8f94; }
.mzm-lock { position: absolute; right: -6px; bottom: -6px; font-size: 15px; }
.mzm-lock-note {
  background: #FAF8F3; border-radius: 14px; padding: 14px 18px;
  font-family: 'Akko', sans-serif; color: #111416;
}
.mzm-cta {
  display: inline-block; margin-left: 6px; background: #E8924F; color:#111416 !important;
  border-radius: 999px; padding: 4px 16px; text-decoration: none !important; font-weight: 600;
}
.mzm-cta:hover { background: #3D7C85; color: #fff; }

/* ---------- Infos-Akkordeons ---------- */
.mzm-infos { margin: 32px 0 8px; }
.mzm-acc {
  background: #fff; border: 1px solid rgba(61,124,133,.18); border-radius: 18px;
  overflow: hidden; font-family: 'Akko', sans-serif; color: #111416;
  transition: border-color .22s ease, box-shadow .22s ease;
}
.mzm-acc[open] { border-color: rgba(61,124,133,.3); box-shadow: 0 6px 22px rgba(17,20,22,.06); }
.mzm-acc summary {
  font-family: 'Akko', sans-serif; font-weight: 600; font-size: 1.08rem;
  padding: 15px 56px 15px 16px; cursor: pointer; list-style: none; position: relative;
  color: #111416; transition: background .2s;
}
.mzm-acc summary::-webkit-details-marker { display: none; }
.mzm-acc summary::after {
  content: ''; position: absolute; right: 24px; top: 50%;
  width: 9px; height: 9px; border-right: 2.5px solid #3D7C85; border-bottom: 2.5px solid #3D7C85;
  transform: translateY(-70%) rotate(45deg); transition: transform .25s ease;
}
.mzm-acc[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.mzm-acc summary:hover { background: rgba(61,124,133,.04); }

/* --- Textkörper: ruhiger Rhythmus, begrenzte Zeilenlänge --- */
.mzm-acc-body {
  padding: 2px 28px 26px 66px;
  max-width: 74ch;
  font-size: 1rem; line-height: 1.62; color: #3a3d40;
}
.mzm-acc-body > *:first-child { margin-top: 0; }
.mzm-acc-body > *:last-child  { margin-bottom: 0; }
.mzm-acc-body p { margin: 0 0 .9em; }

/* Zwischentitel als kleine Eyebrow-Zeile statt nur fett */
.mzm-acc-body h4,
.mzm-acc-body h5 {
  font-family: 'Akko', sans-serif; font-weight: 700;
  font-size: .82rem; letter-spacing: .07em; text-transform: uppercase;
  color: #3D7C85; margin: 1.9em 0 .7em; padding-bottom: .45em;
  border-bottom: 1px solid rgba(61,124,133,.14);
  display: flex; align-items: center; gap: 9px;
}
.mzm-acc-body h4::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #E8924F; flex: 0 0 auto;
}
.mzm-acc-body > h4:first-child, .mzm-acc-body > h5:first-child { margin-top: .3em; }

/* Listen mit hängendem Einzug und eigenem Marker */
.mzm-acc-body ul { list-style: none; margin: 0 0 1em; padding: 0; }
.mzm-acc-body ul li { position: relative; padding-left: 22px; margin: 0 0 .48em; }
.mzm-acc-body ul li::before {
  content: ''; position: absolute; left: 2px; top: .62em;
  width: 8px; height: 2px; border-radius: 2px; background: #E8924F;
}
.mzm-acc-body ol { margin: 0 0 1em; padding-left: 1.3em; }
.mzm-acc-body ol li { margin: 0 0 .48em; padding-left: .2em; }
.mzm-acc-body ol li::marker { color: #3D7C85; font-weight: 700; }
.mzm-acc-body li > ul, .mzm-acc-body li > ol { margin-top: .4em; }

/* Tabellen, z. B. Tanzschritte */
.mzm-acc-body table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  margin: .3em 0 1.3em; font-size: .93rem;
  border: 1px solid rgba(17,20,22,.10); border-radius: 12px; overflow: hidden;
}
.mzm-acc-body th, .mzm-acc-body td {
  padding: 9px 12px; text-align: left; vertical-align: middle;
  border-bottom: 1px solid rgba(17,20,22,.07);
}
.mzm-acc-body tr:last-child th, .mzm-acc-body tr:last-child td { border-bottom: none; }
.mzm-acc-body th { background: rgba(61,124,133,.06); font-weight: 700; color: #111416; }
.mzm-acc-body td:first-child {
  font-family: 'Akko', sans-serif; font-weight: 600; color: #3D7C85;
  background: rgba(61,124,133,.04); white-space: nowrap;
}
.mzm-acc-body tbody tr:nth-child(even) td:not(:first-child) { background: rgba(17,20,22,.02); }

/* Hinweis-Kasten */
.mzm-acc-body .mzm-tip {
  background: rgba(232,146,79,.10); border-left: 3px solid #E8924F;
  border-radius: 0 12px 12px 0; padding: 12px 16px; margin: 1.1em 0;
  font-size: .95rem;
}
.mzm-acc-body .mzm-tip strong { color: #B96111; }

.mzm-acc-body strong { color: #111416; font-weight: 600; }
.mzm-acc-body a { color: #3D7C85; text-decoration: underline; text-underline-offset: 2px; }

/* YouTube */
.mzm-yt-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; padding-top: 12px; }
.mzm-yt-label { font-weight: 600; margin: 0 0 6px; font-size: .9rem; }
.mzm-yt-frame { position: relative; padding-top: 56.25%; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 14px rgba(17,20,22,.1); }
.mzm-links { grid-column: 1 / -1; margin: 4px 0 0 18px; }
.mzm-links li { margin: 4px 0; }
.mzm-links a { color: #3D7C85; }
.mzm-yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }


/* ---------- Video-Kacheln ---------- */
.mzm-videos { margin: 0 0 30px; }
.mzm-vgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px;
}
.mzm-vcard {
  appearance: none !important; -webkit-appearance: none !important;
  border: none !important; background: transparent !important; box-shadow: none !important;
  padding: 0 !important; margin: 0 !important; width: 100%; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 10px; min-height: 0 !important;
  font-family: 'Akko', sans-serif; line-height: 1.35;
}
.mzm-vthumb {
  position: relative; display: block; border-radius: 18px; overflow: hidden;
  aspect-ratio: 16/9; background: #e8ebed;
  box-shadow: 0 4px 16px rgba(17,20,22,.10);
  transition: transform .25s cubic-bezier(.34,1.4,.64,1), box-shadow .25s ease;
}
.mzm-vthumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s ease, filter .25s ease;
}
.mzm-vcard:hover .mzm-vthumb { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(61,124,133,.22); }
.mzm-vcard:hover .mzm-vthumb img { transform: scale(1.05); filter: saturate(1.08); }
.mzm-vplay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(17,20,22,.10), rgba(17,20,22,.38));
  color: #fff; transition: background .25s ease;
}
.mzm-vplay svg {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(61,124,133,.92); padding: 12px; box-sizing: border-box;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform .25s cubic-bezier(.34,1.6,.64,1), background .25s ease;
}
.mzm-vcard:hover .mzm-vplay svg { transform: scale(1.12); background: #E8924F; }
.mzm-vcard:focus-visible .mzm-vthumb { outline: 3px solid #3D7C85; outline-offset: 3px; }
.mzm-vname {
  font-family: 'Akko', sans-serif; font-weight: 600; color: #111416; font-size: .96rem;
}

/* ---------- Abschnitts-Icons ---------- */
.mzm-accs { display: flex; flex-direction: column; gap: 12px; }
.mzm-acc summary { display: flex; align-items: center; gap: 12px; }
.mzm-acc-ico {
  width: 34px; height: 34px; border-radius: 11px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(61,124,133,.09); color: #3D7C85;
}
.mzm-acc-ico svg { width: 19px; height: 19px; }
.mzm-acc-title { flex: 1; min-width: 0; }
.mzm-acc[open] .mzm-acc-ico { background: rgba(232,146,79,.18); color: #D36910; }

/* ---------- Filter-Chips ---------- */
.mzm-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 18px; }
.mzm-chip {
  appearance: none !important; -webkit-appearance: none !important;
  border: 1.5px solid rgba(17,20,22,.12) !important; background: #fff !important;
  box-shadow: none !important; color: #6b7075 !important;
  border-radius: 999px !important; padding: 7px 16px !important; margin: 0 !important;
  min-height: 0 !important; width: auto !important; cursor: pointer;
  font-family: 'Akko', sans-serif !important; font-weight: 600 !important; font-size: .88rem !important;
  display: inline-flex; align-items: center; gap: 7px; line-height: 1.2 !important;
  transition: all .2s ease;
}
.mzm-chip:hover { border-color: rgba(61,124,133,.45) !important; color: #3D7C85 !important; }
.mzm-chip span { font-size: .76rem; opacity: .65; font-weight: 700; }
.mzm-chip.is-active {
  background: #3D7C85 !important; border-color: #3D7C85 !important; color: #fff !important;
}
.mzm-chip.is-active span { opacity: .85; }
.mzm-card.is-hidden { display: none; }

/* Stimmen-Kürzel */
.mzm-card { position: relative; }
.mzm-vbadge {
  position: absolute; top: 16px; right: 16px;
  background: rgba(61,124,133,.10); color: #3D7C85;
  font-family: 'Akko', sans-serif; font-weight: 700; font-size: .76rem;
  padding: 3px 10px; border-radius: 999px; letter-spacing: .01em;
}


@media (max-width: 600px) {
  .mzm-vgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .mzm-vplay svg { width: 40px; height: 40px; padding: 9px; }
  .mzm-acc-body { padding: 0 18px 20px; }
  .mzm-modal.is-mini .mzm-modal-box { right: 10px; left: 10px; bottom: 10px; width: auto; }
}

/* ---------- Modal (hoher z-index gegen BuddyBoss-Header/Panel) ---------- */
.mzm-modal {
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(17,20,22,.72); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .25s ease; padding: 18px;
}
.mzm-modal.is-open { opacity: 1; }
.mzm-modal-box {
  background: #FAF8F3; border-radius: 22px; width: min(1100px, 100%);
  max-height: calc(100vh - 36px); display: flex; flex-direction: column;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
  transform: translateY(14px) scale(.98); transition: transform .28s cubic-bezier(.34,1.3,.64,1);
  overflow: hidden;
}
.mzm-modal.is-open .mzm-modal-box { transform: none; }
.mzm-modal--audio .mzm-modal-box { width: min(560px, 100%); }
.mzm-modal--youtube .mzm-modal-box { width: min(1000px, 100%); }
.mzm-modal--youtube .mzm-modal-body { padding: 0; }
.mzm-modal--youtube .mzm-yt-frame { border-radius: 0; box-shadow: none; }
.mzm-modal-head {
  display: flex; align-items: center; gap: 8px; padding: 14px 16px 14px 22px;
  border-bottom: 1px solid rgba(17,20,22,.08);
}
.mzm-modal-head .mzm-modal-title { margin-right: 4px; }
.mzm-modal-title {
  font-family: 'Akko', sans-serif; font-weight: 700; color: #111416;
  font-size: 1.1rem; margin: 0; flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Runde Icon-Buttons – BuddyBoss stylt sonst alle <button> */
.mzm-modal .mzm-ibtn,
.mzm-modal .mzm-ibtn:hover,
.mzm-modal .mzm-ibtn:focus,
.mzm-modal .mzm-ibtn:active {
  appearance: none !important; -webkit-appearance: none !important;
  border: none !important; box-shadow: none !important; text-shadow: none !important;
  background: rgba(17,20,22,.06) !important; background-image: none !important;
  width: 38px !important; height: 38px !important;
  min-width: 38px !important; min-height: 38px !important; max-width: 38px !important;
  border-radius: 50% !important; padding: 0 !important; margin: 0 !important;
  line-height: 0 !important; font-size: 0 !important; letter-spacing: normal !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  color: #111416 !important; flex: 0 0 auto; cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.mzm-modal .mzm-ibtn svg { width: 19px; height: 19px; display: block; }
.mzm-modal .mzm-ibtn:hover { background: #3D7C85 !important; color: #fff !important; }
.mzm-modal .mzm-modal-close:hover { transform: rotate(90deg); }
.mzm-modal .mzm-ibtn:focus-visible { outline: 2px solid #3D7C85 !important; outline-offset: 2px; }
.mzm-modal-body { flex: 1; min-height: 0; overflow: auto; }
.mzm-modal-body iframe.mzm-frame { display: block; width: 100%; height: 78vh; border: 0; background: #FAF8F3; }

/* Video im Modal: nie grösser als das Fenster, nichts zum Zoomen nötig */
.mzm-video-wrap { display: block; background: #000; line-height: 0; }
.mzm-video-wrap video {
  display: block; width: 100%; max-height: 76vh;
  margin: 0 auto; background: #000; object-fit: contain;
}
.mzm-modal--video .mzm-modal-box { width: min(1000px, 100%); }
.mzm-modal--video .mzm-modal-body { padding: 0; background: #000; }
.mzm-modal-body .mzm-audio-wrap { padding: 28px 24px; }
.mzm-audio-wrap audio { width: 100%; }
.mzm-audio-viz { display: flex; gap: 4px; align-items: flex-end; height: 42px; margin-bottom: 18px; justify-content: center; }
.mzm-audio-viz span {
  width: 5px; border-radius: 3px; background: linear-gradient(#E8924F, #3D7C85);
  animation: mzm-eq 1.1s ease-in-out infinite; animation-play-state: paused; height: 30%;
}
.mzm-audio-viz.is-playing span { animation-play-state: running; }
.mzm-audio-viz span:nth-child(2n)  { animation-delay: .15s; }
.mzm-audio-viz span:nth-child(3n)  { animation-delay: .3s; }
.mzm-audio-viz span:nth-child(5n)  { animation-delay: .45s; }
@keyframes mzm-eq { 0%,100% { height: 25%; } 50% { height: 100%; } }

.mzm-legacy { display: none !important; }
body.mzm-noscroll { overflow: hidden !important; }

@media (max-width: 600px) {
  .mzm-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .mzm-card { padding: 14px; border-radius: 16px; }
  .mzm-modal { padding: 0; }
  .mzm-modal-box { border-radius: 0; max-height: 100vh; height: 100%; width: 100%; }
  .mzm-modal-body iframe.mzm-frame { height: calc(100vh - 71px); }
}

/* ---------- Minimiert: Fenster in der Ecke, Wiedergabe läuft weiter ---------- */
.mzm-modal.is-mini {
  background: transparent !important; backdrop-filter: none !important;
  pointer-events: none; padding: 0;
}
.mzm-modal.is-mini .mzm-modal-box {
  pointer-events: auto;
  position: fixed; right: 18px; bottom: 18px; left: auto; top: auto;
  width: min(380px, calc(100vw - 28px)); max-height: none; height: auto;
  border-radius: 20px; box-shadow: 0 14px 44px rgba(17,20,22,.28);
  transform: none; animation: mzm-tuck .34s cubic-bezier(.34,1.25,.64,1);
}
@keyframes mzm-tuck { from { transform: translateY(20px) scale(.94); opacity: .4; } to { transform: none; opacity: 1; } }
.mzm-modal.is-mini .mzm-modal-head { padding: 10px 10px 10px 16px; border-bottom: none; }
.mzm-modal.is-mini .mzm-modal-title { font-size: .92rem; }
.mzm-modal.is-mini .mzm-ibtn,
.mzm-modal.is-mini .mzm-ibtn:hover {
  width: 32px !important; height: 32px !important;
  min-width: 32px !important; min-height: 32px !important; max-width: 32px !important;
}
.mzm-modal.is-mini .mzm-ibtn svg { width: 16px; height: 16px; }
.mzm-modal.is-mini .mzm-modal-body { overflow: visible; }
.mzm-modal.is-mini .mzm-audio-wrap { padding: 0 16px 16px; }
.mzm-modal.is-mini .mzm-audio-viz,
.mzm-modal.is-mini .mzm-audio-hint { display: none; }
.mzm-modal--youtube.is-mini .mzm-modal-box { width: min(420px, calc(100vw - 28px)); overflow: hidden; }
.mzm-modal--video.is-mini .mzm-modal-box   { width: min(420px, calc(100vw - 28px)); overflow: hidden; }
.mzm-modal.is-mini .mzm-modal-body iframe.mzm-frame { height: 236px; }

/* Pulsierender Rand, solange etwas läuft */
.mzm-modal.is-mini .mzm-modal-box::after {
  content: ''; position: absolute; inset: 0; border-radius: 20px; pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(61,124,133,.35);
}

.mzm-audio-hint { font-size: .82rem; color: #8a8f94; margin: 14px 0 0; line-height: 1.5; }


/* ---------- Noten-Vorschau (Kurs ohne Zugriff) ---------- */
.mzm-notes-preview {
  border-radius: 20px; overflow: hidden; background: #fff;
  box-shadow: 0 4px 20px rgba(17,20,22,.08); margin: 0 0 28px;
}
.mzm-notes-img img { display: block; width: 100%; height: auto; }
.mzm-notes-flag {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 20px; background: rgba(61,124,133,.06);
  border-bottom: 1px solid rgba(61,124,133,.14);
  font-family: 'Akko', sans-serif; font-weight: 600; font-size: .84rem; color: #3D7C85;
}
.mzm-notes-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #E8924F; flex: 0 0 auto;
  animation: mzm-blink 2.2s ease-in-out infinite;
}
@keyframes mzm-blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.mzm-notes-viewer { padding: 0; }
.mzm-notes-cta {
  display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap;
  padding: 18px 22px; background: #FAF8F3;
  border-top: 1px solid rgba(17,20,22,.08);
  font-family: 'Akko', sans-serif;
}
.mzm-notes-lead {
  font-family: 'Akko', sans-serif; font-weight: 700; color: #111416;
  font-size: 1rem; width: 100%;
}
.mzm-notes-text { color: #6b7075; font-size: .92rem; flex: 1; min-width: 220px; }
.mzm-notes-cta .mzm-cta { margin-left: auto; }


/* ---------- Songinfo-Karte ---------- */
.mzm-songinfo { margin: 0 0 30px; font-family: 'Akko', sans-serif; }
.mzm-chips-info { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mzm-chip-info {
  background: rgba(61,124,133,.07); color: #111416;
  border-radius: 999px; padding: 5px 14px; font-size: .82rem;
}
.mzm-chip-info em {
  font-style: normal; color: #3D7C85; font-weight: 700; margin-right: 6px;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .04em;
}
.mzm-song-text {
  font-size: 1rem; line-height: 1.62; color: #3a3d40; max-width: 74ch; margin: 0 0 18px;
}
.mzm-grade {
  background: #fff; border: 1px solid rgba(61,124,133,.18); border-radius: 16px;
  padding: 16px 20px; max-width: 560px;
}
.mzm-grade-head {
  display: flex; align-items: baseline; justify-content: space-between;
  font-family: 'Akko', sans-serif; font-weight: 600; color: #111416; margin-bottom: 9px;
}
.mzm-grade-head strong { font-size: 1.5rem; color: #3D7C85; }
.mzm-grade-bar { height: 9px; border-radius: 999px; background: rgba(17,20,22,.08); overflow: hidden; }
.mzm-grade-bar span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg,#E8924F,#3D7C85);
  animation: mzm-grow 1s cubic-bezier(.22,1,.36,1);
}
@keyframes mzm-grow { from { width: 0 !important; } }
.mzm-grade-detail { margin-top: 12px; }
.mzm-grade-detail summary {
  cursor: pointer; font-size: .84rem; color: #3D7C85;
  font-family: 'Akko', sans-serif; font-weight: 600; list-style: none;
}
.mzm-grade-detail summary::-webkit-details-marker { display: none; }
.mzm-grade-detail ul { list-style: none; margin: 10px 0 0; padding: 0; }
.mzm-grade-detail li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 0; font-size: .86rem; color: #6b7075;
}
.mzm-dots { display: inline-flex; gap: 4px; }
.mzm-dots b { width: 8px; height: 8px; border-radius: 50%; background: rgba(17,20,22,.12); }
.mzm-dots[data-v="1"] b:nth-child(-n+1),
.mzm-dots[data-v="2"] b:nth-child(-n+2),
.mzm-dots[data-v="3"] b:nth-child(-n+3),
.mzm-dots[data-v="4"] b:nth-child(-n+4),
.mzm-dots[data-v="5"] b:nth-child(-n+5) { background: #3D7C85; }
.mzm-grade-detail p { font-size: .84rem; color: #8a8f94; margin: 10px 0 0; }


/* ---------- Kopfzeile: Eckdaten in einer Zeile ---------- */
.mzm-si-bar {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 20px; padding: 0 0 16px;
  border-bottom: 1px solid rgba(17,20,22,.08);
}
.mzm-si-meta {
  display: flex; gap: 7px; flex: 1; min-width: 0;
  overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.mzm-si-meta::-webkit-scrollbar { display: none; }
.mzm-chip-info { white-space: nowrap; flex: 0 0 auto; padding: 5px 13px; font-size: .8rem; }

/* Lesebereich unterhalb des Materials */
.mzm-read { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
/* Der Songtext sitzt zwischen Eckdaten und Material – dort genügt wenig Luft */
.mzm-read--top { margin-top: 0; margin-bottom: 16px; }
.mzm-read .mzm-infos { margin: 0; }
.mzm-read .mzm-videos { margin: 4px 0 0; }

.mzm-grade-list { list-style: none; margin: 8px 0 0; padding: 0; }
.mzm-grade-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 0; font-size: .88rem; color: #6b7075;
  border-bottom: 1px dashed rgba(17,20,22,.07);
}
.mzm-grade-list li:last-child { border-bottom: none; }
.mzm-grade-note { font-size: .85rem; color: #8a8f94; margin-top: 10px; }

/* Schwierigkeit: Wort und Balken statt nackter Zahl */
.mzm-si-bar .mzm-diff,
.mzm-si-bar .mzm-diff:hover,
.mzm-si-bar .mzm-diff:focus {
  appearance: none !important; -webkit-appearance: none !important;
  border: 1px solid rgba(61,124,133,.22) !important; background: #fff !important;
  box-shadow: none !important; border-radius: 14px !important;
  padding: 7px 14px !important; margin: 0 !important;
  min-height: 0 !important; width: auto !important; height: auto !important;
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  flex: 0 0 auto; cursor: pointer; text-align: left;
  font-family: 'Akko', sans-serif !important; line-height: 1.2 !important;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.mzm-si-bar .mzm-diff:hover {
  border-color: #3D7C85 !important; box-shadow: 0 4px 14px rgba(61,124,133,.14) !important;
}
.mzm-diff-label {
  font-size: .64rem; letter-spacing: .07em; text-transform: uppercase; color: #8a8f94; font-weight: 600;
}
.mzm-diff-level { font-size: .92rem; font-weight: 700; color: #111416; }
.mzm-diff-bar {
  display: block; width: 88px; height: 5px; border-radius: 999px;
  background: rgba(17,20,22,.10); overflow: hidden; margin-top: 2px;
}
.mzm-diff-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg,#E8924F,#3D7C85);
}

/* Akkordeon: erkennbar aufklappbar durch Vorschautext und Hinweis */
.mzm-acc-title { display: flex; flex-direction: column; gap: 3px; }
.mzm-acc-teaser {
  font-family: 'Akko', sans-serif; font-style: normal; font-weight: 400;
  font-size: .84rem; color: #8a8f94; line-height: 1.4;
}
.mzm-acc-more {
  margin-left: auto; margin-right: 26px; flex: 0 0 auto;
  font-size: .76rem; font-weight: 700; color: #3D7C85;
  background: rgba(61,124,133,.08); border-radius: 999px; padding: 3px 11px;
  transition: background .2s ease, color .2s ease;
}
.mzm-acc summary:hover .mzm-acc-more { background: #3D7C85; color: #fff; }
.mzm-acc[open] .mzm-acc-more { opacity: 0; pointer-events: none; }
.mzm-acc[open] .mzm-acc-teaser { display: none; }
.mzm-acc.is-flash { box-shadow: 0 0 0 3px rgba(232,146,79,.45); }

.mzm-grade-detail { margin-top: 16px; border-top: 1px solid rgba(17,20,22,.07); padding-top: 12px; }

/* ---------- Videos kompakter ---------- */
.mzm-vgrid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.mzm-videos .mzm-title { font-size: 1.2rem; }


/* ============================================================
   Feinschliff fürs Handy
   ============================================================ */
@media (max-width: 782px) {

  /* Kopf der Songinfo: Ring rutscht neben die Angaben statt sie zu quetschen */
  /* Filter-Chips scrollbar statt umbrechend */
  .mzm-chips {
    flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px;
    scrollbar-width: none; margin-bottom: 12px;
  }
  .mzm-chips::-webkit-scrollbar { display: none; }
  .mzm-chip { flex: 0 0 auto; }

  /* Akkordeons: mehr Textbreite, weniger Einzug */
  .mzm-acc summary { padding: 13px 44px 13px 14px; font-size: 1rem; }
  .mzm-acc summary::after { right: 18px; }
  .mzm-acc-ico { width: 30px; height: 30px; border-radius: 9px; }
  .mzm-acc-body { padding: 0 16px 18px; }
  .mzm-acc-body h4, .mzm-acc-body h5 { margin-top: 1.5em; }

  /* Reiterleiste bleibt beim Scrollen oben – Wechsel ohne Zurückscrollen */
  .mzm-tabbar {
    position: sticky; top: 0; z-index: 20;
    background: #fff; margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(17,20,22,.05);
  }
}

@media (max-width: 480px) {
  .mzm-vgrid { grid-template-columns: 1fr; }
  .mzm-grade-detail li { font-size: .82rem; }
}


/* ============================================================
   Einheitliche Kästen für Material und Videos
   ============================================================ */
.mzm-box {
  background: #fff; border: 1px solid rgba(61,124,133,.16); border-radius: 18px;
  padding: 20px 22px; margin: 0 0 14px !important;
}
.mzm-box:last-child { margin-bottom: 0 !important; }
/* Videos stehen im Lesebereich zwischen den Akkordeons – gleicher Abstand */
.mzm-read > * { margin-bottom: 0; }
.mzm-read .mzm-videos { margin: 0 !important; }
.mzm-infos { display: flex; flex-direction: column; gap: 14px; }
.mzm-infos .mzm-accs { gap: 14px; }
.mzm-box .mzm-title {
  font-size: 1.05rem; margin: 0 0 14px;
  display: flex; align-items: center; gap: 9px;
}
.mzm-box + .mzm-read { margin-top: 12px; }
.mzm-read { gap: 12px; }

/* Kacheln im Kasten: gleiche Höhe, ruhiger Rahmen */
.mzm-box .mzm-card {
  box-shadow: none; border: 1px solid rgba(17,20,22,.08);
  height: 100%; justify-content: flex-start;
}
.mzm-box .mzm-card:hover {
  border-color: rgba(61,124,133,.35); box-shadow: 0 6px 18px rgba(61,124,133,.10);
}
.mzm-card-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.3;
}
.mzm-card-meta { display: flex; align-items: baseline; gap: 6px; }
.mzm-card-size { font-style: normal; opacity: .55; font-size: .74rem; }

/* Videos: Beschriftung gehört zur Karte */
.mzm-box .mzm-vname { font-size: .88rem; }

/* ============================================================
   Liederbuch: LearnDash-Fortschritt ausblenden
   Ein Songbuch schlägt man nach, man arbeitet es nicht ab.
   ============================================================ */
body.mzm-no-progress .learndash_mark_complete_button,
body.mzm-no-progress .ld-content-action,
body.mzm-no-progress #sfwd-mark-complete,
body.mzm-no-progress .learndash_topic_dots,
body.mzm-no-progress .ld-progress--simple,
body.mzm-no-progress .ld-topic-status,
body.mzm-no-progress .sfwd-mark-complete,
body.mzm-no-progress .ld-status-icon.ld-status-unlocked,
body.mzm-no-progress .bb-progress-wrap,
body.mzm-no-progress .ld-lesson-status { display: none !important; }

/* Fortschrittsbalken samt Beschriftung über dem Inhalt */
body.mzm-no-progress .learndash-wrapper .ld-progress,
body.mzm-no-progress .ld-progress.ld-progress-inline,
body.mzm-no-progress .ld-progress-heading,
body.mzm-no-progress .ld-progress-wrap,
body.mzm-no-progress .ld-progress-stats,
body.mzm-no-progress .ld-navigation__progress,
body.mzm-no-progress .ld-navigation__progress-mark-complete,
body.mzm-no-progress .learndash_mark_complete_button,
body.mzm-no-progress form.sfwd-mark-complete,
body.mzm-no-progress .learndash-wrapper .ld-content-actions .sfwd-mark-complete,
body.mzm-no-progress #learndash_mark_complete_button { display: none !important; }

/* Moderne Navigation (LearnDash 4.24+) */
body.mzm-no-progress .ld-navigation__progress,
body.mzm-no-progress .ld-navigation__progress-mark-complete,
body.mzm-no-progress .ld-navigation__progress-mark-complete-button,
body.mzm-no-progress .ld-navigation__progress-completed,
body.mzm-no-progress .ld-tooltip.ld-tooltip--modern { display: none !important; }

/* Fortschrittsanzeige oben auf Themen- und Lektionsseiten */
body.mzm-no-progress .ld-course-status,
body.mzm-no-progress .ld-status-progress,
body.mzm-no-progress .learndash-wrapper .ld-progress-bar,
body.mzm-no-progress .bb-lms-progress,
body.mzm-no-progress .bb-course-progress { display: none !important; }

/* Leerer Aktionsbereich soll keinen Platz belegen */
body.mzm-no-progress .learndash-wrapper .ld-content-actions:empty,
body.mzm-no-progress .learndash-wrapper .ld-content-actions { border: none !important; }


/* Mixer-Reiter: keine zusätzliche Umrandung, der Mixer bringt seine eigene mit */
.mzm-panel[data-panel="mixer"] { padding: 0; }
.mzm-panel[data-panel="mixer"] .mmx-mixer { margin: 0; }


/* ---------- Noten neben dem Mixer ---------- */
.mzm-noten-daneben {
  appearance: none !important; -webkit-appearance: none !important;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Akko', sans-serif; font-weight: 600; font-size: .84rem;
  background: #fff !important; color: #3D7C85 !important;
  border: 1.5px solid rgba(61,124,133,.25) !important;
  border-radius: 999px !important; padding: 8px 18px !important;
  margin: 0 0 12px !important; cursor: pointer; box-shadow: none !important;
  transition: all .2s ease;
}
.mzm-noten-daneben:hover { background: #3D7C85 !important; color: #fff !important; }
.mzm-noten-daneben.is-an {
  background: #3D7C85 !important; color: #fff !important; border-color: #3D7C85 !important;
}
.mzm-noten-daneben::before {
  content: ''; width: 15px; height: 15px; flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h7v16H4zM13 4h7v16h-7z' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h7v16H4zM13 4h7v16h-7z' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
}

.mzm-notenspalte:empty { display: none; }
/* Die Nennung bekommt eine eigene Zeile unter dem Mixer – lag sie in
   derselben Zelle, überlagerte sie dessen Kopfbereich. */
.mzm-panel.hat-noten {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    'knopf  knopf'
    'mixer  noten'
    'credit noten';
  gap: 0 20px; align-items: start;
}
.mzm-panel.hat-noten > .mzm-noten-daneben { grid-area: knopf; justify-self: start; }
.mzm-panel.hat-noten > .mmx-mixer,
.mzm-panel.hat-noten > .mmx-gesperrt { grid-area: mixer; }
.mzm-panel.hat-noten > .mmx-credit { grid-area: credit; text-align: left; margin-top: 8px; }
.mzm-panel.hat-noten > .mzm-notenspalte {
  grid-area: noten; position: sticky; top: 90px;
  max-height: calc(100vh - 120px); overflow: auto;
}

/* ---------- Knappe Breite: untereinander und Mixer verkleinert ---------- */
@media (max-width: 1100px) {
  .mzm-panel.hat-noten {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'knopf' 'mixer' 'credit' 'noten';
  }
  .mzm-panel.hat-noten > .mzm-notenspalte { position: static; max-height: none; margin-top: 20px; }

  /* Der Mixer zeigt neben den Noten nur das Nötigste. Über «Alles zeigen»
     lässt sich jederzeit auf die volle Ansicht wechseln. */
  .mzm-panel.hat-noten .mmx-mixer.ist-schmal .mmx-marken,
  .mzm-panel.hat-noten .mmx-mixer.ist-schmal .mmx-gruppen,
  .mzm-panel.hat-noten .mmx-mixer.ist-schmal .mmx-tempo,
  .mzm-panel.hat-noten .mmx-mixer.ist-schmal .mmx-lage,
  .mzm-panel.hat-noten .mmx-mixer.ist-schmal .mmx-neutral,
  .mzm-panel.hat-noten .mmx-mixer.ist-schmal .mmx-start,
  .mzm-panel.hat-noten .mmx-mixer.ist-schmal .mmx-tipp,
  .mzm-panel.hat-noten .mmx-mixer.ist-schmal .mmx-faderwrap,
  .mzm-panel.hat-noten .mmx-mixer.ist-schmal .mmx-wert { display: none !important; }

  .mzm-panel.hat-noten .mmx-mixer.ist-schmal .mmx-welle-wrap { height: 44px; }
  .mzm-panel.hat-noten .mmx-mixer.ist-schmal .mmx-kanaele {
    flex-direction: row; flex-wrap: wrap; gap: 6px; padding-top: 10px;
  }
  .mzm-panel.hat-noten .mmx-mixer.ist-schmal .mmx-kanal {
    flex: 0 0 auto; width: auto; min-height: 0;
    flex-direction: row; align-items: center; gap: 8px; padding: 7px 12px 7px 14px;
  }
  .mzm-panel.hat-noten .mmx-mixer.ist-schmal .mmx-kname {
    font-size: .8rem; max-width: 130px;
  }
}

/* Umschalter zwischen knapper und voller Ansicht */
.mmx-schmal-schalter {
  appearance: none !important; -webkit-appearance: none !important;
  display: none; margin: 0 20px 14px !important;
  font-family: 'Akko', sans-serif; font-weight: 600; font-size: .78rem;
  background: #fff !important; color: #6b7075 !important;
  border: 1.5px solid rgba(17,20,22,.14) !important;
  border-radius: 999px !important; padding: 6px 14px !important;
  cursor: pointer; box-shadow: none !important;
}
.mmx-schmal-schalter:hover { border-color: #3D7C85 !important; color: #3D7C85 !important; }
@media (max-width: 1100px) {
  .mzm-panel.hat-noten .mmx-schmal-schalter { display: inline-block; }
}
