/* =============================================================
   BRANCHEN PAGE — Intro-Stats, Branchen-Sektionen, Nav, CTA
   Seite: /branchen
   Selektoren: .branchen-*, .branche-*
   ============================================================= */

.branchen-intro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--black);
}

.branchen-intro-stat {
  padding: clamp(40px, 6vw, 72px) clamp(32px, 4vw, 56px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.branchen-intro-stat:last-child { border-right: none; }

.branchen-intro-stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
}

.branchen-intro-stat-num em {
  color: var(--gold);
  font-style: normal;
}

.branchen-intro-stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.branchen-intro-stat-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.branche-section {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  min-height: 480px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.branche-section:nth-child(even) { direction: rtl; }
.branche-section:nth-child(even) > * { direction: ltr; }

.branche-visual {
  background: var(--black);
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.branche-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
  transition: filter 0.5s ease;
}

.branche-visual:hover .branche-visual-img {
  filter: brightness(0.85);
}

.branche-visual-num {
  position: absolute;
  bottom: 32px;
  left: 36px;
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  user-select: none;
}

.branche-visual-label {
  position: absolute;
  top: 36px;
  left: 36px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}

.branche-visual-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
  display: block;
}

.branche-visual-name {
  position: absolute;
  bottom: 36px;
  right: 36px;
  left: 36px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1.1;
  text-align: right;
  word-break: break-word;
}

.branche-content {
  padding: clamp(48px, 6vw, 80px);
  background: var(--warm-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.branche-section:nth-child(even) .branche-content {
  background: var(--cool-gray);
}

.branche-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.branche-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
  display: block;
}

.branche-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 8px;
}

.branche-content h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--mid-gray);
}

.branche-sub-label {
  font-size: 0.8rem;
  color: var(--mid-gray);
  margin-bottom: 24px;
  font-weight: 400;
}

.branche-body {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.branche-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 28px 0;
}

.branche-list h4 {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 12px;
  opacity: 0.5;
}

.branche-list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.branche-list ul li {
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.branche-list ul li::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--gold);
  margin-top: 0.65em;
  flex-shrink: 0;
}

.branche-cta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  transition: gap var(--duration-base), color var(--duration-base);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  padding-bottom: 4px;
}

.branche-cta::after {
  content: '→';
  font-size: 1rem;
}

.branche-cta:hover {
  gap: 16px;
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Sticky Branchen-Nav */
.branchen-nav {
  background: var(--black);
  padding: 0 clamp(24px, 6vw, 80px);
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 72px;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.branchen-nav::-webkit-scrollbar { display: none; }

.branchen-nav a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  padding: 16px 20px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--duration-base), border-color var(--duration-base);
}

.branchen-nav a:hover,
.branchen-nav a:focus-visible {
  color: var(--white);
  border-bottom-color: var(--gold);
}

/* Abschluss-CTA */
.branchen-cta-section {
  background: var(--warm-white);
  padding: clamp(64px, 9vw, 120px) clamp(24px, 6vw, 80px);
  text-align: center;
}

.branchen-cta-text {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 36px;
}

/* CSP-Migration: ehemals style= Attribute */
.branchen-cta-label--centered {
  justify-content: center;
}

.branchen-cta-heading--constrained {
  max-width: 600px;
  margin: 0 auto 20px;
}

@media (max-width: 900px) {
  .branche-section {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .branche-section:nth-child(even) { direction: ltr; }
  .branche-visual { min-height: 220px; }
  .branche-lists { grid-template-columns: 1fr; gap: 16px; }
  .branchen-nav { top: 72px; }
}

@media (max-width: 768px) {
  .branchen-intro { grid-template-columns: 1fr; }

  .branchen-intro-stat {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .branchen-intro-stat:last-child { border-bottom: none; }
}
