/* LHG Webdesign — Websitecheck Landingpage, built on the design-system tokens */

html { scroll-behavior: smooth; }
body { background: var(--bg-page); overflow-x: clip; }

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-padding-x);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
}
.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-padding-x);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.02em;
  font-size: 1.25rem;
  color: var(--text-primary);
}
.wordmark:hover { color: var(--text-primary); text-decoration: none; }
.wm-chip {
  background: var(--brand-primary-soft);
  color: var(--brand-primary) !important;
  padding: 3px 9px;
  border-radius: 8px;
  transform: skewX(-6deg);
  display: inline-block;
}
.wm-rest {
  font-style: italic;
  font-weight: var(--font-weight-semibold, 600);
  color: var(--text-primary) !important;
}
.nav-mainsite {
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
  font-size: var(--text-small-size);
  transition: color var(--transition-fast);
}
.nav-mainsite:hover { color: var(--text-primary); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-sans);
  font-size: var(--text-body-size);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand-primary); color: var(--text-on-brand); }
.btn-primary:hover { background: var(--brand-primary-hover); color: var(--text-on-brand); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.btn-block { width: 100%; margin-top: var(--space-md); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: var(--text-micro-size);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: var(--space-sm);
}
.section-title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-lh);
  font-weight: var(--text-h2-weight);
  letter-spacing: var(--text-h2-tracking);
  margin: 0 0 var(--space-xl);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary-border);
  border-radius: var(--radius-full);
  font-size: var(--text-micro-size);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.02em;
  padding: 4px 12px;
  margin-bottom: var(--space-md);
}

/* ---------- Hero ---------- */
.hero { padding: var(--space-2xl) 0 var(--space-3xl); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-lg) var(--space-2xl);
  align-items: start;
}
.hero-copy { grid-column: 1; }
.hero-grid > .check-list { grid-column: 1; }
.hero-grid > .form-card { grid-column: 2; grid-row: 1 / span 2; }
.hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: var(--text-display-lh);
  font-weight: var(--text-display-weight);
  letter-spacing: var(--text-display-tracking);
  margin: 0 0 var(--space-md);
  text-wrap: pretty;
}
.hero p.sub {
  color: var(--text-secondary);
  font-size: var(--text-body-lg-size);
  line-height: var(--text-body-lg-lh);
  margin: 0 0 var(--space-lg);
  max-width: 480px;
  text-wrap: pretty;
}

/* ---------- Vorteile check-list ---------- */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.check-list li {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}
.check-list .check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--status-success-bg);
  color: var(--status-success-fg);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.check-list .check svg { width: 12px; height: 12px; }
.check-list strong { display: block; font-weight: var(--font-weight-semibold); }
.check-list span.desc { color: var(--text-secondary); font-size: var(--text-small-size); }

/* ---------- Form card ---------- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.form-card { padding: var(--space-lg); }
.form-title {
  font-size: var(--text-h3-size);
  font-weight: var(--text-h3-weight);
  letter-spacing: var(--text-h3-tracking);
  margin: 0 0 var(--space-xs);
}
.form-sub {
  color: var(--text-secondary);
  font-size: var(--text-small-size);
  margin: 0 0 var(--space-md);
}
.form-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-sm); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: var(--text-small-size);
  font-weight: var(--font-weight-medium);
}
.field label .opt { color: var(--text-muted); font-weight: var(--font-weight-regular); }
.field input, .field textarea {
  font-family: var(--font-sans);
  font-size: var(--text-body-size);
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: var(--shadow-focus);
}
.field .error-msg { display: none; color: var(--status-error-fg); font-size: var(--text-micro-size); }
.field.invalid input, .field.invalid textarea { border-color: var(--status-error-fg); }
.field.invalid .error-msg { display: block; }
.form-success {
  display: none;
  background: var(--status-success-bg);
  color: var(--status-success-fg);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-small-size);
  margin-top: var(--space-sm);
}
.form-success.visible { display: block; }
.form-privacy {
  margin: var(--space-md) 0 0;
  font-size: 13px;
  color: var(--text-muted);
  text-wrap: pretty;
}
.form-privacy a { text-decoration: underline; }

/* ---------- Ablauf ---------- */
.how {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-default);
  padding: var(--section-padding-y) 0;
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); min-width: 0; }
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-page);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.step > div { min-width: 0; }
.step p, .step h3 { overflow-wrap: break-word; }
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--text-on-brand);
  font-weight: var(--font-weight-bold);
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: var(--text-h4-size); font-weight: var(--text-h4-weight); margin: 0 0 4px; }
.step p { color: var(--text-secondary); font-size: var(--text-small-size); margin: 0; }

/* ---------- Footer ---------- */
footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--space-2xl) 0 var(--space-lg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  justify-content: space-between;
  gap: 60px;
  padding-right: 60px;
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-on-dark);
}
footer .wordmark { color: var(--text-on-dark); }
footer .wm-rest { color: var(--text-on-dark) !important; }
footer .wordmark:hover { color: var(--blue-200); text-decoration: none; }
.footer-email {
  color: var(--text-on-dark);
  font-size: var(--text-small-size);
}
.footer-email:hover { color: var(--blue-200); }
footer p { color: var(--text-on-dark-muted); font-size: var(--text-small-size); max-width: 320px; }
.footer-col h4 {
  font-size: var(--text-micro-size);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin: 0 0 var(--space-sm);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text-on-dark); font-size: var(--text-small-size); }
.footer-col a:hover { color: var(--text-on-dark); }
.footer-bottom {
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  color: var(--text-on-dark-muted);
  font-size: var(--text-micro-size);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .hero-copy, .hero-grid > .check-list, .hero-grid > .form-card { grid-column: 1; }
  .hero-grid > .form-card { grid-row: 2; }
  .hero-grid > .check-list { grid-row: 3; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: var(--space-xl) 0 var(--space-2xl); }
  .nav-mainsite { display: none; }
  .step {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: var(--space-sm);
  }
  .hero h1 { font-size: 30px; }
  .form-card { padding: var(--space-md); }
  .footer-grid { grid-template-columns: 1fr; padding-right: 0; gap: var(--space-lg); }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
