:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #18181b;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #dbeafe;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.05);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c0f;
    --surface: #16181d;
    --text: #f4f4f5;
    --text-muted: #9ca3af;
    --border: #26282e;
    --accent: #60a5fa;
    --accent-strong: #93c5fd;
    --accent-soft: #1e3a5f;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.75rem;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  margin-left: 1.5rem;
}

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

/* Hero */
.hero {
  position: relative;
  padding: 6.5rem 0 5.5rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 130%;
  background: radial-gradient(60% 60% at 50% 30%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin: 0 0 1.25rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin: 0 auto 2.25rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 0.65rem;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.1s ease;
}

.button:hover {
  background: var(--accent-strong);
}

.button:active {
  transform: translateY(1px);
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.button-ghost:hover {
  background: var(--surface);
  border-color: var(--text-muted);
}

@media (prefers-color-scheme: dark) {
  .button {
    color: #0b0c0f;
  }
  .button-ghost {
    color: var(--text);
    background: transparent;
  }
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
}

/* App cards */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.25rem;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.app-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.app-icon-img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 22%;
  border: 1px solid var(--border);
}

.app-head h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.app-platforms {
  margin: 0;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.app-platforms span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

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

.app-store-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.app-store-link:hover {
  text-decoration: underline;
}

/* Über */
.about-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-grid > p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.about-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-points li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.about-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.about-points strong {
  color: var(--text);
}

.about-points a {
  color: var(--accent);
}

/* Kontakt */
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-box p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

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

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

/* Rechtstext-Seiten */
.legal-page {
  max-width: 44rem;
  padding: 3rem 0;
}

.legal-page h1 {
  letter-spacing: -0.02em;
}

.legal-page h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
}

.legal-page .todo {
  background: var(--accent-soft);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}
