/* Trauanfrage – Entwurf Schritt 1. Eigenständige Formularseite wie /glow/warteliste:
   kein Webflow-CSS, alles unter .tr gekapselt. Optik bewusst aus der Hauptsite übernommen
   (Kontaktkarte, /jesus): Kamerik-Headlines, schwarze Schrift, .button #212529 / 8px,
   Karten 24px mit dunkler Kontur + shadow-xxlarge, Graustufen-Flächen. Flieder nur als
   Akzent (Fokus, Lesefortschritt). Kein Orange. */

@font-face { font-family: "Tr Kamerik"; src: url("/fonts/Kamerik-205-Heavy.woff") format("woff"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Tr Kamerik"; src: url("/fonts/Kamerik-205-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Tr Helvetica"; src: url("/fonts/helvetica.woff") format("woff"); font-weight: 400; font-display: swap; }

.tr {
  --bg: #f8f9fa; --bg2: #e9ecef; --g1: #dee2e6; --g2: #ced4da; --g3: #adb5bd;
  --ink: #000; --dark: #212529; --ink2: #343a40; --muted: #495057;
  --lila: #d6c9fe;
  --gelb: #fcff59;
  --ok: #027a48; --ok-bg: #ecfdf3; --err: #b54708; --err-bg: #fffaeb; /* Fehler = Orange, damit nicht mit den roten offenen Fragen verwechselbar */
  --r-btn: 8px; --r-in: 8px; --r-card: 24px;
  --head: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --title: "Tr Kamerik", "Kamerik 205", Arial, sans-serif;
  --text: "Tr Helvetica", Helvetica, Arial, sans-serif;
  --shadow: 0 16px 32px -14px rgba(0, 0, 0, .10);
  --shadow-hi: 0 32px 64px -12px rgba(0, 0, 0, .14); /* = .shadow-xxlarge */

  margin: 0; min-height: 100vh; min-height: 100dvh; overflow-x: clip;
  background: var(--bg); color: var(--ink);
  font-family: var(--text); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
.tr *, .tr *::before, .tr *::after { box-sizing: border-box; }
.tr ::selection { background: var(--gelb); color: var(--ink); }
.tr svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tr .tr-sr, .tr .tr-choice input, .tr .tr-check input {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap;
}
.tr [hidden] { display: none !important; }
.tr a { color: inherit; }
.tr :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.tr .tr-noscript { margin: 120px 24px; text-align: center; }

/* Ruhige #f8f9fa-Fläche mit einem Hauch Flieder (Palette: fog-base), wandert mit dem Fortschritt mit */
.tr .tr-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(48vmax 36vmax at calc(78% + var(--p, 0) * 10%) 0%, rgba(214, 201, 254, .38), transparent 70%),
    radial-gradient(36vmax 30vmax at calc(10% - var(--p, 0) * 6%) 100%, rgba(214, 201, 254, .22), transparent 70%);
}

/* ---------- Kopf ---------- */
.tr .tr-head {
  position: fixed; inset: 0 0 auto; z-index: 20; height: var(--head);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 0 clamp(16px, 3.4vw, 40px);
  padding-top: env(safe-area-inset-top);
  height: calc(var(--head) + env(safe-area-inset-top));
}
/* Weich auslaufender Glas-Streifen statt harter Kante */
.tr .tr-head::before {
  content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none;
  background: rgba(248, 249, 250, .78);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
}
.tr .tr-logo { justify-self: start; display: inline-flex; border-radius: 4px; }
.tr .tr-logo img { height: 17px; width: auto; display: block; }
.tr .tr-exit {
  justify-self: end; display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; color: var(--ink); text-decoration: none; padding: 8px 12px; margin-right: -10px; border-radius: var(--r-btn);
  transition: color .2s, background-color .2s;
}
.tr .tr-exit:hover { background: var(--g1); }
.tr .tr-exit svg { width: 16px; height: 16px; }

.tr .tr-progress {
  display: inline-flex; align-items: center; gap: 14px; height: 40px; padding: 0 16px 0 18px;
  border-radius: 999px; background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid var(--g1); box-shadow: var(--shadow);
  font-size: 13px; color: var(--ink); letter-spacing: .01em;
  font: inherit; font-size: 13px; cursor: pointer;
  transition: opacity .4s var(--ease), transform .4s var(--ease), box-shadow .3s var(--ease), background-color .3s;
}
.tr .tr-chev { width: 14px; height: 14px; margin-left: -4px; color: var(--muted); transition: transform .35s var(--ease); }

/* Pille klappt auf: Schrittliste */
.tr .tr-pill { position: relative; justify-self: center; }
.tr .tr-pill.is-open .tr-progress { background: #fff; box-shadow: var(--shadow-hi); }
.tr .tr-pill.is-open .tr-chev { transform: rotate(180deg); }
.tr .tr-steps {
  position: absolute; top: calc(100% + 10px); left: 50%; width: 264px; padding: 10px;
  border-radius: 20px; background: rgba(255, 255, 255, .96); border: 1px solid var(--g1); box-shadow: var(--shadow-hi);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transform: translate(-50%, -8px) scale(.96); transform-origin: 50% 0;
  transition: opacity .22s var(--ease), transform .32s var(--ease), visibility 0s linear .32s;
}
.tr .tr-pill.is-open .tr-steps { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: 0s; }
.tr .tr-steps-head { margin: 4px 10px 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.tr .tr-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tr .tr-steps li { opacity: 0; transform: translateY(-4px); transition: opacity .25s var(--ease), transform .3s var(--ease); }
.tr .tr-pill.is-open .tr-steps li { opacity: 1; transform: none; }
.tr .tr-pill.is-open .tr-steps li:nth-child(2) { transition-delay: .02s; } .tr .tr-pill.is-open .tr-steps li:nth-child(3) { transition-delay: .04s; }
.tr .tr-pill.is-open .tr-steps li:nth-child(4) { transition-delay: .06s; } .tr .tr-pill.is-open .tr-steps li:nth-child(5) { transition-delay: .08s; }
.tr .tr-pill.is-open .tr-steps li:nth-child(6) { transition-delay: .1s; } .tr .tr-pill.is-open .tr-steps li:nth-child(7) { transition-delay: .12s; }
.tr .tr-steps button {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border: 0; border-radius: 12px; background: none;
  font: inherit; font-size: 15px; color: var(--ink); text-align: left; cursor: pointer; transition: background-color .2s;
}
.tr .tr-steps button:hover:not(:disabled) { background: var(--bg2); }
.tr .tr-steps button:disabled { cursor: default; color: var(--g3); }
.tr .tr-step-n {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font-size: 12px; font-weight: 700; background: var(--bg2); color: var(--muted);
}
.tr .tr-steps button.is-done .tr-step-n { background: var(--dark); color: #fff; }
.tr .tr-steps button.is-done:disabled { color: var(--ink); }
.tr .tr-steps button.is-now { background: var(--bg2); color: var(--ink); font-weight: 700; }
.tr .tr-steps button.is-now .tr-step-n { background: var(--lila); color: var(--ink); }
.tr .tr-progress-short { display: none; }
.tr .tr-dots { display: inline-flex; gap: 5px; align-items: center; }
.tr .tr-dots i {
  width: 6px; height: 6px; border-radius: 3px; background: var(--g2);
  transition: width .45s var(--ease), background-color .45s var(--ease);
}
.tr .tr-dots i.is-done { background: var(--dark); }
.tr .tr-dots i.is-now { width: 20px; background: var(--dark); }

/* ---------- Bühne + Screens ---------- */
.tr .tr-stage {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; min-height: 100dvh;
  padding: calc(var(--head) + env(safe-area-inset-top) + 24px) clamp(16px, 4vw, 48px) 48px;
}
.tr .tr-screen {
  grid-area: 1 / 1; align-self: center; justify-self: center;
  width: 100%; max-width: 640px; display: flex; flex-direction: column;
}
.tr .tr-screen--wide { max-width: 760px; }
.tr .tr-screen--doc { max-width: 820px; align-self: start; }
.tr .tr-screen--end { max-width: 620px; text-align: center; }
.tr .tr-body { min-width: 0; }

.tr .tr-eyebrow {
  margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--muted);
}
.tr h1 {
  margin: 0; font-family: var(--title); font-weight: 900; color: var(--ink);
  font-size: clamp(30px, 1.1rem + 2.4vw, 48px); line-height: 1.12;
  text-wrap: balance;
}
.tr h1:focus { outline: none; }
.tr .tr-soft { color: inherit; }
/* Hero-Screens wie die Site-Heros (/jesus, Startseite): Versalien */
.tr .tr-screen--hero h1, .tr .tr-screen--end h1 { text-transform: uppercase; }
.tr .tr-lead { margin: 22px 0 0; font-size: clamp(17px, 1rem + .35vw, 20px); line-height: 1.6; color: var(--ink); max-width: 36em; text-wrap: pretty; }
.tr .tr-help { margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink2); max-width: 38em; text-wrap: pretty; }

.tr .tr-meta { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.tr .tr-meta li { display: inline-flex; align-items: center; gap: 8px; }
.tr .tr-meta svg { width: 18px; height: 18px; color: var(--ink); }

/* ---------- Auswahl-Karten ---------- */
.tr .tr-choices { display: grid; gap: 12px; margin-top: 34px; }
.tr .tr-choice {
  position: relative; display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 14px 22px 14px 16px;
  background: #fff; border: 1px solid var(--dark); border-radius: var(--r-card);
  box-shadow: var(--shadow); cursor: pointer; user-select: none;
  transition: border-color .2s, background-color .25s, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.tr .tr-choice:hover { box-shadow: var(--shadow-hi); transform: translateY(-2px); }
.tr .tr-choice:active { transform: translateY(0) scale(.995); }
.tr .tr-choice:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.tr .tr-key {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-btn);
  border: 0; background: var(--g1); font-size: 13px; font-weight: 700; color: var(--ink);
  transition: background-color .25s, color .25s, border-color .25s;
}
.tr .tr-choice-text { flex: 1; font-size: 18px; line-height: 1.35; }
.tr .tr-tick { flex: none; width: 22px; height: 22px; color: var(--ink); opacity: 0; transform: scale(.6); transition: opacity .25s, transform .35s var(--ease); stroke-width: 2.2; }
.tr .tr-choice:has(input:checked) { background: var(--dark); color: #fff; box-shadow: var(--shadow-hi); }
.tr .tr-choice:has(input:checked) .tr-key { background: var(--lila); color: var(--ink); }
.tr .tr-choice:has(input:checked) .tr-tick { opacity: 1; transform: none; color: #fff; }
.tr .tr-choice.is-picked { animation: trPick .42s var(--ease); }
@keyframes trPick { 0%, 100% { transform: none; } 30% { transform: scale(.985); } 60% { transform: scale(1.008); } }

/* ---------- Karten + Felder ---------- */
.tr .tr-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.tr .tr-card {
  min-width: 0; padding: 22px; border-radius: var(--r-card); background: var(--bg2);
  display: grid; gap: 14px; transition: background-color .25s;
}
.tr .tr-card:focus-within { background: var(--g1); }
.tr .tr-card-title { margin: 0 0 2px; display: flex; align-items: center; gap: 10px; font-family: var(--title); font-weight: 900; font-size: 20px; }
.tr .tr-dot { display: none; }

.tr .tr-field { display: grid; gap: 8px; min-width: 0; }
.tr .tr-field label { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink); min-height: 20px; }
.tr .tr-card > .tr-field:only-child > label { font-family: var(--title); font-weight: 900; font-size: 20px; }
.tr input:not([type=radio]):not([type=checkbox]):not([type=file]), .tr textarea {
  width: 100%; min-width: 0; font: inherit; font-size: 18px; color: var(--ink);
  background: #fff; border: 1px solid var(--ink); border-radius: var(--r-in);
  padding: 0 16px; height: 56px; outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.tr input::placeholder, .tr textarea::placeholder { color: var(--g3); }
.tr input:not([type=radio]):not([type=checkbox]):not([type=file]):focus, .tr textarea:focus {
  box-shadow: 0 0 0 1px var(--ink), 0 0 0 5px var(--lila);
}
.tr [aria-invalid="true"] { border-color: var(--err) !important; background: #fffbfa !important; }
.tr [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .14) !important; }
.tr input[type=date] { display: flex; align-items: center; line-height: 56px; }
.tr input[type=date]::-webkit-date-and-time-value { text-align: left; }
.tr input[type=date]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }

/* Datum: drei Segmente TT · MM · JJJJ */
.tr .tr-label { font-size: 15px; font-weight: 700; color: var(--ink); }
.tr .tr-date {
  display: flex; align-items: center; height: 56px; padding: 0 8px; background: #fff; border: 1px solid var(--ink); border-radius: var(--r-in);
  cursor: text; transition: box-shadow .2s;
}
.tr .tr-date:focus-within { box-shadow: 0 0 0 1px var(--ink), 0 0 0 5px var(--lila); }
.tr .tr-date[aria-invalid="true"] { border-color: var(--err); background: #fffbfa; }
.tr .tr-date input.tr-seg.tr-seg {
  width: 3.8ch; height: 40px; padding: 0 4px; border: 0; border-radius: 6px; background: transparent; box-shadow: none;
  text-align: center; font-variant-numeric: tabular-nums; font-size: 18px; letter-spacing: .04em;
}
.tr .tr-date input.tr-seg.tr-seg--4 { width: 5.2ch; }
.tr .tr-date input.tr-seg.tr-seg:focus { background: var(--bg2); box-shadow: none; }
.tr .tr-date input.tr-seg.tr-seg::placeholder { color: var(--g3); letter-spacing: .08em; }
.tr .tr-date-sep { color: var(--g3); font-size: 18px; padding: 0 1px; user-select: none; }
.tr .tr-date-live { margin: 0; min-height: 20px; font-size: 13px; color: var(--muted); opacity: 0; transform: translateY(-3px); transition: opacity .25s, transform .3s var(--ease); }
.tr .tr-date-live.is-on { opacity: 1; transform: none; }

/* Geschichte */
.tr .tr-field--area { margin-top: 28px; }
.tr textarea {
  height: auto; min-height: 168px; max-height: 52vh; padding: 16px 18px; line-height: 1.6; resize: none;
  border-radius: var(--r-card); box-shadow: var(--shadow);
}
.tr .tr-area-foot { display: flex; justify-content: space-between; gap: 12px; padding: 0 6px; font-size: 13px; color: var(--muted); }
.tr .tr-count { margin-left: auto; font-variant-numeric: tabular-nums; transition: color .2s; }
.tr .tr-count.is-ok { color: var(--ok); }

/* Checkbox */
.tr .tr-check {
  position: relative; display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 18px 20px;
  border-radius: var(--r-card); border: 0; background: var(--bg2);
  font-size: 15px; line-height: 1.55; color: var(--ink); cursor: pointer;
  transition: border-color .25s, background-color .25s, opacity .35s, box-shadow .25s;
}
.tr .tr-check:hover { background: var(--g1); }
.tr .tr-check a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; white-space: nowrap; }
.tr .tr-check a:hover { text-decoration-thickness: 2px; }
.tr .tr-box {
  flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 4px;
  border: 1px solid var(--ink); background: #fff; transition: background-color .2s, border-color .2s, transform .2s var(--ease);
}
.tr .tr-box svg { width: 16px; height: 16px; color: #fff; stroke-width: 2.6; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .3s var(--ease) .05s; }
.tr .tr-check:has(input:checked) .tr-box { background: var(--dark); border-color: var(--dark); }
.tr .tr-check:has(input:checked) .tr-box svg { stroke-dashoffset: 0; }
.tr .tr-check:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.tr .tr-check:has(input[aria-invalid="true"]) { box-shadow: inset 0 0 0 1px var(--err); background: var(--err-bg); }
.tr .tr-check:has(input:disabled) { cursor: not-allowed; opacity: .45; }

.tr .tr-micro { display: flex; gap: 10px; align-items: flex-start; margin: 16px 2px 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.tr .tr-micro svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--ink); }
.tr .tr-micro--center { justify-content: center; }
.tr .tr-micro a { color: var(--ink); text-underline-offset: 3px; }

/* Meldungen */
.tr .tr-msg:empty { display: none; }
.tr .tr-msg, .tr .tr-hint {
  display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; padding: 12px 16px; border-radius: 14px;
  font-size: 15px; line-height: 1.5; animation: trMsg .35s var(--ease);
}
.tr .tr-msg { color: #7a2e0e; background: var(--err-bg); border: 1px solid #fedf89; }
.tr .tr-msg::before, .tr .tr-hint::before {
  content: "!"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  background: currentColor; color: #fff; font-size: 12px; font-weight: 700;
}
.tr .tr-msg::before { background: var(--err); }
.tr .tr-hint { color: var(--ink); background: var(--bg2); border: 1px solid var(--g1); }
.tr .tr-hint::before { content: "i"; background: var(--dark); }
.tr .tr-msg.is-soft { color: var(--ink); background: var(--bg2); border-color: var(--g1); }
.tr .tr-msg.is-soft::before { content: "i"; background: var(--dark); }
.tr .tr-hint--confirm { align-items: center; flex-wrap: wrap; }
.tr .tr-hint--confirm > span { flex: 1 1 220px; }
.tr .tr-hint--confirm::before { content: "?"; }
.tr .tr-btn--sm { height: 40px; padding: 0 16px; font-size: 15px; }
@keyframes trMsg { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Aktionen ---------- */
.tr .tr-actions { display: flex; align-items: center; gap: 12px; margin-top: 40px; }
.tr .tr-screen--end .tr-actions { justify-content: center; }
.tr .tr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 28px;
  border: 0; border-radius: var(--r-btn); background: var(--dark); color: #fff; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .45);
  transition: background-color .2s, transform .2s var(--ease), box-shadow .25s var(--ease);
}
.tr .tr-btn svg { width: 18px; height: 18px; stroke-width: 2; transition: transform .25s var(--ease); }
.tr .tr-btn:hover { background: var(--ink2); transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .5); }
.tr .tr-btn:hover svg { transform: translateX(3px); }
.tr .tr-btn:active { transform: translateY(0) scale(.98); }
.tr .tr-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.tr .tr-btn--ghost { background: var(--g1); color: var(--ink); box-shadow: none; } /* = .button.is-secondary */
.tr .tr-btn--ghost:hover { background: var(--g2); box-shadow: none; }
.tr .tr-back {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-btn);
  border: 0; background: var(--g1); color: var(--ink); cursor: pointer;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.tr .tr-back:hover { background: var(--g2); }
.tr .tr-back svg { width: 20px; height: 20px; }
.tr .tr-kbd-hint { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; }
.tr .tr-kbd-hint--inline { margin-left: 0; }
.tr kbd {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px;
  font: inherit; font-size: 11px; font-weight: 700; color: var(--ink2);
  background: #fff; border: 1px solid var(--g2); box-shadow: 0 1px 0 var(--g2);
}
.tr .tr-link {
  display: inline-block; margin-top: 22px; padding: 6px 4px; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 15px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--g3); text-underline-offset: 4px;
  transition: color .2s, text-decoration-color .2s;
}
.tr .tr-link:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ---------- Scroll-Gate / Lesebereich ---------- */
.tr .tr-reader-wrap {
  position: relative; margin-top: 28px; border-radius: var(--r-card); overflow: hidden;
  background: #fff; border: 1px solid var(--dark); box-shadow: var(--shadow-hi);
}
.tr .tr-reader-top { position: relative; z-index: 2; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--bg2); }
.tr .tr-readbar { height: 3px; background: var(--bg2); }
.tr .tr-readbar span {
  display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--read, 0));
  background: linear-gradient(90deg, var(--lila), var(--dark));
  transition: transform .12s linear;
}
.tr .tr-toc {
  display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent);
}
.tr .tr-toc::-webkit-scrollbar { display: none; }
.tr .tr-toc a {
  flex: none; padding: 7px 12px; border-radius: var(--r-btn); font-size: 14px; white-space: nowrap; text-decoration: none;
  color: var(--ink); background: var(--bg2); border: 0;
  transition: background-color .2s, color .2s, border-color .2s;
}
.tr .tr-toc a:hover { background: var(--g1); }
.tr .tr-toc a.is-active { background: var(--dark); color: #fff; }
.tr .tr-reader {
  height: clamp(380px, 58vh, 640px); overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth;
  padding: 36px clamp(22px, 5vw, 56px) 40px; outline: none;
  font-size: 17px; line-height: 1.7; color: var(--ink);
}
.tr .tr-reader:focus-visible { box-shadow: inset 0 0 0 2px var(--lila); }
.tr .tr-reader > * { max-width: 62ch; }
.tr .tr-doc-head { padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--bg2); }
.tr .tr-reader h2 { margin: 0; font-family: var(--title); font-weight: 900; font-size: clamp(26px, 1rem + 1.6vw, 34px); line-height: 1.1; color: var(--ink); letter-spacing: -.01em; }
.tr .tr-doc-stand { margin: 10px 0 0; font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.tr .tr-reader h3 {
  margin: 52px 0 14px; scroll-margin-top: 20px; font-family: var(--title); font-weight: 900;
  font-size: clamp(21px, 1rem + .7vw, 25px); line-height: 1.2; color: var(--ink); text-wrap: balance;
}
.tr .tr-reader h3 span { margin-right: 4px; }
.tr .tr-reader h4 { margin: 30px 0 8px; font-size: 18px; line-height: 1.35; color: var(--ink); }
.tr .tr-reader h5 { margin: 22px 0 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tr .tr-reader p { margin: 0 0 14px; text-wrap: pretty; hyphens: auto; }
.tr .tr-doc-lead { font-family: var(--title); font-weight: 300; font-size: clamp(19px, 1rem + .5vw, 22px); line-height: 1.45; color: var(--ink); }
.tr .tr-reader ul { list-style: none; margin: 0 0 18px; padding: 0; }
.tr .tr-reader ul li { position: relative; padding-left: 24px; margin: 0 0 8px; }
.tr .tr-reader ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--dark); }
.tr .tr-reader li p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.tr .tr-doc-key {
  position: relative; padding: 14px 18px 14px 50px; border-radius: 16px; background: var(--bg2); color: var(--ink); font-weight: 700; line-height: 1.5;
}
.tr .tr-doc-key::before {
  content: ""; position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3 3 7-7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
/* Meeting 03.11.: Aussage aus Sicht der Pastoren → Ausrufezeichen statt Haken */
.tr .tr-doc-key--hinweis::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M10 4.5v7'/%3E%3Cpath d='M10 15.5h.01'/%3E%3C/svg%3E");
}
.tr .tr-doc-steps { list-style: none; counter-reset: s; margin: 6px 0 22px; padding: 0; display: grid; gap: 10px; }
.tr .tr-doc-steps li { counter-increment: s; position: relative; padding: 14px 18px 14px 56px; border-radius: 16px; border: 1px solid var(--bg2); background: var(--bg); }
.tr .tr-doc-steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 14px; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; background: var(--dark); color: #fff; font-family: var(--title); font-weight: 900; font-size: 14px;
}
.tr .tr-doc-steps strong { display: block; color: var(--ink); line-height: 1.4; margin-bottom: 2px; }
.tr .tr-doc-question { font-family: var(--title); font-weight: 300; font-size: 21px; line-height: 1.4; color: var(--ink); padding-left: 18px; border-left: 3px solid var(--dark); }
.tr .tr-doc-quote { margin: 4px 0 16px; font-family: var(--title); font-weight: 900; font-size: clamp(20px, 1rem + .8vw, 26px); line-height: 1.25; color: var(--ink); }
.tr .tr-doc-quote.is-muted { color: var(--g3); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--g2); }
.tr .tr-doc-end {
  display: flex; align-items: center; justify-content: center; gap: 8px; max-width: none; margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--bg2); font-size: 13px; color: var(--muted); letter-spacing: .04em;
}
.tr .tr-doc-end svg { width: 16px; height: 16px; color: var(--ok); stroke-width: 2.4; }

.tr .tr-q { margin: 40px 0 0; font-family: var(--title); font-weight: 900; font-size: clamp(22px, 1rem + 1vw, 28px); line-height: 1.2; text-wrap: balance; }
.tr .tr-choices--row { grid-template-columns: 1fr 1fr; margin-top: 20px; }
.tr .tr-choice:has(input:disabled) { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; border-style: dashed; }
.tr .tr-gate.is-unlocked .tr-check { animation: trUnlock .7s var(--ease); }
.tr .tr-gate-hint { display: flex; align-items: center; gap: 8px; margin: 10px 4px 0; font-size: 13px; color: var(--muted); }
.tr .tr-gate-hint svg { width: 16px; height: 16px; animation: trNudge 1.8s var(--ease) infinite; }
@keyframes trNudge { 0%, 100% { transform: none; } 50% { transform: translateY(3px); } }
.tr .tr-gate:not([data-locked]) .tr-gate-hint { color: var(--ok); }
.tr .tr-gate:not([data-locked]) .tr-gate-hint svg { animation: none; }
@keyframes trUnlock { 0% { box-shadow: 0 0 0 0 rgba(214, 201, 254, .9); } 100% { box-shadow: 0 0 0 14px rgba(214, 201, 254, 0); } }

/* ---------- Endscreens ---------- */
.tr .tr-screen--end h1 { font-size: clamp(30px, 1.1rem + 2.4vw, 46px); }
.tr .tr-screen--end .tr-lead { margin-left: auto; margin-right: auto; }
.tr .tr-end-icon {
  position: relative; width: 76px; height: 76px; margin: 0 auto 28px; display: grid; place-items: center; border-radius: 24px;
  background: #fff; border: 1px solid var(--dark); box-shadow: var(--shadow-hi);
}
.tr .tr-end-icon svg { width: 38px; height: 38px; color: var(--ink); stroke-width: 2.2; }
.tr .tr-end-icon--done { border-radius: 50%; background: var(--dark); border-color: var(--dark); }
.tr .tr-end-icon--done svg { color: #fff; }
.tr .tr-end-icon--done circle { stroke: var(--lila); stroke-width: 2; stroke-dasharray: 107; stroke-dashoffset: 107; }
.tr .tr-end-icon--done path { stroke-dasharray: 26; stroke-dashoffset: 26; }
.tr .tr-screen.is-shown .tr-end-icon--done circle { animation: trDraw .9s var(--ease) .25s forwards; }
.tr .tr-screen.is-shown .tr-end-icon--done path { animation: trDraw .5s var(--ease) .8s forwards; }
@keyframes trDraw { to { stroke-dashoffset: 0; } }
.tr .tr-burst { position: absolute; inset: 50%; pointer-events: none; }
.tr .tr-burst i {
  position: absolute; left: 0; top: 0; width: var(--s, 7px); height: var(--s, 7px); border-radius: var(--rr, 50%); background: var(--c, var(--lila));
  opacity: 0; animation: trBurst 1.3s var(--ease) var(--d, .7s) forwards;
}
@keyframes trBurst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--rot, 180deg)) scale(1); }
}
.tr .tr-end-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 36px; }
.tr .tr-end-actions .tr-link { margin-top: 0; }

/* ---------- Übergänge ---------- */
.tr .tr-screen.is-in { animation: trIn .6s var(--ease) both; }
.tr .tr-screen.is-out { animation: trOut .28s cubic-bezier(.4, 0, 1, 1) both; pointer-events: none; }
.tr .tr-screen.is-in.is-rev { animation-name: trInRev; }
.tr .tr-screen.is-out.is-rev { animation-name: trOutRev; }
.tr .tr-screen.is-in .tr-body > * { animation: trRise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms + 120ms); }
@keyframes trIn { from { opacity: 0; } }
@keyframes trInRev { from { opacity: 0; transform: translateY(-28px); } }
@keyframes trOut { to { opacity: 0; transform: translateY(-28px); filter: blur(2px); } }
@keyframes trOutRev { to { opacity: 0; transform: translateY(28px); filter: blur(2px); } }
@keyframes trRise { from { opacity: 0; transform: translateY(22px); } }

@media (prefers-reduced-motion: reduce) {
  .tr *, .tr *::before, .tr *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .tr .tr-burst { display: none; }
}

/* ---------- Touch: keine Tasten-Hinweise ---------- */
@media (hover: none) and (pointer: coarse) {
  .tr .tr-kbd-hint { display: none; }
}

/* ---------- Mobil ---------- */
@media (max-width: 767px) {
  .tr { --head: 64px; }
  .tr .tr-head { grid-template-columns: auto 1fr auto; gap: 10px; }
  .tr .tr-logo img { height: 15px; }
  .tr .tr-progress { justify-self: center; height: 34px; gap: 10px; padding: 0 12px 0 13px; font-size: 12px; }
  .tr .tr-progress-long { display: none; }
  .tr .tr-progress-short { display: inline; }
  .tr .tr-dots { gap: 4px; }
  .tr .tr-dots i { width: 5px; height: 5px; }
  .tr .tr-dots i.is-now { width: 14px; }
  .tr .tr-exit-text { display: none; }
  .tr .tr-chev { display: none; }
  .tr .tr-steps { width: min(300px, calc(100vw - 32px)); }
  .tr .tr-steps button { padding: 11px 10px; font-size: 16px; }
  .tr .tr-date { height: 60px; }
  .tr .tr-date input.tr-seg.tr-seg { font-size: 20px; height: 46px; width: 4ch; }
  .tr .tr-date input.tr-seg.tr-seg--4 { width: 5.4ch; }
  .tr .tr-exit { width: 40px; height: 40px; justify-content: center; padding: 0; margin-right: -8px; border-radius: var(--r-btn); background: var(--g1); border: 0; color: var(--ink); }
  .tr .tr-exit svg { width: 16px; height: 16px; }

  .tr .tr-stage { padding: calc(var(--head) + env(safe-area-inset-top) + 20px) 16px 0; }
  .tr .tr-screen { align-self: stretch; min-height: calc(100dvh - var(--head) - env(safe-area-inset-top) - 20px); }
  .tr .tr-screen--end { align-self: center; min-height: 0; padding-bottom: 48px; }
  /* Inhalt vertikal mittig zwischen Header und unten fixierten Buttons; lange Inhalte starten oben */
  .tr .tr-body { padding-top: 8px; margin-block: auto; }
  .tr .tr-eyebrow { margin-bottom: 14px; }
  .tr h1 { font-size: clamp(28px, 7.6vw, 34px); line-height: 1.1; }
  .tr .tr-lead { margin-top: 16px; font-size: 17px; }
  .tr .tr-help { font-size: 16px; }
  .tr .tr-choices { margin-top: 26px; gap: 10px; }
  .tr .tr-choice { min-height: 66px; padding: 12px 18px 12px 14px; }
  .tr .tr-choice-text { font-size: 17px; }
  .tr .tr-pair { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .tr .tr-card { padding: 18px; gap: 12px; }
  .tr input:not([type=radio]):not([type=checkbox]):not([type=file]), .tr textarea { font-size: 16px; height: 52px; }
  .tr input[type=date] { line-height: 52px; }
  .tr textarea { height: auto; min-height: 200px; max-height: 46vh; }
  .tr .tr-field--area { margin-top: 20px; }
  .tr .tr-check { padding: 16px; font-size: 14.5px; }

  /* Buttons unten, mit dem Daumen erreichbar */
  .tr .tr-actions {
    position: sticky; bottom: 0; z-index: 5; margin: 0 -16px; padding: 28px 16px calc(14px + env(safe-area-inset-bottom));
    background: linear-gradient(rgba(248, 249, 250, 0), var(--bg) 34%);
  }
  .tr .tr-actions .tr-btn { flex: 1; }
  .tr .tr-screen--end .tr-end-actions { flex-direction: column; align-items: stretch; }
  .tr .tr-screen--end .tr-end-actions .tr-link { align-self: center; }

  .tr .tr-reader-wrap { margin: 22px -4px 0; }
  .tr .tr-reader { height: calc(100dvh - 300px); min-height: 380px; padding: 26px 20px 30px; font-size: 16.5px; line-height: 1.68; }
  .tr .tr-toc { padding: 10px 12px; }
  .tr .tr-doc-key { padding-left: 46px; }
  .tr .tr-doc-key::before { left: 14px; }
  .tr .tr-doc-steps li { padding-left: 52px; }
}

/* ---------- Rot = noch in Abstimmung (Markierungen aus dem Google Doc) ----------
   Nur im Vorführmodus (<body data-vorfuehrung>), ohne das Attribut ist alles normaler Text. */
.tr[data-vorfuehrung] .tr-offen { color: #e00000; }
.tr[data-vorfuehrung] .tr-btn:has(.tr-offen) { box-shadow: inset 0 0 0 2px #e00000, 0 10px 24px -12px rgba(0, 0, 0, .45); }
.tr[data-vorfuehrung] .tr-btn .tr-offen { color: inherit; } /* Knopf bleibt lesbar, rot nur der Rahmen */
.tr[data-vorfuehrung] mark.tr-offen-bg {
  color: inherit; background: rgba(255, 0, 0, .16); border-radius: 3px; padding: 1px 2px;
  text-decoration: underline; text-decoration-color: #e00000; text-decoration-thickness: 2px; text-underline-offset: 3px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.tr .tr-legende {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; margin: 0;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .9); border: 1px solid rgba(224, 0, 0, .35); box-shadow: var(--shadow);
  font-size: 12px; color: #b00000; pointer-events: none;
}
.tr .tr-legende-dot { width: 8px; height: 8px; border-radius: 50%; background: #e00000; }
.tr .tr-legende-dot--blau { background: #2563eb; margin-left: 4px; }

.tr .tr-lead--intro { margin-top: 0; font-size: clamp(19px, 1rem + .6vw, 24px); line-height: 1.5; color: var(--ink); }
.tr .tr-lead--intro:focus { outline: none; }

/* ---------- Teil 2: Fragen-Blöcke, Ja/Nein, Folgefelder ---------- */
.tr .tr-q-block { margin-top: 36px; }
.tr .tr-body > h1 + .tr-q-block { margin-top: 32px; }
.tr .tr-eyebrow + .tr-q-block { margin-top: 0; }
.tr .tr-q2:not(h1) {
  display: block; margin: 0 0 14px; font-family: var(--title); font-weight: 900; color: var(--ink);
  font-size: clamp(20px, 1rem + .8vw, 24px); line-height: 1.25; text-wrap: balance;
}
.tr h3.tr-q2 { font-size: 18px; }
.tr .tr-yn { display: flex; flex-wrap: wrap; gap: 10px; }
.tr .tr-yn-opt {
  position: relative; display: inline-flex; align-items: center; gap: 12px; min-width: 132px; height: 56px; padding: 0 22px 0 10px;
  border: 1px solid var(--dark); border-radius: 16px; background: #fff; cursor: pointer; user-select: none; font-size: 17px;
  transition: background-color .2s, color .2s, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.tr .tr-yn-opt input { position: absolute; opacity: 0; pointer-events: none; }
.tr .tr-yn-opt .tr-key { width: 32px; height: 32px; }
.tr .tr-yn-opt:hover { box-shadow: var(--shadow-hi); transform: translateY(-1px); }
.tr .tr-yn-opt:has(input:checked) { background: var(--dark); color: #fff; }
.tr .tr-yn-opt:has(input:checked) .tr-key { background: var(--lila); color: var(--ink); }
.tr .tr-yn-opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.tr .tr-yn-opt:has(input[aria-invalid="true"]) { border-color: var(--err); }
.tr .tr-yn-opt.is-picked { animation: trPick .42s var(--ease); }

.tr .tr-follow { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s var(--ease), opacity .3s var(--ease); }
.tr .tr-follow.is-open { grid-template-rows: 1fr; opacity: 1; }
.tr .tr-follow-in { min-height: 0; overflow: hidden; display: grid; gap: 16px; padding: 0 4px; }
.tr .tr-follow.is-open .tr-follow-in { padding: 18px 4px 4px; }
.tr .tr-follow .tr-follow-in { transition: padding .45s var(--ease); }
.tr .tr-follow .tr-q-block { margin-top: 0; }
.tr textarea.tr-area-sm { min-height: 110px; }

/* ---------- Upload ---------- */
.tr .tr-field label.tr-drop-zone {
  display: grid; justify-items: center; gap: 6px; padding: 26px 18px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--g3); border-radius: var(--r-card); background: #fff;
  transition: border-color .2s, background-color .2s, transform .25s var(--ease);
}
.tr .tr-drop-zone svg { width: 28px; height: 28px; color: var(--ink); margin-bottom: 4px; }
.tr .tr-drop-zone:hover, .tr .tr-drop.is-over .tr-drop-zone { border-color: var(--ink); background: var(--bg); }
.tr .tr-drop.is-over .tr-drop-zone { transform: scale(1.01); box-shadow: 0 0 0 5px var(--lila); }
.tr .tr-drop:has(input:focus-visible) .tr-drop-zone { outline: 2px solid var(--ink); outline-offset: 3px; }
.tr .tr-drop.is-invalid .tr-drop-zone { border-color: var(--err); background: #fffbfa; }
.tr .tr-drop-main { font-weight: 700; font-size: 16px; }
.tr .tr-drop-or { font-weight: 400; color: var(--muted); }
.tr .tr-drop-sub { font-size: 13px; color: var(--muted); }
.tr .tr-file {
  display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--dark);
  animation: trMsg .35s var(--ease);
}
.tr .tr-file > svg { flex: none; width: 26px; height: 26px; }
.tr .tr-file-meta { flex: 1; min-width: 0; display: grid; }
.tr .tr-file-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr .tr-file-size { font-size: 13px; color: var(--muted); }
.tr .tr-file-x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--r-btn); background: var(--g1); cursor: pointer; }
.tr .tr-file-x:hover { background: var(--g2); }
.tr .tr-file-x svg { width: 16px; height: 16px; }

@media (max-width: 767px) {
  .tr .tr-legende { left: auto; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); font-size: 11px; padding: 4px 10px; }
  .tr .tr-yn { display: grid; grid-template-columns: 1fr 1fr; }
  .tr .tr-yn:has(> :nth-child(3)) { grid-template-columns: 1fr; }
  .tr .tr-yn-opt { min-width: 0; height: 54px; }
  .tr .tr-q-block { margin-top: 28px; }
  .tr .tr-drop-or { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tr .tr-follow { transition: none; } }

/* ---------- Vorführmodus: Rot = offene Frage (mit Empfehlung), Blau = passiert im Hintergrund ---------- */
.tr:not([data-vorfuehrung]) :is(.tr-offen-hinweis, .tr-hg, .tr-legende, .tr-ablauf) { display: none !important; }
.tr .tr-offen-hinweis, .tr .tr-hg {
  margin: 16px 0 0; padding: 11px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; text-align: left;
}
.tr .tr-offen-hinweis { color: #8f1414; background: #fff1f1; border-left: 4px solid #e00000; }
.tr .tr-hg { color: #123a6b; background: #eef4ff; border-left: 4px solid #2563eb; }
/* Blau spricht Nasti & Natalia an und beschreibt nur den gebauten Stand; Rot = nur offene Debatten-Punkte */
.tr .tr-offen-hinweis i { font-style: normal; font-weight: 700; }
.tr .tr-offen-hinweis ul { margin: 6px 0 0; padding-left: 18px; }
.tr .tr-offen-hinweis li + li { margin-top: 4px; }
.tr .tr-screen--end .tr-offen-hinweis, .tr .tr-screen--end .tr-hg { max-width: 560px; margin-left: auto; margin-right: auto; }
.tr .tr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tr .tr-btn.is-busy { opacity: .6; cursor: progress; }

/* Zugehörigkeit: Name als Knopf, Fragen der Person klappen auf */
.tr .tr-person { margin-top: 14px; border: 1px solid var(--dark); border-radius: var(--r-card); background: #fff; overflow: hidden; }
.tr .tr-person-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 14px 20px; border: 0; background: none;
  font: inherit; color: var(--ink); text-align: left; cursor: pointer;
}
.tr .tr-person-name { flex: 1; font-family: var(--title); font-weight: 900; font-size: 22px; }
.tr .tr-person-stand { font-size: 13px; color: var(--muted); }
.tr .tr-person.is-done .tr-person-stand { color: var(--ok); font-weight: 700; }
.tr .tr-person-chev { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.tr .tr-person.is-open .tr-person-chev { transform: rotate(180deg); }
.tr .tr-person-btn:focus-visible { outline-offset: -4px; }
.tr .tr-person-panel { padding: 4px 20px 22px; border-top: 1px solid var(--g1); animation: trMsg .35s var(--ease); }
.tr .tr-person-panel > .tr-q-block { margin-top: 22px; }

/* Danke-Screen: Ablauf auf einen Blick (blau) */
.tr .tr-ablauf { max-width: 560px; margin: 32px auto 0; padding: 20px 20px 18px; border-radius: 16px; background: #eef4ff; border: 1px solid #c9dafc; text-align: left; color: #123a6b; }
.tr .tr-ablauf h2 { margin: 0 0 14px; font-family: var(--title); font-weight: 900; font-size: 20px; color: #0f2c55; }
.tr .tr-ablauf ol { list-style: none; margin: 0; padding: 0; }
.tr .tr-ablauf li { position: relative; display: grid; gap: 4px; padding: 0 0 18px 26px; font-size: 14px; line-height: 1.45; }
.tr .tr-ablauf li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #2563eb; }
.tr .tr-ablauf li::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 2px; width: 2px; background: #b9cdf6; }
.tr .tr-ablauf li:last-child::after { display: none; }
.tr .tr-ablauf li b { font-size: 15px; color: #0f2c55; }
.tr .tr-ablauf-hand::before { background: #fff !important; border: 2px solid #2563eb; left: 3px !important; }
.tr .tr-mail::before { content: "✉ "; }
.tr .tr-mail { font-weight: 600; }
.tr .tr-mail--team { font-weight: 400; color: #34507a; }
.tr .tr-chip { display: inline-block; padding: 1px 8px; border-radius: 6px; font-style: normal; font-size: 12.5px; font-weight: 700; color: #fff; white-space: nowrap; }
.tr .tr-chip--orange { background: #fdab3d; } .tr .tr-chip--rot { background: #e2445c; } .tr .tr-chip--hell { background: #66ccff; color: #0f2c55; }
.tr .tr-chip--blau { background: #0086c0; } .tr .tr-chip--lila { background: #a25ddc; } .tr .tr-chip--gruen { background: #00c875; }
.tr .tr-chip--dunkelrot { background: #bb3354; } .tr .tr-chip--grau { background: #757575; }
.tr .tr-ablauf-fuss { margin: 4px 0 0; font-size: 13px; color: #34507a; }


.tr .tr-gate .tr-check + .tr-check { margin-top: 10px; }
.tr .tr-field--email { margin-top: 24px; }
.tr .tr-field--email .tr-date-live { margin-top: 8px; }
.tr .tr-field--email .tr-date-live strong { color: var(--ink); font-weight: 600; }
/* Paar untereinander: eine Zeile pro Person, Felder der Person nebeneinander */
.tr .tr-pair--stack { grid-template-columns: 1fr; gap: 12px; }
.tr .tr-pair--stack .tr-card { grid-template-columns: 1fr 1fr; column-gap: 16px; align-items: start; }
.tr .tr-pair--stack .tr-card-title { grid-column: 1 / -1; }
@media (max-width: 560px) { .tr .tr-pair--stack .tr-card { grid-template-columns: 1fr; } }
/* Handy: Legende nur auf dem Start-Screen, sonst deckt sie Inhalt ab (Erklärung steht im roten Kasten am Start) */
@media (max-width: 767px) { .tr[data-at]:not([data-at="start"]) .tr-legende { display: none; } }

/* Letzter Schritt: Zurück als Text-Knopf mit Abstand, Absenden erst nach Bestätigung (Tom 17.10.: versehentlich abgeschickt) */
.tr .tr-actions--senden { gap: 24px; }
.tr .tr-back--text { width: auto; padding: 0 16px; gap: 6px; display: inline-flex; align-items: center; font: inherit; font-size: 15px; }
.tr .tr-actions--senden.is-bestaetigen .tr-kbd-hint { display: none; }
.tr .tr-bestaetigen { flex: 1; padding: 16px; border-radius: 16px; background: #fff; border: 2px solid var(--dark); box-shadow: var(--shadow-hi); animation: trMsg .3s var(--ease); }
.tr .tr-bestaetigen p { margin: 0 0 12px; font-size: 15px; line-height: 1.45; }
.tr .tr-bestaetigen-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; }
.tr .tr-bestaetigen-knoepfe .tr-btn { flex: 1; min-width: 140px; }
.tr .tr-btn--senden { background: var(--ok); }
.tr .tr-bestaetigen .tr-btn { white-space: normal; text-align: center; }
.tr .tr-bestaetigen .tr-btn--senden { background: var(--ok); color: #fff; }
@media (max-width: 479px) { .tr .tr-bestaetigen-knoepfe { flex-direction: column-reverse; } }
.tr .tr-bestaetigen .tr-bestaetigen-knoepfe .tr-btn { flex: 1 1 auto; min-height: 52px; }

/* Teil 1: „Ihr habt schon angefangen“ auf dem Start-Screen */
.tr .tr-lokal { margin-top: 24px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--dark); box-shadow: var(--shadow); }
.tr .tr-lokal p { margin: 0 0 12px; }
.tr .tr-lokal-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; }
.tr .tr-lokal-knoepfe .tr-btn { flex: 1 1 auto; min-height: 52px; }

/* QA 17.10.: Meldungen und „Stimmt das Datum?“ am Handy immer sichtbar, über der festen Weiter-Leiste */
@media (max-width: 767px) {
  .tr .tr-msg:not(:empty), .tr .tr-hint--confirm:not([hidden]) {
    position: fixed; left: 12px; right: 12px; z-index: 25; margin: 0;
    bottom: calc(92px + env(safe-area-inset-bottom)); box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .3);
  }
  .tr .tr-legende { display: none !important; } /* Erklärung steht im Start-Kasten, die Pille deckte Inhalt ab */
}
.tr .tr-person.is-fehlt { border-color: var(--err); box-shadow: 0 0 0 3px #fedf89; }
.tr .tr-micro a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.tr .tr-logo { cursor: default; }
.tr .tr-drop.is-laden .tr-file-size::before {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px;
  border: 2px solid var(--g2); border-top-color: var(--ink); border-radius: 50%; animation: trDreh .8s linear infinite;
}
.tr .tr-drop.is-laden .tr-file-x { visibility: hidden; }
@keyframes trDreh { to { transform: rotate(360deg); } }

/* ---------- Gelb = laut Meeting geändert (nur mit <body data-aenderungen>, lokal setzt das trauung.js) ---------- */
.tr[data-aenderungen] .tr-neu { background: #fff1a6; box-shadow: 0 0 0 3px #fff1a6; border-radius: 4px; }
.tr[data-aenderungen] .tr-legende--gelb { display: inline-flex !important; border-color: rgba(202, 160, 0, .5); color: #7a5c00; }
.tr:not([data-aenderungen]) .tr-legende--gelb { display: none !important; }
.tr .tr-legende-dot--gelb { background: #f5c400; }

/* Lokal: im Meeting unklare Stellen (orange, nur mit data-aenderungen) */
.tr .tr-frage-box { display: none; }
.tr[data-aenderungen] .tr-frage { outline: 2px dashed #e67e00; outline-offset: 2px; border-radius: 3px; }
.tr[data-aenderungen] .tr-frage::after { content: " ❓ " attr(data-frage); font-size: .8em; color: #a35400; background: #ffe2c2; padding: 0 4px; border-radius: 3px; }
.tr[data-aenderungen] .tr-frage-box { display: block; background: #ffe2c2; color: #a35400; border: 2px dashed #e67e00; border-radius: 6px; padding: 6px 10px; font-size: .9em; }

/* Lokal: alter Wortlaut klein hinter jeder Meeting-Änderung, Gestrichenes durchgestrichen */
.tr .tr-weg { display: none; }
.tr[data-aenderungen] .tr-neu[data-vorher]::after { content: "vorher: " attr(data-vorher); display: block; font-size: .7rem; font-weight: 400; font-style: italic; letter-spacing: 0; text-transform: none; line-height: 1.3; color: #7a6a3a; margin-top: 2px; }
.tr[data-aenderungen] .tr-weg { display: block; list-style: none; font-size: .75rem; color: #7a6a3a; background: #fff1a6; border-radius: 4px; padding: 2px 6px; margin: 4px 0; }
.tr[data-aenderungen] .tr-weg::before { content: "gestrichen: "; font-weight: 600; }
.tr[data-aenderungen] .tr-weg::after { content: attr(data-vorher); text-decoration: line-through; }
