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

:root {
  --bg: #0b0f0d;
  --bg-card: #111710;
  --bg-card-hover: #161620;
  --border: rgba(255,255,255,0.07);
  --text: #eef4f0;
  --text-muted: #a8bfb0;
  --text-bright: #ffffff;
  --accent: #3a9460;
  --accent-hover: #4aaa70;
  --font: system-ui, -apple-system, 'Segoe UI', Helvetica, sans-serif;
}

[data-theme="light"] {
  --bg: #f5f7f6;
  --bg-card: #ffffff;
  --bg-card-hover: #eef3f0;
  --border: rgba(0,0,0,0.08);
  --text: #111f17;
  --text-muted: #4d6b5a;
  --text-bright: #0d1a12;
  --accent: #256b3a;
  --accent-hover: #1c5830;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.2s, color 0.2s;
}

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

/* ── Navigation ─────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-brand:hover { color: var(--accent); }

.nav-brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* ── Theme toggle ────────────────────────────────────── */
.theme-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.3rem;
  display: flex;
  align-items: center;
  line-height: 1;
  transition: color 0.15s;
}
.theme-btn:hover { color: var(--text); }
.theme-btn svg { width: 18px; height: 18px; }

.icon-moon { display: none; }
.icon-sun  { display: block; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ── Logo swap ───────────────────────────────────────── */
.logo-light { display: none !important; }
.logo-dark  { display: block !important; }
[data-theme="light"] .logo-dark  { display: none !important; }
[data-theme="light"] .logo-light { display: block !important; }

/* ── Layout ──────────────────────────────────────────── */
main { flex: 1; }

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

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

/* ── Hero ────────────────────────────────────────────── */
.hero {
  padding: 7rem 0 5rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text-bright);
  margin-bottom: 1.4rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-logo {
  flex-shrink: 0;
  width: 260px;
}

.hero-logo img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    gap: 2.5rem;
  }
  .hero-logo {
    width: 160px;
    margin: 0 auto;
  }
}

/* ── Services ────────────────────────────────────────── */
.services {
  padding: 3rem 0 7rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.service-card {
  background: var(--bg-card);
  padding: 2.25rem 2rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.service-card:hover { background: var(--bg-card-hover); }

.service-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.service-icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex-shrink: 0;
}

.service-card h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: -0.01em;
  margin: 0;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Philosophy ──────────────────────────────────────── */
.philosophy {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.philosophy-quote {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  font-style: normal;
}

.philosophy-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Contact ─────────────────────────────────────────── */
.contact {
  padding: 5rem 0 7rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.8rem;
  letter-spacing: -0.025em;
}

.contact p {
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.75rem 1.9rem;
  border-radius: 6px;
  letter-spacing: 0.01em;
  transition: background 0.15s, transform 0.1s;
}
.btn:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

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

/* ── Legal pages (Impressum, Datenschutz) ────────────── */
.page-section {
  padding: 5rem 0 7rem;
}

.page-section h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.035em;
  margin-bottom: 0.5rem;
}

.page-section h1 small {
  display: block;
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-top: 0.4em;
}

.page-lead {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 3.5rem;
}

.legal-block {
  margin-bottom: 2.75rem;
}

.legal-block h2 {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.65rem;
}

.legal-block p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.92rem;
}

.legal-block a { color: var(--text-muted); text-decoration: underline; }
.legal-block a:hover { color: var(--text); }

.back-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.back-link:hover { color: var(--text); }

/* ── Responsive ──────────────────────────────────────── */
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .nav-brand-name { display: none; }
  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: 0.82rem; }
  .hero { padding: 4.5rem 0 3.5rem; }
  .services { padding: 2rem 0 5rem; }
  .services-grid { grid-template-columns: 1fr; }
}
