:root {
  --brand: #1f7a5c;
  --brand-soft: #e6f2ed;
  --bg: #ffffff;
  --surface: #f6f8f7;
  --text: #15201b;
  --muted: #5b6b64;
  --border: #dde5e1;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4cc497;
    --brand-soft: #16302a;
    --bg: #0f1412;
    --surface: #171e1b;
    --text: #e8efec;
    --muted: #9aaba3;
    --border: #26302c;
  }
}

* {
  box-sizing: border-box;
}

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

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

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
}

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  text-decoration: none;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

nav {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 15px;
}

nav a {
  text-decoration: none;
}

.lang {
  border: 1px solid var(--border);
  background: none;
  color: var(--muted);
  border-radius: 999px;
  padding: 3px 10px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

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

.hero img {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(31, 122, 92, 0.25);
}

h1 {
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.15;
  margin: 24px 0 12px;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}

.button {
  display: inline-block;
  margin-top: 28px;
  background: var(--brand);
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  .button {
    color: #0f1412;
  }
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  padding: 24px 0 48px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.card h2 {
  font-size: 19px;
  margin: 8px 0 8px;
}

.card p,
.card ul {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.card ul {
  padding-left: 18px;
}

.emoji {
  font-size: 28px;
}

.page h1 {
  font-size: clamp(28px, 5vw, 36px);
}

.page h2 {
  margin-top: 36px;
  font-size: 22px;
}

.contact {
  background: var(--brand-soft);
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
}

.contact a {
  font-weight: 600;
  word-break: break-all;
}

details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p,
details ol,
details ul {
  color: var(--muted);
  margin: 10px 0 0;
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 20px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

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

/* Language switch: both languages are in the page, lang.js picks one. */
html[lang='de'] [lang='en'],
html[lang='en'] [lang='de'] {
  display: none !important;
}
