:root {
  --bg: #FFFFFF;
  --surface: #F9FAFB;
  --border: #E5E7EB;
  --text: #111827;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --accent: #0F6E56;
  --accent-light: #E1F5EE;
  --accent-hover: #085041;
  --red-bg: #FEF2F2;
  --red-text: #B91C1C;
  --red-border: #FECACA;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.serif {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

section {
  padding-top: 100px;
  padding-bottom: 100px;
}

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

/* ---------- Section heading shared ---------- */
.label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 36px;
  line-height: 1.2;
  color: var(--text);
  margin-top: 14px;
}

.section-head p {
  margin-top: 16px;
  font-size: 16px;
  color: var(--text-secondary);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 13px 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: #D1D5DB;
}

.btn-white {
  background: #fff;
  color: var(--accent);
  border: 1px solid transparent;
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.wordmark {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 10px 20px;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 96px;
  padding-bottom: 96px;
  text-align: center;
  background: radial-gradient(ellipse 80% 55% at 50% -5%, rgba(15, 110, 86, 0.07) 0%, transparent 70%);
}

.hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 56px;
  line-height: 1.15;
  color: var(--text);
  margin: 18px auto 0;
  max-width: 720px;
  letter-spacing: -0.01em;
}

.hero .subhead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 22px auto 0;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}

.trust-line {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
}

/* ---------- Hero mockup ---------- */
.mockup {
  margin: 64px auto 0;
  max-width: 920px;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 16px 48px rgba(0, 0, 0, 0.11);
  background: #fff;
  overflow: hidden;
  text-align: left;
}

/* ---------- Mockup browser chrome ---------- */
.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.chrome-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.chrome-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.chrome-dots span:nth-child(1) { background: #FC635D; }
.chrome-dots span:nth-child(2) { background: #FDBC40; }
.chrome-dots span:nth-child(3) { background: #34C749; }

.chrome-url {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 12px;
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.01em;
}

.chrome-spacer {
  width: 52px;
  flex-shrink: 0;
}

.mockup-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.mockup-logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 17px;
  color: var(--text);
}

.mockup-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-body {
  display: grid;
  grid-template-columns: 200px 1fr;
}

.mockup-sidebar {
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  background: var(--surface);
}

.mockup-navitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.mockup-navitem.active {
  background: var(--accent-light);
  color: var(--accent);
}

.mockup-navitem .dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.7;
}

.mockup-main {
  padding: 22px 24px;
  background: #fff;
}

.mockup-main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.mockup-main-head h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.mockup-pill {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  padding: 5px 12px;
  border-radius: 6px;
}

.mockup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.mockup-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--border);
}

.mockup-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.mockup-table tr:last-child td {
  border-bottom: none;
}

.mockup-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.mockup-name .ava {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge-paid {
  background: var(--accent-light);
  color: var(--accent);
}

.badge-overdue {
  background: var(--red-bg);
  color: var(--red-text);
}

.td-muted {
  color: var(--text-secondary);
}

.td-amount {
  font-weight: 600;
}

/* ---------- Social proof ---------- */
.social {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-top: 44px;
  padding-bottom: 44px;
  text-align: center;
}

.social .eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.social-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  font-size: 14px;
  color: var(--text-secondary);
}

.social-row .sep {
  color: var(--border);
}

/* ---------- Problem ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-radius: 8px;
  padding: 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.problem-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
}

.problem-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--red-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--red-text);
}

.problem-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.problem-card p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 10px;
  line-height: 1.65;
}

.transition {
  text-align: center;
  margin-top: 56px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-style: italic;
  font-size: 26px;
  color: var(--accent);
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  grid-column: span 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.feature-card.bottom {
  grid-column: span 1;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 10px;
  line-height: 1.65;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 40px;
  padding-bottom: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-left .wordmark {
  font-size: 18px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text-secondary);
}

/* ---------- Legal Pages ---------- */
.legal-page {
  min-height: calc(100vh - 200px);
  padding: 80px 0;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  margin-bottom: 40px;
}

.legal-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}

.legal-content p {
  margin-bottom: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.legal-content ul {
  margin-left: 20px;
  margin-bottom: 16px;
}

.legal-content li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

/* ---------- Pricing ---------- */
.pricing-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 680px;
  margin: 0 auto;
}

.pricing-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pricing-amount {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 38px;
  color: var(--text);
  line-height: 1;
}

.pricing-period {
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: -10px 0 0;
}

.pricing-features {
  list-style: none;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- CTA ---------- */
.cta-section {
  background: var(--accent);
  text-align: center;
}

.cta-section h2 {
  font-size: 40px;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.01em;
}

.cta-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 14px;
  margin-bottom: 36px;
}

.cta-note {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Focus states (accessibility) ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Feature card header row ---------- */
.feature-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
}

.feature-card-top .feature-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

/* ---------- Feature availability tags ---------- */
.feature-tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  align-self: flex-start;
  line-height: 1.6;
}

.feature-tag--live {
  background: var(--accent-light);
  color: var(--accent);
}

.feature-tag--soon {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.feature-card--soon {
  opacity: 0.68;
  transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card--soon:hover {
  opacity: 1;
}

/* ---------- Inline "Demnächst" chip in pricing ---------- */
.tag-soon {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  vertical-align: middle;
  margin-left: 5px;
  line-height: 1.6;
}

/* ---------- Mobile hamburger ---------- */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 6px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--text);
  transition: background 0.15s ease;
}

.nav-hamburger:hover {
  background: var(--surface);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- "Wie es funktioniert" section ---------- */
.how-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 820px;
  margin: 0 auto;
}

.step-card {
  flex: 1;
  text-align: center;
  padding: 0 28px;
}

.step-number {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  font-family: 'DM Serif Display', Georgia, serif;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.step-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.step-divider {
  flex-shrink: 0;
  color: var(--border);
  padding-top: 12px;
  display: flex;
  align-items: flex-start;
}

/* ---------- Responsive ---------- */

/* Large tablet / small laptop */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 48px;
  }
}

/* Tablet (iPad portrait and above) */
@media (max-width: 900px) {
  section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .hero {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .section-head h2 {
    font-size: 32px;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 12px);
    margin-left: auto;
    margin-right: auto;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card,
  .feature-card.bottom {
    grid-column: span 1;
  }

  .step-card {
    padding: 0 16px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .mockup-body {
    grid-template-columns: 150px 1fr;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  /* Hamburger visible; links hidden by default, shown when toggled */
  .nav-hamburger {
    display: flex;
  }

  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: 68px;
    padding-top: 14px;
    padding-bottom: 14px;
    align-content: center;
  }

  .nav-links {
    display: none;
  }

  .nav-links--open {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    order: 10;
    gap: 0;
    padding: 8px 0 4px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
  }

  .nav-links--open a {
    display: block;
    padding: 12px 4px;
    font-size: 15px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
  }

  .nav-links--open a:last-child {
    border-bottom: none;
  }

  .nav-cta {
    font-size: 14px;
    padding: 9px 16px;
  }

  /* Steps: stack vertically */
  .steps-grid {
    flex-direction: column;
    align-items: center;
  }

  .step-card {
    padding: 0;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .step-divider {
    padding-top: 0;
    transform: rotate(90deg);
    margin: 10px auto;
  }

  .hero {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .cta-section h2 {
    font-size: 30px;
  }

  .hero .subhead {
    font-size: 16px;
    max-width: 100%;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons .btn {
    text-align: center;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-3 > :last-child:nth-child(odd) {
    grid-column: span 1;
    max-width: 100%;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .feature-card.bottom {
    grid-column: span 1;
  }

  .pricing-grid {
    max-width: 100%;
  }

  .mockup-body {
    grid-template-columns: 1fr;
  }

  .mockup-sidebar {
    display: none;
  }

  .mockup-table th:nth-child(3),
  .mockup-table td:nth-child(3) {
    display: none;
  }

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

  .footer-links {
    flex-wrap: wrap;
    gap: 12px 20px;
  }
}

/* Small phone */
@media (max-width: 460px) {
  section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .hero {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero .subhead {
    font-size: 15px;
  }

  .nav-cta {
    display: none;
  }

  .mockup-main {
    padding: 16px;
  }

  .mockup-table th:nth-child(4),
  .mockup-table td:nth-child(4) {
    display: none;
  }

  .pricing-card {
    padding: 24px;
  }
}
