/* ============================================================
   Aufgabenhelden – Landing (aufgabenhelden.glowiszyn.com)
   Theme: Violett (#6D4AE0) + Sonnengelb (#FFB020) — dieselben Farben wie
   die App (app/lib/theme.dart), damit Landing und Screenshots zusammenpassen.

   Muster: wunschzettel/web (FamilyKit/SilverTracker-Vorlage).
   KEINE externen Fonts, keine CDNs, keine Emoji (Inline-SVG statt dessen).
   ============================================================ */

:root {
  --bg: #F7F5FF;
  --bg-alt: #EEE9FF;
  --card: #FFFFFF;
  --line: rgba(44, 36, 80, 0.10);
  --line-2: rgba(44, 36, 80, 0.16);
  --text: #2C2450;
  --muted: #7A719C;
  --violet: #6D4AE0;
  --violet-soft: #8B6BEA;
  --amber: #FFB020;
  --green: #22C55E;
  --radius: 20px;
  --radius-sm: 13px;
  --container: 1140px;
  --shadow: 0 20px 50px rgba(109, 74, 224, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.container--narrow { max-width: 780px; }
a { color: inherit; text-decoration: none; }
/* Muss !important sein: .store-badge/.store-soon setzen selbst ein display
   und würden das UA-`[hidden] { display: none }` sonst überstimmen — die
   Badges wären auch ohne Store-Link sichtbar. */
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
.accent, .brand__accent { color: var(--violet); }

/* --- NAV --- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
/* Die Wortmarke ist EIN Flex-Item — sonst schiebt das gap oben ein
   Leerzeichen zwischen „Aufgaben" und „helden". */
.brand__name { white-space: nowrap; }
.brand__icon { border-radius: 8px; }
.nav__links { display: flex; align-items: center; gap: 22px; font-size: 15px; color: var(--muted); }
.nav__links > a:hover { color: var(--text); }

/* Sprachumschalter — Inline-SVG-Flaggen, NIE Flag-Emoji
   (Windows rendert keine Flag-Emoji, dort bliebe nur „DE"/„GB" übrig). */
.lang { display: flex; gap: 4px; background: rgba(44,36,80,0.06); padding: 3px; border-radius: 10px; }
.lang__btn {
  border: 0; background: transparent; cursor: pointer; line-height: 0;
  padding: 5px 7px; border-radius: 7px; filter: grayscale(0.55); opacity: 0.6;
  transition: opacity .15s ease, filter .15s ease, background .15s ease;
}
.lang__btn svg { display: block; border-radius: 2px; }
.lang__btn:hover { opacity: 1; }
.lang__btn--active {
  background: rgba(109,74,224,0.14); filter: none; opacity: 1;
  box-shadow: 0 0 0 1px rgba(109,74,224,0.2) inset;
}

/* --- HERO --- */
.hero { position: relative; padding: 76px 0 54px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: var(--violet);
  background: rgba(109,74,224,0.10); border: 1px solid rgba(109,74,224,0.26);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.pill svg { width: 15px; height: 15px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 58px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; }
.lead { color: var(--muted); font-size: 19px; margin: 22px 0 28px; max-width: 34em; }
.hero__note { color: var(--muted); font-size: 13px; margin-top: 14px; }

/* Store-Badges */
.store-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.store-row--center { justify-content: center; margin-top: 28px; }
.store-badge { display: inline-flex; transition: transform .15s ease; }
.store-badge:hover { transform: translateY(-2px); }
.store-soon {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 700; color: var(--text);
  background: var(--card); border: 1px solid var(--line-2);
  padding: 13px 20px; border-radius: 14px;
}
.store-soon svg { width: 18px; height: 18px; }

/* Telefon */
.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__glow {
  position: absolute; inset: -12% -20%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255,176,32,0.42), transparent 70%);
  filter: blur(24px);
}
.phone {
  width: 268px; border-radius: 40px; padding: 11px;
  background: linear-gradient(160deg, #3B2E6E, #211a44);
  border: 1px solid rgba(44,36,80,0.18); box-shadow: var(--shadow);
}
.phone--hero { width: 292px; }
.phone__shot { width: 100%; border-radius: 30px; display: block; background: var(--bg); }

/* --- TRUST --- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.trust__inner { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: center; padding: 18px 22px; }
.trust__item { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.trust__item svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--violet); }

/* --- SECTIONS --- */
.section { padding: 82px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__title { font-size: clamp(27px, 3.6vw, 40px); font-weight: 800; text-align: center; letter-spacing: -0.02em; }
.section__sub { color: var(--muted); text-align: center; max-width: 40em; margin: 12px auto 0; font-size: 17px; }
.section .grid, .section .steps, .section .showcase, .section .chips, .section .faq { margin-top: 46px; }

/* Merkmale */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(109,74,224,0.35); box-shadow: var(--shadow); }
.feature__icon {
  width: 46px; height: 46px; border-radius: 14px; margin-bottom: 14px;
  display: grid; place-items: center;
  background: rgba(109,74,224,0.12); color: var(--violet);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; }

/* Schritte */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.step__num {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet), var(--amber)); color: #fff;
  font-weight: 800; font-size: 18px; margin-bottom: 16px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* Screens */
.showcase { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.showcase__item { text-align: center; }
.showcase__item figcaption { color: var(--muted); font-size: 14px; margin-top: 16px; max-width: 268px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 10px 18px; font-size: 15px; font-weight: 500;
}
.chip svg { width: 16px; height: 16px; flex: 0 0 auto; }
.chip--free svg { color: var(--green); }
.chip--pro svg { color: var(--amber); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq__item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 17px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--violet); font-size: 22px; font-weight: 400; transition: transform .2s ease; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* Abschluss-Band */
.cta-band {
  padding: 78px 0; text-align: center;
  background: radial-gradient(700px 380px at 50% 0%, rgba(255,176,32,0.26), transparent 65%), var(--bg-alt);
  border-top: 1px solid var(--line);
}
.cta-band__icon { margin: 0 auto 18px; border-radius: 18px; box-shadow: var(--shadow); }
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.02em; }
.cta-band p { color: var(--muted); font-size: 18px; margin-top: 10px; }

/* Fußzeile */
.footer { background: #241C4A; color: #EFE9FF; border-top: 1px solid var(--line); padding: 44px 0 26px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer .brand { color: #fff; }
.footer__brand p { color: #B7AEDA; font-size: 14px; margin-top: 8px; }
.footer__links { display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: #B7AEDA; }
.footer__links a:hover { color: #fff; }
.footer__legal { color: rgba(183,174,218,0.7); font-size: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.10); }

/* Rechtstexte */
.legal { max-width: 780px; margin: 0 auto; padding: 48px 22px 80px; }
.legal h1 { font-size: 30px; margin-bottom: 6px; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; }
.legal p, .legal li { color: #4B4270; line-height: 1.65; font-size: 15px; }
.legal ul { padding-left: 22px; margin: 8px 0; }
.legal .updated { color: var(--muted); font-size: 13px; margin-bottom: 24px; }

/* --- RESPONSIV --- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy .lead { margin-left: auto; margin-right: auto; }
  .hero .store-row { margin-left: auto; margin-right: auto; justify-content: center; }
  .hero__visual { order: -1; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav__links > a { display: none; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .store-row { justify-content: center; }
}
