  :root {
    --paper: #fffdf7;
    --ink: #2b2a4c;
    --soft: #6b6a8a;
    --sun: #ffc93c;
    --berry: #ef5b7b;
    --sky: #4aa8e0;
    --leaf: #3fb57f;
    --line: #d9d5c7;
    --bg: #fdf1d6;
  }
  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", "Trebuchet MS", system-ui, sans-serif;
    font-size: 18px;
    line-height: 1.4;
  }

  /* ---------- Steuerleiste (nur Bildschirm) ---------- */
  .bar {
    max-width: 820px;
    margin: 0 auto;
    padding: 16px 16px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: flex-end;
  }
  .bar fieldset {
    border: 0; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 4px;
  }
  .bar legend { font-size: 13px; font-weight: 700; color: var(--soft); padding: 0; }
  .seg { display: inline-flex; background: #fff; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
  .seg label { cursor: pointer; }
  .seg input { position: absolute; opacity: 0; pointer-events: none; }
  .seg span { display: block; padding: 7px 14px; font-weight: 700; font-size: 15px; }
  .seg input:checked + span { background: var(--ink); color: #fff; }
  .seg input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: -3px; }
  .spacer { flex: 1 1 auto; }
  button {
    font: inherit; font-weight: 800; font-size: 15px;
    border: 2px solid var(--ink); border-radius: 999px;
    padding: 8px 16px; cursor: pointer;
    background: #fff; color: var(--ink);
    box-shadow: 0 3px 0 var(--ink);
    transition: transform .08s, box-shadow .08s;
  }
  button:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
  button:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
  .btn-sun { background: var(--sun); }
  .btn-leaf { background: var(--leaf); color: #fff; }
  .actions { display: flex; flex-wrap: wrap; gap: 10px; }

  /* ---------- Blatt ---------- */
  .sheet {
    max-width: 820px;
    margin: 16px auto 40px;
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 22px;
    box-shadow: 8px 8px 0 var(--ink);
    padding: 26px 30px 22px;
  }
  .head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
  .head h1 { margin: 0; font-size: 34px; line-height: 1.1; letter-spacing: -.5px; }
  .head h1 span { color: var(--berry); }
  .mascot { font-size: 44px; line-height: 1; }
  .fields { margin-left: auto; display: flex; gap: 18px; font-weight: 700; font-size: 16px; }
  .fields div { display: flex; align-items: flex-end; gap: 6px; }
  .fields i { display: inline-block; width: 150px; border-bottom: 2px solid var(--ink); height: 1.3em; }
  .fields div:last-child i { width: 90px; }
  .intro { margin: 8px 0 0; color: var(--soft); font-size: 16px; }

  section { margin-top: 18px; }
  h2 {
    display: flex; align-items: center; gap: 10px;
    margin: 0 0 10px; font-size: 21px;
  }
  h2 b {
    display: inline-grid; place-items: center;
    width: 32px; height: 32px; border-radius: 50%;
    color: #fff; font-size: 18px; flex: none;
    border: 2px solid var(--ink);
  }
  .s1 h2 b { background: var(--berry); }
  .s2 h2 b { background: var(--sky); }
  .s3 h2 b { background: var(--leaf); }
  .s4 h2 b { background: var(--sun); color: var(--ink); }
  h2 small { font-weight: 600; font-size: 15px; color: var(--soft); }

  .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 14px; }
  .grid.wide { grid-template-columns: repeat(2, 1fr); }
  .task {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    font-size: 25px; font-weight: 800;
    font-variant-numeric: tabular-nums;
    padding: 6px 4px;
    white-space: nowrap;
  }
  .wide .task { justify-content: flex-start; font-size: 22px; gap: 8px; }
  .n { min-width: 1.2em; text-align: center; }
  .op { color: var(--soft); }
  .emo { font-size: 21px; letter-spacing: 1px; white-space: normal; max-width: 6.2em; line-height: 1.25; }
  .task input {
    width: 50px; height: 44px;
    font: inherit; text-align: center; color: var(--ink);
    background: #fff;
    border: 2px solid var(--ink); border-radius: 10px;
    padding: 0;
  }
  .task input:focus { outline: 3px solid var(--sky); outline-offset: 1px; }
  .task input.ok { background: #d9f5e6; border-color: var(--leaf); }
  .task input.no { background: #ffe1e7; border-color: var(--berry); }

  .foot {
    margin-top: 18px; padding-top: 12px;
    border-top: 2px dashed var(--line);
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    font-weight: 700;
  }
  .stars { font-size: 30px; letter-spacing: 4px; }
  .stars span { display: inline-block; filter: grayscale(1); opacity: .35; }
  .stars.on1 span:nth-child(-n+1), .stars.on2 span:nth-child(-n+2), .stars.on3 span { filter: none; opacity: 1; }
  #result { font-size: 18px; min-height: 1.4em; }
  .print-only { display: none; }

  @media (max-width: 640px) {
    .sheet { margin: 14px 10px 30px; padding: 18px 14px; box-shadow: 5px 5px 0 var(--ink); }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .grid.wide { grid-template-columns: 1fr; }
    .head h1 { font-size: 27px; }
    .fields { margin-left: 0; width: 100%; }
    .fields i { width: 110px; }
    .spacer { display: none; }
  }

  /* ---------- Druck ---------- */
  @page { size: A4; margin: 12mm; }
  @media print {
    body { background: #fff; font-size: 15px; }
    .bar, .screen-only { display: none !important; }
    .print-only { display: block; }
    .sheet { max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; padding: 0; background: #fff; }
    section { margin-top: 14px; break-inside: avoid; }
    .task input { background: #fff !important; border-color: var(--ink) !important; color: transparent; }
    .stars span { filter: grayscale(1) !important; opacity: .45 !important; }
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  }

  /* ---------- Navigation zwischen den Blättern ---------- */
  .tabs { max-width: 820px; margin: 0 auto; padding: 16px 16px 0; display: flex; gap: 8px; flex-wrap: wrap; }
  .tabs a {
    text-decoration: none; color: var(--ink); background: #fff;
    border: 2px solid var(--ink); border-radius: 999px;
    padding: 6px 14px; font-weight: 800; font-size: 15px;
  }
  .tabs a[aria-current] { background: var(--ink); color: #fff; }
  .tabs a:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

  /* ---------- Leseblatt ---------- */
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .pic { font-size: 34px; line-height: 1; flex: none; }
  .opts { display: flex; gap: 8px; flex-wrap: wrap; }
  .opt {
    box-shadow: none; border-radius: 12px;
    padding: 5px 12px; font-size: 21px; font-weight: 800; background: #fff;
  }
  .opt:active { transform: none; box-shadow: none; }
  .opt.sel { background: var(--sun); }
  .opt.ok { background: #d9f5e6; border-color: var(--leaf); }
  .opt.no { background: #ffe1e7; border-color: var(--berry); }
  .opt.img { font-size: 30px; padding: 2px 10px; line-height: 1.3; }
  .word { letter-spacing: 1px; }
  .task input.letter { width: 42px; text-transform: uppercase; }
  .sent {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    font-size: 22px; font-weight: 700; padding: 6px 0;
    border-bottom: 2px dotted var(--line);
  }
  .sent .opts { flex-wrap: nowrap; flex: none; }
  @media (max-width: 640px) {
    .grid.three { grid-template-columns: repeat(2, 1fr); }
    .sent { font-size: 19px; }
  }
  @media print {
    .tabs { display: none !important; }
    .opt { background: #fff !important; border-color: var(--ink) !important; }
  }

  /* ---------- Bienenblatt ---------- */
  .head h1 span { color: #d6304f; }
  .facts {
    margin-top: 14px; padding: 12px 16px;
    background: #ffeceb; border: 2px solid var(--ink); border-radius: 16px;
  }
  .facts h2 { font-size: 19px; margin-bottom: 6px; }
  .facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
  .facts li { display: flex; gap: 8px; align-items: baseline; font-size: 19px; font-weight: 700; }
  .facts li span { flex: none; }
  .facts li b { color: #c2213f; }
  .body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px 20px; align-items: center; }
  .bee { width: 100%; height: auto; display: block; }
  .bee text { font: 800 15px ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; fill: #fff; text-anchor: middle; dominant-baseline: central; }
  .rows .task { justify-content: flex-start; font-size: 21px; white-space: normal; }
  .num {
    display: inline-grid; place-items: center; flex: none;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--berry); color: #fff; font-size: 16px; border: 2px solid var(--ink);
  }
  .rows .opt { font-size: 19px; padding: 4px 10px; }
  .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .step {
    display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
    border: 2px solid var(--ink); border-radius: 14px; background: #fff; padding: 10px 8px;
    font-size: 17px; font-weight: 700; line-height: 1.25;
  }
  .step .pic { font-size: 38px; }
  .step input, .rows input {
    width: 46px; height: 42px; font: inherit; font-size: 23px; font-weight: 800; text-align: center;
    color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 0;
  }
  .step input { margin-top: auto; }
  input.ok { background: #d9f5e6; border-color: var(--leaf); }
  input.no { background: #ffe1e7; border-color: var(--berry); }
  .gap { display: inline-block; width: 3.2em; border-bottom: 3px solid var(--ink); margin: 0 2px; }
  .sent .opts { flex-wrap: wrap; justify-content: flex-end; }
  .wow { margin: 14px 0 0; padding: 8px 14px; border: 2px dashed var(--sky); border-radius: 14px; font-weight: 700; font-size: 17px; }
  @media (max-width: 640px) {
    .facts ul { grid-template-columns: 1fr; }
    .body { grid-template-columns: 1fr; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .sent { flex-wrap: wrap; }
    .sent .opts { flex-wrap: wrap; justify-content: flex-start; }
  }
  @media print {
    .facts { padding: 8px 12px; }
    .facts li { font-size: 15px; }
    .rows .task { font-size: 17px; padding: 3px 4px; }
    .rows .opt, .opt { font-size: 16px; }
    .sent { font-size: 17px; padding: 4px 0; }
    .step { font-size: 14px; padding: 6px; }
    .step .pic { font-size: 28px; }
    .bee { max-height: 52mm; margin: 0 auto; }
    input { background: #fff !important; border-color: var(--ink) !important; color: transparent !important; }
    .wow { font-size: 14px; margin-top: 10px; }
    h2 { font-size: 18px; margin-bottom: 6px; }
    section { margin-top: 10px; }
  }
  .rows .emo { max-width: none; font-size: 22px; letter-spacing: 2px; line-height: 1.3; }
  .rows .count { flex-wrap: wrap; }
  .rows .count .q { display: flex; align-items: center; gap: 8px; width: 100%; }
  @media print { .rows .emo { font-size: 18px; } }
