/* Caesar-Chiffre in der Academy (/academy/caesar-cipher/), seit 21.11.2026. Ergänzt site.css. */

.cz-syl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px !important; color: var(--muted); }
.cz-syl b { color: var(--ink); font-weight: 600; margin-right: 2px; }
.cz-syl span { white-space: nowrap; background: #FFFFFF; border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 9px; }
.cz-syl i { font-style: normal; color: #C9C8E0; }

.cz-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cz-mode { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: #F1F1F8; }
.cz-mode button { border: 0; background: none; padding: 7px 14px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.cz-mode button[aria-checked="true"] { background: #FFFFFF; color: var(--accent-ink); box-shadow: 0 1px 3px rgba(28, 27, 58, .15); }
.cz-key { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cz-key label { font-size: 13px; font-weight: 600; color: var(--ink); }
.cz-key input[type=number] { width: 64px; padding: 7px 8px; border: 1px solid #DCDCE8; border-radius: 10px; font-family: var(--head); font-weight: 700; font-size: 18px; text-align: center; color: var(--ink); }
.cz-key input[type=range] { width: 180px; accent-color: var(--accent); }
.cz-step { width: 34px; height: 34px; border-radius: 9px; border: 1px solid #DCDCE8; background: #FFFFFF; font-size: 18px; font-weight: 700; color: var(--ink); cursor: pointer; }
.cz-step:hover { border-color: var(--accent); color: var(--accent); }
.cz .pane textarea { min-height: 110px; }
.cz-mono { letter-spacing: .03em; }
.cz-formula { margin: 0; font-family: var(--mono); font-size: 14px; color: var(--accent-ink); }

.cz-steps { padding: 4px 18px 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.cz-abc { overflow-x: auto; padding: 12px 0 2px; display: flex; flex-direction: column; gap: 3px; }
.cz-abc__row { display: flex; gap: 3px; min-width: max-content; }
.cz-abc__row span { width: 26px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: #F6F6FB; font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--ink); }
.cz-abc__row--c span { background: var(--accent-soft); color: var(--accent-ink); }
.cz-abc__row .cz-abc__label { width: 58px; background: none !important; justify-content: flex-start; font-family: var(--text); font-size: 12px; font-weight: 600; color: var(--muted); }
.cz-work summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent); padding: 4px 0 8px; }
.cz-table td { font-variant-numeric: tabular-nums; padding-top: 5px; padding-bottom: 5px; }
.cz-table tr.is-wrap td { background: var(--amber-soft); }
.cz-hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

#panel-break .pane textarea { min-height: 90px; }
.cz-best { margin: 0 18px; padding: 14px 16px; border-radius: 12px; border: 1px solid #C9C8FF; background: var(--panel); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.cz-best[hidden] { display: none; }
.cz-best .eyebrow { width: 100%; }
.cz-best p { margin: 0; font-family: var(--mono); font-size: 16px; color: var(--ink); flex: 1 1 280px; word-break: break-word; }
.cz-best p b { font-family: var(--head); margin-right: 8px; color: var(--accent-ink); }
.cz-brute { margin: 12px 18px 18px; max-height: 420px; overflow-y: auto; }
.block .cz-brute { margin: 0; }
.cz-brute tr.is-best td { background: var(--green-soft); font-weight: 600; }
.block .cz-brute code, .cz-brute code { background: none; padding: 0; font-family: var(--mono); }

.cz-eq { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.cz-eq div { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 16px; background: #FCFCFF; display: flex; flex-direction: column; gap: 2px; }
.cz-eq span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cz-eq b { font-family: var(--mono); font-size: 18px; color: var(--ink); }
.cz-exam { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.cz-exam__card { border: 1px solid var(--line-2); border-radius: 14px; padding: 16px 18px; background: #FFFFFF; }
.cz-exam__card h3 { margin: 0 0 8px; font-family: var(--head); font-size: 16px; color: var(--ink); }
.cz-exam__card p, .cz-exam__card ol { margin: 0; font-size: 15px; }
.cz-exam__card ol { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.cz-output { border-radius: 12px; background: #F6F6FB; padding: 12px 16px; }
.cz-output span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cz-output pre { margin: 6px 0 0; font-family: var(--mono); font-size: 13.5px; color: var(--ink); white-space: pre-wrap; }
.cz-practice { border: 1px solid var(--line-2); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: #FFFFFF; }
.cz-task { margin: 0; font-size: 17px; color: var(--ink); }
.cz-practice__row { display: flex; flex-wrap: wrap; gap: 8px; }
.cz-practice__row input { flex: 1 1 260px; padding: 9px 12px; border: 1px solid #DCDCE8; border-radius: 10px; font-family: var(--mono); font-size: 15px; text-transform: uppercase; }
.cz-fb { margin: 0; font-weight: 600; min-height: 1.4em; }
.cz-fb.is-ok { color: var(--green); }
.cz-fb.is-bad { color: var(--red); }
.cz-solution summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent); }
.cz-solution p { margin: 8px 0; font-family: var(--mono); }

@media (max-width: 760px) {
  .cz-syl { font-size: 12px !important; gap: 4px 6px; }
  .cz-syl i { display: none; }
  .cz-bar { padding: 10px 14px; gap: 10px 14px; }
  .cz-key input[type=range] { display: none; }
  .cz .pane { padding: 12px 14px; }
  .cz .pane textarea { min-height: 70px; }
}
