/* Start- und Erklaerseiten (index.html, warum-konto.html, projekt.html).
   Baut auf den Tokens und der Kopfleiste aus style.css auf. */

.site { width: 100%; max-width: 980px; display: flex; flex-direction: column; gap: 56px; padding-bottom: 8px; }
.site h1, .site h2, .site h3 { color: var(--ink); letter-spacing: -0.02em; }
.site p { line-height: 1.6; }
.site a { color: var(--accent-dark); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px; border: 0; font: inherit; font-size: 16px; font-weight: 700;
  background: var(--accent); color: #fff !important; text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 16px rgba(58, 111, 216, 0.28);
}
.btn:hover, .btn:focus-visible { background: var(--accent-dark); }
.btn-ghost { background: #fff; color: var(--accent-dark) !important; box-shadow: var(--card-shadow); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: #f2f6fe; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.section-head { max-width: 62ch; margin-bottom: 22px; }
.section-head h2 { font-size: 28px; line-height: 1.2; margin: 0 0 8px; }
.section-head p { margin: 0; color: var(--muted); font-size: 16px; }

/* --- Hero --- */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center; padding: 28px 8px 0; }
.hero h1 { font-size: clamp(32px, 5.4vw, 52px); line-height: 1.08; margin: 0 0 16px; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 18px; color: var(--muted); margin: 0 0 24px; max-width: 46ch; }
.hero-note { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }
.hero-art { display: flex; justify-content: center; }
.mini-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); width: min(100%, 300px); aspect-ratio: 1;
  background: #fff; border-radius: 20px; padding: 14px; gap: 0;
  box-shadow: 0 20px 50px rgba(40, 70, 130, 0.18); transform: rotate(2.5deg);
}
.mini-grid span {
  display: flex; align-items: center; justify-content: center; font-size: clamp(22px, 5vw, 32px); font-weight: 700;
  color: var(--ink); border: 1px solid var(--line-thin);
}
.mini-grid span.n { color: var(--accent); }
.mini-grid span.e { background: var(--accent-soft); }
.mini-grid span:nth-child(4n+2) { border-right: 2.5px solid var(--line-thick); }
.mini-grid span:nth-child(n+9):nth-child(-n+12) { border-top: 2.5px solid var(--line-thick); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fact { background: #fff; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--card-shadow); }
.fact b { display: block; font-size: 30px; line-height: 1.1; color: var(--accent-dark); letter-spacing: -0.02em; }
.fact span { font-size: 13.5px; color: var(--muted); }

/* --- Karten-Raster --- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--card-shadow); }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 12px; }
.card h3 { font-size: 17px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.card .tag { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--accent-dark); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; }

/* --- Raetsel-Katalog --- */
.catalog { display: flex; flex-direction: column; gap: 28px; }
.cat h3 { font-size: 18px; margin: 0 0 4px; }
.cat > p { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; }
.pz {
  display: flex; flex-direction: column; gap: 2px; background: #fff; border-radius: 12px; padding: 12px 14px;
  text-decoration: none; box-shadow: var(--card-shadow); border: 1px solid transparent; color: var(--ink) !important;
  transition: transform .12s ease, border-color .12s ease;
}
.pz b { font-size: 15px; color: var(--accent-dark); }
.pz span { font-size: 13px; color: var(--muted); line-height: 1.4; }
@media (hover: hover) { .pz:hover { border-color: #c4d6f6; transform: translateY(-2px); } }

/* --- Schritte --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 24px 22px 22px; box-shadow: var(--card-shadow); }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: -14px; left: 20px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: 6px 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* --- Hervorgehobene Baender --- */
.band { background: linear-gradient(135deg, #2f5fc4, #4a82ea); color: #fff; border-radius: 22px; padding: 36px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; box-shadow: 0 16px 40px rgba(47, 95, 196, 0.28); }
.site .band h2 { color: #fff; font-size: 28px; line-height: 1.2; margin: 0 0 10px; }
.band p { margin: 0 0 18px; color: #e3ecff; font-size: 16px; }
.site .band a.btn { background: #fff; color: var(--accent-dark) !important; box-shadow: none; }
.site .band a.btn:hover { background: #eaf1ff; }
.site .band a.btn-ghost { background: transparent; color: #fff !important; border: 2px solid rgba(255, 255, 255, 0.55); }
.site .band a.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.band ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.band li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.band li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--card-shadow); }
.panel h3 { margin: 0 0 10px; font-size: 18px; }
.panel ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.panel li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.5; color: #33445a; }
.panel li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #1e7a3c; font-weight: 800; }
.panel.muted li::before { content: "–"; color: var(--note-color); }
.panel.accent { border: 2px solid var(--accent); }
.panel .kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.panel.accent .kicker { color: var(--accent); }

/* --- Textseiten --- */
.prose { max-width: 66ch; font-size: 17px; }
.prose p { margin: 0 0 16px; color: #2b3a4d; }
.prose h2 { font-size: 26px; margin: 8px 0 10px; }
.quote { border-left: 4px solid var(--accent); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; font-size: 19px; line-height: 1.5; color: var(--ink); box-shadow: var(--card-shadow); max-width: 66ch; margin: 0; }

.page-hero { padding: 20px 8px 0; max-width: 760px; }
.page-hero h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.03em; }
.page-hero p { font-size: 18px; color: var(--muted); margin: 0; }

.faq { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.faq details { background: #fff; border-radius: 12px; padding: 14px 18px; box-shadow: var(--card-shadow); }
.faq summary { font-weight: 700; cursor: pointer; color: var(--ink); }
.faq details p { margin: 10px 0 0; color: #33445a; font-size: 15px; }

.cta { text-align: center; background: #fff; border-radius: 22px; padding: 40px 24px; box-shadow: var(--card-shadow); }
.cta h2 { font-size: 28px; margin: 0 0 8px; }
.cta p { margin: 0 auto 20px; color: var(--muted); max-width: 52ch; }
.cta .btn-row { justify-content: center; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 8px; }
  .hero-art { order: -1; }
  .mini-grid { width: 190px; padding: 10px; border-radius: 16px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .band, .split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site { gap: 44px; }
  .cards, .cards-2, .steps { grid-template-columns: 1fr; }
  .steps { gap: 24px; }
  .hero-lead { font-size: 16.5px; }
  .section-head h2, .site .band h2, .cta h2 { font-size: 24px; }
  .band { padding: 26px 20px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pz { padding: 10px 12px; }
  .pz span { font-size: 12.5px; }
}

.plain-p { margin: 0 0 14px; color: #33445a; font-size: 14.5px; }
.plain-p-lg { margin-bottom: 16px; font-size: 15px; line-height: 1.55; }

/* Lernpfad (home.js) */
.learn-path { margin: 4px 0 22px; padding: 18px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow); }
.learn-path h2 { margin: 0 0 4px; font-size: 20px; }
.learn-path p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.learn-path ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.learn-path a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #eef2f9; color: var(--ink); text-decoration: none; }
.learn-path a:hover, .learn-path a:focus-visible { background: #dbe8ff; }
.learn-path li.next a { background: var(--accent); color: #fff; }
.learn-path li.done a { background: #e3f4ea; }
.lp-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #fff; color: var(--accent-dark); }
.learn-path li.done .lp-num { background: #2e9e57; color: #fff; }
.lp-text { display: flex; flex-direction: column; line-height: 1.25; }
.lp-text small { opacity: 0.8; font-size: 12px; }

.learn-path { padding: 0; }
.learn-path summary { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 14px 20px; cursor: pointer; list-style: none; }
.learn-path summary::-webkit-details-marker { display: none; }
.learn-path summary::before { content: "▸"; color: var(--accent); font-size: 14px; }
.learn-path details[open] summary::before { content: "▾"; }
.learn-path .lp-title { font-size: 18px; font-weight: 700; color: var(--ink); }
.learn-path .lp-sub { font-size: 13px; color: var(--muted); }
.learn-path details > p, .learn-path details > ol { margin-left: 20px; margin-right: 20px; }
.learn-path details > ol { margin-bottom: 18px; }

.learn-path { margin: 0 0 14px; }
