/* Seitenspezifische Stile der Startseite. Tokens/Resets siehe shared.css. */

body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 100%;
  padding: clamp(20px, 4vw, 48px);
}

a { color: inherit; text-decoration: none; }

.home { width: min(880px, 100%); }

/* ---------- BRAND ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(28px, 5vw, 44px);
}
.brand-note {
  flex: none;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: radial-gradient(120% 90% at 15% 10%, var(--note-hi) 0%, var(--note) 55%);
  color: var(--note-ink);
  font-size: 26px; font-weight: 800;
  box-shadow: var(--shadow-note);
  transform: rotate(-3deg);
}
.brand h1 {
  margin: 0;
  font-size: clamp(28px, 4.4vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand .tagline {
  margin: 4px 0 0;
  opacity: .7;
  font-size: clamp(14px, 1.8vw, 17px);
}

/* ---------- RESUME BANNER ---------- */
.resume-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(52,179,107,.12);
  border: 1px solid rgba(52,179,107,.4);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 600;
}
.resume-banner a {
  background: var(--good);
  padding: 7px 14px;
  border-radius: 9px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .15s ease, transform .12s ease;
}
.resume-banner a:hover { background: var(--good-dark); transform: translateY(-1px); }

/* ---------- ACTION CARDS ---------- */
.actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2.4vw, 22px);
}
@media (max-width: 640px) { .actions { grid-template-columns: 1fr; } }

.action-card {
  display: block;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  padding: clamp(24px, 3.6vw, 34px);
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.action-card:hover, .action-card:focus-visible {
  transform: translateY(-4px);
  background: rgba(255,255,255,.07);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  outline: none;
}
.action-card .icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  font-size: 24px;
  margin-bottom: 18px;
}
.action-card.play .icon { background: rgba(52,179,107,.18); border: 1px solid rgba(52,179,107,.4); }
.action-card.edit .icon { background: rgba(255,223,107,.18); border: 1px solid rgba(255,223,107,.4); }

.action-card h2 {
  margin: 0 0 8px;
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 800;
  letter-spacing: -.01em;
}
.action-card p {
  margin: 0 0 18px;
  opacity: .7;
  font-size: 14.5px;
  line-height: 1.5;
}
.action-card .cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
}
.action-card.play .cta { color: #7be3aa; }
.action-card.edit .cta { color: var(--note); }
.action-card .cta .arrow { transition: transform .15s ease; }
.action-card:hover .cta .arrow { transform: translateX(3px); }

/* ---------- SPIELREGELN (Erklärung für neue Lehrpersonen) ---------- */
.rules {
  margin: clamp(22px, 3.4vw, 30px) 2px 0;
  max-width: 640px;
}
.rules summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--note);
}
.rules summary::-webkit-details-marker { display: none; }
.rules summary .chevron {
  display: inline-block;
  opacity: .7;
  transition: transform .15s ease;
}
.rules[open] summary .chevron { transform: rotate(90deg); }
.rules ol {
  margin: 14px 0 0;
  padding-left: 22px;
  opacity: .8;
  font-size: 14px;
  line-height: 1.65;
}
.rules li { margin-bottom: 8px; }
.rules li:last-child { margin-bottom: 0; }
.rules li b { color: #fff; font-weight: 700; }

/* ---------- HINT + FOOTER ---------- */
.hint {
  margin: clamp(22px, 3.4vw, 30px) 2px 0;
  opacity: .55;
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 640px;
}
.launcher-footer {
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.55);
  font-size: 12.5px;
}
.launcher-footer-copy { margin: 0; }
.launcher-footer-links {
  display: flex;
  gap: 14px;
}
.launcher-footer-links a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.24);
  text-underline-offset: 3px;
}
.launcher-footer-links a:hover,
.launcher-footer-links a:focus-visible { color: #fff; }

@media (max-width: 640px) {
  .launcher-footer {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}
