/* Veytraya – Website. Farben und Schriften wie in der App (lib/theme.dart). */
@font-face { font-family: "Figtree"; src: url(fonts/Figtree-Regular.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/Figtree-SemiBold.woff) format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/Figtree-Bold.woff) format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url(fonts/BricolageGrotesque-ExtraBold.woff) format("woff"); font-weight: 800; font-display: swap; }

:root {
  --ground: #F3F5EF;
  --ink: #15211C;
  --muted: #55615B;
  --body: #3B4842;
  --line: #DDE3DA;
  --segment: #E4E9E1;
  --card: #FFFFFF;
  --accent: #D24B1F;
  --accent-dark: #B53D15;
  --accent-soft: #FFF1EA;
  --teal: #0F5C50;
  --teal-soft: #E2EFEA;
  --water: #B9D7E3;
  --night: #101A16;
  --night-card: #1B2823;
  --night-line: #2C3B35;
  --night-text: #F1F4EE;
  --night-muted: #A3B0A9;
  --glow: #FF7A45;
  --selten: #2F6FA8;
  --sehr-selten: #7D5FB8;
  --legendaer: #E9A23B;
  --radius: 22px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.55 "Figtree", system-ui, sans-serif;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: "Bricolage", "Figtree", sans-serif; font-weight: 800; letter-spacing: -0.025em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(44px, 7.4vw, 92px); }
h2 { font-size: clamp(34px, 4.8vw, 58px); }
h3 { font-size: 24px; letter-spacing: -0.015em; line-height: 1.15; }
p { margin: 0; }
.caps { font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--body); max-width: 34em; }
.accent { color: var(--accent); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* ---------- Kopf ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img.icon { width: 36px; height: 36px; border-radius: 10px; }
.brand img.word { height: 17px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff; text-decoration: none;
  font: 700 16px/1 "Figtree", sans-serif;
  padding: 15px 22px; border-radius: 999px; border: 0; cursor: pointer;
  box-shadow: 0 8px 22px -10px rgba(210, 75, 31, .7);
  transition: transform .2s, background .2s;
}
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small { padding: 11px 16px; font-size: 14px; }
.pill { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); font-weight: 700; font-size: 13px; }
@media (max-width: 860px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 7vw, 90px) 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 .line2 { display: block; }
.hero .lead { margin: 26px 0 32px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .note { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Handy mit laufender Tour */
.phone {
  width: min(360px, 100%); margin-inline: auto; aspect-ratio: 9 / 18.5;
  background: var(--night); border-radius: 46px; padding: 12px;
  box-shadow: 0 40px 80px -30px rgba(21, 33, 28, .55), inset 0 0 0 2px #2a3832;
  position: relative;
}
.phone .screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #EEF0E9; }
.phone .status { position: absolute; inset: 0 0 auto; height: 38px; display: flex; justify-content: space-between; padding: 12px 22px 0; font: 700 12px "Figtree"; color: var(--ink); z-index: 3; }
.phone .map { position: absolute; inset: 0; width: 100%; height: 100%; }
.tour-top {
  position: absolute; left: 12px; right: 12px; top: 40px; z-index: 3;
  background: var(--night); color: var(--night-text); border-radius: 18px;
  padding: 10px 14px; display: flex; justify-content: space-between; font-size: 12px;
}
.tour-top b { display: block; font: 800 20px "Bricolage"; letter-spacing: -.02em; }
.tour-top span { color: var(--night-muted); }
.announce {
  position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 3;
  background: var(--night); color: var(--night-text); border-radius: 20px; padding: 14px 16px;
  transform: translateY(130%); animation: announce 12s infinite;
}
.announce .meta { display: flex; gap: 8px; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--night-muted); }
.announce .rar { color: #c8b6ef; }
.announce h4 { margin: 6px 0 4px; font: 800 22px "Bricolage"; letter-spacing: -.02em; }
.announce p { font-size: 13px; color: #cfd8d2; line-height: 1.45; }
.announce .wave { display: flex; gap: 3px; align-items: end; height: 14px; }
.announce .wave i { width: 3px; background: var(--glow); border-radius: 2px; animation: wave 1s infinite ease-in-out; }
.announce .wave i:nth-child(2) { animation-delay: .15s } .announce .wave i:nth-child(3) { animation-delay: .3s } .announce .wave i:nth-child(4) { animation-delay: .45s }
@keyframes wave { 0%, 100% { height: 4px } 50% { height: 14px } }
@keyframes announce {
  0%, 36% { transform: translateY(130%); }
  41%, 78% { transform: translateY(0); }
  84%, 100% { transform: translateY(130%); }
}
.route-done { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 12s infinite linear; }
@keyframes draw { 0% { stroke-dashoffset: 1000 } 70%, 100% { stroke-dashoffset: 0 } }
.runner { offset-rotate: 0deg; animation: run 12s infinite linear; }
@keyframes run { 0% { offset-distance: 0% } 70%, 100% { offset-distance: 100% } }
.pin-stamp { transform-box: fill-box; transform-origin: center; animation: stamp 12s infinite; }
@keyframes stamp {
  0%, 37% { opacity: 0; transform: scale(1.9) rotate(-20deg); }
  41% { opacity: 1; transform: scale(.88) rotate(0); }
  44%, 95% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; }
}
.pin-next { transform-box: fill-box; transform-origin: center; animation: nextpin 12s infinite; }
@keyframes nextpin { 0%, 37% { opacity: 1 } 40%, 100% { opacity: 0 } }
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 1.6s infinite ease-out; }
@keyframes pulse { 0% { transform: scale(.7); opacity: .9 } 100% { transform: scale(1.8); opacity: 0 } }

/* ---------- Abschnitte ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head .caps { display: block; margin-bottom: 14px; }
.section-head .lead { margin-top: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before { counter-increment: s; content: counter(s); font: 800 64px/1 "Bricolage"; color: var(--accent); opacity: .9; display: block; margin-bottom: 18px; }
.step p { margin-top: 10px; color: var(--body); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Nebel */
.dark { background: var(--night); color: var(--night-text); }
.dark .caps { color: var(--night-muted); }
.dark .lead { color: #cdd6d0; }
.fog-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .fog-grid { grid-template-columns: 1fr; } }
.fogmap { border-radius: 28px; overflow: hidden; background: #E9ECE4; box-shadow: 0 30px 60px -30px #000; aspect-ratio: 4 / 3; }
.fogmap svg { width: 100%; height: 100%; }
.reveal-path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw-fog 10s infinite linear; }
@keyframes draw-fog { 0% { stroke-dashoffset: 900 } 60%, 100% { stroke-dashoffset: 0 } }
.legend { display: grid; gap: 14px; margin-top: 28px; }
.legend div { display: flex; gap: 14px; align-items: center; background: var(--night-card); border: 1px solid var(--night-line); border-radius: 16px; padding: 12px 16px; }
.legend svg { width: 44px; height: 44px; flex: none; }
.legend b { display: block; }
.legend span { color: var(--night-muted); font-size: 14px; }
.glitter path { transform-box: fill-box; transform-origin: center; animation: twinkle 2.2s infinite ease-in-out; }
.glitter path:nth-child(2) { animation-delay: .4s } .glitter path:nth-child(3) { animation-delay: .9s } .glitter path:nth-child(4) { animation-delay: 1.4s }
@keyframes twinkle { 0%, 100% { transform: scale(0) rotate(0); opacity: 0 } 45% { transform: scale(1) rotate(30deg); opacity: 1 } }
.smoke circle { transform-box: fill-box; transform-origin: center; animation: rise 4.6s infinite ease-out; opacity: 0; }
.smoke circle:nth-child(2) { animation-delay: 1.1s } .smoke circle:nth-child(3) { animation-delay: 2.3s } .smoke circle:nth-child(4) { animation-delay: 3.4s }
@keyframes rise { 0% { transform: translate(0, 0) scale(.4); opacity: 0 } 15% { opacity: .8 } 100% { transform: translate(var(--dx, 4px), -34px) scale(1.8); opacity: 0 } }
.ember .spark { animation: spark 2.7s infinite ease-out; opacity: 0; }
.ember .spark:nth-child(2) { animation-delay: .6s } .ember .spark:nth-child(3) { animation-delay: 1.3s } .ember .spark:nth-child(4) { animation-delay: 2s }
@keyframes spark { 0% { transform: translate(0, 0); opacity: 0 } 15% { opacity: 1 } 100% { transform: translate(var(--dx, -6px), -30px); opacity: 0 } }
.ember .core { animation: flicker 1.3s infinite; }
@keyframes flicker { 0%, 100% { opacity: 1 } 40% { opacity: .65 } 70% { opacity: .9 } }
.halo { animation: breathe 3.4s infinite ease-in-out; transform-box: fill-box; transform-origin: center; }
@keyframes breathe { 0%, 100% { transform: scale(.8); opacity: .55 } 50% { transform: scale(1.05); opacity: 1 } }

/* Seltenheit */
.rarity { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rarity div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; border-top: 6px solid var(--c); }
.rarity b { font: 800 22px "Bricolage"; letter-spacing: -.02em; display: block; }
.rarity span { color: var(--muted); font-size: 15px; }
.rarity .pts { margin-top: 14px; font-weight: 700; color: var(--c); }
@media (max-width: 860px) { .rarity { grid-template-columns: repeat(2, 1fr); } }

/* Zwei Spalten mit Bild */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.flip > :first-child { order: 0; } }
.split .lead { margin-top: 18px; }
.split ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.split li { display: flex; gap: 12px; color: var(--body); }
.split li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--accent); }

.listen {
  display: flex; align-items: center; gap: 16px; margin-top: 28px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px 14px 14px; width: fit-content;
}
.listen button { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; }
.listen button:hover { background: var(--accent); }
.listen small { display: block; color: var(--muted); }

.hidden-demo { position: relative; aspect-ratio: 1; max-width: 460px; margin-inline: auto; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #fff 0, var(--ground) 70%); display: grid; place-items: center; }
.hidden-demo .ring { position: absolute; inset: 22%; border-radius: 50%; border: 2px solid var(--sehr-selten); opacity: 0; animation: ripple 2.8s infinite ease-out; }
.hidden-demo .ring:nth-child(2) { animation-delay: 1.4s; }
@keyframes ripple { 0% { transform: scale(.4); opacity: .7 } 100% { transform: scale(1.4); opacity: 0 } }
.hidden-demo .dot { width: 34%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(125, 95, 184, .55), rgba(125, 95, 184, 0) 70%); display: grid; place-items: center; animation: breathe 2.8s infinite ease-in-out; }
.hidden-demo .dot i { width: 38%; aspect-ratio: 1; border-radius: 50%; background: #fff; border: 3px solid var(--sehr-selten); display: grid; place-items: center; box-shadow: 0 0 24px rgba(125, 95, 184, .6); }
.hidden-demo .dot i::after { content: ""; width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--sehr-selten); }

/* Atlas */
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.badges figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; text-align: center; transition: transform .3s; }
.badges figure:hover { transform: translateY(-4px) rotate(-1.5deg); }
.badges img { width: 100%; max-width: 130px; margin: 0 auto 10px; }
.badges figcaption { font-weight: 700; font-size: 15px; }
.badges small { display: block; color: var(--muted); font-weight: 400; }
@media (max-width: 700px) { .badges { grid-template-columns: repeat(2, 1fr); } }
.ranks { display: flex; gap: 10px; align-items: center; margin-top: 26px; flex-wrap: wrap; }
.ranks img { width: 56px; height: 56px; }
.ranks span { color: var(--muted); font-size: 15px; }

/* Erzählstile */
.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.styles > div { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.styles .len { height: 8px; border-radius: 4px; background: var(--segment); margin: 16px 0; overflow: hidden; }
.styles .len i { display: block; height: 100%; width: var(--w); background: var(--teal); border-radius: 4px; }
.styles p { color: var(--body); font-size: 15px; }
@media (max-width: 860px) { .styles { grid-template-columns: 1fr; } }

/* Werte */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.values div { border-top: 2px solid var(--ink); padding-top: 18px; }
.values b { display: block; font: 800 22px "Bricolage"; letter-spacing: -.02em; margin-bottom: 8px; }
.values p { color: var(--body); font-size: 15px; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* Start */
.start { background: var(--accent); color: #fff; border-radius: 34px; padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; overflow: hidden; position: relative; }
.start h2 { color: #fff; }
.start p { margin-top: 16px; font-size: 19px; color: #ffe6db; max-width: 30em; }
.start .btn { background: #fff; color: var(--accent-dark); box-shadow: none; }
.start .btn:hover { background: var(--ink); color: #fff; }
.start .store { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.start .store small { color: #ffe6db; }
@media (max-width: 860px) { .start { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 26px/1 "Bricolage"; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--body); }

/* Fuß */
footer { background: var(--ink); color: var(--night-muted); padding: 56px 0 40px; margin-top: 40px; font-size: 15px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer a { color: var(--night-text); text-decoration: none; }
footer a:hover { color: var(--glow); }
footer ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
footer .caps { color: var(--night-muted); }
footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--night-line); padding-top: 22px; font-size: 13px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } }

/* Textseiten */
.page { padding: 56px 0 40px; }
.page .wrap { max-width: 780px; }
.prose h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 28px; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; letter-spacing: -.015em; }
.prose h3 { font-size: 20px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--body); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; display: grid; gap: 8px; }
.prose .stand { color: var(--muted); }

/* Formulare */
.form { display: grid; gap: 18px; margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 34px); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form input, .form select, .form textarea {
  font: 400 16px "Figtree", sans-serif; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--ground); width: 100%;
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.form .hp { position: absolute; left: -9999px; }
.form .small { font-size: 14px; color: var(--muted); font-weight: 400; }
.form .msg { padding: 14px 16px; border-radius: 12px; display: none; }
.form .msg.ok { display: block; background: var(--teal-soft); color: var(--teal); }
.form .msg.err { display: block; background: var(--accent-soft); color: var(--accent-dark); }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 18px; }
.box h3 { font-size: 20px; margin-bottom: 8px; }
.box ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--body); }

/* Einblenden beim Scrollen */
.in { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.in.seen { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .in { opacity: 1; transform: none; }
  .announce { transform: none; }
  .route-done, .reveal-path { stroke-dashoffset: 0; }
  .pin-next { opacity: 0; }
  .smoke circle { opacity: .6; }
}
