/* =====================================================================
   DISTRICT LEGENDS – Landingpage (index.php für Gäste)
   Mobil zuerst. Farben und Schriften aus app.css. Einziger animierter Moment:
   die Orte auf dem Spielbrett erscheinen, einer wird golden (Bürgermeister).
   ===================================================================== */
body.landing { font-size: 16px; line-height: 1.55; overflow-x: hidden; }
.landing main { display: flex; flex-direction: column; }
.landing h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 7vw, 44px); line-height: 1; letter-spacing: .3px; }
.landing h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.lp-small { color: var(--muted); font-size: 14px; max-width: 60ch; }

/* ---------- Kopf ---------- */
.lp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(14px + var(--safe-t)) 20px 14px; max-width: 1120px; width: 100%; margin: 0 auto; }
.lp-logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: .5px; }
.lp-logo span span { color: var(--gold); }
.lp-top-nav { display: flex; align-items: center; gap: 6px; }
.lp-top-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 14px; }
.lp-lang { color: var(--muted); }
.lp-login { color: var(--text); border: 1px solid var(--line); }
.lp-login:hover { color: var(--text); border-color: var(--muted); }

/* ---------- Hero ---------- */
.lp-hero { display: grid; gap: 28px; padding: 8px 20px 40px; max-width: 1120px; width: 100%; margin: 0 auto; }
.lp-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(52px, 15vw, 96px); line-height: .9; letter-spacing: .5px; text-wrap: balance; }
.lp-lead { margin-top: 18px; font-size: 18px; color: #C9D3E3; max-width: 34ch; }
.lp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 26px; }
.lp-cta .btn { min-width: 220px; }
.lp-cta-alt { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.lp-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* Spielbrett (SVG) */
.lp-board { margin: 0 -20px; position: relative; }
.lp-board svg { width: 100%; height: auto; display: block; }
.lp-board figcaption { padding: 10px 20px 0; font-size: 13px; color: var(--muted); }
.lp-land { fill: var(--bg-map); }
.lp-b { fill: #16243C; }
.lp-park { fill: #173A2E; }
.lp-river { fill: #183650; }
.lp-road { fill: none; stroke: #2A3B59; stroke-width: 7; stroke-linecap: round; }
.lp-road-main { stroke: #3A4A68; stroke-width: 11; }
.lp-bridge { stroke: #3A4A68; stroke-width: 8; stroke-linecap: round; }
.lp-range { fill: rgba(227, 179, 65, .08); stroke: var(--gold); stroke-width: 2; stroke-dasharray: 5 6; }
.lp-me-dot { fill: var(--blue); stroke: #fff; stroke-width: 3; }
.lp-pin circle { stroke: var(--bg); stroke-width: 4; }
.lp-pin text { text-anchor: middle; font-size: 13px; font-weight: 800; fill: var(--bg); }
.p-new circle { fill: var(--gray); }
.p-visited circle { fill: var(--blue); }
.p-legend circle { fill: var(--purple); }
.p-mayor circle { fill: var(--gold); }
.lp-toast rect { fill: var(--surface); stroke: var(--gold); stroke-width: 1.5; }
.lp-toast text { text-anchor: middle; font: 700 12px var(--body); fill: var(--gold); }

@media (prefers-reduced-motion: no-preference) {
  .lp-pin { transform-box: fill-box; transform-origin: center; animation: lp-pop .45s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: var(--d); }
  .p-mayor circle { animation: lp-mayor .5s ease 1.6s both; }
  .p-mayor text { animation: lp-fade .3s ease 1.8s both; }
  .lp-toast { animation: lp-toast .5s ease 2s both; }
  .lp-range { transform-box: fill-box; transform-origin: center; animation: lp-range 1.2s ease-out .2s both; }
}
@keyframes lp-pop { from { opacity: 0; scale: 0; } to { opacity: 1; scale: 1; } }
@keyframes lp-mayor { from { fill: var(--gray); } to { fill: var(--gold); } }
@keyframes lp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lp-toast { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes lp-range { from { opacity: 0; scale: .4; } to { opacity: 1; scale: 1; } }

/* ---------- So geht's (echte Reihenfolge, daher nummeriert) ---------- */
.lp-steps, .lp-features, .lp-where, .lp-faq, .lp-final { padding: 44px 20px; max-width: 1120px; width: 100%; margin: 0 auto; }
.lp-steps { border-top: 1px solid var(--line); }
.lp-steps ol { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 26px; counter-reset: step; }
.lp-steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; }
.lp-steps li::before { content: counter(step); grid-row: span 2; font-family: var(--display); font-weight: 800; font-size: 56px; line-height: .85; color: var(--gold); }
.lp-steps p { color: #C9D3E3; margin-top: 4px; }

/* ---------- Was dich erwartet ---------- */
.lp-features ul { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 4px; }
.lp-features li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lp-features li:last-child { border-bottom: 0; }
.lp-f-icon { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--gold); }
.lp-features p { color: var(--muted); margin-top: 2px; max-width: 52ch; }

/* ---------- Wo ---------- */
.lp-where { background: var(--header); border-radius: 0; }
.lp-where-sum { margin-top: 12px; font-size: 18px; color: #C9D3E3; max-width: 46ch; }
.lp-cities { list-style: none; margin: 22px 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-cities li { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg); }
.lp-cities li span:last-child { color: var(--muted); font-size: 13px; }
.lp-flag { font-size: 16px; }

/* ---------- FAQ ---------- */
.lp-faq details { border-bottom: 1px solid var(--line); }
.lp-faq h2 { margin-bottom: 14px; }
.lp-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; font-weight: 700; font-size: 17px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; font-family: var(--display); font-size: 28px; color: var(--gold); line-height: 1; transition: rotate .2s; }
.lp-faq details[open] summary::after { rotate: 45deg; }
.lp-faq details p { padding: 0 0 18px; color: #C9D3E3; max-width: 62ch; }

/* ---------- Schluss ---------- */
.lp-final { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-bottom: 56px; }
.lp-final h2 { font-size: clamp(38px, 10vw, 64px); max-width: 14ch; }
.lp-foot { border-top: 1px solid var(--line); padding: 20px 20px calc(24px + var(--safe-b)); text-align: center; }
.lp-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 13px; margin: 0 0 8px; }
.lp-foot .auth-foot { font-size: 13px; color: var(--muted); }

/* ---------- Ab Tablet / PC ---------- */
@media (min-width: 860px) {
  .lp-top { padding-left: 32px; padding-right: 32px; }
  .lp-hero { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; padding: 32px 32px 64px; }
  .lp-board { margin: 0; }
  .lp-board svg { border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
  .lp-board figcaption { padding: 12px 4px 0; }
  .lp-steps, .lp-features, .lp-where, .lp-faq, .lp-final { padding: 64px 32px; }
  .lp-steps ol { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .lp-features ul { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .lp-features li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .lp-where { max-width: none; padding-left: max(32px, calc((100% - 1056px) / 2)); padding-right: max(32px, calc((100% - 1056px) / 2)); }
  .lp-faq { display: grid; grid-template-columns: 1fr 2fr; gap: 0 48px; align-items: start; }
  .lp-faq h2 { grid-row: span 9; }
}

.lp-support { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
