/* =========================================================
   Leonida-Guide – Farbschema im GTA-6-Look
   Sonnenuntergang über Vice City: Gold → Orange → Pink → Violett,
   dazu Türkis wie das Meer und ein tiefes Nacht-Violett als Grund.
   ========================================================= */
:root {
  --bg: #0f0a1f;          /* Nachthimmel */
  --bg-2: #1a1033;
  --card: #1b1336;
  --card-2: #23184a;
  --line: #34265a;
  --text: #fff4ee;        /* warmes Weiß */
  --muted: #b8a9d6;

  --gold: #ffc65c;        /* Sonne */
  --orange: #ff8a3d;      /* Abendrot */
  --pink: #ff3d8b;        /* Neon-Pink */
  --purple: #9b4dff;      /* Dämmerung */
  --teal: #35e0e8;        /* Meer / Neon-Türkis */

  --sunset: linear-gradient(90deg, #ffc65c 0%, #ff8a3d 30%, #ff3d8b 65%, #9b4dff 100%);
  --sunset-warm: linear-gradient(90deg, #ffc65c, #ff8a3d 40%, #ff3d8b);

  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* Sprungziele (#youtube, #faq …) nicht unter der festen Kopfzeile verstecken */
[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  font-size: 17px;
}

::selection { background: var(--pink); color: #fff; }

a { color: var(--teal); }
a:hover { color: var(--pink); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 10, 31, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid transparent;
  border-image: var(--sunset) 1;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; letter-spacing: .02em; }
.logo:hover { color: var(--text); }
.logo span { background: var(--sunset-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; transition: color .15s; }
.nav a:hover, .nav a.active { color: var(--gold); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Burger-Menü (nur mit JS aktiv; ohne JS bleibt das normale Menü sichtbar) */
.nav-toggle { display: none; }
@media (max-width: 1080px) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; border-radius: 10px;
    background: var(--card); border: 1px solid var(--line);
  }
  .js .nav-toggle:hover, .js .nav-toggle[aria-expanded="true"] { border-color: var(--pink); }
  .nav-toggle-box, .nav-toggle-box::before, .nav-toggle-box::after {
    display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text);
    transition: transform .2s, background .2s;
  }
  .nav-toggle-box { position: relative; }
  .nav-toggle-box::before, .nav-toggle-box::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-box::before { top: -6px; }
  .nav-toggle-box::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-box { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-box::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-box::after { transform: translateY(-6px) rotate(-45deg); }

  .js .site-header .wrap { flex-wrap: wrap; min-height: 60px; padding-top: 8px; padding-bottom: 8px; gap: 0 16px; }
  .js .site-header .nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; padding: 6px 0 4px; }
  .js .site-header.nav-open .nav { display: flex; }
  .js .site-header .nav a { padding: 11px 4px; font-size: 1rem; border-top: 1px solid var(--line); }
}

.badge {
  display: inline-block; padding: 4px 12px; border-radius: 99px;
  background: rgba(255, 198, 92, .12); color: var(--gold);
  border: 1px solid rgba(255, 198, 92, .45);
  font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 16px;
}

/* Sections */
section { padding: 48px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); margin: 0 0 20px; line-height: 1.25; }
h2::after {
  content: ""; display: block; width: 56px; height: 3px; border-radius: 3px;
  background: var(--sunset); margin-top: 10px;
}
h3 { font-size: 1.15rem; margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* Seiten ohne Hero: Abendrot-Schimmer oben */
.site-header + main > section:first-child {
  background:
    radial-gradient(ellipse 70% 90% at 88% -25%, rgba(255, 61, 139, .22), transparent 60%),
    radial-gradient(ellipse 55% 80% at 8% -30%, rgba(255, 138, 61, .16), transparent 60%);
}

/* Fact grid */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.fact {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  position: relative; overflow: hidden;
}
.fact::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--pink));
}
.fact .k { color: var(--orange); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.fact .v { font-size: 1.2rem; font-weight: 700; margin-top: 4px; }
.fact .v small { display: block; font-size: .85rem; font-weight: 400; color: var(--muted); margin-top: 4px; }

/* Cards / links */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card {
  display: block; text-decoration: none; color: var(--text);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover {
  border-color: var(--pink); transform: translateY(-2px); color: var(--text);
  box-shadow: 0 14px 34px -14px rgba(255, 61, 139, .6);
}
.card p { color: var(--muted); margin: 0; }
.card .tag {
  font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  background: var(--sunset-warm); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* FAQ */
details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 20px; margin-bottom: 10px; transition: border-color .15s;
}
details:hover { border-color: #4b3780; }
details[open] { border-color: rgba(255, 61, 139, .55); background: linear-gradient(180deg, var(--card-2), var(--card)); }
summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.3rem; color: var(--pink); }
details[open] summary::after { content: "–"; color: var(--gold); }
details > div { padding: 0 0 18px; color: #e2d8f0; }
details strong { color: #fff; }

/* Article */
.article { max-width: 760px; }
.article h2 { margin-top: 36px; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 6px; }
.article li::marker { color: var(--pink); }
.note {
  background: linear-gradient(90deg, rgba(255, 138, 61, .14), rgba(255, 61, 139, .06));
  border-left: 3px solid var(--orange);
  padding: 12px 16px; border-radius: 6px; margin: 18px 0;
}

/* Checklist (prep + tracker) */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 8px; transition: border-color .15s, background .15s;
}
.check-list li:hover { border-color: #4b3780; }
.check-list input[type=checkbox] { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--pink); flex-shrink: 0; cursor: pointer; }
.check-list label { cursor: pointer; flex: 1; }
.check-list .hint { display: block; color: var(--muted); font-size: .88rem; }
.check-list .map-link { align-self: center; white-space: nowrap; text-decoration: none; }
.check-list li.done { border-color: rgba(53, 224, 232, .35); background: rgba(53, 224, 232, .05); }
.check-list li.done label { text-decoration: line-through; text-decoration-color: var(--teal); color: var(--muted); }

/* Tracker */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.toolbar input[type=search], .toolbar input[type=text] {
  flex: 1; min-width: 200px; background: var(--card); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 10px 14px; font-size: 1rem;
}
.toolbar input:focus { border-color: var(--pink); outline: none; box-shadow: 0 0 0 3px rgba(255, 61, 139, .2); }
button, .btn {
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 10px 16px; font-size: .95rem; font-weight: 600; cursor: pointer;
  text-decoration: none; display: inline-block; transition: border-color .15s, filter .15s;
}
button:hover, .btn:hover { border-color: var(--pink); color: var(--text); }
.btn-primary { background: var(--sunset-warm); border: 0; color: #1a0a1a; font-weight: 800; }
.btn-primary:hover { color: #1a0a1a; filter: brightness(1.1); }

.progress-total { margin-bottom: 26px; }
.bar { height: 10px; background: var(--card); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.bar > i { display: block; height: 100%; width: 0; background: var(--sunset); transition: width .3s; }

.cat { margin-bottom: 30px; }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.cat-head h3 { margin: 0; }
.cat-head .count { color: var(--gold); font-variant-numeric: tabular-nums; font-size: .9rem; font-weight: 700; }
.cat .bar { margin-bottom: 12px; height: 6px; }
.empty {
  border: 1px dashed var(--line); border-radius: 10px; padding: 16px; color: var(--muted); font-size: .95rem;
}

/* Ad slot placeholder */
.ad-slot {
  margin: 28px 0; min-height: 100px; border: 1px dashed rgba(184, 169, 214, .25); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: #7a6aa3; font-size: .8rem;
}

/* Footer */
.site-footer {
  border-top: 2px solid transparent; border-image: var(--sunset) 1;
  padding: 32px 0 48px; color: var(--muted); font-size: .88rem;
  background: linear-gradient(180deg, var(--bg), #0b0717);
}
.site-footer .wrap { display: flex; flex-direction: column; gap: 10px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header .wrap { padding-top: 8px; padding-bottom: 8px; gap: 4px 16px; min-height: 0; }
  .nav { gap: 2px 12px; }
  .nav a { font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
