/* Lernpfad Informatik 7 – styles for the Medien stations (M1–M5). Builds on the tokens in app.css. */

/* side picture next to a step (e.g. smartphone) */
.pic-side { float: right; width: 140px; margin: 0 0 12px 18px; }
@media (max-width: 760px) { .pic-side { float: none; margin: 0 auto 12px; } }

/* chips (Medien-only names, so they do not clash with the robot styles) */
.mchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.mchip {
  font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); color: var(--ink); border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
.mchip:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.mchip:disabled { cursor: default; opacity: .45; }
.mchip.on, .mchip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; opacity: 1; }
.mchip:focus-visible { outline: 3px solid var(--sel); outline-offset: 2px; }
.mchip-ico svg { width: 26px; height: 26px; display: block; }

/* path display */
.mpfad {
  font-weight: 700; font-size: 1.05rem; padding: 10px 14px; border-radius: 10px; margin: 8px 0;
  background: var(--ok-soft); color: var(--ok); border: 2px solid var(--ok); overflow-wrap: anywhere;
}
.mpfad-build { background: var(--bg); color: var(--ink); border-color: var(--line); border-style: dashed; }

/* folder tree */
.tree, .tree-kids { list-style: none; margin: 0; padding-left: 0; }
.tree-kids { padding-left: 28px; border-left: 2px dotted var(--line); margin-left: 14px; }
.tree { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.tree-row {
  font: inherit; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: none; border: 2px solid transparent; border-radius: 8px; padding: 3px 8px; color: var(--ink);
}
.tree-row:hover { background: var(--accent-soft); border-color: var(--accent); }
.tree-folder { font-weight: 600; }
.tree-folder::before { content: "▸"; color: var(--muted); width: 1em; }
.tree-folder.open::before { content: "▾"; }
.tree-ico { display: inline-flex; }
.tree-ico svg { width: 28px; height: 28px; display: block; }
.pfadbau { margin-top: 18px; padding-top: 12px; border-top: 2px solid var(--line); }

/* save dialog */
.savedlg { border: 2px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 0 16px 8px; max-width: 760px; }
.savedlg-head { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 10px 0; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.savedlg-row { border: none; padding: 6px 0; margin: 0; }
.savedlg-row legend { font-weight: 700; padding: 0; }
.savedlg-foot { margin-top: 6px; }

/* search builder */
.suchfeld {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px; margin: 10px 0;
  background: #fff; border: 2px solid var(--accent); border-radius: 999px; font-size: 1.15rem; font-weight: 600;
}
.suchfeld-ico svg { width: 28px; height: 28px; display: block; }

/* Bildnachweis */
.fundkarte { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 10px 0 14px; }
.fund-pic svg { width: 120px; height: 120px; display: block; }
.fund-info { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; }
.fund-info dt { font-weight: 700; color: var(--muted); }
.fund-info dd { margin: 0; display: flex; align-items: center; gap: 8px; }
.fund-badge svg { width: 90px; height: auto; display: block; }
.nachweis { font-style: italic; background: #fff; border-left: 6px solid var(--ok); border-radius: 8px; padding: 10px 14px; }

/* Fälle */
.faelle { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.fall { border: 2px solid var(--line); border-radius: var(--radius); padding: 12px; background: var(--bg); }
.fall.geklaert { border-color: var(--ok); background: var(--ok-soft); }
.fall-head { display: flex; gap: 12px; align-items: flex-start; }
.fall-head p { margin: 0; font-weight: 600; }
.fall-pic svg { width: 54px; height: 54px; display: block; }
.fall .fb { margin: 8px 0 0; font-size: .95rem; }

/* phishing mail */
.mail-wrap { border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 760px; margin: 10px 0; }
.mail-head { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 8px 14px; background: var(--accent-soft); border-bottom: 1px solid var(--line); }
.mail { padding: 14px 18px; background: #fff; font-size: 1.05rem; line-height: 1.9; }
.mail-teil { cursor: pointer; border-radius: 4px; padding: 1px 2px; }
.mail-teil:hover { background: var(--accent-soft); }
.mail-teil:focus-visible { outline: 3px solid var(--sel); }
.mail-teil.entdeckt { background: var(--hint-soft); color: var(--hint); font-weight: 700; text-decoration: underline wavy var(--hint); }
.fallen-liste li { margin: 6px 0; }
