/* Tragsam – Warteliste
   Basis: tokens.css (Design-Tokens aus dem Designpaket). Mobil zuerst. */

/* ---------- Schriften (lokal, variable Fonts) ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
}

/* ---------- Ergänzende Werte aus der Referenz ---------- */
:root {
  --tg-dark-line: #5A4F46;      /* Input-Rahmen im dunklen Band */
  --tg-dark-text-2: #E2D7C8;    /* Fließtext im dunklen Band */
  --tg-dark-link: #F3B9A0;      /* Link im dunklen Band */
  --tg-sage-line: #A9C2B3;      /* Trennlinien auf deco-sage */
  --tg-card-line: #E5D8C6;      /* Rahmen Preiskarte */
  --tg-error: #9E2F16;          /* Fehlertext (Terrakotta dunkel, 4.5:1 auf Creme) */
  --tg-error-on-dark: #F3B9A0;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--tg-bg);
  color: var(--tg-text);
  font-family: var(--tg-font-text);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--tg-primary); }
a:hover { color: var(--tg-primary-hover); }

:focus-visible {
  outline: 3px solid var(--tg-primary);
  outline-offset: 3px;
}

h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }

[id] { scroll-margin-top: 24px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 10;
  background: var(--tg-text);
  color: var(--tg-bg);
  padding: 12px 18px;
  border-radius: var(--tg-radius-pill);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--tg-bg); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--tg-container);
  margin: 0 auto;
  padding-left: var(--tg-gutter);
  padding-right: var(--tg-gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 768px) {
  .section { padding-top: var(--tg-section-y); padding-bottom: var(--tg-section-y); }
}

.band--warm { background: var(--tg-surface-warm); }
.band--sage { background: var(--tg-deco-sage); }
.band--dark { background: var(--tg-text); color: var(--tg-bg); }

.stack { display: flex; flex-direction: column; }

/* ---------- Typografie ---------- */
.display {
  font-family: var(--tg-font-display);
  font-weight: 600;
}
.display em {
  font-style: italic;
  font-weight: 500;
  color: var(--tg-primary);
}

.h1 {
  font-family: var(--tg-font-display);
  font-weight: 600;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--tg-font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.h3 {
  font-family: var(--tg-font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
}
.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--tg-text-2);
}
@media (min-width: 768px) { .lead { font-size: 20px; } }

.body-text { font-size: 17px; line-height: 1.6; color: var(--tg-text-2); }

.kicker {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--tg-person-b-strong);
}

.meta { font-size: 14px; color: var(--tg-text-3); }

/* ---------- Logo ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tg-touch-min);
  color: var(--tg-text);
  text-decoration: none;
}
.brand:hover { color: var(--tg-text); }
.brand__mark { width: 40px; height: 28px; flex: none; }
.brand__name {
  font-family: var(--tg-font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
}
.logo-b { mix-blend-mode: multiply; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--tg-control-h);
  padding: 0 28px;
  border: 0;
  border-radius: var(--tg-radius-pill);
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--tg-primary); color: var(--tg-on-accent); }
.btn--primary:hover { background: var(--tg-primary-hover); color: var(--tg-on-accent); }

.btn--dark { background: var(--tg-text); color: var(--tg-bg); }
.btn--dark:hover { background: #000; color: var(--tg-bg); }

.btn--secondary {
  background: transparent;
  color: var(--tg-text);
  border: 1.5px solid var(--tg-text);
}
.btn--secondary:hover { background: var(--tg-surface-warm); color: var(--tg-text); }

.btn--small { height: var(--tg-touch-min); padding: 0 20px; font-size: 15px; }
.btn--large { height: 58px; font-size: 18px; }
.btn--block { display: flex; width: 100%; }

.btn[aria-busy="true"] { opacity: .75; cursor: progress; }

/* ---------- Header ---------- */
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav__link {
  display: none;
  color: var(--tg-text-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
}
.site-nav__link:hover { color: var(--tg-text); text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 768px) {
  .site-header__inner { padding-top: 22px; padding-bottom: 22px; }
  .site-nav__link { display: inline-block; padding: 10px 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }

.deco-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.deco-circle--sand {
  width: 420px; height: 420px;
  background: var(--tg-deco-sand);
  right: -220px; top: 120px;
}
.deco-circle--sage {
  width: 220px; height: 220px;
  background: var(--tg-deco-sage);
  right: 18%; top: -150px;
}
@media (min-width: 768px) {
  .deco-circle--sand { width: 640px; height: 640px; right: -120px; top: 40px; }
  .deco-circle--sage { width: 320px; height: 320px; right: 34%; }
}

.hero__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  padding-top: 32px;
  padding-bottom: 72px;
}
@media (min-width: 768px) {
  .hero__inner { padding-top: 56px; padding-bottom: var(--tg-section-y); }
}

.hero__copy {
  flex: 1 1 480px;
  min-width: 0;
  max-width: 600px;
  gap: 22px;
}
@media (min-width: 768px) { .hero__copy { gap: 26px; } }
.hero__copy .lead { max-width: 540px; }

/* ---------- Anmeldeformular ---------- */
.signup { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }

.field-label { font-size: 14px; font-weight: 700; }

.signup__row { display: flex; flex-wrap: wrap; gap: 10px; }

.input {
  flex: 1 1 240px;
  min-width: 0;
  height: var(--tg-control-h);
  border-radius: var(--tg-radius-pill);
  border: 1.5px solid var(--tg-line-strong);
  background: #FFFFFF;
  padding: 0 22px;
  font: inherit;
  font-size: 17px;
  color: var(--tg-text);
}
.input::placeholder { color: var(--tg-text-3); opacity: 1; }
.input:focus-visible { outline-offset: 2px; border-color: var(--tg-text); }
.input[aria-invalid="true"] { border-color: var(--tg-error); }

.signup__row .btn { flex: 1 0 auto; }
@media (min-width: 480px) { .signup__row .btn { flex: 0 0 auto; } }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.45;
  color: var(--tg-text-2);
  cursor: pointer;
}
.consent input {
  width: 20px; height: 20px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--tg-primary);
  cursor: pointer;
}
.consent--invalid input { outline: 2px solid var(--tg-error); outline-offset: 2px; }

/* Honeypot: für Menschen unsichtbar, für Screenreader ausgeblendet */
.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status:empty { display: none; }
.form-status {
  font-size: 15px;
  font-weight: 500;
  color: var(--tg-error);
}

.signup-success {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 560px;
  padding: 24px;
  border-radius: var(--tg-radius-card-lg);
  background: var(--tg-surface);
  border: 1.5px solid var(--tg-line);
  color: var(--tg-text);
}
.signup-success__title {
  font-family: var(--tg-font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
}
.signup-success__icon { width: 44px; height: 30px; margin-bottom: 4px; }
.signup-success p:not(.signup-success__title) { font-size: 17px; color: var(--tg-text-2); }
.signup-success:focus { outline: none; }
.signup-success:focus-visible { outline: 3px solid var(--tg-primary); }

/* Formular im dunklen Band */
.band--dark .input { border-color: var(--tg-dark-line); background: var(--tg-bg); }
.band--dark .input:focus-visible { border-color: var(--tg-bg); }
.band--dark .consent { color: var(--tg-dark-text-2); }
.band--dark .consent a { color: var(--tg-dark-link); }
.band--dark .consent a:hover { color: var(--tg-bg); }
.band--dark .form-status { color: var(--tg-error-on-dark); }
.band--dark :focus-visible { outline-color: var(--tg-dark-link); }

/* ---------- Handy-Mockup ---------- */
.device {
  flex: 0 0 auto;
  margin: 0 auto;
  width: 300px;
  max-width: 100%;
  height: 620px;
  border: 10px solid var(--tg-text);
  border-radius: 46px;
  background: var(--tg-surface);
  padding: 22px 18px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  box-shadow: var(--tg-shadow-device);
}
.device__title {
  font-family: var(--tg-font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
}
.device__sub { font-size: 14px; color: var(--tg-text-3); line-height: 1.4; }

.dist { display: flex; flex-direction: column; gap: 6px; }
.dist__bar {
  display: flex;
  gap: 3px;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
}
.dist__a { background: var(--tg-person-a); }
.dist__b { background: var(--tg-person-b); }
.dist__labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
}
.text-a { color: var(--tg-person-a); }
.text-b { color: var(--tg-person-b-strong); }

.mini-card {
  background: var(--tg-surface-warm);
  border-radius: var(--tg-radius-card);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mini-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.mini-card__title { font-weight: 700; font-size: 15px; }
.mini-card__state { font-size: 12px; font-weight: 700; color: var(--tg-text-3); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }

.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tg-on-accent);
  font-size: 13px;
  font-weight: 700;
  flex: none;
}
.avatar--a { background: var(--tg-person-a); }
.avatar--b { background: var(--tg-person-b-strong); }

.chip {
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  border: 1px solid var(--tg-line-strong);
  background: #FFFFFF;
  color: var(--tg-text);
}
.chip--a { background: var(--tg-person-a); border-color: var(--tg-person-a); color: var(--tg-on-accent); }
.chip--b { background: var(--tg-person-b-strong); border-color: var(--tg-person-b-strong); color: var(--tg-on-accent); }

/* ---------- Grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}
.grid-3--wide { gap: 40px; }

.section-intro { gap: 18px; max-width: 760px; }
.section-body { gap: 40px; }
@media (min-width: 768px) { .section-body { gap: 48px; } }

/* ---------- Drei Teile ---------- */
.part-card {
  background: var(--tg-surface);
  border-radius: var(--tg-radius-card-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.part-card__num {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tg-on-accent);
  font-family: var(--tg-font-display);
  font-weight: 600;
  font-size: 20px;
}
.part-card__num--denken { background: var(--tg-person-a); }
.part-card__num--planen { background: var(--tg-planen); }
.part-card__num--machen { background: var(--tg-person-b-strong); }
.part-card .h3 { font-size: 28px; }

.punchline {
  font-family: var(--tg-font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  color: var(--tg-primary);
}
@media (min-width: 768px) { .punchline { font-size: 26px; } }

/* ---------- Schritte ---------- */
.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 2px solid var(--tg-text);
  padding-top: 22px;
}
.step__label { font-size: 14px; font-weight: 700; color: var(--tg-text-3); }

/* ---------- Was Tragsam anders macht ---------- */
.diff { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.diff__intro { flex: 1 1 360px; min-width: 0; gap: 18px; }
.diff__intro p { font-size: 19px; line-height: 1.6; color: var(--tg-sage-deep); max-width: 440px; }
.diff__list { flex: 2 1 480px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.diff__item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--tg-sage-line);
}
.diff__item:first-child { padding-top: 0; }
.diff__item:last-child { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 768px) { .diff__item:first-child { padding-top: 24px; } }
.diff__icon { width: 28px; height: 28px; flex: none; margin-top: 2px; color: var(--tg-sage-deep); }
.diff__item h3 { font-size: 21px; font-weight: 700; line-height: 1.3; }
.diff__item p { font-size: 17px; line-height: 1.55; color: var(--tg-sage-deep); margin-top: 6px; }

/* ---------- Preis ---------- */
.price-wrap { display: flex; justify-content: center; }
.price-card {
  width: 100%;
  max-width: 520px;
  background: var(--tg-surface);
  border: 1.5px solid var(--tg-card-line);
  border-radius: var(--tg-radius-card-xl);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@media (min-width: 480px) { .price-card { padding: 40px; } }
.price-card__amount { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-card__value {
  font-family: var(--tg-font-display);
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
}
@media (min-width: 480px) { .price-card__value { font-size: 64px; } }
.price-card__per { font-size: 18px; color: var(--tg-text-3); }
.checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: center; font-size: 17px; line-height: 1.4; }
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--tg-primary); }
.price-card__note { font-size: 14px; line-height: 1.5; color: var(--tg-text-3); text-align: center; }

/* ---------- FAQ ---------- */
.faq { gap: 32px; }
.faq__list { display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--tg-line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--tg-line-strong); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  min-height: var(--tg-touch-min);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
@media (min-width: 768px) { .faq summary { font-size: 20px; } }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 12px; height: 12px;
  flex: none;
  border-right: 2px solid var(--tg-text);
  border-bottom: 2px solid var(--tg-text);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .15s ease;
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details p { padding-bottom: 22px; margin-top: -10px; }

/* ---------- Abschluss-Band ---------- */
.closing { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 48px; }
.closing .h2 { flex: 1 1 420px; min-width: 0; }
.closing__form { flex: 1 1 420px; min-width: 0; }
.closing .signup-success { background: var(--tg-surface); }

/* ---------- Footer ---------- */
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 15px;
  color: var(--tg-text-3);
}
.site-footer__brand { display: flex; align-items: center; gap: 8px; }
.site-footer__brand svg { width: 30px; height: 21px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tg-touch-min);
  color: var(--tg-text-2);
}
.site-footer nav a:hover { color: var(--tg-text); }
@media (min-width: 768px) {
  .site-footer__inner { padding-top: 32px; padding-bottom: 32px; }
}

/* ---------- Unterseiten (Rechtliches, Danke, Bestätigung) ---------- */
.page-main { position: relative; overflow: hidden; }
.page-main .deco-circle--sand { top: -160px; right: -260px; }

.prose {
  position: relative;
  max-width: 760px;
  padding-top: 32px;
  padding-bottom: 80px;
}
@media (min-width: 768px) { .prose { padding-top: 56px; padding-bottom: var(--tg-section-y); } }
.prose h1 { margin-bottom: 24px; }
.prose h2 {
  font-family: var(--tg-font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  margin: 40px 0 12px;
}
.prose h3 { font-size: 18px; font-weight: 700; margin: 24px 0 8px; }
.prose p, .prose li { font-size: 17px; line-height: 1.6; color: var(--tg-text-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 12px 0; }
.prose li + li { margin-top: 6px; }
.prose address { font-style: normal; font-size: 17px; line-height: 1.6; color: var(--tg-text-2); }

.placeholder {
  background: var(--tg-deco-sand);
  color: var(--tg-text);
  font-weight: 700;
  padding: 0 4px;
  border-radius: 4px;
}

.notice {
  background: var(--tg-deco-sage);
  color: var(--tg-sage-deep);
  border-radius: var(--tg-radius-card);
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 32px;
}

.message-page { gap: 20px; max-width: 600px; }
.message-page .btn { align-self: flex-start; margin-top: 8px; }
.message-page form { margin: 8px 0 0; }

/* ---------- Admin ---------- */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 12px;
}
.stat {
  background: var(--tg-surface);
  border: 1.5px solid var(--tg-line);
  border-radius: var(--tg-radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat__label { font-size: 14px; font-weight: 700; color: var(--tg-text-3); }
.stat__value { font-family: var(--tg-font-display); font-weight: 600; font-size: 40px; line-height: 1.1; }
.stat__hint { font-size: 13px; color: var(--tg-text-3); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--tg-line); }
.table th { font-size: 13px; color: var(--tg-text-3); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }

.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-login { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }

/* ---------- Ergänzungen ---------- */
.h1 em, .h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--tg-primary);
}
.steps { margin: 0; padding: 0; list-style: none; }
.dist--54 { flex: 54; }
.dist--46 { flex: 46; }
.admin-page { gap: 32px; }
.admin-head { gap: 8px; }
.admin-head h1 { margin-bottom: 0; }
.admin-section { gap: 12px; }
.prose .admin-section h2 { margin: 0; }

/* ---------- Angebot ---------- */
.offer-note {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--tg-primary);
}
/* Im dunklen Band reicht Terrakotta nicht für 4.5:1, daher die helle Akzentfarbe */
.band--dark .offer-note { color: var(--tg-dark-link); }

/* ---------- Bewegung ----------
   Alles nur, wenn das System keine reduzierte Bewegung wünscht.
   Scroll-Einblendungen greifen erst, wenn JS die Klasse .reveal-on setzt,
   ohne JS bleibt alles sichtbar. */
:root {
  --tg-ease-out: cubic-bezier(.2, .7, .2, 1);
  --tg-ease-spring: cubic-bezier(.34, 1.4, .64, 1);
}

@media (prefers-reduced-motion: no-preference) {

  /* Buttons */
  .btn { transition: background-color .15s ease, color .15s ease, transform .2s var(--tg-ease-out); }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(0) scale(.98); }

  /* Hero: gestaffelt beim Laden */
  @keyframes tg-rise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes tg-device {
    from { opacity: 0; transform: translateY(48px) rotate(2deg); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes tg-grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
  @keyframes tg-pop {
    0%   { opacity: 0; transform: scale(.6); }
    100% { opacity: 1; transform: none; }
  }
  @keyframes tg-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  @keyframes tg-circle-in {
    from { opacity: 0; transform: scale(.85); }
    to   { opacity: 1; transform: none; }
  }

  .hero__copy > * { animation: tg-rise .8s var(--tg-ease-out) both; }
  .hero__copy > :nth-child(1) { animation-delay: .05s; }
  .hero__copy > :nth-child(2) { animation-delay: .15s; }
  .hero__copy > :nth-child(3) { animation-delay: .25s; }
  .hero__copy > :nth-child(4) { animation-delay: .35s; }

  .hero .deco-circle { animation: tg-circle-in 1.4s var(--tg-ease-out) both; }
  .hero .deco-circle--sage { animation-delay: .2s; }

  .hero .device { animation: tg-device 1s var(--tg-ease-out) .35s both; }
  .hero .dist__a, .hero .dist__b { animation: tg-grow .9s var(--tg-ease-out) both; transform-origin: left center; }
  .hero .dist__a { animation-delay: 1s; }
  .hero .dist__b { animation-delay: 1.15s; transform-origin: right center; }
  .hero .dist__labels { animation: tg-fade .6s ease 1.4s both; }
  .hero .mini-card { animation: tg-rise .7s var(--tg-ease-out) both; }
  .hero .mini-card:nth-of-type(1) { animation-delay: 1.1s; }
  .hero .mini-card:nth-of-type(2) { animation-delay: 1.25s; }
  .hero .mini-card:nth-of-type(3) { animation-delay: 1.4s; }
  .hero .chip, .hero .avatar { animation: tg-pop .5s var(--tg-ease-spring) both; }
  .hero .mini-card:nth-of-type(1) .avatar { animation-delay: 1.45s; }
  .hero .mini-card:nth-of-type(1) .chip:nth-child(1) { animation-delay: 1.55s; }
  .hero .mini-card:nth-of-type(1) .chip:nth-child(2) { animation-delay: 1.65s; }
  .hero .mini-card:nth-of-type(1) .chip:nth-child(3) { animation-delay: 1.75s; }
  .hero .mini-card:nth-of-type(2) .avatar { animation-delay: 1.6s; }
  .hero .mini-card:nth-of-type(2) .chip:nth-child(1) { animation-delay: 1.7s; }
  .hero .mini-card:nth-of-type(2) .chip:nth-child(2) { animation-delay: 1.8s; }
  .hero .mini-card:nth-of-type(2) .chip:nth-child(3) { animation-delay: 1.9s; }

  /* Parallax der Deko-Kreise (Wert setzt JS) */
  .hero .deco-circle { translate: 0 var(--tg-parallax, 0px); will-change: translate; }
  .hero .deco-circle--sage { translate: 0 calc(var(--tg-parallax, 0px) * -0.6); }

  /* Scroll-Einblendungen */
  .reveal-on .reveal {
    transition: opacity .8s var(--tg-ease-out), transform .8s var(--tg-ease-out);
  }
  .reveal-on .reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(28px);
  }
  .reveal-on .reveal.d1 { transition-delay: .08s; }
  .reveal-on .reveal.d2 { transition-delay: .18s; }
  .reveal-on .reveal.d3 { transition-delay: .28s; }

  /* Zahl-Kreise der drei Teile ploppen auf */
  .reveal-on .part-card__num { transition: transform .6s var(--tg-ease-spring) .25s; }
  .reveal-on .part-card:not(.is-visible) .part-card__num { transform: scale(.4); }

  /* Linie über den Schritten zeichnet sich */
  .reveal-on .step { position: relative; border-top-color: transparent; }
  .reveal-on .step::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: -2px;
    height: 2px;
    background: var(--tg-text);
    transform-origin: left center;
    transition: transform 1s var(--tg-ease-out) .2s;
  }
  .reveal-on .step:not(.is-visible)::before { transform: scaleX(0); }

  /* Linien-Icons und Häkchen zeichnen sich nach */
  .reveal-on .diff__icon > *,
  .reveal-on .checklist svg > * {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset .9s var(--tg-ease-out) .35s;
  }
  .reveal-on .reveal:not(.is-visible) .diff__icon > *,
  .reveal-on .reveal:not(.is-visible) .checklist svg > * { stroke-dashoffset: 1; }
  .reveal-on .checklist li:nth-child(2) svg > * { transition-delay: .5s; }
  .reveal-on .checklist li:nth-child(3) svg > * { transition-delay: .65s; }

  /* Erfolgsmeldung */
  .signup-success { animation: tg-rise .6s var(--tg-ease-out) both; }
  .signup-success__icon { animation: tg-pop .6s var(--tg-ease-spring) .15s both; }

  /* FAQ weich aufklappen (wo der Browser es kann) */
  @supports (interpolate-size: allow-keywords) {
    .faq { interpolate-size: allow-keywords; }
    .faq details::details-content {
      height: 0;
      overflow: clip;
      transition: height .35s var(--tg-ease-out), content-visibility .35s allow-discrete;
    }
    .faq details[open]::details-content { height: auto; }
  }
}

/* ---------- Preis: drei Kacheln ---------- */
.price-section { gap: 40px; }
@media (min-width: 768px) { .price-section { gap: 56px; } }
.price-intro { gap: 14px; max-width: 640px; margin: 0 auto; text-align: center; align-items: center; }

.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 900px) {
  .price-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.price-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--tg-surface);
  border: 1.5px solid var(--tg-card-line);
  border-radius: var(--tg-radius-card-xl);
  padding: 30px 26px 26px;
  transition: border-color .2s ease;
}
@media (min-width: 900px) { .price-tile { padding: 36px 32px 32px; } }
.price-tile:hover { border-color: var(--tg-line-strong); }

/* Bildsprache: zwei Kreise in der Ecke, angeschnitten */
.price-tile__deco {
  position: absolute;
  top: -34px;
  right: -30px;
  width: 150px;
  height: 100px;
  pointer-events: none;
}
.price-tile__deco span {
  position: absolute;
  top: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
}
.price-tile__deco span:first-child { right: 50px; background: var(--tg-deco-sand); }
.price-tile__deco span:last-child { right: 0; background: var(--tg-deco-sage); mix-blend-mode: multiply; }

.price-tile > :not(.price-tile__deco) { position: relative; }

.price-tile__label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--tg-person-b-strong);
}

.price-tile__amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--tg-line);
}
.price-tile__value {
  font-family: var(--tg-font-display);
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.price-tile__currency { font-size: .55em; letter-spacing: 0; margin-left: 2px; }
.price-tile__per { font-size: 17px; color: var(--tg-text-3); }

.price-tile__facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.price-tile__facts li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.45;
  color: var(--tg-text-2);
}
.price-tile__icon { width: 22px; height: 22px; flex: none; color: var(--tg-sage-deep); margin-top: 0; }
.price-tile__badge {
  display: table;
  margin-top: 8px;
  background: var(--tg-deco-sand);
  color: var(--tg-text);
  border-radius: var(--tg-radius-chip);
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.price-tile .btn { margin-top: 8px; }

.price-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.checklist--row { flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; }
@media (min-width: 768px) {
  .checklist--row { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
}
.price-footer .price-card__note { margin-top: -6px; }

@media (prefers-reduced-motion: no-preference) {
  /* Kreise rücken beim Hover zusammen: gemeinsam tragen */
  .price-tile__deco span { transition: translate .5s var(--tg-ease-out); }
  .price-tile:hover .price-tile__deco span:first-child { translate: 22px 6px; }
  .price-tile:hover .price-tile__deco span:last-child { translate: -6px 6px; }

  /* Leichtes Anheben. translate statt transform, damit es die Scroll-Einblendung nicht stört */
  .price-tile { transition: border-color .2s ease, translate .3s var(--tg-ease-out); }
  .price-tile:hover { translate: 0 -4px; }
  .reveal-on .price-tile {
    transition: opacity .8s var(--tg-ease-out), transform .8s var(--tg-ease-out), translate .3s var(--tg-ease-out), border-color .2s ease;
  }
  .reveal-on .price-tile.d1 { transition-delay: .08s, .08s, 0s, 0s; }
  .reveal-on .price-tile.d2 { transition-delay: .18s, .18s, 0s, 0s; }
  .reveal-on .price-tile.d3 { transition-delay: .28s, .28s, 0s, 0s; }

  /* Icons zeichnen sich beim Einblenden */
  .reveal-on .price-tile__icon > * {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset .9s var(--tg-ease-out) .45s;
  }
  .reveal-on .price-tile:not(.is-visible) .price-tile__icon > * { stroke-dashoffset: 1; }
}
.notice--error { background: var(--tg-deco-sand); color: var(--tg-text); }
.log {
  margin: 0;
  padding: 16px;
  background: var(--tg-text);
  color: var(--tg-bg);
  border-radius: var(--tg-radius-card);
  font-size: 13px;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
