/* Demo-Seite „Die Zeidler – Spielewelt“ (nutzt das Designsystem aus zeidler.css) */
.zd-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--zg-cream-100); }
.zd-page main { flex: 1; }
.zd-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--zg-gold-500); color: var(--zg-green-900); padding: 8px 16px; border-radius: 999px; font-weight: 700; }
.zd-skip:focus { left: 8px; }

/* Kopf */
.zd-header { background: var(--zg-green-900); color: var(--zg-cream-50); position: relative; padding: calc(var(--zg-s5) + env(safe-area-inset-top)) var(--zg-s5) var(--zg-s7); }
.zd-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 40px;
  background: no-repeat center bottom / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 34' preserveAspectRatio='none'%3E%3Cpath d='M0 34 L0 4 Q 520 52 1000 14 L1000 34 Z' fill='%23FBF5E6'/%3E%3C/svg%3E"); }
.zd-header__inner { max-width: 1100px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--zg-s3); }
.zd-logo { width: min(260px, 70vw); height: auto; }
.zd-title { font-size: var(--zg-fs-xxl); color: var(--zg-cream-50); }
.zd-title em { font-style: normal; color: var(--zg-gold-500); }

/* Einleitung */
.zd-overview { max-width: 1100px; margin: 0 auto; padding: var(--zg-s4) var(--zg-s4) var(--zg-s7); }
.zd-intro { display: flex; align-items: center; gap: var(--zg-s5); background: var(--zg-cream-50); border-radius: var(--zg-radius-lg); padding: var(--zg-s5); box-shadow: var(--zg-shadow-card); margin-top: calc(-1 * var(--zg-s4)); position: relative; }
.zd-intro__art { position: relative; flex: none; width: 140px; height: 150px; }
.zd-intro__kid { position: absolute; left: 0; bottom: 0; width: 86px; height: auto; }
.zd-intro__bee { position: absolute; right: 0; top: 0; width: 70px; height: auto; }
.zd-intro h2 { font-size: var(--zg-fs-xl); color: var(--zg-green-900); margin-bottom: var(--zg-s2); }
.zd-intro p { color: var(--zg-ink-soft); font-size: var(--zg-fs-md); }
.zd-section-title { font-size: var(--zg-fs-xl); color: var(--zg-green-900); margin: var(--zg-s7) 0 var(--zg-s5); text-align: center; }

/* Spielkarten */
.zd-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--zg-s5); grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.zd-card { background: var(--zg-cream-50); border-radius: var(--zg-radius-lg); overflow: hidden; box-shadow: var(--zg-shadow-card); display: flex; flex-direction: column; transition: transform var(--zg-dur) var(--zg-ease), box-shadow var(--zg-dur); }
.zd-card:hover { transform: translateY(-4px); box-shadow: 0 2px 0 rgba(29, 65, 30, .08), 0 18px 36px -14px rgba(29, 65, 30, .45); }
.zd-card__art { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; background: var(--zg-gold-200); }
.zd-card__body { padding: var(--zg-s4) var(--zg-s5) var(--zg-s5); display: flex; flex-direction: column; gap: var(--zg-s2); flex: 1; }
.zd-card__kicker { font-family: var(--zg-font-display); font-weight: 600; font-size: var(--zg-fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--zg-gold-700); }
.zd-card__title { font-size: var(--zg-fs-lg); color: var(--zg-green-900); }
.zd-card__text { color: var(--zg-ink-soft); flex: 1; }
.zd-card__badges { display: flex; gap: 6px; flex-wrap: wrap; min-height: 0; }
.zd-card__badges:empty { display: none; }
.zd-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--zg-gold-200); color: var(--zg-green-900); border-radius: 999px; padding: 2px 10px 2px 4px; font-size: 13px; font-weight: 700; }
.zd-badge svg { width: 18px; height: 18px; }
.zd-card__btn { margin-top: var(--zg-s2); }

/* Spielansicht */
.zd-player { max-width: 1100px; margin: 0 auto; padding: 0 var(--zg-s3) var(--zg-s4); display: flex; flex-direction: column; gap: var(--zg-s3); }
.zd-player[hidden] { display: none; }
.zd-player__bar { display: flex; align-items: center; gap: var(--zg-s3); margin-top: calc(-1 * var(--zg-s4)); position: relative; }
.zd-back { white-space: nowrap; flex: none; background: var(--zg-cream-50); min-height: 48px; padding: 0 var(--zg-s4); font-size: var(--zg-fs-md); }
.zd-player__title { font-family: var(--zg-font-display); font-weight: 600; color: var(--zg-green-900); font-size: var(--zg-fs-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zd-player__frame { border-radius: var(--zg-radius-lg); overflow: hidden; box-shadow: var(--zg-shadow-card); background: var(--zg-cream-100); height: calc(100vh - 150px); height: calc(100dvh - 150px); min-height: 520px; max-height: 900px; }
.zd-player__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.zd-playing .zd-overview { display: none; }
.zd-playing .zd-header { padding-bottom: var(--zg-s6); padding-top: calc(var(--zg-s3) + env(safe-area-inset-top)); }
.zd-playing .zd-header .zd-title { display: none; }
.zd-playing .zd-logo { width: 170px; }

/* Fuß */
.zd-footer { background: var(--zg-green-900); color: var(--zg-cream-100); padding: var(--zg-s6) var(--zg-s5) calc(var(--zg-s6) + env(safe-area-inset-bottom)); }
.zd-footer__inner { max-width: 1100px; margin: 0 auto; display: flex; gap: var(--zg-s5); align-items: flex-start; font-size: var(--zg-fs-sm); }
.zd-footer__inner p + p { margin-top: var(--zg-s2); }
.zd-footer__name { font-family: var(--zg-font-display); font-weight: 600; color: var(--zg-gold-500); font-size: var(--zg-fs-md); }
.zd-footer a { color: var(--zg-gold-400); }
.zd-footer img { flex: none; }

@media (max-width: 640px) {
  .zd-intro { flex-direction: column; text-align: center; padding: var(--zg-s4); }
  .zd-intro__art { width: 130px; height: 120px; }
  .zd-intro__kid { width: 70px; }
  .zd-player { padding: 0 0 var(--zg-s2); }
  .zd-player__bar { padding: 0 var(--zg-s3); }
  .zd-player__title { display: none; }
  .zd-player__frame { border-radius: 0; height: calc(100dvh - 128px); min-height: 480px; }
  .zd-footer__inner { flex-direction: column; align-items: center; text-align: center; }
}
