/* Gespräche üben: ein Schritt pro Bildschirm. Warmes Weiß, weiße Sprechblasen, Lila nur für Antippbares.
   Zwei Schriftgrößen (--e-size, --e-small) plus Titel. Große Knöpfe, eine Spalte. */
body.sim-page .sim-hero { padding: 8px 0 0; text-align: center; }
body.sim-page .sim-hero h1 { margin: 8px 0 8px; }
body.sim-page .sim-hero p { color: var(--e-muted); margin: 0 auto 20px; max-width: 30rem; }
body.sim-page.sim-playing :is(.sim-hero, .sim-info) { display: none; }

body.sim-page #sim { display: grid; gap: 16px; margin: 0 0 32px; scroll-margin-top: 84px; }
body.sim-page #sim h2 { font-size: 1.375rem !important; line-height: 1.25 !important; margin: 0; }
body.sim-page #sim .button { width: 100%; }
body.sim-page #sim :is(.sim-small, .sim-who) { font-size: var(--e-small) !important; }
body.sim-page .sim-small { margin: 0; color: var(--e-muted); text-align: center; }

/* Start: Bilder */
body.sim-page .sim-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.sim-page .sim-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 10px 16px; background: #fff; border: 1px solid var(--e-line); border-radius: 18px; color: var(--e-text); font: inherit; font-weight: 700; line-height: 1.25; text-align: center; cursor: pointer; }
body.sim-page .sim-tile:hover { border-color: var(--e-purple); }
body.sim-page .sim-tile img { display: block; width: 100%; max-width: 160px; height: 120px; object-fit: contain; }
@media (min-width: 720px) { body.sim-page .sim-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Knöpfe */
body.sim-page .sim-light { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 12px 18px; background: var(--e-lav); color: var(--e-lav-text); border: 0; border-radius: 14px; font: inherit; font-weight: 700; cursor: pointer; }
body.sim-page .sim-textbutton { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px 12px; background: none; border: 0; color: var(--e-purple); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
body.sim-page .sim-back { justify-self: start; display: inline-flex; align-items: center; min-height: 48px; padding: 6px 4px; background: none; border: 0; color: var(--e-purple); font: inherit; font-weight: 700; cursor: pointer; }
body.sim-page .sim-back::before { content: "‹"; font-size: 1.6em; line-height: 1; margin-right: 8px; }

/* Eigene Situation / eigener Satz */
body.sim-page .sim-free { display: grid; gap: 10px; margin-top: 12px; padding: 16px; background: #fff; border: 1px solid var(--e-line); border-radius: 18px; }
body.sim-page .sim-free label { font-weight: 700; }
body.sim-page .sim-own { display: grid; gap: 10px; }
body.sim-page #sim textarea { display: block; width: 100%; min-height: 84px; padding: 14px 16px; resize: vertical; background: #fff; color: var(--e-text); border: 1px solid var(--e-line); border-radius: 14px; font: inherit; }
body.sim-page #sim textarea:focus { border-color: var(--e-purple); outline: none; box-shadow: 0 0 0 1px var(--e-purple); }
body.sim-page .sim-hint { margin: 0; color: var(--e-red); font-weight: 600; }
body.sim-page .sim-hint:empty { display: none; }

/* Szene */
body.sim-page .sim-picture { display: block; justify-self: center; width: 100%; max-width: 240px; max-height: 180px; object-fit: contain; }
body.sim-page .sim-line { display: grid; gap: 4px; }
body.sim-page .sim-who { margin: 0 0 0 8px; color: var(--e-muted); font-weight: 600; }
body.sim-page .sim-bubble { padding: 16px 20px; background: #fff; border: 1px solid var(--e-line); box-shadow: 0 1px 2px rgba(30, 25, 60, .06); border-radius: 22px 22px 22px 6px; font-size: 1.25rem !important; line-height: 1.35 !important; font-weight: 700; overflow-wrap: anywhere; }
body.sim-page .sim-bubble.is-you { justify-self: end; max-width: 88%; background: var(--e-lav); border-color: var(--e-lav); color: var(--e-lav-text); border-radius: 22px 22px 6px 22px; font-size: var(--e-size) !important; }
body.sim-page .sim-bubble.is-wait { justify-self: start; border-color: var(--e-line); }
body.sim-page .sim-dots { display: inline-flex; gap: 6px; align-items: center; min-height: 28px; }
body.sim-page .sim-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--e-purple); opacity: .35; animation: sim-dot 1.2s infinite ease-in-out; }
body.sim-page .sim-dots i:nth-child(2) { animation-delay: .2s; }
body.sim-page .sim-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes sim-dot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { body.sim-page .sim-dots i { animation: none; opacity: .7; } }

/* Rückmeldung: Leiste unten wie bei Lern-Apps (Symbol, ein Wort, ein Satz, Knopf) */
body.sim-page.sim-bar-open { padding-bottom: 300px; }
body.sim-page .sim-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(30, 25, 60, .08); box-shadow: 0 -8px 24px rgba(30, 25, 60, .10); animation: sim-up .22s ease-out; }
body.sim-page .sim-bar-inner { display: grid; gap: 12px; max-width: 40rem; margin: 0 auto; }
body.sim-page .sim-bar-head { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
body.sim-page .sim-bar p { margin: 0; }
body.sim-page .sim-bar q { quotes: "„" "“"; font-weight: 700; }
html[lang^="en"] body.sim-page .sim-bar q { quotes: "“" "”"; }
body.sim-page .sim-fb-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; }
body.sim-page .sim-verdict { font-size: 1.25rem !important; font-weight: 800; margin-bottom: 2px !important; }
body.sim-page .sim-bar.is-good { background: #e7f4ea; color: #1d5e33; }
body.sim-page .sim-bar.is-good .sim-fb-icon { color: #1d7a42; }
body.sim-page .sim-bar.is-hint { background: #efedf8; color: var(--e-text); }
body.sim-page .sim-bar.is-hint .sim-fb-icon { color: var(--e-purple); }
body.sim-page .sim-bar.is-hint .sim-light { background: #fff; }
@keyframes sim-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { body.sim-page .sim-bar { animation: none; } }

/* Antworten: wie die Antwortzeilen im Lernen der App (Buchstabe, Text, Pfeil) */
body.sim-page .sim-answer { display: grid; gap: 10px; margin-top: 4px; }
body.sim-page .sim-answer h2 { margin-bottom: 2px !important; }
body.sim-page .sim-choice { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 64px; padding: 16px; background: #fff; color: var(--e-text); border: 1px solid var(--e-line); border-radius: 18px; font: inherit; font-weight: 400; line-height: 1.35; text-align: left; cursor: pointer; }
body.sim-page .sim-choice:hover { border-color: var(--e-purple); }
body.sim-page .sim-choice.is-tried { opacity: .45; text-decoration: line-through; cursor: default; }
body.sim-page .sim-choice:focus-visible { outline: 3px solid var(--e-purple); outline-offset: 2px; }
body.sim-page .sim-mark { flex: 0 0 32px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--e-lav); color: var(--e-purple); font-size: var(--e-small) !important; font-weight: 800; }
body.sim-page .sim-choice-text { flex: 1 1 auto; min-width: 0; }
body.sim-page .sim-choice svg { flex: 0 0 auto; color: var(--e-purple); }

/* Hinweise und Ende */
body.sim-page .sim-note { display: grid; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--e-line); border-radius: 16px; }
body.sim-page .sim-note p { margin: 0; }
body.sim-page .sim-note.is-safety { background: #fbf3dc; border-color: #d9a13a; }
body.sim-page .sim-done { display: grid; gap: 12px; text-align: center; }
body.sim-page .sim-done p { margin: 0 0 6px; }

/* Text unter dem Simulator */
body.sim-page .sim-info { margin: 8px 0 0; }
body.sim-page .sim-info h2 { margin: 0 0 8px; }
body.sim-page .sim-info p { margin: 0 0 12px; }
body.sim-page .sim-safety { margin: 16px 0; padding: 14px 16px; background: #fff; border: 1px solid var(--e-line); border-radius: 14px; }
