/*
 * TFM Syllabus — "Die Schriftrolle"
 * /wp-content/themes/blocksy-child/css/tfm-academy-syllabus.css
 *
 * Geladen auf: class-Taxonomie-Archiv + class-chapter Einzelseite
 * (via php/tfm-academy-syllabus.php)
 *
 * Eigene Datei statt Erweiterung von tfm-academy.css: das Syllabus hat
 * mit Alterung, Entrollen, Wärme-Verlauf, Fasertextur und Zertifikat
 * genug eigenes Gewicht, und die Datei soll nur dort laden, wo sie
 * gebraucht wird. ALLE Farben kommen aus tfm-academy-core.css, das per
 * Enqueue-Abhängigkeit immer vorher geladen wird — diese Datei
 * definiert keine eigenen Farbwerte mehr.
 *
 * ── STRUKTUR ──────────────────────────────────────────────────
 *  1. Variablen + Grundlagen
 *  2. Kopfbereich (Kennzahlen, Rückkehr-Erinnerung)
 *  3. Siegel-Leiste (inkl. Alterung, Entrollen, Theorie/Praxis-Zeichen)
 *  4. Pergament-Panel (Grundaufbau)
 *  5. Dekorations-Ebenen (Textur, atmender Schein, Wärme, Ecken-Ranken)
 *  6. Cover (inkl. langsamer Zoom)
 *  7. Typografie + gestaffelte Tinte
 *  8. Zertifikat
 *  9. Tageszeit-Varianten
 * 10. Responsive + Bewegungsreduktion
 *
 * NAMENSKONVENTION: alle Klassen mit Präfix .tfm-syl-, damit es keine
 * Kollisionen mit den .tfm-grim-* Klassen des Grimoire gibt. Die beiden
 * Bereiche sehen verwandt aus, sind aber bewusst unabhängig — eine
 * Änderung am Grimoire soll das Syllabus nie unbeabsichtigt mitziehen.
 */

/* ============================================================
   1. VARIABLEN + GRUNDLAGEN
   ============================================================ */

.tfm-syl-root {
  --syl-accent:      var(--academy-accent);
  --syl-accent-soft: var(--academy-accent-soft);
  --syl-accent-deep: var(--academy-accent-deep);
  --syl-accent-glow: var(--academy-accent-glow);
  --syl-accent-dim:  var(--academy-accent-dim);
  --syl-gold:        var(--academy-gold);
  --syl-ink:         var(--academy-ink);
  --syl-body:        var(--academy-body-text);
  --syl-muted:       var(--academy-muted);

  --syl-paper-a:     var(--academy-surface-a);
  --syl-paper-b:     var(--academy-surface-b);

  --syl-read: 0;

  position: relative;
}

/* ============================================================
   2. KOPFBEREICH
   ============================================================ */

.tfm-syl-head {
  margin-bottom: 1.8rem;
}

.tfm-syl-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  align-items: flex-end;
}

.tfm-syl-stat {
  font-family: 'Jost', sans-serif;
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(var(--academy-muted-rgb), .7);
}
.tfm-syl-stat b {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--syl-accent-soft);
}

.tfm-syl-memo {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
  padding: .85rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--syl-accent-dim);
  background: rgba(var(--academy-accent-rgb), .07);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: .98rem;
  color: var(--syl-muted);
  animation: tfmSylMemoIn .8s ease .9s backwards;
}
@keyframes tfmSylMemoIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.tfm-syl-memo b {
  color: var(--syl-accent-soft);
  font-style: normal;
  font-weight: 500;
}
.tfm-syl-memo__btn {
  margin-left: auto;
  font-family: 'Jost', sans-serif;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: transparent;
  color: var(--syl-accent-soft);
  border: 1px solid var(--syl-accent-glow);
  border-radius: 6px;
  padding: .5rem 1rem;
  cursor: pointer;
  transition: background .25s, border-color .25s;
}
.tfm-syl-memo__btn:hover {
  background: rgba(var(--academy-accent-rgb), .16);
  border-color: var(--syl-accent);
}

.tfm-syl-empty {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--syl-muted);
  padding: 1rem 0;
}

/* ============================================================
   3. SIEGEL-LEISTE
   ============================================================ */

.tfm-syl-strip {
  position: relative;
  margin: 2rem 0;
  border-radius: 4px;
  background: linear-gradient(to bottom, rgba(var(--academy-parchment-rgb), .05), rgba(20, 12, 35, .5));
  border-top: 1px solid rgba(var(--academy-parchment-rgb), .14);
  border-bottom: 1px solid rgba(var(--academy-parchment-rgb), .14);
}

.tfm-syl-strip__scroll {
  overflow-x: auto;
  padding: 2rem 1.4rem 1.5rem;
  scrollbar-width: thin;
}
.tfm-syl-strip__scroll::-webkit-scrollbar { height: 5px; }
.tfm-syl-strip__scroll::-webkit-scrollbar-track { background: transparent; }
.tfm-syl-strip__scroll::-webkit-scrollbar-thumb {
  background: var(--syl-accent-glow);
  border-radius: 3px;
}

.tfm-syl-rail {
  display: flex;
  align-items: flex-start;
  min-width: min-content;
  position: relative;
}

.tfm-syl-seal {
  flex: 1 0 132px;
  background: none;
  border: 0;
  padding: 0 .4rem;
  margin: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: center;
  position: relative;
}

.tfm-syl-seal::before {
  content: '';
  position: absolute;
  top: 13px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(var(--academy-muted-rgb), .22);
  transition: background .4s;
}
.tfm-syl-seal.is-done::before {
  background: var(--syl-accent-glow);
}

.tfm-syl-seal__dot {
  position: relative;
  z-index: 2;
  width: 27px;
  height: 27px;
  margin: 0 auto .65rem;
  border-radius: 50%;
  border: 1px solid rgba(var(--academy-muted-rgb), .35);
  background: #0d0819;
  display: grid;
  place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: .78rem;
  color: var(--syl-muted);
  transition: transform .3s, border-color .3s, color .3s, box-shadow .3s, opacity .3s;
}
.tfm-syl-seal.is-done .tfm-syl-seal__dot {
  border-color: var(--syl-accent);
  background: rgba(var(--academy-accent-rgb), .18);
  color: var(--syl-accent-soft);
}
.tfm-syl-seal:hover .tfm-syl-seal__dot {
  border-color: var(--syl-accent-soft);
}
.tfm-syl-seal.is-active .tfm-syl-seal__dot {
  border-color: var(--syl-gold);
  color: var(--syl-gold);
  transform: scale(1.22);
  box-shadow: 0 0 16px rgba(var(--academy-gold-rgb), .35);
}

.tfm-syl-seal__label {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: .84rem;
  line-height: 1.3;
  color: rgba(var(--academy-muted-rgb), .85);
  transition: color .3s;
}
.tfm-syl-seal.is-active .tfm-syl-seal__label {
  color: var(--syl-ink);
}
.tfm-syl-seal:hover .tfm-syl-seal__label {
  color: var(--syl-accent-soft);
}

.tfm-syl-seal.is-done .tfm-syl-seal__label {
  color: rgba(220, 212, 240, .92);
}
.tfm-syl-seal.is-done .tfm-syl-seal__dot {
  box-shadow: inset 0 0 6px rgba(0, 0, 0, .5);
}
.tfm-syl-seal.is-open .tfm-syl-seal__label {
  color: rgba(var(--academy-muted-rgb), .5);
}
.tfm-syl-seal.is-open .tfm-syl-seal__dot {
  opacity: .62;
}
.tfm-syl-seal.is-open .tfm-syl-kind {
  opacity: .4;
}
.tfm-syl-seal.is-active.is-open .tfm-syl-seal__dot,
.tfm-syl-seal.is-active.is-open .tfm-syl-kind {
  opacity: 1;
}

.tfm-syl-kind {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  margin-top: .45rem;
  color: rgba(var(--academy-accent-soft-rgb), .6);
  transition: opacity .3s, color .3s;
}
.tfm-syl-kind svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.tfm-syl-kind span {
  font-family: 'Jost', sans-serif;
  font-size: .53rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(var(--academy-muted-rgb), .6);
}
.tfm-syl-seal.is-active .tfm-syl-kind {
  color: var(--syl-gold);
}
.tfm-syl-seal.is-active .tfm-syl-kind span {
  color: rgba(var(--academy-gold-rgb), .75);
}

.tfm-syl-strip.is-unrolling {
  animation: tfmSylUnrollStrip .6s cubic-bezier(.22, .9, .3, 1);
}
@keyframes tfmSylUnrollStrip {
  0%   { clip-path: inset(0 42% 0 42%); }
  100% { clip-path: inset(0); }
}

.tfm-syl-rail.is-unrolling .tfm-syl-seal {
  animation: tfmSylUnrollSeal .75s cubic-bezier(.22, .9, .3, 1) backwards;
  animation-delay: calc(var(--i, 0) * .075s);
}
@keyframes tfmSylUnrollSeal {
  0%   { opacity: 0; transform: scaleX(.2) translateY(6px); filter: blur(3px); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

/* ============================================================
   4. PERGAMENT-PANEL
   ============================================================ */

.tfm-syl-panels {
  position: relative;
}

.tfm-syl-panel {
  display: none;
  position: relative;
  border-radius: 6px;
  padding: 2.2rem 2.4rem;
  background: linear-gradient(135deg, var(--syl-paper-a), var(--syl-paper-b));
  border: 1px solid var(--syl-accent-dim);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, .5),
    inset 0 0 60px rgba(var(--academy-accent-rgb), .04);
  overflow: hidden;
  transition: background 1.2s ease, box-shadow 1.2s ease;
}
.tfm-syl-panel.is-active {
  display: grid;
  grid-template-columns: 158px 1fr;
  gap: 2rem;
  align-items: start;
}

.tfm-syl-panel.is-switching {
  animation: tfmSylFlip .5s cubic-bezier(.3, .8, .4, 1);
}
@keyframes tfmSylFlip {
  0%   { opacity: .3; transform: rotateY(-7deg) translateX(16px); }
  100% { opacity: 1; transform: none; }
}

/* ============================================================
   5. DEKORATIONS-EBENEN
   ============================================================ */

.tfm-syl-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .55;
}

.tfm-syl-breathe {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 45%, rgba(var(--academy-accent-rgb), .14), transparent 62%);
  filter: blur(30px);
  animation: tfmSylBreathe 16s ease-in-out infinite;
}
@keyframes tfmSylBreathe {
  0%, 100% { opacity: .45; transform: scale(1); }
  50%      { opacity: .95; transform: scale(1.12); }
}

.tfm-syl-warm {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: calc(var(--syl-read) * 1);
  transition: opacity .3s linear;
  background:
    radial-gradient(ellipse 60% 55% at 82% 88%, rgba(255, 150, 70, .22), transparent 62%),
    radial-gradient(ellipse 70% 60% at 12% 78%, rgba(255, 120, 60, .14), transparent 60%),
    linear-gradient(148deg,
      rgba(255, 200, 130, .04) 0%,
      rgba(255, 176, 96, .13) 38%,
      rgba(255, 132, 62, .18) 72%,
      rgba(214, 92, 48, .16) 100%);
}

.tfm-syl-vine {
  position: absolute;
  width: 52px;
  height: 52px;
  z-index: 3;
  opacity: .45;
  pointer-events: none;
}
.tfm-syl-vine svg { width: 100%; height: 100%; }
.tfm-syl-vine--tl { top: 6px;    left: 6px; }
.tfm-syl-vine--tr { top: 6px;    right: 6px;  transform: scaleX(-1); }
.tfm-syl-vine--bl { bottom: 6px; left: 6px;   transform: scaleY(-1); }
.tfm-syl-vine--br { bottom: 6px; right: 6px;  transform: scale(-1, -1); }

.tfm-syl-panel.is-switching .tfm-syl-vine--tl { animation: tfmSylSwayTl 1.1s ease-out; }
.tfm-syl-panel.is-switching .tfm-syl-vine--tr { animation: tfmSylSwayTr 1.1s ease-out; }
.tfm-syl-panel.is-switching .tfm-syl-vine--bl { animation: tfmSylSwayBl 1.1s ease-out; }
.tfm-syl-panel.is-switching .tfm-syl-vine--br { animation: tfmSylSwayBr 1.1s ease-out; }

@keyframes tfmSylSwayTl {
  0%   { transform: rotate(-4deg) scale(1.04); }
  45%  { transform: rotate(2deg); }
  100% { transform: none; }
}
@keyframes tfmSylSwayTr {
  0%   { transform: scaleX(-1) rotate(-4deg); }
  45%  { transform: scaleX(-1) rotate(2deg); }
  100% { transform: scaleX(-1); }
}
@keyframes tfmSylSwayBl {
  0%   { transform: scaleY(-1) rotate(4deg); }
  45%  { transform: scaleY(-1) rotate(-2deg); }
  100% { transform: scaleY(-1); }
}
@keyframes tfmSylSwayBr {
  0%   { transform: scale(-1, -1) rotate(4deg); }
  45%  { transform: scale(-1, -1) rotate(-2deg); }
  100% { transform: scale(-1, -1); }
}

/* ============================================================
   6. COVER
   ============================================================ */

.tfm-syl-cover {
  position: relative;
  height: 210px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--syl-accent-dim);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  z-index: 3;
}
.tfm-syl-cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block;
  animation: tfmSylKenBurns 24s ease-in-out infinite alternate;
}
@keyframes tfmSylKenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.14) translate(-2%, -3%); }
}

.tfm-syl-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .07);
  pointer-events: none;
}

.tfm-syl-cover--empty {
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(42, 26, 74, .9), rgba(18, 8, 42, .9));
}
.tfm-syl-cover--empty span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  color: rgba(var(--academy-gold-rgb), .35);
}

/* ============================================================
   7. TYPOGRAFIE + GESTAFFELTE TINTE
   ============================================================ */

.tfm-syl-col {
  position: relative;
  z-index: 3;
  min-width: 0;
}

.tfm-syl-kicker {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--syl-accent-soft);
  opacity: .85;
  margin-bottom: .5rem;
}

.tfm-syl-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  font-weight: 500;
  color: var(--syl-ink);
  line-height: 1.15;
  margin: 0 0 .5rem;
  letter-spacing: .01em;
}

.tfm-syl-meta {
  font-family: 'Jost', sans-serif;
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--syl-accent-soft);
  opacity: .75;
  margin-bottom: 1.2rem;
}

.tfm-syl-reader {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 1.2rem;
  scrollbar-width: thin;
}
.tfm-syl-reader::-webkit-scrollbar { width: 4px; }
.tfm-syl-reader::-webkit-scrollbar-track { background: transparent; }
.tfm-syl-reader::-webkit-scrollbar-thumb {
  background: rgba(var(--academy-accent-rgb), .25);
  border-radius: 3px;
}
.tfm-syl-reader p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--syl-body);
  margin: 0 0 .9rem;
}
.tfm-syl-reader p:last-child { margin-bottom: 0; }
.tfm-syl-reader h2,
.tfm-syl-reader h3,
.tfm-syl-reader h4 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--syl-accent-soft);
  margin: 1.5rem 0 .4rem;
}
.tfm-syl-reader em {
  color: var(--syl-accent-soft);
}

.tfm-syl-panel.is-switching .tfm-syl-ink {
  animation: tfmSylInk .85s ease-out backwards;
}
.tfm-syl-panel.is-switching .tfm-syl-kicker { animation-delay: 0s; }
.tfm-syl-panel.is-switching .tfm-syl-title  { animation-delay: .09s; }
.tfm-syl-panel.is-switching .tfm-syl-meta   { animation-delay: .18s; }
.tfm-syl-panel.is-switching .tfm-syl-reader { animation-delay: .28s; }

@keyframes tfmSylInk {
  0%   { opacity: 0;   filter: blur(4px); letter-spacing: .13em; }
  60%  { opacity: .85; filter: blur(1px); }
  100% { opacity: 1;   filter: blur(0);   letter-spacing: normal; }
}

.tfm-syl-root ::selection {
  background: rgba(var(--academy-accent-rgb), .32);
  color: #f3fff5;
}
.tfm-syl-root ::-moz-selection {
  background: rgba(var(--academy-accent-rgb), .32);
  color: #f3fff5;
}

/* ── Button "Modul beginnen" / "View Certificate" / "Close" / "Back to
   Academy" ──
   VIER EINSATZORTE, DREI VERSCHIEDENE ROH-TAGS + EIN ELEMENTOR-WIDGET:
     - <a class="tfm-syl-enter">           "Modul beginnen" (PHP-Link)
     - <button class="tfm-syl-enter ...">  "View Certificate" / "Close"
       (PHP-Button, siehe tfm_shortcode_syllabus_certificate())
     - <div class="tfm-syl-enter ...">     "Back to the Academy"
       (Elementor-Button-Widget) — Klasse sitzt auf dem Wrapper, der
       echte Link steckt drei Ebenen tiefer als <a class="elementor-button">
   Die ersten beiden Fälle sollen unverändert inline-sized bleiben (passen
   sich ihrem Inhalt an). Nur der Elementor-Fall braucht den Breite-
   durchreichen-Fix. Da Elementors Wrapper IMMER ein <div> ist, trennt
   ":not(a):not(button)" die Fälle zuverlässig. */

/* Gemeinsame Optik für ALLE Fälle */
.tfm-syl-enter,
.tfm-syl-enter *,
.tfm-syl-enter:not(a):not(button) .elementor-button,
.tfm-syl-enter:not(a):not(button) .elementor-button * {
  background: transparent !important;
  border-color: var(--syl-accent-glow) !important;
  color: var(--syl-accent-soft) !important;
  font-family: 'Jost', sans-serif !important;
  font-size: .7rem !important;
  font-weight: 500 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  box-shadow: none !important;
  fill: var(--syl-accent-soft) !important;
}

/* Fall PHP-Link/-Button: inline-sized wie bisher, unverändert */
.tfm-syl-enter {
  display: inline-flex !important;
  align-items: center !important;
  gap: .5rem !important;
  margin-top: 1.4rem;
  border: 1px solid var(--syl-accent-glow) !important;
  padding: .7rem 1.9rem;
  border-radius: 6px !important;
  line-height: 1.4;
  cursor: pointer;
  position: relative;
  z-index: 4;
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.tfm-syl-enter:hover,
.tfm-syl-enter:hover * {
  background: rgba(var(--academy-accent-rgb), .16) !important;
  border-color: var(--syl-accent) !important;
  color: var(--syl-ink) !important;
}
.tfm-syl-enter:hover {
  box-shadow: 0 0 20px var(--syl-accent-glow) !important;
}

/* Fall Elementor-Widget: Breite bis zum echten Link durchreichen.
   KEIN !important bei padding — reine Spezifität reicht bereits,
   blockiert aber nicht mehr dein eigenes Padding-Feld
   (Style-Tab → Button → Padding). */
.tfm-syl-enter:not(a):not(button) {
  display: block;
  align-self: stretch;
}
.tfm-syl-enter:not(a):not(button) .elementor-widget-container,
.tfm-syl-enter:not(a):not(button) .elementor-button-wrapper {
  width: 100%;
}
.tfm-syl-enter:not(a):not(button) .elementor-button {
  display: flex !important;
  width: 100%;
  justify-content: center !important;
  align-items: center !important;
  gap: .5rem !important;
  border: 1px solid var(--syl-accent-glow) !important;
  padding: .7rem 1.9rem;
  border-radius: 6px !important;
  line-height: 1.4;
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.tfm-syl-enter:not(a):not(button) .elementor-button:hover {
  background: rgba(var(--academy-accent-rgb), .16) !important;
  border-color: var(--syl-accent) !important;
  color: var(--syl-ink) !important;
  box-shadow: 0 0 20px var(--syl-accent-glow) !important;
}
.tfm-syl-enter:not(a):not(button) .elementor-button:hover * {
  color: var(--syl-ink) !important;
}

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

/* ============================================================
   8. ZERTIFIKAT
   ============================================================ */

.tfm-syl-cert-trigger {
  text-align: center;
  margin-top: 2.4rem;
}

.tfm-syl-cert-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(6, 4, 14, .88);
  backdrop-filter: blur(6px);
  animation: tfmSylCertFade .6s ease;
}
.tfm-syl-cert-overlay[hidden] { display: none; }

@keyframes tfmSylCertFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.tfm-syl-cert {
  position: relative;
  max-width: 540px;
  width: 100%;
  padding: 3rem 2.6rem 2.4rem;
  text-align: center;
  border-radius: 6px;
  border: 1px solid rgba(var(--academy-gold-rgb), .35);
  background: linear-gradient(150deg, rgba(38, 24, 58, .98), rgba(20, 12, 38, .98));
  box-shadow:
    0 0 90px rgba(var(--academy-accent-rgb), .22),
    0 30px 70px rgba(0, 0, 0, .7);
  animation: tfmSylCertRise .8s cubic-bezier(.2, .9, .3, 1);
  overflow: hidden;
}
@keyframes tfmSylCertRise {
  from { opacity: 0; transform: translateY(26px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

.tfm-syl-cert__glow {
  position: absolute;
  inset: -30%;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, rgba(var(--academy-gold-rgb), .14), transparent 62%);
  animation: tfmSylBreathe 8s ease-in-out infinite;
}
.tfm-syl-cert > *:not(.tfm-syl-cert__glow) {
  position: relative;
  z-index: 2;
}

.tfm-syl-cert__seal {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  color: var(--syl-gold);
  text-shadow: 0 0 24px rgba(var(--academy-gold-rgb), .5);
  margin-bottom: .6rem;
}
.tfm-syl-cert__eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: .66rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--academy-accent-soft);
  opacity: .8;
}
.tfm-syl-cert__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--academy-parchment);
  margin: .8rem 0 .3rem;
  line-height: 1.2;
}
.tfm-syl-cert__line {
  width: 70px;
  height: 1px;
  margin: 1.1rem auto;
  background: linear-gradient(90deg, transparent, var(--academy-gold), transparent);
}
.tfm-syl-cert__text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--academy-body-text);
  margin: 0 0 1.4rem;
}
.tfm-syl-cert__text em {
  color: var(--academy-accent-soft);
  font-style: normal;
}
.tfm-syl-cert__date {
  font-family: 'Jost', sans-serif;
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(var(--academy-muted-rgb), .7);
}
.tfm-syl-cert__link {
  display: block;
  margin-top: 1.2rem;
  font-family: 'Jost', sans-serif;
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--academy-accent-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--academy-accent-soft-rgb), .3);
  padding-bottom: .2rem;
  width: fit-content;
  margin-inline: auto;
}
.tfm-syl-cert__link:hover {
  color: var(--academy-gold);
  border-bottom-color: rgba(var(--academy-gold-rgb), .5);
}
.tfm-syl-cert .tfm-syl-enter {
  margin-top: 1.6rem;
}

/* ============================================================
   9. TAGESZEIT-VARIANTEN
   ============================================================ */

body.tfm-time-night .tfm-syl-panel {
  box-shadow:
    0 20px 60px rgba(0, 0, 0, .78),
    inset 0 0 60px rgba(60, 40, 160, .09);
}
body.tfm-time-night .tfm-syl-breathe {
  background: radial-gradient(ellipse at 50% 45%, rgba(var(--academy-accent-rgb), .2), transparent 62%);
}

/* ============================================================
   10. RESPONSIVE + BEWEGUNGSREDUKTION
   ============================================================ */

@media (max-width: 820px) {
  .tfm-syl-panel.is-active {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .tfm-syl-panel {
    padding: 1.8rem 1.5rem;
  }
  .tfm-syl-cover {
    width: 132px;
    height: 176px;
  }
  .tfm-syl-title {
    font-size: 1.75rem;
  }
  .tfm-syl-reader {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }
  .tfm-syl-vine {
    width: 38px;
    height: 38px;
  }
  .tfm-syl-memo__btn {
    margin-left: 0;
  }
}

/* Phones: readable sizes for the stats, the module strip and the
   certificate's small lines. */
@media (max-width: 767px) {
  .tfm-syl-stat { font-size: .72rem; }
  .tfm-syl-kind span { font-size: .66rem; }
  .tfm-syl-memo__btn { font-size: .72rem; }
  .tfm-syl-cert__date { font-size: .7rem; }
}

@media (max-width: 480px) {
  .tfm-syl-strip__scroll { padding: 1.6rem 1rem 1.2rem; }
  .tfm-syl-seal { flex: 1 0 116px; }
  .tfm-syl-cert { padding: 2.2rem 1.4rem 1.8rem; }
  .tfm-syl-cert__title { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tfm-syl-strip.is-unrolling,
  .tfm-syl-rail.is-unrolling .tfm-syl-seal,
  .tfm-syl-panel.is-switching,
  .tfm-syl-panel.is-switching .tfm-syl-ink,
  .tfm-syl-panel.is-switching .tfm-syl-vine,
  .tfm-syl-breathe,
  .tfm-syl-cover img,
  .tfm-syl-memo,
  .tfm-syl-cert,
  .tfm-syl-cert__glow {
    animation: none !important;
  }
  .tfm-syl-warm { transition: none; }
}

/* ============================================================
   HEAD ON THE READING SURFACE
   Container .tfm-syl-headpage (+ .tfm-ac-page from tfm-academy-core.css):
   left: Text .tfm-syl-eyebrow ("✦ Course"), Heading .tfm-syl-title
   (Archive Title without prefix), Divider .tfm-syl-line, Text .tfm-syl-desc;
   right: shortcode [tfm_syllabus_head] (figures + return memo).
   ============================================================ */
.tfm-syl-eyebrow,
.tfm-syl-eyebrow * {
  font-family: 'Cormorant Garamond', serif !important;
  font-style: italic !important;
  font-weight: 600 !important;
  font-size: .72rem !important;
  letter-spacing: .3em !important;
  text-transform: uppercase !important;
  color: var(--academy-accent-soft) !important;
  margin: 0 !important;
}
.tfm-syl-title .elementor-heading-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-weight: 600 !important;
  font-size: clamp(2.2rem, 4.6vw, 3rem) !important;
  line-height: 1.05 !important;
  color: var(--academy-parchment) !important;
  text-shadow: 0 0 30px rgba(var(--academy-accent-rgb), .28);
  margin: .3rem 0 0 !important;
}
[class*="tfm-area-"] .tfm-syl-line .elementor-divider-separator {
  border: 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, var(--academy-accent), transparent) !important;
}
.tfm-syl-desc,
.tfm-syl-desc * {
  font-family: 'Cormorant Garamond', serif !important;
  font-style: italic !important;
  font-size: 1.1rem !important;
  line-height: 1.6 !important;
  color: var(--academy-body-text) !important;
  margin: 0 !important;
}
/* figures on the right edge of the head (left-aligned again when stacked) */
.tfm-syl-headpage .tfm-syl-stats {
  justify-content: flex-end;
}
@media (max-width: 1024px) {
  .tfm-syl-headpage .tfm-syl-stats {
    justify-content: flex-start;
  }
}
