/* ─── Self-hosted Inter font ────────────────────────────────────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/inter.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── Reset & base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #f9f9f8;
  --surface:    #ffffff;
  --border:     #e5e5e3;
  --text:       #1a1a18;
  --text-muted: #6b6b68;
  --accent:     #2563eb;
  --accent-bg:  #eff6ff;
  --live-bg:    #dcfce7;
  --live-fg:    #166534;
  --dev-bg:     #fef9c3;
  --dev-fg:     #854d0e;
  --radius:     10px;
  --shadow:     0 1px 4px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.04);
}

html { font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

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

/* ─── Layout ────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ─── Header ────────────────────────────────────────────────────────── */
header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.wordmark {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -.02em;
  color: var(--text);
  text-decoration: none;
}
.wordmark:hover { text-decoration: none; }

nav a {
  font-size: .9rem;
  color: var(--text-muted);
}
nav a:hover { color: var(--text); text-decoration: none; }

/* ─── Hero ──────────────────────────────────────────────────────────── */
.hero {
  padding: 3rem 0 2.5rem;
}

.hero-banner {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* ─── Apps section ──────────────────────────────────────────────────── */
.apps {
  padding-bottom: 5rem;
}

.apps h2 {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

/* ─── App card ──────────────────────────────────────────────────────── */
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

/* content area below the visual gets its own padding */
.app-card > :not(.app-visual) {
  padding-inline: 1.5rem;
}
.app-card > :last-child {
  padding-bottom: 1.5rem;
}
/* cards without a visual keep the original padding everywhere */
.app-card:not(:has(.app-visual)) {
  padding: 1.5rem;
}

/* ─── App visual (splash + icon) ────────────────────────────────────── */
.app-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  background: #e8eef7;
  flex-shrink: 0;
}

.app-splash {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-icon-img {
  position: absolute;
  bottom: -20px;
  left: 1.25rem;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 2px solid var(--surface);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  background: var(--surface);
}

/* push app-header down to clear the overflowing icon */
.app-card:has(.app-visual) .app-header {
  margin-top: 1rem;
}

.app-card--muted {
  background: var(--bg);
  box-shadow: none;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.app-header h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.app-card p {
  font-size: .9rem;
  color: var(--text-muted);
  flex: 1;
}

.app-platforms {
  font-size: .75rem !important;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--text-muted) !important;
  flex: 0 !important;
}

.app-link {
  font-size: .875rem;
  font-weight: 500;
  align-self: flex-start;
}

/* ─── Badges ────────────────────────────────────────────────────────── */
.badge {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .2em .6em;
  border-radius: 999px;
  white-space: nowrap;
}

.badge--live {
  background: var(--live-bg);
  color: var(--live-fg);
}

.badge--dev {
  background: var(--dev-bg);
  color: var(--dev-fg);
}

.badge--idea {
  background: #f3e8ff;
  color: #6b21a8;
}

/* ─── Footer ────────────────────────────────────────────────────────── */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

footer p {
  font-size: .85rem;
  color: var(--text-muted);
}

footer a {
  color: var(--text-muted);
}
footer a:hover { color: var(--text); }

.footer-legal {
  margin-top: .5rem;
  display: flex;
  gap: 1.25rem;
}

.footer-legal a {
  font-size: .8rem;
}

/* ─── Legal pages (Impressum / Datenschutz) ─────────────────────────── */
.legal-page {
  padding: 3rem 0 5rem;
}

.legal-page h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: .4rem;
}

.legal-page h3 {
  font-size: .9rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: .3rem;
}

.legal-page p {
  font-size: .9rem;
  color: var(--text-muted);
  max-width: 68ch;
}

/* ─── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero { padding: 3rem 0 2.5rem; }
  .app-grid { grid-template-columns: 1fr; }
}
