/* Meldo Mixer – Oberfläche
   Farben: #3D7C85 Petrol, #E8924F Grün, #FAF8F3 Hell, #111416 Dunkel */

.mmx-mixer {
  font-family: 'Akko', system-ui, sans-serif;
  color: #111416; background: #fff;
  border: 1px solid rgba(61,124,133,.16); border-radius: 20px;
  overflow: hidden; outline: none;
}
.mmx-mixer *, .mmx-mixer *::before, .mmx-mixer *::after { box-sizing: border-box; }

/* ---------- Kopf ---------- */
.mmx-kopf {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px 12px;
}
.mmx-titel {
  font-family: 'Akko', sans-serif; font-weight: 700; font-size: 1.1rem; flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mmx-zeit {
  font-variant-numeric: tabular-nums; font-size: .88rem; color: #6b7075; white-space: nowrap;
}
.mmx-jetzt { color: #3D7C85; font-weight: 600; }

/* ---------- Wellenform ---------- */
.mmx-welle-wrap {
  position: relative; height: 74px; margin: 0 20px;
  background: #FAF8F3; border-radius: 12px; overflow: hidden; cursor: pointer;
}
.mmx-welle { display: block; width: 100%; height: 100%; }
.mmx-zeiger {
  position: absolute; top: 0; bottom: 0; left: 0; width: 2px;
  background: #3D7C85; box-shadow: 0 0 6px rgba(61,124,133,.5); pointer-events: none;
}
.mmx-ab {
  position: absolute; top: 0; bottom: 0;
  background: rgba(232,146,79,.18);
  border-left: 2px solid #E8924F; border-right: 2px solid #E8924F;
  pointer-events: none;
}

/* ---------- Steuerleiste ---------- */
.mmx-steuer {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 20px 12px;
}

/**
 * Bedienelemente in Gruppen.
 *
 * Jede Gruppe bleibt beim Umbruch beisammen; feine Trennlinien zeigen die
 * Zusammengehörigkeit, ohne Kästen zu zeichnen. Kein Rahmen, keine Fläche –
 * die Knöpfe tragen ihre Form bereits selbst.
 */
.mmx-tb {
  display: flex; align-items: center; gap: 8px;
  position: relative;
}
.mmx-tb + .mmx-tb::before {
  content: ''; position: absolute; left: -8px; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 24px; background: rgba(17,20,22,.12);
}
.mmx-tb--mix { gap: 8px; flex-wrap: wrap; }
.mmx-mixer button {
  appearance: none !important; -webkit-appearance: none !important;
  font-family: 'Akko', sans-serif; font-weight: 600;
  border: 1.5px solid rgba(17,20,22,.12) !important;
  background: #fff !important; color: #111416 !important;
  border-radius: 999px !important; cursor: pointer;
  min-height: 0 !important; box-shadow: none !important;
  transition: all .18s ease; line-height: 1 !important;
}
.mmx-mixer button:hover { border-color: #3D7C85 !important; color: #3D7C85 !important; }
.mmx-mixer button:disabled { opacity: .4; cursor: default; }
.mmx-mixer button svg { width: 18px; height: 18px; display: block; fill: currentColor; }

/* Der Abspielknopf ist die wichtigste Handlung und darf sich abheben. */
.mmx-play {
  width: 46px !important; height: 46px !important; padding: 0 !important;
  display: grid !important; place-items: center;
  background: linear-gradient(135deg,#E8924F,#3D7C85) !important;
  color:#111416 !important; border-color: transparent !important;
}
.mmx-play:hover { color: #fff !important; transform: scale(1.05); }
.mmx-anfang, .mmx-loop {
  width: 38px !important; height: 38px !important; padding: 0 !important;
  display: grid !important; place-items: center;
}
.mmx-loop.is-an {
  background: rgba(61,124,133,.10) !important; color: #3D7C85 !important; border-color: #3D7C85 !important;
}

.mmx-abwahl { display: flex; gap: 5px; }
.mmx-abwahl button {
  width: 34px !important; height: 34px !important; padding: 0 !important;
  font-size: .82rem !important; display: grid !important; place-items: center;
}
.mmx-abwahl button.is-an {
  background: rgba(232,146,79,.16) !important; color: #B96111 !important; border-color: #E8924F !important;
}
.mmx-spacer { flex: 1; }

/* ---------- Gruppen ---------- */
.mmx-gruppen { display: flex; gap: 8px; flex-wrap: wrap; margin-left: 2px; }
.mmx-gruppe {
  display: flex; align-items: center; gap: 7px;
  border: 1px solid rgba(17,20,22,.10); border-radius: 12px; padding: 5px 9px;
}
.mmx-punkt { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.mmx-gname { font-family: 'Akko', sans-serif; font-weight: 600; font-size: .8rem; }
.mmx-gs, .mmx-s {
  width: 26px !important; height: 24px !important; padding: 0 !important;
  font-size: .72rem !important; border-radius: 8px !important;
  display: grid !important; place-items: center;
}
.mmx-gs[aria-pressed="true"][data-art="solo"],
.mmx-s[aria-pressed="true"][data-art="solo"] {
  background: #3D7C85 !important; color: #fff !important; border-color: #3D7C85 !important;
}
.mmx-gs[aria-pressed="true"][data-art="mute"],
.mmx-s[aria-pressed="true"][data-art="mute"] {
  background: #fdf2f2 !important; color: #b32d2e !important; border-color: rgba(179,45,46,.35) !important;
}
.mmx-neutral,
.mmx-mixer .mmx-start {
  width: 38px !important; height: 38px !important; padding: 0 !important;
  display: grid !important; place-items: center;
}
.mmx-mixer .mmx-start svg,
.mmx-mixer .mmx-neutral svg { width: 19px; height: 19px; }

/* «Anfang» ist der häufigere Griff – deshalb etwas betonter */
.mmx-mixer .mmx-start {
  background: rgba(61,124,133,.08) !important;
  border-color: rgba(61,124,133,.28) !important;
  color: #3D7C85 !important;
}
.mmx-mixer .mmx-start:hover {
  background: #3D7C85 !important; color: #fff !important; border-color: #3D7C85 !important;
}
.mmx-mixer .mmx-start.is-getan {
  background: #E8924F !important; color:#111416 !important; border-color: #E8924F !important;
}

/* ---------- Ladeanzeige ---------- */
.mmx-laden { padding: 0 20px 4px; transition: opacity .4s ease; }
.mmx-laden.is-fertig { opacity: 0; height: 0; padding: 0; overflow: hidden; }
.mmx-ladebalken { height: 4px; border-radius: 999px; background: rgba(17,20,22,.08); overflow: hidden; }
.mmx-ladebalken span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg,#E8924F,#3D7C85); transition: width .3s ease;
}
.mmx-ladehinweis { font-size: .78rem; color: #8a8f94; margin-top: 6px; }
.mmx-fehlertext { color: #b32d2e; }

/* ---------- Kanäle ---------- */
.mmx-kanaele {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 14px 20px 18px;
}
.mmx-kanal {
  position: relative; flex: 0 0 82px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: #fff; border: 1px solid rgba(17,20,22,.10);
  border-radius: 14px; padding: 12px 6px 10px;
  transition: border-color .2s ease, opacity .2s ease;
}
.mmx-kanal:hover { border-color: var(--farbe); }
.mmx-kanal.is-stumm { opacity: .5; }
.mmx-kanal.is-laedt::after {
  content: ''; position: absolute; inset: 0; border-radius: 14px;
  background: rgba(255,255,255,.65)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23008F89' stroke-width='3' stroke-dasharray='40 20'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='.9s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center no-repeat;
}
.mmx-kanal.is-fehler { border-color: rgba(179,45,46,.4); opacity: .55; }
.mmx-band {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  border-radius: 14px 14px 0 0; background: var(--farbe);
}
.mmx-kname {
  font-family: 'Akko', sans-serif; font-weight: 600; font-size: .76rem;
  text-align: center; line-height: 1.25; min-height: 30px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mmx-schalter { display: flex; gap: 5px; }

.mmx-faderwrap { display: flex; justify-content: center; padding: 4px 0; }
.mmx-fader {
  -webkit-appearance: slider-vertical; appearance: slider-vertical;
  writing-mode: vertical-lr; direction: rtl;
  width: 26px; height: 130px; accent-color: #3D7C85; background: transparent; cursor: pointer;
}
.mmx-wert { font-size: .7rem; color: #8a8f94; font-variant-numeric: tabular-nums; }

/* ---------- Fuss ---------- */
.mmx-fuss {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 14px 20px 18px; border-top: 1px solid rgba(17,20,22,.07); background: #FAF8F3;
}
.mmx-master { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.mmx-master label {
  font-family: 'Akko', sans-serif; font-weight: 600; font-size: .82rem; color: #6b7075;
}
.mmx-mfader { width: 150px; accent-color: #E8924F; cursor: pointer; }
.mmx-tipp { font-size: .78rem; color: #8a8f94; flex: 1; min-width: 200px; }
.mmx-tipp b { color: #6b7075; }

/* ---------- Ohne Zugriff ---------- */
.mmx-gesperrt {
  background: #FAF8F3; border: 1px solid rgba(61,124,133,.16); border-radius: 18px;
  padding: 22px; font-family: 'Akko', sans-serif;
}
.mmx-gesperrt strong { font-family: 'Akko', sans-serif; display: block; margin-bottom: 6px; }
.mmx-gesperrt p { color: #6b7075; margin: 0 0 12px; }
.mmx-cta {
  display: inline-block; background: #E8924F; color:#111416 !important;
  border-radius: 999px; padding: 8px 20px; text-decoration: none !important;
  font-family: 'Akko', sans-serif; font-weight: 600;
}
.mmx-cta:hover { background: #3D7C85; }

/* ---------- Handy: Zeilen statt Säulen ---------- */
@media (max-width: 782px) {
  .mmx-kopf, .mmx-steuer, .mmx-kanaele, .mmx-fuss { padding-left: 14px; padding-right: 14px; }
  .mmx-marken {
    padding: 10px 14px 0; flex-wrap: nowrap; overflow-x: auto;
    scrollbar-width: none;
  }
  .mmx-marken::-webkit-scrollbar { display: none; }
  .mmx-mixer .mmx-marke { flex: 0 0 auto; }
  /* Auf dem Handy stehen die Gruppen untereinander, jede über die volle
     Breite – so bleibt erkennbar, was zusammengehört. */
  .mmx-steuer { gap: 10px; }
  .mmx-tb { flex: 1 1 100%; }
  .mmx-tb + .mmx-tb::before { display: none; }
  .mmx-tb + .mmx-tb {
    border-top: 1px solid rgba(17,20,22,.08); padding-top: 10px;
  }
  .mmx-tb--klang { flex-wrap: wrap; }
  .mmx-tempo--regler { flex: 1 1 100%; justify-content: space-between; }
  .mmx-tempo-schieber { flex: 1; width: auto; }
  .mmx-spacer { display: none; }
  .mmx-mixer .mmx-hilfe { position: absolute; top: 14px; right: 14px; }
  .mmx-steuer { position: relative; }
  /* Als Sinnbilder brauchen sie keine eigene Zeile mehr */
  .mmx-mixer .mmx-start, .mmx-neutral { flex: 0 0 auto; }
  .mmx-welle-wrap { margin: 0 14px; height: 58px; }
  .mmx-gruppen { order: 3; width: 100%; }
  .mmx-spacer { display: none; }

  .mmx-kanaele { flex-direction: column; gap: 8px; }
  .mmx-kanal {
    flex: 1 1 auto; width: 100%;
    flex-direction: row; align-items: center; gap: 12px;
    padding: 10px 12px 10px 16px; min-height: 56px;
  }
  .mmx-band { top: 0; bottom: 0; right: auto; width: 4px; height: auto; border-radius: 14px 0 0 14px; }
  .mmx-kname {
    text-align: left; flex: 1; min-height: 0; font-size: .88rem; -webkit-line-clamp: 1;
  }
  .mmx-faderwrap { flex: 0 0 42%; padding: 0; }
  .mmx-fader {
    -webkit-appearance: auto; appearance: auto;
    writing-mode: horizontal-tb; direction: ltr;
    width: 100%; height: 26px;
  }
  .mmx-wert { min-width: 28px; text-align: right; }
  .mmx-gs, .mmx-s { width: 32px !important; height: 30px !important; }
}


/* ---------- Nennung ---------- */
.mmx-credit {
  display: block; clear: both;
  font-family: 'Akko', sans-serif; font-size: .78rem; line-height: 1.5;
  color: #8a8f94; margin: 10px 2px 0; text-align: right;
}
.mmx-credit a { color: #3D7C85; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 782px) { .mmx-credit { text-align: left; } }


/* ---------- Kostprobe ---------- */
.mmx-probeband {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 10px 20px; background: rgba(232,146,79,.10);
  border-bottom: 1px solid rgba(232,146,79,.3);
  font-family: 'Akko', sans-serif; font-weight: 600; font-size: .84rem; color: #B96111;
}
.mmx-probepunkt {
  width: 8px; height: 8px; border-radius: 50%; background: #E8924F; flex: 0 0 auto;
  animation: mmx-puls 2.2s ease-in-out infinite;
}
@keyframes mmx-puls { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.mmx-probehinweis {
  margin-left: auto; font-weight: 400; color: #6b7075; font-size: .8rem;
}

.mmx-probecta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px; background: #FAF8F3;
  border-top: 1px solid rgba(17,20,22,.08);
  animation: mmx-auf .4s ease;
}
@keyframes mmx-auf { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mmx-probecta div { flex: 1; min-width: 240px; }
.mmx-probecta strong {
  font-family: 'Akko', sans-serif; display: block; margin-bottom: 3px; color: #111416;
}
.mmx-probecta span { font-size: .88rem; color: #6b7075; line-height: 1.5; }

@media (max-width: 782px) {
  .mmx-probeband { padding: 9px 14px; }
  .mmx-probehinweis { margin-left: 0; width: 100%; }
  .mmx-probecta { padding: 14px; }
}


/**
 * Unterhalb von 1200 Pixeln stehen die Gruppen untereinander.
 *
 * Bis dahin passt die Leiste in eine Zeile. Darunter würde sie ohnehin
 * umbrechen – dann aber willkürlich, mit einer halbleeren zweiten Zeile.
 * Ein bewusster Umbruch mit ganzer Breite und feiner Trennlinie wirkt
 * geordnet statt zufällig.
 */
@media (max-width: 1200px) {
  .mmx-tb { flex: 1 1 100%; }
  .mmx-tb + .mmx-tb::before { display: none; }
  .mmx-tb + .mmx-tb {
    border-top: 1px solid rgba(17,20,22,.07); padding-top: 10px; margin-top: 2px;
  }
  .mmx-steuer { gap: 10px; position: relative; }
  .mmx-mixer .mmx-hilfe { position: absolute; top: 14px; right: 20px; }
  .mmx-tempo-schieber { flex: 1; width: auto; min-width: 90px; }
  .mmx-tempo--regler { flex: 1 1 auto; max-width: 320px; }
}

/* ---------- Abschnittsmarken ---------- */
.mmx-marken {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 12px 20px 0;
}
.mmx-mixer .mmx-marke {
  display: inline-flex !important; align-items: center; gap: 7px;
  padding: 6px 14px 6px 11px !important; font-size: .8rem !important;
  border-radius: 999px !important;
  border: 1.5px solid rgba(17,20,22,.12) !important; color: #6b7075 !important;
}
/* Farbpunkt in der Abschnittsfarbe – dasselbe Zeichen wie in der Wellenform */
.mmx-marke-punkt {
  width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto;
  background: var(--marke, #8A8F94);
}
.mmx-mixer .mmx-marke:hover {
  border-color: var(--marke, #3D7C85) !important; color: #111416 !important;
}
.mmx-mixer .mmx-marke.is-hier {
  color: #111416 !important; font-weight: 700;
  border-color: var(--marke, #3D7C85) !important;
  box-shadow: inset 0 0 0 2px var(--marke, #3D7C85) !important;
}
.mmx-mixer .mmx-marke.is-schleife {
  background: rgba(232,146,79,.18) !important; color: #B96111 !important;
  border-color: #E8924F !important;
}
.mmx-mixer .mmx-marke.is-schleife::after { content: ' ⟲'; }

/* Stufenloser Temporegler – schlank gehalten, weil er neben vielen anderen
   Bedienelementen steht. Das Tachometer ersetzt die Beschriftung. */
.mmx-tempo--regler {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 12px 0 11px;
  border-radius: 999px; background: rgba(17,20,22,.05);
}
.mmx-tempo-kopf {
  display: inline-flex; align-items: center; color: #8a8f94; flex: 0 0 auto;
}
.mmx-tempo-kopf svg { width: 17px; height: 17px; display: block; }
.mmx-tempo-schieber {
  width: 96px; accent-color: #3D7C85; cursor: pointer; margin: 0;
}
.mmx-mixer .mmx-tempo-wert {
  border: none !important; background: transparent !important;
  padding: 3px 4px !important; min-width: 48px;
  font-size: .8rem !important; color: #6b7075 !important;
  font-variant-numeric: tabular-nums; border-radius: 8px !important;
}
.mmx-mixer .mmx-tempo-wert.is-an { color: #3D7C85 !important; font-weight: 700; }
.mmx-mixer .mmx-tempo-wert:hover { background: #fff !important; color: #3D7C85 !important; }

/* ---------- Tonhöhe ---------- */
.mmx-lage {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  background: rgba(17,20,22,.05); border-radius: 999px;
}
.mmx-mixer .mmx-lage button {
  width: 28px !important; height: 28px !important; padding: 0 !important;
  border: none !important; background: transparent !important; color: #6b7075 !important;
  font-size: 1rem !important; display: grid !important; place-items: center;
  border-radius: 50% !important;
}
.mmx-mixer .mmx-lage button:hover { background: #fff !important; color: #3D7C85 !important; }
.mmx-lage-wert {
  min-width: 32px; text-align: center; font-size: .8rem; color: #6b7075;
  font-family: 'Akko', sans-serif; font-variant-numeric: tabular-nums;
}
.mmx-lage-wert.is-an {
  color: #3D7C85; font-weight: 700;
}
.mmx-lage.is-laedt { opacity: .5; pointer-events: none; }

/* ---------- Fokus ---------- */
.mmx-s[data-art="fokus"][aria-pressed="true"] {
  background: rgba(232,146,79,.22) !important; color: #995411 !important;
  border-color: #E8924F !important;
}
.mmx-kanal.is-fokus { border-color: #E8924F; box-shadow: 0 0 0 2px rgba(232,146,79,.25); }

/* ---------- Übe-Tempo ---------- */
.mmx-tempo {
  display: inline-flex; gap: 3px; padding: 3px;
  background: rgba(17,20,22,.05); border-radius: 999px; margin-right: 4px;
}
.mmx-mixer .mmx-tempo .mmx-t {
  border: none !important; background: transparent !important;
  padding: 6px 12px !important; font-size: .8rem !important;
  border-radius: 999px !important; color: #6b7075 !important;
  font-variant-numeric: tabular-nums;
}
.mmx-mixer .mmx-tempo .mmx-t:hover { background: rgba(255,255,255,.8) !important; color: #3D7C85 !important; }
.mmx-mixer .mmx-tempo .mmx-t.is-an {
  background: #fff !important; color: #3D7C85 !important; font-weight: 700;
  box-shadow: 0 1px 4px rgba(17,20,22,.12) !important;
}
.mmx-tempo.is-laedt { opacity: .5; pointer-events: none; }
.mmx-tempo.is-laedt::after {
  content: '…'; align-self: center; padding-right: 8px; color: #3D7C85;
}

/* ---------- Hilfe-Knopf ---------- */
.mmx-mixer .mmx-hilfe {
  margin-left: auto;
  width: 34px !important; height: 34px !important; padding: 0 !important;
  display: grid !important; place-items: center;
  font-size: .95rem !important; font-weight: 700;
  position: relative;
}
.mmx-mixer .mmx-hilfe.is-neu::after {
  content: ''; position: absolute; top: -2px; right: -2px;
  width: 9px; height: 9px; border-radius: 50%; background: #E8924F;
  box-shadow: 0 0 0 2px #fff;
  animation: mmx-puls 2s ease-in-out infinite;
}

/* ---------- Hilfe-Tour ---------- */
/* Die Schicht selbst bleibt durchsichtig und ohne Weichzeichner.
   Die Verdunkelung entsteht ausschliesslich durch den grossen Schatten der
   Markierung – sonst läge der Schleier auch über dem hervorgehobenen
   Element und machte es unscharf und blass. */
.mmx-tour {
  position: fixed; inset: 0; z-index: 2147483200;
  background: transparent;
}
.mmx-tour-loch {
  position: fixed; border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(17,20,22,.62), 0 0 0 3px #E8924F;
  background: transparent; pointer-events: none;
  transition: top .3s cubic-bezier(.34,1.1,.64,1), left .3s cubic-bezier(.34,1.1,.64,1),
              width .3s cubic-bezier(.34,1.1,.64,1), height .3s cubic-bezier(.34,1.1,.64,1);
}
.mmx-tour-karte {
  position: fixed; width: min(340px, calc(100vw - 24px));
  background: #fff; border-radius: 16px; padding: 18px 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,.28);
  font-family: 'Akko', sans-serif;
  transition: top .3s ease, left .3s ease;
}
.mmx-tour-zahl {
  font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  color: #E8924F; font-weight: 700; margin-bottom: 4px;
}
.mmx-tour-titel {
  font-family: 'Akko', sans-serif; font-size: 1.05rem; color: #111416; display: block;
}
.mmx-tour-text { font-size: .9rem; line-height: 1.55; color: #6b7075; margin: 6px 0 14px; }
.mmx-tour-knoepfe { display: flex; align-items: center; gap: 8px; }
.mmx-tour-knoepfe button {
  appearance: none !important; border: 1.5px solid rgba(17,20,22,.14) !important;
  background: #fff !important; color: #111416 !important;
  border-radius: 999px !important; padding: 8px 16px !important;
  font-family: 'Akko', sans-serif; font-weight: 600; font-size: .84rem;
  cursor: pointer; box-shadow: none !important;
}
.mmx-tour-knoepfe button:hover { border-color: #3D7C85 !important; color: #3D7C85 !important; }
.mmx-tour-weiter {
  background: linear-gradient(135deg,#E8924F,#3D7C85) !important;
  color:#111416 !important; border-color: transparent !important;
}
.mmx-tour-weiter:hover { color: #fff !important; }
.mmx-tour-ende { border: none !important; color: #8a8f94 !important; padding-left: 0 !important; }
