:root {
  --bg: #050608;
  --card: #10121a;
  --card-alt: #0b0c10;
  --text: #f2f3f5;
  --muted: #9ca3af;
  --brand: #1db954;
  --brand-soft: rgba(29, 185, 84, 0.12);
  --border: #1f2933;
  --radius: 18px;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #111827 0, #050608 55%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

/* Globale Fokus-Verbesserung */
:focus { outline: none; }
:focus-visible {
  box-shadow: 0 0 0 2px rgba(34,197,94,.6);
  border-radius: 10px;
}

/* Layout helpers */
.mw-container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Topbar */
.mw-topbar {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5,6,8,.96), rgba(5,6,8,.7));
  border-bottom: 1px solid rgba(31,41,51,.7);
  padding-top: env(safe-area-inset-top);
}
.mw-topbar-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 10px;
  gap:12px;
}
.mw-logo {
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:600;
  letter-spacing:.04em;
}
.mw-logo-mark {
  width:28px; height:28px; border-radius:10px;
  background: radial-gradient(circle at 30% 0, #4ade80 0, var(--brand) 50%, #15803d 100%);
  display:inline-flex; align-items:center; justify-content:center;
  font-size:18px; color:#020617; box-shadow:0 0 20px rgba(34,197,94,.7);
}
.mw-logo-text { font-size:18px; }

/* Nav */
.mw-nav {
  display:flex;
  gap:16px;
  font-size:14px;
}
.mw-nav a {
  color:var(--muted);
  text-decoration:none;
  position:relative;
  padding-bottom:2px;
}
.mw-nav a::after {
  content:"";
  position:absolute;
  left:0; right:0; bottom:-3px;
  height:2px;
  border-radius:999px;
  background:var(--brand);
  opacity:0;
  transform:scaleX(.4);
  transform-origin:center;
  transition: opacity .18s ease, transform .18s ease;
}
.mw-nav a:hover { color:#e5e7eb; }
.mw-nav a:hover::after { opacity:1; transform:scaleX(1); }

/* Login-Button oben rechts */
.mw-nav-login{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:8px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:500;
  white-space:nowrap;
  text-decoration:none;
}
.mw-nav-login-label{
  /* optional eigene Feinsteuerung, aktuell nur Text */
}

/* Hero */
.mw-hero { padding:56px 0 32px; }
.mw-hero-grid {
  display:grid;
  grid-template-columns:minmax(0,3fr) minmax(0,2.2fr);
  gap:32px;
  align-items:center;
}
.mw-hero-text h1 {
  font-size: clamp(30px, 5vw, 40px);
  margin:0 0 16px;
}
.mw-hero-sub {
  margin:0 0 20px;
  color:var(--muted);
  font-size:15px;
  max-width:460px;
}
.mw-hero-actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:12px;
}
.mw-hero-note {
  margin:0;
  font-size:13px;
  color:var(--muted);
}

/* Link im Hero: „Schon Kunde? Zum Login“ in Grün */
.mw-link-login{
  color:var(--brand);
  font-weight:600;
  text-decoration:none;
}
.mw-link-login:hover{
  text-decoration:underline;
}

/* Cards / Hero-Card */
.mw-hero-card {
  background: radial-gradient(circle at top left, rgba(34,197,94,.12), transparent 45%) no-repeat, var(--card);
  border-radius:24px;
  padding:18px 18px 16px;
  box-shadow:var(--shadow);
  border:1px solid rgba(31,41,51,.85);
}
.mw-hero-status {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(15,23,42,.8);
  font-size:12px;
  color:#d1fae5;
}
.mw-dot { width:8px; height:8px; border-radius:999px; }
.mw-dot-green { background:#22c55e; box-shadow:0 0 10px rgba(34,197,94,.9); }
.mw-hero-preview {
  margin-top:14px;
  padding:12px;
  border-radius:18px;
  background: radial-gradient(circle at top, rgba(15,23,42,.8), rgba(15,23,42,.96));
  border:1px solid rgba(31,41,55,.9);
}
.mw-preview-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
}
.mw-pill {
  font-size:11px;
  padding:3px 8px;
  border-radius:999px;
  background:rgba(15,23,42,.9);
  border:1px solid rgba(55,65,81,.8);
}
.mw-pill-muted { color:var(--muted); }
.mw-preview-body {
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:8px 0 6px;
}
.mw-preview-line {
  display:flex;
  justify-content:space-between;
  font-size:13px;
}
.mw-label { color:var(--muted); }
.mw-value { font-weight:500; }
.mw-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  padding:2px 6px;
  border-radius:6px;
  background:rgba(15,23,42,.9);
  border:1px dashed rgba(55,65,81,.9);
}
.mw-preview-footer {
  border-top:1px solid rgba(31,41,55,.9);
  margin-top:10px;
  padding-top:8px;
  display:flex;
  justify-content:space-between;
  font-size:12px;
  color:var(--muted);
}

/* Buttons */
.mw-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:10px 16px;
  border-radius:999px;
  font-size:14px;
  font-weight:500;
  border:1px solid transparent;
  cursor:pointer;
  text-decoration:none;
  transition:
    transform .12s ease,
    box-shadow .12s ease,
    background .12s ease,
    border-color .12s ease,
    color .12s ease;
}
.mw-btn-primary {
  background:linear-gradient(135deg,#22c55e,var(--brand));
  color:#020617;
  box-shadow:0 8px 24px rgba(16,185,129,.45);
}
.mw-btn-primary:hover {
  transform:translateY(-1px);
  box-shadow:0 10px 28px rgba(16,185,129,.55);
}
.mw-btn-ghost {
  background:transparent;
  border-color:rgba(55,65,81,.9);
  color:var(--muted);
}
.mw-btn-ghost:hover {
  border-color:var(--brand);
  color:#e5e7eb;
}
.mw-btn-block { width:100%; }
.mw-btn[disabled] { opacity:.6; cursor:not-allowed; }

/* Sections */
.mw-section {
  padding:40px 0 32px;
  scroll-margin-top: 72px;
}
.mw-hero { scroll-margin-top: 72px; }
.mw-section-alt {
  background: radial-gradient(circle at top, rgba(15,23,42,.8), rgba(5,6,8,.98));
}
.mw-section h2 {
  margin:0 0 8px;
  font-size:24px;
}
.mw-section-sub {
  margin:0 0 24px;
  color:var(--muted);
  font-size:14px;
}

/* Grid / Cards */
.mw-grid-3 {
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:20px;
}
.mw-feature-card {
  background:var(--card-alt);
  border-radius:var(--radius);
  padding:16px 16px 14px;
  border:1px solid rgba(31,41,55,.9);
  box-shadow:0 12px 30px rgba(0,0,0,.45);
}
.mw-feature-card h3 {
  margin:0 0 8px;
  font-size:16px;
}
.mw-feature-card p {
  margin:0;
  font-size:14px;
  color:var(--muted);
}

/* Steps */
.mw-steps { display:grid; gap:14px; }
.mw-step {
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.mw-step-number {
  flex:0 0 28px;
  height:28px;
  border-radius:999px;
  background:var(--brand-soft);
  color:#bbf7d0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  font-weight:600;
}
.mw-step-body h3 {
  margin:0 0 4px;
  font-size:15px;
}
.mw-step-body p {
  margin:0;
  color:var(--muted);
  font-size:13px;
}

/* Pricing */
.mw-pricing {
  display:flex;
  justify-content:center;
  padding-top:8px;
}
.mw-price-card {
  width:100%;
  max-width:420px;
  background: radial-gradient(circle at top, rgba(34,197,94,.2), rgba(15,23,42,.98));
  border-radius:24px;
  padding:20px 20px 16px;
  border:1px solid rgba(34,197,94,.6);
  box-shadow:0 20px 40px rgba(0,0,0,.7);
}
.mw-price-header h3 {
  margin:0 0 4px;
  font-size:18px;
}
.mw-price-header p {
  margin:0;
  font-size:13px;
  color:var(--muted);
}
.mw-price-main { margin-top:14px; }
.mw-price-tag { margin-bottom:10px; }
.mw-price-value {
  font-size:28px;
  font-weight:600;
}
.mw-price-hint {
  display:block;
  font-size:13px;
  color:var(--muted);
}
.mw-price-list {
  list-style:none;
  margin:12px 0 0;
  padding:0;
  font-size:13px;
  color:var(--muted);
}
.mw-price-list li {
  padding-left:18px;
  position:relative;
  margin-bottom:4px;
}
.mw-price-list li::before {
  content:"•";
  position:absolute;
  left:4px;
  color:#bbf7d0;
}
.mw-price-footer { margin-top:14px; }
.mw-price-note {
  margin:8px 0 0;
  font-size:12px;
  color:var(--muted);
}

/* Contact */
.mw-contact p {
  margin:0;
  font-size:14px;
  color:var(--muted);
}
.mw-contact a {
  color:var(--brand);
  text-decoration:none;
}
.mw-contact a:hover { text-decoration:underline; }

/* Footer */
.mw-footer {
  border-top:1px solid rgba(31,41,55,.9);
  background:#020617;
  padding:10px 0;
}
.mw-footer-inner {
  display:flex;
  justify-content:center;
  gap:8px;
  font-size:12px;
  color:var(--muted);
}

/* ===== Signup / Formular ===== */
.mw-signup-card {
  margin-top:12px;
  background:var(--card);
  border-radius:20px;
  padding:18px 16px 16px;
  border:1px solid rgba(31,41,55,.9);
  box-shadow:var(--shadow);
}
.mw-signup-form {
  display:flex;
  flex-direction:column;
  gap:12px;
}
.mw-form-grid {
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
}

.mw-field {
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:13px;
}
.mw-field label { color:var(--muted); }

.mw-field input,
.mw-field textarea {
  border-radius:10px;
  border:1px solid rgba(55,65,81,.9);
  background:#020617;
  color:var(--text);
  font:inherit;
  padding:10px 12px;
  outline:none;
}
.mw-field input::placeholder,
.mw-field textarea::placeholder {
  color:rgba(148,163,184,.8);
}
.mw-field input:focus,
.mw-field textarea:focus {
  border-color:var(--brand);
  box-shadow:0 0 0 1px rgba(34,197,94,.6);
}
.mw-field textarea {
  resize:vertical;
  min-height:80px;
}
.mw-hint {
  color:var(--muted);
  font-size:12px;
  display:block;
  margin-top:4px;
}

/* Checkbox & Telefon-Eingabe */
.mw-inline {
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.mw-inline input[type="checkbox"] {
  width:16px;
  height:16px;
  accent-color: var(--brand);
}
.mw-field input[type="tel"] {
  font-variant-numeric: tabular-nums;
}

/* Subdomain + Suffix */
.mw-suffix-field {
  display:flex;
  align-items:stretch;
  gap:0;
}
.mw-suffix-field input {
  border-top-right-radius:0;
  border-bottom-right-radius:0;
}
.mw-suffix {
  display:inline-flex;
  align-items:center;
  padding:0 10px;
  min-width: 108px;
  justify-content:center;
  background:#0b0c10;
  border:1px solid rgba(55,65,81,.9);
  border-left:0;
  border-top-right-radius:10px;
  border-bottom-right-radius:10px;
  color:var(--muted);
  font-size:13px;
}
/* Fokus-Verbesserung für das komplette Kombi-Feld */
.mw-suffix-field:focus-within input {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px rgba(34,197,94,.6);
}
.mw-suffix-field:focus-within .mw-suffix {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(34,197,94,.3);
  color:#e5e7eb;
}

/* Optionale Fehlermarkierung (wenn du später serverseitig Klassen setzt) */
.mw-field.is-invalid input,
.mw-field.is-invalid textarea {
  border-color:#ef4444;
  box-shadow:0 0 0 1px rgba(239,68,68,.6);
}
.mw-field .error-text {
  color:#fecaca;
  font-size:12px;
}

/* Hinweise unter dem Formular */
.mw-form-hint {
  margin:4px 0 0;
  font-size:12px;
  color:var(--muted);
}

/* Alerts */
.mw-alert {
  border-radius:12px;
  padding:8px 10px;
  font-size:13px;
  margin-bottom:10px;
}
.mw-alert-success {
  background:rgba(22,163,74,.12);
  border:1px solid rgba(22,163,74,.9);
  color:#bbf7d0;
}
.mw-alert-error {
  background:rgba(248,113,113,.12);
  border:1px solid rgba(248,113,113,.9);
  color:#fecaca;
}

/* Responsive */
@media (max-width: 900px) {
  .mw-hero-grid { grid-template-columns:minmax(0,1fr); }
}

@media (max-width: 720px) {
  .mw-nav { display:none; }
  .mw-section { padding:32px 0 24px; }
  .mw-grid-3 { grid-template-columns:minmax(0,1fr); }
  .mw-price-card { padding:18px 16px 14px; }
  .mw-form-grid { grid-template-columns:minmax(0,1fr); }

  .mw-nav-login{
    padding:6px 12px;
    font-size:12px;
  }
}
