/* App-Demo (demo.html). Seite im Look der Website, das Handy innen im Look der App:
   Die Farben unter .fa sind die dunklen Tokens aus forge/design-system/tokens.css. */

/* ---------- Seite ---------- */
.page-demo .demo { padding: 118px 0 80px; }
.demo-grid {
  display: grid;
  /* Textspalte schmal, damit das Handy Platz hat; beides zusammen mittig. */
  grid-template-columns: minmax(0, 430px) auto;
  grid-template-areas: "intro stage" "flows stage" "foot stage";
  grid-template-rows: auto auto 1fr;
  justify-content: center;
  column-gap: clamp(40px, 7vw, 110px);
  row-gap: 22px;
  align-items: start;
}
.demo-intro { grid-area: intro; }
.demo-flows { grid-area: flows; }
.demo-stage { grid-area: stage; }
.demo-foot { grid-area: foot; }

.demo-intro h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; margin-top: 18px; }
.demo-lead { color: var(--fg-soft); font-size: 1.08rem; margin-top: 14px; max-width: 34em; }

.demo-flows { display: grid; gap: 10px; }
.df {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px;
  padding: 12px 16px; border-radius: 16px; text-align: left; cursor: pointer;
  font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--border-2);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.df:hover { border-color: rgba(255, 255, 255, 0.28); }
.df:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.df[aria-pressed="true"] { border-color: var(--accent-hi); background: rgba(31, 212, 154, 0.08); }
.df-n {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border-2); font-weight: 700; font-size: 0.9rem; color: var(--fg-soft);
}
.df[aria-pressed="true"] .df-n { background: var(--accent-hi); border-color: var(--accent-hi); color: #03150e; }
.df-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.df-t b { font-size: 1rem; }
.df-t small { color: var(--muted); font-size: 0.86rem; margin-top: 2px; }
.df-ok {
  width: 20px; height: 20px; margin-left: auto; flex: none; opacity: 0; color: var(--accent-hi);
  fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  transition: opacity 0.3s ease;
}
.df.is-done .df-ok { opacity: 1; }

.demo-foot { display: grid; gap: 18px; }
.demo-note {
  display: flex; gap: 12px; align-items: flex-start; max-width: 36em; text-align: left;
  padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border-2);
  color: var(--fg-soft); font-size: 0.92rem; line-height: 1.55;
}
.demo-note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent-hi); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demo-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* Handy-Rahmen */
.demo-stage { position: relative; scroll-margin-top: 78px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.demo-stage::before {
  content: ""; position: absolute; z-index: -1; width: 340px; height: 340px; top: 45%; left: 50%;
  transform: translate(-50%, -50%); border-radius: 50%; background: var(--accent-glow); filter: blur(80px);
}
.demo-phone {
  /* Höhe folgt dem Fenster, Breite folgt der Höhe: Seitenverhältnis wie ein iPhone (393 × 852). */
  --ph: clamp(520px, calc(100vh - 260px), 680px);
  position: relative; isolation: isolate; width: calc(var(--ph) * 0.4615 + 22px); height: calc(var(--ph) + 22px); padding: 11px; border-radius: 52px;
  background: linear-gradient(160deg, #2a3531, #0b110f);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), inset 0 0 0 2px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
/* Der Bildschirm hat eine feste Designgröße (360 × 780) und wird als Ganzes skaliert; --k setzt demo.js
   aus der Rahmenhöhe. So werden Schrift, Abstände und Bilder mit dem Handy kleiner oder größer. */
.demo-phone .fa { width: 360px; height: 780px; border-radius: 41px; transform: scale(var(--k, 1)); transform-origin: 0 0; }
.demo-island { position: absolute; top: 21px; left: 50%; z-index: 90; width: 96px; height: 28px; border-radius: 14px; background: #000; transform: translateX(-50%); pointer-events: none; }
.demo-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.82rem; }
.demo-badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 940px) {
  .page-demo .demo { padding: 100px 0 64px; }
  .demo-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "flows" "stage" "foot"; grid-template-rows: none; row-gap: 16px; }
  .demo-flows { grid-template-columns: 1fr 1fr; gap: 8px; }
  .df { min-height: 56px; padding: 10px 12px; gap: 10px; }
  .df-n { width: 26px; height: 26px; font-size: 0.82rem; }
  .df-t b { font-size: 0.9rem; }
  .df-t small { display: none; }
  .df-ok { width: 16px; height: 16px; }
  .demo-foot { text-align: center; justify-items: center; }
  .demo-cta { justify-content: center; }
}
@media (max-width: 380px) {
  .demo-flows { grid-template-columns: 1fr; }
}

/* Leiste über der App, nur am Handy sichtbar */
.demo-bar { display: none; }

/* Handy: Die App füllt den Bildschirm, als wäre man in der App. Oben Ablauf-Reiter und „Beenden“. */
@media (max-width: 940px) {
  html:has(.is-demo-page), .is-demo-page { overflow: hidden; }
  .is-demo-page > header, .is-demo-page > footer, .demo-intro, .demo-flows, .demo-foot { display: none; }
  /* Hinter der App bleibt nichts, was scrollen könnte (iOS scrollt trotz overflow: hidden). */
  html:has(.is-demo-page), .is-demo-page { overscroll-behavior: none; }
  .page-demo .demo { padding: 0; }
  .demo-stage { position: fixed; inset: 0; z-index: 300; height: 100dvh; gap: 0; align-items: stretch; background: #0e1113; }
  .demo-stage::before, .demo-badge, .demo-island { display: none; }
  .demo-bar {
    display: flex; flex: none; align-items: center; gap: 8px;
    padding: calc(env(safe-area-inset-top) + 8px) max(10px, env(safe-area-inset-right)) 8px max(10px, env(safe-area-inset-left));
    background: #0b0e10; border-bottom: 1px solid #2a3036;
  }
  .demo-tabs { display: flex; flex: 1; min-width: 0; gap: 4px; padding: 3px; border-radius: 999px; background: #171b1e; }
  .dt {
    display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 36px; padding: 0 6px;
    border: 0; border-radius: 999px; background: none; color: #8b949e; font: inherit; font-size: 0.8rem; font-weight: 600; white-space: nowrap; cursor: pointer;
  }
  .dt[aria-pressed="true"] { background: #2a3036; color: #e7eaed; }
  .dt:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 1px; }
  .dt-ok { display: none; width: 13px; height: 13px; flex: none; color: #3ecf8e; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
  .dt.is-done .dt-ok { display: block; }
  .demo-exit {
    display: inline-flex; flex: none; align-items: center; gap: 5px; min-height: 42px; padding: 0 13px; border-radius: 999px;
    border: 1px solid #2a3036; background: #171b1e; color: #e7eaed; font-size: 0.82rem; font-weight: 600; text-decoration: none;
  }
  .demo-exit svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
  .demo-exit:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
  .demo-phone { flex: 1; min-height: 0; width: 100%; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .demo-phone { height: auto; }
  .demo-phone .fa { width: auto; height: 100%; border-radius: 0; transform: none; padding-bottom: env(safe-area-inset-bottom); }
  .demo-phone .a-status, .demo-phone .a-home-ind { display: none; }
  .demo-phone .is-note .a-tcard { top: 10px; }
}
@media (max-width: 360px) { .dt { font-size: 0.74rem; padding: 0 4px; } .demo-exit { padding: 0 10px; } }

/* ======================================================================
   App im Handy. Werte aus forge/design-system (dunkles Theme).
   ====================================================================== */
.fa {
  --a-bg: #0e1113; --a-surface: #171b1e; --a-s2: #1f2429; --a-border: #2a3036;
  --a-accent: #3ecf8e; --a-on-accent: #06150e; --a-coach: #1f2429; --a-user: #213028;
  --a-muted: #8b949e; --a-fg: #e7eaed; --a-carbs: #f59e0b; --a-fat: #60a5fa;
  --a-red: oklch(70.4% 0.191 22.216); --a-emerald: oklch(69.6% 0.17 162.48);
  --a-t15: rgba(62, 207, 142, 0.15); --a-t10: rgba(62, 207, 142, 0.1); --a-t5: rgba(62, 207, 142, 0.05);
  --a-ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  height: var(--ph); border-radius: 41px; background: var(--a-bg); color: var(--a-fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px; line-height: 1.43; letter-spacing: normal; text-align: left;
  container-type: size; isolation: isolate; -webkit-tap-highlight-color: transparent;
}
@media (max-width: 940px) { .fa { border-radius: 38px; } }
:where(.fa) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; text-align: inherit; cursor: default; }
:where(.fa) h2, :where(.fa) p { margin: 0; }
.fa .ic { flex: none; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fa b { font-weight: 600; }
.a-acc { color: var(--a-accent); }
.a-mut { color: var(--a-muted); }
.a-strong { font-weight: 500; }
.a-center { text-align: center; }

.a-status { position: relative; z-index: 20; display: flex; flex: none; align-items: center; justify-content: space-between; height: 46px; padding: 2px 30px 0 34px; font-size: 15px; font-weight: 600; }
.a-sicons { display: inline-flex; align-items: center; gap: 5px; }
.a-sicons svg { width: 17px; height: 13px; display: block; }
.a-sicons .a-batt { width: 25px; height: 14px; }
.a-view { position: relative; display: flex; flex: 1; min-height: 0; flex-direction: column; }
.a-layer { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
.a-layer > * { pointer-events: auto; }
.a-home-ind { position: absolute; bottom: 7px; left: 50%; z-index: 80; width: 128px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.55); transform: translateX(-50%); pointer-events: none; }

.a-scr { position: relative; display: flex; flex: 1; min-height: 0; flex-direction: column; animation: aFade 0.28s ease both; }
.a-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.a-scroll::-webkit-scrollbar { display: none; }
.a-pad { display: flex; flex-direction: column; gap: 12px; padding: 6px 16px 112px; }
.a-pad > * { flex-shrink: 0; }
.anim { animation: aUp 0.4s var(--a-ease) both; }
@keyframes aUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes aFade { from { opacity: 0; } to { opacity: 1; } }

/* Tippziel der Demo */
.fa .is-target { position: relative; z-index: 3; cursor: pointer; outline: 2px solid var(--a-accent); outline-offset: 3px; animation: aPulse 1.6s ease-in-out infinite; }
.fa .is-target:focus-visible { outline: 3px solid #fff; }
.fa .is-target.is-flash { animation: aPulse 1.6s ease-in-out infinite, aShake 0.5s ease; }
@keyframes aPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(62, 207, 142, 0.55); } 55% { box-shadow: 0 0 0 10px rgba(62, 207, 142, 0); } }
@keyframes aShake { 25% { translate: -3px 0; } 60% { translate: 3px 0; } }
.fa .is-target:active { scale: 0.96; }

/* Gemeinsame Teile */
.a-title { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.025em; }
.a-cap { font-size: 12px; color: var(--a-muted); }
.a-rb { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--a-border); background: var(--a-s2); color: var(--a-fg); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.a-red { color: var(--a-red); }
.a-hb { display: flex; gap: 8px; }
.a-primary { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border-radius: 1.1rem; background: var(--a-accent); color: var(--a-on-accent); font-weight: 600; font-size: 15px; }
.a-c3 { border-radius: 1.6rem; border: 1px solid var(--a-border); background: var(--a-s2); padding: 18px; }

/* Startseite */
.a-dh { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.a-over { font-size: 12px; text-transform: uppercase; letter-spacing: 0.025em; color: var(--a-muted); }
.a-streak { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 3px 10px; border-radius: 999px; background: var(--a-t15); color: var(--a-accent); font-size: 12px; font-weight: 600; }
.a-nutri { display: flex; align-items: center; gap: 16px; }
.a-ring { position: relative; flex: none; width: 112px; height: 112px; }
.a-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.a-ring circle { fill: none; stroke-width: 11; }
.a-ring-bg { stroke: var(--a-border); }
.a-ring-fg { stroke: var(--a-accent); stroke-linecap: round; transition: stroke-dasharray 0.9s var(--a-ease); }
.a-ring-v { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.a-ring-v b { font-size: 24px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.a-ring-v small { margin-top: 2px; font-size: 10px; color: var(--a-muted); }
.a-mbs { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 10px; }
.a-mb-h { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; }
.a-mb-h span { color: var(--a-muted); }
.a-mb-h b { font-weight: 500; font-variant-numeric: tabular-nums; }
.a-mb-t { height: 8px; margin-top: 4px; overflow: hidden; border-radius: 999px; background: var(--a-border); }
.a-mb-t i { display: block; height: 100%; border-radius: 999px; transition: width 0.7s ease-out; }
.a-water { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--a-border); }
.a-pill { display: inline-flex; align-items: center; gap: 4px; height: 32px; margin-left: auto; padding: 0 12px; border-radius: 999px; background: var(--a-surface); font-weight: 500; }
.a-lab { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.025em; color: var(--a-muted); }
.a-trow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.a-tname { font-size: 18px; font-weight: 600; line-height: 1.4; }
.a-start { display: flex; align-items: center; gap: 6px; padding: 12px 20px; border-radius: 1.1rem; background: var(--a-accent); color: var(--a-on-accent); font-weight: 600; }
.a-coach { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; overflow: hidden; padding: 18px; border-radius: 1.6rem; background: var(--a-accent); color: var(--a-on-accent); box-shadow: 0 10px 15px -3px rgba(62, 207, 142, 0.2), 0 4px 6px -4px rgba(62, 207, 142, 0.2); }
.fa .a-coach-bg { position: absolute; right: -12px; top: -12px; opacity: 0.15; pointer-events: none; }
.a-coach-ic { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 1.1rem; background: rgba(6, 21, 14, 0.15); }
.a-coach-t { display: flex; flex: 1; flex-direction: column; }
.a-coach-t b { font-size: 18px; }
.a-coach-t small { font-size: 14px; opacity: 0.8; }
.fa .a-coach-ch { opacity: 0.8; }
.a-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.a-qc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; border-radius: 1.1rem; border: 1px solid var(--a-border); background: var(--a-s2); font-size: 12px; font-weight: 500; }
.a-qi { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 12px; background: var(--a-surface); color: var(--a-accent); }
.a-badge { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px; background: var(--a-accent); color: var(--a-on-accent); font-size: 10px; font-weight: 700; }

/* Navigation */
.a-nav { position: absolute; left: 0; right: 0; bottom: 0; z-index: 30; padding: 40px 14px 20px; background: linear-gradient(to top, var(--a-bg) 35%, transparent); pointer-events: none; }
.a-navbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 2.25rem; border: 1px solid var(--a-border); background: rgba(23, 27, 30, 0.95); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); pointer-events: auto; }
.a-ni { display: flex; align-items: center; justify-content: center; width: 50px; height: 44px; border-radius: 1.1rem; color: var(--a-muted); }
.a-ni.on { background: var(--a-t15); color: var(--a-accent); }
.fa .a-ni.on .ic { stroke-width: 2.4; }
.a-fab { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 1.1rem; background: var(--a-accent); color: var(--a-on-accent); box-shadow: 0 8px 20px rgba(15, 157, 107, 0.4); }
.fa .a-fab .ic { stroke-width: 2.4; }

/* Chat */
.a-ctop { display: flex; flex: none; justify-content: space-between; padding: 2px 16px 6px; }
.a-msgs { display: flex; flex-direction: column; gap: 12px; padding: 6px 12px 14px; }
.a-m { display: flex; }
.a-m-me { justify-content: flex-end; }
.a-col { display: flex; flex-direction: column; align-items: flex-start; max-width: 85%; }
.a-m-me .a-col { align-items: flex-end; }
.a-col.a-wide { width: 85%; }
.a-bub { padding: 10px 14px; border-radius: 1.1rem; background: var(--a-coach); font-size: 15px; line-height: 1.375; }
.a-m-coach .a-bub { border-bottom-left-radius: 6px; }
.a-m-me .a-bub { border-bottom-right-radius: 6px; background: var(--a-user); }
.a-bub-photo { padding: 6px; }
.a-li { display: flex; gap: 6px; margin-top: 2px; }
.a-li i { font-style: normal; color: var(--a-muted); }
.a-p { display: block; margin-top: 8px; }
.a-link { color: var(--a-accent); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; border-radius: 4px; }
.a-rep { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 0 4px; font-size: 11px; color: var(--a-muted); }
.a-typing { display: flex; gap: 4px; padding: 14px 16px; }
.a-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--a-muted); animation: aDot 1s infinite; }
.a-typing i:nth-child(1) { animation-delay: -0.2s; }
.a-typing i:nth-child(2) { animation-delay: -0.1s; }
@keyframes aDot { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-5px); } }
.a-chg { width: 100%; margin-top: 6px; padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(62, 207, 142, 0.25); background: var(--a-t5); }
.a-chg-t { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.025em; color: var(--a-accent); }
.fa .a-chg-t .ic { stroke-width: 2.5; }
.a-chg-i { margin-top: 4px; font-size: 13px; line-height: 1.375; }
.a-cc { width: 100%; margin-top: 8px; padding: 16px; border-radius: 1.1rem; border: 1px solid var(--a-border); background: var(--a-s2); }
.a-cc-t { margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--a-accent); }
.a-items { display: flex; flex-direction: column; gap: 2px; margin: 0 0 8px; padding: 0; list-style: none; color: var(--a-muted); }
.a-items li { display: flex; justify-content: space-between; gap: 8px; }
.a-total { display: flex; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--a-border); font-weight: 600; }
.a-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: center; }
.a-g2 > div { display: flex; flex-direction: column; padding: 12px 4px; border-radius: 12px; background: var(--a-surface); }
.a-g2 b { font-size: 24px; font-weight: 700; color: var(--a-accent); line-height: 1.3; }
.a-g2 small { font-size: 12px; color: var(--a-muted); }
.a-dbar { height: 6px; margin: 8px 0; overflow: hidden; border-radius: 999px; background: var(--a-border); }
.a-dbar i { display: block; height: 100%; background: var(--a-accent); }
.a-qs-h { margin-bottom: 8px; font-size: 12px; font-weight: 500; color: var(--a-muted); }
.a-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.a-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--a-border); background: var(--a-s2); font-size: 14px; }
.a-chip-more { color: var(--a-muted); }
.a-chip-ai { border-color: rgba(62, 207, 142, 0.5); background: var(--a-t10); }
.a-photo { display: block; width: 180px; height: 136px; border-radius: 12px; overflow: hidden; background: #3a2a1c; }
.a-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.a-cbar { flex: none; padding: 4px 12px 20px; }
.a-comp { position: relative; min-height: 84px; border-radius: 1.8rem; border: 1px solid var(--a-border); background: rgba(23, 27, 30, 0.95); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); }
.a-field { padding: 12px 16px 46px; font-size: 15px; line-height: 1.375; }
.a-ph { color: var(--a-muted); }
.a-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: text-bottom; background: var(--a-accent); animation: aBlink 1s steps(1) infinite; }
@keyframes aBlink { 50% { opacity: 0; } }
.a-ctools { position: absolute; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 4px; }
.a-ct { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: var(--a-muted); }
.a-send { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--a-accent); color: var(--a-on-accent); transition: opacity 0.2s ease; }
.a-send.is-empty { opacity: 0.3; }
.a-ainote { margin-top: 6px; padding: 0 12px; text-align: center; font-size: 11px; line-height: 1.6; color: var(--a-muted); }

/* Sheet, Kamera */
.a-sheetwrap { position: absolute; inset: 0; z-index: 50; }
.a-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); animation: aFade 0.22s ease both; }
.a-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 16px 28px; border-radius: 1.6rem 1.6rem 0 0; background: var(--a-surface); animation: aSheet 0.32s cubic-bezier(0.22, 0.85, 0.25, 1) both; }
@keyframes aSheet { from { transform: translateY(100%); } to { transform: none; } }
.a-grip { display: block; width: 40px; height: 5px; margin: 4px auto 14px; border-radius: 3px; background: var(--a-border); }
.a-sheet-t { display: block; margin-bottom: 12px; font-size: 15px; }
.a-info { display: flex; align-items: flex-start; gap: 8px; padding: 12px; border-radius: 1.1rem; border: 1px solid var(--a-border); background: var(--a-s2); color: var(--a-muted); line-height: 1.6; }
.a-info .ic { margin-top: 2px; }
.a-sheet .a-primary { margin-top: 16px; }
.a-disc { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin-top: 12px; text-align: center; font-size: 11px; line-height: 1.6; color: var(--a-muted); }
.a-disc .ic { margin-top: 2px; }
.a-cam { position: absolute; inset: 0; z-index: 60; display: flex; flex-direction: column; background: #000; animation: aFade 0.25s ease both; }
.a-cam-view { position: relative; display: grid; flex: 1; place-items: center; margin-top: 46px; overflow: hidden; background: #3a2a1c; }
.a-cam-view img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.a-cam-frame { position: absolute; inset: 22% 14%; border: 2px solid rgba(255, 214, 10, 0.85); border-radius: 6px; }
.a-cam-bar { display: flex; flex: none; justify-content: center; align-items: center; height: 128px; padding-bottom: 14px; }
.a-shutter { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; border: 4px solid #fff; }
.a-shutter span { width: 54px; height: 54px; border-radius: 50%; background: #fff; }
.a-flash { position: absolute; inset: 0; z-index: 70; background: #fff; animation: aFlash 0.35s ease-out both; }
@keyframes aFlash { from { opacity: 0.9; } to { opacity: 0; } }

/* Training: Wochenplan */
.a-ptitle { margin-top: 4px; }
.a-seg { display: flex; padding: 4px; border-radius: 1.1rem; background: var(--a-s2); }
.a-seg span { flex: 1; padding: 8px 0; border-radius: 12px; text-align: center; font-weight: 500; color: var(--a-muted); }
.a-seg .on { background: var(--a-accent); color: var(--a-on-accent); box-shadow: 0 2px 8px rgba(15, 157, 107, 0.35); }
.a-wk { padding: 16px; border-radius: 1.1rem; border: 1px solid var(--a-border); background: var(--a-s2); }
.a-wk-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.a-wk-t { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.a-wk-r { display: flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--a-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.a-wk-s { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 8px; font-size: 11px; color: var(--a-muted); }
.a-wk-s span { display: inline-flex; align-items: center; gap: 4px; }
.a-days { display: flex; flex-direction: column; gap: 4px; }
.a-day { min-height: 44px; padding: 6px 8px; border-radius: 12px; }
.a-day.is-today { background: var(--a-t10); }
.a-day-h { display: flex; align-items: center; gap: 8px; }
.a-day-h.is-past { opacity: 0.5; }
.a-dn { font-weight: 500; }
.is-today .a-dn { font-weight: 700; color: var(--a-accent); }
.a-dd { font-size: 12px; color: var(--a-muted); font-variant-numeric: tabular-nums; }
.fa .a-ok { color: var(--a-emerald); stroke-width: 3; }
.a-dplus { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: auto; border-radius: 8px; border: 1px dashed var(--a-border); color: var(--a-muted); }
.a-entry { display: flex; align-items: center; gap: 4px; margin-top: 4px; border-radius: 12px; background: var(--a-surface); }
.a-entry.is-dim { opacity: 0.6; }
.a-entry.is-new { animation: aNew 2.4s ease 0.3s both; }
@keyframes aNew { 0% { box-shadow: 0 0 0 0 rgba(62, 207, 142, 0); } 20%, 70% { box-shadow: 0 0 0 2px var(--a-accent); } 100% { box-shadow: 0 0 0 1px rgba(62, 207, 142, 0.5); } }
.a-grip-v { display: flex; align-items: center; justify-content: center; width: 32px; height: 40px; color: var(--a-muted); }
.a-en { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-eplay { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-right: 4px; border-radius: 8px; background: var(--a-accent); color: var(--a-on-accent); }
.a-dashed { padding: 16px; border-radius: 1.1rem; border: 1px dashed var(--a-border); background: rgba(31, 36, 41, 0.6); text-align: center; color: var(--a-muted); }

/* Training durchführen */
.a-wo-top { flex: none; padding: 4px 16px 0; }
.a-wo-row { display: flex; align-items: center; gap: 12px; }
.a-prog { flex: 1; height: 8px; overflow: hidden; border-radius: 999px; background: var(--a-border); }
.a-prog i { display: block; height: 100%; border-radius: 999px; background: var(--a-accent); transition: width 0.3s ease; }
.a-clock { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.a-rests { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.a-rests span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; background: var(--a-s2); font-size: 12px; font-weight: 500; color: var(--a-accent); }
.a-wo-mid { display: flex; flex: 1; min-height: 0; flex-direction: column; padding: 8px 22px 0; overflow-y: auto; scrollbar-width: none; }
.a-wo-in { display: flex; flex-direction: column; align-items: center; margin: auto 0; text-align: center; }
.a-wo-l { font-size: 15px; color: var(--a-muted); }
.a-wo-t { margin-top: 6px; font-size: 32px; font-weight: 700; line-height: 1.2; }
.a-wo-tools { display: flex; gap: 8px; margin-top: 12px; }
.a-wheels { display: flex; gap: 8px; width: 100%; max-width: 300px; margin-top: 28px; text-align: left; }
.a-wf { flex: 1; min-width: 0; }
.a-wf > span { font-size: 13px; color: var(--a-muted); }
.a-wf > div { display: flex; align-items: center; margin-top: 4px; padding: 12px 6px; border-radius: 1.1rem; background: var(--a-s2); }
.a-wf i { flex: 1; }
.a-wf b { display: flex; align-items: baseline; gap: 4px; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.a-wf small { font-size: 14px; font-weight: 400; color: var(--a-muted); }
.a-wf em { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 2px; font-size: 10px; font-style: normal; color: var(--a-muted); font-variant-numeric: tabular-nums; }
.a-best { margin-top: 8px; font-size: 13px; color: var(--a-muted); }
.a-best b { color: var(--a-fg); }
.a-next { margin-top: 22px; font-size: 13px; color: var(--a-muted); }
.a-wo-bot { flex: none; padding: 8px 16px 24px; }
.a-big { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 16px; border-radius: 1.1rem; background: var(--a-accent); color: var(--a-on-accent); font-size: 18px; font-weight: 600; }
.a-wo-sec { display: flex; justify-content: space-between; margin-top: 8px; }
.a-wo-sec span { display: flex; flex: 1; align-items: center; justify-content: center; gap: 6px; padding: 8px 0; color: var(--a-muted); }
.a-wo-sec .a-acc { color: var(--a-accent); }
.a-wo-sec .is-off { opacity: 0.3; }
.a-timer { position: absolute; left: 0; right: 0; bottom: 0; z-index: 45; padding: 0 12px 20px; }
.a-timer-c { overflow: hidden; border-radius: 1.8rem; border: 1px solid var(--a-border); background: var(--a-s2); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.45); }
.a-timer-in { padding: 16px 20px 12px; }
.a-timer-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.a-timer-h > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.025em; color: var(--a-muted); }
.a-timer-b { display: flex; gap: 4px; }
.a-tb { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--a-surface); }
.a-tb-w { width: auto; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.a-timer-v { margin-top: 4px; text-align: center; font-size: 60px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.a-timer-bar { height: 6px; margin-top: 12px; overflow: hidden; border-radius: 999px; background: var(--a-border); }
.a-timer-bar i { display: block; height: 100%; background: var(--a-accent); transition: width 1s linear; }
.a-timer-end { display: block; width: calc(100% - 32px); margin: 12px 16px; padding: 14px 20px; border: 0; border-radius: 14px; background: var(--a-accent); color: var(--a-on-accent); font-size: 16px; font-weight: 700; text-align: center; }
.fa .a-timer-end.is-target { outline-offset: -4px; }
.a-done { align-items: center; justify-content: center; gap: 4px; padding: 0 24px 40px; text-align: center; }
.a-done-ic { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 12px; border-radius: 50%; background: var(--a-accent); color: var(--a-on-accent); }
.a-done-b { max-width: 260px; margin-top: 20px; }

/* Form-Check */
.a-wo-tools > * { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--a-s2); font-size: 13px; font-weight: 500; color: var(--a-accent); }
.a-fsheet, .a-rsheet { top: 7%; display: flex; flex-direction: column; padding-bottom: 0; }
.a-fh { display: flex; align-items: center; gap: 8px; }
.a-fh b { font-size: 18px; letter-spacing: -0.02em; }
.a-fsub { margin-top: 2px; font-size: 12px; color: var(--a-muted); }
.a-fbody { display: flex; flex: 1; min-height: 0; flex-direction: column; gap: 12px; margin: 10px -16px 0; padding: 4px 16px 0; overflow-y: auto; scrollbar-width: none; }
.a-fcam { position: relative; flex: none; width: min(100%, 50cqh); aspect-ratio: 3 / 4; margin: 0 auto; overflow: hidden; border-radius: 1.1rem; background: radial-gradient(90% 70% at 50% 40%, #39424a, #15191c 80%); }
.a-fig { position: absolute; inset: 6% 0 0; width: 100%; height: 94%; }
.a-fig-floor { stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; }
.a-fig-body { fill: none; stroke: #59636c; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.a-fig-head { fill: #59636c; }
.a-fig-arm { stroke: #4b545c; stroke-width: 6; }
.a-fig-bone { fill: none; stroke: rgba(255, 255, 255, 0.85); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.a-fig-j { fill: #fff; }
.a-fig-k { fill: #10b981; stroke: #fff; stroke-width: 1; }
.a-fc-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px; }
.a-fst { padding: 4px 10px; border-radius: 999px; background: rgba(16, 185, 129, 0.85); color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; }
.a-fc-tools { display: flex; align-items: center; gap: 6px; }
.a-fround { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(62, 207, 142, 0.9); color: var(--a-on-accent); }
.a-frec { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(220, 38, 38, 0.9); color: #fff; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.a-frec[hidden], .a-flive[hidden] { display: none; }
.a-frec i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: aBlink 1s steps(1) infinite; }
.a-fc-hint { position: absolute; top: 52px; left: 50%; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 11px; font-weight: 500; white-space: nowrap; transform: translateX(-50%); }
.a-flive { position: absolute; bottom: 12px; left: 50%; padding: 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; transform: translateX(-50%); transition: background-color 0.2s ease; }
.a-flive.is-good { background: rgba(16, 185, 129, 0.85); }
.a-fcount { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.4); color: #fff; font-size: 72px; font-weight: 700; }
.a-fstop { display: flex; flex: none; margin-bottom: 20px; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 1.1rem; background: #dc2626; color: #fff; font-weight: 600; }
.a-fload { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 48px 0; color: var(--a-muted); }
.a-spin { animation: aSpin 0.9s linear infinite; }
@keyframes aSpin { to { transform: rotate(360deg); } }
.a-fres { display: flex; flex-direction: column; gap: 10px; }
.a-g2m { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a-met { padding: 10px 12px; border-radius: 1.1rem; border: 1px solid var(--a-border); background: var(--a-s2); text-align: center; }
.a-met b { display: block; font-size: 22px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.a-met.is-acc b { color: var(--a-accent); }
.a-met small { font-size: 11px; color: var(--a-muted); }
.a-fbox { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 1.1rem; border: 1px solid rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.1); color: #34d399; font-size: 13px; line-height: 1.45; }
.a-fbox .ic { flex: none; margin-top: 1px; }
.a-fbox b { font-weight: 600; }
.a-fbox-sm { padding: 8px 12px; border-radius: 12px; }
.a-fcoach { padding: 12px; border-radius: 1.1rem; border: 1px solid rgba(62, 207, 142, 0.3); background: var(--a-t5); }
.a-fcoach-t { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--a-accent); }
.a-fcoach p { font-size: 13px; line-height: 1.6; color: rgba(231, 234, 237, 0.9); }
.a-fnote { font-size: 11px; line-height: 1.6; color: var(--a-muted); }
.a-frow { position: sticky; bottom: 0; display: flex; gap: 8px; padding: 10px 0 20px; background: var(--a-surface); box-shadow: 0 -14px 14px -2px var(--a-surface); }
.a-frow > * { flex: 1; }
.a-fsec { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 1.1rem; border: 1px solid var(--a-border); background: var(--a-s2); font-size: 14px; font-weight: 500; }
.a-sheet .a-fdone { margin-top: 0; font-size: 14px; }

/* Restaurant-Tipp */
.a-rsheet { padding-bottom: 16px; }
.a-rsheet .a-sheet-t { margin-bottom: 16px; }
.a-rbody { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.a-rsearch { display: flex; flex-direction: column; gap: 12px; }
.a-rrad { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.a-rrad b { color: var(--a-fg); }
.a-rloc { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--a-muted); }
.a-range { position: relative; height: 6px; margin-top: -4px; border-radius: 999px; background: var(--a-border); }
.a-range i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--a-accent); }
.a-range span { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -2px; border-radius: 50%; background: var(--a-accent); }
.a-range-l { display: flex; justify-content: space-between; margin-top: -8px; font-size: 10px; color: var(--a-muted); }
.a-rin { padding: 10px 16px; border-radius: 12px; background: var(--a-s2); font-size: 13px; color: var(--a-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-sheet .a-rfind { margin-top: 0; }
.a-rfind.is-busy { opacity: 0.6; }
.a-rcoach { display: flex; align-items: center; justify-content: center; gap: 6px; flex: none; margin-top: auto; padding: 13px; border-radius: 12px; border: 1px solid var(--a-border); background: var(--a-s2); font-size: 14px; font-weight: 500; color: var(--a-muted); }
.a-rsearch + .a-rcoach { margin-top: 16px; }
.a-rres { display: flex; flex: 1; min-height: 0; flex-direction: column; margin-bottom: 12px; }
.a-rres + .a-rcoach { margin-top: 0; }
.a-rhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 12px; color: var(--a-muted); }
.a-rhead .a-acc { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; white-space: nowrap; }
.a-rseg { display: flex; gap: 6px; margin-bottom: 8px; padding: 4px; border-radius: 12px; background: var(--a-s2); }
.a-rseg span { display: flex; flex: 1; align-items: center; justify-content: center; gap: 6px; padding: 6px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--a-muted); }
.a-rseg .on { background: var(--a-accent); color: var(--a-on-accent); }
.a-rlist { display: flex; flex: 1; min-height: 0; flex-direction: column; gap: 8px; overflow-y: auto; scrollbar-width: none; }
.a-rp { flex: none; padding: 12px; border-radius: 12px; background: var(--a-s2); }
.a-rp-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.a-rp-h b { font-size: 14px; font-weight: 600; line-height: 1.35; }
.a-rp-h small { flex: none; font-size: 11px; color: var(--a-muted); }
.a-rp-c { margin-top: 2px; font-size: 12px; color: var(--a-muted); }
.a-rp-o { margin-top: 2px; font-size: 11px; color: var(--a-muted); }
.a-rpick { margin-top: 8px; font-size: 11px; color: var(--a-muted); }
.a-rpick.is-done { padding: 6px 10px; border-radius: 8px; background: var(--a-t10); font-size: 12px; }
.a-rpick.is-done b { font-weight: 600; color: var(--a-accent); }
.a-rpick small { display: block; margin-top: 2px; font-size: 11px; color: var(--a-muted); }
.a-rp-b { display: flex; gap: 8px; margin-top: 8px; }
.a-rnav { display: flex; flex: 1; align-items: center; justify-content: center; gap: 6px; padding: 8px; border-radius: 12px; background: var(--a-accent); color: var(--a-on-accent); font-size: 14px; font-weight: 600; }
.a-rweb { display: flex; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 12px; background: var(--a-surface); }
.a-rfoot { flex: none; padding-top: 4px; font-size: 10px; line-height: 1.6; color: var(--a-muted); }

/* Geführter Rundgang: kleiner Hinweis mit Pfeil neben dem pulsierenden Ziel, ohne die App abzudunkeln.
   Ohne Ziel: schmaler Hinweis oben (.is-note) oder Abschluss-Blatt unten (.is-sheet). */
.a-tour { position: absolute; inset: 0; z-index: 80; pointer-events: none; }
.a-tour:empty { display: none; }
.a-tcard {
  position: absolute; padding: 9px 12px 10px; border-radius: 14px; background: #232a30;
  border: 1px solid rgba(62, 207, 142, 0.55); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); animation: aFade 0.2s ease both;
}
.is-tip .a-tcard { width: max-content; max-width: min(236px, calc(100% - 16px)); }
.a-tcard.is-flash { animation: aShake 0.5s ease; }
.a-tc-arrow {
  position: absolute; top: -6px; width: 11px; height: 11px; margin-left: -5.5px; background: #232a30; transform: rotate(45deg);
  border-left: 1px solid rgba(62, 207, 142, 0.55); border-top: 1px solid rgba(62, 207, 142, 0.55);
}
.a-tcard.is-above .a-tc-arrow { top: auto; bottom: -6px; transform: rotate(225deg); }
.a-tc-h { display: flex; align-items: baseline; gap: 7px; }
.a-tc-n { flex: none; font-size: 11px; font-weight: 600; color: var(--a-accent); font-variant-numeric: tabular-nums; }
.a-tc-t { font-size: 13px; font-weight: 600; line-height: 1.3; }
.a-tc-b { margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: #c3cad1; }
.is-note .a-tcard { top: 52px; left: 12px; right: 12px; }
.is-sheet .a-tcard {
  left: 0; right: 0; bottom: 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0;
  border: 0; border-top: 1px solid var(--a-border); background: var(--a-surface); box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.5);
  pointer-events: auto; animation: aUp 0.3s var(--a-ease) both;
}
.is-sheet .a-tc-t { font-size: 17px; font-weight: 700; }
.is-sheet .a-tc-b { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--a-muted); }
.a-tc-a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.a-tc-a > * { flex: 1; }
.fa .a-tc-go { flex-basis: 100%; display: flex; align-items: center; justify-content: center; padding: 11px; border-radius: 1.1rem; background: var(--a-accent); color: var(--a-on-accent); font-size: 14px; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; }
.fa .a-tc-sec { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 1.1rem; border: 1px solid var(--a-border); font-size: 14px; font-weight: 500; cursor: pointer; }
.fa .a-tc-link { padding: 10px; font-size: 13px; color: var(--a-muted); text-align: center; cursor: pointer; }
.fa .a-tc-go:focus-visible, .fa .a-tc-sec:focus-visible, .fa .a-tc-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Schmale Handys: etwas dichter, damit nichts umbricht */
@container (max-width: 340px) {
  .a-pad { padding-left: 14px; padding-right: 14px; }
  .a-c3, .a-coach { padding: 16px; }
  .a-ring { width: 100px; height: 100px; }
  .a-ring-v b { font-size: 21px; }
  .a-nutri { gap: 12px; }
  .a-ni { width: 44px; }
  .a-start { padding: 12px 16px; }
  .a-wo-t { font-size: 28px; }
}
@container (max-width: 290px) {
  .a-wo-tools > * { padding: 6px 10px; font-size: 12px; }
  .a-wo-mid { padding-left: 14px; padding-right: 14px; }
  .a-ring { width: 88px; height: 88px; }
  .a-ring-v b { font-size: 18px; }
}
@container (max-height: 480px) {
  .a-rests { display: none; }
}

/* Niedrige Handys (wenig Höhe im Browser): Training und Chat dichter, damit nichts überlappt */
@container (max-height: 600px) {
  .a-rests { margin-top: 6px; }
  .a-wo-l { font-size: 14px; }
  .a-wo-t { margin-top: 2px; font-size: 26px; }
  .a-wo-tools { margin-top: 8px; }
  .a-wheels { margin-top: 14px; }
  .a-wf > div { padding: 8px 6px; }
  .a-best { display: none; }
  .a-next { margin-top: 10px; }
  .a-big { padding: 13px; font-size: 17px; }
  .a-wo-bot { padding-bottom: 18px; }
  .a-comp { min-height: 64px; }
  .a-field { padding: 10px 16px 36px; }
  .a-cbar { padding-bottom: 16px; }
  .a-ainote { font-size: 10px; line-height: 1.5; }
  .a-cam-bar { height: 104px; }
  .a-timer-in { padding-top: 12px; }
  .a-timer-v { font-size: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .fa *, .fa *::before, .fa *::after, .df { animation: none !important; transition: none !important; }
  .fa .is-target { box-shadow: 0 0 0 6px rgba(62, 207, 142, 0.35); }
  .fa .is-target:active { scale: none; }
}
