/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --brand:        #2563eb;
  --brand-dark:   #1d4ed8;
  --brand-light:  #eff6ff;
  --success:      #16a34a;
  --danger:       #dc2626;
  --text:         #111827;
  --muted:        #6b7280;
  --border:       #e5e7eb;
  --bg:           #ffffff;
  --bg-alt:       #f9fafb;
  --radius:       10px;
  --shadow:       0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --max-w:        1100px;
  --font:         system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
img  { max-width: 100%; display: block; }
a    { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ────────────────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ── Nav ───────────────────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.nav-logo span { color: var(--brand); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { color: var(--muted); font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--brand); color: #fff !important;
  padding: .4rem 1rem; border-radius: 6px; font-weight: 600;
  transition: background .2s;
}
.nav-cta:hover { background: var(--brand-dark) !important; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  padding: 6rem 0 4rem;
  background: linear-gradient(135deg, var(--brand-light) 0%, #fff 60%);
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: var(--brand-light); color: var(--brand);
  border: 1px solid #bfdbfe;
  border-radius: 99px; padding: .25rem .9rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -.02em; margin-bottom: 1.25rem;
}
.hero h1 em { color: var(--brand); font-style: normal; }
.hero p {
  max-width: 600px; margin: 0 auto 2rem;
  font-size: 1.15rem; color: var(--muted);
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .7rem 1.6rem; border-radius: 8px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: all .2s; border: none; text-decoration: none !important;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.btn-outline:hover { background: var(--brand-light); }

/* ── Features ──────────────────────────────────────────────────────────────── */
.features { padding: 5rem 0; background: var(--bg-alt); }
.section-title {
  text-align: center; margin-bottom: 3rem;
}
.section-title h2 { font-size: 2rem; font-weight: 700; margin-bottom: .5rem; }
.section-title p  { color: var(--muted); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow); transition: transform .2s;
}
.feature-card:hover { transform: translateY(-3px); }
.feature-icon {
  font-size: 2rem; margin-bottom: 1rem;
  width: 52px; height: 52px;
  background: var(--brand-light); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
.feature-card p  { color: var(--muted); font-size: .95rem; }

/* ── Demo ──────────────────────────────────────────────────────────────────── */
.demo { padding: 5rem 0; }
.demo-box {
  max-width: 760px; margin: 0 auto;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.demo-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: .75rem;
}
.demo-header h3 { font-size: 1.1rem; font-weight: 700; }
.demo-header p  { color: var(--muted); font-size: .9rem; }
.demo-body { padding: 1.75rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-weight: 600; font-size: .9rem;
  margin-bottom: .4rem;
}
.form-group textarea,
.form-group select {
  width: 100%; padding: .65rem .9rem;
  border: 1px solid var(--border); border-radius: 6px;
  font-family: var(--font); font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  background: var(--bg); color: var(--text);
}
.form-group textarea {
  min-height: 200px; resize: vertical;
  font-family: "SF Mono", "Fira Code", monospace; font-size: .85rem;
}
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

.demo-tabs {
  display: flex; gap: .5rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border); padding-bottom: .75rem;
}
.demo-tab {
  padding: .4rem 1rem; border-radius: 6px;
  border: 1px solid transparent;
  background: none; cursor: pointer;
  font-size: .9rem; font-weight: 500; color: var(--muted);
  transition: all .15s;
}
.demo-tab:hover { color: var(--text); background: var(--bg-alt); }
.demo-tab.active {
  background: var(--brand-light); color: var(--brand);
  border-color: #bfdbfe; font-weight: 600;
}

.form-group input[type="url"] {
  width: 100%; padding: .65rem .9rem;
  border: 1px solid var(--border); border-radius: 6px;
  font-family: var(--font); font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  background: var(--bg); color: var(--text);
}
.form-group input[type="url"]:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.input-hint  { color: var(--muted); font-size: .82rem; margin-top: .4rem; }
.label-hint  { color: var(--muted); font-size: .8rem; font-weight: 400; }

#demo-status {
  margin-top: 1rem; padding: .75rem 1rem;
  border-radius: 6px; font-size: .9rem;
  display: none;
}
#demo-status.error   { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; display: block; }
#demo-status.success { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; display: block; }
#demo-status.loading { background: var(--brand-light); color: var(--brand); border: 1px solid #bfdbfe; display: block; }

.btn-generate {
  width: 100%; padding: .85rem;
  font-size: 1rem; font-weight: 700;
  background: var(--brand); color: #fff;
  border: none; border-radius: 8px; cursor: pointer;
  transition: background .2s;
}
.btn-generate:hover:not(:disabled) { background: var(--brand-dark); }
.btn-generate:disabled { opacity: .6; cursor: not-allowed; }

/* ── DSGVO / Compliance ────────────────────────────────────────────────────── */
.compliance { padding: 5rem 0; background: var(--bg-alt); }
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.compliance-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.compliance-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.compliance-card p, .compliance-card ul { color: var(--muted); font-size: .9rem; }
.compliance-card ul { padding-left: 1.2rem; }
.compliance-card ul li { margin-bottom: .25rem; }
.compliance-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #f0fdf4; color: var(--success);
  border: 1px solid #bbf7d0;
  border-radius: 99px; padding: .3rem .9rem;
  font-size: .8rem; font-weight: 600; margin-bottom: 1.5rem;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0; text-align: center;
  color: var(--muted); font-size: .9rem;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 4rem 0 2.5rem; }
  .hero h1 { font-size: 2rem; }
}
