/* R41 tag – Ton-Frage (R42: blauer Block), „Lösung lesen (20 s)“, „Wenig Zeit?“, Kurzlink ?kurz, Handy-Feinheiten der Startseite,
   R42: „Prefer English?“ als schmale Leiste, Fußzeile „Morgen um 09:00 wieder da.“ (tag.js / patch_tag.py).
   Farben: Blau #304ee7 und Tinte #203c4b – kein Rot (Rot gehört dem roten Faden). */

/* ---------- the row under "Sie sind dran": „Lösung lesen (20 s)“ on the right (room on the left for a second button, e.g. 11:30) */
.tg-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;min-height:34px;margin:2px 0 12px}
.tg-sol-btn{margin-left:auto;display:inline-flex;align-items:center;min-height:34px;padding:0 2px;border:0;background:none;color:#304ee7;font:700 12.5px/1.3 Manrope,system-ui,sans-serif;cursor:pointer}
.tg-sol-btn span{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.tg-sol-btn:hover span{text-decoration-thickness:2px}
.tg-sol-btn:focus-visible,.tg-ton button:focus-visible,.tg-ov-sol:focus-visible,.tg-quick:focus-visible,.tg-kurz a:focus-visible,.language-suggestion.tg-enbar :is(a,button):focus-visible{outline:2px solid #304ee7;outline-offset:3px;border-radius:4px}
/* R42: the lower link „Einen möglichen Lösungsweg ansehen“ is gone – „Lösung lesen (20 s)“ above is the one way */
.workbench details.reference.tg-ref-off{display:none!important}

/* ---------- R42: the sound question – a clear blue block in the card (no overlay, no timer) */
.tg-ton{display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px;margin:0 0 16px;padding:14px 16px;border:1.5px solid #304ee7;border-radius:10px;background:#eef1fe;color:#203c4b;
  overflow:hidden;transition:height .3s ease,opacity .25s ease,margin .3s ease,padding .3s ease,border-width .3s ease}
.tg-ton-q{display:flex;align-items:center;gap:10px;flex:1 1 150px;margin:0;font:800 15px/1.3 Manrope,system-ui,sans-serif;color:#1d2f8f;white-space:nowrap}
.tg-ton-ico{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#304ee7;color:#fff}
.tg-ton-ico svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tg-ton-btns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;flex:0 1 262px}
.tg-ton button{min-height:44px;padding:0 10px;border:1.5px solid #304ee7;border-radius:8px;font:700 14px/1.2 Manrope,system-ui,sans-serif;cursor:pointer;white-space:nowrap;transition:background .15s,color .15s}
.tg-ton .tg-ton-yes{background:#304ee7;color:#fff}
.tg-ton .tg-ton-yes:hover{background:#2440cf}
.tg-ton .tg-ton-no{background:#fff;color:#304ee7}
.tg-ton .tg-ton-no:hover{background:#f4f6ff}
.tg-ton.is-out{height:0!important;margin-bottom:0;padding-top:0;padding-bottom:0;border-width:0;opacity:0}
.tg-ton.is-nudge{animation:tg-nudge .9s ease-out}
@keyframes tg-nudge{0%{box-shadow:0 0 0 0 rgba(48,78,231,.45)}100%{box-shadow:0 0 0 10px rgba(48,78,231,0)}}
@media (max-width:620px){
  .tg-ton{padding:13px 13px 14px;gap:11px}
  .tg-ton-q{flex-basis:100%;font-size:15.5px}
  .tg-ton-btns{flex:1 1 100%}
}
html[data-read=on] .tg-ton-q{font-size:18px}
/* the one hint at the header switch after the choice */
.tg-tip{position:fixed;z-index:120;max-width:min(260px,calc(100vw - 24px));box-sizing:border-box;padding:9px 12px;border-radius:8px;background:#203c4b;color:#fff;font:600 12.5px/1.45 Manrope,system-ui,sans-serif;
  box-shadow:0 10px 26px -10px rgba(20,40,50,.55);opacity:0;translate:0 -4px;transition:opacity .25s,translate .25s;pointer-events:none}
.tg-tip::before{content:"";position:absolute;left:calc(var(--tg-arrow,50%) - 6px);top:-6px;border:6px solid transparent;border-top:0;border-bottom-color:#203c4b}
.tg-tip.is-in{opacity:1;translate:0 0}
.tg-tip.is-out{opacity:0}

/* the unfolded solution path (the same text as „Einen möglichen Lösungsweg ansehen“) */
.tg-sol{margin:0 0 16px;padding:12px 15px 13px;border-left:3px solid #304ee7;border-radius:0 8px 8px 0;background:#f4f6ff}
.tg-sol[hidden]{display:none}
.tg-sol p{margin:0}
.tg-sol .tg-sol-kicker{margin-bottom:5px;font:800 10px/1.3 Manrope,system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#304ee7}
.tg-sol .tg-sol-text{font:500 13.5px/1.6 Manrope,system-ui,sans-serif;color:#203c4b}
html[data-read=on] .tg-sol .tg-sol-text{font-size:16px;line-height:1.65}

/* the header switch, when station 01 needs the sound and the question is answered: a short blue ring (no box, no red) */
.scene-sound-toggle.tg-ring{border-radius:999px;animation:tg-ring 1.05s ease-out 3}
@keyframes tg-ring{0%{box-shadow:0 0 0 0 rgba(48,78,231,.45)}100%{box-shadow:0 0 0 12px rgba(48,78,231,0)}}

/* ---------- the overview (09:00 / 11:30 / 15:00): one „Lösung lesen (20 s)“ under each card */
.day-overview a.tg-has-sol{padding-bottom:6px}
.day-overview .tg-ov-sol{grid-row:2;grid-column:var(--tg-col);justify-self:stretch;margin:0;padding:0 20px 18px 0;border:0;background:none;text-align:left;color:#304ee7;font:700 12px/1.3 Manrope,system-ui,sans-serif;cursor:pointer}
.day-overview .tg-ov-sol:not([style*="--tg-col:1"]){border-left:1px solid var(--line,#dfe3dc);padding-left:26px}
.day-overview .tg-ov-sol{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.day-overview .tg-ov-sol:hover{text-decoration-thickness:2px}
@media (max-width:1150px){.day-overview .tg-ov-sol:not([style*="--tg-col:1"]){padding-left:18px}}
.day-overview:has(+.tg-quick-row){margin-bottom:12px}
.tg-quick-row{display:flex;justify-content:flex-end;margin-bottom:40px}
.tg-quick{color:#203c4b;font:700 13px/1.4 Manrope,system-ui,sans-serif;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.tg-quick:hover{color:#304ee7}
.tg-quick-hero{display:none}
@media (max-width:620px){
  .day-overview a:nth-of-type(1){order:1}.day-overview a:nth-of-type(2){order:3}.day-overview a:nth-of-type(3){order:5}
  .day-overview .tg-ov-sol[style*="--tg-col:1"]{order:2}.day-overview .tg-ov-sol[style*="--tg-col:2"]{order:4}.day-overview .tg-ov-sol[style*="--tg-col:3"]{order:6}
  .day-overview a.tg-has-sol{padding-bottom:2px}
  .day-overview .tg-ov-sol,.day-overview .tg-ov-sol:not([style*="--tg-col:1"]){align-self:flex-start;padding:2px 0 14px 57px;border:0;font-size:12px;min-height:30px}
  .tg-quick-row{justify-content:flex-start;margin-bottom:26px}
}
/* phone: „Verfügbar ab sofort · Status in 20 Sekunden“ only once (the note on the portrait stays) – and the way for the hurried
   stands right under „Meinen Tag starten“ instead */
@media (max-width:760px){
  html body .hero-actions .hero-live{display:none!important}
  .hero-actions .tg-quick-hero{display:inline-block;order:0;margin:2px 0 0;font-size:13.5px}
}

/* ---------- 17:00: the circle „Dann lassen Sie uns reden.“ keeps its words inside on the phone */
@media (max-width:620px){
  html body .j-finale .round-contact{width:132px;height:132px;flex-direction:column;gap:4px;padding:0 18px;box-sizing:border-box;text-align:center}
  html body .j-finale .round-contact span{font-size:13px;line-height:1.3}
  html body .j-finale .round-contact strong{font-size:22px}
}
/* the day card: room at the bottom, so that the contact pill and Fio never sit on its last lines when it is scrolled to */
@media (max-width:760px){
  html body .wd-evening{margin-bottom:28px}
  html body .wd-evening,html body .wd-evening *{scroll-margin-bottom:116px}
}

/* ---------- ?kurz: a slim line on top of „Furkan. Kurz & konkret“ */
.tg-kurz{margin:0 0 26px;padding:9px 14px;border:1px dashed rgba(48,78,231,.4);border-radius:8px;background:#f4f6ff;color:#203c4b;font:500 13px/1.5 Manrope,system-ui,sans-serif}
.tg-kurz b{font-weight:800}
.tg-kurz-end{margin:34px 0 0}
.tg-kurz a{color:#304ee7;font-weight:700;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
html[data-read=on] .tg-kurz{font-size:15px}

/* calm: no movement */
html[data-read=on] :is(.tg-ton,.tg-tip,.scene-sound-toggle.tg-ring,.language-suggestion.tg-enbar),html.motion-paused :is(.tg-ton,.tg-tip,.scene-sound-toggle.tg-ring,.language-suggestion.tg-enbar){transition:none!important;animation:none!important}
@media (prefers-reduced-motion:reduce){.tg-ton,.tg-tip,.scene-sound-toggle.tg-ring,.language-suggestion.tg-enbar{transition:none!important;animation:none!important}}
@media print{.tg-bar,.tg-ton,.tg-tip,.tg-quick-row,.tg-quick,.tg-ov-sol,.tg-kurz{display:none!important}}
@media (forced-colors:active){.tg-ton,.tg-ton button,.tg-tip,.language-suggestion.tg-enbar{border:1px solid CanvasText}}

/* ---------- R42: no free AI any more – a leftover AI button (other script) never shows */
.ai-question-button,[data-ai-question]{display:none!important}

/* ---------- R42: „Prefer English?“ – one slim line at the bottom (language.js, patch_tag.py). Never over the contact pill or Fio:
   while it is there (html.tg-enbar-on) both sit above it; Fio's first words wait (his root counts as hidden for the bubble). */
html body .language-suggestion.tg-enbar{position:fixed;left:50%;right:auto;top:auto;bottom:calc(14px + env(safe-area-inset-bottom,0px));z-index:110;translate:-50% 0;
  display:flex;align-items:center;gap:14px;width:max-content;max-width:calc(100vw - 32px);box-sizing:border-box;min-height:52px;margin:0;padding:6px 8px 6px 18px;
  border:1px solid #c1d3df;border-left:3px solid #304ee7;border-top-width:1px;border-radius:10px;background:#fbfcf8;color:#19323f;box-shadow:0 10px 30px -14px rgba(25,51,75,.45);
  font:600 14px/1.3 Manrope,Arial,sans-serif;animation:tg-enbar-in .3s ease-out}
@keyframes tg-enbar-in{from{opacity:0;translate:-50% 8px}}
.language-suggestion.tg-enbar .language-q{margin:0;max-width:none;font:750 14.5px/1.3 Manrope,Arial,sans-serif;letter-spacing:-.01em;color:#19323f;white-space:nowrap}
.language-suggestion.tg-enbar .language-accept{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 15px;border-radius:7px;background:#203c4b;color:#fff;font:700 13px/1 Manrope,Arial,sans-serif;text-decoration:none;white-space:nowrap}
.language-suggestion.tg-enbar .language-accept:hover{background:#304ee7}
.language-suggestion.tg-enbar .language-stay{min-height:40px;padding:0 10px;border:0;background:none;color:#40525c;font:650 13px/1 Manrope,Arial,sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer;white-space:nowrap}
.language-suggestion.tg-enbar .language-stay:hover{color:#304ee7}
@media (max-width:760px){
  html body .language-suggestion.tg-enbar{left:12px;right:12px;width:auto;max-width:none;translate:none;bottom:calc(10px + env(safe-area-inset-bottom,0px));gap:8px;padding:5px 6px 5px 13px;min-height:50px;justify-content:space-between}
  @keyframes tg-enbar-in{from{opacity:0;translate:0 8px}}
  .language-suggestion.tg-enbar .language-q{flex:1 1 auto;font-size:14px}
  .language-suggestion.tg-enbar .language-accept{padding:0 13px}
  .language-suggestion.tg-enbar .language-stay{padding:0 8px}
}
/* Fio and the contact pill wait above the bar */
html.tg-enbar-on .fox-root:not([data-user-placed=true]){bottom:calc(var(--fox-bottom,22px) + var(--tg-enbar,52px) + 14px)!important}
html.tg-enbar-on .fox-root{visibility:hidden}
html.tg-enbar-on .fox-root>*{visibility:visible}
html.tg-enbar-on .fio-say{display:none!important}
@media (max-width:760px){html.tg-enbar-on .fs-dock{bottom:calc(16px + var(--tg-enbar,50px) + 10px + env(safe-area-inset-bottom,0px))}}
html.tg-enbar-on body{padding-bottom:calc(var(--tg-enbar,52px) + 24px)}
html[data-theme=dark] .language-suggestion.tg-enbar{box-shadow:0 10px 30px -14px rgba(0,0,0,.6)}
@media print{.language-suggestion.tg-enbar{display:none!important}}

/* ---------- R42: start page footer – „Morgen um 09:00 wieder da.“ (small, quiet, its own line above the links) */
html body footer.j-footer>.j-shell>.tg-tomorrow{order:-1;flex:1 0 100%;margin:0 0 2px!important;font:italic 400 14px/1.4 Georgia,serif!important;letter-spacing:0!important;color:#566970!important}
@media (max-width:760px){html body footer.j-footer>.j-shell>.tg-tomorrow{margin:4px 0 2px!important;font-size:13.5px!important}}

/* ---------- red belongs to the red thread only: the game windows and the sketch of station 01 say "missing" in ink, not red */
html body .wd-dots i,html body .wd-dots i+i,html body .wd-dots i+i+i{background:#cdd4d7}
html body .wd-pill:not([data-tone=device]):not([data-tone=ok]){background:#e7eaf3;color:#203c4b}
html body .wd-meeting[data-output=headset] .wd-device[data-device=headset] small{color:#203c4b;font-weight:700}
html body .wd-meeting[data-testing=silent] .wd-meter i{background:#9ba7c8}
html body .wd-live{background:#304ee7}
html body .station-tech .monitor-bottom .sound-state:not(.is-ok),html body .station-tech .monitor-bottom .sound-state:not(.is-ok) i{color:#4f5f66}
