/* BRWK Atemimpuls – im Design von breathworkffm.com (Dark): Karte mit Lila-Schimmer, Eyebrow + H2 wie die Abschnitte,
   Buttons wie „T Button Standard“, Farben wie Bläschen und Atem-Begleiter.
   Layout per Container-Query: schmal = untereinander (zentriert), ab 520 px Breite = Text links, Kreis rechts. */
.brwk-atemimpuls {
  --ai-lila: #9c3fab;
  --ai-lila-hell: #d879e7;
  --ai-rosa: #f2a1ff;
  --ai-blau: #96aae6;
  --ai-text: #e6e4ea;
  --ai-leise: #b9b5c8;
  --ai-rand: rgba(156, 63, 171, 0.55);
  container-type: inline-size;
  box-sizing: border-box;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 40px);
  background:
    radial-gradient(90% 120% at 82% 50%, rgba(156, 63, 171, 0.22) 0%, rgba(156, 63, 171, 0) 60%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ai-rand);
  border-radius: 16px;
  box-shadow: 0 0 60px rgba(156, 63, 171, 0.14);
  color: var(--ai-text);
  font-family: inherit;
}
.brwk-atemimpuls *, .brwk-atemimpuls *::before, .brwk-atemimpuls *::after { box-sizing: border-box; }
.brwk-atemimpuls p { padding: 0; }

/* Schmal: Text-Spalte löst sich auf, damit der Kreis zwischen Beschreibung und Start-Knopf steht */
.brwk-ai__innen { display: flex; flex-direction: column; text-align: center; }
.brwk-ai__text { display: contents; }
.brwk-ai__visual { order: 6; display: flex; flex-direction: column; align-items: center; margin-bottom: 8px; }
.brwk-ai__steuerung { order: 7; }
.brwk-ai__fuss { order: 8; }

/* Text */
.brwk-atemimpuls .brwk-ai__label { margin: 0 0 8px; color: var(--ai-lila-hell); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.4; }
.brwk-atemimpuls h2.brwk-ai__titel { margin: 0 0 10px; padding: 0; color: #fff; font-family: inherit; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 600; line-height: 1.2; }
.brwk-ai__untertitel { margin: 0 0 18px; color: var(--ai-leise); font-size: 0.95rem; line-height: 1.55; }
.brwk-ai__wahl {
  width: 100%; max-width: 360px; margin: 0 0 14px; display: block;
  padding: 10px 40px 10px 16px; border-radius: 24px; border: 1px solid var(--ai-rand);
  background: rgba(13, 13, 20, 0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23d879e7' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;
  color: var(--ai-text); font: inherit; font-size: 0.95rem; appearance: none; -webkit-appearance: none; cursor: pointer;
}
.brwk-ai__wahl:focus-visible { outline: 2px solid var(--ai-lila-hell); outline-offset: 2px; }
.brwk-ai__beschreibung { margin: 0 0 20px; color: var(--ai-text); font-size: 1rem; line-height: 1.6; }

/* Atmender Kreis */
.brwk-ai__buehne { position: relative; width: min(260px, 64vw, 100%); aspect-ratio: 1; margin: 4px auto 14px; display: grid; place-items: center; }
.brwk-ai__aura { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(156, 63, 171, 0.35); }
.brwk-ai__kreis {
  width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--ai-rosa) 0%, var(--ai-lila-hell) 30%, var(--ai-lila) 70%, rgba(156, 63, 171, 0.6) 100%);
  box-shadow: 0 0 40px rgba(216, 121, 231, 0.35);
  transform: scale(0.6);
  transition-property: transform, filter, box-shadow;
  transition-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  transition-duration: 0.6s;
  will-change: transform;
}
.brwk-atemimpuls[data-phase="halten"] .brwk-ai__kreis { filter: saturate(0.8) brightness(1.05); box-shadow: 0 0 55px rgba(216, 121, 231, 0.5); }
.brwk-atemimpuls[data-phase="aus"] .brwk-ai__kreis { filter: hue-rotate(-25deg); box-shadow: 0 0 30px rgba(150, 170, 230, 0.35); }
.brwk-atemimpuls[data-phase="pause"] .brwk-ai__kreis { filter: saturate(0.5) brightness(0.85); }

/* Anzeige unter dem Kreis */
.brwk-ai__anzeige { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 110px; text-align: center; }
.brwk-ai__phase { color: #fff; font-size: 1.25rem; font-weight: 600; }
.brwk-ai__sekunden { color: var(--ai-lila-hell); font-size: 2rem; font-weight: 600; line-height: 1.1; min-height: 2.2rem; font-variant-numeric: tabular-nums; }
.brwk-ai__hinweis { color: var(--ai-leise); font-size: 0.9rem; line-height: 1.4; max-width: 300px; }
.brwk-ai__zuege { margin-top: 6px; color: var(--ai-leise); font-size: 0.8rem; }
.brwk-ai__zuege strong { color: var(--ai-text); }

/* Steuerung */
.brwk-ai__steuerung { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; margin: 0 0 14px; }
.brwk-ai__start {
  min-width: 150px; padding: 10px 28px; border: 0; border-radius: 24px; cursor: pointer;
  background: linear-gradient(110deg, #9c3fab 0%, #9c3fab 48%, #f2a1ff 100%);
  color: #fff; font: inherit; font-size: 0.95rem; font-weight: 600; letter-spacing: 1px; line-height: 1.4;
}
.brwk-ai__start:hover { filter: brightness(1.08); }
.brwk-ai__start:focus-visible { outline: 2px solid var(--ai-lila-hell); outline-offset: 3px; }
.brwk-atemimpuls.is-laeuft .brwk-ai__start { background: transparent; border: 1px solid var(--ai-lila); color: var(--ai-text); padding: 9px 27px; }
.brwk-ai__ton { display: inline-flex; align-items: center; gap: 8px; color: var(--ai-leise); font-size: 0.9rem; cursor: pointer; }
.brwk-ai__ton input { accent-color: var(--ai-lila); width: 16px; height: 16px; margin: 0; }
.brwk-ai__fuss { margin: 0; color: var(--ai-leise); font-size: 0.8rem; line-height: 1.5; }

/* Schmal: Auswahl zentriert */
.brwk-ai__wahl { margin-left: auto; margin-right: auto; }

/* Breit: Text links, Kreis rechts */
@container (min-width: 520px) {
  .brwk-ai__innen { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: clamp(24px, 4cqw, 48px); text-align: left; }
  .brwk-ai__text { display: block; }
  .brwk-ai__visual { margin-bottom: 0; }
  .brwk-ai__wahl { margin-left: 0; margin-right: 0; }
  .brwk-ai__steuerung { justify-content: flex-start; }
}

/* Knopf „Mitatmen“ in Karten (z. B. Übersicht Atemtechniken) */
.brwk-ai-mitatmen__knopf {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; margin: 0;
  border: 1px solid var(--ai-lila, #9c3fab); border-color: #9c3fab; border-radius: 24px; background: transparent;
  color: #d879e7; font: inherit; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px; line-height: 1.4; cursor: pointer;
  position: relative; z-index: 2;
}
.brwk-ai-mitatmen__knopf::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #d879e7; }
.brwk-ai-mitatmen__knopf:hover { background: rgba(156, 63, 171, 0.2); color: #fff; }
.brwk-ai-mitatmen__knopf:focus-visible { outline: 2px solid #d879e7; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .brwk-ai__kreis { transform: scale(0.8) !important; transition-property: filter, box-shadow; }
}
