:root {
  --bg: #f7f8f7;
  --surface: #ffffff;
  --text: #14222b;
  --muted: #56646c;
  --line: #dfe4e3;
  --accent: #0e5c63;
  --accent-soft: #e3efee;
  --max: 1080px;
}

* { box-sizing: border-box; }

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

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

/* Language switching: show only the active language */
html[data-lang="de"] [lang="en"]:not(html),
html[data-lang="en"] [lang="de"]:not(html) { display: none; }

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

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

/* Header */
header { border-bottom: 1px solid var(--line); background: var(--surface); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 700; font-size: 1.25rem; letter-spacing: 0.02em; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }
.lang-switch { display: flex; gap: 4px; }
.lang-switch button {
  font: inherit; font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  padding: 4px 10px; border-radius: 6px; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Hero */
.hero { padding: 88px 0 72px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 16px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.15; margin: 0 0 20px; max-width: 18ch; text-wrap: balance; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; margin: 0 0 32px; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 8px; font-weight: 600;
}
.btn:hover { filter: brightness(1.1); }

/* Sections */
section { padding: 64px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 1.6rem; margin: 0 0 32px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.num { display: inline-block; width: 28px; height: 28px; line-height: 28px; text-align: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.85rem; margin-bottom: 12px; }

.contact { background: var(--surface); }
.contact p { color: var(--muted); max-width: 60ch; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 0.9rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { margin-top: 0; }
.legal h2 { font-size: 1.15rem; margin-top: 32px; border: 0; padding: 0; }
.todo { background: #fff3c4; padding: 0 4px; border-radius: 3px; }

@media (max-width: 600px) {
  .hero { padding: 56px 0 48px; }
  section { padding: 48px 0; }
}
