/* Klassenstück Popcorn – Spielseite und Choreografie im bimbadi-Stil.
   Alles hängt unter .popcorn, damit nichts mit stil/bimbadi.css zusammenstößt (Knöpfe heißen hier .pk).
   Laufband und Kreis (Canvas) behalten ihren eigenen Look. */
.popcorn {
  --flaeche: #ffffff;
  --linie: #e4dccd;
  --leise: #6b6158;
  --akzent: #c9531c;
  --akzent-hell: #fde6d3;
  --radius: 16px;
  margin: 18px 0 10px; background: #fff; border-radius: 22px; padding: 14px 16px 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
}
.popcorn button, .popcorn select { font: inherit; color: inherit; }

.popcorn .pk {
  font: 800 17px/1.15 'Nunito', system-ui, sans-serif; color: var(--tinte);
  border: 3px solid #fff; background: #f4f1e8; border-radius: 12px; box-shadow: 0 2px 6px rgba(0,0,0,.12);
  padding: 8px 14px; cursor: pointer; min-height: 48px; min-width: 48px; transition: background .15s, transform .15s;
}
.popcorn .pk:hover { transform: translateY(-1px); }
.popcorn .pk[aria-pressed="true"] { background: var(--tinte); color: #fff; }
.popcorn .pk.gross {
  font: 400 24px/1 'Lilita One', system-ui, sans-serif; padding: 10px 22px; min-width: 9rem;
  background: var(--gelb); box-shadow: 0 4px 0 #c9a200, 0 6px 14px rgba(0,0,0,.2);
}
.popcorn .pk.gross.stopp { background: var(--tinte); color: #fff; box-shadow: 0 4px 0 #0e1738, 0 6px 14px rgba(0,0,0,.2); }
.popcorn .pk.farbe { display: inline-flex; align-items: center; gap: 7px; }
.popcorn .pk.farbe i { width: 18px; height: 18px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.15); }
.popcorn .pk.farbe[aria-pressed="true"] { background: var(--gf, var(--tinte)); color: #fff; }
.popcorn select.pk { padding-right: 8px; }

.popcorn .leiste { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; padding: 10px 0 4px; }
.popcorn .gruppe-st { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.popcorn .gruppe-st > .titel { font: 400 20px 'Gochi Hand', cursive; color: var(--bleistift); margin-right: 2px; }
.popcorn label.schalter { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.popcorn label.schalter input { width: 22px; height: 22px; accent-color: var(--akzent); }

.popcorn .teile { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 4px; }
.popcorn .teile .pk { font-size: 15px; min-height: 44px; padding: 6px 12px; text-align: left; }
.popcorn .teile .pk small { display: block; color: var(--leise); font-size: 12.5px; font-weight: 700; }
.popcorn .teile .pk[aria-current="true"] { background: var(--akzent-hell); box-shadow: 0 0 0 3px var(--akzent); }

.popcorn .info { display: flex; gap: 22px; align-items: stretch; flex-wrap: wrap; padding: 2px 4px 8px; }
.popcorn .info .teilname { font: 400 30px/1.1 'Lilita One', system-ui, sans-serif; }
.popcorn .info .geschichte { font-size: 18px; color: var(--leise); max-width: 60rem; }
.popcorn .info .zahl { font-weight: 700; color: var(--leise); }
.popcorn .info .zahl b { display: block; font: 400 36px/1 'Lilita One', system-ui, sans-serif; color: var(--tinte); }
.popcorn .info .zahl b.akkord { color: var(--akzent); }

.popcorn .buehne { position: relative; background: #fff; border: 2px solid var(--linie); border-radius: var(--radius); overflow: hidden; }
.popcorn #laufband { display: block; width: 100%; height: min(66vh, 680px); min-height: 420px; touch-action: pan-y; }
.popcorn .anweisung { font-size: 18px; margin: 10px 4px 0; min-height: 1.6em; }

.popcorn .legende { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 8px 4px 0; color: var(--leise); font-size: 15px; }
.popcorn .legende span b { color: var(--tinte); display: inline-block; min-width: 20px; text-align: center; }

.ki-hinweis { font-size: 15px; color: var(--bleistift); margin: 10px 4px 0; }

/* Werbevideo oben: bleibt ausgeblendet, bis popcorn/werbung.mp4 da ist */
.werbung { margin: 10px 0 18px; max-width: 760px; }
.werbung video { display: block; width: 100%; height: auto; border-radius: 16px; background: #000; box-shadow: 0 6px 18px rgba(0,0,0,.18); }

/* Choreografie */
.popcorn .rahmen { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, 1fr); gap: 18px; align-items: start; padding-top: 6px; }
.popcorn #kreis { display: block; width: 100%; aspect-ratio: 5 / 4; max-height: 80vh; }
.popcorn .text h2 { font: 400 28px/1.1 'Lilita One', system-ui, sans-serif; margin: 4px 0 6px; display: block; }
.popcorn .text h2::after { display: none; }
.popcorn .text .geschichte { font-size: 18px; color: var(--leise); margin: 0 0 12px; }
.popcorn .text .bewegung { font-size: 19px; line-height: 1.45; background: var(--akzent-hell); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 12px; }
.popcorn .text .zahlen { display: flex; gap: 28px; }
.popcorn .gruppen { display: grid; gap: 5px; margin-top: 12px; font-size: 16px; }
.popcorn .gruppen div { display: grid; grid-template-columns: 20px 4.5rem 1fr auto; gap: 8px; align-items: center; padding: 5px 10px; border-radius: 10px; border: 2px solid transparent; transition: background .12s, border-color .12s; }
.popcorn .gruppen div.an { border-color: var(--gf); background: color-mix(in srgb, var(--gf) 16%, white); }
.popcorn .gruppen i { width: 18px; height: 18px; border-radius: 50%; display: inline-block; }
.popcorn .gruppen .was { font-weight: 800; }
.popcorn .gruppen .rohr { color: var(--leise); font-size: 14px; }

@media (max-width: 900px) {
  .popcorn .rahmen { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .popcorn { padding: 10px 8px 12px; margin-left: -8px; margin-right: -8px; border-radius: 16px; }
  .popcorn #laufband { height: 62vh; min-height: 380px; }
  .popcorn .info { gap: 14px; }
  .popcorn .info .teilname { font-size: 23px; }
  .popcorn .info .zahl b { font-size: 28px; }
  .popcorn .leiste { gap: 8px 12px; }
}

/* Wege zu Choreografie und Lehrkraft-Blatt */
.popcornWege { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 6px 0 4px; }
