/* medicIQ Schnupper-Einsatz – Gestaltung
   Farben, Schrift und Knöpfe wie in den Lernmodulen (xabcde/xabcde.css), damit Rahmen und Module wie aus einem
   Guss wirken. Hell ist Standard (RS), html:not(.light-mode) ist dunkel (NotSan-Einsatz). Wie die Module
   ohne vh-Höhen und ohne position: fixed – eingebettet wächst das iframe mit dem Inhalt. */
:root {
    --bg: #1e2327;
    --flaeche: #1a2026;
    --flaeche-2: #141a1f;
    --flaeche-3: rgba(255, 255, 255, 0.04);
    --linie: rgba(255, 255, 255, 0.08);
    --linie-2: rgba(255, 255, 255, 0.14);
    --text: #cbd5e1;
    --text-stark: #f1f5f9;
    --text-leise: #8b9bab;
    --akzent: #179299;
    --akzent-text: #7fe0d8;
    --akzent-weich: rgba(23, 146, 153, 0.16);
    --akzent-glow: rgba(23, 146, 153, 0.4);
    --gut: #2ecc71;
    --gut-weich: rgba(46, 204, 113, 0.14);
    --warn: #f5b041;
    --warn-weich: rgba(243, 156, 18, 0.14);
    --schatten: 0 18px 40px rgba(0, 0, 0, 0.30);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: dark;
}
html.light-mode {
    --bg: #f4f7f6;
    --flaeche: #ffffff;
    --flaeche-2: #f4f7f6;
    --flaeche-3: rgba(33, 64, 62, 0.04);
    --linie: #e2e8e6;
    --linie-2: #cfdad8;
    --text: #34504d;
    --text-stark: #10241f;
    --text-leise: #6b7d7a;
    --akzent-text: #0f6f75;
    --akzent-weich: rgba(23, 146, 153, 0.10);
    --akzent-glow: rgba(23, 146, 153, 0.28);
    --gut: #1e8449;
    --gut-weich: rgba(30, 132, 73, 0.10);
    --warn: #a85a08;
    --warn-weich: rgba(168, 90, 8, 0.09);
    --schatten: 0 18px 40px rgba(33, 64, 62, 0.10);
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
    background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6;
    -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .3s;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

.demo { max-width: 920px; margin: 0 auto; padding: 18px 20px 8px; }

/* ============ Kopf mit Stationen ============ */
.demo-kopf { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.demo-marke { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--text-leise); }
.demo-marke strong { color: var(--text-stark); }
.marke-symbol {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: none;
    background: var(--akzent-weich); color: var(--akzent-text);
}
.marke-symbol svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.stationen { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.stationen[hidden] { display: none; }
.stationen li {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 6px; border-radius: 99px;
    border: 1px solid var(--linie); background: var(--flaeche-3); font-size: .78rem; font-weight: 700; color: var(--text-leise);
}
.stationen li b { font-weight: 700; }
.stationen li span {
    display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
    background: var(--linie); color: var(--text); font-size: .7rem; font-weight: 800;
}
.stationen li.jetzt { border-color: var(--akzent); color: var(--akzent-text); background: var(--akzent-weich); }
.stationen li.jetzt span { background: var(--akzent); color: #fff; }
.stationen li.fertig { color: var(--gut); }
.stationen li.fertig span { background: var(--gut-weich); color: var(--gut); }

/* ============ Text und Knöpfe (wie in den Modulen) ============ */
h1 { margin: 12px 0 10px; font-size: clamp(1.7rem, 4.4vw, 2.4rem); line-height: 1.15; font-weight: 800; color: var(--text-stark); letter-spacing: -.3px; text-wrap: balance; }
h2 { margin: 10px 0 8px; font-size: 1.32rem; line-height: 1.3; font-weight: 800; color: var(--text-stark); }
h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 800; color: var(--text-stark); }
p { margin: 0 0 12px; }
strong { color: var(--text-stark); }
.leise { color: var(--text-leise); font-size: .9rem; }
.mittig { text-align: center; justify-content: center; }
.etikett {
    display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 99px;
    background: var(--akzent-weich); border: 1px solid rgba(23, 146, 153, 0.3);
    color: var(--akzent-text); font-size: .72rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
}
.knopf {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--linie-2);
    background: var(--flaeche-3); color: var(--text-stark); font-size: .95rem; font-weight: 700; text-decoration: none;
    transition: border-color .15s, background .15s, color .15s, transform .1s, opacity .15s;
}
.knopf:hover { border-color: var(--akzent); }
.knopf:active { transform: translateY(1px); }
.knopf:disabled { opacity: .45; cursor: default; box-shadow: none; }
.knopf.primaer { background: var(--akzent); border-color: var(--akzent); color: #fff; box-shadow: 0 8px 20px var(--akzent-glow); }
.knopf.primaer:hover:not(:disabled) { background: #1aa4ac; }
.knopf.gross { min-height: 54px; padding: 0 26px; font-size: 1.05rem; border-radius: 14px; }
.knopf-reihe { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 12px 0; }
.link-knopf { background: none; border: 0; padding: 0; color: var(--akzent-text); font-weight: 700; font-size: .86rem; text-decoration: underline; text-underline-offset: 3px; }

/* ============ Start: Rollen ============ */
.start { text-align: center; padding: 10px 0 6px; }
.start .einleitung { max-width: 640px; margin: 0 auto 26px; font-size: 1.04rem; }
.rollen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; text-align: left; margin-bottom: 18px; }
.rolle {
    position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px; border-radius: 20px;
    background: var(--flaeche); border: 1px solid var(--linie); box-shadow: var(--schatten);
}
.rolle.vorgewaehlt { border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-weich), var(--schatten); }
.rolle-marke {
    align-self: flex-start; padding: 4px 11px; border-radius: 99px; font-size: .74rem; font-weight: 800; letter-spacing: .6px;
    background: var(--akzent-weich); color: var(--akzent-text);
}
.rolle-notsan .rolle-marke { background: #1e2327; color: #7fe0d8; }
.rolle h2 { margin: 2px 0 0; }
.rolle .leitsatz { margin: 0; color: var(--text-leise); font-weight: 600; }
.rolle > .knopf { margin-top: auto; }
.mini-stationen { margin: 4px 0 6px; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 8px; }
.mini-stationen li { counter-increment: st; display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; align-items: start; }
.mini-stationen li::before {
    content: counter(st); grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
    background: var(--flaeche-3); border: 1px solid var(--linie-2); font-size: .78rem; font-weight: 800; color: var(--text-stark);
}
.mini-stationen b { color: var(--text-stark); font-size: .95rem; line-height: 1.35; }
.mini-stationen span { font-size: .8rem; color: var(--text-leise); }
.land-wahl { display: grid; gap: 4px; font-size: .82rem; font-weight: 700; color: var(--text-leise); }
.land-wahl select {
    min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--linie-2);
    background: var(--flaeche-2); color: var(--text-stark); font-weight: 600;
}
.land-hinweis { margin: -4px 0 0; min-height: 0; font-size: .82rem; color: var(--warn); }
.land-hinweis:empty { display: none; }

/* ============ Station ============ */
.station-kopf { margin-bottom: 14px; }
.auftrag { max-width: 720px; font-size: 1rem; }
.original {
    display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; border-radius: 10px;
    background: var(--flaeche-3); border: 1px solid var(--linie); font-size: .84rem; color: var(--text-leise);
}
.original > span:first-child { color: var(--gut); font-weight: 800; }
/* Kein eigener Rahmen: Das Modul bringt seine Karte mit; die Fläche reicht bis an den Rand der Demo. */
.modul-rahmen { margin: 0 -20px; }
.modul-rahmen iframe { display: block; width: 100%; height: 640px; border: 0; background: transparent; }
.station-fuss { margin-top: 16px; }
.status { margin: 0; font-size: .9rem; color: var(--text-leise); }
.status.gut { color: var(--gut); font-weight: 700; }

/* ============ Einsatzbericht ============ */
.bericht { padding-bottom: 6px; }
.bericht-liste { margin: 18px 0 10px; padding: 0; list-style: none; display: grid; gap: 10px; }
.bericht-liste li {
    display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 16px;
    background: var(--flaeche); border: 1px solid var(--linie);
}
.bericht-liste .symbol {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 800;
    background: var(--flaeche-3); color: var(--text-leise);
}
.bericht-liste li.gut .symbol { background: var(--gut-weich); color: var(--gut); }
.bericht-liste li.mittel .symbol { background: var(--warn-weich); color: var(--warn); }
.bericht-liste b { display: block; color: var(--text-stark); }
.bericht-liste small { display: block; font-size: .78rem; color: var(--text-leise); }
.bericht-liste p { margin: 4px 0 0; font-size: .92rem; }
.kasten { margin: 16px 0; padding: 16px 18px; border-radius: 16px; border-left: 4px solid var(--akzent); background: var(--akzent-weich); }
.kasten p { margin: 0 0 10px; }
.kasten > :last-child { margin-bottom: 0; }
.wechsel-kasten { border-left-color: var(--linie-2); background: var(--flaeche-3); }
.paket { margin: 20px 0; padding: 18px 20px; border-radius: 18px; background: var(--flaeche); border: 1px solid var(--linie); }
.paket ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.paket li { position: relative; padding-left: 26px; font-size: .94rem; }
.paket li::before { content: '✓'; position: absolute; left: 2px; top: 0; color: var(--akzent); font-weight: 800; }
.cta { display: grid; justify-items: center; gap: 8px; margin: 26px 0 8px; text-align: center; }
.cta small { color: var(--text-leise); font-size: .84rem; }

.demo-fuss { margin: 18px 0 12px; font-size: .76rem; color: var(--text-leise); text-align: center; }

/* Eingebettet auf der Startseite: Überschrift und Einleitung stehen im Abschnitt drumherum */
html.eingebettet .demo-marke, html.eingebettet .start > .etikett, html.eingebettet .start > h1,
html.eingebettet .start > .einleitung { display: none; }
html.eingebettet .demo { padding-top: 22px; }
html.eingebettet .demo-kopf { justify-content: center; }
html.eingebettet .demo-kopf:has(.stationen[hidden]) { display: none; }

@media (prefers-reduced-motion: reduce) {
    body, .knopf { transition: none; }
}

/* ============ Handy ============ */
@media (max-width: 700px) {
    .demo { padding: 14px 14px 6px; }
    .rollen { grid-template-columns: minmax(0, 1fr); }
    .rolle { padding: 18px 16px; }
    /* Stationsleiste in einer Zeile: nur die aktuelle Station mit Namen */
    .stationen { flex-wrap: nowrap; }
    .stationen li { padding: 4px; font-size: .74rem; }
    .stationen li.jetzt { padding-right: 10px; }
    .stationen li:not(.jetzt) b { display: none; }
    .modul-rahmen { margin: 0 -14px; }
    .knopf.gross { width: 100%; }
}
