/* ── Tokens ─────────────────────────────────────────────── */
[data-theme="light"] {
  --bg:             #f1f5f9;
  --surface:        #ffffff;
  --surface2:       #f8fafc;
  --border:         #e2e8f0;
  --text:           #0f172a;
  --text-sub:       #64748b;
  --accent:         #16a34a;
  --accent-bg:      #dcfce7;
  --accent-fg:      #14532d;
  --topbar-bg:      #0f172a;
  --topbar-fg:      #f1f5f9;
  --topbar-sub:     #94a3b8;
  --danger:         #dc2626;
  --danger-bg:      #fee2e2;
}

[data-theme="dark"] {
  --bg:             #0f1117;
  --surface:        #1e293b;
  --surface2:       #0f172a;
  --border:         #334155;
  --text:           #f1f5f9;
  --text-sub:       #94a3b8;
  --accent:         #4ade80;
  --accent-bg:      #14532d;
  --accent-fg:      #bbf7d0;
  --topbar-bg:      #020617;
  --topbar-fg:      #f1f5f9;
  --topbar-sub:     #475569;
  --danger:         #f87171;
  --danger-bg:      #450a0a;
}

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

/* ── Base ────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ── Topbar ──────────────────────────────────────────────── */
.topbar {
  height: 56px;
  padding: 0 28px;
  background: var(--topbar-bg);
  color: var(--topbar-fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-brand { display: flex; align-items: baseline; gap: 10px; }

.topbar-brand-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--topbar-fg);
  letter-spacing: -0.02em;
}

.topbar-brand-sub {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--topbar-fg);
  opacity: 0.85;
  text-decoration: none;
}

.topbar-nav a:hover { opacity: 1; text-decoration: none; }

.topbar-nav .sep {
  width: 1px;
  height: 20px;
  background: var(--topbar-sub);
  opacity: 0.4;
}

.btn-login {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: not-allowed;
  opacity: 0.6;
  text-decoration: none;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--topbar-fg);
  font-size: 16px;
  cursor: pointer;
  opacity: 0.7;
  padding: 4px;
  line-height: 1;
}
.theme-toggle:hover { opacity: 1; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: var(--topbar-bg);
  color: var(--topbar-fg);
  padding: 80px 28px 72px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #f1f5f9;
}

.hero-sub {
  font-size: 16px;
  color: var(--topbar-sub);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: inline-block;
  text-decoration: none;
  transition: filter .15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.1); text-decoration: none; }

.btn-outline-light {
  background: transparent;
  color: #f1f5f9;
  border: 1px solid rgba(241,245,249,.25);
}
.btn-outline-light:hover { background: rgba(241,245,249,.08); text-decoration: none; }

.badge-soon {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(74,222,128,.15);
  color: #4ade80;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: .04em;
}

/* ── Notice ──────────────────────────────────────────────── */
.notice {
  background: var(--accent-bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 28px;
  text-align: center;
  font-size: 13px;
  color: var(--accent-fg);
  font-weight: 500;
}

/* ── Layout ──────────────────────────────────────────────── */
.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  flex: 1;
}

.section {
  padding: 64px 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}

.section-sub {
  font-size: 14px;
  color: var(--text-sub);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* ── Tools Grid ──────────────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .15s;
}

.tool-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

.tool-card-icon {
  font-size: 28px;
  line-height: 1;
}

.tool-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.badge {
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.badge-green {
  background: var(--accent-bg);
  color: var(--accent-fg);
}

.badge-gray {
  background: var(--surface2);
  color: var(--text-sub);
  border: 1px solid var(--border);
}

.tool-card-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.65;
}

.tool-card-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.tool-card-link:hover { text-decoration: underline; }

.tool-card-link.disabled {
  color: var(--text-sub);
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Kundenbereich Teaser ────────────────────────────────── */
.customer-teaser {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.customer-teaser-text h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
  text-transform: none;
}

.customer-teaser-text p {
  font-size: 13px;
  color: var(--text-sub);
  max-width: 420px;
  line-height: 1.65;
}

.btn-primary-lg {
  padding: 12px 28px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: not-allowed;
  opacity: 0.55;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 28px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.footer-meta {
  font-size: 11px;
  color: var(--text-sub);
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 12px;
}

.footer-links a {
  color: var(--text-sub);
}

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

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 750px) {
  .hero h1 { font-size: 28px; }
  .hero { padding: 56px 20px 48px; }
  .main { padding: 0 20px; }
  .topbar { padding: 0 20px; }
  .topbar-nav a:not(.btn-login) { display: none; }
  .customer-teaser { flex-direction: column; align-items: flex-start; padding: 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}
