/* app4that – gemeinsames Stylesheet
   Keine externen Fonts/CDNs (DSGVO): nur System-Schriften. */

:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #6b6b70;
  --line: #e4e4e2;
  --accent: #0a6e5c;
  --accent-soft: #e3f1ed;
  --radius: 18px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111213;
    --surface: #1b1c1e;
    --text: #ececec;
    --muted: #9a9aa0;
    --line: #2c2d30;
    --accent: #4fc9ad;
    --accent-soft: #16302a;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

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

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--text); }
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }
.site-header nav a { color: var(--muted); margin-left: 22px; font-size: 15px; }
.site-header nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding-top: 88px; padding-bottom: 56px; }
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  max-width: 14em;
}
.hero p { font-size: 20px; color: var(--muted); max-width: 34em; margin: 0; }

/* Filter */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.filters button {
  font: inherit; font-size: 15px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* App-Raster */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding-bottom: 80px; }
.app-card {
  display: flex; gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease;
}
.app-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.app-card h3 { margin: 0 0 4px; font-size: 19px; letter-spacing: -0.01em; }
.app-card p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.empty { color: var(--muted); grid-column: 1 / -1; }

.icon {
  flex: none;
  width: 64px; height: 64px;
  border-radius: 22.5%;
  background: var(--accent-soft);
  display: grid; place-items: center;
  font-size: 28px; font-weight: 700; color: var(--accent);
  overflow: hidden;
}
.icon img { width: 100%; height: 100%; object-fit: cover; }
.icon.large { width: 128px; height: 128px; font-size: 54px; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  font-size: 12px; font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.badge.draft { background: #fff1d6; color: #8a5a00; }
@media (prefers-color-scheme: dark) { .badge.draft { background: #3a2c10; color: #f0c060; } }

/* Über-Abschnitt */
.about { border-top: 1px solid var(--line); padding: 64px 0; }
.about .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.about h2 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 24px; }
.about h3 { font-size: 17px; margin: 0 0 6px; }
.about p { color: var(--muted); margin: 0; font-size: 16px; }

/* App-Detailseite */
.app-head { display: flex; gap: 28px; align-items: center; padding: 64px 0 32px; flex-wrap: wrap; }
.app-head h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.03em; margin: 0 0 6px; }
.app-head .tagline { color: var(--muted); font-size: 19px; margin: 0 0 14px; }
.store-btn {
  display: inline-block; margin-top: 18px;
  padding: 11px 20px; border-radius: 12px;
  background: var(--text); color: var(--bg); font-weight: 600;
}
.store-btn:hover { text-decoration: none; opacity: .9; }
.store-btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

.shots { display: flex; align-items: flex-start; gap: 16px; overflow-x: auto; padding: 8px 0 24px; scroll-snap-type: x mandatory; }
.shot {
  flex: none; scroll-snap-align: start;
  border-radius: 14px; border: 1px dashed var(--line);
  background: var(--surface); color: var(--muted);
  display: grid; place-items: center; font-size: 14px; text-align: center; padding: 12px;
}
.shot.mac { width: 480px; height: 300px; }
.shot.phone { width: 180px; height: 380px; }
.shot.ipad { width: 300px; height: 400px; }
.shot.watch { width: 150px; height: 184px; border-radius: 36px; }
.shot img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.shots > img { flex: none; height: 440px; width: auto; border-radius: 16px; border: 1px solid var(--line); scroll-snap-align: start; background: var(--surface); }
@media (max-width: 560px) { .shots > img { height: 360px; } }

.prose { max-width: 720px; padding-bottom: 72px; }
.prose h2 { font-size: 24px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose ul { padding-left: 1.2em; }
.prose .meta { color: var(--muted); font-size: 15px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.todo {
  background: #fff7e0; color: #6b4a00;
  border-left: 3px solid #e0a800;
  padding: 2px 8px; border-radius: 4px; font-size: .92em;
}
@media (prefers-color-scheme: dark) { .todo { background: #2e2610; color: #f0d080; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: var(--muted); margin-left: 18px; }
.site-footer a:first-child { margin-left: 0; }

@media (max-width: 560px) {
  .site-header nav a { margin-left: 14px; }
  .hero { padding-top: 56px; padding-bottom: 40px; }
  .shot.mac { width: 320px; height: 200px; }
}

/* Sprachumschalter */
.lang-switch {
  font-size: 13px !important; font-weight: 600;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 10px;
}
.lang-switch:hover { border-color: var(--muted); }

/* Sprachauswahl auf / */
.lang-pick { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 18px; }
.lang-pick .choices { display: flex; gap: 12px; justify-content: center; }
.lang-pick .choices a { padding: 10px 22px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; }
