/* ==========================================================================
   Behandlungsseiten – gemeinsame Styles für die Content Blocks
   template-htm/treatment-*  (Einstieg, Hautbilder, Schritte, Termin, Weitere)

   Nutzt die Theme-Variablen aus SCSS/_self.scss (--mc-*, --sc-*, --wt, --bl-t).
   Überschriften: Cormorant Garamond (lokal, OFL), Fließtext: Open Sans (Theme).
   ========================================================================== */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../Fonts/cormorant-garamond/cormorant-garamond-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../Fonts/cormorant-garamond/cormorant-garamond-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../Fonts/cormorant-garamond/cormorant-garamond-latin-400-italic.woff2') format('woff2');
}

.tb {
  --tb-gold: #edd490;              /* helles Gold aus dem Logo */
  --tb-muted: rgba(241, 232, 229, .8);
  --tb-line: rgba(241, 232, 229, .16);
  --tb-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --tb-radius: 10px;
  position: relative;
  color: var(--sc-l);
  font-weight: 300;
  line-height: 1.7;
}
.tb *, .tb *::before, .tb *::after { box-sizing: border-box; }
.tb a:not(.btn) { color: var(--sc-l); }
.tb p { margin: 0; }

/* Innenbreite */
.tb__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5.5rem 2rem;
}

/* Hintergrundfoto mit Abdunklung (wie "Angebote & Gutscheine") */
.tb__bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.tb__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(5px); transform: scale(1.05); }
.tb__bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }

.tb--band { background: var(--mc-l); }
.tb--dark { background: var(--mc-d); }

/* Überschriften */
.tb h1, .tb h2, .tb h3 {
  font-family: var(--tb-serif);
  font-weight: 500;
  line-height: 1.1;
  color: var(--sc-l);
  margin: 0 !important;
  letter-spacing: 0;
}
.tb h1::before, .tb h2::before, .tb h3::before { display: none !important; }
.tb__h1 { font-size: clamp(2.6rem, 6vw, 4.75rem) !important; }
.tb__h2 { font-size: clamp(2rem, 4vw, 3rem) !important; }
.tb__h3 { font-size: clamp(1.6rem, 3vw, 2rem) !important; }

/* Linie mit Blatt aus dem Logo über den Überschriften (wie auf den bisherigen Seiten) */
.tb__rule { display: block; flex: none; width: 9rem; height: 2rem; background: url('/fileadmin/images/icon/ruler-before-wt-t.svg') center / contain no-repeat; }
.tb__eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--tb-gold);
}
.tb__lead {
  font-family: var(--tb-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.35;
  max-width: 34ch;
}
.tb__text { color: var(--tb-muted); font-size: 1.05rem; line-height: 1.75; max-width: 70ch; }
.tb__text p + p { margin-top: 1rem; }
.tb__highlight { font-size: 1.125rem; font-weight: 600; color: var(--wt); }
.tb__small { font-size: .875rem; color: rgba(241, 232, 229, .65); }
.tb__stack { display: flex; flex-direction: column; gap: 1.5rem; }
.tb__head { display: flex; flex-direction: column; gap: 1rem; }

/* Karten */
.tb__glass { position: relative; background: var(--bl-t); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: var(--tb-radius); }
.tb__glass--green { background: var(--sc-t); }
.tb__box { background: var(--mc); border-radius: var(--tb-radius); }
.tb__box--raised { box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.tb__pad { padding: 3.5rem; }

/* Raster */
.tb__grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem; align-items: end; }
.tb__split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
.tb__split--full { grid-template-columns: minmax(0, 1fr); max-width: 760px; }

/* Fotos */
.tb__photo { position: relative; overflow: hidden; border-radius: var(--tb-radius); background: var(--mc-d); }
.tb__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tb__tag {
  position: absolute; left: .9rem; bottom: .9rem;
  padding: .4rem .7rem; background: rgba(255, 255, 255, .85); color: var(--mc-d);
  font-size: .8rem; font-weight: 600;
}

/* Fakten-Chips */
.tb__chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.tb__chips li {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem; border: 1px solid rgba(241, 232, 229, .3); border-radius: 2px;
  background: rgba(241, 232, 229, .08); font-size: .95rem; font-weight: 400;
  padding-left: 1rem !important;
}
.tb__chips li::before { display: none !important; }
.tb__chips svg { width: 16px; height: 16px; flex: none; }

/* Buttons: .btn.btn-primary und .btn.btn-secondary kommen aus dem Theme.
   Zusätzlich die helle Hauptaktion im Stil der Menü-Kacheln der Startseite. */
/* Button-Gruppe als Kapsel – gleiche Form wie die Reiter im Hautfinder (.tb-finder__tabs):
   dunkle, feine Schale, darin die Buttons als Pillen. Die Hauptaktion (.tb-btn-cta) ist hell gefüllt,
   die übrigen sind schlicht. Steht ein Button allein, entfällt die Schale – er ist dann selbst die Pille.
   Bricht die Gruppe um (wenig Platz), bleibt die Schale ein abgerundetes Feld; am Handy siehe unten. */
.tb__actions {
  display: flex; flex-wrap: wrap; gap: .35rem; align-items: stretch;
  width: fit-content; max-width: 100%; padding: .35rem;
  border: 1px solid var(--tb-line); border-radius: 1.9rem; background: rgba(0, 0, 0, .2);
}
.tb__actions:has(> :only-child) { padding: 0; border: 0; background: none; }
.tb .btn { margin: 0 !important; }
.tb a.btn.tb-btn-cta, .tb a.btn.btn-primary { border-radius: 999px !important; }
.tb .tb__actions > a.btn { flex: 1 1 auto; align-self: stretch; min-height: 3rem; }
.tb .tb__actions:not(:has(> :only-child)) > a.btn.tb-btn-cta,
.tb .tb__actions:not(:has(> :only-child)) > a.btn.btn-primary { padding: .7rem 2.25rem !important; border-color: transparent !important; }
.tb .tb__actions:not(:has(> :only-child)) > a.btn.btn-primary:not(:hover) { background: transparent !important; }
/* Gruppe ohne helle Hauptaktion: der Button bekommt einen Hauch Fläche, damit die Schale nicht leer wirkt */
.tb .tb__actions:not(:has(> :only-child)):not(:has(> .tb-btn-cta)) > a.btn.btn-primary:not(:hover) { background: rgba(241, 232, 229, .1) !important; }
/* Blatt-Link (btn-secondary) als schlichtes Segment in der Schale */
.tb .tb__actions:not(:has(> :only-child)) > a.btn.btn-secondary { justify-content: center; padding: .7rem 1.75rem .7rem 3.3rem !important; border-radius: 999px; }
.tb .tb__actions:not(:has(> :only-child)) > a.btn.btn-secondary::before { left: 1.6rem; }
.tb .tb__actions:not(:has(> :only-child)) > a.btn.btn-secondary:hover { background: rgba(241, 232, 229, .07) !important; }
/* Termin & Preis: drei Buttons passen nicht in eine Zeile – Hauptaktion oben, die beiden anderen teilen sich die zweite */
@media (min-width: 576px) { .tb-booking .tb__actions:has(> :nth-child(3)) > a.btn.tb-btn-cta { flex-basis: 100%; } }
.tb a.btn.tb-btn-cta {
  display: inline-flex !important; align-items: center; justify-content: center;
  min-height: 3rem; padding: .8rem 3rem !important;
  border: 1px solid var(--wt-t) !important;
  color: var(--mc-d) !important; font-weight: 600;
  background-color: var(--sc-l) !important;
  background-image: linear-gradient(120deg, var(--wt), var(--sc-l), var(--gr-l), var(--sc-l), var(--wt)) !important;
  background-size: 220% 100%; background-position: 0 50%;
  transition: background-position 1.7s linear, color .3s ease;
}
.tb a.btn.tb-btn-cta::before, .tb a.btn.tb-btn-cta::after { display: none !important; }
.tb a.btn.tb-btn-cta:hover, .tb a.btn.tb-btn-cta:focus { background-position: 100% 50%; color: var(--bl) !important; }
.tb a.btn.btn-secondary { color: var(--sc-l) !important; }
/* Icons in Buttons (Kalender, Telefon, Nachricht, Mail) – Partial TbLinkIcon */
.tb .btn .tb-icon { flex: none; width: 1.15em; height: 1.15em; margin-right: .55em; vertical-align: -.2em; }
.tb .btn span:has(> .tb-icon) { display: inline-flex; align-items: center; }

/* Aufzählung mit Blatt aus dem Logo (wie Theme-Listen) */
.tb ul.tb__leaf, .tb .tb__leaf ul { list-style: none; margin: 0; padding: 0; }
.tb .tb__leaf li, .tb ul.tb__leaf li {
  position: relative; padding-left: 2.2rem !important; padding-bottom: .55rem;
  font-size: 1.05rem; line-height: 1.55; color: var(--sc-l);
}
.tb .tb__leaf li::before, .tb ul.tb__leaf li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 20px;
  background: url('/fileadmin/images/icon/logo-leaf-wt-t.svg') center / contain no-repeat !important;
  filter: drop-shadow(0 0 2px var(--wt)) drop-shadow(0 0 4px var(--sc-l));
}
.tb__leaf--cols ul, ul.tb__leaf--cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem 2rem; }

/* ---------------------------------------------------------------- Einstieg */
.tb-hero .tb__inner { padding-top: 2.25rem; }
.tb-hero__crumb { display: flex; flex-wrap: wrap; gap: .6rem; font-size: .875rem; color: rgba(241, 232, 229, .75); margin-bottom: 1.5rem; list-style: none; padding: 0; }
.tb-hero__crumb li { padding: 0 !important; }
.tb-hero__crumb li::before { display: none !important; }
.tb-hero__crumb li + li::before { content: "›" !important; display: inline !important; position: static; background: none !important; margin-right: .6rem; }
/* Kopf: links kleine Zeile, Icons und Kernaussage – rechts der Name im Kreis.
   Die leeren Zeilen oben/unten zentrieren die linke Spalte zur Kreismitte. */
.tb-hero__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto auto auto 1fr;
  grid-template-areas: ". seal" "eyebrow seal" "icons seal" "lead seal" ". seal";
  column-gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.tb-hero__eyebrow { grid-area: eyebrow; }
.tb-hero__lead { grid-area: lead; margin-top: 1.75rem !important; }

/* Name im Kreis (wie der Kreis der Craith-Lab-Seite), mit Schatten wie der Kasten der Microdermabrasion-Seite */
.tb-hero__seal {
  grid-area: seal;
  container-type: inline-size;
  position: relative;
  width: clamp(18rem, 31vw, 23.75rem);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--mc-ml, #473a33);
  box-shadow: 0 10px 10px rgba(0, 0, 0, .5), 0 28px 60px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(241, 232, 229, .07);
  display: flex; align-items: center; justify-content: center;
}
/* Textfläche: 76 % × 62 % des Durchmessers liegt vollständig im Kreis (0,38² + 0,31² < 0,5²) */
.tb-hero__seal-in {
  width: 76%; height: 62%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5cqi;
  text-align: center;
}
.tb-hero__seal-rule {
  display: block; flex: none; width: 46cqi; aspect-ratio: 9 / 2;
  background: url('/fileadmin/images/icon/ruler-before-wt-t.svg') center / contain no-repeat;
}
.tb .tb-hero__name {
  max-width: 100%;
  font-size: clamp(1.6rem, 13cqi, 3.5rem) !important;
  line-height: 1.05;
  overflow-wrap: break-word; hyphens: auto; text-wrap: balance;
}
/* Ohne Kreis, falls der Name nicht hineinpasst (setzt treatment-hero.js) */
.tb-hero__seal.is-flat { width: 100%; aspect-ratio: auto; border-radius: 0; background: none; box-shadow: none; }
.tb-hero__seal.is-flat .tb-hero__seal-in { width: 100%; height: auto; }
.tb-hero__seal.is-flat .tb-hero__seal-rule { width: 9rem; }

/* Hautbild-Icons (Quelle: Element „Hautbilder“), verlinkt auf den Abschnitt weiter unten.
   Klein und in einer Reihe (bis zu 8, ab 9 zwei Reihen zu fünf) zum schnellen Wiederfinden – groß mit Beschreibung erst unten. */
.tb-hero__icons {
  grid-area: icons;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 3.5rem); gap: .75rem;
  list-style: none; margin: 1.5rem 0 0; padding: 0;
}
.tb-hero__icons:has(> li:nth-child(9)) { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 3.5rem)); }
.tb-hero__icons > li { padding: 0 !important; }
.tb-hero__icons > li::before { display: none !important; }
.tb .tb-hero__icon {
  position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden;
  border: 1.5px solid rgba(237, 212, 144, .55); background: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .35);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tb .tb-hero__icon:hover, .tb .tb-hero__icon:focus-visible { transform: translateY(-2px); box-shadow: 0 7px 10px rgba(0, 0, 0, .4); border-color: var(--tb-gold); }
.tb-hero__icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Bezeichnung vorerst nur für Screenreader; zum Einblenden diese Regel entfernen */
.tb-hero__icon-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Hautbild-Icons bilden sich nacheinander – im Einstieg und im Abschnitt „Hautbilder“.
   Je Icon: Der Goldring zeichnet sich im Uhrzeigersinn, die Hautschichten wachsen weich
   von unten herauf, dann übernehmen der normale Rand und der Schatten.
   Abstand zwischen den Icons: --tb-form-step; Start: --tb-form-start.
   - Einstieg: nur wenn am Element eine Inhaltsanimation gewählt ist. Der Kreis trägt dann
     data-aos, AOS setzt beim Start .aos-animate – bis dahin warten die Icons (pausiert).
   - Hautbilder: treatment-skins.js setzt data-tb-form="wait" (Abschnitt noch nicht im Bild)
     und "go", sobald er ins Bild kommt. Ohne JavaScript stehen die Icons gleich da. */
@property --tb-ring { syntax: '<angle>'; inherits: false; initial-value: 360deg; }
@property --tb-rise { syntax: '<percentage>'; inherits: false; initial-value: 140%; }

:is(.tb-hero__icons, .tb-problems__list) > li:nth-child(2) { --tb-n: 1; }
:is(.tb-hero__icons, .tb-problems__list) > li:nth-child(3) { --tb-n: 2; }
:is(.tb-hero__icons, .tb-problems__list) > li:nth-child(4) { --tb-n: 3; }
:is(.tb-hero__icons, .tb-problems__list) > li:nth-child(5) { --tb-n: 4; }
:is(.tb-hero__icons, .tb-problems__list) > li:nth-child(6) { --tb-n: 5; }
:is(.tb-hero__icons, .tb-problems__list) > li:nth-child(7) { --tb-n: 6; }
:is(.tb-hero__icons, .tb-problems__list) > li:nth-child(8) { --tb-n: 7; }
:is(.tb-hero__icons, .tb-problems__list) > li:nth-child(9) { --tb-n: 8; }
:is(.tb-hero__icons, .tb-problems__list) > li:nth-child(10) { --tb-n: 9; }
:is(.tb-hero__icons, .tb-problems__list) > li:nth-child(11) { --tb-n: 10; }
:is(.tb-hero__icons, .tb-problems__list) > li:nth-child(12) { --tb-n: 11; }
.tb-hero__icon { --tb-form-start: .55s; }
.tb-problems__icon { --tb-form-start: .15s; --tb-ring-w: 2px; position: relative; }

@media (prefers-reduced-motion: no-preference) {
  .tb-hero__head:has(> .tb-hero__seal[data-aos]) .tb-hero__icon,
  .tb-problems__list[data-tb-form] .tb-problems__icon {
    --tb-form-delay: calc(var(--tb-form-start, 0s) + var(--tb-n, 0) * var(--tb-form-step, .35s));
    animation: tb-icon-disc 1.3s cubic-bezier(.33, 1, .68, 1) var(--tb-form-delay) backwards paused;
  }
  .tb-hero__head:has(> .tb-hero__seal[data-aos]) .tb-hero__icon::after,
  .tb-problems__list[data-tb-form] .tb-problems__icon::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    border: var(--tb-ring-w, 1.5px) solid var(--tb-gold, #edd490);
    -webkit-mask: conic-gradient(#000 var(--tb-ring), #0000 0);
    mask: conic-gradient(#000 var(--tb-ring), #0000 0);
    opacity: 0; pointer-events: none;
    animation: tb-icon-ring 1.3s cubic-bezier(.65, 0, .35, 1) var(--tb-form-delay) backwards paused;
  }
  .tb-hero__head:has(> .tb-hero__seal[data-aos]) .tb-hero__icon img,
  .tb-problems__list[data-tb-form] .tb-problems__icon img {
    -webkit-mask: linear-gradient(to top, #000 calc(var(--tb-rise) - 40%), #0000 var(--tb-rise));
    mask: linear-gradient(to top, #000 calc(var(--tb-rise) - 40%), #0000 var(--tb-rise));
    animation: tb-icon-rise 1.3s cubic-bezier(.33, 1, .68, 1) var(--tb-form-delay) backwards paused;
  }
  .tb-hero__head:has(> .tb-hero__seal.aos-animate) .tb-hero__icon,
  .tb-hero__head:has(> .tb-hero__seal.aos-animate) .tb-hero__icon::after,
  .tb-hero__head:has(> .tb-hero__seal.aos-animate) .tb-hero__icon img,
  .tb-problems__list[data-tb-form="go"] .tb-problems__icon,
  .tb-problems__list[data-tb-form="go"] .tb-problems__icon::after,
  .tb-problems__list[data-tb-form="go"] .tb-problems__icon img { animation-play-state: running; }
}
@keyframes tb-icon-disc {
  0%, 50% { background-color: rgba(255, 255, 255, 0); border-color: rgba(237, 212, 144, 0); box-shadow: 0 0 0 rgba(0, 0, 0, 0); }
}
@keyframes tb-icon-ring {
  0% { --tb-ring: 0deg; opacity: 1; }
  50% { --tb-ring: 360deg; opacity: 1; }
  100% { --tb-ring: 360deg; opacity: 0; }
}
@keyframes tb-icon-rise {
  0%, 18% { --tb-rise: 0%; filter: blur(2px); }
  100% { --tb-rise: 140%; filter: blur(0); }
}

.tb-hero__compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; max-width: 820px; margin: 0; }
.tb-hero__compare .tb__photo { aspect-ratio: 4 / 3; border-radius: 6px; }
.tb-hero__compare figcaption { grid-column: 1 / -1; font-size: .8rem; color: rgba(241, 232, 229, .6); }
/* Hochformat-Fotos (z. B. Herstellerfotos): ganzes Bild zeigen, Fläche etwas schmaler */
.tb-hero__compare--portrait { max-width: 640px; }
.tb-hero__compare--portrait .tb__photo { aspect-ratio: auto; }
.tb-hero__compare--portrait .tb__photo img { height: auto; }
/* Ein Foto statt Vorher/Nachher (Hautanalyse, Ergänzungen): gleiche Breite wie das Vorher/Nachher-Paar */
.tb-hero__photo { display: grid; gap: .9rem; max-width: 820px; margin: 0; }
.tb-hero__photo .tb__photo { aspect-ratio: 2 / 1; border-radius: 6px; }
.tb-hero__photo .tb__photo img { object-position: 50% 35%; }
.tb-hero__photo figcaption { font-size: .8rem; color: rgba(241, 232, 229, .6); }
/* Hochformat (z. B. Craith-Lab-Bildmaterial 4:5): ganzes Bild zeigen statt auf 2:1 bzw. 4:3 zu beschneiden – doppelte Klasse, damit die Handy-Regel nicht greift */
.tb-hero__photo.tb-hero__photo--portrait { max-width: 420px; }
.tb-hero__photo.tb-hero__photo--portrait .tb__photo { aspect-ratio: auto; }
.tb-hero__photo.tb-hero__photo--portrait .tb__photo img { height: auto; }

/* ---------------------------------------------------------------- Hautbilder */
.tb-problems__layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2.25rem; align-items: stretch; margin-top: 2.75rem; }
.tb-problems__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; list-style: none; margin: 0; padding: 0; }
.tb-problems__item {
  display: flex; align-items: center; gap: 1rem; padding: .85rem 1.1rem !important;
  border: 1px solid var(--tb-line); border-radius: var(--tb-radius);
  background: rgba(241, 232, 229, .06); font-size: 1rem; line-height: 1.3; font-weight: 400;
}
.tb-problems__item::before { display: none !important; }
.tb-problems__icon {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid rgba(237, 212, 144, .55); background: #fff; overflow: hidden;
}
.tb-problems__icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tb-problems__label small { display: block; margin-top: .15rem; font-size: .85rem; font-weight: 300; line-height: 1.4; color: var(--tb-muted); }
.tb-problems__photo { min-height: 320px; }
.tb-problems__layout--full { grid-template-columns: 1fr; }
.tb-problems__layout--full .tb-problems__list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tb-problems__note {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  margin-top: 2.75rem; padding: 1.6rem 2rem;
}
.tb-problems__note p { font-size: 1.05rem; line-height: 1.55; }
.tb-problems__note strong { color: var(--wt); }
/* Blatt-Link neben dem Hinweis einzeilig halten (ab Desktop), sonst bricht „… bei Folgebehandlung“ zentriert um */
@media (min-width: 992px) { .tb-problems__note .btn-secondary { white-space: nowrap; } .tb-problems__note .tb__actions { flex: none; } }

/* ---------------------------------------------------------------- Schritte */
.tb-steps__list { list-style: none; margin: 0; padding: 0; counter-reset: tbstep; display: flex; flex-direction: column; gap: 1.15rem; }
.tb-steps__list > li { counter-increment: tbstep; display: flex; gap: 1.1rem; align-items: flex-start; padding: 0 !important; }
.tb-steps__list > li::before {
  content: counter(tbstep) !important; position: static !important; flex: none;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--tb-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--tb-serif); font-size: 1.35rem; font-weight: 600; color: var(--tb-gold);
  background: none !important;
}
.tb-steps__title { display: block; font-size: 1.125rem; font-weight: 600; color: var(--sc-l); line-height: 1.4; }
.tb-steps__desc { display: block; color: var(--tb-muted); font-size: 1rem; line-height: 1.6; }
.tb-steps__benefits { margin-top: 4rem; }
.tb-steps__photo { aspect-ratio: 1 / 1; }
/* Hochformat (z. B. Craith-Lab-Bildmaterial 4:5) ganz zeigen statt quadratisch zuschneiden – Markenbilder nicht beschneiden */
.tb-steps__photo--portrait { aspect-ratio: auto; }
.tb-steps__photo--portrait img { height: auto; }

/* Variante "Ablauf" */
.tb-steps--process .tb-steps__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.5rem; align-items: stretch; margin-top: 2.5rem; }
.tb-steps--process .tb-steps__photo { aspect-ratio: auto; min-height: 380px; }
/* Ohne Foto (z. B. ausgeblendet): Schritte über die ganze Breite statt in der schmalen Fotospalte */
.tb-steps--process .tb-steps__layout:not(.tb-steps__layout--mosaic):not(:has(> .tb-steps__photo)) { grid-template-columns: minmax(0, 1fr); }
.tb-steps--process .tb-steps__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; padding: 2.5rem; }
.tb-steps--process .tb-steps__list > li { flex-direction: column; gap: .6rem; }
.tb-steps--process .tb-steps__list > li::before {
  content: counter(tbstep, decimal-leading-zero) !important;
  width: auto; height: auto; border: 0; border-radius: 0; justify-content: flex-start;
  font-size: 2.6rem; line-height: 1;
}

/* Ablauf mit einem Foto je Schritt: Bildraster 01–04 (z. B. Hautanalyse).
   treatment-steps.js verbindet Raster und Liste: Zeigen auf einen Schritt hebt das Foto hervor
   und umgekehrt; beim ersten Sichtbarwerden laufen die Schritte einmal von selbst durch. */
.tb-steps__layout--mosaic { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr); }
.tb-steps__mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: .75rem; min-height: 440px; }
.tb-steps__mosaic--2 { grid-template-columns: minmax(0, 1fr); }
.tb-steps__mosaic--3 .tb-steps__tile:first-child { grid-column: span 2; }
.tb-steps__tile { margin: 0; min-height: 0; isolation: isolate; cursor: default; }
.tb-steps__tile img { transition: transform .9s cubic-bezier(.2, .7, .2, 1), filter .6s ease; }
.tb-steps__tile::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 55%; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(22, 16, 12, .62), rgba(22, 16, 12, 0));
}
.tb-steps__tile::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(237, 212, 144, 0); transition: box-shadow .5s ease;
}
.tb-steps__tile-num {
  position: absolute; left: 1rem; bottom: .65rem; z-index: 3;
  font-family: var(--tb-serif); font-size: 2rem; font-weight: 600; line-height: 1; color: var(--tb-gold);
  text-shadow: 0 1px 14px rgba(0, 0, 0, .45);
}
/* Bildnachweis aus der Beschreibung des Fotos, z. B. „© OBSERV“ */
.tb-steps__tile-credit {
  position: absolute; right: .5rem; top: .5rem; z-index: 3;
  padding: .15rem .4rem; border-radius: 2px; background: rgba(22, 16, 12, .5);
  font-size: .625rem; font-weight: 400; letter-spacing: .04em; line-height: 1.2; color: rgba(255, 255, 255, .9);
}
.tb-steps__layout--mosaic .tb-steps__list > li { transition: opacity .45s ease; }
.tb-steps__layout--mosaic .tb-steps__title {
  padding-bottom: .35rem;
  background: linear-gradient(var(--tb-gold), var(--tb-gold)) 0 100% / 0 1px no-repeat;
  transition: background-size .6s cubic-bezier(.2, .7, .2, 1);
}
/* Hervorhebung (Maus, Antippen oder der einmalige Durchlauf) */
.tb-steps__layout.has-active .tb-steps__tile:not(.is-active) img { filter: brightness(.5) saturate(.75); }
.tb-steps__tile.is-active img { transform: scale(1.06); }
.tb-steps__tile.is-active::after { box-shadow: inset 0 0 0 1px rgba(237, 212, 144, .85); }
.tb-steps__layout.has-active .tb-steps__list > li:not(.is-active) { opacity: .5; }
.tb-steps__list > li.is-active .tb-steps__title { background-size: 3rem 1px; }

/* Optionale Buttons unter den Schritten (z. B. Startseite) */
.tb-steps__actions { margin-top: 2.5rem; }
.tb__stack .tb-steps__actions { margin-top: .75rem; }

/* ---------------------------------------------------------------- Termin & Preis */
.tb-booking__layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1.5rem; align-items: stretch; }
.tb-booking__facts { display: flex; flex-wrap: wrap; gap: 3rem; align-items: flex-end; margin: 0; }
.tb-booking__facts dt { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(241, 232, 229, .65); }
.tb-booking__facts dd { margin: 0; font-family: var(--tb-serif); font-size: 3.5rem; line-height: 1.05; color: var(--sc-l); }
.tb-booking__facts dd small { font-size: 1.6rem; }
.tb-booking__facts .tb-booking__price { color: var(--tb-gold); }
.tb-booking__aside { display: flex; flex-direction: column; overflow: hidden; }
.tb-booking__aside .tb__photo { border-radius: 0; aspect-ratio: 4 / 3; }
.tb-booking__aside-body { display: flex; flex-direction: column; gap: 1rem; padding: 2.25rem; flex: 1; }
.tb-booking__aside-body .btn { align-self: flex-start; margin-top: auto !important; }

/* ---------------------------------------------------------------- Abschluss */
.tb-cta .tb__inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.tb-cta .tb__h2 { max-width: 22ch; }
.tb-cta .tb__text { max-width: 64ch; }
.tb-cta .tb__actions { justify-content: center; margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------- Rezensionen */
.tb-reviews__head { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; margin-bottom: 2.75rem; }
.tb-reviews__slider { position: relative; }
/* Scrollbereich mit Scroll-Snap: Wischen, Trackpad und Pfeiltasten funktionieren auch ohne JS */
.tb-reviews__track {
  --tb-per-view: 3; --tb-gap: 1.5rem;
  position: relative;
  display: grid; grid-auto-flow: column; align-items: stretch;
  grid-auto-columns: calc((100% - (var(--tb-per-view) - 1) * var(--tb-gap)) / var(--tb-per-view));
  gap: var(--tb-gap);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
  padding: .5rem 0 2.25rem;
}
.tb-reviews__track::-webkit-scrollbar { display: none; }
.tb-reviews__track:focus-visible { outline: 2px solid var(--tb-gold); outline-offset: 4px; }
.tb-reviews__slider.has-open .tb-reviews__track { align-items: start; }
.tb-review {
  position: relative; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 1.1rem;
  padding: 2.25rem 2rem 1.75rem;
  border-radius: var(--tb-radius); border: 1px solid rgba(241, 232, 229, .12);
  background: var(--sc-t);
  box-shadow: 0 10px 10px rgba(0, 0, 0, .3);
}
.tb-review::before {
  content: "\201C"; position: absolute; top: .9rem; right: 1.5rem;
  font-family: var(--tb-serif); font-size: 5rem; line-height: 1; color: rgba(237, 212, 144, .35);
}
.tb-review__stars { display: flex; gap: .25rem; }
.tb-review__stars svg { width: 1rem; height: 1rem; fill: rgba(241, 232, 229, .25); }
.tb-review__stars svg.is-on { fill: var(--tb-gold); }
/* Lange Texte: auf 9 Zeilen begrenzt, sanft ausgeblendet; „Weiterlesen“ klappt auf */
.tb-review__text { max-height: calc(1.7em * 9); overflow: hidden; font-size: 1rem; line-height: 1.7; color: var(--tb-muted); }
.tb-review__text p + p { margin-top: .8rem; }
.tb-review__text.is-clamped { -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent); mask-image: linear-gradient(to bottom, #000 65%, transparent); }
.tb-review.is-open .tb-review__text { max-height: none; }
.tb .tb-review__more {
  align-self: flex-start; margin-top: -.4rem; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--tb-gold); font-size: .9rem; font-weight: 600; letter-spacing: .03em;
  text-decoration: underline; text-underline-offset: 3px;
}
.tb .tb-review__more[hidden] { display: none; }
.tb-review__author { margin-top: auto; display: flex; align-items: center; gap: .9rem; padding-top: 1.1rem; border-top: 1px solid var(--tb-line); }
.tb-review__author strong { display: block; font-family: var(--tb-serif); font-size: 1.4rem; font-weight: 600; line-height: 1.2; color: var(--sc-l); }
.tb-review__author small { display: block; font-size: .85rem; color: rgba(241, 232, 229, .65); }
.tb-review__img { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
/* Antwort des Studios (Feld „Unsere Antwort“) unter der Rezension */
.tb-review__reply { padding: .9rem 1rem .95rem 1.1rem; border-left: 2px solid var(--tb-gold); border-radius: 0 .5rem .5rem 0; background: rgba(241, 232, 229, .05); }
.tb .tb-review__reply-by { margin: 0 0 .35rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tb-gold); }
.tb-review__reply-text { font-size: .92rem; line-height: 1.65; color: var(--tb-muted); }
.tb-review__reply-text p { margin: 0; }
.tb-review__reply-text p + p { margin-top: .6rem; }
.tb-reviews__nav { display: flex; align-items: center; justify-content: center; gap: 1.25rem; }
.tb-reviews__nav[hidden] { display: none; }
.tb .tb-reviews__arrow {
  display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0;
  border: 1px solid rgba(241, 232, 229, .35); border-radius: 50%; background: transparent; color: var(--sc-l); cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, opacity .2s ease;
}
.tb .tb-reviews__arrow:hover:not(:disabled), .tb .tb-reviews__arrow:focus-visible { background: rgba(241, 232, 229, .1); border-color: var(--tb-gold); }
.tb .tb-reviews__arrow:disabled { opacity: .3; cursor: default; }
.tb-reviews__arrow svg { width: 1.1rem; height: 1.1rem; }
.tb-reviews__dots { display: flex; gap: .55rem; }
.tb .tb-reviews__dot { width: .6rem; height: .6rem; padding: 0; border: 0; border-radius: 50%; background: rgba(241, 232, 229, .3); cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
.tb .tb-reviews__dot[aria-current="true"] { background: var(--tb-gold); transform: scale(1.3); }
.tb-reviews__actions { justify-content: center; margin: 2.25rem auto 0; }

/* ---------------------------------------------------------------- FAQ
   Das allgemeine Element „FAQ“ steht auf Behandlungsseiten ohne Container –
   hier bekommt es Innenabstand, eine Lesebreite und Überschriften im Stil der Seite. */
body:has(.tb-hero) .faq-element { max-width: 850px; margin: 0 auto !important; padding: 5.5rem 2rem; color: var(--sc-l); box-sizing: border-box; }
body:has(.tb-hero) .faq-element * { box-sizing: border-box; }
body:has(.tb-hero) .faq-element__title {
  margin: 0 0 2.5rem !important; padding: 3rem 0 0 !important; text-align: center;
  background: url('/fileadmin/images/icon/ruler-before-wt-t.svg') top center / 9rem 2rem no-repeat;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif !important; font-weight: 500 !important;
  font-size: clamp(2rem, 4vw, 3rem) !important; line-height: 1.1; color: var(--sc-l);
}
body:has(.tb-hero) .faq-element__title::before, body:has(.tb-hero) .faq-element__title::after { display: none !important; }
body:has(.tb-hero) .faq-element__item { border-bottom: 1px solid rgba(241, 232, 229, .16) !important; }
body:has(.tb-hero) .faq-element__item:first-child { border-top: 1px solid rgba(241, 232, 229, .16) !important; }
body:has(.tb-hero) .faq-element__question { padding: 1.15rem 0 1.15rem 3.25rem !important; font-size: 1.1rem; line-height: 1.5; }
body:has(.tb-hero) .faq-element__question::after { top: 1rem; }
body:has(.tb-hero) .faq-element__answer { padding: 0 0 1.5rem 3.25rem; color: rgba(241, 232, 229, .8); font-size: 1.05rem; line-height: 1.75; }
body:has(.tb-hero) .faq-element__answer p + p { margin-top: .8rem; }

/* ---------------------------------------------------------------- Übersicht mit Filter */
.tb-overview__head { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; margin-bottom: 2.5rem; }
.tb-overview__head .tb__text { max-width: 62ch; }
.tb-overview__filter { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.tb .tb-skin {
  display: inline-flex; align-items: center; gap: .6rem; max-width: 22rem; margin: 0;
  padding: .35rem 1.1rem .35rem .35rem; border: 1px solid rgba(241, 232, 229, .22); border-radius: 999px;
  background: rgba(241, 232, 229, .06); color: var(--sc-l); font: inherit; font-size: .9rem; font-weight: 400; line-height: 1.25;
  text-align: left; cursor: pointer; transition: background-color .2s ease, border-color .2s ease;
}
.tb .tb-skin--all { min-height: 3.15rem; padding: .55rem 1.3rem; }
.tb .tb-skin:hover, .tb .tb-skin:focus-visible { border-color: var(--tb-gold); background: rgba(241, 232, 229, .1); }
.tb .tb-skin[aria-pressed="true"] { border-color: var(--tb-gold); background: rgba(237, 212, 144, .18); }
.tb-skin__icon { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; overflow: hidden; border: 1.5px solid rgba(237, 212, 144, .55); background: #fff; }
.tb-skin__icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tb-skin__sr { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tb-overview__status { display: none; min-height: 1.5em; margin-top: 1.25rem !important; text-align: center; font-size: .9rem; color: var(--tb-muted); }
.tb-overview.is-filterable .tb-overview__status { display: block; }
.tb-overview__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.tb-overview__item { padding: 0 !important; }
.tb-overview__item::before { display: none !important; }
.tb-overview__item[hidden] { display: none; }
.tb .tb-overview__card {
  display: flex; flex-direction: column; gap: .7rem; height: 100%; padding: 1.6rem 1.6rem 1.4rem;
  border: 1px solid rgba(241, 232, 229, .12); border-radius: var(--tb-radius); background: var(--mc);
  box-shadow: 0 10px 10px rgba(0, 0, 0, .25); color: var(--sc-l) !important; text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
}
.tb .tb-overview__card:hover, .tb .tb-overview__card:focus-visible { transform: translateY(-3px); border-color: rgba(237, 212, 144, .5); background: var(--mc-l); }
.tb-overview__icons { position: relative; display: flex; flex-wrap: wrap; gap: .35rem; }
.tb-overview__icons img { width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1.5px solid rgba(237, 212, 144, .5); background: #fff; object-fit: cover; }
.tb .tb-overview__title { font-size: 1.75rem; line-height: 1.15; }
.tb-overview__meta { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .85rem; font-weight: 600; letter-spacing: .03em; color: var(--tb-gold); }
.tb-overview__text { font-size: .95rem; line-height: 1.6; color: var(--tb-muted); }
.tb-overview__more { margin-top: auto; padding-top: .4rem; font-size: .875rem; font-weight: 600; }
.tb-overview__more::after { content: " \2192"; }
.tb-overview__empty { margin-top: 1.5rem !important; text-align: center; color: var(--tb-muted); }
.tb-overview__empty[hidden] { display: none; }

/* ---------------------------------------------------------------- Matrix (z. B. im Footer) */
.tb-matrix .tb__inner { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.tb-matrix__head { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; margin-bottom: 1.75rem; }
.tb-matrix__scroll {
  --tb-matrix-bg: rgba(0, 0, 0, .14);
  position: relative; overflow-x: auto; border: 1px solid var(--tb-line); border-radius: var(--tb-radius); background: var(--tb-matrix-bg);
}
.tb-matrix__scroll:focus-visible { outline: 2px solid var(--tb-gold); outline-offset: 3px; }
.tb-matrix__table { width: 100%; margin: 0; table-layout: auto; border-collapse: separate; border-spacing: 0; font-size: .9rem; color: var(--sc-l); background: none; }
.tb-matrix__table th, .tb-matrix__table td { padding: .6rem .3rem; border: 0; border-bottom: 1px solid var(--tb-line); text-align: center; vertical-align: middle; background: none; }
.tb-matrix__table tbody tr:last-child > * { border-bottom: 0; }
.tb-matrix__table thead th { padding-top: 1rem; padding-bottom: .9rem; vertical-align: bottom; font-weight: 400; }
/* Erste Spalte (Hautbilder) bleibt beim seitlichen Scrollen stehen */
/* Schmal gehalten, damit zehn Behandlungen auf Laptop-Breite ohne Scrollen passen */
.tb-matrix__corner { width: 12.5rem; min-width: 12.5rem; }
.tb-matrix__corner, .tb-matrix__table tbody th {
  position: sticky; left: 0; z-index: 1; padding-left: 1.1rem !important; text-align: left !important;
  background: linear-gradient(var(--tb-matrix-bg), var(--tb-matrix-bg)), var(--mc-d);
}
.tb-matrix__corner { font-size: .72rem; font-weight: 600 !important; letter-spacing: .2em; text-transform: uppercase; color: rgba(241, 232, 229, .65); }
/* Spaltenköpfe: Behandlungen */
.tb-matrix__col { min-width: 4.9rem; font-size: .76rem; line-height: 1.25; hyphens: auto; hyphenate-limit-chars: 8 4 4; overflow-wrap: anywhere; }
.tb .tb-matrix__table thead th a { color: var(--sc-l); font-weight: 600; text-decoration: none; }
.tb .tb-matrix__table thead th a:hover, .tb .tb-matrix__table thead th a:focus-visible { color: var(--tb-gold); text-decoration: underline; }
/* Zeilenköpfe: Hautbild mit Icon */
.tb-matrix__skin { display: flex; align-items: center; gap: .75rem; }
.tb-matrix__skin img { flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1.5px solid rgba(237, 212, 144, .55); background: #fff; }
.tb-matrix__label { font-size: .85rem; font-weight: 400; line-height: 1.3; color: rgba(241, 232, 229, .9); hyphens: auto; }
.tb-matrix__table td.is-on svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: var(--tb-gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tb-matrix__table tbody tr:hover > * { background-color: rgba(241, 232, 229, .05); }
.tb-matrix__table tbody tr:hover th { background: linear-gradient(rgba(241, 232, 229, .05), rgba(241, 232, 229, .05)), linear-gradient(var(--tb-matrix-bg), var(--tb-matrix-bg)), var(--mc-d); }

/* ---------------------------------------------------------------- Weitere */
.tb-cards__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.tb-cards__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; list-style: none; margin: 2rem 0 0; padding: 0; }
.tb-cards__list > li { padding: 0 !important; }
.tb-cards__list > li::before { display: none !important; }
.tb-cards__card {
  display: flex; flex-direction: column; gap: .75rem; height: 100%; padding: 1.75rem;
  border-radius: var(--tb-radius); background: var(--mc); border: 1px solid rgba(241, 232, 229, .12);
  color: var(--sc-l) !important; text-decoration: none; transition: background-color .25s ease;
}
.tb-cards__card:hover, .tb-cards__card:focus { background: var(--mc-l); }
.tb-cards__title { font-family: var(--tb-serif); font-size: 1.9rem; line-height: 1.1; }
.tb-cards__more { margin-top: auto; font-size: .875rem; font-weight: 600; }

/* ---------------------------------------------------------------- Mobil */
@media (max-width: 991.98px) {
  .tb-overview__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-reviews__track { --tb-per-view: 2; }
  body:has(.tb-hero) .faq-element { padding: 4rem 1.25rem; }
  .tb__inner { padding: 4rem 1.25rem; }
  .tb__pad { padding: 1.75rem; }
  .tb__grid2, .tb__split, .tb-problems__layout, .tb-booking__layout,
  .tb-steps--process .tb-steps__layout { grid-template-columns: 1fr; gap: 2rem; }
  .tb-cards__list { grid-template-columns: 1fr; }
  .tb__leaf--cols ul, ul.tb__leaf--cols { grid-template-columns: 1fr; }
  .tb-problems__note { flex-direction: column; align-items: flex-start; }
  .tb-steps--process .tb-steps__list { padding: 1.75rem; }
  .tb-steps__mosaic { min-height: 0; grid-auto-rows: auto; }
  .tb-steps__tile { aspect-ratio: 4 / 3; }
  .tb-steps__mosaic--3 .tb-steps__tile:first-child { aspect-ratio: 8 / 3; }
  .tb-booking__facts dd { font-size: 2.75rem; }
  /* Einstieg: kleine Zeile, Kreis, Icons, Kernaussage untereinander und zentriert */
  .tb-hero__head {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: none;
    grid-template-areas: "eyebrow" "seal" "icons" "lead";
    justify-items: center; text-align: center;
  }
  .tb-hero__seal { width: min(100%, 22rem); margin-top: 1.5rem; }
  .tb-hero__icons { justify-content: center; margin-top: 2rem; }
  .tb-hero__lead { max-width: 30ch; }
}
@media (max-width: 575.98px) {
  /* Übersicht: Filter als wischbare Zeile, Karten untereinander */
  .tb-overview__filter { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: -1.25rem; padding: .25rem 1.25rem .6rem; scrollbar-width: none; }
  .tb-overview__filter::-webkit-scrollbar { display: none; }
  .tb .tb-skin { flex: none; max-width: 15rem; }
  .tb-overview__list { grid-template-columns: 1fr; }
  .tb-matrix__corner { width: 11.5rem; min-width: 11.5rem; }
  .tb-matrix__skin { gap: .5rem; }
  .tb-matrix__skin img { width: 1.9rem; height: 1.9rem; }
  .tb-matrix__label { font-size: .78rem; }
  /* Rezensionen: eine Karte, die nächste schaut an, Slider läuft bis zum Bildschirmrand */
  .tb-reviews__track { --tb-per-view: 1.12; --tb-gap: 1rem; margin-inline: -1.25rem; padding-inline: 1.25rem; scroll-padding-inline: 1.25rem; }
  .tb-review { padding: 2rem 1.5rem 1.5rem; }
  body:has(.tb-hero) .faq-element__question, body:has(.tb-hero) .faq-element__answer { padding-left: 2.75rem !important; }
  .tb-problems__list, .tb-steps--process .tb-steps__list { grid-template-columns: 1fr; }
  .tb-steps__mosaic { gap: .5rem; }
  .tb-steps__tile { aspect-ratio: 1 / 1; }
  .tb-steps__mosaic--3 .tb-steps__tile:first-child { aspect-ratio: 2 / 1; }
  .tb-steps__tile-num { left: .75rem; bottom: .5rem; font-size: 1.6rem; }
  .tb-hero__compare { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .tb-hero__photo .tb__photo { aspect-ratio: 4 / 3; }
  /* Handy: Icons in Reihen zu vier, damit sie erkennbar bleiben */
  .tb-hero__icons:has(> li:nth-child(5)) { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 3.25rem)); }
  /* Handy: Buttons untereinander – die Schale wird zum abgerundeten Feld (wie die Reiter im Hautfinder) */
  .tb__actions { flex-direction: column; align-items: stretch; align-self: stretch; width: auto; border-radius: 14px; }
  .tb__actions .btn { justify-content: center; width: 100% !important; }
  .tb .tb__actions > a.btn { flex: none; width: 100% !important; }
  .tb .tb__actions:not(:has(> :only-child)) > a.btn { border-radius: 10px !important; }
  .tb .tb__actions:not(:has(> :only-child)) > a.btn.tb-btn-cta,
  .tb .tb__actions:not(:has(> :only-child)) > a.btn.btn-primary { padding-left: 1rem !important; padding-right: 1rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  .tb a.btn.tb-btn-cta, .tb .tb-hero__icon, .tb .tb-reviews__arrow, .tb .tb-reviews__dot, .tb .tb-skin, .tb .tb-overview__card { transition: none; }
  .tb-reviews__track { scroll-behavior: auto; }
  /* Inhaltsanimationen (AOS) nicht abspielen, sondern gleich zeigen */
  .tb[data-aos], .tb [data-aos], .faq-element[data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Bildraster der Schritte: Fotos öffnen sich nacheinander wie ein Vorhang, die Nummern folgen.
   Nur mit JavaScript (html.tb-motion) und ohne „Bewegung reduzieren“; nach 4 s ohne Skript ist alles sichtbar. */
@media (prefers-reduced-motion: no-preference) {
  .tb-motion .tb-steps__tile {
    clip-path: inset(100% 0 0 0 round var(--tb-radius));
    transition: clip-path 1.15s cubic-bezier(.7, 0, .2, 1) calc(var(--i, 0) * .16s);
  }
  .tb-motion .tb-steps__tile img { transform: scale(1.14); transition: transform 1.7s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * .16s), filter .6s ease; }
  .tb-motion .tb-steps__tile-num { opacity: 0; transform: translateY(.6rem); transition: opacity .7s ease calc(.55s + var(--i, 0) * .16s), transform .7s ease calc(.55s + var(--i, 0) * .16s); }
  .tb-motion .tb-steps__layout--mosaic.is-in .tb-steps__tile { clip-path: inset(0 0 0 0 round var(--tb-radius)); }
  .tb-motion .tb-steps__layout--mosaic.is-in .tb-steps__tile img { transform: none; }
  .tb-motion .tb-steps__layout--mosaic.is-in .tb-steps__tile-num { opacity: 1; transform: none; }
  .tb-motion .tb-steps__layout--mosaic.is-in .tb-steps__tile.is-active img { transform: scale(1.06); }
  /* nach dem Aufdecken ohne Verzögerung auf die Hervorhebung reagieren */
  .tb-motion .tb-steps__layout--mosaic.is-done .tb-steps__tile img { transition: transform .9s cubic-bezier(.2, .7, .2, 1), filter .6s ease; }
  .tb-motion-safe:not(.tb-motion-js) .tb-steps__tile { clip-path: none; }
  .tb-motion-safe:not(.tb-motion-js) .tb-steps__tile img { transform: none; }
  .tb-motion-safe:not(.tb-motion-js) .tb-steps__tile-num { opacity: 1; transform: none; }
}

/* Inhaltsanimationen (AOS, Reiter „Inhaltsanimationen“): Was seitlich hereinfliegt,
   z. B. der Kreis im Einstieg, darf vorher keine waagerechte Scrollleiste erzeugen. */
.tb:has([data-aos]), .tb[data-aos] { overflow-x: clip; }
