/* VERSION: milo.css V-021 (02.12.2026) – Kennung für den Versionsabgleich, passend zu milo/index.html ?v=021 */
/* =====================================================================
   LSO CONSULTING – Milo-Seite / ABM Check (seitenspezifisch)
   Baut auf assets/design.css auf (gleiche Farben, Schriften, Themes).
   Milo darf hier verspielter auftreten: Prüfstempel, Sprechblasen,
   Laufband, Symptom-Checkliste, Steckbrief, „Prüfschein“-Kontakt.
   ===================================================================== */

/* ---------- Prüfstempel „ABM Check“ ---------- */
.stamp {
  display: inline-flex; flex-direction: column; align-items: center; gap: .15rem;
  margin: 0 0 1.6rem; padding: .7rem 1.3rem .65rem;
  border: 2px solid var(--copper-glow); outline: 1px solid rgba(212,151,90,.45); outline-offset: 4px;
  border-radius: 8px; transform: rotate(-4deg); color: var(--copper-glow);
  font-family: var(--ff-brand); text-transform: uppercase; line-height: 1;
}
.stamp-top { font-weight: 600; font-size: .66rem; letter-spacing: .32em; }
.stamp-main { font-weight: 700; font-size: clamp(1.35rem, 2.6vw, 1.75rem); letter-spacing: .12em; }
.stamp-sub { font-weight: 400; font-size: .6rem; letter-spacing: .26em; opacity: .9; }
.stamp-small { position: absolute; top: clamp(1.2rem, 3vw, 2rem); right: clamp(1.2rem, 3vw, 2rem); margin: 0; transform: rotate(6deg); color: var(--copper-deep); border-color: var(--copper-deep); outline-color: rgba(154,92,34,.35); }
.stamp-small .stamp-main { font-size: clamp(1.1rem, 1.9vw, 1.35rem); } /* längerer Begriff „Engpass-Check“ */

/* ---------- Hero ---------- */
.milo-hero { position: relative; overflow: hidden; }
.milo-hero::before {
  content: ''; position: absolute; right: -8%; top: 50%; transform: translateY(-50%);
  width: min(62vw, 760px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,129,61,.22) 0%, rgba(196,129,61,.06) 45%, transparent 70%);
  pointer-events: none;
}
.milo-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: end; }
.milo-hero-copy { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6rem); }
.milo-hero h1 { font-size: clamp(2.6rem, 6vw, 4.9rem); margin-bottom: 1.1rem; }
.hero-punch { font: italic 400 clamp(1.25rem, 2.2vw, 1.6rem)/1.35 var(--ff-display); color: var(--copper-glow); margin-bottom: 1rem; }
.milo-hero-figure { position: relative; align-self: end; justify-self: center; width: min(100%, 460px); }
.milo-figure { width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.45)); }
.bubble-hero { top: -7%; right: -6%; transform: rotate(3deg); }
/* Engpass-Check-Stempel (Originalmotiv der Akquisekarte, unverzerrt, transparenter Hintergrund) */
.stamp-badge { position: absolute; z-index: 2; left: 86%; top: 38%; width: 180px; height: auto; transform: rotate(-8deg); pointer-events: none; }
@media (min-width: 861px) and (max-width: 1339px) { .stamp-badge { width: 150px; left: 80%; top: 36%; } }
@media (min-width: 861px) and (max-width: 1099px) { .stamp-badge { width: 130px; left: 72%; top: 36%; } }
.bubble-hero::after { left: auto; right: 2.4rem; }

/* ---------- Laufband ---------- */
.loop-ticker { overflow: hidden; padding: .95rem 0; border-block: 1px solid rgba(255,255,255,.18); }
.loop-ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.loop-ticker span { font: italic 400 1.08rem/1 var(--ff-display); color: #FFFFFF; white-space: nowrap; padding: 0 1.4rem; }
.loop-ticker span::after { content: '↻'; font: normal 600 1rem var(--ff-body); margin-left: 2.8rem; opacity: .7; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Symptome (Checkliste) ---------- */
.symptom {
  position: relative; padding: clamp(1.5rem, 2.6vw, 2rem); padding-top: 3.6rem;
  border-radius: var(--radius-lg); background: var(--paper-tint); border: 1px solid var(--rule-soft);
  box-shadow: 0 14px 34px rgba(12,16,32,.06); transition: transform .25s ease, box-shadow .25s ease;
}
.symptom:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 20px 44px rgba(12,16,32,.1); }
.symptom p { color: var(--fg-muted); margin: 0; }
.symptom-check {
  position: absolute; top: 1.3rem; left: clamp(1.5rem, 2.6vw, 2rem); width: 1.6rem; height: 1.6rem; border-radius: 5px;
  border: 2px solid var(--copper-deep);
  background: var(--copper-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23FFFFFF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/78% no-repeat;
}
.symptom .wink { margin-top: .9rem; padding-top: .8rem; border-top: 1px dashed var(--rule); font: italic 400 1.02rem/1.45 var(--ff-display); color: var(--copper-deep); }
.abm-note { margin: 2.25rem 0 0; font: italic 400 1.2rem var(--ff-display); color: var(--fg-soft); }
.abm-note a { color: var(--copper-deep); text-decoration: none; border-bottom: 1px solid var(--rule); font-style: normal; font: 600 1rem var(--ff-body); margin-left: .3rem; }
.abm-note a:hover { border-bottom-color: var(--copper); }

/* ---------- Quiz ---------- */
.loop-shell {
  max-width: 920px; margin-inline: auto; position: relative;
  border: 1px solid var(--rule); border-radius: 22px;
  padding: clamp(1.5rem, 5vw, 3.25rem);
  background: linear-gradient(145deg, rgba(250,250,248,.07), rgba(250,250,248,.015));
  box-shadow: 0 25px 70px rgba(0,0,0,.25);
}
.loop-game { margin-top: 2rem; padding: clamp(1.25rem, 4vw, 2rem); border-radius: 16px; border: 1px solid rgba(212,151,90,.24); background: rgba(12,16,32,.55); }
.loop-top { display: flex; justify-content: space-between; gap: 1rem; color: var(--copper-glow); font: .76rem var(--ff-sub); letter-spacing: .1em; text-transform: uppercase; }
.track { display: flex; gap: 8px; margin-top: .9rem; }
.segment { height: 5px; flex: 1; border-radius: 8px; background: rgba(250,250,248,.16); transition: background-color .3s; }
.segment.is-active { background: var(--copper-lt); }
.loop-question { font: 700 clamp(1.4rem, 2.8vw, 1.9rem)/1.25 var(--ff-display); margin: 1.6rem 0 .35rem; color: #FAFAF8; }
.loop-question:focus { outline: none; }
.loop-hint { color: var(--fg-muted); font-size: .92rem; margin-bottom: 1.1rem; }
.loop-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.choice {
  position: relative; text-align: left; min-height: 5rem; padding: 1rem 1rem 1rem 3rem;
  border-radius: 12px; border: 1px solid rgba(212,151,90,.45);
  background: rgba(196,129,61,.08); color: #FAFAF8; font-size: .95rem; line-height: 1.4;
  transition: background-color .2s, border-color .2s, transform .15s;
}
.choice::before { content: ''; position: absolute; left: 1rem; top: 1.05rem; width: 1.1rem; height: 1.1rem; border: 1.5px solid var(--copper-glow); border-radius: 4px; }
.choice:hover { background: rgba(196,129,61,.2); }
.choice:active { transform: scale(.98); }
.choice[aria-pressed="true"] { background: rgba(196,129,61,.3); border-color: var(--copper-glow); }
.choice[aria-pressed="true"]::before {
  background: var(--copper-glow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%230C1020' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}
.choice:disabled { opacity: .45; cursor: not-allowed; }
.loop-next { display: flex; justify-content: flex-end; margin-top: 1.25rem; }
.loop-next .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* Milo spricht (Avatar + Sprechblase) */
.milo-says { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: start; margin-top: 1.6rem; }
.milo-says[hidden] { display: none; }
.milo-avatar { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; background: var(--copper-lt); border: 2px solid var(--copper-glow); }
.milo-says-bubble { position: relative; background: #FAFAF8; color: var(--navy-900); border-radius: 14px; padding: 1rem 1.2rem; }
.milo-says-bubble::before { content: ''; position: absolute; left: -9px; top: 1.3rem; border: 9px solid transparent; border-right-color: #FAFAF8; border-left: 0; }
.feedback { margin: 0; font: italic 400 1.08rem/1.45 var(--ff-display); color: var(--navy-900); }
.loop-summary { margin-top: .9rem; padding-top: .8rem; border-top: 1px dashed rgba(154,92,34,.4); }
.loop-summary-title { font: 600 .7rem var(--ff-sub); letter-spacing: .16em; text-transform: uppercase; color: var(--copper-deep); margin-bottom: .4rem; }
.loop-summary ol { margin: 0; padding-left: 1.2rem; color: #3E3934; font-size: .92rem; }
.loop-summary li { margin-bottom: .25rem; }
.loop-summary li::marker { color: var(--copper-deep); }
.loop-summary .round-label { color: var(--copper-deep); font-weight: 600; }

/* Ergebnis, Video und Kupfer-Akzentfläche */
.result { text-align: center; padding-top: 1.5rem; }
.result h3 { font: 700 clamp(1.45rem, 3vw, 2.15rem)/1.25 var(--ff-display); color: #FAFAF8; margin-bottom: 0; }
.result h3:focus { outline: none; }
.video-frame { position: relative; max-width: 780px; margin: 1.5rem auto; border-radius: 12px; overflow: hidden; border: 1px solid rgba(212,151,90,.35); background: #000; }
.video-frame video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.video-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; background: rgba(12,16,32,.45); color: #FAFAF8; border: 0; font: 500 1rem var(--ff-body); }
.video-play[hidden] { display: none; }
.video-play-icon { width: 4.25rem; height: 4.25rem; border-radius: 50%; background: var(--copper-lt); position: relative; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.video-play-icon::after { content: ''; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: .75rem 0 .75rem 1.2rem; border-color: transparent transparent transparent var(--navy-900); }
.video-play:hover .video-play-icon, .video-play:focus-visible .video-play-icon { background: var(--copper-glow); }
/* V-017: dezente Video-Bedienung unter dem Bild (ersetzt die native Steuerung) */
.video-controls { display: flex; justify-content: center; margin: -.75rem auto 1.25rem; min-height: 2.75rem; }
.video-toggle { display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%; position: relative; background: none; color: rgba(250,250,248,.78); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.video-toggle[hidden] { display: none; }
.video-toggle::before { content: ''; position: absolute; width: 1.85rem; height: 1.85rem; border-radius: 50%; border: 1.5px solid rgba(212,151,90,.55); }
.video-toggle:hover { color: var(--copper-glow); }
.video-toggle:hover::before { border-color: var(--copper-glow); }
.video-toggle-icon { display: none; width: 1.15rem; height: 1.15rem; }
.video-toggle[data-state="pause"] .icon-pause,
.video-toggle[data-state="play"] .icon-play,
.video-toggle[data-state="replay"] .icon-replay { display: block; }
/* V-018: dezente Ladeanzeige an der Stelle der Video-Taste (unter dem Video, nicht über Milo) */
.video-loading { display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; }
.video-loading[hidden] { display: none; }
.video-loading-ring { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid rgba(212,151,90,.25); border-top-color: var(--copper-glow); animation: video-loading-spin .9s linear infinite; }
@keyframes video-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .video-loading-ring { animation: none; border-color: rgba(212,151,90,.55); } }
/* V-013: ruhiger Hinweis unter dem Video statt Kupferkasten */
.result-note { max-width: 34rem; margin: 0 auto; text-align: center; font: italic 400 1.08rem/1.5 var(--ff-display); color: var(--fg-muted); }
.result-note + .actions { margin-top: 1.5rem; }
.footnote { font-size: .86rem; color: var(--fg-muted); margin: 1.25rem 0 0; }
.footnote-safe { display: flex; align-items: center; gap: .45rem; }
.footnote-shield { flex: none; color: var(--copper-glow); opacity: .85; }

/* ---------- Wer ist Milo? (Steckbrief) ---------- */
.milo-about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.milo-card { position: relative; border-radius: 18px; padding: 2rem 1.75rem 1.75rem; background: #FAFAF8; color: var(--navy-900); box-shadow: 0 30px 60px rgba(0,0,0,.35); transform: rotate(-1.5deg); border-top: 4px solid var(--copper-lt); }
.milo-card-avatar { width: 6.5rem; height: 6.5rem; border-radius: 50%; background: var(--copper-lt); border: 3px solid #FAFAF8; box-shadow: 0 8px 20px rgba(12,16,32,.2); margin: -4.5rem 0 1rem; }
.milo-card-name { font: 700 2rem/1.1 var(--ff-display); margin: 0; }
.milo-card-role { font: italic 400 1.05rem var(--ff-display); color: var(--copper-deep); margin: .2rem 0 1.25rem; }
.milo-card-facts { margin: 0; display: grid; gap: .7rem; }
.milo-card-facts div { display: grid; grid-template-columns: 6.2rem 1fr; gap: .75rem; padding-top: .7rem; border-top: 1px dashed rgba(154,92,34,.35); }
.milo-card-facts dt { font: 600 .68rem/1.9 var(--ff-sub); letter-spacing: .14em; text-transform: uppercase; color: var(--copper-deep); }
.milo-card-facts dd { margin: 0; font-size: .95rem; color: #3E3934; }

/* ---------- Kontakt als „Prüfschein“ ---------- */
.contact-stage { background-image: radial-gradient(circle at 15% 20%, rgba(196,129,61,.08), transparent 45%); }
.ticket {
  position: relative; max-width: 860px; margin-inline: auto; text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 6vw, 4rem);
  background: var(--paper-tint); border-radius: 18px; border: 1.5px dashed rgba(154,92,34,.45);
  box-shadow: 0 24px 60px rgba(12,16,32,.08);
}
.ticket .eyebrow { justify-content: center; }
.ticket .eyebrow::before { display: none; }
.ticket .lead { margin-inline: auto; }
.contact-links { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.contact-links a { display: inline-block; padding: .6rem 1.15rem; border-radius: 99px; border: 1px solid var(--rule); color: var(--fg); text-decoration: none; font-size: .95rem; font-weight: 500; background: #FFFFFF; transition: border-color .2s, background-color .2s, transform .2s; }
.contact-links a:hover { border-color: var(--copper); background: rgba(184,113,46,.08); transform: translateY(-1px); }
.milo-back { margin: 2rem 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .milo-hero-grid { grid-template-columns: 1fr; gap: 0; }
  .milo-hero-copy { padding: 2.75rem 0 .5rem; }
  .milo-hero-figure { width: min(78%, 340px); margin-top: 4.5rem; }
  .milo-hero::before { top: auto; bottom: -10%; transform: none; right: -30%; width: 110vw; }
  .loop-choices { grid-template-columns: 1fr; gap: .6rem; }
  .choice { min-height: 3.5rem; }
  .loop-next .btn { width: 100%; }
  .milo-about { grid-template-columns: 1fr; gap: 4rem; }
  .milo-card { transform: none; margin-top: 2rem; }
  .stamp-small { position: static; margin-bottom: 1.25rem; }
  .stamp-badge { width: 140px; left: auto; right: max(-30%, calc((100% - 100vw) / 2 + 12px)); top: 38%; }
}
@media (max-width: 520px) {
  /* V-013: Reihenfolge Smartphone fest: Headline → Text → Buttons → Milo (Sprechblase, Stempel) → Laufband */
  .milo-hero-copy { order: 1; }
  .milo-hero-figure { order: 2; }
  .milo-says { grid-template-columns: 3.25rem 1fr; gap: .75rem; }
  .milo-avatar { width: 3.25rem; height: 3.25rem; }
  .bubble-hero { right: -6%; top: -15%; font-size: .9rem; }
  .stamp-badge { width: 120px; top: 29%; }
  .milo-card-facts div { grid-template-columns: 1fr; gap: .1rem; }
}
/* Laufband: EINE Umsetzung für alle Breiten (Regeln oben unter „Laufband“).
   V-015: Bei „Bewegung reduzieren“ keine Animation und kein Umbruch mehr in 7 Zeilen,
   sondern eine ruhende, einzeilige Leiste (gleiche Höhe), seitlich wischbar. */
@media (prefers-reduced-motion: reduce) {
  .loop-ticker { overflow-x: auto; scrollbar-width: none; }
  .loop-ticker::-webkit-scrollbar { display: none; }
  .loop-ticker-track span:nth-child(n+8) { display: none; }
  .symptom:hover { transform: none; }
}

/* Pausen-Schaltfläche (V-014/V-015): nur Tablet/Smartphone und nur, wenn sich das Band bewegt.
   Die Schaltfläche trägt im HTML das Attribut „hidden“ und wird erst durch diese Regel sichtbar.
   Fehlt diese CSS (z. B. veraltete Datei im Browser-Cache), bleibt sie unsichtbar statt leer. */
@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  .loop-ticker { position: relative; }
  .js .loop-ticker-toggle[hidden] {
    display: flex; align-items: center; justify-content: center;
    position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 3.4rem;
    padding: 0 0 0 .5rem; border: 0; color: #FFFFFF; cursor: pointer;
    background: linear-gradient(90deg, rgba(154,92,34,0) 0%, #9A5C22 38%);
  }
  .loop-ticker-icon { display: block; flex: none; position: relative; width: 1.85rem; height: 1.85rem; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); }
  .loop-ticker-icon::before, .loop-ticker-icon::after { content: ''; position: absolute; top: 50%; transform: translateY(-50%); width: 3px; height: .7rem; border-radius: 1px; background: currentColor; }
  .loop-ticker-icon::before { left: calc(50% - 4.5px); }
  .loop-ticker-icon::after { left: calc(50% + 1.5px); }
  .loop-ticker.is-paused .loop-ticker-icon::before { left: 50%; width: 0; height: 0; border-radius: 0; background: none; transform: translate(-35%, -50%); border-style: solid; border-width: .38rem 0 .38rem .6rem; border-color: transparent transparent transparent currentColor; }
  .loop-ticker.is-paused .loop-ticker-icon::after { display: none; }
  .loop-ticker.is-paused .loop-ticker-track { animation-play-state: paused; }
}

/* V-021 (02.12.2026): Milo-Steckbrief – neue Bezeichnung „Werkstatt-Kybernetiker“ als eigene Zeile über „Das Original mit Cyberpapagei.“
   Schrift, Farbe und Abstände der Rollenzeile bleiben wie bisher. */
.milo-card-title { display: block; font-style: normal; font-weight: 700; }

/* V-021 (02.12.2026): Lesbarkeit Smartphone/Tablet – Abschlusssätze der Symptomkarten und Übergang zum Engpass-Check
   in DM Sans, nicht kursiv. Hinweis und Link stehen untereinander. Desktop (ab 861 px) unverändert. */
@media (max-width: 860px) {
  .symptom .wink { font: 500 1rem/1.55 var(--ff-body); }
  .abm-note { font: 400 1.05rem/1.5 var(--ff-body); }
  .abm-note a { display: table; margin: .9rem 0 0; }
}
