/* ─────────────────────────────────────────────────────────────
   nowa · Mitatmen
   Mitatmen-Seiten, Übersicht und Einbau-Seiten, zusätzlich zu style.css und blog.css (Atemkugel,
   Karten, Hinweis, Quellen kommen von dort). Dieselben Regeln wie im Blog: keine Weichzeichner,
   keine Mischmodi, Bewegung nur über transform und opacity (js/atmen.js).
   ───────────────────────────────────────────────────────────── */

/* ───────────── Seite ───────────── */
.mitatmen-seite__kopf h1 { text-wrap: balance; }
.mitatmen-seite__text > section > h2:first-child { margin-top: 48px; }
.blog .doc .schritte li::marker { font-weight: 700; color: var(--t-s); }
.verwandt__alle { margin: 18px 0 0 !important; }

/* ───────────── Atemkugel mit Dauer, Ton und Atemtempo ───────────── */
.mitatmen { margin-top: 28px; padding: 18px 18px 16px; }
.mitatmen [hidden] { display: none !important; }   /* Knöpfe mit display: inline-flex blenden sonst nicht aus */
.mitatmen .atem__feld { width: min(70vw, 300px); }
.mitatmen__oben { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 6px; }
.mitatmen__dauer { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
/* Stufen (Freie Nase wie in der App: Einsteiger 5 s, Fortgeschritten 10 s): eine Zeile über der Dauer, dieselben Chips */
.mitatmen__stufen { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.mitatmen__chip {
  min-width: 58px; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 20px; cursor: pointer;
  background: var(--still); color: var(--ink-2); font: 700 14px/1.2 var(--f-body);
  transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}
.mitatmen__chip[aria-checked="true"] { color: var(--ink); background: linear-gradient(rgba(53, 67, 101, var(--night)), rgba(53, 67, 101, var(--night))), var(--marke); }
.mitatmen__chip:disabled { opacity: 0.5; cursor: default; }
@media (max-width: 300px) { .mitatmen__chip { min-width: 0; padding: 8px 10px; } .mitatmen__oben, .mitatmen__dauer { gap: 6px; } }
.mitatmen .anim__steuer { justify-content: center; }
.mitatmen .anim__status { flex-basis: 100%; min-height: 1.4em; text-align: center; font-variant-numeric: tabular-nums; }
.mitatmen .atem__rest { font-variant-numeric: tabular-nums; }
.mitatmen__ton {
  display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--ink-3); transition: background-color 0.2s, color 0.2s;
}
.mitatmen__ton svg { width: 22px; height: 22px; fill: currentColor; }
/* Aus: Lautsprecher ohne Wellen, an: mit Wellen (Design D5, 03.11.2026) */
.mitatmen__ton .an { opacity: 0; transition: opacity 0.2s; }
.mitatmen__ton[aria-pressed="true"] { color: var(--ink); background: var(--still); }
.mitatmen__ton[aria-pressed="true"] .an { opacity: 1; }
.mitatmen button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.blog .doc .mitatmen__hinweis, .mitatmen__hinweis { margin: 10px auto 0; max-width: 26rem; text-align: center; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
/* Bricht der Satz um, dann nach dem Komma (Design D1, wie in der App); passt er in eine Zeile, bleibt er eine Zeile */
.mitatmen__hinweis .satzteil { display: inline-block; }

/* Tippen und Ergebnis von „Dein Atemtempo finden“: Die Kugel ist die Tipp-Fläche, die Zahl steht in ihr */
.mitatmen__tipp { position: absolute; inset: 0; border: 0; border-radius: 50%; padding: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mitatmen.is-tippen .atem__ring, .mitatmen.is-ergebnis .atem__ring { opacity: 0.45; }
.mitatmen.is-tippen .atem__zahl, .mitatmen.is-ergebnis .atem__zahl { font-size: 3.2rem; letter-spacing: -0.03em; }
.mitatmen.is-tippen .atem__balken, .mitatmen.is-ergebnis .atem__balken { visibility: hidden; }
.mitatmen.is-tippen .atem__unter, .mitatmen.is-ergebnis .atem__unter { max-width: 24rem; text-wrap: balance; }
.blog .doc .mitatmen__marke, .mitatmen__marke { margin: 14px 0 -4px; font: 700 11.5px/1.2 var(--f-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-s); }

/* Kontrollpause: Stoppuhr statt Atemkugel, die Sekunden groß in der Kugel */
.mitatmen--messung .atem__zahl { font-size: 3.2rem; letter-spacing: -0.03em; }
.mitatmen--messung .atem__rest { max-width: 24rem; margin-left: auto; margin-right: auto; text-wrap: balance; font-weight: 400; font-size: 13.5px; letter-spacing: 0; line-height: 1.5; }
.mitatmen--messung .atem__phase { text-wrap: balance; }

/* ───────────── Einbau-Code ───────────── */
.einbau-info { margin-top: 34px; }
.einbau-info summary { display: inline-flex; list-style: none; }
.einbau-info summary::-webkit-details-marker { display: none; }
.einbau-info__inhalt { margin-top: 16px; padding: 20px 20px 18px; border-radius: 22px; background: var(--karte-blog); box-shadow: var(--schatten-karte); }
.blog .doc .einbau-info__inhalt p { margin: 0; }
.einbau-info label { display: block; margin-top: 16px; font: 700 13px/1.3 var(--f-body); color: var(--ink-2); }
.einbau-info textarea {
  display: block; width: 100%; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--paper); color: var(--ink); font: 12.5px/1.55 var(--f-mono); resize: vertical; overflow-wrap: anywhere;
}
.blog .doc .einbau-info__klein { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--ink-3); }

/* ───────────── Übersicht ───────────── */
.karte__takt { padding: 0; }
.karte--folgt { opacity: 0.55; }
.blog .doc .mitatmen-uebersicht__einbau { margin: 44px 0 0; color: var(--ink-2); }

/* ───────────── Einbau-Seite (iframe auf anderen Websites): immer hell, eine Karte ───────────── */
html.einbau { background: transparent; }
body.einbau { min-height: 0; margin: 0; background: transparent; }
.einbau__karte {
  box-sizing: border-box; min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 12px 12px 8px; border-radius: 26px; background: #FDFBF7; box-shadow: inset 0 0 0 1px var(--line);
}
.mitatmen--einbau { margin: 0; padding: 0; background: none; box-shadow: none; }
/* Die Kugel nimmt, was die Höhe des iframes übrig lässt (Code: 620 px), schmal und breit */
.mitatmen--einbau .atem__feld { width: max(150px, min(62vw, 250px, calc(100vh - 414px))); }
.mitatmen--einbau .anim__status:empty { display: none; }
.mitatmen--einbau .atem__phase { margin-top: 10px; font-size: clamp(1.4rem, 6vw, 1.8rem); }
.einbau__marke { margin: 8px 0 0; text-align: center; font: 700 12.5px/1.4 var(--f-body); color: var(--ink-3); }
.einbau__marke a { color: inherit; text-decoration: none; }
.einbau__marke a:hover, .einbau__marke a:focus-visible { color: var(--ink); text-decoration: underline; }
.einbau__marke b { font-family: var(--f-display); font-weight: 600; color: var(--ink); }
