/* =========================
   CSS RESET & VARIABLES
========================= */

:root {
  --green-dark: #0f3d0f;
  --green: #1b5e20;
  --green-soft: #e7efe7;
  --bg: #f6f3ef;
  --text: #1c1c1c;
  --muted: #6b6b6b;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Subtle focus ring */
:focus-visible {
  outline: 3px solid rgba(27, 94, 32, 0.25);
  outline-offset: 3px;
  border-radius: 10px;
}

/* =========================
   LAYOUT HELPERS
========================= */

section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 24px;
}

.subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 64px;
  font-size: 17px;
}

/* =========================
   HEADER & NAVIGATION
========================= */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
}

.logo-badge {
  width: 36px;
  height: 36px;
  background: var(--green);
  color: #ffffff;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  opacity: 0.9;
}

.nav-links a:hover {
  opacity: 1;
}
/* KI-Cockpit Link in der Navigation */
.nav-ki-cockpit {
  display: inline-flex;          /* nice alignment */
  align-items: center;
  gap: 0.5rem;

  max-width: 420px;              /* adjust as needed */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  opacity: 0.9;
}

.nav-ki-cockpit:hover {
  opacity: 1;
  text-decoration: underline;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-btn {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: #f0f0f0;
  transition: transform 0.12s ease, background 0.12s ease;
}

.lang-btn:hover {
  background: #e9e9e9;
  transform: translateY(-1px);
}

.nav-cta {
  background: var(--green);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

/* =========================
   HERO SECTION
========================= */

.hero {
  text-align: center;
  background: #ffffff;
  padding: 120px 24px 80px;
}

.pill {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--green);
}

.hero p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================
   BUTTONS
========================= */

.btn-primary {
  background: var(--green);
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid #dddddd;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.btn-secondary:hover {
  transform: translateY(-1px);
  border-color: #cfcfcf;
}

/* Tertiary button (Testimonials: More on LinkedIn) */
.btn-tertiary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #dddddd;
  background: #ffffff;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.btn-tertiary:hover {
  transform: translateY(-1px);
  border-color: #cfcfcf;
}

/* =========================
   STATS BAR
========================= */

.stats {
  background: #ffffff;
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat h3 {
  font-size: 36px;
  color: var(--green);
  font-weight: 800;
}

.stat p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

/* =========================
   GRID & CARDS
========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  color: var(--muted);
}

/* =========================
   CERTIFICATIONS (BADGE GRID)
   - 3 per row on desktop
========================= */

.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.badge-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 14px;
  align-items: center;
  transition: transform 0.12s ease;
}

.badge-card:hover {
  transform: translateY(-2px);
}

.badge-img {
  width: 64px;
  height: 64px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  object-fit: cover;
  flex: 0 0 auto;
  background: #f2f2f2;
}

.badge-title {
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.25;
}

.badge-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

/* Small explanatory note (reused) */
.chip-note {
  max-width: 780px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

/* (Legacy) chip styles – safe to keep even if unused */
.chip-group { max-width: 980px; margin: 0 auto; }
.subtle-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #e3e3e3;
  background: #ffffff;
  font-weight: 600;
  font-size: 13.5px;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}
.chip:hover { transform: translateY(-1px); border-color: #cfcfcf; }
.chip small { font-weight: 600; color: var(--muted); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); opacity: 0.55; }

/* =========================
   TESTIMONIALS
   - 4 per row on desktop
========================= */

.stars {
  color: var(--green);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

blockquote {
  font-style: italic;
  font-size: 15px;
  margin: 12px 0 16px;
  color: #2a2a2a;
}

.author {
  font-weight: 600;
  font-size: 14px;
}

.role {
  font-size: 13px;
  color: var(--green);
}

/* Header row + LinkedIn button alignment */
.testimonials-top {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.testimonials-top .subtitle {
  text-align: left;
  margin: 0;
  max-width: 680px;
}

/* Force testimonials grid to 4 across on desktop */
#testimonials .grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* Make testimonial cards align nicely even with different quote lengths */
.testimonial-card {
  display: flex;
  flex-direction: column;
}

.testimonial-card blockquote {
  margin: 12px 0 14px;
}

.t-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto; /* pushes footer to bottom for consistent heights */
  padding-top: 8px;
}

.avatar {
  width: 44px;
  height: 44px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  object-fit: cover;
  background: #efefef;
  flex: 0 0 auto;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
  font-size: 14px;
}

/* =========================
   CTA SECTION
========================= */

.cta {
  background: var(--green-dark);
  color: #ffffff;
  text-align: center;
  padding: 96px 24px;
}

.cta h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta p {
  max-width: 640px;
  margin: 0 auto;
  opacity: 0.85;
  font-size: 17px;
}

.cta-actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================
   FOOTER
========================= */

footer {
  background: #121212;
  color: #bbbbbb;
  padding: 64px 24px 32px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

footer h4 {
  color: #ffffff;
  margin-bottom: 12px;
  font-size: 16px;
}

footer p,
footer a {
  font-size: 14px;
  color: #aaaaaa;
}

footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid #333333;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
  /* 3 -> 2 */
  .badge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 4 -> 2 */
  #testimonials .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  section {
    padding: 72px 20px;
  }

  .hero {
    padding: 96px 20px 64px;
  }

  .cta h2 {
    font-size: 32px;
  }

  .testimonials-top {
    justify-content: center;
    text-align: center;
  }

  .testimonials-top .subtitle {
    text-align: center;
  }
}

@media (max-width: 640px) {
  /* 2 -> 1 */
  .badge-grid {
    grid-template-columns: 1fr;
  }

  /* 2 -> 1 */
  #testimonials .grid {
    grid-template-columns: 1fr;
  }
}
