:root {
  --blue-50:  #eef3ff;
  --blue-100: #dbe6ff;
  --blue-500: #2f5ff0;
  --blue-600: #2451e0;
  --blue-700: #1b3db3;
  --blue-900: #142b7a;
  --ink-900: #0c1526;
  --ink-700: #29344a;
  --ink-500: #5b6478;
  --ink-300: #9aa2b4;
  --border:  #e3e6ee;
  --border-strong: #cdd2e0;
  --bg: #f5f6fa;
  --surface: #ffffff;
  --success: #147a4c;
  --success-bg: #e6f6ee;
  --warning: #a3610a;
  --warning-bg: #fdf1e0;
  --info: #1b4fc4;
  --info-bg: #eaf0ff;
  --danger: #b3261e;
  --danger-bg: #fbeae9;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(12, 21, 38, 0.06);
  --shadow-md: 0 6px 20px rgba(12, 21, 38, 0.08);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; letter-spacing: -0.01em; font-weight: 650; }
p { margin: 0 0 1em; color: var(--ink-700); }
.icon { flex-shrink: 0; }

:focus-visible {
  outline: 2.5px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* --- Eyebrow / mono utility labels: ties the brand to its "server/deploy" domain --- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.mono { font-family: var(--font-mono); }

/* --- Top nav --- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; text-decoration: none; color: var(--ink-900);
  letter-spacing: -0.01em;
}
.brand .brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(155deg, var(--blue-600), var(--blue-900));
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.brand .dim { color: var(--ink-300); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  text-decoration: none; color: var(--ink-500); font-size: 14.5px; font-weight: 550;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink-900); }
.nav-links a.active { color: var(--blue-600); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-size: 14.5px; font-weight: 600;
  padding: 10px 18px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: all .15s ease; line-height: 1.2;
}
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-700); }
.btn-ghost { background: transparent; color: var(--ink-700); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--blue-50); border-color: var(--blue-500); color: var(--blue-700); }
.btn-outline { background: #fff; color: var(--blue-600); border-color: var(--blue-500); }
.btn-outline:hover { background: var(--blue-50); }
.btn-sm { padding: 7px 13px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-danger { background: #fff; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* --- Hero --- */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 420px at 85% -10%, var(--blue-50), transparent 60%),
    var(--surface);
  position: relative; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 46px; line-height: 1.12; max-width: 620px; }
.hero .lead { font-size: 18px; color: var(--ink-500); max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-meta div { font-family: var(--font-mono); font-size: 13px; color: var(--ink-500); }
.hero-meta strong { display: block; font-family: var(--font-sans); font-size: 22px; color: var(--ink-900); font-weight: 700; }

/* --- Signature: pipeline / deploy-console visual --- */
.console {
  background: var(--ink-900);
  border-radius: 14px;
  padding: 22px 22px 26px;
  box-shadow: var(--shadow-md);
  color: #dbe3ff;
}
.console-head { display: flex; gap: 6px; margin-bottom: 16px; }
.console-dot { width: 10px; height: 10px; border-radius: 50%; background: #3a4568; }
.console-line {
  font-family: var(--font-mono); font-size: 13px; line-height: 1.9;
  color: #9fb0e0;
}
.console-line .ok { color: #66d19e; }
.console-line .tag { color: #7d9bff; }
.console-line .path { color: #ffd28a; }
.console-cursor { display: inline-block; width: 7px; height: 14px; background: #7d9bff; margin-left: 2px; vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* --- Sections --- */
.section { padding: 76px 0; }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head h2 { font-size: 30px; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.feature-card .icon-badge {
  width: 42px; height: 42px; border-radius: 9px; background: var(--blue-50); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-card h3 { font-size: 16.5px; }
.feature-card p { font-size: 14.5px; margin-bottom: 0; }

/* --- Pricing --- */
.plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 30px; display: flex; flex-direction: column; position: relative;
}
.plan.featured { border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-50), var(--shadow-md); }
.plan-badge {
  position: absolute; top: -12px; left: 26px; background: var(--blue-600); color: #fff;
  font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .03em;
}
.plan h3 { font-size: 18px; margin-bottom: 4px; }
.plan .price { font-size: 32px; font-weight: 750; margin: 10px 0 4px; }
.plan .price span { font-size: 14px; color: var(--ink-500); font-weight: 500; }
.plan .plan-desc { font-size: 14px; color: var(--ink-500); margin-bottom: 20px; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-700); }
.plan li .icon { color: var(--blue-600); margin-top: 2px; }

/* --- Steps / process --- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 20px 0 0; }
.step .num {
  font-family: var(--font-mono); font-size: 13px; color: var(--blue-600); font-weight: 700; margin-bottom: 10px; display: block;
}
.step h4 { font-size: 15.5px; margin-bottom: 6px; }
.step p { font-size: 13.8px; margin-bottom: 0; }
.step-line { height: 1px; background: var(--border-strong); margin: 0 0 22px; position: relative; }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0; background: var(--surface); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-grid .brand { font-size: 15px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 13.5px; color: var(--ink-500); text-decoration: none; }
.footer-links a:hover { color: var(--ink-900); }
.footer-fine { font-family: var(--font-mono); font-size: 12px; color: var(--ink-300); margin-top: 18px; }

/* --- Forms --- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-700); margin-bottom: 7px; }
.field .hint { font-size: 12.5px; color: var(--ink-300); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; font-family: var(--font-sans); font-size: 14.5px; padding: 11px 13px;
  border: 1px solid var(--border-strong); border-radius: 8px; background: #fff; color: var(--ink-900);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus {
  border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-50); outline: none;
}
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.radio-card { border: 1px solid var(--border-strong); border-radius: 9px; padding: 14px; cursor: pointer; position: relative; }
.radio-card input { position: absolute; top: 12px; right: 12px; }
.radio-card strong { display: block; font-size: 14px; margin-bottom: 3px; }
.radio-card span { font-size: 12.5px; color: var(--ink-500); }
.radio-card:has(input:checked) { border-color: var(--blue-500); background: var(--blue-50); }
.alert {
  padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.alert-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid #f2c9c6; }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid #bfe6cf; }
.alert-info { background: var(--info-bg); color: var(--info); border: 1px solid #c6d6fb; }

/* --- Auth --- */
.auth-wrap { min-height: calc(100vh - 68px); display: flex; align-items: center; padding: 60px 0; }

/* --- App shell (dashboards) --- */
.app-topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.app-shell { display: flex; min-height: calc(100vh - 68px); }
.app-body { flex: 1; padding: 40px 0 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.page-head h1 { font-size: 26px; margin-bottom: 4px; }
.page-head p { margin-bottom: 0; color: var(--ink-500); font-size: 14.5px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.stat-card .eyebrow { margin-bottom: 10px; }
.stat-card .value { font-size: 28px; font-weight: 750; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 28px; overflow: hidden; }
.panel-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.panel-head h2 { font-size: 16px; margin: 0; }
.panel-head .count { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-300); }
.panel-body { padding: 6px 0; }
.panel-empty { padding: 34px 22px; text-align: center; color: var(--ink-300); font-size: 14px; }

.row-list { display: flex; flex-direction: column; }
.row-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 22px; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit;
  transition: background .12s ease;
}
.row-item:last-child { border-bottom: none; }
.row-item:hover { background: var(--blue-50); }
.row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.row-title { font-weight: 600; font-size: 14.8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 12.8px; color: var(--ink-500); font-family: var(--font-mono); }
.row-side { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.badge {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; letter-spacing: .02em;
}
.badge-angefragt { background: var(--warning-bg); color: var(--warning); }
.badge-in_bearbeitung { background: var(--info-bg); color: var(--info); }
.badge-review { background: #f1e8ff; color: #6b3fc4; }
.badge-fertig { background: var(--success-bg); color: var(--success); }
.badge-nicht_gestartet { background: #eef0f4; color: var(--ink-500); }
.badge-in_entwicklung { background: var(--info-bg); color: var(--info); }
.badge-live { background: var(--success-bg); color: var(--success); }
.badge-offline { background: var(--danger-bg); color: var(--danger); }

/* --- Pipeline / order tracker (signature element, reused customer+admin) --- */
.pipeline { display: flex; align-items: flex-start; margin: 8px 0 6px; }
.pipeline-step { flex: 1; text-align: left; position: relative; }
.pipeline-step .connector {
  position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--border-strong); z-index: 0;
}
.pipeline-step:first-child .connector { display: none; }
.pipeline-step.done .connector, .pipeline-step.current .connector { background: var(--blue-500); }
.pipeline-node {
  width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; color: var(--ink-300);
}
.pipeline-step.done .pipeline-node { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.pipeline-step.current .pipeline-node { border-color: var(--blue-500); color: var(--blue-600); box-shadow: 0 0 0 4px var(--blue-50); }
.pipeline-label { font-family: var(--font-mono); font-size: 11.5px; margin-top: 10px; color: var(--ink-500); }
.pipeline-step.done .pipeline-label, .pipeline-step.current .pipeline-label { color: var(--ink-900); font-weight: 600; }

.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.kv { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--ink-500); }
.kv .v { font-weight: 600; text-align: right; }

.note { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13.8px; }
.note:last-child { border-bottom: none; }
.note .note-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-300); margin-top: 4px; }

.empty-state { text-align: center; padding: 70px 20px; }
.empty-state .icon-badge {
  width: 52px; height: 52px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.empty-state h3 { font-size: 17px; }
.empty-state p { color: var(--ink-500); max-width: 380px; margin-left: auto; margin-right: auto; }

.upload-box {
  border: 1.5px dashed var(--border-strong); border-radius: 10px; padding: 20px; text-align: center; background: var(--blue-50);
}
.upload-box input[type=file] { margin-top: 10px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .steps, .stat-row { grid-template-columns: repeat(2, 1fr); }
  .field-row, .grid-2, .detail-grid { grid-template-columns: 1fr; }
  .radio-cards { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .grid-3, .steps, .stat-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 33px; }
  .step-line { display: none; }
}

/* --- Hamburger / mobile navigation --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.hamburger:hover { background: var(--blue-50); border-color: var(--blue-500); }
.hb-bar {
  display: block; width: 18px; height: 2px; background: var(--ink-900);
  border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.hamburger[aria-expanded="true"] .hb-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hb-bar:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hb-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; top: 68px; left: 0; right: 0; z-index: 39;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  transform: translateY(-6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.mobile-nav.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-nav-inner { display: flex; flex-direction: column; padding: 8px 24px 24px; }
.mobile-nav a {
  padding: 14px 2px; font-size: 16px; font-weight: 600; color: var(--ink-900);
  text-decoration: none; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav .mobile-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.mobile-nav .mobile-user {
  display: flex; align-items: center; gap: 8px; padding: 14px 2px;
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-500); border-bottom: 1px solid var(--border);
}
body.nav-open { overflow: hidden; }

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .app-topbar-inner .nav-cta { display: none; }
}
@media (min-width: 901px) {
  .mobile-nav { display: none; }
}

/* --- Small extra mobile refinements --- */
@media (max-width: 900px) {
  .hero { padding: 56px 0 48px; }
  .section { padding: 56px 0; }
  .topbar-inner, .app-topbar-inner { height: 62px; }
  .mobile-nav { top: 62px; max-height: calc(100vh - 62px); }
  .row-item { flex-wrap: wrap; row-gap: 8px; }
  .console-line { font-size: 12px; }
  .page-head { align-items: flex-start; }
}
@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 16px; }
  .form-card, .panel-body { padding: 18px !important; }
  .hero h1 { font-size: 28px; }
  .stat-card .value { font-size: 22px; }
}
