/* Mietenkataster24 - light blue + white, semi-official convenience-premium */

:root {
  --blue-900: #0b3a5e;
  --blue-700: #0f5288;
  --blue-600: #1266b1;
  --blue-500: #1f7ecb;
  --blue-100: #d9eaf7;
  --blue-50: #eef6fc;
  --ink: #16232e;
  --ink-soft: #46586a;
  --white: #ffffff;
  --border: #cfe2f0;
  --ok: #1d7a4f;
  --err: #b3352b;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(15, 82, 136, 0.10);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

.narrow { max-width: 860px; }

h1, h2, h3 { line-height: 1.2; color: var(--blue-900); font-weight: 700; }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.35rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-bottom: 0.7em; letter-spacing: -0.01em; }
h3 { font-size: 1.12rem; margin-bottom: 0.4em; }

a { color: var(--blue-600); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Top bar */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 800; font-size: 1.15rem; color: var(--blue-900);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-24 { color: var(--blue-500); }
.topbar-cta {
  background: var(--blue-600); color: #fff; text-decoration: none;
  padding: 9px 18px; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
}
.topbar-cta:hover { background: var(--blue-700); }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--blue-50) 0%, #ffffff 100%);
  padding: 48px 0 44px;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 0.9fr; gap: 48px;
  align-items: start;
}
.lead { font-size: 1.05rem; color: var(--ink-soft); margin-top: 14px; }

.hero-facts {
  display: flex; gap: 28px; margin-top: 24px; flex-wrap: wrap;
}
.fact strong {
  display: block; font-size: 1.3rem; color: var(--blue-700);
  letter-spacing: -0.01em;
}
.fact span { font-size: 0.87rem; color: var(--ink-soft); }

/* Form card */
.hero-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.form-title { font-size: 1.25rem; margin-bottom: 6px; }
.form-sub { font-size: 0.93rem; color: var(--ink-soft); margin-bottom: 18px; }

.waitlist-form input[type="email"] {
  width: 100%;
  padding: 13px 14px;
  font-size: 1rem;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  background: #fff;
  color: var(--ink);
}
.waitlist-form input[type="email"]:focus {
  outline: none; border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(31, 126, 203, 0.15);
}
.hp-field { display: none !important; }

.consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.82rem; color: var(--ink-soft);
  margin-bottom: 14px; cursor: pointer;
}
.consent input { margin-top: 3px; accent-color: var(--blue-600); flex-shrink: 0; }

.btn-primary {
  display: inline-block;
  width: 100%;
  background: var(--blue-600);
  color: #fff;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  padding: 13px 26px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease;
}
.btn-primary:hover { background: var(--blue-700); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }

.form-msg { font-size: 0.9rem; margin-top: 10px; min-height: 1.3em; }
.form-msg.ok { color: var(--ok); font-weight: 600; }
.form-msg.err { color: var(--err); }

/* Success card shown after waitlist submit */
.waitlist-success {
  text-align: center;
  padding: 28px 20px;
  animation: success-in 0.45s ease-out both;
}
.waitlist-success .success-check {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 auto 14px;
}
.waitlist-success .success-check-circle {
  stroke: var(--ok);
  stroke-width: 2.5;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: success-stroke 0.6s ease-out 0.1s forwards;
}
.waitlist-success .success-check-mark {
  stroke: var(--ok);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: success-stroke 0.35s ease-out 0.6s forwards;
}
.waitlist-success .success-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.waitlist-success .success-text { color: var(--muted, #555); }
@keyframes success-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes success-stroke {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .waitlist-success,
  .waitlist-success .success-check-circle,
  .waitlist-success .success-check-mark {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* Form card benefit list */
.benefit-list {
  list-style: none;
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.benefit-list li {
  padding-left: 28px; position: relative; margin-bottom: 10px;
}
.benefit-list li strong { color: var(--blue-900); }
.benefit-list li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue-100);
}
.benefit-list li::after {
  content: ""; position: absolute; left: 4px; top: 8px;
  width: 7px; height: 4px;
  border-left: 2px solid var(--blue-700); border-bottom: 2px solid var(--blue-700);
  transform: rotate(-45deg);
}
.form-micro {
  font-size: 0.8rem; color: var(--ink-soft); margin-top: 10px; text-align: center;
}

/* Pain list */
.pain-list { list-style: none; margin: 24px 0; }
.pain-list li {
  padding: 14px 18px 14px 46px; position: relative; margin-bottom: 10px;
  background: var(--blue-50);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
}
.pain-list li::before {
  content: ""; position: absolute; left: 18px; top: 22px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue-500);
}
.pain-close {
  font-size: 1.15rem; font-weight: 700; color: var(--blue-900); margin-top: 24px;
}

/* Compare columns */
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0 36px;
}
.compare-col {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.compare-col h3 { margin-bottom: 14px; }
.compare-highlight {
  border: 2px solid var(--blue-500);
  box-shadow: var(--shadow);
}
.compare .check-list { margin: 0; }
.compare .check-list li { font-size: 0.95rem; margin-bottom: 10px; }
.dash-list { list-style: none; margin: 0; }
.dash-list li {
  padding-left: 32px; position: relative; margin-bottom: 10px;
  font-size: 0.95rem; color: var(--ink-soft);
}
.dash-list li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 12px; height: 2px; background: var(--ink-soft); opacity: 0.5;
}

.outcome-line {
  font-size: 1.1rem; font-weight: 600; color: var(--blue-900);
  text-align: center; margin-top: 8px;
}

/* Sections */
.section { padding: 48px 0; }
.section-tint { background: var(--blue-50); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-lead { color: var(--ink-soft); max-width: 640px; margin-bottom: 32px; }
.section p + p { margin-top: 14px; }

.check-list { list-style: none; margin: 20px 0; }
.check-list li {
  padding-left: 32px; position: relative; margin-bottom: 12px;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-100);
}
.check-list li::after {
  content: ""; position: absolute; left: 5px; top: 10px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--blue-700); border-bottom: 2px solid var(--blue-700);
  transform: rotate(-45deg);
}

/* Risk cards */
.risk-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px;
}
.risk-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
}
.risk-card p { font-size: 0.95rem; color: var(--ink-soft); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 12px 0 36px; }
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 4px 14px rgba(15, 82, 136, 0.06);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue-600); color: #fff;
  font-weight: 700; margin-bottom: 14px;
}
.step p { font-size: 0.94rem; color: var(--ink-soft); }

.cta-inline { text-align: center; }
.cta-inline .btn-primary { width: auto; }
.cta-note { font-size: 0.88rem; color: var(--ink-soft); margin-top: 10px; }

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  background: var(--white);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--blue-900);
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem; color: var(--blue-500); font-weight: 400;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 20px 18px; color: var(--ink-soft); font-size: 0.96rem; }

/* Bottom CTA */
.section-cta {
  background: linear-gradient(180deg, #ffffff 0%, var(--blue-50) 100%);
  text-align: center;
}
.section-cta .section-lead { margin-left: auto; margin-right: auto; }
.waitlist-form-row { max-width: 560px; margin: 0 auto; text-align: left; }
.row-fields { display: flex; gap: 10px; margin-bottom: 12px; }
.row-fields input[type="email"] { flex: 1; margin-bottom: 0; }
.row-fields .btn-primary { width: auto; white-space: nowrap; }

/* Footer */
.footer {
  background: var(--blue-900);
  color: #bcd6ea;
  padding: 44px 0;
  font-size: 0.88rem;
  text-align: center;
}
.footer-brand { font-weight: 800; font-size: 1.05rem; color: #fff; margin-bottom: 14px; }
.footer-operator { max-width: 560px; margin: 0 auto 10px; }
.footer-disclaimer { max-width: 560px; margin: 0 auto 20px; opacity: 0.75; }
.footer-nav { display: flex; gap: 24px; justify-content: center; }
.footer-nav a { color: #dcebf7; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal h1 { margin-bottom: 24px; }
.legal h2 { font-size: 1.25rem; margin-top: 36px; }
.legal p { margin-top: 12px; }
.legal .back-link { display: inline-block; margin-bottom: 28px; font-size: 0.92rem; }

/* Responsive */
@media (max-width: 880px) {
  .hero { padding: 36px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; }
  .risk-grid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .row-fields { flex-direction: column; }
  .row-fields .btn-primary { width: 100%; }
}
