/* AppSonar — appsonar.de */

:root {
  --bg: #f7f9fb;
  --bg-alt: #eef2f6;
  --surface: #ffffff;
  --text: #1a2733;
  --text-muted: #5b6b7a;
  --accent: #2d5f8b;
  --accent-strong: #1e4260;
  --accent-contrast: #ffffff;
  --border: #dde4ea;
  --shadow: 0 6px 24px rgba(26, 39, 51, 0.08);
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1620;
    --bg-alt: #131e2a;
    --surface: #182534;
    --text: #e8eef4;
    --text-muted: #9fb0c0;
    --accent: #5b8db8;
    --accent-strong: #7fabd0;
    --accent-contrast: #0e1620;
    --border: #243445;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow { max-width: 720px; }

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

/* Header */

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand strong { color: var(--accent); }
.brand-mark { width: 28px; height: 28px; color: var(--accent); }

.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--text-muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Hero */

.hero {
  text-align: center;
  padding: 96px 0 88px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%,
      color-mix(in srgb, var(--accent) 14%, transparent), transparent);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

/* Sonar-Animation */

.sonar {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 36px;
}
.sonar::after {
  content: "";
  position: absolute;
  inset: 42px;
  border-radius: 50%;
  background: var(--accent);
}
.sonar span {
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: ping 3s cubic-bezier(0, 0.4, 0.6, 1) infinite;
}
.sonar span:nth-child(2) { animation-delay: 1s; }
.sonar span:nth-child(3) { animation-delay: 2s; }

@keyframes ping {
  0%   { transform: scale(0.15); opacity: 0.9; }
  100% { transform: scale(1.15); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sonar span { animation: none; opacity: 0.3; transform: scale(0.6); }
  .sonar span:nth-child(2) { transform: scale(0.85); opacity: 0.2; }
  .sonar span:nth-child(3) { transform: scale(1.1); opacity: 0.1; }
  html { scroll-behavior: auto; }
}

/* Buttons */

.button {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }

.button.primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 40%, transparent);
}
.button.primary:hover { background: var(--accent-strong); }

/* Sections */

.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

.section h2 {
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.section p + p { margin-top: 16px; }

.section h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin: 32px 0 10px;
}

/* App-Karten */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.card p { color: var(--text-muted); flex-grow: 1; }

.card-soon {
  border-style: dashed;
  box-shadow: none;
  opacity: 0.75;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--icon-bg, var(--accent));
  color: #fff;
  display: grid;
  place-items: center;
}
.card-icon svg { width: 28px; height: 28px; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.tags li {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
}

.card-actions { margin-top: 4px; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.footer-inner nav { display: flex; gap: 20px; }
.footer-inner a { color: var(--text-muted); }
