/* =====================================================================
   Tree Coaching – Erstgespräch (baut auf style.css + quiz.css auf)
   ===================================================================== */
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Intro */
.eg-hero { font-size: clamp(2.6rem, 12.5vw, 4rem); line-height: .9; }
.eg-subchip { display: inline-flex; align-self: flex-start; margin: 14px 0 4px; padding: 6px 14px; border-radius: 999px; background: var(--leaf-tint); border: 1px solid var(--line-strong); color: var(--leaf); font-weight: 600; font-size: .92rem; }
.eg-intro .lead { margin-top: 12px; }
.eg-quizhint { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md); border: 1px dashed var(--line-strong); background: rgba(232, 163, 61, .07); font-size: .92rem; }
.eg-timeline { display: grid; gap: 0; margin-top: 22px; }
.eg-timeline li { position: relative; display: flex; gap: 14px; align-items: flex-start; padding-bottom: 16px; }
.eg-timeline li:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 2px; width: 2px; background: linear-gradient(var(--leaf-deep), rgba(123, 149, 89, .15)); }
.eg-tl-dot { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--line-strong); font-size: 1.1rem; }
.eg-timeline strong { display: block; font-weight: 600; }
.eg-timeline span:not(.eg-tl-dot) { font-size: .88rem; color: var(--muted); }
.eg-intro .qz-cta { margin-top: 18px; }
.eg-walink { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }

/* Seite etwas breiter als das Quiz (Formular) */
.eg-page .qz-main { max-width: 680px; }
.eg-page input, .eg-page select, .eg-page textarea { color-scheme: dark; }
.eg-testbanner { padding: 8px 12px; border-radius: 10px; background: rgba(232, 163, 61, .14); border: 1px dashed var(--amber); font-size: .84rem; font-weight: 600; }
.eg-brief { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; padding: 16px; border-radius: var(--r-md); background: rgba(26, 43, 34, .72); border: 1px solid var(--line); }
.eg-brief p { font-size: .98rem; line-height: 1.5; }

/* ---------- Fragebogen: Abschnitt ---------- */
.eg-sechead { display: flex; align-items: center; gap: 14px; }
.eg-tree { flex: none; width: 74px; }
.eg-tree svg { display: block; width: 100%; height: auto; overflow: visible; }
.eg-tree .trunk { fill: none; stroke: #8A6A45; stroke-width: 4; stroke-linecap: round; }
.eg-tree .leaf { fill: transparent; stroke: var(--line-strong); stroke-width: 1.6; transition: fill .4s, stroke .4s; }
.eg-tree .leaf.done { fill: var(--leaf); stroke: var(--leaf); }
.eg-tree .leaf.now { fill: var(--amber); stroke: var(--amber); transform-box: fill-box; transform-origin: center; animation: egLeaf 1.8s ease-in-out infinite; }
@keyframes egLeaf { 50% { transform: scale(1.15); } }
.eg-secnr { font: 700 .74rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--leaf); margin-bottom: 6px; }
.eg-sectitle { font-size: clamp(1.7rem, 7.6vw, 2.4rem); }
.eg-why { padding-left: 14px; border-left: 3px solid var(--leaf-deep); color: var(--muted); font-size: .96rem; font-style: italic; }
.eg-pflicht { font-size: .8rem; color: var(--faint); margin-top: -8px; }

.eg-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.eg-fields[hidden] { display: none; }
.eg-f { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(26, 43, 34, .5); }
.eg-f[hidden] { display: none; }
.eg-f.eg-sub { padding: 0; border: 0; background: none; }
fieldset.eg-f > legend { float: left; width: 100%; padding: 0; margin-bottom: 8px; }
fieldset.eg-f > legend + * { clear: both; }
.eg-label { font-weight: 600; font-size: .98rem; color: var(--fg); line-height: 1.35; }
.eg-req { color: var(--amber); }
.eg-fromquiz { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(232, 163, 61, .14); color: var(--amber); font-size: .7rem; font-weight: 700; letter-spacing: .04em; vertical-align: 2px; }
.eg-help { font-size: .84rem; color: var(--muted); margin-top: -4px; }
.eg-ferr { color: #FFB4A2; font-size: .86rem; font-weight: 500; }
.eg-ferr::before { content: "⚠ "; }
.eg-f.invalid { border-color: #E8806A; background: rgba(232, 128, 106, .06); }
.eg-f.invalid .qz-input { border-color: #E8806A; }
.eg-appear { animation: qzUp .3s var(--ease) both; }
.eg-area { min-height: 92px; resize: vertical; line-height: 1.45; }
.qz-input.eg-select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--leaf) 50%), linear-gradient(135deg, var(--leaf) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.eg-numrow { display: flex; align-items: center; gap: 10px; }
.eg-zahl { max-width: 150px; font-variant-numeric: tabular-nums; }
.eg-unit { color: var(--muted); font-weight: 600; }
.eg-date { max-width: 240px; }
.eg-agebox { display: grid; gap: 12px; }
.eg-agebox:empty { display: none; }
.eg-age { color: var(--leaf); font-weight: 600; font-size: .9rem; }
.eg-warn { padding: 14px 16px; border-radius: var(--r-md); border: 1px solid rgba(232, 163, 61, .5); background: rgba(232, 163, 61, .08); font-size: .95rem; }
.eg-crit { padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(232, 163, 61, .55); background: rgba(232, 163, 61, .1); font-size: .88rem; }
.eg-crit[hidden] { display: none; }
@media (min-width: 600px) {
  .eg-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eg-fields > * { grid-column: 1 / -1; }
  .eg-fields > .eg-halb { grid-column: auto; }
}

/* Chips (antippen) */
.eg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.eg-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 15px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--fg); font: 500 .94rem/1.2 var(--f-body); cursor: pointer; text-align: left;
  transition: border-color .15s, background .15s, transform .15s;
}
.eg-chip:hover { border-color: var(--leaf); }
.eg-chip:active { transform: scale(.96); }
.eg-chip[aria-checked="true"], .eg-chip[aria-pressed="true"] { background: var(--leaf); border-color: var(--leaf); color: #10200F; font-weight: 600; }
.eg-chip.pop { animation: qzPop .28s var(--ease); }
.eg-chip-text small { display: block; font-size: .74rem; color: var(--amber); font-weight: 600; }
.eg-chip[aria-checked="true"] .eg-chip-text small { color: #3B2A0C; }
.eg-chips-big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eg-chips-big .eg-chip { border-radius: 16px; min-height: 60px; padding: 12px 14px; }
.eg-chip-emoji { font-size: 1.25rem; line-height: 1; }

/* Skala 1–10 */
.eg-scale { display: grid; grid-template-columns: repeat(var(--n, 10), minmax(0, 1fr)); gap: 4px; }
.eg-sbtn { min-height: 44px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--fg); font: 700 .95rem/1 var(--f-body); font-variant-numeric: tabular-nums; cursor: pointer; padding: 0; transition: all .15s; }
.eg-sbtn:hover { border-color: var(--leaf); }
.eg-sbtn.lo { background: rgba(155, 190, 119, .28); border-color: rgba(155, 190, 119, .5); }
.eg-sbtn[aria-checked="true"] { background: var(--amber); border-color: var(--amber); color: var(--on-amber); transform: scale(1.08); }
.eg-scale-labels { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: .78rem; color: var(--muted); }
.eg-scale-labels span:last-child { text-align: right; }

/* Monat/Jahr */
.eg-mj { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.eg-mj .eg-chip { grid-column: 1 / -1; justify-self: start; }

/* Gruppe „Für Fortgeschrittene“ */
.eg-group { margin: 0; padding: 16px; border-radius: var(--r-md); border: 1.5px dashed var(--amber); background: rgba(232, 163, 61, .05); display: grid; gap: 12px; min-width: 0; }
.eg-group[hidden] { display: none; }
.eg-group-title { float: left; width: 100%; padding: 0; font: 900 italic 1.1rem/1 var(--f-display); text-transform: uppercase; color: var(--amber); }
.eg-group-title + * { clear: both; }
.eg-group .eg-f { background: rgba(14, 23, 19, .5); }

/* Liste (Verletzungen) */
.eg-list { display: grid; gap: 10px; }
.eg-list-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 14px; background: rgba(14, 23, 19, .55); border: 1px solid var(--line); }
@media (min-width: 600px) { .eg-list-item { grid-template-columns: 1fr 1fr; } .eg-list-item > * { grid-column: 1 / -1; } .eg-list-item > .eg-halb { grid-column: auto; } }
.eg-list-title { font: 700 .74rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.eg-list-del { justify-self: start; background: none; border: 0; padding: 0; cursor: pointer; color: #FFB4A2; }
.eg-list-add { justify-self: start; margin-top: 10px; }

/* Körperfett-Bilder */
.eg-bf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 600px) { .eg-bf { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.eg-bf-tile { display: grid; justify-items: center; gap: 6px; padding: 10px 6px 8px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--fg); cursor: pointer; font: inherit; transition: all .15s; }
.eg-bf-tile:hover { border-color: var(--leaf); }
.eg-bf-tile[aria-checked="true"] { border-color: var(--amber); background: rgba(232, 163, 61, .12); box-shadow: 0 0 0 3px rgba(232, 163, 61, .18); }
.eg-bf-tile b { font: 800 italic .95rem/1 var(--f-display); }
.eg-bf-art { width: 100%; max-width: 70px; }
.eg-bf-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.eg-bf-art .body, .eg-bf-art .head { fill: rgba(155, 190, 119, .22); stroke: var(--leaf); stroke-width: 1.6; }
.eg-bf-art .det { fill: none; stroke: var(--leaf); stroke-width: 1.2; stroke-linecap: round; opacity: .85; }
.eg-bf-art .det.soft { opacity: .45; }
.eg-bf-tile[aria-checked="true"] .body, .eg-bf-tile[aria-checked="true"] .head { fill: rgba(232, 163, 61, .25); stroke: var(--amber); }
.eg-bf-tile[aria-checked="true"] .det { stroke: var(--amber); }

/* Gesundheit */
.eg-art9 { border-color: var(--line-strong); }
.eg-skipnote, .eg-healthnote p { color: var(--muted); font-size: .94rem; }
.eg-skipnote[hidden] { display: none; }
.eg-healthnote { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--r-md); border: 1px dashed var(--line-strong); background: var(--leaf-tint); }
.eg-healthnote span { font-size: 1.5rem; line-height: 1; }

/* Weiter-Leiste */
.eg-dock { position: static; display: grid; gap: 10px; background: none; padding-top: 6px; }
.eg-saved { justify-self: center; font-size: .76rem; color: var(--faint); opacity: .6; }
.eg-saved.on { animation: egSaved 1.2s ease; }
@keyframes egSaved { 0% { color: var(--leaf); opacity: 1; } 100% { color: var(--faint); opacity: .6; } }
.eg-inline { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 600; text-decoration: underline; }
.eg-book[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* Termin: Tagesleiste (Handy) */
.eg-cal { display: grid; gap: 16px; }
.eg-days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; margin-inline: -2px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.eg-day {
  flex: none; scroll-snap-align: start; width: 62px; min-height: 76px; display: grid; justify-items: center; align-content: center; gap: 2px;
  border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--fg); cursor: pointer; font: inherit; transition: all .2s var(--ease);
}
.eg-day span { font-size: .74rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.eg-day b { font: 900 italic 1.5rem/1 var(--f-display); }
.eg-day small { font-size: .7rem; color: var(--faint); }
.eg-day:hover:not([disabled]) { border-color: var(--leaf); }
.eg-day[aria-selected="true"] { background: var(--leaf); border-color: var(--leaf); color: #10200F; }
.eg-day[aria-selected="true"] span, .eg-day[aria-selected="true"] small { color: #10200F; }
.eg-day[disabled] { opacity: .32; cursor: not-allowed; }

/* Termin: Monatsansicht (Desktop) */
.eg-month { display: none; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.eg-wd { text-align: center; font: 700 .72rem/1 var(--f-display); letter-spacing: .1em; color: var(--faint); padding-bottom: 4px; }
.eg-mday { aspect-ratio: 1; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--fg); cursor: pointer; font: inherit; display: grid; place-content: center; transition: all .2s; }
.eg-mday span { display: none; }
.eg-mday b { font: 800 italic 1.1rem/1 var(--f-display); }
.eg-mday:hover:not([disabled]) { border-color: var(--leaf); }
.eg-mday[aria-selected="true"] { background: var(--leaf); border-color: var(--leaf); color: #10200F; }
.eg-mday[disabled] { opacity: .28; cursor: not-allowed; border-style: dashed; }
@media (min-width: 700px) and (hover: hover) {
  .eg-days { display: none; }
  .eg-month { display: grid; }
}

.eg-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.eg-slot { min-height: 52px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--fg); font: 700 1.05rem/1 var(--f-body); font-variant-numeric: tabular-nums; cursor: pointer; transition: all .2s var(--ease); }
.eg-slot:hover { border-color: var(--leaf); }
.eg-slot[aria-selected="true"] { background: var(--amber); border-color: var(--amber); color: var(--on-amber); box-shadow: 0 0 0 5px rgba(232, 163, 61, .16); }
.eg-slot.pop { animation: qzPop .3s var(--ease); }
.eg-chosen { min-height: 1.4em; color: var(--leaf); font-weight: 600; }

/* Kontakt & Bestätigung */
.eg-kontakt-head { display: flex; gap: 14px; align-items: flex-start; }
.eg-kontakt-head .qz-qhead { min-width: 0; }
.eg-kontakt-head .qz-hint { color: var(--leaf); font-weight: 600; }
.eg-kalbadge { flex: none; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: var(--surface); border: 1.5px solid var(--leaf); }
.eg-confirm { display: grid; gap: 14px; padding: 18px; border-radius: var(--r-lg); border: 1.5px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(140deg, var(--leaf) 0%, rgba(155, 190, 119, .2) 45%, rgba(232, 163, 61, .7) 100%) border-box; }
.eg-confirm-row { display: flex; gap: 14px; align-items: center; }
.eg-confirm-row strong { display: block; font: 900 italic 1.35rem/1.05 var(--f-display); text-transform: uppercase; }
.eg-confirm-row span:not(.eg-kalbadge) { color: var(--muted); font-size: .92rem; }

/* Quiz-Danke: Erstgespräch-Pitch (wird in quiz.js benutzt) */
