/* Türchen – Ergänzungen zum Prototyp-CSS für die echte App */

.t-logo.has-img { background: transparent; padding: 0; overflow: hidden; }
.t-logo.has-img img { width: 100%; height: 100%; object-fit: contain; display: block; }

.sheet-text { white-space: pre-line; }
.sheet-text:empty { display: none; }
.sheet-media:empty { display: none; }
.sheet-media { margin: 4px 0 14px; }
.sheet-media img { display: block; width: 100%; height: auto; max-height: 52vh; object-fit: cover; border-radius: 12px; }
.video-consent { display: grid; gap: 10px; justify-items: start; padding: 16px; border-radius: 14px; background: color-mix(in oklab, currentColor 6%, transparent); font-size: 0.9375rem; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.preview-bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: center;
  padding: 10px 16px;
  background: #141414; color: #fff;
  font: 500 0.9375rem/1.4 var(--font-body);
}
.preview-bar a { color: #fff; font-weight: 700; }

.noscript { padding: 16px; border-radius: 12px; background: var(--panel); }

.page-narrow { max-width: 640px; }
.msg .signup-inner { justify-items: start; }
.msg-title { font-size: clamp(1.5rem, 4vw, 2.125rem); }
.legal { display: grid; gap: 16px; }
.legal-text { display: grid; gap: 12px; color: var(--page-ink-2); line-height: 1.65; overflow-wrap: anywhere; }

.form-error { color: inherit; font-weight: 600; }

/* Zweite Textebene auf dunklem Grund aus der Mandantenfarbe tönen, nicht grau mischen */
body[data-ground="dark"] { --page-ink-2: color-mix(in oklab, var(--page-ink) 80%, var(--t-accent)); }
