/* =========================================
   TOPTIER Agency – leistungen.css
   Page-specific styles for leistungen.html
   Extends: style.css
========================================= */

/* ─── PAGE HERO ─────────────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--space-section-sm) + 72px); /* 72px = nav height */
  padding-bottom: var(--space-section-sm);
  background: var(--color-bg);
  text-align: center;
}

.page-hero__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-hero__headline {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text-h);
}

.page-hero__sub {
  font-size: 1.1rem;
  color: var(--color-text-body);
  max-width: 560px;
  line-height: 1.7;
}

/* ─── LEISTUNG SECTIONS ─────────────────────────────────── */
.leistung {
  padding: var(--space-section) 0;
}

.leistung--light {
  background: var(--color-bg);
}

.leistung--white {
  background: var(--color-bg-white);
}

.leistung__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.leistung__grid--reverse .leistung__content {
  order: 2;
}

.leistung__grid--reverse .leistung__visual {
  order: 1;
}

.leistung__number {
  font-size: 5rem;
  font-weight: 900;
  color: var(--color-border);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  user-select: none;
}

.leistung__headline {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-text-h);
  line-height: 1.15;
  margin: 12px 0 20px;
}

.leistung__text {
  font-size: 1rem;
  color: var(--color-text-body);
  line-height: 1.75;
  margin-bottom: 14px;
}

.leistung__text:last-of-type {
  margin-bottom: 24px;
}

/* Checklist */
.leistung__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.leistung__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--color-text-h);
  font-weight: 500;
}

.leistung__list li svg {
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Visual column */
.leistung__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ─── PILL VARIANTS ─────────────────────────────────────── */
.pill--blue {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.pill--light {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}

.pill--xs {
  font-size: 0.7rem;
  padding: 3px 10px;
}

/* ─── PROZESSANALYSE MOCKUP (stacked cards) ─────────────── */
.leistung__card-stack {
  position: relative;
  width: 100%;
  max-width: 340px;
}

.leistung__mockup-card {
  background: var(--color-bg-white);
  border-radius: var(--r-xl);
  border: 1px solid var(--color-border);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.leistung__mockup-card--1 {
  position: relative;
  z-index: 2;
}

.leistung__mockup-card--2 {
  margin-top: 16px;
  background: var(--color-bg-dark);
  border-color: rgba(255,255,255,0.08);
}

.lm-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.lm-label--success {
  color: var(--color-success);
}

.lm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--color-text-body);
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.lm-item:last-child {
  border-bottom: none;
}

.lm-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lm-dot--red    { background: #EF4444; }
.lm-dot--orange { background: #F97316; }
.lm-dot--yellow { background: #EAB308; }

.lm-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lm-stat__value {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.lm-stat__label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

/* ─── CRM MOCKUP ────────────────────────────────────────── */
.crm-mockup {
  background: var(--color-bg-white);
  border-radius: var(--r-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  width: 100%;
  max-width: 380px;
}

.crm-mockup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}

.crm-mockup__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-h);
}

.crm-mockup__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.83rem;
  color: var(--color-text-body);
  transition: background var(--t);
}

.crm-mockup__row:hover {
  background: var(--color-bg);
}

.crm-mockup__row--head {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  background: var(--color-bg);
  padding-top: 10px;
  padding-bottom: 10px;
}

.crm-mockup__row--head:hover {
  background: var(--color-bg);
}

.crm-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.crm-badge--new   { background: var(--color-accent-light); color: var(--color-accent); }
.crm-badge--offer { background: #FEF3C7; color: #92400E; }
.crm-badge--won   { background: var(--color-success-bg); color: var(--color-success); }

.crm-mockup__footer {
  padding: 12px 20px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

/* ─── MAKE.COM MOCKUP ───────────────────────────────────── */
.make-mockup {
  background: var(--color-bg-white);
  border-radius: var(--r-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  padding: 24px;
  width: 100%;
  max-width: 380px;
}

.make-mockup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.make-mockup__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-h);
}

.make-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-success);
}

.make-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  animation: pulse-ring 2s ease infinite;
}

.make-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.make-node {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-bg);
  border-radius: var(--r-md);
  border: 1px solid var(--color-border);
  padding: 12px 14px;
}

.make-node__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: #FEE2E2;
  color: #EF4444;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.make-node__icon--purple {
  background: #F3E8FF;
  color: #9333EA;
}

.make-node__icon--green {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.make-node__icon--blue {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.make-node--trigger .make-node__icon {
  background: #FEE2E2;
  color: #EF4444;
}

.make-node__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-h);
}

.make-arrow {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  padding: 4px 0 4px 14px;
  line-height: 1;
}

.make-mockup__footer {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

/* ─── RETAINER CARD ─────────────────────────────────────── */
.retainer-card {
  background: var(--color-bg-dark);
  border-radius: var(--r-2xl);
  padding: 36px;
  width: 100%;
  max-width: 360px;
  color: #fff;
}

.retainer-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.retainer-card__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-pill);
  padding: 5px 14px;
}

.retainer-card__price {
  text-align: right;
}

.retainer-card__amount {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.retainer-card__period {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.retainer-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.retainer-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.retainer-card__list li svg {
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
}

.retainer-card__note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
}

/* ─── TOOLS SECTION ─────────────────────────────────────── */
.tools-section {
  padding: 80px 0;
  background: var(--color-bg);
}

.tools-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.tools-section__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 760px;
}

.tool-badge {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: box-shadow var(--t), transform var(--t);
}

.tool-badge:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.tool-badge__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-h);
}

.tool-badge__role {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 900px) {
  .leistung__grid,
  .leistung__grid--reverse {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .leistung__grid--reverse .leistung__content { order: 1; }
  .leistung__grid--reverse .leistung__visual  { order: 2; }

  .leistung__number {
    font-size: 3.5rem;
  }

  .leistung__visual {
    justify-content: flex-start;
  }

  .crm-mockup,
  .make-mockup,
  .retainer-card,
  .leistung__card-stack {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .page-hero__headline {
    font-size: 2rem;
  }

  .leistung {
    padding: var(--space-section-sm) 0;
  }

  .make-flow {
    gap: 2px;
  }
}
