:root {
  --ink: #0d1b2a;
  --ink-2: #1b263b;
  --muted: #5c6b7a;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f7f5f0;
  --gold: #b89b5e;
  --gold-dark: #8f7538;
  --accent: #14532d;
  --accent-2: #1e6b3f;
  --danger: #b91c1c;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 40px -12px rgba(13, 27, 42, 0.18);
  --shadow-sm: 0 6px 18px -8px rgba(13, 27, 42, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 26px;
  display: grid;
  place-items: center;
}
.brand-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.brand-tag {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s;
}
.main-nav a:hover {
  color: var(--gold-dark);
}
.btn-header {
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}
.btn-header:hover {
  background: var(--gold-dark);
}

@media (max-width: 800px) {
  .main-nav {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(
      ellipse at top right,
      rgba(184, 155, 94, 0.18),
      transparent 60%
    ),
    linear-gradient(180deg, #fdfbf6 0%, #ffffff 100%);
  padding: 72px 0 96px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 20px;
}
.eyebrow.dark {
  color: var(--gold);
}
.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  margin: 0 0 20px;
  color: var(--ink);
}
.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 32px;
}
.lead.dark {
  color: var(--ink-2);
}
.lead strong {
  color: var(--ink);
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  display: inline-block;
  transition: all 0.2s;
  border: 1px solid var(--ink);
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}
.btn-primary.large {
  padding: 16px 32px;
  font-size: 16px;
}
.btn-primary.full {
  width: 100%;
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  padding: 14px 26px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  display: inline-block;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
}
.btn-secondary.large {
  padding: 16px 32px;
  font-size: 16px;
}
.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-stats div {
  display: flex;
  flex-direction: column;
}
.hero-stats strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  color: var(--ink);
  line-height: 1;
}
.hero-stats span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.hero-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-badge-inner {
  background: #fff;
  padding: 18px 26px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--ink);
}
.hero-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at center,
      rgba(184, 155, 94, 0.28),
      transparent 62%
    );
  filter: blur(18px);
  z-index: -1;
}
.dot-live {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(22, 163, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-badge {
    order: -1;
  }
}

/* ---------- Sections ---------- */
.section-light {
  padding: 80px 0;
  background: var(--bg-soft);
}
.section-title {
  font-size: clamp(28px, 3.2vw, 40px);
  text-align: center;
  margin: 0 0 48px;
}
.section-title.left {
  text-align: left;
  margin-bottom: 20px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 22px;
  margin: 0 0 8px;
}
.card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 800px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}
.kpi-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kpi {
  background: #fff;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.kpi-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  color: var(--ink);
  line-height: 1;
}
.kpi-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

/* ---------- Agent section ---------- */
.section-agent {
  padding: 80px 0 110px;
  background:
    radial-gradient(
      ellipse at top,
      rgba(184, 155, 94, 0.12),
      transparent 60%
    ),
    linear-gradient(180deg, #0d1b2a 0%, #1b263b 100%);
  color: #e7ecf3;
}
.agent-lead {
  max-width: 880px;
  margin: 0 auto 56px;
  text-align: center;
}
.agent-lead h2 {
  font-size: clamp(32px, 4vw, 56px);
  color: #fff;
  margin: 0 0 22px;
  line-height: 1.1;
}
.agent-lead .accent {
  color: var(--gold);
}
.agent-lead p {
  color: #b8c2cf;
  font-size: 19px;
  margin: 0;
  line-height: 1.55;
}

.agent-shell {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  color: var(--ink);
  border-radius: 22px;
  box-shadow:
    0 40px 100px -20px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(184, 155, 94, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 760px;
}
.agent-topbar {
  background: linear-gradient(90deg, #0d1b2a, #1b263b);
  color: #fff;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.agent-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.agent-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.agent-status {
  font-size: 12px;
  color: #a0b0c5;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.link-btn {
  background: none;
  border: none;
  color: #a0b0c5;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}
.link-btn:hover {
  color: var(--gold);
}

.chat-log {
  flex: 1;
  padding: 30px 36px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--bg-soft);
  min-height: 460px;
  max-height: 620px;
}
.msg {
  display: flex;
  max-width: 78%;
}
.msg .bubble {
  font-size: 16px;
  line-height: 1.55;
}
.msg.bot {
  align-self: flex-start;
}
.msg.user {
  align-self: flex-end;
  justify-content: flex-end;
}
.msg .bubble {
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
}
.msg.bot .bubble {
  background: #fff;
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.msg.user .bubble {
  background: var(--ink);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg .bubble p {
  margin: 0 0 8px;
}
.msg .bubble p:last-child {
  margin-bottom: 0;
}

.doc-preview {
  background: #fffbee;
  border-top: 1px solid #f3e7b8;
  border-bottom: 1px solid #f3e7b8;
  padding: 16px 22px;
  font-size: 14px;
}
.doc-preview.hidden {
  display: none;
}
.doc-preview-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
}
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px 20px;
  margin-top: 8px;
}
.analysis-grid dt {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.analysis-grid dd {
  margin: 0 0 6px;
  color: var(--ink);
  font-weight: 500;
}
.urgency-hoch {
  color: var(--danger);
  font-weight: 700;
}
.urgency-mittel {
  color: #b45309;
  font-weight: 700;
}
.urgency-niedrig {
  color: var(--accent);
  font-weight: 700;
}

.chat-form {
  display: flex;
  gap: 12px;
  padding: 22px 28px;
  background: #fff;
  border-top: 1px solid var(--line);
  align-items: center;
}
.upload-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 22px;
  border: 1px solid var(--line);
  transition: all 0.15s;
  flex-shrink: 0;
}
.upload-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
}
#chatInput {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 15px 22px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}
#chatInput:focus {
  border-color: var(--ink);
}
.btn-send {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 26px;
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.btn-send:hover {
  background: var(--gold-dark);
}
.btn-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.agent-footnote {
  padding: 12px 22px;
  background: #f1f3f6;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.typing {
  display: inline-flex;
  gap: 3px;
  padding: 4px 0;
}
.typing span {
  width: 7px;
  height: 7px;
  background: var(--muted);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}
.typing span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

.lead-cta {
  display: inline-block;
  margin-top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.lead-cta:hover {
  background: var(--gold-dark);
}

/* ---------- CTA Section ---------- */
.section-cta {
  padding: 80px 0;
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.section-cta h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  margin: 0 0 14px;
}
.section-cta p {
  color: #b8c2cf;
  font-size: 18px;
  margin: 0 0 32px;
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.section-cta .btn-secondary {
  color: #fff;
  border-color: #fff;
}
.section-cta .btn-secondary:hover {
  background: #fff;
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-2);
  color: #a0b0c5;
  padding: 32px 0;
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a:hover {
  color: var(--gold);
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.7);
  display: grid;
  place-items: center;
  z-index: 50;
  backdrop-filter: blur(4px);
}
.modal.hidden {
  display: none;
}
.modal-box {
  background: #fff;
  border-radius: var(--radius);
  max-width: 480px;
  width: calc(100% - 32px);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--muted);
}
.modal-box h3 {
  font-size: 26px;
  margin: 0 0 8px;
}
.modal-box > p {
  color: var(--muted);
  margin: 0 0 20px;
}
.modal-box label {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.modal-box input,
.modal-box textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  background: #fff;
}
.modal-box input:focus,
.modal-box textarea:focus {
  border-color: var(--ink);
}
.ok {
  background: #eafaf0;
  border: 1px solid #cde9d7;
  color: var(--accent);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin: 0;
}

.hidden {
  display: none !important;
}

/* ---------- Consent Gate ---------- */
.consent-gate {
  padding: 28px 26px 24px;
  background: linear-gradient(180deg, #fffbee, #ffffff);
  border-bottom: 1px solid var(--line);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.consent-gate h4 {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--ink);
}
.consent-points {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.consent-points li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
}
.consent-points li::before {
  content: "›";
  position: absolute;
  left: 4px;
  top: -2px;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 18px;
}
.consent-points a {
  color: var(--gold-dark);
  text-decoration: underline;
}
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  margin: 12px 0 18px;
  cursor: pointer;
  line-height: 1.5;
}
.consent-check input {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
  cursor: pointer;
}
.consent-check a {
  color: var(--gold-dark);
  text-decoration: underline;
}
.consent-gate .btn-primary {
  align-self: flex-start;
}
.consent-gate .btn-primary:disabled {
  background: #b8c2cf;
  border-color: #b8c2cf;
  cursor: not-allowed;
}
.consent-gate .btn-primary:disabled:hover {
  background: #b8c2cf;
}

/* ---------- Inline RDG Notice (Top of Chat) ---------- */
.rdg-notice {
  background: #fef3c7;
  border-left: 3px solid var(--gold-dark);
  color: #78350f;
  font-size: 12px;
  padding: 8px 14px;
  margin: 0;
  line-height: 1.4;
}

/* ---------- Verification Banner ---------- */
.verify-banner {
  background: #fef3c7;
  border-bottom: 1px solid #f3e7b8;
  color: #78350f;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 22px;
  text-align: center;
  line-height: 1.45;
}
.verify-banner.hidden {
  display: none;
}

/* ---------- Handoff Bar (Direkt an Kanzlei weiterleiten) ---------- */
.handoff-bar {
  background: linear-gradient(90deg, #fffbee, #ffffff);
  border-top: 1px solid #f3e7b8;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.handoff-bar.hidden {
  display: none;
}
.handoff-text {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
}
.btn-handoff {
  background: var(--gold-dark);
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  box-shadow: 0 4px 14px -4px rgba(143, 117, 56, 0.5);
  white-space: nowrap;
}
.btn-handoff:hover {
  background: var(--ink);
  transform: translateY(-1px);
}
