/* index.html — page-specific styles. See common.css for shared primitives. */
h1,
h2,
h3 {
  line-height: 1.15;
  color: var(--primary-dark);
  font-weight: 800;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin-bottom: 0.5em;
}
a {
  color: inherit;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
section {
  padding: 80px 0;
}

/* Topbar */
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand img {
  height: 30px;
  width: auto;
  display: block;
}
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.94rem;
  font-weight: 600;
}
.nav a {
  text-decoration: none;
  color: var(--primary-dark);
}
.nav a:hover {
  color: var(--primary);
}
.nav .btn-sm {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
}
.nav .btn-sm:hover {
  background: #00937c;
  color: #fff;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, #1c262b 0%, #323c41 55%, #0e4a44 100%);
  color: #fff;
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 190, 160, 0.22), transparent 65%);
  top: -220px;
  right: -160px;
}
.hero .wrap {
  position: relative;
  z-index: 1;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.4vw, 3.6rem);
  margin-bottom: 0.45em;
}
.hero h1 span {
  color: var(--accent);
}
.hero p {
  color: #c4d2d8;
  font-size: 1.15rem;
  max-width: 660px;
}
.hero-meta {
  margin-top: 40px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-meta div small {
  display: block;
  color: #8fa6ae;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero-meta div b {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
}

/* Kundenkarten */
.cases {
  display: grid;
  /* wächst mit der Anzahl der Success Stories: 2 Karten bleiben halbseitig,
     ab 3 Karten entsteht automatisch eine dritte Spalte */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.case {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
}
.case:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: #bfe9df;
}
.case-media {
  height: 210px;
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
}
.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.case-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.case-client {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.case h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.case p {
  color: var(--muted);
  font-size: 0.97rem;
  flex: 1;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 22px;
}
.chips span {
  background: var(--accent-soft);
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.case-link {
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.case:hover .case-link {
  gap: 14px;
}
.case-link::after {
  content: "→";
  transition: transform 0.2s;
}

/* Zitate */
.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 44px;
}
.quote-card {
  background: var(--accent-soft);
  border-radius: 22px;
  padding: 36px;
  display: flex;
  flex-direction: column;
}
.quote-card .mark {
  font-size: 3rem;
  color: var(--accent);
  line-height: 0;
  display: block;
  margin-bottom: 20px;
}
.quote-card blockquote {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.5;
  flex: 1;
}
.quote-card .by {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.quote-card .av {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  background: var(--primary);
}
.quote-card .by strong {
  display: block;
  color: var(--primary-dark);
}
.quote-card .by small {
  color: var(--muted);
}

/* CTA */
.cta {
  background: var(--primary-dark);
  color: #fff;
  text-align: center;
}
.cta h2 {
  color: #fff;
}
.cta p {
  color: #b7c7d4;
  max-width: 620px;
  margin: 0 auto 30px;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 999px;
  transition: background 0.2s;
}
.btn:hover {
  background: #00a88e;
}

footer {
  background: #1e282d;
  color: #9baab0;
  padding: 44px 0;
  font-size: 0.9rem;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
footer a {
  color: #9baab0;
  text-decoration: none;
}
footer a:hover {
  color: var(--accent);
}
footer strong {
  color: #fff;
  display: block;
  margin-bottom: 6px;
}

@media (max-width: 860px) {
  .cases,
  .quotes {
    grid-template-columns: 1fr;
  }
  .nav a:not(.btn-sm) {
    display: none;
  }
  section {
    padding: 56px 0;
  }
  .hero {
    padding: 70px 0 60px;
  }
}
