/* ==========================================================================
   Ameisi — Website
   Selbstenthaltenes Stylesheet: keine Webfonts, keine externen Ressourcen.
   Farbwelt entspricht der App (Theme.swift): Amber, Leaf, Sky.
   ========================================================================== */

/* ---------- Design-Tokens ---------- */
:root {
  --bg: #fdf6ec;
  --bg-alt: #f7edda;
  --card: #fffdf8;
  --text: #2a1e10;
  --text-soft: rgba(42, 30, 16, 0.8);
  --amber: #f2991a;
  --amber-deep: #d97e06;
  --amber-soft: rgba(242, 153, 26, 0.14);
  --leaf: #59a64d;
  --leaf-deep: #3f8a34;
  --leaf-soft: rgba(89, 166, 77, 0.14);
  --sky: #4d99e6;
  --line: rgba(59, 44, 26, 0.1);
  --shadow: 0 12px 32px rgba(122, 82, 20, 0.12);
  --shadow-soft: 0 6px 18px rgba(122, 82, 20, 0.08);
  --nav-bg: rgba(253, 246, 236, 0.82);
  --phone-frame: #33261a;
  --radius: 22px;
}

:root[data-theme="dark"] {
  --bg: #201812;
  --bg-alt: #1a130d;
  --card: #2c2115;
  --text: #f4ead9;
  --text-soft: rgba(244, 234, 217, 0.64);
  --amber: #f5a83b;
  --amber-deep: #f2991a;
  --amber-soft: rgba(245, 168, 59, 0.16);
  --leaf: #6fbf62;
  --leaf-deep: #59a64d;
  --leaf-soft: rgba(111, 191, 98, 0.16);
  --sky: #6aabec;
  --line: rgba(244, 234, 217, 0.12);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.28);
  --nav-bg: rgba(32, 24, 18, 0.82);
  --phone-frame: #0d0906;
}

/* ---------- Basis ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN",
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}

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

img { max-width: 100%; display: block; }
a { color: var(--amber-deep); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 6px;
}

section { scroll-margin-top: 84px; }

h1, h2, h3 { line-height: 1.18; text-wrap: balance; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

.nav-brand img { border-radius: 9px; }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  text-decoration: none;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: var(--amber-soft);
  color: var(--text);
}

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { transform: rotate(-12deg) scale(1.06); }

.lang-switch {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  height: 40px;
  padding: 0 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text-soft);
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-switch:hover { background: var(--amber-soft); color: var(--text); }

@media (max-width: 760px) {
  .nav-links {
    order: 3;
    width: 100%;
    margin-left: 0;
  }
  .lang-switch { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 20px 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}
.blob-a {
  width: 480px; height: 480px;
  background: var(--amber-soft);
  top: -140px; right: -120px;
  animation: blob-drift 14s ease-in-out infinite alternate;
}
.blob-b {
  width: 420px; height: 420px;
  background: var(--leaf-soft);
  bottom: -160px; left: -140px;
  animation: blob-drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes blob-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 28px) scale(1.12); }
}

.crumb-dot {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 40% 60% 55% 45%;
  background: var(--amber);
  opacity: 0.35;
  animation: crumb-float 6s ease-in-out infinite alternate;
}
.crumb-dot.d1 { top: 18%; left: 6%;  animation-delay: 0s; }
.crumb-dot.d2 { top: 62%; left: 12%; width: 7px; height: 7px; animation-delay: 1.2s; }
.crumb-dot.d3 { top: 24%; right: 38%; width: 8px; height: 8px; animation-delay: 2.1s; }
.crumb-dot.d4 { top: 70%; right: 8%; animation-delay: 0.6s; }
.crumb-dot.d5 { top: 40%; right: 20%; width: 6px; height: 6px; animation-delay: 3s; }
@keyframes crumb-float {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(-14px) rotate(40deg); }
}

.hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 96px;
}

.eyebrow {
  display: inline-block;
  background: var(--amber-soft);
  color: var(--amber-deep);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.7rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.marked {
  position: relative;
  white-space: nowrap;
}
.marked::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; bottom: 4px;
  height: 0.34em;
  background: var(--amber-soft);
  border-radius: 6px;
  z-index: -1;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero-sub strong { color: var(--text); }

.store-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.store-btn .store-icon { font-size: 1.5rem; }
.store-btn .store-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  display: block;
}
.store-btn .store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-weight: 800;
  font-size: 1.05rem;
}
.store-btn .store-text small {
  font-weight: 600;
  font-size: 0.72rem;
  opacity: 0.75;
}
.store-btn.is-soon { opacity: 0.82; }

.soon-hint {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.hero-badges li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
}

/* ---------- Phone-Mockup ---------- */
.hero-phone {
  display: flex;
  justify-content: center;
}

.phone {
  width: min(300px, 78vw);
  background: var(--phone-frame);
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  transform: rotate(4deg);
  transition: transform 0.5s ease;
  position: relative;
}
.phone:hover { transform: rotate(1.5deg) scale(1.015); }

.phone-island {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 22px;
  background: var(--phone-frame);
  border-radius: 999px;
  z-index: 2;
}

.phone-screen {
  background: var(--bg);
  border-radius: 34px;
  padding: 52px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 520px;
}

.app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 6px;
}
.app-title { font-size: 1.3rem; font-weight: 900; }
.app-date { font-size: 0.78rem; color: var(--text-soft); font-weight: 600; }

.app-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.member-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ring-wrap {
  position: relative;
  width: 46px; height: 46px;
  flex-shrink: 0;
}
.ring { width: 46px; height: 46px; transform: rotate(-90deg); }
.ring-bg, .ring-fg {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
}
.ring-bg { stroke: var(--line); }
.ring-fg {
  stroke: var(--leaf);
  stroke-dasharray: 100.5;
  stroke-dashoffset: 34;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.ring-emoji {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

.member-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.member-meta b { font-size: 1rem; }
.konto {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--amber-deep);
}

.day-chip {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber-deep);
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease;
}
.day-chip.all-done {
  background: var(--leaf-soft);
  color: var(--leaf-deep);
}

.chore-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chore-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 12px;
  background: var(--amber-soft);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.35s ease, opacity 0.35s ease;
}
.chore-list li .check {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: transparent;
  background: var(--card);
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.chore-list li .pts {
  margin-left: auto;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--amber-deep);
  white-space: nowrap;
}
.chore-list li.done { background: var(--leaf-soft); }
.chore-list li.done .check {
  background: var(--leaf);
  border-color: var(--leaf);
  color: #fff;
}
.chore-list li.done .pts { color: var(--leaf-deep); }
.chore-list li.just-done .check { animation: check-pop 0.45s ease; }
@keyframes check-pop {
  0% { transform: scale(0.4); }
  55% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.nest-card { padding: 10px 12px; }
.nest-line {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.83rem;
  margin-bottom: 7px;
}
.nest-emoji { font-size: 1.05rem; }
.nest-name { font-weight: 800; }
.nest-level {
  margin-left: auto;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.75rem;
}
.mini-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.mini-fill {
  display: block;
  height: 100%;
  width: 62%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--amber-deep));
}

.tabbar {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding: 8px 4px 4px;
  border-top: 1px solid var(--line);
}
.tab {
  font-size: 1.15rem;
  opacity: 0.55;
  filter: grayscale(0.5);
}
.tab.is-active {
  opacity: 1;
  filter: none;
  transform: scale(1.12);
}

/* ---------- Ameisen-Parade ---------- */
.ant-trail {
  position: relative;
  height: 46px;
  border-top: 2px dashed var(--line);
  overflow: hidden;
}

.trail-ant {
  position: absolute;
  bottom: 6px;
  right: 100%;
  display: flex;
  align-items: flex-end;
  gap: 1px;
  font-size: 1.25rem;
  animation: trail-walk var(--dur, 14s) linear forwards;
  will-change: transform;
}
.trail-ant .ant-body {
  display: inline-block;
  animation: ant-wobble 0.4s ease-in-out infinite;
}
.trail-ant .ant-cookie {
  display: inline-block;
  font-size: 0.8em;
  transform: translateY(-6px);
  animation: cookie-bob 0.4s ease-in-out infinite alternate;
}
/* scaleX(-1) spiegelt die ganze Gruppe: 🐜 blickt in Laufrichtung, Keks bleibt voraus */
@keyframes trail-walk {
  from { transform: translateX(0) scaleX(-1); }
  to   { transform: translateX(calc(100vw + 140px)) scaleX(-1); }
}
@keyframes ant-wobble {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50%      { transform: rotate(6deg) translateY(-2px); }
}
@keyframes cookie-bob {
  from { transform: translateY(-6px) rotate(-4deg); }
  to   { transform: translateY(-8px) rotate(6deg); }
}

/* ---------- Sektionen ---------- */
.section { padding: 88px 20px; }
.section-alt { background: var(--bg-alt); transition: background 0.35s ease; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-narrow { max-width: 760px; }

.kicker {
  color: var(--amber-deep);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.section h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-soft);
  font-size: 1.08rem;
  max-width: 62ch;
  margin-bottom: 40px;
}

/* ---------- Schritte ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px 24px;
  box-shadow: var(--shadow-soft);
}

.step-num {
  position: absolute;
  top: -14px; left: 22px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--amber);
  color: #fff;
  font-weight: 900;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  box-shadow: var(--shadow-soft);
}

.step-emoji { font-size: 2.1rem; display: block; margin-bottom: 10px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: 0.97rem; }

/* ---------- Feature-Grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-emoji {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  font-size: 1.5rem;
  background: var(--amber-soft);
  border-radius: 14px;
  margin-bottom: 12px;
}
.feature h3 { font-size: 1.08rem; margin-bottom: 7px; }
.feature p { color: var(--text-soft); font-size: 0.94rem; }

/* ---------- Ameisenbau-Demo ---------- */
.demo {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.demo-left { text-align: center; }

.cookie-btn {
  border: none;
  background: radial-gradient(circle at 35% 30%, var(--amber-soft), transparent 70%);
  border-radius: 50%;
  width: 170px; height: 170px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.cookie-btn .cookie {
  font-size: 6.2rem;
  display: block;
  filter: drop-shadow(0 10px 14px rgba(122, 82, 20, 0.28));
  transition: transform 0.12s ease;
}
.cookie-btn:hover .cookie { animation: cookie-wiggle 0.5s ease-in-out infinite; }
.cookie-btn:active { transform: scale(0.92); }
@keyframes cookie-wiggle {
  0%, 100% { transform: rotate(-4deg); }
  50%      { transform: rotate(5deg) scale(1.04); }
}

.cookie-hint {
  margin-top: 10px;
  font-weight: 700;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.demo-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.demo-nest-emoji {
  font-size: 3rem;
  line-height: 1;
}
.demo-nest-emoji.level-pop { animation: nest-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes nest-pop {
  0% { transform: scale(0.5) rotate(-12deg); }
  60% { transform: scale(1.25) rotate(6deg); }
  100% { transform: scale(1) rotate(0); }
}
.demo-nest-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.demo-nest-meta b { font-size: 1.25rem; }
.demo-nest-meta span { color: var(--text-soft); font-weight: 600; font-size: 0.9rem; }
.demo-count {
  margin-left: auto;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--amber-deep);
  white-space: nowrap;
}

.bar {
  position: relative;
  height: 20px;
  background: var(--line);
  border-radius: 999px;
  margin-bottom: 16px;
}
.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  min-width: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--amber-deep));
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.bar-ant {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -58%);
  font-size: 1.3rem;
  transition: left 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  animation: ant-wobble 0.45s ease-in-out infinite;
}

.milestones {
  list-style: none;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}
.milestones li {
  font-size: 1.35rem;
  filter: grayscale(1);
  opacity: 0.3;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  cursor: default;
}
.milestones li.done {
  filter: none;
  opacity: 1;
}
.milestones li.current {
  transform: scale(1.35);
  animation: milestone-bounce 1.6s ease-in-out infinite;
}
@keyframes milestone-bounce {
  0%, 100% { transform: scale(1.35) translateY(0); }
  50%      { transform: scale(1.35) translateY(-4px); }
}

.demo-note {
  color: var(--text-soft);
  font-size: 0.92rem;
  min-height: 2.6em;
}

.demo-reset {
  margin-top: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-soft);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.demo-reset:hover { background: var(--amber-soft); color: var(--text); }

/* Schwebendes Aufgaben-Label beim Keks-Klick */
.float-label {
  position: fixed;
  z-index: 90;
  pointer-events: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 7px 14px;
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
}
.float-label .float-pts { color: var(--leaf-deep); }

/* Krümel- und Konfetti-Partikel (per JS animiert) */
.crumb-bit, .confetti-bit {
  position: fixed;
  z-index: 89;
  pointer-events: none;
  border-radius: 40% 60% 55% 45%;
}

/* ---------- Für Eltern ---------- */
.parent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.parent-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
}
.parent-card .feature-emoji { background: var(--leaf-soft); }
.parent-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.parent-card p { color: var(--text-soft); font-size: 0.96rem; }

/* ---------- Plattformen ---------- */
/* Offizielle Store-Badges; Google-PNG hat eingebautes Padding, daher 1.5× Höhe */
.store-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 8px;
}
.store-badges .badge-apple { height: 48px; width: auto; }
.store-badges .badge-google { height: 72px; width: auto; }

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.platform-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
}
.platform-emoji { font-size: 2.2rem; display: block; margin-bottom: 10px; }
.platform-emoji svg { width: 36px; height: 36px; fill: currentColor; display: block; }
.platform-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.platform-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.platform-card li {
  position: relative;
  padding-left: 26px;
  color: var(--text-soft);
  font-size: 0.97rem;
}
.platform-card li::before {
  content: "🐜";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 0.85rem;
}

.platform-note {
  margin-top: 22px;
  color: var(--text-soft);
  font-size: 0.92rem;
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  margin-top: 12px;
  overflow: hidden;
}
.faq-item:first-of-type { margin-top: 32px; }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.02rem;
  padding: 18px 52px 18px 20px;
  position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--amber-soft);
  color: var(--amber-deep);
  font-weight: 900;
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-item p {
  padding: 0 20px 18px;
  color: var(--text-soft);
  font-size: 0.97rem;
}

/* ---------- Abschluss-CTA ---------- */
.cta-section { padding-bottom: 70px; }
.cta-inner {
  text-align: center;
  background: linear-gradient(135deg, var(--amber-soft), var(--leaf-soft));
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 56px 28px;
}
.cta-ants {
  font-size: 1.8rem;
  display: inline-block;
  margin-bottom: 10px;
  animation: ant-wobble 0.6s ease-in-out infinite;
}
.cta-inner h2 { margin-bottom: 12px; }
.cta-inner p { color: var(--text-soft); font-size: 1.05rem; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 20px 44px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.footer-brand img { border-radius: 7px; }
.footer-line { font-size: 0.92rem; margin-top: 4px; }
.footer-muted { color: var(--text-soft); font-size: 0.85rem; }

/* ---------- Scroll-Reveal ----------
   Versteckt wird nur, wenn JS läuft (html.js) — ohne JS bleibt alles lesbar. */
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 72px;
  }
  .hero-phone { order: 2; }
  .phone { transform: rotate(0deg); }
  .steps, .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 64px 18px; }
  .demo {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px 20px;
    text-align: center;
  }
  .demo-head { justify-content: center; flex-wrap: wrap; }
  .demo-count { margin-left: 0; width: 100%; }
  .milestones li { font-size: 1.05rem; }
  .parent-grid, .platform-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero-sub { font-size: 1.05rem; }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  .trail-ant { display: none; }
}
