/* ReverseGram Landingpage – statisch, ohne JS-Bundle. */

:root {
  --brand: #504af9;
  --brand-2: #a855f7;
  --brand-3: #ec4899;
  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --bg-card: #ffffff;
  --fg: #0d0d12;
  --fg-muted: #5b5b6b;
  --border: #e8e8ef;
  --shadow: 0 1px 2px rgba(16, 16, 32, .04), 0 12px 32px rgba(16, 16, 32, .06);
  --shadow-lg: 0 2px 4px rgba(16, 16, 32, .05), 0 24px 64px rgba(16, 16, 32, .12);
  --radius: 18px;
  --maxw: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0b;
    --bg-soft: #111117;
    --bg-card: #14141c;
    --fg: #f4f4f8;
    --fg-muted: #a0a0b4;
    --border: #24242f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .5), 0 24px 64px rgba(0, 0, 0, .55);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; height: auto; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.25rem, 6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0; }

.grad {
  background: linear-gradient(96deg, var(--brand) 0%, var(--brand-2) 48%, var(--brand-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }

.nav { display: none; gap: 1.5rem; margin-left: auto; }
.nav a { color: var(--fg-muted); font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--fg); text-decoration: none; }

.header-cta { margin-left: auto; }
.nav + .header-cta { margin-left: 0; }

@media (min-width: 860px) {
  .nav { display: flex; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.35rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: .97rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(96deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--brand) 38%, transparent);
}
.btn-primary:hover { box-shadow: 0 10px 28px color-mix(in srgb, var(--brand) 48%, transparent); }

.btn-ghost {
  background: var(--bg-card);
  color: var(--fg);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.btn-sm { padding: .5rem 1rem; font-size: .9rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.hero::before {
  content: "";
  position: absolute;
  top: -34%;
  left: 50%;
  width: min(1100px, 130%);
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%,
    color-mix(in srgb, var(--brand) 26%, transparent) 0%,
    color-mix(in srgb, var(--brand-3) 12%, transparent) 42%,
    transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

@media (min-width: 940px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--fg-muted);
  font-size: .84rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(120deg, var(--brand), var(--brand-3));
}

.hero h1 { margin-bottom: 1.1rem; }

.lede {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: var(--fg-muted);
  max-width: 34rem;
  margin-bottom: 1.9rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }

.store-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1.05rem;
  border-radius: 14px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  font-size: .9rem;
  line-height: 1.15;
}
.store-badge:hover { text-decoration: none; opacity: .88; }
.store-badge svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.store-badge small { display: block; font-size: .68rem; font-weight: 500; opacity: .72; }

/* ---------- Phone-Mockup (reines CSS, keine Bilddateien) ---------- */

.phone-stage { display: flex; justify-content: center; }

.phone {
  position: relative;
  width: min(290px, 78vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  padding: 11px;
  background: linear-gradient(160deg, #2b2b38, #0c0c11);
  box-shadow: var(--shadow-lg);
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(170deg, #15121f 0%, #0b0b10 55%, #120d1c 100%);
  display: flex;
  flex-direction: column;
  color: #f4f4f8;
}

.phone-notch {
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 22px;
  border-radius: 999px;
  background: #08080c;
  z-index: 3;
}

.phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.55rem .95rem .55rem;
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.phone-bar .glyph { opacity: .55; font-weight: 400; }

.phone-feed { flex: 1; padding: .35rem .7rem; display: flex; flex-direction: column; gap: .55rem; overflow: hidden; }

.p-card {
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .07);
  padding: .55rem;
}

.p-head { display: flex; align-items: center; gap: .45rem; margin-bottom: .45rem; }
.p-avatar {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
}
.p-name { height: 7px; width: 62px; border-radius: 4px; background: rgba(255, 255, 255, .3); }
.p-time { height: 6px; width: 26px; border-radius: 4px; background: rgba(255, 255, 255, .14); margin-left: auto; }

.p-media {
  border-radius: 11px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #6d5df6 0%, #a855f7 45%, #ec4899 100%);
  position: relative;
  overflow: hidden;
}
.p-media.alt { background: linear-gradient(135deg, #f59e0b 0%, #ec4899 55%, #6366f1 100%); }
.p-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 28% 22%, rgba(255, 255, 255, .38), transparent 52%);
}

.p-actions { display: flex; gap: .4rem; margin-top: .45rem; }
.p-pill { height: 7px; width: 30px; border-radius: 999px; background: rgba(255, 255, 255, .22); }
.p-pill.wide { width: 46px; }

.phone-tabs {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: .65rem .5rem .95rem;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.t-dot { width: 17px; height: 17px; border-radius: 6px; background: rgba(255, 255, 255, .16); }
.t-dot.on { background: linear-gradient(135deg, var(--brand), var(--brand-3)); }

/* ---------- Fakten-Leiste ---------- */

.facts {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 720px) { .facts { grid-template-columns: repeat(4, 1fr); } }

.fact { background: var(--bg-card); padding: 1.15rem 1.25rem; }
.fact dt { font-size: .82rem; color: var(--fg-muted); font-weight: 600; margin-bottom: .2rem; }
.fact dd { margin: 0; font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }

/* ---------- Sektionen ---------- */

section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
section.soft { background: var(--bg-soft); border-block: 1px solid var(--border); }

.sec-head { max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head h2 { margin-bottom: .85rem; }
.sec-head p { color: var(--fg-muted); font-size: 1.05rem; }

.cards { display: grid; gap: 1.15rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--fg-muted); font-size: .97rem; }

.icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 18%, transparent), color-mix(in srgb, var(--brand-3) 18%, transparent));
  color: var(--brand);
}
.icon svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Schritte ---------- */

.steps { display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step { position: relative; padding-top: 3.1rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0; left: 0;
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.step h3 { margin-bottom: .45rem; }
.step p { color: var(--fg-muted); font-size: .97rem; }

/* ---------- Vergleich ---------- */

.compare { display: grid; gap: 1.15rem; }
@media (min-width: 760px) { .compare { grid-template-columns: 1fr 1fr; } }

.compare-col {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--bg-card);
}
.compare-col.accent {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
  box-shadow: var(--shadow);
}
.compare-col h3 { margin-bottom: 1rem; }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.compare-col li { display: flex; gap: .65rem; align-items: flex-start; font-size: .97rem; color: var(--fg-muted); }
.compare-col li b { color: var(--fg); font-weight: 650; }
.mark { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.mark svg { width: 20px; height: 20px; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mark.yes svg { stroke: #16a34a; }
.mark.no svg { stroke: var(--fg-muted); }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: .7rem; max-width: 48rem; }

.faq details {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  padding: 0 1.25rem;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 0;
  font-weight: 650;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid var(--fg-muted);
  border-bottom: 2px solid var(--fg-muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq .answer { padding: 0 0 1.15rem; color: var(--fg-muted); font-size: .99rem; }
.faq .answer p + p { margin-top: .7rem; }

/* ---------- CTA ---------- */

.cta-band {
  border-radius: 26px;
  padding: clamp(2.2rem, 5vw, 3.4rem);
  text-align: center;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 52%, var(--brand-3) 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { margin-bottom: .8rem; }
.cta-band p { color: rgba(255, 255, 255, .88); max-width: 34rem; margin: 0 auto 1.7rem; }
.cta-band .cta-row { justify-content: center; margin-bottom: 0; }
.cta-band .btn-ghost { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .3); box-shadow: none; }
.cta-band .store-badge { background: #fff; color: #101018; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2.5rem;
  background: var(--bg-soft);
}

.foot-grid { display: grid; gap: 2rem; margin-bottom: 2.25rem; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.foot-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-muted); margin: 0 0 .85rem; font-weight: 700; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot-col a { color: var(--fg-muted); font-size: .94rem; }
.foot-col a:hover { color: var(--fg); }
.foot-about p { color: var(--fg-muted); font-size: .94rem; margin-top: .8rem; max-width: 22rem; }
.foot-about ul { margin-top: .9rem; }

.foot-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  color: var(--fg-muted);
  font-size: .88rem;
}
.lang-switch { display: flex; gap: .8rem; align-items: center; }
.lang-switch strong { color: var(--fg); font-weight: 650; }

/* ---------- Artikel- und Verzeichnisseiten ---------- */

.article { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.article .wrap { max-width: 46rem; }
.article h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin-bottom: 1rem; }
.article h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin: 2.4rem 0 .8rem; }
.article h3 { margin: 1.7rem 0 .5rem; }
.article p, .article li { color: var(--fg-muted); }
.article p + p, .article ul, .article ol { margin-top: 1rem; }
.article ul, .article ol { padding-left: 1.3rem; display: grid; gap: .5rem; }
.article .lede { color: var(--fg-muted); font-size: 1.1rem; max-width: none; margin-bottom: 0; }

.crumbs { font-size: .88rem; color: var(--fg-muted); margin-bottom: 1.25rem; }
.crumbs a { color: var(--fg-muted); }
.crumbs a:hover { color: var(--fg); }

.note {
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 12px;
  background: var(--bg-card);
  padding: 1rem 1.15rem;
  margin-top: 1.5rem;
}
.note p { color: var(--fg); font-size: .96rem; }

.link-list { list-style: none; padding: 0; display: grid; gap: .7rem; margin-top: 1.5rem; }
.link-list a {
  display: block;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  padding: 1rem 1.2rem;
  color: var(--fg);
  font-weight: 620;
}
.link-list a:hover { text-decoration: none; border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.link-list span { display: block; font-weight: 400; font-size: .93rem; color: var(--fg-muted); margin-top: .2rem; }

.tag-search { display: flex; gap: .6rem; margin-top: 1.5rem; flex-wrap: wrap; }
.tag-search input {
  flex: 1 1 16rem;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--fg);
  padding: .7rem 1.15rem;
  font: inherit;
  font-size: .97rem;
}
.tag-search input::placeholder { color: var(--fg-muted); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.tag-cloud a {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  padding: .42rem .95rem;
  font-size: .93rem;
  font-weight: 600;
  color: var(--fg);
}
.tag-cloud a:hover { text-decoration: none; border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.tag-cloud b { color: var(--fg-muted); font-weight: 500; font-size: .8rem; }

.post-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.post-card a { color: var(--fg); display: block; }
.post-card a:hover { text-decoration: none; }
.post-card img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--bg-soft); }
.post-card .meta-line { padding: .85rem 1rem 1rem; }
.post-card .meta-line strong { display: block; font-weight: 620; font-size: .97rem; line-height: 1.35; }
.post-card .meta-line span { display: block; color: var(--fg-muted); font-size: .86rem; margin-top: .25rem; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

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