/* Apps Berber – gemeinsames Aussehen aller Seiten */
@font-face {
  font-family: "Overpass";
  src: url("fonts/Overpass-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Bungee";
  src: url("fonts/Bungee-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #0b0e16;
  --surface: #131826;
  --surface-2: #1a2033;
  --line: #262d44;
  --ink: #eef2ff;
  --muted: #98a1bd;
  --accent: #2f6bff;
  --accent-edge: #1a3fa8;
  --amber: #ffc23a;
  --radius: 20px;
  --gutter: 20px;
  --width: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }

/* Sprache: es wird immer nur eine angezeigt */
html[lang="de"] .en, html[lang="en"] .de { display: none !important; }

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

/* Kopfzeile */
.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  font-size: 15px; text-decoration: none;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  font-weight: 900; font-size: 17px; letter-spacing: 0;
}
.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  padding: 3px; background: rgba(10, 14, 24, .5);
}
.lang button {
  font: inherit; font-size: 13px; font-weight: 700; color: var(--muted);
  background: none; border: 0; border-radius: 999px;
  padding: 5px 12px; cursor: pointer;
}
html[lang="de"] .lang [data-lang="de"],
html[lang="en"] .lang [data-lang="en"] { background: var(--ink); color: var(--bg); }
.lang button:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--amber); outline-offset: 3px;
}

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 16px;
  font-weight: 800; font-size: 17px; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-play {
  background: var(--accent); color: #fff;
  box-shadow: 0 5px 0 var(--accent-edge);
}
.btn-play:hover { transform: translateY(-1px); box-shadow: 0 6px 0 var(--accent-edge); }
.btn-play:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--accent-edge); }
.btn-play svg { width: 18px; height: 18px; flex: none; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: #3a4468; }

/* Fußzeile */
.foot {
  border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px;
  color: var(--muted); font-size: 15px;
}
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* Startseite */
.home-hero { padding: 56px 0 44px; max-width: 720px; }
.home-hero h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; letter-spacing: -.02em; }
.home-hero p { margin-top: 16px; color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); max-width: 52ch; }
.label {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.apps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.app-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.app-card.featured { grid-column: 1 / -1; }
.app-cover { aspect-ratio: 1024 / 500; width: 100%; height: auto; object-fit: cover; background: #151a33; }
.app-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.app-head { display: flex; align-items: center; gap: 14px; }
.app-icon { width: 60px; height: 60px; border-radius: 15px; flex: none; }
.app-head h2 { font-size: 22px; font-weight: 800; }
.app-kind { color: var(--muted); font-size: 14px; }
.app-text { color: #c5cce2; max-width: 60ch; }
.app-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 6px; }
.app-soon {
  border: 1px dashed #303956; border-radius: var(--radius); background: transparent;
  min-height: 150px; display: grid; place-items: center; text-align: center;
  color: var(--muted); padding: 24px;
}
@media (min-width: 760px) {
  .app-card.featured { flex-direction: row; align-items: stretch; }
  .app-card.featured { align-items: center; }
  .app-card.featured .app-cover { width: 58%; }
  .app-card.featured .app-body { padding: 32px; justify-content: center; flex: 1; }
  .app-card.featured .app-actions { margin-top: 6px; }
}

/* Textseiten (Impressum, Datenschutz) */
.doc { max-width: 720px; padding-top: 28px; }
.doc h1 { font-size: clamp(26px, 4.5vw, 36px); font-weight: 800; margin-bottom: 12px; }
.doc h2 { font-size: 19px; font-weight: 800; margin: 34px 0 8px; }
.doc p { color: #c5cce2; margin-bottom: 12px; }
.doc a { color: #8fb0ff; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
