/* ══════════════════════════════════════════════════════════
   ERS – Leistungen | leistungen.css
   ══════════════════════════════════════════════════════════ */

/* ─── NAV ACTIVE STATE ─────────────────────────────────── */
.nav-link-active {
  color: var(--gold) !important;
}

.nav-link-active::after {
  transform: scaleX(1) !important;
}

/* ─── BREADCRUMB ───────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--gold); }

.breadcrumb svg { opacity: 0.4; flex-shrink: 0; }

.breadcrumb span { color: var(--text-secondary); }

/* ─── PAGE HERO ────────────────────────────────────────── */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 80px;
  overflow: hidden;
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.page-hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 28px;
  overflow: hidden;
}

.page-hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* ─── PROBLEM SECTION ──────────────────────────────────── */
.problem-section {
  padding: 80px 0 100px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-intro {
  max-width: 680px;
  margin-bottom: 56px;
}

.problem-intro .section-title { text-align: left; }
.problem-intro .section-eyebrow { text-align: left; }

.problem-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-top: 16px;
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.problem-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: background 0.25s, border-left-color 0.25s;
  border-left: 3px solid transparent;
}

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

.problem-item:hover {
  background: var(--surface-2);
  border-left-color: var(--gold);
}

.problem-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(201,168,76,0.4);
}

.problem-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.problem-item strong {
  color: var(--text-primary);
  font-weight: 500;
}

.problem-result {
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.problem-result-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.problem-result-inner svg {
  stroke: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.problem-result-inner p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.problem-result-inner strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* ─── LÖSUNG / KETTE ───────────────────────────────────── */
.loesung-section {
  padding: 100px 0;
}

.kette-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 16px;
}

.kette-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.kette-step {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.kette-item:hover .kette-step {
  background: rgba(201,168,76,0.2);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201,168,76,0.15);
}

.kette-content h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.kette-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 180px;
  margin: 0 auto;
}

.kette-connector {
  flex: 0 0 auto;
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), rgba(201,168,76,0.2));
  margin-top: 27px;
  position: relative;
}

.kette-connector::after {
  content: '';
  position: absolute;
  right: -4px; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid rgba(201,168,76,0.6);
  border-right: 1px solid rgba(201,168,76,0.6);
  transform: rotate(45deg);
}

/* ─── ZWEI SEITEN ──────────────────────────────────────── */
.zwei-seiten {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.seiten-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.seite-card {
  padding: 48px 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: border-color 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}

.seite-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, rgba(201,168,76,0.3), transparent);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out-expo);
}

.seite-card:hover::before { transform: scaleX(1); }

.seite-card-accent {
  background: rgba(201,168,76,0.04);
  border-color: rgba(201,168,76,0.2);
}

.seite-card-accent::before {
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.seite-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.seite-number {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
}

.seite-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.seite-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.seite-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.seite-list li svg {
  stroke: var(--gold);
  flex-shrink: 0;
}

/* ─── ANGEBOT ──────────────────────────────────────────── */
.angebot-section {
  padding: 100px 0;
}

.angebot-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.angebot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px 52px;
  position: relative;
  overflow: hidden;
}

.angebot-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold) 40%, var(--gold-light) 60%, transparent);
}

.angebot-card::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.angebot-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.angebot-laufzeit {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.angebot-header-row h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.angebot-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.angebot-icon svg { stroke: var(--gold); }

.angebot-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.angebot-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.angebot-list li svg {
  stroke: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.angebot-btn {
  width: 100%;
  justify-content: center;
}

/* ─── UEBER CLOSING QUOTE ──────────────────────────────── */
.ueber-closing {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
  font-style: italic;
  border-left: 2px solid var(--gold);
  padding-left: 20px;
  line-height: 1.4;
}

/* ─── RESPONSIVE ───────────────────────────────────────── */
/* ─── TABLET ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .kette-wrap {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .kette-connector {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), rgba(201,168,76,0.2));
    margin-top: 0;
  }
  .kette-connector::after {
    right: -3px; bottom: -4px; top: auto;
    transform: rotate(135deg);
  }

  .seiten-grid { grid-template-columns: 1fr; }
  .angebot-card { padding: 36px 32px; }

  .loesung-section  { padding: 72px 0; }
  .zwei-seiten      { padding: 72px 0; }
  .angebot-section  { padding: 72px 0; }
}

/* ─── MOBILE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Page Hero */
  .page-hero { padding: calc(var(--nav-h) + 48px) 0 48px; }
  .page-hero-inner { padding: 0 20px; }
  .page-hero-headline { font-size: clamp(2.2rem, 9vw, 3rem); margin-bottom: 16px; }
  .page-hero-sub { font-size: 0.95rem; }

  /* Sections */
  .problem-section { padding: 60px 0; }
  .problem-section .section-container { padding: 0 20px; }
  .loesung-section  { padding: 60px 0; }
  .zwei-seiten      { padding: 60px 0; }
  .angebot-section  { padding: 60px 0; }

  .problem-intro { margin-bottom: 36px; }
  .problem-item { padding: 16px 20px; gap: 14px; }
  .problem-result { padding: 20px 20px; }

  /* Kette */
  .kette-content h4 { font-size: 1rem; }
  .kette-step { width: 44px; height: 44px; font-size: 0.95rem; }

  /* Seiten Cards */
  .seite-card { padding: 32px 24px; gap: 20px; }
  .seite-card h3 { font-size: 1.3rem; }
  .seite-list li { font-size: 0.9rem; }

  /* Angebot */
  .angebot-card { padding: 28px 20px; }
  .angebot-header-row { flex-direction: column; gap: 16px; }
  .angebot-header-row h3 { font-size: 1.4rem; }
  .angebot-btn { font-size: 0.9rem; padding: 15px 20px; }
  .angebot-list li { font-size: 0.9rem; }

  /* Über closing */
  .ueber-closing { font-size: 1.1rem; }
}

/* ─── SMALL PHONES ─────────────────────────────────────── */
@media (max-width: 390px) {
  .page-hero-headline { font-size: 2rem; }
  .seite-card { padding: 24px 20px; }
  .angebot-card { padding: 24px 16px; }
}
