/* ==========================================================================
   MenüKlar - Modern SaaS Landing Page Stylesheet
   Design matching reference: Realistic Photography + Clean Typography
   Palette: Vibrant Forest Green (#1b8032), Dark Gray (#111827), Pure White
   ========================================================================== */

/* 1. Design Tokens */
:root {
  --color-primary: #1b8032;           /* Frisches, sattes SaaS-Grün */
  --color-primary-hover: #166928;     /* Dunkleres Grün bei Hover */
  --color-primary-soft: #eaf5ee;      /* Sanftes Hellgrün für Badges & Akzente */
  --color-primary-border: #c2e4cc;    /* Zarte Umrandung für Hinweis-Pills */
  
  --color-bg: #ffffff;               /* Reines Weiß als Hauptgrund */
  --color-surface: #ffffff;
  
  --color-text-main: #111827;        /* Fast Schwarz für Titel */
  --color-text-muted: #4b5563;       /* Lesefreundliches Dunkelgrau */
  --color-text-light: #6b7280;       /* Sanftes Grau */
  --color-border: #f1f5f9;           /* Dezente Trennlinien */

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
  --shadow-photo: 0 20px 45px -12px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.04);
  
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Reset & Basics */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 3. Header & Navigation */
.header {
  background-color: #ffffff;
  border-bottom: 1px solid rgba(241, 245, 249, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  text-decoration: none;
  font-size: 1.65rem;
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: center;
}

.logo-accent {
  font-weight: 800;
  color: var(--color-primary);
}

.logo-main {
  font-weight: 800;
  color: var(--color-text-main);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--color-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  border: none;
  border-radius: 9999px;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 0.9rem 1.85rem;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(27, 128, 50, 0.28);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(27, 128, 50, 0.38);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--color-text-main);
  border: 1px solid #d1d5db;
  padding: 0.9rem 1.75rem;
  font-size: 1.05rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
  border-color: var(--color-primary-border);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-danger {
  background-color: #dc2626;
  color: #ffffff;
  border: 1px solid #dc2626;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-danger:hover {
  background-color: #b91c1c;
  border-color: #b91c1c;
  color: #ffffff;
}

.btn-danger:focus-visible {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

.btn-sm {
  padding: 0.35rem 0.85rem;
  font-size: 0.825rem;
  border-radius: var(--radius-pill);
}

.badge-active {
  display: inline-block;
  background-color: #dcfce7;
  color: #166534;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.75rem;
}

.badge-inactive {
  display: inline-block;
  background-color: #f1f5f9;
  color: #64748b;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.75rem;
}

/* Category Table */
.table-container {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
}

.category-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
}

.category-table th {
  background-color: #f8fafc;
  color: #4b5563;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.category-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1f2937;
  vertical-align: middle;
}

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

.category-table tr:hover td {
  background-color: #fafcfb;
}

.header-action {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link-login {
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-tag);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link-login:hover {
  color: var(--color-primary);
  background-color: var(--color-primary-soft);
}

.nav-link-login:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-nav {
  padding: 0.65rem 1.45rem;
  font-size: 0.925rem;
  white-space: nowrap;
}

/* 4. Hero Section */
.hero-section {
  padding: 3.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  max-width: 540px;
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--color-text-main);
  margin-bottom: 1.5rem;
}

.highlight-text {
  color: var(--color-primary);
  display: inline-block;
}

.hero-description {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 2.25rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* CTA Placeholder Message */
.cta-message {
  font-size: 0.925rem;
  font-weight: 600;
  color: #1b6a33;
  background-color: var(--color-primary-soft);
  border: 1px solid var(--color-primary-border);
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  animation: ctaFadeIn 0.25s ease-out;
}

@keyframes ctaFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Visual (Right Side) */
.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px;
}

.hero-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: var(--shadow-photo);
  transition: transform 0.4s ease;
}

.hero-photo:hover {
  transform: translateY(-3px);
}

/* 5. So funktioniert's Section */
.how-it-works-section {
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
  padding: 5.5rem 0 6.5rem;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.section-badge {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--color-text-main);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  position: relative;
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

/* Connector line between steps on desktop */
.step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 92px; /* Vertically aligned with illustration centers */
  right: -1.35rem;
  width: 2.7rem;
  height: 2px;
  background-color: #d1e7dd;
  pointer-events: none;
}

.step-image-wrap {
  width: 100%;
  max-width: 280px;
  margin-bottom: 1.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.step-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.step-card:hover .step-img {
  transform: scale(1.03);
}

.step-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-text-main);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.step-description {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 330px;
  margin: 0 auto;
}

/* 6. Pricing Section */
.pricing-section {
  background-color: #fafaf9;
  border-top: 1px solid var(--color-border);
  padding: 5.5rem 0 6.5rem;
}

.section-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-top: 0.85rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem;
  max-width: 880px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 2.75rem 2.25rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

/* Featured Pro Plan */
.pricing-card-featured {
  border: 2px solid var(--color-primary);
  box-shadow: 0 12px 30px -8px rgba(27, 128, 50, 0.16);
}

.pricing-card-featured:hover {
  border-color: var(--color-primary-hover);
  box-shadow: 0 18px 36px -6px rgba(27, 128, 50, 0.24);
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 1.1rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 10px rgba(27, 128, 50, 0.3);
  white-space: nowrap;
}

/* Plan Header & Price */
.pricing-card-header {
  margin-bottom: 2rem;
}

.plan-name {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text-main);
  margin-bottom: 0.4rem;
}

.plan-description {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
  min-height: 2.5rem;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.plan-price {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-text-main);
}

.plan-period {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text-light);
}

/* Plan Features List */
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.975rem;
  font-weight: 500;
  color: #374151;
}

.feature-icon {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Plan CTA Button */
.plan-cta .btn {
  width: 100%;
  padding: 0.9rem 1.5rem;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text-main);
  border: 1.5px solid #d1d5db;
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: var(--color-primary-soft);
  transform: translateY(-1px);
}

.pricing-cta-feedback {
  display: flex;
  justify-content: center;
  margin-top: 2.25rem;
}

/* 7. Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 2.5rem;
  }

  .hero-title {
    font-size: 2.9rem;
  }

  .nav-menu {
    gap: 1.25rem;
  }

  .steps-grid {
    gap: 1.5rem;
  }

  .step-card:not(:last-child)::after {
    top: 75px;
    right: -0.85rem;
    width: 1.7rem;
  }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content {
    max-width: 620px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-visual {
    justify-content: center;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
    gap: 3.5rem;
  }

  .step-card:not(:last-child)::after {
    display: none; /* Hide connector lines on mobile vertical stack */
  }

  .section-title {
    font-size: 2.2rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    gap: 3rem;
  }

  .plan-description {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1.25rem;
  }

  .header-container {
    height: 68px;
    gap: 0.5rem;
  }

  .nav-menu {
    display: none; /* Clean mobile header */
  }

  .header-action {
    gap: 0.5rem;
  }

  .nav-link-login {
    font-size: 0.85rem;
    padding: 0.4rem 0.5rem;
  }

  .btn-nav {
    padding: 0.5rem 0.95rem;
    font-size: 0.825rem;
  }

  .hero-section {
    padding: 2.5rem 0 3.5rem;
  }

  .pricing-section {
    padding: 3.5rem 0 4.5rem;
  }

  .pricing-card {
    padding: 2.25rem 1.5rem 1.75rem;
  }

  .plan-price {
    font-size: 2.35rem;
  }

  .hero-title {
    font-size: 2.35rem;
  }

  .hero-description {
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 0.85rem 1.5rem;
  }

  .cta-message {
    width: 100%;
    justify-content: center;
  }

  .how-it-works-section {
    padding: 3.5rem 0 4.5rem;
  }

  .section-header {
    margin-bottom: 2.75rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .step-title {
    font-size: 1.2rem;
  }
}
