/* Alive Again Women – interaktive Produktansicht
   Ergänzt site.css. Farbwelt: dunkles Burgunder, Bernstein, Silber. */

.aw-body {
  --aw-burgundy: #2a0f16;
  --aw-burgundy-deep: #170710;
  --aw-silver: #cbd2d8;
  --aw-silver-dim: #8e979f;
  --aw-stage-line: rgba(242, 238, 232, 0.14);
  --aw-stage-glass: rgba(11, 8, 12, 0.62);
}

.aw-body main {
  position: relative;
  z-index: 1;
}

/* Klassen mit eigenem display würden das hidden-Attribut sonst überstimmen. */
.aw-body [hidden] {
  display: none !important;
}

.aw-icon {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------- Bühne */

.aw-experience {
  padding: clamp(26px, 4vw, 54px) 0 clamp(34px, 5vw, 70px);
}

.aw-shell {
  display: grid;
  width: min(100% - 40px, var(--content));
  margin: 0 auto;
  grid-template-columns: minmax(290px, 32%) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(24px, 3.2vw, 52px);
}

.aw-side {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 20px;
}

.aw-title {
  margin: 0;
  font-family: "Prata", Georgia, serif;
  font-size: clamp(1.95rem, 1.2rem + 2.4vw, 3.15rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.07;
  overflow-wrap: break-word;
}

.aw-title__accent {
  background: var(--aurum-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.aw-lead {
  max-width: 46ch;
  margin: 0;
  color: var(--pearl-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.aw-spec {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  gap: 2px;
  border-block: 1px solid var(--line-dark);
}

.aw-spec > div {
  flex: 1 1 auto;
  min-width: 96px;
  padding: 12px 16px 12px 0;
}

.aw-spec dt {
  color: var(--gold-light);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.aw-spec dd {
  margin: 4px 0 0;
  font-family: "Prata", Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.2;
}

/* Wechselndes Informationsfeld */
.aw-panel {
  position: relative;
  min-height: 210px;
  padding: 20px 20px 20px 22px;
  border: 1px solid var(--aw-stage-line);
  background:
    linear-gradient(180deg, rgba(42, 15, 22, 0.55), rgba(11, 8, 12, 0.35));
}

.aw-panel::before {
  position: absolute;
  width: 2px;
  top: -1px;
  bottom: -1px;
  left: -1px;
  background: linear-gradient(180deg, var(--gold), rgba(214, 164, 58, 0));
  content: "";
}

.aw-panel__kicker {
  margin: 0;
  color: var(--gold-light);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.aw-panel__title {
  margin: 8px 0 10px;
  font-family: "Prata", Georgia, serif;
  font-size: clamp(1.3rem, 1.05rem + 0.7vw, 1.7rem);
  font-weight: 400;
  line-height: 1.16;
}

.aw-panel__body {
  margin: 0;
  color: var(--pearl-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.aw-panel__meta {
  display: grid;
  margin: 14px 0 0;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 14px;
  border-top: 1px solid var(--line-dark-soft);
  padding-top: 12px;
  font-size: 0.78rem;
}

.aw-panel__meta dt {
  color: var(--aw-silver-dim);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  line-height: 1.7;
  text-transform: uppercase;
}

.aw-panel__meta dd {
  margin: 0;
}

.aw-panel__meta .is-pending {
  color: var(--gold-light);
}

.aw-panel__links {
  display: flex;
  flex-wrap: wrap;
  margin: 12px 0 0;
  gap: 8px 18px;
}

.aw-panel__links:empty {
  display: none;
}

.aw-panel__link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-bottom: 1px solid var(--line-gold);
  color: var(--gold-light);
  font-size: 0.78rem;
}

.aw-panel__link:hover {
  border-color: var(--gold-light);
}

.aw-modelnote {
  display: flex;
  margin: 0;
  align-items: flex-start;
  gap: 10px;
  color: var(--pearl-muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

.aw-modelnote .aw-icon {
  margin-top: 2px;
  color: var(--gold-light);
  font-size: 1rem;
}

.aw-modelnote strong {
  color: var(--pearl);
  font-weight: 600;
}

/* ---------------------------------------------------------- Stage */

.aw-stage {
  align-self: start;
  width: 100%;
  position: relative;
  display: flex;
  min-height: clamp(460px, 66vh, 720px);
  flex-direction: column;
  border: 1px solid var(--aw-stage-line);
  background:
    radial-gradient(120% 80% at 50% 8%, rgba(139, 46, 59, 0.34), transparent 62%),
    radial-gradient(90% 70% at 50% 108%, rgba(214, 164, 58, 0.16), transparent 66%),
    linear-gradient(180deg, var(--aw-burgundy) 0%, var(--aw-burgundy-deep) 58%, #0a0509 100%);
}

.aw-stage__view {
  position: relative;
  min-height: 260px;
  flex: 1 1 auto;
  overflow: hidden;
}

.aw-stage__view canvas {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  inset: 0;
  touch-action: none;
}

.aw-stage__view canvas:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: -4px;
}

/* Hotspots */
.aw-hotspots {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.aw-hotspot {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 10px;
  border: 0;
  color: var(--pearl);
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 180ms ease;
}

.aw-hotspot__dot {
  position: relative;
  width: 11px;
  height: 11px;
  flex: none;
  border: 1px solid rgba(242, 238, 232, 0.72);
  border-radius: 50%;
  background: var(--dot, var(--gold));
  box-shadow: 0 0 0 4px rgba(9, 7, 11, 0.4), 0 0 16px var(--dot, var(--gold));
  transition: transform 180ms var(--ease-out), box-shadow 180ms ease;
}

.aw-hotspot__name {
  display: inline-block;
  max-width: 13ch;
  padding: 5px 9px;
  border: 1px solid var(--aw-stage-line);
  background: var(--aw-stage-glass);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aw-hotspot:hover .aw-hotspot__dot,
.aw-hotspot:focus-visible .aw-hotspot__dot,
.aw-hotspot.is-active .aw-hotspot__dot {
  transform: scale(1.45);
  box-shadow: 0 0 0 5px rgba(9, 7, 11, 0.45), 0 0 24px var(--dot, var(--gold));
}

.aw-hotspot:hover .aw-hotspot__name,
.aw-hotspot:focus-visible .aw-hotspot__name,
.aw-hotspot.is-active .aw-hotspot__name {
  border-color: var(--line-gold);
  color: var(--pearl);
}

.aw-hotspot.is-behind {
  opacity: 0.38;
}

/* Tooltip */
.aw-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  max-width: 250px;
  padding: 10px 12px;
  border: 1px solid var(--line-gold);
  background: var(--aw-stage-glass);
  font-size: 0.78rem;
  line-height: 1.45;
  pointer-events: none;
}

.aw-tooltip strong {
  display: block;
  margin-bottom: 3px;
  font-family: "Prata", Georgia, serif;
  font-size: 0.92rem;
  font-weight: 400;
}

.aw-tooltip span {
  color: var(--pearl-muted);
}

/* Loader */
.aw-loader {
  position: absolute;
  z-index: 4;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  inset: 0;
  padding: 24px;
  text-align: center;
}

.aw-loader__ring {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
}

.aw-loader__ring span {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid transparent;
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: aw-spin 1.15s linear infinite;
}

@keyframes aw-spin {
  to { transform: rotate(360deg); }
}

.aw-loader__text {
  margin: 0;
  color: var(--pearl-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.aw-loader__bar {
  width: min(220px, 70%);
  height: 2px;
  background: var(--line-dark);
}

.aw-loader__bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
  transition: width 220ms var(--ease-out);
}

/* Fallback */
.aw-fallback {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  gap: 16px;
  inset: 0;
  padding: clamp(18px, 3vw, 34px);
  text-align: center;
}

.aw-fallback img {
  max-width: min(260px, 52%);
  max-height: 40%;
  width: auto;
  flex: none;
  object-fit: contain;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
}

.aw-fallback__text {
  flex: none;
  max-width: 46ch;
  margin: 0;
  color: var(--pearl-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.aw-fallback__actions {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
}

/* Nachgeladene Modelle: leiser Hinweis, der die Ansicht nicht verdeckt */
.aw-assets {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 8px 12px;
  border: 1px solid var(--aw-stage-line);
  background: var(--aw-stage-glass);
}

.aw-assets__text {
  margin: 0;
  color: var(--pearl-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.aw-assets__retry {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.72rem;
}

/* Stage-Zustände */
.aw-stage[data-state="loading"] .aw-loader { display: flex; }
.aw-stage[data-state="loading"] .aw-fallback,
.aw-stage[data-state="ready"] .aw-fallback { display: none; }
.aw-stage[data-state="ready"] .aw-loader { display: none; }

/* Bedienelemente */
.aw-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px clamp(12px, 1.6vw, 18px);
  border-top: 1px solid var(--aw-stage-line);
  background: rgba(9, 7, 11, 0.42);
}

.aw-modes {
  display: inline-flex;
  border: 1px solid var(--aw-stage-line);
}

.aw-mode {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 clamp(10px, 1.3vw, 16px);
  border: 0;
  border-right: 1px solid var(--aw-stage-line);
  color: var(--pearl-muted);
  background: transparent;
  font-size: 0.78rem;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.aw-mode:last-child { border-right: 0; }

.aw-mode:hover { color: var(--pearl); }

.aw-mode[aria-pressed="true"] {
  color: var(--night);
  background: var(--gold);
  font-weight: 600;
}

.aw-mode__no {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  opacity: 0.72;
}

.aw-zoom {
  display: flex;
  min-width: 190px;
  flex: 1 1 230px;
  align-items: center;
  gap: 10px;
}

.aw-zoom__label {
  color: var(--pearl-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.aw-zoom__range {
  width: 100%;
  min-width: 70px;
  flex: 1 1 auto;
  height: 32px;
  margin: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.aw-zoom__out {
  min-width: 7.6em;
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--gold-light);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Zweite, unabhängige Zoomachse: Detail innerhalb der aktuellen Ebene */
.aw-zoom--detail {
  flex: 1 1 300px;
  min-width: 240px;
  gap: 8px;
}

.aw-zoom--detail .aw-zoom__range {
  min-width: 54px;
}

.aw-zoom__out--mag {
  min-width: 3.4em;
  text-align: right;
}

.aw-step {
  display: inline-flex;
  width: 44px;
  min-width: 44px;
  height: 44px;
  flex: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--aw-stage-line);
  color: var(--pearl-muted);
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}

.aw-step .aw-icon {
  font-size: 1.05rem;
}

.aw-step:hover {
  border-color: var(--line-gold);
  color: var(--pearl);
}

.aw-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.aw-tool {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--aw-stage-line);
  color: var(--pearl-muted);
  background: transparent;
  font-size: 0.74rem;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}

.aw-tool:hover {
  color: var(--pearl);
  border-color: var(--line-gold);
}

.aw-tool[aria-pressed="true"] {
  color: var(--gold-light);
  border-color: var(--line-gold);
}

.aw-hint {
  margin: 0;
  padding: 9px clamp(12px, 1.6vw, 18px);
  border-top: 1px solid var(--line-dark-soft);
  color: var(--aw-silver-dim);
  font-size: 0.68rem;
  line-height: 1.5;
}

.aw-hint kbd {
  padding: 1px 5px;
  border: 1px solid var(--line-dark);
  color: var(--pearl-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
}

/* Schaltflächen */
.aw-btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--gold);
  color: var(--night);
  background: var(--gold);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.aw-btn:hover {
  border-color: var(--gold-light);
  background: var(--gold-light);
}

.aw-ghostbtn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line-dark);
  color: var(--pearl);
  background: transparent;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}

.aw-ghostbtn:hover {
  border-color: var(--line-gold);
  color: var(--gold-light);
}

.aw-panel .aw-ghostbtn {
  margin-top: 16px;
}

.aw-linkbtn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-gold);
  color: var(--gold-light);
  background: transparent;
  font-size: 0.78rem;
  cursor: pointer;
}

.aw-linkbtn::after {
  content: "→";
  transition: transform 160ms ease;
}

.aw-linkbtn:hover::after {
  transform: translateX(4px);
}

/* ---------------------------------------------------- Textabschnitte */

.aw-section {
  width: min(100% - 40px, var(--content));
  margin: 0 auto;
  padding: clamp(36px, 5vw, 70px) 0;
  border-top: 1px solid var(--line-dark);
}

.aw-section__head h2 {
  margin: 0;
  font-family: "Prata", Georgia, serif;
  font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.2rem);
  font-weight: 400;
  line-height: 1.14;
}

.aw-section__head p {
  max-width: 62ch;
  margin: 12px 0 0;
  color: var(--pearl-muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

/* Bestandteile als redaktionelles Register */
.aw-inglist {
  margin: clamp(22px, 3vw, 38px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line-dark);
  list-style: none;
  counter-reset: none;
}

.aw-ing {
  position: relative;
  display: grid;
  align-items: start;
  gap: 14px 22px;
  grid-template-areas: "no glyph body";
  grid-template-columns: auto auto minmax(0, 1fr);
  padding: clamp(18px, 2.2vw, 28px) 0 clamp(18px, 2.2vw, 26px);
  border-bottom: 1px solid var(--line-dark);
  transition: background-color 200ms ease;
}

.aw-ing::before {
  position: absolute;
  width: 2px;
  top: -1px;
  bottom: -1px;
  left: -14px;
  background: var(--accent, var(--gold));
  content: "";
  opacity: 0;
  transition: opacity 200ms ease;
}

.aw-ing:hover::before,
.aw-ing.is-active::before {
  opacity: 1;
}

.aw-ing.is-active {
  background: linear-gradient(90deg, rgba(139, 46, 59, 0.16), transparent 62%);
}

.aw-ing__no {
  grid-area: no;
  color: var(--gold-light);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  line-height: 2.2;
}

.aw-ing__glyph {
  display: grid;
  width: 46px;
  height: 46px;
  grid-area: glyph;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--accent, var(--gold-light));
}

.aw-ing__glyph svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aw-ing__body {
  min-width: 0;
  grid-area: body;
}

.aw-ing__name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin: 0;
  font-family: "Prata", Georgia, serif;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 400;
  line-height: 1.2;
}

.aw-ing__amount {
  color: var(--pearl-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.aw-ing__amount--pending {
  color: var(--gold-light);
}

.aw-ing__short {
  max-width: 58ch;
  margin: 8px 0 0;
  color: var(--pearl-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.aw-details {
  margin-top: 10px;
  border-top: 1px solid var(--line-dark-soft);
}

.aw-details > summary {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  color: var(--pearl);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  list-style: none;
  text-transform: uppercase;
  cursor: pointer;
}

.aw-details > summary::-webkit-details-marker { display: none; }

.aw-details > summary::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  content: "";
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 180ms ease;
}

.aw-details[open] > summary::before {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.aw-details__inner {
  max-width: 68ch;
  padding: 0 0 6px;
  color: var(--pearl-muted);
  font-size: 0.87rem;
  line-height: 1.65;
}

.aw-details__inner p { margin: 0 0 10px; }
.aw-details__inner p:last-child { margin-bottom: 0; }

.aw-details__meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.aw-details__src a,
.aw-sources a {
  border-bottom: 1px solid var(--line-gold);
  color: var(--gold-light);
  overflow-wrap: anywhere;
}

/* Rezeptur */
.aw-formulation__grid,
.aw-safety__grid {
  display: grid;
  align-items: start;
  gap: clamp(22px, 3vw, 46px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.aw-formulation__grid > .aw-section__head,
.aw-safety__grid > .aw-section__head {
  grid-column: 1 / -1;
  max-width: 68ch;
}

.aw-sheet {
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid var(--aw-stage-line);
  background: linear-gradient(180deg, rgba(42, 15, 22, 0.42), rgba(11, 8, 12, 0.24));
}

.aw-sheet__title {
  margin: 0 0 14px;
  color: var(--gold-light);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.aw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.aw-table th,
.aw-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-dark-soft);
  text-align: left;
  vertical-align: top;
}

.aw-table th {
  color: var(--aw-silver-dim);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.aw-table td:last-child,
.aw-table th:last-child {
  width: 40%;
  text-align: right;
  white-space: nowrap;
}

.aw-table .is-pending {
  color: var(--gold-light);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  white-space: normal;
}

.aw-sheet__foot {
  margin: 14px 0 0;
  color: var(--pearl-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.aw-notes {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.aw-details--wide {
  border-top: 1px solid var(--line-dark);
}

.aw-details--wide:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.aw-details--wide > summary {
  min-height: 52px;
  font-size: 0.68rem;
}

/* Sicherheit */
.aw-safety__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.aw-safety__list li {
  position: relative;
  padding: 11px 0 11px 22px;
  border-bottom: 1px solid var(--line-dark-soft);
  color: var(--pearl-muted);
  font-size: 0.87rem;
  line-height: 1.55;
}

.aw-safety__list li::before {
  position: absolute;
  top: 19px;
  left: 0;
  width: 10px;
  height: 1px;
  background: var(--gold);
  content: "";
}

.aw-sources h3 {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.aw-sources ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.aw-sources li {
  padding: 9px 0;
  font-size: 0.85rem;
}

/* ---------------------------------------------------------- Responsive */

@media (max-width: 1040px) {
  .aw-shell {
    display: flex;
    flex-direction: column;
  }

  .aw-side { display: contents; }
  .aw-title { order: 0; }
  .aw-lead { order: 1; }
  .aw-stage { order: 2; }
  .aw-spec { order: 3; }
  .aw-panel { order: 4; }
  .aw-modelnote { order: 5; }

  .aw-stage {
    min-height: clamp(420px, 62vh, 620px);
  }

  .aw-panel {
    min-height: 0;
  }
}

@media (max-width: 860px) {
  .aw-formulation__grid,
  .aw-safety__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .aw-hotspot__name {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    border: 0;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .aw-hotspot {
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .aw-ing {
    grid-template-areas:
      "glyph no"
      "body body";
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 14px;
  }

  .aw-ing__no {
    align-self: center;
    line-height: 1.4;
  }

  .aw-ing__glyph {
    width: 40px;
    height: 40px;
  }

  .aw-ing__glyph svg {
    width: 22px;
    height: 22px;
  }

  .aw-ing::before {
    left: -10px;
  }
}

@media (max-width: 520px) {
  .aw-shell,
  .aw-section {
    width: min(100% - 28px, var(--content));
  }

  .aw-stage {
    min-height: clamp(380px, 58vh, 520px);
  }

  .aw-stage__view {
    min-height: 230px;
  }

  .aw-mode__no {
    display: none;
  }

  .aw-mode {
    padding: 0 10px;
    font-size: 0.74rem;
  }

  .aw-controls {
    gap: 8px 10px;
    padding: 10px 12px;
  }

  .aw-zoom {
    flex-basis: 100%;
    min-width: 0;
  }

  /* Auf schmalen Geräten bleibt die kurze Beschriftung stehen; der
     Bedienname des Reglers lautet weiterhin „Detailzoom“. */
  .aw-zoom__label-rest {
    display: none;
  }

  .aw-zoom--detail {
    gap: 6px;
  }

  .aw-zoom__out {
    min-width: 6.4em;
  }

  .aw-zoom__out--mag {
    min-width: 3em;
  }

  .aw-tools {
    flex-wrap: wrap;
  }

  .aw-tool {
    font-size: 0.7rem;
  }

  .aw-assets {
    right: 8px;
    bottom: 8px;
    left: 8px;
    padding: 7px 10px;
  }

  .aw-fallback img {
    width: min(190px, 56%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .aw-loader__ring span {
    animation: none;
    border-color: var(--gold);
  }

  .aw-hotspot,
  .aw-hotspot__dot,
  .aw-ing,
  .aw-ing::before,
  .aw-step,
  .aw-loader__bar span {
    transition: none;
  }
}
