/* ==========================================================================
   Marketingberatung Bodo Broeker — leistungen.css
   Leistungen page: Service Showcase Cards, Philosophy, Certifications
   ========================================================================== */

/* ==========================================================================
   SERVICES SHOWCASE — Bouncy cards matching homepage pillar style
   ========================================================================== */
.services {
  padding: 0 0 80px;
  background: var(--white);
}

.services__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Row grid */
.services__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.services__row:last-child {
  margin-bottom: 0;
}

/* Card base */
.services__card {
  position: relative;
  min-height: 440px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transition: transform .25s var(--ease);
  will-change: transform;
}

.services__card:hover {
  transform: scale(.97) rotate(-1deg);
}

/* Watermark number */
.services__watermark {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 8rem;
  font-weight: 900;
  color: rgba(0,0,0,.035);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Card title — centered, sits above the panel */
.services__card-title {
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--dark);
  position: relative;
  z-index: 1;
  padding-top: 8px;
}

/* Sliding gradient panel */
.services__panel {
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  top: 80px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(135deg, var(--panel-from, #862633), var(--panel-to, #6d1e2a));
  padding: 28px 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .25s var(--ease);
}

.services__card:hover .services__panel {
  transform: translateY(-6px) rotate(1deg);
}

/* Panel icon */
.services__panel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

.services__panel-icon svg {
  width: 22px;
  height: 22px;
}

/* Panel subtitle (bold line) */
.services__panel-subtitle {
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.5;
  opacity: .95;
}

/* Panel description */
.services__panel-text {
  font-size: .8125rem;
  font-weight: 400;
  line-height: 1.7;
  opacity: .85;
}

/* Panel tags */
.services__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.services__tags span {
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  transition: background .2s var(--ease);
}

.services__tags span:hover {
  background: rgba(255,255,255,.25);
}

/* Panel CTA arrow */
.services__panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  margin-top: auto;
}

.services__panel-cta svg {
  transition: transform .25s var(--ease);
}

.services__card:hover .services__panel-cta svg {
  transform: translateX(4px);
}

/* CTA card */
.services__card--cta {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.services__card--cta .services__panel {
  top: 55%;
}

/* Desktop: 12-col asymmetric layout */
@media (min-width: 768px) {
  .services__row {
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-bottom: 20px;
  }

  .services__card--sm { grid-column: span 5; }
  .services__card--lg { grid-column: span 7; }

  .services__card {
    min-height: 480px;
  }

  .services__panel {
    padding: 32px 28px;
  }

  .services__panel-text {
    font-size: .875rem;
  }

  .services__tags span {
    font-size: .6875rem;
    padding: 6px 14px;
  }
}

/* ==========================================================================
   PHILOSOPHY
   ========================================================================== */
.philosophy {
  padding: 80px 0;
}

.philosophy__inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.philosophy__rule {
  border: none;
  height: 1px;
  background: var(--wine);
  opacity: .2;
  width: 80px;
  margin: 0 auto;
}

.philosophy__quote {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.7;
  color: var(--dark);
  padding: 32px 0;
  letter-spacing: -.01em;
}

/* ==========================================================================
   CERTIFICATIONS
   ========================================================================== */
.certifications {
  padding: 64px 0 80px;
}

.certifications__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.certifications__card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.certifications__card:hover {
  border-color: rgba(134,38,51,.15);
  box-shadow: 0 4px 20px rgba(134,38,51,.04);
}

.certifications__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--wine-light);
  color: var(--wine);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.certifications__title {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.certifications__desc {
  font-size: .8125rem;
  color: var(--text2);
  line-height: 1.7;
}

/* ==========================================================================
   PROCESS TIMELINE
   ========================================================================== */
.process__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.process__line {
  position: absolute;
  top: 22px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.process__line-fill {
  height: 100%;
  width: 0;
  background: var(--wine);
  transition: width 1.2s var(--ease-out);
}

.process__line-fill.animate {
  width: 100%;
}

.process__step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: var(--white);
  color: var(--text3);
  transition: border-color .4s var(--ease-out), color .4s var(--ease-out);
}

.process__step.visible .process__icon {
  border-color: var(--wine);
  color: var(--wine);
}

.process__step-title {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.process__step-desc {
  font-size: .8125rem;
  color: var(--text2);
  line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 768px) {
  .certifications__grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .services__card {
    min-height: 380px;
  }

  .services__watermark {
    font-size: 5rem;
  }

  .services__card-title {
    font-size: 1.5rem;
  }

  .services__panel {
    top: 64px;
    padding: 20px 16px;
    gap: 8px;
  }

  .services__panel-subtitle {
    font-size: .8125rem;
  }

  .services__panel-text {
    font-size: .75rem;
  }

  .services__tags span {
    font-size: .5625rem;
    padding: 4px 8px;
  }

  .certifications__card {
    padding: 20px 16px;
  }

  .philosophy {
    padding: 48px 0;
  }

  .philosophy__quote {
    padding: 24px 0;
    font-size: 1.0625rem;
  }

  .process__timeline {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 300px;
  }

  .process__line {
    display: none;
  }
}

@media (min-width: 1280px) {
  .services__card {
    min-height: 520px;
  }

  .services__panel {
    padding: 36px 32px;
    gap: 14px;
  }

  .services__panel-subtitle {
    font-size: 1rem;
  }

  .services__panel-text {
    font-size: .9375rem;
  }

  .services__tags span {
    font-size: .75rem;
    padding: 7px 16px;
  }
}