:root {
  --bg: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0a66c2;
  --card: #f5f5f7;
  --line: #e5e5ea;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --text: #f2f2f7;
    --muted: #a1a1a6;
    --accent: #4da3ff;
    --card: #1c1c1f;
    --line: #2c2c30;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--accent); }

.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}
nav { display: flex; gap: 18px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }

/* main.wrap statt main, sonst überschreibt .wrap { padding: 0 20px } den Abstand */
main.wrap { padding-top: 32px; padding-bottom: 48px; }

h1 { font-size: 2.2rem; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 1.3rem; margin: 32px 0 8px; }

.hero { margin-bottom: 24px; }
.lead { font-size: 1.2rem; color: var(--muted); margin: 0; }

/* Startseite: Logo neben Name und Untertitel, auf schmalen Bildschirmen darüber */
.hero-logo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.hero-logo img {
  width: 220px;
  height: auto;
}

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 4px 24px 20px;
}

.app-icon {
  display: block;
  width: 128px;
  height: auto;
}

/* Startseite: Symbol neben dem Text, auf schmalen Bildschirmen darüber */
.feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding-top: 20px;
}
.feature > div { flex: 1 1 300px; }
.feature h2 { margin-top: 0; }

/* StuffProvider-Seite: die beiden Apps nebeneinander */
.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.app {
  background: var(--card);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}
.app .app-icon { margin: 0 auto; }
.app h2 { margin: 12px 0 4px; }

nav .lang {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 20px;
  padding-bottom: 28px;
}
.site-footer a { color: var(--muted); }
