/* Schrift lokal eingebunden statt über Google Fonts (keine IP-Übertragung an Google). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Ping Website, gleiches Designsystem wie die App:
   AMOLED-Dunkel, Liquid Glass, Verlauf Lila #8B35CC → Pink #E91E8C. */

:root {
  --purple: #8b35cc;
  --pink: #e91e8c;
  --orange: #ff9a3c;
  --gradient: linear-gradient(135deg, var(--purple), var(--pink));
  --bg: #050409;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f4f1fa;
  --text-dim: #a9a3b8;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: #d9a8ff; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ── Ambient-Hintergrund (wie AmbientBackground in der App) ───────────── */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.45;
}
.ambient .b1 { width: 520px; height: 520px; background: var(--purple); top: -180px; right: -160px; }
.ambient .b2 { width: 440px; height: 440px; background: var(--pink); top: 38%; left: -220px; opacity: 0.32; }
.ambient .b3 { width: 380px; height: 380px; background: #4b1d7a; bottom: -160px; right: 10%; opacity: 0.5; }

/* ── Glas ─────────────────────────────────────────────────────────────── */
.glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.025));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ── Navigation ───────────────────────────────────────────────────────── */
.nav-wrap { position: sticky; top: 0; z-index: 50; padding: 12px 0; }
.nav {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 14px; border-radius: 100px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: -0.4px; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--text-dim); font-size: 14.5px; font-weight: 600;
  padding: 8px 14px; border-radius: 100px; transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-strong); text-decoration: none; }

.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border); margin-left: 6px;
}
.lang-switch button {
  border: 0; background: transparent; color: var(--text-dim); font: inherit;
  font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 100px; cursor: pointer;
}
.lang-switch button.on { background: var(--gradient); color: #fff; }

.menu-btn {
  display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
  font-size: 18px;
}

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav { flex-wrap: wrap; border-radius: var(--radius-lg); }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; margin: 6px 0 2px; }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 11px 14px; }
  .lang-switch { align-self: flex-start; margin: 6px 0 0 8px; }
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 14px 24px; border-radius: 100px; font-weight: 700; font-size: 15.5px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 28px rgba(233,30,140,.35); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn small { display: block; font-size: 11px; font-weight: 600; opacity: .8; line-height: 1.1; }
.btn .two-line { text-align: left; line-height: 1.15; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 56px 0 72px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
  font-size: 13px; font-weight: 600;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4caf50; box-shadow: 0 0 12px #4caf50; }
h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -1.6px; margin: 18px 0 18px; font-weight: 800; }
.grad-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--text-dim); max-width: 560px; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hint { color: var(--text-dim); font-size: 13px; margin-top: 14px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; gap: 36px; }
}

/* ── Handy-Mockup mit Karte ───────────────────────────────────────────── */
.phone {
  position: relative; width: min(330px, 100%); aspect-ratio: 9 / 18.5; margin: 0 auto;
  border-radius: 46px; padding: 12px;
  background: linear-gradient(160deg, #2a2338, #0d0a14);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 90px rgba(139,53,204,.35), inset 0 0 0 2px rgba(255,255,255,.04);
}
.screen {
  position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
  background:
    linear-gradient(115deg, transparent 47%, rgba(255,255,255,.06) 47.5%, rgba(255,255,255,.06) 50%, transparent 50.5%),
    linear-gradient(25deg, transparent 60%, rgba(255,255,255,.05) 60.5%, rgba(255,255,255,.05) 62.5%, transparent 63%),
    linear-gradient(160deg, transparent 30%, rgba(255,255,255,.045) 30.5%, rgba(255,255,255,.045) 32%, transparent 32.5%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 34px),
    #1d2430;
}
.screen .me {
  position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%; background: #2196f3; border: 3px solid #fff; box-shadow: 0 0 0 10px rgba(33,150,243,.18);
}
.pin {
  position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px; border: 3px solid #fff;
  animation: float 4s ease-in-out infinite;
}
.pin.party { background: #9c27b0; box-shadow: 0 0 22px #9c27b0; }
.pin.event { background: #2196f3; box-shadow: 0 0 22px #2196f3; animation-delay: .6s; }
.pin.food  { background: #ff9800; box-shadow: 0 0 22px #ff9800; animation-delay: 1.2s; }
.pin.spot  { background: #4caf50; box-shadow: 0 0 22px #4caf50; animation-delay: 1.8s; }
.pin.now   { background: #e91e8c; box-shadow: 0 0 22px #e91e8c; animation-delay: 2.4s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .pin { animation: none; } html { scroll-behavior: auto; } }

.screen .topbar, .screen .sheet, .screen .tabbar {
  position: absolute; left: 12px; right: 12px; border-radius: 22px;
  background: rgba(20,16,30,.55); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.screen .topbar { top: 14px; height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 10px; font-size: 11px; color: var(--text-dim); }
.screen .chip { padding: 3px 8px; border-radius: 100px; background: rgba(255,255,255,.08); }
.screen .chip.on { background: var(--gradient); color: #fff; }
.screen .sheet { bottom: 78px; padding: 12px 14px; font-size: 12px; }
.screen .sheet b { display: block; font-size: 13.5px; color: #fff; }
.screen .sheet span { color: var(--text-dim); }
.screen .tabbar { bottom: 14px; height: 52px; display: flex; justify-content: space-around; align-items: center; font-size: 10px; color: var(--text-dim); border-radius: 100px; }
.screen .tabbar .on { color: #d9a8ff; font-weight: 700; }

/* ── Sektionen ────────────────────────────────────────────────────────── */
section { padding: 40px 0; }
.section-title { text-align: center; margin: 0 auto 36px; max-width: 680px; }
.section-title h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -1px; margin: 0 0 10px; line-height: 1.15; }
.section-title p { color: var(--text-dim); margin: 0; font-size: 17px; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { padding: 24px; }
.card h3 { margin: 14px 0 6px; font-size: 18px; letter-spacing: -.2px; }
.card p { margin: 0; color: var(--text-dim); font-size: 15px; }
.icon-badge {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px;
  background: var(--gradient); box-shadow: 0 8px 22px rgba(139,53,204,.35);
}
.icon-badge.soft { background: rgba(139,53,204,.18); box-shadow: none; border: 1px solid rgba(139,53,204,.35); }

.steps { counter-reset: s; }
.step { position: relative; padding: 24px 24px 24px 76px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; background: var(--gradient); color: #fff;
}
.step h3 { margin: 0 0 4px; font-size: 17px; }
.step p { margin: 0; color: var(--text-dim); font-size: 15px; }

.categories { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cat { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 100px; font-weight: 600; font-size: 15px; }

.banner { padding: 40px 28px; text-align: center; border-radius: var(--radius-xl); position: relative; overflow: hidden; }
.banner::before { content: ""; position: absolute; inset: 0; background: var(--gradient); opacity: .22; z-index: -1; }
.banner h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 10px; letter-spacing: -.8px; }
.banner p { color: var(--text-dim); margin: 0 auto 24px; max-width: 560px; }

/* ── Inhaltsseiten (Rechtliches, Support) ─────────────────────────────── */
.page-head { padding: 40px 16px 18px; }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); margin: 12px 0 8px; }
.page-head p { color: var(--text-dim); margin: 0; }
.doc { padding: 28px; margin-bottom: 40px; }
@media (max-width: 600px) { .doc { padding: 20px 18px; } }
.doc h2 { font-size: 20px; margin: 28px 0 8px; letter-spacing: -.2px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 16.5px; margin: 18px 0 6px; }
.doc p, .doc li { color: #d7d2e2; font-size: 15.5px; }
.doc ul { padding-left: 20px; margin: 6px 0 12px; }
.doc li { margin: 4px 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.toc a { padding: 7px 13px; border-radius: 100px; background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); font-size: 13.5px; font-weight: 600; }
.toc a:hover { color: var(--text); text-decoration: none; }
.note {
  padding: 14px 16px; border-radius: 16px; margin: 14px 0;
  background: rgba(139,53,204,.14); border: 1px solid rgba(139,53,204,.35); color: #e6d6f5; font-size: 14.5px;
}
.note.warn { background: rgba(255,154,60,.12); border-color: rgba(255,154,60,.4); color: #ffe2c4; }
.placeholder { background: rgba(255,154,60,.18); color: #ffd3a6; padding: 1px 6px; border-radius: 6px; font-weight: 600; }

/* FAQ */
.faq details { padding: 0; margin-bottom: 10px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; font-weight: 700; font-size: 16px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-strong); font-size: 18px; transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 20px 18px; color: var(--text-dim); font-size: 15.5px; }

.contact-card { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.contact-card h3 { margin: 4px 0 0; }
.contact-card p { margin: 0; color: var(--text-dim); }
.btn-discord { background: #5865f2; color: #fff; box-shadow: 0 8px 24px rgba(88,101,242,.35); }

/* ── Footer ───────────────────────────────────────────────────────────── */
footer { padding: 40px 0 34px; margin-top: 20px; border-top: 1px solid var(--border); }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.foot h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-dim); }
.foot a { display: block; color: var(--text); opacity: .85; font-size: 14.5px; padding: 3px 0; }
.foot p { color: var(--text-dim); font-size: 14px; margin: 10px 0 0; max-width: 320px; }
.copyright { margin-top: 28px; color: var(--text-dim); font-size: 13px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* ── Sprachen: Inhalte der nicht gewählten Sprache ausblenden ─────────── */
html[data-lang="de"] [lang="en"]:not(html),
html[data-lang="en"] [lang="de"]:not(html) { display: none !important; }

/* Sichtbarer Fokus für Tastaturbedienung */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid #d9a8ff; outline-offset: 3px; border-radius: 10px;
}
