/* =====================================================================
   Tagesenergie (/tagesenergie/), Vorlage 08.10.2026
   Die Karten tragen das Design der App (astromantie-tag-design v1, astromantie-planeten v3): Mondkugel aus der
   Mondtextur, eigene Bilder fuer Element, Planeten und die leuchtenden Tagesenergie-Felder, das Baumbild bei der
   Tagesenergie, Kosmisches Wetter mit Liniensymbolen, Planeten in Gruppen wie in der App. Dazu ein neuer Kopf und
   drei Hintergruende: Universum (tg-hg-universum), Bergnacht (tg-hg-berge), Element des Tages (tg-hg-element).
   Farben seit 08.10.2026 abends wie die Analyse-Seiten (ez.css, "Dein Lebensbuch"): tiefes Violett, violette
   Leuchtflaechen, Karten mit hellem Rand, Gold der Analysen; lila Sternenhimmel wie Einzelanalyse und Mondkalender,
   keine Berge mehr (Wunsch Nutzer). Vorher Nachtblau der Agnes-Seite. Karten deutlich weniger durchsichtig.
   Berechnung, Texte und Bedienung bleiben die des Mondkalender-Plugins (Kompaktansicht wie in der App).
   ===================================================================== */
#tg {
  /* Violett der Analyse-Seiten (ez.css), vorher Agnes Nacht */
  --nacht-0: #06030d;
  --nacht-1: #0b0618;
  --nacht-2: #130a2a;
  --rand: rgba(255, 255, 255, 0.09);
  --rand-2: rgba(214, 198, 255, 0.3);
  --text: #f4effe;
  --text-2: rgba(238, 230, 255, 0.76);
  --text-3: rgba(238, 230, 255, 0.54);
  --gold: #e8c96a;
  --gold-2: #d4a84f;
  --gold-hell: #f6e3a1;
  --blau: #a78bfa;
  --kachel: linear-gradient(165deg, rgba(48, 28, 98, 0.5), rgba(15, 9, 32, 0.6));
  /* Karten: wie die Agnes-Kacheln, aber deutlich deckender (der Sternenhimmel schimmert nur noch leicht durch) */
  --tg-karte: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012) 55%), radial-gradient(ellipse at 50% 0%, rgba(150, 100, 250, 0.12), rgba(150, 100, 250, 0) 62%), linear-gradient(165deg, rgba(30, 18, 62, 0.86), rgba(13, 8, 29, 0.92));
  --tg-feld: linear-gradient(165deg, rgba(56, 34, 112, 0.62), rgba(18, 10, 40, 0.7));
  --tg-kartenrand: rgba(255, 255, 255, 0.11);
  --tg-feldrand: rgba(196, 170, 255, 0.24);
  --tg-linie-fein: rgba(196, 170, 255, 0.16);
  --tg-glanz: rgba(214, 198, 255, 0.14);
  --tg-weich: cubic-bezier(0.22, 1, 0.36, 1);
  --tg-serif: 'Fraunces', Georgia, serif;
  --tg-grotesk: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  position: relative;
  isolation: isolate;
  color: var(--text);
  font-family: var(--tg-grotesk);
  overflow-x: clip;
}
#tg *, #tg *::before, #tg *::after { box-sizing: border-box; }
/* Hintergrund ueber die ganze Seite (auch hinter Kopf und Fuss der Website) */
body.tg-seite { background: var(--nacht-1, #0b0618); background-color: #0b0618; }
body.tg-seite .astro-content, body.tg-seite .astro-standalone-wrapper { background: transparent; }
/* Der Rahmen der Plugin-Seiten (standalone.css) gibt Breite und Abstand vor; hier regelt .tg-fluss beides */
body.tg-seite .astro-standalone-wrapper { max-width: none; padding: 0; }

/* ---------- Himmel (fest hinter allem): Verlauf des Agnes-Kopfes ---------- */
.tg-himmel {
  --astro-star-color: #ffffff;
  --astro-star-tempo: 0.95;
  position: fixed;
  inset: 0;
  height: 100lvh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 74% 40%, rgba(118, 64, 214, 0.34), rgba(118, 64, 214, 0) 70%),
    radial-gradient(45% 40% at 12% 88%, rgba(126, 96, 226, 0.2), rgba(126, 96, 226, 0) 70%),
    radial-gradient(70% 30% at 50% 108%, rgba(232, 201, 106, 0.14), rgba(232, 201, 106, 0) 70%),
    linear-gradient(180deg, #06030d 0%, #0f0724 55%, #120827 80%, #0b0618 100%);
}
.tg-himmel .astro-sterne-canvas, .tg-himmel .astro-sterne-staub { z-index: 0; }
/* Milchstrasse (vor allem Universum): breites, weiches Band in Blau und Weiss */
.tg-milch {
  position: absolute;
  left: -20%;
  top: -10%;
  width: 140%;
  height: 120%;
  transform: rotate(-24deg);
  background:
    radial-gradient(50% 9% at 50% 46%, rgba(200, 180, 255, 0.15), rgba(200, 180, 255, 0) 100%),
    radial-gradient(34% 5% at 44% 47%, rgba(255, 240, 220, 0.09), rgba(255, 240, 220, 0) 100%),
    radial-gradient(40% 14% at 58% 49%, rgba(140, 90, 240, 0.12), rgba(140, 90, 240, 0) 100%);
  pointer-events: none;
}
.tg-hg-berge .tg-milch, .tg-hg-element .tg-milch { opacity: 0.55; }
/* Landschaft unten (Bergnacht, Element): Bild ueber dem Sternenhimmel, Himmel darin durchsichtig */
.tg-land { position: absolute; inset: 0; display: block; }
.tg-land img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--tg-fokus, 50%) calc(100% + 13vh);
}
/* Hochkant: eigener flacher Streifen unten (…-hoch.webp) */
@media (max-aspect-ratio: 1/1) { .tg-land img { top: auto; height: auto; aspect-ratio: 1200 / 775; object-fit: cover; object-position: 50% 100%; } }
.tg-land.ist-neu img { animation: tg-auf 1.6s var(--tg-weich) backwards; }
/* Element-Licht im Nachtblau (Fassung 3) */
.tg-hg-element.tg-el-feuer .tg-himmel { background: radial-gradient(70% 40% at 64% 80%, rgba(255, 130, 70, 0.24), rgba(255, 130, 70, 0) 70%), radial-gradient(60% 55% at 74% 30%, rgba(118, 64, 214, 0.26), rgba(118, 64, 214, 0) 70%), linear-gradient(180deg, #06030d 0%, #0f0724 50%, #1c1534 80%, #120f26 100%); }
.tg-hg-element.tg-el-erde .tg-himmel { background: radial-gradient(60% 40% at 30% 80%, rgba(240, 176, 100, 0.2), rgba(240, 176, 100, 0) 70%), radial-gradient(60% 55% at 74% 34%, rgba(118, 64, 214, 0.3), rgba(118, 64, 214, 0) 70%), linear-gradient(180deg, #06030d 0%, #0f0724 55%, #170c33 80%, #0e0720 100%); }
.tg-hg-element.tg-el-wasser .tg-himmel { background: radial-gradient(60% 36% at 64% 72%, rgba(180, 150, 255, 0.24), rgba(180, 150, 255, 0) 70%), radial-gradient(60% 55% at 30% 26%, rgba(118, 64, 214, 0.28), rgba(118, 64, 214, 0) 70%), linear-gradient(180deg, #06030d 0%, #0f0724 55%, #120827 80%, #0b0618 100%); }
.tg-hg-element.tg-el-luft .tg-himmel { background: radial-gradient(70% 40% at 50% 68%, rgba(255, 220, 196, 0.16), rgba(255, 220, 196, 0) 70%), radial-gradient(60% 55% at 74% 30%, rgba(118, 64, 214, 0.3), rgba(118, 64, 214, 0) 70%), linear-gradient(180deg, #06030d 0%, #0f0724 50%, #1c0f3d 80%, #140a2e 100%); }
/* Glutfunken (Feuertag) */
.tg-funken { position: absolute; inset: 0; display: none; }
.tg-hg-element.tg-el-feuer .tg-funken { display: block; }
.tg-funken i {
  position: absolute;
  bottom: 14%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffcf8a;
  box-shadow: 0 0 6px 1px rgba(255, 160, 80, 0.8);
  opacity: 0;
  animation: tg-funke var(--d, 7s) linear infinite;
  animation-delay: var(--v, 0s);
}
@keyframes tg-funke {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  12% { opacity: 0.9; }
  100% { opacity: 0; transform: translate3d(var(--dx, 20px), -46vh, 0); }
}
@keyframes tg-auf { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
@keyframes tg-ein { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Seitenfluss: Kopf, Mondleiste, Karten des Plugins, Planeten, Wetter, Mondkalender ---------- */
.tg-fluss {
  display: flex;
  flex-direction: column;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 clamp(60px, 8vw, 110px);
}
/* Die Kompaktansicht des Plugins legt ihre Teile direkt in den Fluss (Reihenfolge per order) */
#tg #astro-mondkalender { display: contents; }
#tg .tg-hero { order: 1; }
#tg #astro-mondkalender > .astro-moon-timeline-wrap { order: 2; }
#tg .tg-tag-hinweis { order: 3; }
#tg .tg-kopf-mond { order: 4; }
#tg #astro-mondkalender > .card-row:has(.mk-energy-chips) { order: 5; }
#tg #astro-mondkalender > .card-row:has(.mk-transit-card) { order: 6; margin-top: clamp(22px, 3vw, 30px) !important; }
#tg .tg-planeten { order: 7; }
#tg #astro-mondkalender > .card-row:has(.mk-wetter-title) { order: 8; margin-top: clamp(56px, 7vw, 92px) !important; }
#tg #astro-mondkalender > .mk-lightbox { order: 9; }
#tg .tg-ueber { order: 10; }

/* ---------- Kopf ---------- */
.tg-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  min-height: min(760px, calc(100svh - 90px));
  padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 36px);
}
.tg-hero-text { position: relative; z-index: 2; min-width: 0; animation: tg-auf 1s var(--tg-weich) backwards; }
/* Bergnacht und Element: dunkler Schein hinter dem Kopftext, damit er vor der Landschaft gut lesbar bleibt */
.tg-hg-berge .tg-hero-text::before, .tg-hg-element .tg-hero-text::before { content: ''; position: absolute; inset: -18% -14% -22% -22%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(6, 3, 13, 0.62), rgba(6, 3, 13, 0.35) 55%, rgba(6, 3, 13, 0) 100%); }
.tg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--tg-grotesk);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.tg-kicker::before { content: ''; width: 34px; height: 1px; background: linear-gradient(90deg, rgba(232, 201, 106, 0), var(--gold)); }
#tg h1.tg-titel {
  margin: 0 0 18px;
  font-family: var(--tg-serif);
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}
/* Auszeichnung wie auf den Analyse-Seiten (ez.css): kursiv, Verlauf Lavendel-Gold, langsamer Schimmer */
#tg h1.tg-titel em, #tg .tg-kopf h2 em, #tg .tg-ruf h2 em {
  font-style: italic;
  padding-right: 0.14em;
  margin-right: -0.06em;
  background: linear-gradient(110deg, #c9b6ff 0%, #e8c96a 55%, #fbe9b0 75%, #c9b6ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: tg-schimmer 10s ease-in-out infinite;
}
@keyframes tg-schimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
#tg .tg-lead {
  max-width: 34em;
  margin: 0 0 26px;
  font-size: clamp(16px, 1.5vw, 18.5px);
  line-height: 1.65;
  color: var(--text-2);
}
.tg-fakten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; max-width: 700px; }
#tg .tg-fakten li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--rand-2);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(48, 28, 98, 0.72), rgba(15, 9, 32, 0.8));
  box-shadow: inset 0 1px 0 var(--tg-glanz);
  font-size: 14px;
  line-height: 1.3;
}
.tg-fakt-bild { flex: none; display: grid; place-items: center; width: 40px; height: 40px; }
.tg-fakt-bild canvas, .tg-fakt-bild img { display: block; width: 40px; height: 40px; object-fit: contain; }
.tg-fakt-zeichen { border-radius: 50%; border: 1px solid rgba(232, 201, 106, 0.4); color: var(--gold); font-family: 'DejaVu Sans', 'Segoe UI Symbol', sans-serif; font-size: 21px; background: radial-gradient(circle at 35% 30%, rgba(232, 201, 106, 0.18), rgba(11, 6, 24, 0.3)); }
.tg-fakt-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tg-fakt-text b { font-weight: 650; color: var(--text); overflow-wrap: anywhere; }
.tg-fakt-text small { font-size: 12px; color: var(--text-3); overflow-wrap: anywhere; }
.tg-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
/* Knoepfe wie auf der Agnes-Seite (.knopf) */
#tg .tg-knopf, #tg .tg-knopf-zwei {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 999px;
  font: 700 15px/1 var(--tg-grotesk);
  letter-spacing: 0.01em;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s var(--tg-weich), box-shadow 0.3s, background 0.3s;
}
#tg .tg-knopf { color: #1b1404; background: linear-gradient(135deg, #f6e3a1 0%, #e8c96a 45%, #c9993c 100%); box-shadow: 0 12px 34px -10px rgba(232, 201, 106, 0.6); }
#tg .tg-knopf-zwei { color: var(--gold); border: 1px solid rgba(232, 201, 106, 0.5); background: rgba(11, 6, 24, 0.45); }
#tg .tg-knopf:hover, #tg .tg-knopf-zwei:hover { transform: translateY(-2px); }
#tg .tg-knopf:hover { box-shadow: 0 18px 44px -10px rgba(232, 201, 106, 0.75); }
#tg .tg-knopf-zwei:hover { background: rgba(232, 201, 106, 0.1); }
/* Der grosse Mond (Kugel aus der App-Textur, Phase gerechnet), Ring mit dem Stand im Mondumlauf */
.tg-hero-mond { position: relative; display: grid; place-items: center; min-width: 0; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; animation: tg-ein 1.6s var(--tg-weich) 0.15s backwards; }
.tg-mond-hof { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(160, 120, 255, 0.32), rgba(160, 120, 255, 0.12) 55%, rgba(160, 120, 255, 0) 100%); filter: blur(6px); }
.tg-mond-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tg-mond-ring circle.tg-bahn { fill: none; stroke: rgba(232, 201, 106, 0.34); stroke-width: 0.6; stroke-dasharray: 1.6 2.6; }
.tg-mond-ring .tg-marke { fill: #f6e3a1; }
.tg-mond-ring .tg-marke-hof { fill: rgba(246, 227, 161, 0.25); }
.tg-mond-ring text { font-family: var(--tg-grotesk); font-size: 3.1px; letter-spacing: 0.12em; fill: rgba(232, 201, 106, 0.75); text-transform: uppercase; }
.tg-mond-kugel { position: relative; width: 66%; height: auto; aspect-ratio: 1; display: block; filter: drop-shadow(0 0 40px rgba(167, 139, 250, 0.24)); }
.tg-mond-unter { position: absolute; left: 50%; bottom: -10%; transform: translateX(-50%); white-space: nowrap; margin: 0; padding: 5px 14px; border-radius: 999px; background: rgba(6, 3, 14, 0.6); font-size: 13px; color: var(--text-2); }
.tg-mond-unter b { color: var(--gold); font-weight: 600; }

/* ---------- Abschnittskoepfe ---------- */
.tg-kopf { margin: clamp(56px, 7vw, 92px) 0 22px; text-align: center; }
.tg-kopf .tg-kicker { justify-content: center; margin-bottom: 12px; }
.tg-kopf .tg-kicker::after { content: ''; width: 34px; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(232, 201, 106, 0)); }
#tg .tg-kopf h2 { margin: 0 auto; max-width: 20em; font-family: var(--tg-serif); font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 400; line-height: 1.15; color: var(--text); text-wrap: balance; }
#tg .tg-kopf p.tg-kopf-text-p { margin: 12px auto 0; max-width: 40em; font-size: 15.5px; line-height: 1.6; color: var(--text-3); }

/* ---------- Mondleiste: im Inhalt (nicht bis zum Rand), weniger Tage, Pfeile links und rechts ---------- */
#tg .astro-moon-timeline-wrap {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 6px auto 0;
  padding: 0 56px;
}
#tg .astro-moon-timeline {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 4px 14px;
  scrollbar-width: none;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
#tg .astro-moon-timeline::-webkit-scrollbar { display: none; }
#tg .astro-moon-tl-day.tg-fern { display: none !important; }
#tg .astro-moon-tl-day {
  flex: 0 0 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 4px 9px !important;
  border: 1px solid var(--tg-feldrand) !important;
  border-radius: 16px !important;
  background: linear-gradient(165deg, rgba(48, 28, 98, 0.7), rgba(15, 9, 32, 0.78)) !important;
  box-shadow: inset 0 1px 0 var(--tg-glanz) !important;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.25s, transform 0.25s var(--tg-weich), background 0.25s;
}
#tg .astro-moon-tl-day:hover { border-color: rgba(232, 201, 106, 0.6) !important; transform: translateY(-2px); }
#tg .astro-moon-tl-day.today { border-color: rgba(232, 201, 106, 0.75) !important; }
#tg .astro-moon-tl-day.tg-tag-an { background: linear-gradient(145deg, rgba(232, 201, 106, 0.22), rgba(34, 20, 70, 0.85)) !important; border-color: rgba(246, 227, 161, 0.9) !important; box-shadow: inset 0 1px 3px rgba(246, 227, 161, 0.3), 0 8px 22px -10px rgba(232, 201, 106, 0.5) !important; }
#tg .astro-moon-tl-icon { width: 40px; height: 40px; margin: 0 0 4px; display: grid; place-items: center; }
#tg .astro-moon-tl-icon.at-moon-holder > svg, #tg .astro-moon-tl-icon.at-moon-holder > span { display: none !important; }
#tg canvas.at-moon { display: block; width: 100%; height: auto; }
#tg .at-moon-illumination { font-size: 10px; line-height: 1.3; color: var(--text-3); white-space: nowrap; }
#tg .astro-moon-tl-label { font-size: 11px !important; line-height: 1.35; color: var(--text-2) !important; white-space: nowrap; }
#tg .astro-moon-tl-day.today .astro-moon-tl-label { color: var(--gold) !important; font-weight: 700; }
#tg .tg-pfeil {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-top: -21px;
  padding: 0;
  border: 1px solid rgba(232, 201, 106, 0.55);
  border-radius: 50%;
  background: linear-gradient(165deg, rgba(48, 28, 98, 0.85), rgba(15, 9, 32, 0.9));
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 var(--tg-glanz);
  color: var(--gold);
  cursor: pointer;
  transition: opacity 0.25s, background 0.25s, transform 0.25s var(--tg-weich);
}
#tg .tg-pfeil svg { width: 18px; height: 18px; }
#tg .tg-pfeil:hover { background: linear-gradient(165deg, rgba(232, 201, 106, 0.25), rgba(15, 9, 32, 0.9)); transform: scale(1.06); }
#tg .tg-pfeil[disabled] { opacity: 0.3; cursor: default; transform: none; }
#tg .tg-pfeil-links { left: 4px; }
#tg .tg-pfeil-rechts { right: 4px; }
.tg-tag-hinweis { display: flex; justify-content: center; margin: 2px 0 0; min-height: 30px; }
#tg .tg-tag-hinweis button {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid rgba(232, 201, 106, 0.45); border-radius: 999px;
  background: rgba(11, 6, 24, 0.7); color: var(--gold); font: 600 13px/1.3 var(--tg-grotesk); cursor: pointer;
}
#tg .tg-tag-hinweis[hidden] { display: none; }

/* ---------- Karten (App-Rahmen, Agnes-Farben, deutlich deckender) ---------- */
#tg .card-row { display: flex !important; flex-direction: column !important; gap: 0 !important; width: 100%; min-width: 0; margin: 0 !important; }
#tg .mk-card,
#tg .tg-fenster {
  position: relative;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  border: 1px solid var(--tg-kartenrand) !important;
  border-radius: 24px !important;
  background: var(--tg-karte) !important;
  box-shadow: inset 0 1px 0 var(--tg-glanz), 0 24px 60px -30px rgba(4, 2, 10, 0.9) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: var(--text);
  overflow: visible;
}
#tg .mk-card::before, #tg .mk-card::after { content: none !important; display: none !important; }
#tg .mk-info-toggle {
  position: absolute; top: 14px; right: 14px; z-index: 4; width: 28px; height: 28px; display: grid; place-items: center; padding: 0;
  color: var(--gold) !important; background: rgba(11, 6, 24, 0.85) !important; border: 1px solid rgba(214, 170, 80, 0.75) !important; border-radius: 50%;
  font: italic 16px/1 Georgia, serif; cursor: pointer;
}
#tg .mk-info-panel-inner { border-radius: 14px; }
#tg .mk-info-text { font-size: 14px; line-height: 1.6; color: var(--text-2); }

/* Kombikarte (App, Tobias 30.09.2026): Mond, Phase, Uhrzeit und Zeichen oben in der Element-Karte; die eigene
   Mondphasen-Karte entfaellt, ihr Mondimpuls steht auf der Website als Zitat in der Kombikarte */
#tg .at-phase-card.at-kombi-weg { display: none !important; }
#tg .at-energy-card { display: grid !important; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); column-gap: clamp(22px, 3.4vw, 46px); align-items: center; padding: clamp(22px, 3vw, 34px) !important; }
#tg .at-energy-card > .mk-card-label { display: none !important; }
#tg .at-energy-card > .mk-info-panel { grid-column: 1 / -1; grid-row: 2; }
#tg .tg-energie-rechts { grid-column: 2; grid-row: 1; min-width: 0; }
#tg .at-kombi-mond { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 4px 0 0; text-align: center; }
#tg .at-kombi-bild { width: min(280px, 76%); aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 60px 6px rgba(167, 139, 250, 0.16); }
#tg .at-kombi-bild canvas { width: 100%; height: 100%; }
#tg .at-kombi-text { text-align: center; }
#tg .at-kombi-text > * { text-align: center !important; }
#tg .at-kombi-text .mk-phase-name { margin: 0 !important; font-family: var(--tg-serif) !important; font-size: clamp(24px, 2.6vw, 30px) !important; font-weight: 400; line-height: 1.2; color: var(--gold) !important; font-variant: normal !important; text-transform: none !important; letter-spacing: 0 !important; }
#tg .at-kombi-text .mk-phase-zeit { margin: 4px 0 0 !important; font-size: 13px !important; color: var(--text-2); opacity: 0.9 !important; }
#tg .at-kombi-text .mk-moon-sign { margin: 8px 0 0 !important; font-size: 15px !important; color: var(--text-2) !important; }
#tg .tg-impuls { margin: 4px 0 0; padding: 16px 18px; border-left: 2px solid rgba(232, 201, 106, 0.6); border-radius: 0 14px 14px 0; background: linear-gradient(90deg, rgba(232, 201, 106, 0.09), rgba(232, 201, 106, 0)); text-align: left; }
#tg .tg-impuls small { display: block; margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
#tg .tg-impuls p { margin: 0; font-family: var(--tg-serif); font-size: 17px; line-height: 1.55; color: var(--text); }
#tg .at-energy-card .mk-energy-element { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; margin: 0 0 6px; padding: 0 34px 0 0; }
#tg .mk-energy-element .symbol { flex: none; width: 76px !important; height: 76px !important; margin: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; animation: none !important; }
#tg .mk-energy-element .name { margin: 0 !important; font-family: var(--tg-serif) !important; font-size: clamp(26px, 2.8vw, 34px) !important; font-weight: 400; color: var(--text) !important; letter-spacing: 0 !important; text-transform: none !important; }
#tg .mk-energy-wechsel { text-align: left !important; margin: 0 0 8px !important; }
#tg .at-energy-card .mk-energy-chips { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px !important; margin: 12px 0 0 !important; }
#tg .mk-energy-chips-bottom { display: none !important; }
#tg .mk-energy-chip {
  grid-column: span 2;
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  gap: 4px !important;
  min-width: 0 !important;
  width: 100% !important;
  padding: 12px 6px 12px !important;
  border: 1px solid var(--tg-feldrand) !important;
  border-radius: 16px !important;
  background: var(--tg-feld) !important;
  box-shadow: inset 0 1px 0 var(--tg-glanz) !important;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s var(--tg-weich);
}
#tg .mk-energy-chip:nth-child(-n+2) { grid-column: span 3; }
#tg .mk-energy-chip:hover { border-color: rgba(232, 201, 106, 0.7) !important; transform: translateY(-2px); }
#tg .chip-label { font-size: 11px !important; font-weight: 600; letter-spacing: 0.08em !important; text-transform: uppercase; color: var(--text-3) !important; padding: 0 16px; max-width: 100%; overflow-wrap: anywhere; }
#tg .chip-icon { width: 58px !important; height: 58px !important; margin: 2px auto !important; flex: none; font-size: 0 !important; }
#tg .chip-value { font-size: 14.5px !important; font-weight: 600; line-height: 1.35; color: var(--text) !important; max-width: 100%; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: normal; word-break: normal; }
#tg .chip-hint { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; display: grid; place-items: center; font: italic 12px/1 Georgia, serif; color: var(--gold); border: 1px solid var(--gold-2); border-radius: 50%; }
#tg .mk-chip-tooltip { display: none !important; }
#tg .at-icon-holder { position: relative; font-size: 0 !important; color: transparent !important; display: flex !important; align-items: center; justify-content: center; }
#tg .at-icon { display: block !important; width: 100% !important; height: 100% !important; object-fit: contain; pointer-events: none; }
#tg .at-moon-holder { position: relative; display: flex; align-items: center; justify-content: center; }
#tg .mk-voc-trigger { display: inline-block; margin-top: 10px; }

/* Deine Tagesenergie (App: Baumbild, Absaetze je Thema, Weiterlesen) */
#tg .at-article { display: grid !important; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: clamp(24px, 3.6vw, 52px); align-items: start; padding: clamp(22px, 3vw, 36px) !important; }
#tg .at-tree { grid-column: 1; grid-row: 1 / span 2; width: 100%; max-width: 360px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; margin: 0 auto; border-radius: 18px;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 46%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 46%, #000 62%, transparent 100%); }
#tg .mk-td-header { grid-column: 2; grid-row: 1; padding: 0 36px 0 0; text-align: left; }
#tg .mk-td-star, #tg .mk-td-gold-sep { display: none !important; }
#tg .mk-td-label { font: 400 clamp(28px, 3vw, 38px)/1.15 var(--tg-serif) !important; letter-spacing: 0 !important; text-transform: none !important; text-align: left !important; color: var(--gold) !important; }
#tg .mk-td-date { margin: 8px 0 0; font-size: 12px !important; letter-spacing: 0.14em; text-transform: uppercase; text-align: left !important; color: var(--text-3) !important; }
#tg .mk-td-body { grid-column: 2; grid-row: 2; min-width: 0; margin: 16px 0 0 !important; }
#tg .at-article .mk-td-text { margin: 0 !important; font-size: 16.5px !important; line-height: 1.72 !important; color: rgba(238, 230, 255, 0.86) !important; text-align: left !important; white-space: pre-line !important; display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; }
#tg .at-expanded .mk-td-text { display: block; overflow: visible; -webkit-line-clamp: unset; }
#tg .mk-td-readmore-wrap { margin-top: 18px; text-align: left; }
#tg .mk-td-readmore-btn {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 !important; padding: 11px 22px !important; border: 1px solid rgba(214, 170, 80, 0.8) !important; border-radius: 999px !important;
  background: rgba(232, 201, 106, 0.06) !important; color: var(--gold) !important; font: 600 14px/1.3 var(--tg-grotesk) !important; letter-spacing: 0 !important; text-transform: none !important; cursor: pointer;
}
#tg .mk-td-readmore-btn:hover { background: rgba(232, 201, 106, 0.14) !important; }

/* Kosmisches Wetter (App: warme Goldkarte, Liniensymbole je Messung) */
#tg .at-weather-card { padding: clamp(22px, 3vw, 34px) !important; border-color: rgba(214, 170, 80, 0.5) !important; background: radial-gradient(ellipse at 3% 0%, rgba(214, 170, 80, 0.13), transparent 45%), linear-gradient(165deg, rgba(38, 22, 78, 0.84), rgba(15, 9, 32, 0.9)) !important; }
#tg .at-weather-card .mk-wetter-title { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 0 36px; text-align: center !important; font-family: var(--tg-serif) !important; font-size: clamp(24px, 2.6vw, 30px) !important; font-weight: 400; letter-spacing: 0 !important; text-transform: none !important; color: var(--gold) !important; }
#tg .at-weather-card .mk-badge-live { font: 700 10px/1.3 var(--tg-grotesk) !important; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; color: #c9dfce; background: rgba(82, 121, 101, 0.18); border: 1px solid rgba(141, 183, 157, 0.42); box-shadow: none; animation: none; }
#tg .at-weather-card .mk-badge-live::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #6ee7a8; vertical-align: 1px; }
#tg .mk-wetter-subtitle { margin: 8px 0 20px !important; font-size: 14.5px !important; text-align: center !important; color: var(--text-3) !important; }
#tg .mk-wetter-2col { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px !important; margin-top: 16px !important; }
#tg .mk-wetter-2col.ap-weather-single { grid-template-columns: minmax(0, 1fr) !important; }
#tg .mk-wetter-2col.ap-weather-single .mk-wetter-section { width: 100%; max-width: 620px; justify-self: center; }
#tg .mk-wetter-section {
  --at-weather-accent: #dac18b;
  position: relative; min-width: 0; padding: 15px 14px !important; border: 1px solid rgba(214, 170, 80, 0.42) !important; border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(90, 76, 46, 0.22), rgba(18, 10, 40, 0.6) 65%) !important; box-shadow: inset 0 1px 1px rgba(246, 227, 161, 0.16) !important;
}
#tg .mk-wetter-section[data-at-weather="spectrum"] { --at-weather-accent: #91bdce; }
#tg .mk-wetter-section[data-at-weather="amplitude"] { --at-weather-accent: var(--blau); }
#tg .mk-wetter-section-label { display: flex; align-items: center; gap: 10px; margin: 0 0 12px !important; padding: 0 0 12px; border-bottom: 1px solid rgba(222, 186, 98, 0.2); font: 600 14.5px/1.35 var(--tg-grotesk) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--gold-hell) !important; }
#tg .mk-wetter-section-label > .dot { display: none; }
#tg .at-weather-symbol { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(222, 186, 98, 0.45); color: var(--at-weather-accent); background: radial-gradient(circle at 30% 20%, rgba(222, 186, 98, 0.2), rgba(11, 6, 24, 0.3)); }
#tg .at-weather-symbol svg { width: 22px; height: 22px; }
#tg .mk-wetter-img { display: block; width: 100% !important; height: auto !important; max-height: none !important; padding: 4px; object-fit: contain !important; border: 1px solid rgba(196, 170, 255, 0.2) !important; border-radius: 10px !important; background: rgba(6, 3, 13, 0.4); filter: none !important; }
#tg .mk-wetter-caption { margin-top: 10px !important; padding-top: 10px; border-top: 1px solid rgba(222, 186, 98, 0.12); font-size: 12.5px !important; line-height: 1.55; color: var(--text-2) !important; }

/* ---------- Planeten (App: Gruppen, Bild, Status, Stellung, Ausblick, Deutung zum Aufklappen) ---------- */
.tg-planeten-inhalt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.tg-planeten-spalte { display: grid; gap: 18px; min-width: 0; }
#tg .ap-window { padding: 4px 20px 6px; }
#tg .ap-window > h3, #tg .ap-hours-title { margin: 0; padding: 18px 0 14px; border-bottom: 1px solid var(--tg-linie-fein); font: 400 22px/1.3 var(--tg-serif); color: var(--gold); }
#tg .ap-planet + .ap-planet { border-top: 1px solid var(--tg-linie-fein); }
#tg .ap-disclosure { display: grid; grid-template-columns: 76px minmax(0, 1fr) 26px; gap: 14px; align-items: center; width: 100%; min-height: 104px; padding: 14px 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
#tg .ap-art { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1.16; overflow: hidden; -webkit-mask-image: radial-gradient(ellipse at center, #000 54%, #000b 68%, transparent 83%); mask-image: radial-gradient(ellipse at center, #000 54%, #000b 68%, transparent 83%); }
#tg .ap-planet-image { display: block; width: 100%; height: auto; }
#tg .ap-row-main { display: block; min-width: 0; }
#tg .ap-row-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
#tg .ap-name { font-size: 20px; font-weight: 650; line-height: 1.25; color: var(--text); }
#tg .ap-status { display: inline-block; padding: 2px 8px; border: 1px solid currentColor; border-radius: 8px; font-size: 12px; font-weight: 500; line-height: 1.45; color: var(--blau); background: rgba(11, 6, 24, 0.4); }
#tg .ap-direct { color: #78dcc0; background: rgba(16, 41, 32, 0.3); }
#tg .ap-retro { color: #ff6b6b; background: rgba(60, 16, 25, 0.3); }
#tg .ap-quiet { color: var(--blau); background: rgba(34, 20, 70, 0.4); }
#tg .ap-pre-shadow { color: #ffce55; background: rgba(53, 38, 14, 0.3); }
#tg .ap-post-shadow { color: #c9b8ff; background: rgba(40, 30, 80, 0.35); }
#tg .ap-station-retro { color: #ff9865; background: rgba(58, 26, 19, 0.3); }
#tg .ap-station-direct { color: #a9c0ff; background: rgba(40, 24, 82, 0.35); }
#tg .ap-fire { color: #ff9865; background: rgba(58, 26, 19, 0.3); }
#tg .ap-earth { color: #e9c45c; background: rgba(50, 40, 15, 0.3); }
#tg .ap-air { color: #79daff; background: rgba(16, 45, 58, 0.3); }
#tg .ap-water { color: #91b9ff; background: rgba(36, 22, 64, 0.3); }
#tg .ap-slow-station { color: #e0c58b; background: rgba(50, 40, 15, 0.2); }
#tg .ap-position { display: block; font-size: 13px; line-height: 1.5; color: var(--text-2); }
#tg .tg-glyphe { font-family: 'DejaVu Sans', 'Segoe UI Symbol', serif; color: var(--gold); }
#tg .ap-teaser { display: block; margin: 5px 0; font-size: 14.5px; line-height: 1.45; color: rgba(238, 230, 255, 0.9); }
#tg .ap-timing { display: flex; flex-wrap: wrap; column-gap: 7px; align-items: baseline; font-size: 12.5px; line-height: 1.45; color: var(--text-3); }
#tg .ap-countdown { font-variant-numeric: tabular-nums; color: var(--gold); }
#tg .ap-soon .ap-countdown { color: var(--gold-hell); font-weight: 650; }
#tg .ap-chevron { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(232, 201, 106, 0.55); color: var(--gold); font-size: 13px; line-height: 1; justify-self: end; opacity: 0.85; transition: transform 0.2s ease, background 0.2s; }
#tg .ap-disclosure[aria-expanded="true"] > .ap-chevron { transform: rotate(180deg); background: rgba(232, 201, 106, 0.14); opacity: 1; }
#tg .ap-reading { padding: 14px 0 20px; border-top: 1px solid var(--tg-linie-fein); font-size: 15.5px; line-height: 1.7; color: var(--text-2); }
#tg .ap-reading[hidden] { display: none; }
#tg .ap-reading h4 { margin: 0 0 9px; font-size: 17px; font-weight: 600; color: var(--gold); }
#tg .ap-reading p { margin: 0 0 12px; color: var(--text-2); }
#tg .ap-reading strong { color: var(--text); font-weight: 600; }
#tg .ap-klein { font-size: 13px !important; color: var(--text-3) !important; margin: 0 0 5px !important; }
#tg .ap-haus { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--tg-feldrand); border-radius: 12px; background: rgba(11, 6, 24, 0.45); font-size: 14px; }
#tg .ap-haus a { color: var(--gold); font-weight: 600; text-decoration: none; }
#tg .ap-haus a:hover { text-decoration: underline; }
#tg .ap-cycles > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 0; list-style: none; cursor: pointer; }
#tg .ap-cycles > summary::-webkit-details-marker { display: none; }
#tg .ap-cycles > summary strong { display: block; font: 400 22px/1.3 var(--tg-serif); color: var(--gold); }
#tg .ap-cycle-names { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.6; color: var(--text-2); }
#tg .ap-cycles[open] > summary { border-bottom: 1px solid var(--tg-linie-fein); }
#tg .ap-cycles[open] > summary .ap-chevron { transform: rotate(180deg); background: rgba(232, 201, 106, 0.14); }
#tg .ap-hours { padding: 20px 20px 18px; }
#tg .ap-hour-head { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 4px; }
#tg .ap-hour-head small { color: var(--text-3); }
#tg .ap-hour-head h4 { margin: 2px 0 3px; font-size: 26px; font-weight: 650; color: var(--text); }
#tg .ap-hour-time { margin: 0 0 3px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
#tg .ap-hour-time span { font-size: 12px; }
#tg .ap-hour-countdown { font-size: 14px; color: var(--gold); font-variant-numeric: tabular-nums; }
#tg .ap-hour-meaning { margin: 14px 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
#tg .ap-upcoming { display: grid; gap: 8px; margin-top: 8px; }
#tg .ap-hour-next { margin: 0; padding: 9px 12px; border: 1px solid var(--tg-feldrand); border-radius: 12px; background: rgba(11, 6, 24, 0.45); }
#tg .ap-hour-next summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; list-style: none; cursor: pointer; font-size: 14px; color: rgba(238, 230, 255, 0.9); }
#tg .ap-hour-next summary::-webkit-details-marker { display: none; }
#tg .ap-hour-next summary span:nth-child(2) { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
#tg .ap-hour-next p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--text-2); }
#tg .ap-ort { margin: 14px 0 0; font-size: 12.5px; color: var(--text-3); }
#tg .ap-hinweis { grid-column: 1 / -1; margin: 4px 4px 0; font-size: 12.5px; line-height: 1.6; color: var(--text-3); text-align: center; }
#tg .ap-laedt { padding: 30px 0; text-align: center; color: var(--text-3); font-size: 14px; }

/* ---------- So liest du deinen Tag: Einladung zum Mondkalender (Agnes-Ruf, mit lebendem Monatsblatt) ---------- */
.tg-ueber { margin-top: clamp(64px, 8vw, 110px); }
#tg .tg-ruf {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--rand-2);
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(50% 90% at 50% 0%, rgba(150, 100, 250, 0.4), rgba(150, 100, 250, 0) 72%), linear-gradient(180deg, #24104f, #120828);
  box-shadow: inset 0 1px 0 var(--tg-glanz), 0 30px 80px -40px rgba(4, 2, 10, 0.95);
}
/* sanft wandernder Goldschein und feine Sterne im Ruf */
#tg .tg-ruf::before {
  content: '';
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: radial-gradient(30% 30% at 30% 40%, rgba(232, 201, 106, 0.12), rgba(232, 201, 106, 0) 70%), radial-gradient(28% 28% at 72% 62%, rgba(160, 120, 255, 0.2), rgba(160, 120, 255, 0) 70%);
  animation: tg-ruf-schein 16s ease-in-out infinite alternate;
}
@keyframes tg-ruf-schein { from { transform: translate3d(-6%, -3%, 0) rotate(0deg); } to { transform: translate3d(6%, 4%, 0) rotate(8deg); } }
#tg .tg-ruf-sterne { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
#tg .tg-ruf-sterne i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: 0.5; animation: tg-funkeln var(--d, 4s) ease-in-out infinite; animation-delay: var(--v, 0s); }
@keyframes tg-funkeln { 0%, 100% { opacity: 0.15; transform: scale(0.7); } 50% { opacity: 0.9; transform: scale(1.1); } }
#tg .tg-ruf-text { min-width: 0; }
#tg .tg-ruf .tg-kicker { margin-bottom: 14px; }
#tg .tg-ruf h2 { margin: 0 0 16px; font-family: var(--tg-serif); font-size: clamp(2rem, 3.8vw, 2.9rem); font-weight: 400; line-height: 1.12; color: var(--text); text-wrap: balance; }
#tg .tg-ruf p { margin: 0 0 14px; font-size: 16px; line-height: 1.7; color: var(--text-2); }
#tg .tg-ruf-punkte { display: grid; gap: 10px; margin: 20px 0 28px; padding: 0; list-style: none; }
#tg .tg-ruf-punkte li { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 15.5px; color: var(--text); }
#tg .tg-ruf-punkte li::before { content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(232, 201, 106, 0.6); background: radial-gradient(circle at 50% 50%, var(--gold) 0 3px, rgba(232, 201, 106, 0) 4px), radial-gradient(circle at 35% 30%, rgba(232, 201, 106, 0.2), rgba(11, 6, 24, 0.3)); }
/* Glanzlauf ueber den Goldknopf */
#tg .tg-ruf .tg-knopf::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0)); transform: skewX(-20deg); animation: tg-glanz 4.5s ease-in-out 1.2s infinite; }
@keyframes tg-glanz { 0%, 62% { transform: translateX(0) skewX(-20deg); } 88%, 100% { transform: translateX(420%) skewX(-20deg); } }
/* Das lebende Monatsblatt: jeder Tag mit seinem Mond, heute golden, ein Lichtlauf zieht durch den Monat */
#tg .tg-ruf-bild { position: relative; min-width: 0; perspective: 1400px; }
#tg .tg-kal {
  position: relative;
  padding: 22px 20px 20px;
  border: 1px solid var(--rand-2);
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(48, 28, 98, 0.72), rgba(15, 9, 32, 0.86));
  box-shadow: inset 0 1px 0 var(--tg-glanz), 0 30px 60px -28px rgba(4, 2, 10, 0.9), 0 0 0 1px rgba(232, 201, 106, 0.06);
  transform: rotateY(-9deg) rotateX(4deg);
  transform-style: preserve-3d;
  animation: tg-kal-schweben 8s ease-in-out infinite;
}
@keyframes tg-kal-schweben { 0%, 100% { transform: rotateY(-9deg) rotateX(4deg) translateY(0); } 50% { transform: rotateY(-6deg) rotateX(3deg) translateY(-8px); } }
#tg .tg-kal-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 4px 14px; }
#tg .tg-kal-kopf b { font-family: var(--tg-serif); font-size: 22px; font-weight: 400; color: var(--text); }
#tg .tg-kal-kopf small { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
#tg .tg-kal-raster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
#tg .tg-kal-wt { padding: 0 0 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-align: center; text-transform: uppercase; color: var(--text-3); }
#tg .tg-kal-tag { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 5px; border-radius: 10px; font-size: 11px; line-height: 1; color: var(--text-2); }
#tg .tg-kal-tag canvas { display: block; width: 26px; height: 26px; }
#tg .tg-kal-tag.ist-leer { visibility: hidden; }
#tg .tg-kal-tag.ist-heute { color: #1b1404; font-weight: 700; background: linear-gradient(135deg, #f6e3a1 0%, #e8c96a 45%, #c9993c 100%); box-shadow: 0 6px 18px -6px rgba(232, 201, 106, 0.7); }
#tg .tg-kal-tag.ist-voll::after, #tg .tg-kal-tag.ist-neu::after { content: ''; position: absolute; top: 4px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px rgba(232, 201, 106, 0.9); }
#tg .tg-kal-tag::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(closest-side, rgba(167, 139, 250, 0.38), rgba(167, 139, 250, 0)); opacity: 0; }
#tg .tg-kal.ist-lauf .tg-kal-tag::before { animation: tg-kal-licht 7s ease-in-out infinite; animation-delay: calc(var(--i) * 0.07s); }
@keyframes tg-kal-licht { 0%, 14%, 100% { opacity: 0; } 4% { opacity: 1; } }
#tg .tg-kal-fuss { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 4px 0; padding: 12px 0 0; border-top: 1px solid var(--tg-linie-fein); font-size: 12px; color: var(--text-3); }
#tg .tg-kal-fuss span { display: inline-flex; align-items: center; gap: 6px; }
#tg .tg-kal-fuss i { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, #f6e3a1, #c9993c); }
#tg .tg-kal-fuss i.tg-punkt { width: 5px; height: 5px; background: var(--gold); box-shadow: 0 0 6px rgba(232, 201, 106, 0.9); }
#tg .tg-ruf-halo { position: absolute; left: 50%; top: 50%; z-index: -1; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(160, 120, 255, 0.3), rgba(160, 120, 255, 0) 72%); pointer-events: none; }

/* Dialog der Tagesenergie-Felder (App, Agnes-Farben) */
.at-chip-dialog { position: fixed; margin: auto; width: calc(100% - 32px); max-width: 460px; max-height: 75vh; overflow: auto; padding: 28px 24px; border: 1px solid rgba(214, 198, 255, 0.35); border-radius: 20px; background: linear-gradient(165deg, #22124a, #0d0722); color: #f4effe; font: 15.5px/1.65 'Hanken Grotesk', system-ui, sans-serif; box-shadow: 0 12px 50px rgba(0, 0, 0, 0.6); }
.at-chip-dialog::backdrop { background: rgba(6, 3, 13, 0.78); }
.at-chip-dialog h2 { margin: 0 0 14px; padding-right: 26px; font: 600 19px/1.4 'Hanken Grotesk', system-ui, sans-serif !important; color: #e8c96a !important; }
.at-chip-dialog p { margin: 0; color: rgba(238, 230, 255, 0.86); }
.at-chip-dialog button { position: absolute; right: 12px; top: 10px; width: 32px; height: 32px; border: 1px solid #d4a84f; border-radius: 50%; background: transparent; color: #e8c96a; font-size: 22px; line-height: 1; cursor: pointer; }

/* Ladezustand bis die Ephemeriden da sind */
#tg #astro-mondkalender:empty::after { content: ''; order: 4; display: block; height: 420px; margin-top: 70px; border: 1px solid var(--tg-kartenrand); border-radius: 24px; background: linear-gradient(110deg, rgba(34, 20, 70, 0.6) 30%, rgba(66, 40, 134, 0.6) 50%, rgba(34, 20, 70, 0.6) 70%) 0 0 / 300% 100%; animation: tg-laden 1.8s linear infinite; }
@keyframes tg-laden { to { background-position: -300% 0; } }

/* ---------- Bildschirmbreiten ---------- */
@media (max-width: 980px) {
  .tg-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 18px; text-align: center; }
  .tg-hero-mond { order: -1; max-width: 300px; margin: 0 auto 38px; }
  .tg-kicker { justify-content: center; }
  #tg .tg-lead { margin-left: auto; margin-right: auto; }
  .tg-fakten { margin-left: auto; margin-right: auto; }
  .tg-knoepfe { justify-content: center; }
  #tg .at-energy-card, #tg .at-article { grid-template-columns: minmax(0, 1fr); }
  #tg .at-kombi-mond, #tg .tg-energie-rechts, #tg .at-energy-card > .mk-info-panel { grid-column: 1; grid-row: auto; }
  #tg .at-energy-card .mk-energy-element { justify-content: center; margin-top: 26px; padding: 0; }
  #tg .mk-energy-wechsel { text-align: center !important; }
  #tg .at-tree { grid-row: auto; max-width: 260px; margin-bottom: 8px; }
  #tg .mk-td-header, #tg .mk-td-body { grid-column: 1; grid-row: auto; }
  #tg .mk-td-header { padding: 0; text-align: center; }
  #tg .mk-td-label, #tg .mk-td-date { text-align: center !important; }
  .tg-planeten-inhalt { grid-template-columns: minmax(0, 1fr); }
  #tg .tg-ruf { grid-template-columns: minmax(0, 1fr); text-align: center; }
  #tg .tg-ruf .tg-kicker { justify-content: center; }
  #tg .tg-ruf-punkte { justify-items: center; }
  #tg .tg-ruf-bild { max-width: 440px; width: 100%; margin: 0 auto; }
  #tg .tg-kal { transform: none; animation-name: tg-kal-schweben-flach; }
  @keyframes tg-kal-schweben-flach { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
}
@media (max-width: 640px) {
  .tg-fluss { width: calc(100% - 28px); }
  .tg-hero .tg-kicker { font-size: 11px; letter-spacing: 0.12em; gap: 0; }
  .tg-hero .tg-kicker::before { display: none; }
  .tg-fakten { grid-template-columns: minmax(0, 1fr); max-width: 340px; }
  #tg .tg-fakten li { text-align: left; }
  #tg h1.tg-titel { font-size: clamp(2.3rem, 11vw, 3rem); }
  .tg-hero-mond { max-width: 250px; }
  #tg .astro-moon-timeline-wrap { padding: 0 40px; }
  #tg .tg-pfeil { width: 34px; height: 34px; margin-top: -17px; }
  #tg .tg-pfeil-links { left: 0; }
  #tg .tg-pfeil-rechts { right: 0; }
  #tg .astro-moon-tl-day { flex-basis: 62px; }
  #tg .mk-wetter-2col { grid-template-columns: minmax(0, 1fr) !important; }
  #tg .ap-window { padding: 4px 14px 6px; }
  #tg .ap-disclosure { grid-template-columns: 58px minmax(0, 1fr) 24px; gap: 10px; min-height: 96px; }
  #tg .ap-name { font-size: 18px; }
  #tg .ap-teaser { font-size: 13.5px; }
  #tg .chip-icon { width: 50px !important; height: 50px !important; }
  #tg .at-article .mk-td-text { font-size: 15.5px !important; -webkit-line-clamp: 8; }
  #tg .tg-ruf { padding: 26px 18px; border-radius: 26px; }
  #tg .tg-kal { padding: 16px 12px 14px; }
  #tg .tg-kal-tag canvas { width: 22px; height: 22px; }
}

/* ---------- Handy und Tablet (Touch): Sparmodus wie auf den anderen Seiten ---------- */
@media (hover: none) and (pointer: coarse) {
  .tg-funken { display: none !important; }
  .tg-hero-text, .tg-hero-mond, .tg-land.ist-neu img { animation: none; }
  .tg-mond-hof { filter: none; }
  .tg-mond-kugel { filter: none; }
  #tg .astro-moon-tl-day:hover, #tg .mk-energy-chip:hover, #tg .tg-knopf:hover, #tg .tg-knopf-zwei:hover, #tg .tg-pfeil:hover { transform: none; }
  /* Mondkalender-Einladung: Monatsblatt steht, Lichtlauf nur einmal beim Hinscrollen (tg.js), Schein und Glanz ruhen */
  #tg .tg-ruf::before, #tg .tg-ruf-sterne i, #tg .tg-kal, #tg .tg-ruf .tg-knopf::after { animation: none !important; }
  #tg .tg-ruf .tg-knopf::after { display: none; }
  #tg .tg-kal.ist-lauf .tg-kal-tag::before { animation-iteration-count: 1 !important; }
}
@media (prefers-reduced-motion: reduce) {
  #tg *, #tg *::before, #tg *::after { animation: none !important; transition: none !important; }
}

/* Schimmer ruht auf Touch-Geraeten und bei "Bewegung reduzieren" */
@media (hover: none) and (pointer: coarse) { #tg h1.tg-titel em, #tg .tg-kopf h2 em, #tg .tg-ruf h2 em { animation: none; } }
@media (prefers-reduced-motion: reduce) { #tg h1.tg-titel em, #tg .tg-kopf h2 em, #tg .tg-ruf h2 em { animation: none; } }
