/* ============================================================
   OpenAmer — Design System
   ============================================================ */
:root {
  --bg: #07080c;
  --bg-2: #0a0c12;
  --surface: #0f1219;
  --surface-2: #141926;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2f8;
  --muted: #99a5b9;
  --accent: #5b8cff;
  --accent-2: #a855f7;
  --accent-3: #22d3ee;
  --success: #22c55e;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "Cascadia Code", Consolas, monospace;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Hintergrund-Glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(91, 140, 255, 0.16), transparent 60%),
    radial-gradient(800px 500px at 85% 0%, rgba(168, 85, 247, 0.12), transparent 60%);
  z-index: 0;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(7, 8, 12, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; letter-spacing: -0.02em; font-size: 18px; }
.brand-mark { width: 30px; height: 30px; display: block; object-fit: contain; border-radius: 8px; box-shadow: 0 6px 20px rgba(34, 211, 238, 0.28); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color 0.18s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 11px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s, border-color 0.18s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 30px rgba(91, 140, 255, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(91, 140, 255, 0.42); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 9px; }

/* ---------- Hero ---------- */
.hero { padding: 92px 0 64px; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 99px;
  border: 1px solid rgba(91, 140, 255, 0.35);
  background: rgba(91, 140, 255, 0.08);
  color: #a8c2ff; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  margin-bottom: 26px;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }

h1 {
  font-size: clamp(38px, 6.2vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-bottom: 22px;
}
.grad {
  background: linear-gradient(100deg, #fff 10%, #a8c2ff 45%, #d8b4fe 80%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  font-size: clamp(17px, 2.1vw, 20.5px);
  color: var(--muted);
  max-width: 680px; margin: 0 auto 38px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: 13.5px; color: #6f7c92; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 56px 0 0;
}
.stat { background: var(--surface); padding: 26px 18px; text-align: center; }
.stat b { display: block; font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.02em; background: linear-gradient(135deg, #fff, #9db8ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */
section { padding: 84px 0; position: relative; z-index: 1; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 52px; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.14; letter-spacing: -0.028em; font-weight: 800; margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 17px; }

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

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.card-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 21px;
  background: rgba(91, 140, 255, 0.1);
  border: 1px solid rgba(91, 140, 255, 0.22);
  margin-bottom: 18px;
}
.card h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 9px; letter-spacing: -0.015em; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--accent);
  display: block; margin-bottom: 12px; letter-spacing: 0.1em;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- Video ---------- */
.video-section { text-align: center; }
.video-stage { max-width: 600px; margin: 40px auto 0; padding: 44px 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 28px; border: 1px solid var(--border);
  background: radial-gradient(90% 130% at 50% 0%, rgba(34, 211, 238, 0.16), rgba(7, 8, 12, 0) 62%),
              rgba(12, 15, 22, 0.72);
  box-shadow: var(--shadow); }
.video-frame { width: clamp(280px, 30vw, 400px); max-width: 88vw; margin: 0;
  border-radius: 22px; overflow: hidden; border: 1px solid var(--border-strong);
  background: #000; box-shadow: 0 40px 120px rgba(34, 211, 238, 0.28); }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: #000; }
.video-frame iframe { display: block; width: 100%; aspect-ratio: 9 / 16; border: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px 24px; margin-bottom: 12px;
  transition: border-color 0.2s;
}
.faq details:hover { border-color: var(--border-strong); }
.faq details[open] { border-color: rgba(91, 140, 255, 0.3); }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 16.5px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); font-size: 15px; margin-top: 14px; }

/* ---------- CTA-Box ---------- */
.cta-box {
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.14), rgba(168, 85, 247, 0.12));
  border: 1px solid rgba(91, 140, 255, 0.3);
  border-radius: 24px;
  padding: 56px 32px;
  text-align: center;
}
.cta-box h2 { margin-bottom: 14px; }
.cta-box p { color: var(--muted); margin-bottom: 28px; font-size: 17px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 52px 0 34px; margin-top: 40px; position: relative; z-index: 1; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 38px; }
.foot-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: #6f7c92; margin-bottom: 14px; font-weight: 700; }
.foot-grid a { display: block; color: var(--muted); text-decoration: none; font-size: 14.5px; margin-bottom: 9px; transition: color 0.18s; }
.foot-grid a:hover { color: var(--text); }
.foot-desc { color: var(--muted); font-size: 14.5px; max-width: 300px; margin-top: 14px; }
.foot-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #6f7c92; font-size: 13.5px; }

/* ---------- Reveal-Animation ---------- */
/* Inhalt ist IMMER sichtbar. Nur wenn JavaScript laeuft (html.js), startet er
   unsichtbar und wird beim Scrollen eingeblendet. Damit kann eine fehlende oder
   haengende Skriptdatei die Seite nie leer aussehen lassen. */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .steps { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .hero { padding: 64px 0 44px; }
  section { padding: 60px 0; }
  .stat { padding: 20px 12px; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------- Legal-Seiten ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 72px 0 90px; }
.legal h1 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 12px; }
.legal .lead { color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-size: 21px; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent); }
.legal .note { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px; font-size: 14.5px; }

/* ---------- Sprachauswahl ---------- */
.lang-sel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 13.5px;
  font-family: var(--font);
  cursor: pointer;
  max-width: 150px;
}
.lang-sel:hover { background: rgba(255, 255, 255, 0.09); }
.lang-sel option { background: #0f1219; color: #eef2f8; }
@media (max-width: 640px) {
  .nav-cta .lang-sel { max-width: 105px; font-size: 12.5px; padding: 7px 6px; }
}

/* ---------- RTL (Arabisch) ---------- */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .nav-inner,
html[dir="rtl"] .nav-links,
html[dir="rtl"] .nav-cta,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .links,
html[dir="rtl"] .foot-bottom { flex-direction: row-reverse; }
html[dir="rtl"] .card,
html[dir="rtl"] .step,
html[dir="rtl"] .faq,
html[dir="rtl"] .legal { text-align: right; }
html[dir="rtl"] .foot-desc { text-align: right; }
html[dir="rtl"] .faq summary { flex-direction: row-reverse; }

/* Inhalt sichtbar bleiben, wenn Animationen unerwuenscht/abgeschaltet sind */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Abschnitt "In Aktion" - gleiche Bildhoehe, Karten gleich hoch, alles zentriert */
.demos-section { padding: 88px 0; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 36px; align-items: stretch; }
.demo-card { margin: 0; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.demo-card picture { display: flex; align-items: center; justify-content: center;
  height: 300px; background: #07080c; }
.demo-card img { display: block; width: 100%; height: 300px; object-fit: contain; background: #07080c; }
.demo-card figcaption { margin-top: auto; padding: 16px 20px 20px;
  color: var(--muted); font-size: 14.5px; line-height: 1.6; text-align: center; }
@media (max-width: 860px) {
  .demo-grid { grid-template-columns: 1fr; }
  .demos-section { padding: 64px 0; }
  .demo-card picture, .demo-card img { height: 210px; }
}

/* Hero-Banner: Logo + Wortmarke, Trennlinie, Tagline, Plattformzeile - alles zentriert */
.hero-banner { display: flex; flex-direction: column; align-items: center;
  max-width: 980px; margin: 26px auto 34px; padding: 38px 44px 34px;
  border: 1px solid var(--border-strong); border-radius: 26px;
  background: radial-gradient(120% 160% at 50% 0%, rgba(34, 211, 238, 0.13), rgba(7, 8, 12, 0) 62%),
              rgba(15, 18, 25, 0.66);
  box-shadow: var(--shadow); }

.banner-lockup { display: flex; align-items: center; justify-content: center; gap: 18px;
  width: 100%; padding-bottom: 24px; border-bottom: 1px solid var(--border); }

.banner-logo { width: 72px; height: 72px; display: block; }

.banner-word { font-family: "Bahnschrift", var(--font); font-size: 38px; font-weight: 700;
  letter-spacing: -0.01em; color: var(--text); line-height: 1; }

.hero-banner h1 { font-family: "Bahnschrift", var(--font); margin: 26px 0 0;
  font-size: clamp(30px, 4.4vw, 52px); line-height: 1.1; letter-spacing: -0.01em; text-align: center; }

.banner-platforms { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); width: 100%;
  text-align: center; font-family: "Bahnschrift", var(--font); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: #22d3ee; opacity: 0.85; }

@media (max-width: 720px) {
  .hero-banner { padding: 26px 18px 24px; border-radius: 20px; margin: 16px auto 24px; }
  .banner-lockup { gap: 12px; padding-bottom: 18px; }
  .banner-logo { width: 54px; height: 54px; }
  .banner-word { font-size: 27px; }
  .hero-banner h1 { margin-top: 20px; }
  .banner-platforms { margin-top: 20px; padding-top: 18px; font-size: 11px; letter-spacing: 0.12em; }
}

/* ---------- Download (Android) ---------- */
.dl-box {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.10), rgba(91, 140, 255, 0.10));
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 24px;
  padding: 46px 32px;
  text-align: center;
}
.dl-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.dl-box h2 { margin-bottom: 12px; }
.dl-box p {
  color: var(--muted);
  font-size: 16.5px;
  max-width: 640px;
  margin: 0 auto 26px;
}
.dl-box .dl-note {
  font-size: 13.5px;
  color: #6f7c92;
  margin: 0;
}
@media (max-width: 640px) {
  .dl-box { padding: 32px 20px; }
}

/* ---------- Badge als Link auf die Live-App ---------- */
a.badge-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
a.badge-link:hover {
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(34, 211, 238, 0.08);
  transform: translateY(-1px);
}
a.badge-link .badge-arrow {
  margin-left: 6px;
  color: #22d3ee;
  transition: transform 0.25s ease;
  display: inline-block;
}
a.badge-link:hover .badge-arrow { transform: translateX(3px); }

/* ---------- Anker-Spruenge: die feste Navigation darf die Ueberschrift nicht verdecken ---------- */
section[id],
[id="download"],
header[id] {
  scroll-margin-top: 92px;
}

/* ---------- Installations-Wege: Windows - macOS - Linux - Android ----------
   Alle Karten haben dieselben fuenf Zeilen (Plattform, Beschreibung, Knopf,
   Zusatzlink, Version). Feste Mindesthoehen halten die Zeilen ueber alle Karten
   auf gleicher Hoehe -- kein margin-top:auto, das verschiebt die Knoepfe. */
.dl-head { text-align: center; margin-bottom: 34px; }
.dl-head h2 { margin: 10px 0 10px; }
.dl-head p { color: #8b9bb4; margin: 0; }

.dl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.dl-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 28px 20px 24px;
  background: linear-gradient(180deg, rgba(17, 23, 37, 0.92), rgba(11, 16, 24, 0.92));
  border: 1px solid #1b2434;
  border-radius: 16px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.dl-card:hover {
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-2px);
}

.dl-plat {
  font-size: 17px;
  font-weight: 700;
  color: #e6edf7;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.dl-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: #8b9bb4;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-card .btn {
  width: 100%;
  justify-content: center;
  margin: 0;
}

.dl-meta {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: #5d6b82;
  letter-spacing: 0.02em;
}
.dl-meta a {
  color: #7d8ba3;
  text-decoration: none;
  border-bottom: 1px solid rgba(125, 139, 163, 0.45);
}
.dl-meta a:hover { color: #22d3ee; border-bottom-color: #22d3ee; }

.dl-web {
  text-align: center;
  margin: 28px 0 0;
  font-size: 14px;
}
.dl-web a {
  color: #22d3ee;
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 211, 238, 0.3);
  padding-bottom: 1px;
}
.dl-web a:hover { border-bottom-color: #22d3ee; }

@media (max-width: 1000px) {
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .dl-grid { grid-template-columns: 1fr; }
  .dl-desc { min-height: 0; }
}


/* ---------- Hinweise unter den Installations-Karten ---------- */
.dl-notes {
  max-width: 760px;
  margin: 22px auto 0;
  text-align: center;
}
.dl-notes p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #7d8ba3;
}
.dl-notes p:first-child { color: #9fb0c9; }
@media (max-width: 560px) {
  .dl-notes { margin-top: 18px; }
  .dl-notes p { font-size: 12.5px; }
}

/* ---------- Eigenes Modell: OpenAmer-Max ---------- */
.model-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 900px;
  margin: 34px auto 0;
  padding: 26px 30px;
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.07), rgba(124, 92, 255, 0.07));
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 18px;
}
.model-txt h3 {
  margin: 8px 0 6px;
  font-size: 19px;
  color: #e6edf7;
}
.model-txt p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #8b9bb4;
  max-width: 560px;
}
.model-box .btn { white-space: nowrap; flex-shrink: 0; }

@media (max-width: 760px) {
  .model-box {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 22px;
  }
  .model-box .btn { width: 100%; justify-content: center; }
}

.model-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.model-mirror {
  font-size: 12px;
  color: #7d8ba3;
  text-decoration: none;
  border-bottom: 1px solid rgba(125, 139, 163, 0.45);
}
.model-mirror:hover { color: #22d3ee; border-bottom-color: #22d3ee; }
@media (max-width: 760px) {
  .model-actions { width: 100%; align-items: stretch; }
  .model-mirror { text-align: center; border-bottom: 0; }
}
