/* moidev – Dachseite für alle Apps (hell und dunkel, gleicher Aufbau wie die App-Websites) */
:root { --bg: #f5f6f8; --ink: #161a20; --muted: #5d6573; --accent: #2f6fd0; --card: #ffffff; --line: rgba(20, 30, 50, 0.12); }
@media (prefers-color-scheme: dark) {
  :root { --bg: #0c0e12; --ink: #e9edf3; --muted: #959eac; --accent: #6ea4ee; --card: #161a21; --line: rgba(220, 230, 255, 0.12); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; padding: 24px 16px 40px; background: var(--bg); color: var(--ink); line-height: 1.55;
  font-family: system-ui, -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
}
main { width: 100%; max-width: 680px; margin: 0 auto; }
a { color: var(--accent); overflow-wrap: anywhere; }
h1 { margin: 0 0 4px; font-size: 1.9rem; line-height: 1.2; letter-spacing: -0.01em; }
h2 { margin: 28px 0 6px; font-size: 1.2rem; }
p, ul { margin: 0 0 12px; }
.meta { color: var(--muted); margin-bottom: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin: 18px 0; }
.back { display: inline-block; margin-bottom: 18px; text-decoration: none; font-weight: 600; }
footer { margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
footer a { color: var(--muted); margin-right: 14px; }

/* Startseite – Apps als Raster: 2 Spalten (Handy), 3 (Tablet), 4 (Desktop) */
.home { min-height: calc(100vh - 64px); display: flex; flex-direction: column; justify-content: center; max-width: 980px; }
.brand { margin: 0 0 6px; font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; }
.intro { color: var(--muted); margin-bottom: 26px; }
.apps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .apps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 900px) { .apps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.apps li { display: flex; }
.apps a {
  flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.apps a:hover, .apps a:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.apps img { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 13px; object-fit: cover; background: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12); }
.apps .text { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.apps strong { display: block; font-size: 1.05rem; line-height: 1.3; }
.apps .desc { display: block; color: var(--muted); font-size: 0.9rem; line-height: 1.4; margin-top: 2px; }
.apps .platforms { display: block; color: var(--muted); font-size: 0.78rem; margin-top: auto; padding-top: 8px; letter-spacing: 0.02em; }
@media (max-width: 380px) {
  .apps a { padding: 14px 12px; }
  .apps .desc { font-size: 0.85rem; }
}
.home footer { border: 0; margin-top: 28px; text-align: center; }
.home footer a { color: var(--ink); margin: 0 8px; }

/* Sprache: nur die Texte der aktiven Sprache zeigen (html lang wird im Skript in index.html gesetzt) */
html[lang="de"] body [lang="en"], html[lang="en"] body [lang="de"] { display: none !important; }
.lang-switch { align-self: flex-end; margin-bottom: 8px; font-size: 0.85rem; }
.lang-switch a { color: var(--muted); text-decoration: none; padding: 4px 2px; }
.lang-switch a:hover, .lang-switch a:focus-visible { color: var(--accent); text-decoration: underline; }
