/* Christoph Hanft Dev — shared styles
   Schlichtes Schwarz-Weiß-Design, angelehnt an Apples visuelle Sprache,
   da sich die Apps an iOS/iPadOS/macOS richten. */

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #6e6e73;
  --border: #e5e5e7;
  --surface: #fafafa;
  --accent: #0a0a0a;
  --accent-fg: #ffffff;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 960px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --fg: #f5f5f7;
    --muted: #98989d;
    --border: #2c2c2e;
    --surface: #111113;
    --accent: #f5f5f7;
    --accent-fg: #0a0a0a;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--fg);
}

/* Hero */

.hero {
  padding: 56px 0 40px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Apps grid */

.apps {
  padding: 40px 0 100px;
}

.apps h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 48px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.app-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  .app-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  }
}

.app-icon {
  width: 96px;
  height: 96px;
  margin-bottom: 24px;
  border-radius: 22%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

@media (prefers-color-scheme: dark) {
  .app-icon {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  }
}

.app-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.app-card .tagline {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0 0 28px;
  max-width: 320px;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--fg);
}

.btn-disabled {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
  cursor: default;
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer a {
  text-decoration: none;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--fg);
}

.footer-links {
  display: flex;
  gap: 20px;
}

/* Legal / privacy pages */

.legal {
  padding: 64px 0 96px;
}

.legal .back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}

.legal .back-link:hover {
  color: var(--fg);
}

.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 40px;
}

.legal h2 {
  font-size: 1.15rem;
  margin: 40px 0 12px;
}

.legal p,
.legal li {
  color: var(--fg);
  font-size: 0.98rem;
}

.legal ul {
  padding-left: 20px;
}

.legal .placeholder {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--muted);
}

.legal .summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 20px 0 32px;
  font-size: 0.95rem;
}

.legal code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--surface);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
