/* ProinnovaMail — Marketing Landing Stylesheet
 * Inspirations-Anker: AdressBuddy-Landing, eigene Farb-Palette.
 */

:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-alt: #F1F5F9;
  --ink: #0F172A;
  --ink-muted: #475569;
  --ink-soft: #64748B;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;

  --brand-900: #0B1B33;
  --brand-800: #0F172A;
  --brand-700: #1E3A5F;
  --brand-600: #2563EB;
  --brand-500: #3B82F6;
  --brand-300: #93C5FD;
  --brand-50: #EFF6FF;

  --accent: #F59E0B;
  --success: #16A34A;
  --danger: #DC2626;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn-primary {
  background: var(--brand-700);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--brand-800); box-shadow: var(--shadow-md); color: white; }
.btn-ghost {
  background: white;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--surface-alt); color: var(--ink); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.logo-icon {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--brand-700); color: white; border-radius: 10px;
  font-size: 18px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.logo-sub { font-size: 11px; color: var(--ink-soft); letter-spacing: .5px; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a {
  font-size: 14px; font-weight: 500; color: var(--ink-muted);
}
.main-nav a:hover { color: var(--ink); text-decoration: none; }
.main-nav .btn { color: white; }

.mobile-toggle {
  display: none;
  width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; gap: 4px; align-items: center; justify-content: center;
}
.mobile-toggle span {
  width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
}

@media (max-width: 880px) {
  .main-nav {
    position: absolute; left: 0; right: 0; top: 68px;
    background: white; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px 24px;
    display: none;
  }
  .main-nav a { padding: 10px 0; }
  .main-nav .btn { margin-top: 6px; }
  body.nav-open .main-nav { display: flex; }
  .mobile-toggle { display: flex; }
}

/* ---------- Flash ---------- */
.flash-messages { padding: 16px 24px 0; }
.flash {
  padding: 10px 14px; border-radius: 8px; font-size: 14px;
  border: 1px solid var(--line); background: white;
}
.flash-error { border-color: #FCA5A5; background: #FEF2F2; color: var(--danger); }
.flash-success { border-color: #BBF7D0; background: #F0FDF4; color: var(--success); }

/* ---------- Hero ---------- */
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--brand-600); background: var(--brand-50);
  padding: 5px 11px; border-radius: 999px;
  margin-bottom: 18px;
}

.hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #EFF4FB 100%);
  padding: 64px 0 80px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px;
  align-items: center;
}
.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.06; font-weight: 700; margin: 0 0 18px;
  letter-spacing: -.02em;
}
.hero-text h1 .accent { color: var(--brand-700); }
.hero-text .lead {
  font-size: 18px; color: var(--ink-muted); margin: 0 0 28px;
  max-width: 56ch;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-bullets {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 6px; font-size: 14px; color: var(--ink-muted);
}

.hero-visual { position: relative; }
.mock-letter {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: rotate(-1.4deg);
}
.mock-letter-header {
  display: flex; flex-direction: column; gap: 2px;
  padding-bottom: 14px; border-bottom: 1px dashed var(--line);
}
.mock-letter-header strong { font-family: var(--font-display); font-size: 14px; }
.mock-letter-header span { font-size: 12px; color: var(--ink-soft); }
.mock-letter-body { padding-top: 14px; font-size: 13.5px; color: var(--ink); }
.mock-letter-body p { margin: 0 0 10px; }
.mock-letter-score {
  display: flex; align-items: center; justify-content: space-between;
  background: #FEF3C7; border: 1px solid #FDE68A; border-radius: 8px;
  padding: 8px 12px; margin: 12px 0;
  font-size: 13px;
}
.mock-letter-score strong { color: #B45309; font-size: 18px; }
.mock-letter-sign { font-style: italic; color: var(--ink-soft); }
.mock-letter-qr {
  position: absolute; right: -18px; bottom: -18px;
  background: white; border: 1px solid var(--line); border-radius: 12px;
  padding: 8px; text-align: center; box-shadow: var(--shadow-md);
  transform: rotate(3deg);
}
.qr-grid {
  width: 84px; height: 84px;
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px;
  background: white;
}
.qr-grid span { background: var(--ink); border-radius: 1px; }
.qr-grid span:nth-child(odd) { background: white; }
.qr-grid span:nth-child(7n+1),
.qr-grid span:nth-child(7n+2),
.qr-grid span:nth-child(7n+6),
.qr-grid span:nth-child(7n+7) { background: var(--ink); }
.qr-grid span:nth-child(3),
.qr-grid span:nth-child(11),
.qr-grid span:nth-child(19),
.qr-grid span:nth-child(27),
.qr-grid span:nth-child(36) { background: white; }
.mock-letter-qr small { display: block; font-size: 10px; color: var(--ink-soft); margin-top: 4px; }

.mock-push {
  display: flex; align-items: center; gap: 12px;
  position: absolute; left: -10px; bottom: -34px;
  background: var(--brand-800); color: white;
  padding: 12px 16px; border-radius: 14px;
  box-shadow: var(--shadow-lg);
  max-width: 290px;
  transform: rotate(2deg);
}
.mock-push strong { display: block; font-size: 13px; font-weight: 600; }
.mock-push span { display: block; font-size: 12px; opacity: .75; }
.mock-push-dot {
  width: 10px; height: 10px; border-radius: 50%; background: #22C55E;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .25);
  flex-shrink: 0;
  animation: pulse 1.6s infinite ease-in-out;
}
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .mock-letter { transform: rotate(-1deg); }
  .mock-push { position: static; transform: none; max-width: 100%; margin-top: 24px; }
  .mock-letter-qr { right: -10px; bottom: -14px; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--brand-800); color: rgba(255,255,255,.85);
  padding: 18px 0; text-align: center;
}
.trust-strip p { margin: 0; font-size: 14px; }

/* ---------- Section Header ---------- */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -.01em;
}
.section-header p { color: var(--ink-muted); margin: 0; font-size: 16.5px; }

/* ---------- Features ---------- */
.features { padding: 84px 0; }
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 1040px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 22px; transition: transform .15s, box-shadow .15s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--brand-50); color: var(--brand-700);
  display: grid; place-items: center; font-size: 22px;
  margin-bottom: 14px;
}
.feature-card h3 { font-family: var(--font-display); font-size: 17px; margin: 0 0 6px; }
.feature-card p { color: var(--ink-muted); font-size: 14.5px; margin: 0; }

/* ---------- Workflow ---------- */
.workflow { background: var(--surface-alt); padding: 84px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1040px) { .workflow-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .workflow-grid { grid-template-columns: 1fr; } }
.workflow-step {
  background: white; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 24px; position: relative;
}
.workflow-num {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand-700); color: white; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  margin-bottom: 14px;
}
.workflow-step h3 { font-family: var(--font-display); font-size: 17px; margin: 0 0 6px; }
.workflow-step p { color: var(--ink-muted); font-size: 14.5px; margin: 0; }

/* ---------- Benefits / Compare ---------- */
.benefits { padding: 84px 0; }
.benefits-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
}
@media (max-width: 880px) { .benefits-grid { grid-template-columns: 1fr; gap: 36px; } }
.benefits-text h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 34px);
  margin: 0 0 14px; letter-spacing: -.01em;
}
.benefits-text p { color: var(--ink-muted); font-size: 16px; }
.checklist { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.checklist li { font-size: 15px; color: var(--ink); }
.benefits-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.benefits-card h3 { margin: 0 0 14px; font-family: var(--font-display); font-size: 18px; }
.compare { width: 100%; border-collapse: collapse; }
.compare td { padding: 10px 0; font-size: 15px; border-bottom: 1px dashed var(--line); }
.compare td:last-child { color: var(--success); font-weight: 600; text-align: right; }
.compare tr:last-child td { border-bottom: 0; }

/* ---------- Pricing ---------- */
.pricing { background: var(--surface-alt); padding: 84px 0; border-top: 1px solid var(--line); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 880px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative;
}
.pricing-card--featured {
  border-color: var(--brand-700);
  box-shadow: 0 16px 40px rgba(30, 58, 95, .18);
  transform: translateY(-4px);
}
.pricing-badge {
  position: absolute; top: -12px; left: 24px;
  background: var(--brand-700); color: white;
  font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.pricing-card h3 { font-family: var(--font-display); font-size: 18px; margin: 0; }
.pricing-price { display: flex; align-items: baseline; gap: 6px; margin: 0; }
.pricing-amount { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--ink); }
.pricing-period { color: var(--ink-soft); font-size: 14px; }
.pricing-tag { color: var(--ink-muted); font-size: 13.5px; margin: 0; }
.pricing-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14.5px; }
.pricing-fineprint { text-align: center; color: var(--ink-soft); font-size: 13px; margin-top: 28px; }

/* ---------- Final CTA ---------- */
.cta-final { padding: 84px 0; }
.cta-card {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-800));
  color: white; border-radius: var(--radius-lg);
  padding: 56px 32px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 34px);
  margin: 0 0 12px;
}
.cta-card p { color: rgba(255,255,255,.82); font-size: 16px; margin: 0 0 24px; max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cta-card .btn-ghost { background: rgba(255,255,255,.10); color: white; border-color: rgba(255,255,255,.25); }
.cta-card .btn-ghost:hover { background: rgba(255,255,255,.18); color: white; }

/* ---------- Form Pages ---------- */
.form-page { padding: 64px 0 96px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 880px) { .form-grid { grid-template-columns: 1fr; gap: 32px; } }
.form-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 38px);
  margin: 0 0 14px; letter-spacing: -.01em;
}
.form-intro p { color: var(--ink-muted); font-size: 16px; }

.form-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-sm); position: relative;
}
.form-card h2 { font-family: var(--font-display); font-size: 20px; margin: 0 0 4px; }
.form-card label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--ink-muted);
}
.form-card input, .form-card textarea {
  border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 11px 13px; font: inherit; font-weight: 400; color: var(--ink);
  background: white; transition: border-color .12s, box-shadow .12s;
}
.form-card input:focus, .form-card textarea:focus {
  outline: 0; border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .15);
}
.form-fineprint { font-size: 12px; color: var(--ink-soft); margin: 4px 0 0; }

/* ---------- Success / 404 / 500 ---------- */
.success-page { padding: 96px 0; }
.success-card {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: white; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 48px 32px; box-shadow: var(--shadow-sm);
}
.success-icon { font-size: 48px; margin-bottom: 12px; }
.success-card h1 { font-family: var(--font-display); font-size: 28px; margin: 0 0 10px; }
.success-card p { color: var(--ink-muted); font-size: 16px; margin: 0 0 24px; }

/* ---------- Legal pages ---------- */
.legal-page { padding: 64px 0 96px; }
.legal-narrow { max-width: 760px; }
.legal-narrow h1 {
  font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 38px);
  margin: 0 0 18px; letter-spacing: -.01em;
}
.legal-narrow h2 { font-family: var(--font-display); font-size: 19px; margin: 28px 0 8px; }
.legal-narrow p { color: var(--ink-muted); font-size: 15.5px; }
.legal-narrow details {
  background: white; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 18px; margin-bottom: 10px;
}
.legal-narrow details[open] { box-shadow: var(--shadow-sm); }
.legal-narrow summary { cursor: pointer; font-weight: 600; }
.legal-narrow summary::marker { color: var(--brand-600); }
.legal-fineprint { font-size: 13px; color: var(--ink-soft); margin-top: 24px; }
.legal-cta { margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-900);
  color: rgba(255,255,255,.82);
  padding: 56px 0 24px;
  margin-top: 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-family: var(--font-display); font-size: 14px; color: white; margin: 0 0 12px; letter-spacing: .3px; }
.footer-col p { font-size: 14px; color: rgba(255,255,255,.62); margin: 0 0 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-col a { color: rgba(255,255,255,.78); font-size: 14px; }
.footer-col a:hover { color: white; }
.footer-brand { font-size: 13px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px;
  font-size: 12.5px; color: rgba(255,255,255,.52);
}
.footer-mini { color: rgba(255,255,255,.42); }
