[hidden] { display: none !important; }
/* Lirel.ch  Rechtsseiten (Impressum, Datenschutz, AGB) und Danke-Seite.
   Baut auf den Tokens aus styles.css auf. */

.legal { padding-block: clamp(48px, 8vw, 104px) clamp(72px, 10vw, 128px); }
.legal .wrap { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 70ch); gap: clamp(32px, 6vw, 96px); justify-content: center; }
.legal-head { grid-column: 2; }
.legal-head h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); margin-top: 14px; overflow-wrap: anywhere; }
.legal-head .meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--muted); font-size: 0.9rem; }
.legal-head .lead { margin-top: 22px; font-size: 1.12rem; line-height: 1.65; color: var(--ink); max-width: 60ch; overflow-wrap: anywhere; }

.draft-note {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-strong); font-size: 0.8rem; font-weight: 600;
}
.draft-note i { font-size: 1rem; }

/* Inhaltsverzeichnis (Desktop: klebt links mit) */
.toc { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; font-size: 0.9rem; }
.toc p { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { text-decoration: none; color: var(--ink); display: flex; gap: 10px; line-height: 1.4; padding: 5px 0; overflow-wrap: anywhere; min-width: 0; }
.toc a::before { content: counter(toc); color: var(--accent); font-variant-numeric: tabular-nums; min-width: 1.2em; }
.toc a:hover { color: var(--ink); }

/* Fliesstext */
.prose { color: var(--ink); line-height: 1.75; min-width: 0; overflow-wrap: anywhere; }
.prose section { padding: 0; margin: 0 0 44px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); line-height: 1.15; margin-bottom: 14px; }
.prose h3 { margin: 22px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.prose p + p, .prose ul + p { margin-top: 12px; }
.prose ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 10px; }
.prose a { color: var(--accent-strong); text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose strong { font-weight: 700; }

/* Kontaktkarte im Impressum */
.card-plain {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: clamp(22px, 3.5vw, 32px); display: grid; gap: 4px; font-size: 1.05rem; line-height: 1.6;
}
.card-plain .k { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin: 14px 0 2px; }
.card-plain .k:first-child { margin-top: 0; }

/* Datenverarbeiter als ruhige Liste mit sparsamen Trennlinien */
.processors { display: grid; gap: 0; margin-top: 14px; border-top: 1px solid var(--line); }
.processors > div { display: grid; grid-template-columns: 9rem 1fr; gap: 6px 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.processors dt { font-weight: 700; }
.processors dd { margin: 0; color: var(--ink); min-width: 0; }
@media (max-width: 560px) { .processors > div { grid-template-columns: 1fr; } }

/* Platzhalter: deutlich sichtbar, bis echte Angaben eingesetzt sind */
.platzhalter {
  background: color-mix(in srgb, #e9b949 26%, transparent); color: var(--ink);
  border-bottom: 1.5px dashed color-mix(in srgb, #b8860b 70%, transparent);
  padding: 0 4px; border-radius: 4px; font-weight: 600; white-space: normal; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

@media (max-width: 900px) {
  .legal .wrap { grid-template-columns: minmax(0, 1fr); }
  .legal-head { grid-column: 1; }
  .toc { position: static; border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 20px; background: var(--surface); font-size: 1rem; }
  .toc ol { gap: 0; }
  .toc a { min-height: 44px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
  .toc li:first-child a { border-top: 0; }
  .legal-head .meta { gap: 10px 14px; }
  .prose section { margin-bottom: 36px; }
}

/* ---------- Danke-Seite ---------- */
.thanks { padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 8vw, 96px); display: grid; justify-items: center; }
.thanks .box { width: min(620px, 100% - 32px); text-align: center; display: grid; justify-items: center; gap: 0; }
.thanks .mark { width: 64px; height: 72px; color: var(--accent); margin-bottom: 26px; opacity: 0; animation: thanks-in 1.2s var(--ease) 0.1s forwards; }
.thanks h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); opacity: 0; animation: thanks-in 1.2s var(--ease) 0.25s forwards; text-wrap: balance; overflow-wrap: anywhere; }
.thanks .lead { margin-top: 16px; color: var(--ink); font-size: 1.1rem; max-width: 46ch; opacity: 0; animation: thanks-in 1.2s var(--ease) 0.4s forwards; overflow-wrap: anywhere; }
.thanks .order {
  margin-top: 36px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: clamp(20px, 4vw, 34px); opacity: 0; animation: thanks-in 1.2s var(--ease) 0.55s forwards;
}
/* Gravur-Vorschau: Gravurschrift (Arvo) auf hellem Grund, wie der Laser im Glas */
.thanks .engr {
  margin: 0 0 20px; padding: clamp(18px, 4vw, 28px) 16px; text-align: center; border-radius: 12px;
  background: linear-gradient(180deg, #fdfbf8 0%, #f3ede5 100%); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgb(74 58 46 / 0.06);
  font-family: var(--font-engrave); font-weight: var(--engrave-weight, 400); letter-spacing: var(--engrave-track, 0.02em);
  color: rgb(22 19 17 / 0.86); -webkit-text-stroke: var(--engrave-stroke, 0.028em) currentColor; paint-order: stroke fill;
  overflow-wrap: anywhere;
}
.thanks .engr p { margin: 0; }
.thanks .engr .glass { display: grid; justify-items: center; gap: 10px; }
.thanks .engr .t { font-size: 1.15rem; line-height: 1.35; white-space: pre-line; text-wrap: balance; }
.thanks .engr .sym { display: block; line-height: 0; }
.thanks .engr .sym svg { display: block; height: 1.4em; width: auto; max-width: 5em; margin: 0 auto; }
.thanks .engr .base { margin-top: 16px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.thanks .engr .n { font-size: 1.3rem; line-height: 1.2; }
.thanks .engr .d { margin-top: 4px; font-size: 0.98rem; letter-spacing: 0.04em; font-variant-numeric: lining-nums tabular-nums; }
.thanks dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; font-size: 0.98rem; line-height: 1.5; }
.thanks dt { color: var(--ink); opacity: 0.72; }
.thanks dd { margin: 0; overflow-wrap: anywhere; }
.thanks .skeleton { display: grid; gap: 10px; }
.thanks .skeleton[hidden], .thanks [hidden] { display: none; }
.thanks .skeleton span { height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--bg-2), var(--surface), var(--bg-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.thanks .skeleton span:nth-child(2) { width: 80%; } .thanks .skeleton span:nth-child(3) { width: 60%; }
.thanks #fallback { margin: 0; line-height: 1.6; }

/* Hinweiskasten: Gravur prüfen (24 Stunden) */
.thanks .check {
  margin-top: 16px; width: 100%; text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: var(--r-card);
  padding: 18px 18px 20px; opacity: 0; animation: thanks-in 1.2s var(--ease) 0.65s forwards;
}
.thanks .check i.bi-i { width: 28px; height: 28px; margin-top: 2px; color: var(--accent-strong); }
.thanks .check h2 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; line-height: 1.35; letter-spacing: 0; color: var(--ink); }
.thanks .check p { margin-top: 6px; font-size: 0.96rem; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.thanks .check a { color: var(--accent-strong); text-underline-offset: 3px; font-weight: 600; }

/* Zeitachse: einspaltig, grosse Punkte, eine Linie dazwischen */
.thanks .ablauf, .thanks .care { width: 100%; text-align: left; padding: 0; margin-top: 40px; opacity: 0; animation: thanks-in 1.2s var(--ease) 0.75s forwards; }
.thanks .care { margin-top: 36px; animation-delay: 0.85s; }
.thanks .ablauf .rule-branch { margin-bottom: 18px; }
.thanks .ablauf h2, .thanks .care h2 { font-size: clamp(1.8rem, 4vw, 2.3rem); margin-bottom: 18px; }
.thanks .steps { list-style: none; margin: 0; padding: 0; display: grid; }
.thanks .steps li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 0 16px; padding-bottom: 24px; align-items: start; }
.thanks .steps li:last-child { padding-bottom: 0; }
/* Verbindungslinie unter dem Punkt bis zum nächsten Schritt */
.thanks .steps li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line); }
.thanks .steps .dot {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface);
  display: grid; place-items: center; color: var(--accent-ink); box-sizing: border-box;
}
.thanks .steps .dot svg { width: 18px; height: 18px; }
.thanks .steps .done .dot { background: var(--accent-strong); border-color: var(--accent-strong); }
.thanks .steps .done::before { background: var(--accent-strong); }
.thanks .steps li:nth-child(2) .dot { border-color: var(--accent); }
.thanks .steps li > div { display: grid; gap: 3px; padding-top: 4px; min-width: 0; }
.thanks .steps b { font-weight: 700; font-size: 1.04rem; line-height: 1.35; overflow-wrap: anywhere; }
.thanks .steps .when { font-size: 0.94rem; line-height: 1.55; color: var(--muted); overflow-wrap: anywhere; }
.thanks .steps .done .when { color: var(--accent-strong); font-weight: 600; }
.thanks .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Pflege */
.thanks .care ul { list-style: none; margin: 0; padding: 0; display: grid; }
.thanks .care li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.thanks .care li:last-child { border-bottom: 1px solid var(--line); }
.thanks .care i.bi-i { width: 28px; height: 28px; margin-top: 1px; }
.thanks .care p { font-size: 1rem; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }

.thanks .next { margin-top: 36px; width: 100%; display: grid; gap: 12px; justify-items: stretch; opacity: 0; animation: thanks-in 1.2s var(--ease) 0.95s forwards; }
.thanks .next .btn { width: 100%; min-height: 52px; }
@media (min-width: 560px) { .thanks .next { display: flex; flex-wrap: wrap; justify-content: center; } .thanks .next .btn { width: auto; } }
@keyframes thanks-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  .thanks .mark, .thanks h1, .thanks .lead, .thanks .order, .thanks .check, .thanks .ablauf, .thanks .care, .thanks .next { animation: none; opacity: 1; }
  .thanks .skeleton span { animation: none; }
}

/* Einspaltige Variante (Impressum) */
.legal.narrow .wrap { grid-template-columns: minmax(0, 70ch); }
.legal.narrow .legal-head { grid-column: 1; }
.thanks .mark svg { width: 100%; height: 100%; }
