/* Astromantie Transite 1.3.0, 09.10.2026: Bedienfeld unter dem Radix-Rad (transite.js), Info-Fenster.
   Schriften nach DESIGN-STANDARD: Hanken Grotesk fuer Bedienung, Fraunces fuer die Zeitangabe.
   Filigraner violett-perlmuttfarbener Rahmen, Flaeche durchscheinend (Sternhimmel bleibt sichtbar),
   kein eigener Glaseffekt. Hell: body.astro-light-theme (Website). */

.arm-tr {
  --tr-akz: #cdbcff;
  --tr-akz-stark: #b79cff;
  --tr-gold: #e7c878;
  --tr-text: #f0e3c0;
  --tr-leise: rgba(240, 227, 192, 0.62);
  --tr-rahmen: rgba(205, 188, 255, 0.26);
  --tr-flaeche: rgba(14, 12, 38, 0.32);
  --tr-chip: rgba(205, 188, 255, 0.07);
  box-sizing: border-box;
  width: 100%;
  max-width: 560px;
  margin: 14px auto 6px;
  border: 1px solid var(--tr-rahmen);
  border-radius: 18px;
  background: var(--tr-flaeche);
  color: var(--tr-text);
  font-family: 'Hanken Grotesk', Inter, system-ui, sans-serif;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.arm-tr *, .arm-tr *::before, .arm-tr *::after { box-sizing: border-box; }
.arm-tr button { font: inherit; color: inherit; margin: 0; -webkit-appearance: none; appearance: none; }

/* Schalter */
.arm-tr .arm-tr-schalter {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 13px 16px; border: 0; background: none; cursor: pointer;
  text-align: left; border-radius: 18px; min-height: 0; box-shadow: none; text-transform: none; letter-spacing: normal;
}
.arm-tr .arm-tr-schalter:focus-visible { outline: 2px solid var(--tr-akz); outline-offset: -3px; }
.arm-tr-icon { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: var(--tr-akz); border: 1px solid var(--tr-rahmen); background: rgba(205, 188, 255, 0.06);
  transition: color .3s, border-color .3s, box-shadow .3s; }
.arm-tr-icon svg { width: 22px; height: 22px; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.arm-tr[data-an="1"] .arm-tr-icon { border-color: rgba(205, 188, 255, 0.55); box-shadow: 0 0 14px rgba(167, 139, 250, 0.28); }
.arm-tr[data-an="1"] .arm-tr-icon svg { transform: rotate(-120deg); }
.arm-tr-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.arm-tr-titel { font-size: 15.5px; font-weight: 600; letter-spacing: .01em; color: var(--tr-text); }
.arm-tr-unter { font-size: 12.5px; line-height: 1.35; color: var(--tr-leise); }
.arm-tr-knopf { flex: 0 0 auto; position: relative; width: 46px; height: 26px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(205, 188, 255, 0.3);
  transition: background .3s, border-color .3s; }
.arm-tr-knopf > span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #e9e1ff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), background .3s; }
.arm-tr[data-an="1"] .arm-tr-knopf { background: linear-gradient(90deg, #6d4fe0, #a78bfa); border-color: transparent; }
.arm-tr[data-an="1"] .arm-tr-knopf > span { transform: translateX(20px); background: #f6e7bd; box-shadow: 0 0 10px rgba(231, 200, 120, 0.6); }

/* Inhalt */
.arm-tr-koerper { padding: 2px 14px 14px; border-top: 1px solid rgba(205, 188, 255, 0.14); animation: arm-tr-auf .35s ease both; }
.arm-tr-koerper[hidden] { display: none; }
@keyframes arm-tr-auf { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.arm-tr-zeit { display: flex; align-items: center; gap: 8px; padding: 12px 0 10px; }
.arm-tr .arm-tr-pfeil, .arm-tr-kal {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; cursor: pointer; position: relative;
  border: 1px solid var(--tr-rahmen); background: var(--tr-chip); color: var(--tr-akz);
  transition: background .2s, border-color .2s; min-height: 0; box-shadow: none;
}
.arm-tr .arm-tr-pfeil svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.arm-tr-kal svg { width: 19px; height: 19px; pointer-events: none; }
.arm-tr .arm-tr-pfeil:active, .arm-tr-kal:active { background: rgba(205, 188, 255, 0.18); }
.arm-tr .arm-tr-pfeil:focus-visible, .arm-tr-kal:focus-within { outline: 2px solid var(--tr-akz); outline-offset: 2px; }
.arm-tr-kal input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
  border: 0; padding: 0; margin: 0; font-size: 16px; color-scheme: dark; }
.arm-tr-kal input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.arm-tr-wann { flex: 1 1 auto; min-width: 0; text-align: center; }
.arm-tr-rel { font-family: Fraunces, Georgia, serif; font-size: 23px; line-height: 1.15; color: #f6e7bd;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.arm-tr-datum { font-size: 12.5px; color: var(--tr-leise); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arm-tr.arm-tr-zieht .arm-tr-rel { color: #fff; text-shadow: 0 0 16px rgba(205, 188, 255, 0.55); }

.arm-tr-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; padding: 2px 0 4px; }
.arm-tr .arm-tr-chip {
  border: 1px solid var(--tr-rahmen); background: var(--tr-chip); color: var(--tr-text);
  border-radius: 999px; padding: 7px 13px; font-size: 13px; line-height: 1.1; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s; min-height: 0; box-shadow: none; text-transform: none; letter-spacing: normal;
}
.arm-tr .arm-tr-chip[aria-pressed="true"] { background: rgba(205, 188, 255, 0.2); border-color: var(--tr-akz); color: #fff; }
.arm-tr .arm-tr-chip:focus-visible { outline: 2px solid var(--tr-akz); outline-offset: 2px; }

.arm-tr-hinweis { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 10px 0 2px;
  font-size: 12.5px; line-height: 1.35; color: var(--tr-leise); text-align: center; }
.arm-tr-hinweis svg { flex: 0 0 auto; width: 16px; height: 16px; color: var(--tr-akz); animation: arm-tr-dreh 2.6s ease-in-out infinite; }
@keyframes arm-tr-dreh { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-50deg); } }
.arm-tr.arm-tr-gelernt .arm-tr-hinweis svg { animation: none; }

.arm-tr-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin: 14px 0 6px; padding-top: 12px; border-top: 1px solid rgba(205, 188, 255, 0.12); }
.arm-tr-kopf-titel { font-family: Fraunces, Georgia, serif; font-size: 15px; color: var(--tr-gold); }
.arm-tr-legende { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--tr-leise); }
.arm-tr-legende i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 6px; }
.arm-tr-legende i:first-child { margin-left: 0; }
.arm-tr-l-h { background: var(--tr-akz); box-shadow: 0 0 6px rgba(205, 188, 255, 0.6); }
.arm-tr-l-r { background: var(--tr-gold); }

.arm-tr-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.arm-tr-liste li { margin: 0; padding: 0; }
.arm-tr-liste li::before { content: none; }
.arm-tr .arm-tr-zeile {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr) auto; align-items: center; gap: 6px;
  padding: 8px 10px; border: 1px solid transparent; border-radius: 12px; background: none; cursor: pointer;
  font-size: 13.5px; text-align: left; transition: background .2s, border-color .2s; min-height: 0; box-shadow: none; text-transform: none; letter-spacing: normal;
}
.arm-tr .arm-tr-zeile:hover { background: rgba(205, 188, 255, 0.06); }
.arm-tr .arm-tr-zeile.ist-an { background: rgba(205, 188, 255, 0.12); border-color: rgba(205, 188, 255, 0.35); }
.arm-tr .arm-tr-zeile:focus-visible { outline: 2px solid var(--tr-akz); outline-offset: 1px; }
.arm-tr-t, .arm-tr-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arm-tr-t { color: var(--tr-akz); }
.arm-tr-n { color: var(--tr-gold); }
.arm-tr-a { text-align: center; font-family: serif; font-size: 16px; line-height: 1; }
.arm-tr-orb { text-align: right; font-variant-numeric: tabular-nums; color: var(--tr-text); white-space: nowrap; }
.arm-tr-orb small { display: block; font-size: 10.5px; color: var(--tr-leise); margin-top: 1px; }
.arm-tr-wahl { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px;
  padding: 8px 10px 6px; font-size: 14px; }
.arm-tr-wahl .arm-tr-t { font-weight: 600; }
.arm-tr-ort { color: var(--tr-leise); font-size: 13px; }
.arm-tr-leer { padding: 8px 10px; font-size: 13px; color: var(--tr-leise); }
.arm-tr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 1.3.0: Schalter "Alle Aspekte zeigen" im Kopf der Liste und Farblegende darunter */
.arm-tr-kopf { align-items: center; }
.arm-tr .arm-tr-alle {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  border: 1px solid var(--tr-rahmen); background: var(--tr-chip); color: var(--tr-text);
  border-radius: 999px; padding: 6px 12px 6px 9px; font-size: 12.5px; line-height: 1.1; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s; min-height: 0; box-shadow: none; text-transform: none; letter-spacing: normal;
}
.arm-tr .arm-tr-alle svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--tr-akz); }
.arm-tr .arm-tr-alle[aria-pressed="true"] { background: rgba(205, 188, 255, 0.2); border-color: var(--tr-akz); color: #fff;
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.25); }
.arm-tr .arm-tr-alle:focus-visible { outline: 2px solid var(--tr-akz); outline-offset: 2px; }
.arm-tr-farben { display: flex; flex-wrap: wrap; gap: 7px 16px; margin: 2px 0 10px; padding: 9px 12px; border-radius: 12px;
  background: rgba(205, 188, 255, 0.05); border: 1px solid rgba(205, 188, 255, 0.12); font-size: 12px; line-height: 1.4; color: var(--tr-leise); }
.arm-tr-farben:empty { display: none; }
.arm-tr-fg { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.arm-tr-fg-t { color: var(--tr-text); font-weight: 600; }
.arm-tr-f { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.arm-tr-f b { font-family: serif; font-weight: 400; color: var(--f); }
.arm-tr-f i { display: inline-block; flex: 0 0 auto; width: 16px; height: 0; border-top: 2.5px solid var(--f); border-radius: 2px; }
.arm-tr-f i.arm-tr-f-strich { border-top-style: dashed; }
.arm-tr-f i.arm-tr-f-ring { width: 9px; height: 9px; border: 2px solid var(--f); border-radius: 50%; }
.arm-tr-fg-hr { flex-basis: 100%; gap: 5px; font-size: 11.5px; }
.arm-tr-fg-hr i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 8px; }
.arm-tr-fg-hr i:first-child { margin-left: 0; }
body.astro-light-theme .arm-tr .arm-tr-alle[aria-pressed="true"] { background: rgba(95, 67, 184, 0.14); color: #2a1a66; box-shadow: none; }
body.astro-light-theme .arm-tr-farben { background: rgba(95, 67, 184, 0.04); border-color: rgba(95, 67, 184, 0.14); }
@media (max-width: 380px) {
  .arm-tr .arm-tr-alle { padding: 6px 10px 6px 8px; font-size: 12px; }
  .arm-tr-farben { gap: 6px 12px; padding: 8px 10px; }
}

/* Info-Fenster (1.1.0): Form wie die Tooltips der Radix (#arm-tooltip, #astro-horoskop-tooltip),
   Transit-Planet in Lila, Rad-Seite in Gold */
#arm-tr-tip {
  position: fixed; z-index: 200001; pointer-events: none; left: -9999px; top: 0;
  padding: 8px 14px; border-radius: 8px; max-width: calc(100vw - 16px); white-space: nowrap;
  font-family: 'Hanken Grotesk', Inter, system-ui, sans-serif; font-size: 12.5px; line-height: 1.5;
  background: rgba(14, 11, 34, 0.95); border: 1px solid rgba(205, 188, 255, 0.35); color: #f0e3c0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease;
}
#arm-tr-tip.ist-an { opacity: 1; transform: none; }
#arm-tr-tip strong { font-weight: 600; }
#arm-tr-tip .arm-tr-tip-t { color: #cdbcff; }
#arm-tr-tip .arm-tr-tip-n { color: #e8c96a; }
#arm-tr-tip b { font-family: serif; font-weight: 400; }
#arm-tr-tip .arm-tr-tip-marke { display: inline-block; margin-left: 8px; padding: 0 6px; border-radius: 6px; vertical-align: 1px;
  font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; line-height: 16px;
  color: #cdbcff; border: 1px solid rgba(205, 188, 255, 0.4); }
#arm-tr-tip .arm-tr-tip-asp { color: rgba(240, 227, 192, 0.85); }
#arm-tr-tip .arm-tr-tip-q { color: rgba(240, 227, 192, 0.6); }
body.astro-light-theme #arm-tr-tip { background: rgba(255, 255, 255, 0.97); border-color: rgba(95, 67, 184, 0.25); color: #2a2018; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); }
body.astro-light-theme #arm-tr-tip .arm-tr-tip-t, body.astro-light-theme #arm-tr-tip .arm-tr-tip-marke { color: #5f43b8; border-color: rgba(95, 67, 184, 0.35); }
body.astro-light-theme #arm-tr-tip .arm-tr-tip-n { color: #a07c2a; }
body.astro-light-theme #arm-tr-tip .arm-tr-tip-asp { color: rgba(42, 32, 24, 0.85); }
body.astro-light-theme #arm-tr-tip .arm-tr-tip-q { color: rgba(74, 61, 36, 0.7); }
@media (prefers-reduced-motion: reduce) { #arm-tr-tip { transition: none; } }

/* 1.2.0: Aspekte eines angetippten Transit-Planeten blenden weich ein */
svg.arm-svg-chart .arm-tr-asp.arm-tr-neu { animation: arm-tr-wahl .45s ease both; }
@keyframes arm-tr-wahl { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { svg.arm-svg-chart .arm-tr-asp.arm-tr-neu { animation: none; } }

/* 1.3.0: Bei "Alle Aspekte zeigen" treten die eigenen Aspekte des Rades weiter zurueck */
svg.arm-svg-chart.arm-tr-voll [data-arm-tr-d] { opacity: 0.1 !important; }

/* Rad: Greifhand im Ring, kein Textmarkieren beim Ziehen */
svg.arm-svg-chart .arm-tr-asp-treffer { cursor: help; }
svg.arm-svg-chart .arm-tr-griff, svg.arm-svg-chart .arm-tr-treffer { cursor: grab; touch-action: none; }
svg.arm-svg-chart.arm-tr-zieht, svg.arm-svg-chart.arm-tr-zieht * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }

@media (max-width: 380px) {
  .arm-tr-koerper { padding: 2px 10px 12px; }
  .arm-tr-rel { font-size: 20px; }
  .arm-tr .arm-tr-chip { padding: 7px 11px; font-size: 12.5px; }
  .arm-tr .arm-tr-zeile { font-size: 12.5px; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) auto; padding: 7px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .arm-tr *, .arm-tr *::before { animation: none !important; transition: none !important; }
}

/* Website, helles Design */
body.astro-light-theme .arm-tr {
  --tr-akz: #5f43b8;
  --tr-akz-stark: #4c32a3;
  --tr-gold: #9a7425;
  --tr-text: #2a2018;
  --tr-leise: rgba(74, 61, 36, 0.72);
  --tr-rahmen: rgba(95, 67, 184, 0.26);
  --tr-flaeche: rgba(255, 255, 255, 0.55);
  --tr-chip: rgba(95, 67, 184, 0.05);
}
body.astro-light-theme .arm-tr-rel { color: #3d2c12; }
body.astro-light-theme .arm-tr .arm-tr-chip[aria-pressed="true"] { background: rgba(95, 67, 184, 0.14); color: #2a1a66; }
body.astro-light-theme .arm-tr-knopf { background: rgba(95, 67, 184, 0.12); }
body.astro-light-theme .arm-tr-knopf > span { background: #fff; }
body.astro-light-theme .arm-tr-kal input { color-scheme: light; }
body.astro-light-theme .arm-tr.arm-tr-zieht .arm-tr-rel { color: #2a1a66; text-shadow: none; }
