:root {
  --bg: #0a1016;
  --bg-elevated: rgba(10, 16, 22, 0.78);
  --panel: rgba(17, 26, 35, 0.88);
  --panel-strong: rgba(12, 20, 28, 0.96);
  --line: rgba(212, 177, 106, 0.18);
  --text: #eaf0f5;
  --muted: #9baab8;
  --gold: #d4b16a;
  --gold-soft: #f2dfb4;
  --accent: #78b7bd;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(120, 183, 189, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(212, 177, 106, 0.14), transparent 25%),
    linear-gradient(180deg, #081018 0%, #0d151d 38%, #070b10 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 85%);
  pointer-events: none;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.topbar,
.hero,
.pain,
.process,
.tools,
.trust,
.contact {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 28px;
}

.brand-mark {
  display: grid;
  gap: 2px;
}

.brand-kicker,
.eyebrow {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.92rem;
}

.ghost-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.ghost-link {
  padding: 12px 18px;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.button {
  padding: 14px 22px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}

.button:hover,
.ghost-link:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #10161d;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 16px 32px rgba(212, 177, 106, 0.22);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: stretch;
  padding: 34px 0 42px;
}

.hero h1,
.section-intro h2,
.contact-copy h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 5.7rem);
  max-width: 12ch;
}

.hero-text,
.pain-card p,
.step-card p,
.tool-head p,
.trust-panel p,
.contact-copy p,
.result-card span,
.dashboard-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy,
.hero-panel,
.pain-card,
.step-card,
.tool-card,
.trust-panel,
.contact-form {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 42px;
  border-radius: 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 34px;
}

.hero-metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.hero-metrics li {
  display: grid;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-metrics strong {
  font-size: 1rem;
}

.hero-metrics span {
  color: var(--muted);
}

.hero-panel {
  border-radius: 34px;
  padding: 18px;
  overflow: hidden;
}

.dashboard-card {
  height: 100%;
  border-radius: 24px;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(212, 177, 106, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  color: var(--muted);
}

.status-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(120, 183, 189, 0.14);
  color: #bde8ec;
  font-size: 0.82rem;
}

.dashboard-grid {
  display: grid;
  gap: 14px;
}

.dashboard-grid article {
  padding: 18px;
  border-radius: 18px;
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-label,
.result-label {
  display: block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  margin-bottom: 8px;
}

.dashboard-grid strong,
.result-card strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  margin-bottom: 10px;
}

.pain,
.process,
.tools,
.trust,
.contact {
  padding: 36px 0;
}

.section-intro {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  max-width: 880px;
}

.section-intro h2,
.contact-copy h2 {
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.pain-grid,
.process-steps,
.tools-grid {
  display: grid;
  gap: 20px;
}

.pain-grid,
.process-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pain-card,
.step-card,
.tool-card,
.trust-panel,
.contact-form {
  padding: 28px;
  border-radius: 28px;
}

.pain-card h3,
.step-card h3,
.tool-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.step-index {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--gold);
  font-weight: 800;
  font-size: 1.4rem;
}

.tools-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.tool-head {
  margin-bottom: 22px;
}

.valuation-form,
.contact-form {
  display: grid;
  gap: 16px;
}

.valuation-form label,
.contact-form label {
  display: grid;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(212, 177, 106, 0.32);
  outline-offset: 1px;
}

input[type="range"] {
  padding: 0;
  accent-color: var(--gold);
}

.range-value {
  color: var(--muted);
  font-size: 0.92rem;
}

.form-feedback {
  min-height: 1.5rem;
  color: var(--muted);
  line-height: 1.5;
}

.form-feedback.is-pending {
  color: var(--gold-soft);
}

.form-feedback.is-success {
  color: #b8f2c8;
}

.form-feedback.is-error {
  color: #ffb3b3;
}

.result-card {
  margin-top: 20px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(120, 183, 189, 0.14), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(120, 183, 189, 0.2);
}

.check-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.check-list li,
.trust-points span {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-points {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  align-items: start;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links,
.brand-link {
  display: inline-flex;
  gap: 18px;
  text-decoration: none;
  color: inherit;
}

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

.footer-links a:hover,
.brand-link:hover .brand-sub,
.brand-link:hover .brand-kicker {
  color: var(--text);
}

.page-shell-legal {
  min-height: 100vh;
}

.legal-stack {
  display: grid;
  gap: 18px;
  max-width: 820px;
}

.legal-card,
.legal-section {
  position: relative;
  z-index: 1;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.legal-card h1,
.legal-section h2 {
  margin-top: 0;
}

.legal-copy {
  color: var(--muted);
  line-height: 1.7;
}

.legal-list {
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.lead-entry {
  display: grid;
  gap: 18px;
}

.lead-toolbar {
  display: grid;
  gap: 18px;
}

.lead-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.summary-chip {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.summary-chip span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.summary-chip strong {
  font-size: 1.5rem;
}

.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lead-actions {
  display: flex;
  justify-content: flex-start;
}

.pagination-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}

.pagination-meta {
  color: var(--muted);
  margin-right: 4px;
}

.lead-search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.lead-search-form input[type="search"] {
  min-width: min(100%, 360px);
}

.filter-tab {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  text-decoration: none;
}

.filter-tab.is-active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.lead-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.lead-status {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.lead-status-neu {
  background: rgba(212, 177, 106, 0.14);
  color: var(--gold-soft);
}

.lead-status-in_bearbeitung {
  background: rgba(120, 183, 189, 0.16);
  color: #bde8ec;
}

.lead-status-erledigt {
  background: rgba(133, 214, 161, 0.16);
  color: #b8f2c8;
}

.lead-status-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.lead-status-form select {
  min-width: 210px;
}

.lead-status-button {
  padding: 12px 16px;
}

.lead-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lead-grid strong,
.lead-grid a {
  color: var(--text);
  text-decoration: none;
}

.lead-label {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lead-message {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lead-notes {
  display: grid;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.note-list {
  display: grid;
  gap: 12px;
}

.note-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.note-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.9rem;
}

.lead-note-form {
  display: grid;
  gap: 12px;
}

.lead-note-button {
  justify-self: start;
}

@media (max-width: 980px) {
  .hero,
  .pain-grid,
  .process-steps,
  .tools-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .lead-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy,
  .hero-panel,
  .pain-card,
  .step-card,
  .tool-card,
  .trust-panel,
  .contact-form {
    border-radius: 24px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .site-footer,
  .footer-links,
  .brand-link,
  .lead-grid,
  .lead-header,
  .lead-status-form,
  .lead-search-form {
    flex-direction: column;
    align-items: flex-start;
  }

  .lead-summary {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel,
  .pain-card,
  .step-card,
  .tool-card,
  .trust-panel,
  .contact-form,
  .legal-card,
  .legal-section {
    padding: 22px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 16vw, 4rem);
  }
}
