.proof-hero-grid:has(.proof-demo) {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
}
.proof-demo {
  --demo-paper: #fffdf8;
  --demo-red: #b42318;
  --demo-green: #147044;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--demo-paper);
  box-shadow: 0 22px 50px -22px rgba(36, 49, 82, .3);
  transform: rotate(1.5deg);
}
.proof-demo [hidden], .proof-demo-tooltip[hidden] { display: none !important; }
.proof-demo-story { padding: 32px 28px 18px; }
.proof-demo-section { margin: 0 0 13px; font-family: var(--sans); font-size: 13px; font-weight: 400; letter-spacing: normal; text-transform: none; color: var(--ink-mute); }
.proof-demo-story h2 { margin: 0 0 18px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(25px, 2.4vw, 31px); line-height: 1.17; letter-spacing: -.025em; }
.proof-demo-story > p:not(.proof-demo-section) { margin: 0 0 14px; font-family: Georgia, 'Times New Roman', serif; font-size: 16px; line-height: 1.85; color: var(--ink-2); }
.proof-demo-change { position: relative; padding-right: 11px; display: inline-block; max-width: 100%; cursor: help; border-radius: 3px; }
.proof-demo-change del, .proof-demo-change ins { display: inline-block; padding: 1px 2px; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.proof-demo-change del { color: var(--demo-red); background: #d6393914; text-decoration-thickness: 1px; }
.proof-demo-change ins { color: var(--demo-green); background: #2fb34420; text-decoration: none; margin-left: 3px; }
.proof-demo-change:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.proof-demo-change.is-pending { cursor: text; }
.proof-demo-change.is-pending del { color: inherit; background: none; text-decoration: none; padding: 0; }
.proof-demo-change.is-pending ins { display: none; }
.proof-demo-footer { margin: 0 24px; padding: 15px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: var(--ink-mute); }
.proof-demo-status { color: var(--accent); font-weight: 650; }
.proof-demo-tooltip { transform: rotate(1.5deg); position: fixed; z-index: 1100; width: 290px; max-width: calc(100vw - 24px); padding: 15px 17px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--ink); box-shadow: 0 8px 32px #00000024; font: 13px/1.55 Inter, sans-serif; }
.proof-demo-tooltip strong { display: block; color: var(--accent); font-size: 11px; margin-bottom: 5px; }
.proof-demo-tooltip p { margin: 0; }
html:lang(hi) .proof-demo-story h2,
html:lang(hi) .proof-demo-story > p:not(.proof-demo-section),
html:lang(hi) .proof-demo-tooltip { font-family: var(--sans); }
html[data-theme="dark"] .proof-demo { --demo-paper: #23272b; --demo-red: #ffaaa3; --demo-green: #88dfad; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .proof-demo { --demo-paper: #23272b; --demo-red: #ffaaa3; --demo-green: #88dfad; }
}
@media (max-width: 820px) {
  .proof-hero-grid:has(.proof-demo) { grid-template-columns: 1fr; }
  .proof-demo, .proof-demo-tooltip { transform: rotate(.6deg); }
}
@media (max-width: 420px) {
  .proof-demo-story { padding-inline: 20px; }
  .proof-demo-footer { margin-inline: 20px; }
}

/* Kleine Hinweisringe zeigen die interaktiven Textstellen, ohne den Satz zu verschieben. */
.proof-demo-change::before, .proof-demo-change::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  top: 3px;
  right: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform-origin: center;
  pointer-events: none;
}
.proof-demo-change::before { background: var(--accent); opacity: .75; }
.proof-demo-change::after {
  border: 1px solid var(--accent);
  animation: proof-hint-pulse 3.6s ease-out infinite;
  animation-delay: var(--hint-delay, 0s);
}
.proof-demo-change.is-pending::before, .proof-demo-change.is-pending::after { display: none; }
.proof-demo-change:hover::after, .proof-demo-change:focus::after,
.proof-demo-change[aria-describedby]::after { animation: none; opacity: 0; }
@keyframes proof-hint-pulse {
  0%, 15% { transform: scale(1); opacity: .55; }
  55%, 100% { transform: scale(3.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .proof-demo-change::after { animation: none; opacity: 0; }
}
