/* =============================================================
   company.css – Unterseite "Unternehmen" für ImmoFinaPro
   Ergänzt index.css, überschreibt nichts.
   ============================================================= */

/* ── HERO PANORAMA ─────────────────────────────────────────── */
.company-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Panorama-Streifen: 4:1 – anpassen je nach echtem Foto */
  aspect-ratio: 4 / 1;
  min-height: 260px;
  max-height: 480px;
}

.company-hero-image-wrap {
  position: absolute;
  inset: 0;
}

.company-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  /* kein transform – kein Parallax */
  background: linear-gradient(135deg, #011f52 0%, #013485 50%, #0358b8 100%);
}

/* Gradient-Overlay – von rechts abdunkeln damit Text lesbar */
.company-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    270deg,
    rgba(1, 25, 68, 0.82) 0%,
    rgba(1, 52, 133, 0.55) 50%,
    rgba(1, 52, 133, 0.10) 100%
  );
}

.company-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;        /* vertikal zentriert */
  justify-content: flex-end;  /* horizontal rechts */
}

.company-hero-text {
  max-width: 560px;
  text-align: right;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #90c8f4;
  margin-bottom: 14px;
}

.company-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 3.4rem);
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 0 3px rgba(14,60,120,0.9), 0 0 18px rgba(30,90,180,0.5);
  margin-bottom: 14px;
}

.company-hero-sub {
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  max-width: 520px;
}

/* ── INTRO / GESCHICHTE ─────────────────────────────────────── */
.co-intro {
  background: var(--bg-white);
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.co-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}

/* Timeline / Milestones */
.co-intro-milestones {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.milestone {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 36px;
}

/* Verbindungslinie */
.milestone:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 36px;
  top: 46px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-color), var(--accent-light));
}

.milestone-year {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: var(--main-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(1, 52, 133, 0.25);
  position: relative;
  z-index: 1;
}

.milestone-body {
  padding-top: 18px;
}

.milestone-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 5px;
}

.milestone-text {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.65;
}

/* ── WERTE ──────────────────────────────────────────────────── */
.co-values {
  background: var(--bg-light);
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.co-values-header {
  margin-bottom: 48px;
}

.co-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.value-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: all 0.3s;
  cursor: default;
}

.value-card:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.value-icon {
  width: 50px;
  height: 50px;
  background: var(--main-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.value-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.value-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 10px;
}

.value-text {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ── TEAM ───────────────────────────────────────────────────── */
.co-team {
  background: var(--bg-white);
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}

.team-card:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Featured card (CEO) – spans full width visually more prominent */
.team-card--featured {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.team-card--featured .team-img {
  width: 340px;
  min-width: 340px;
  height: 320px;
}

.team-card--featured .team-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-card--featured .team-name {
  font-size: 1.55rem;
}

.team-img {
  position: relative;
  width: 100%;
  height: auto;
  background: linear-gradient(135deg, #c8dff5 0%, #d8e8f4 100%);
  overflow: hidden;
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Fallback Platzhalter */
.team-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--accent-color);
  background: linear-gradient(135deg, #d8e8f5 0%, #c0d6ec 100%);
  /* Zeige Platzhalter nur wenn Bild fehlt */
  z-index: 0;
}

.team-img img {
  position: relative;
  z-index: 1;
}

/* Wenn Bild lädt oder fehlt → Platzhalter sichtbar */
.team-img img[src=""],
.team-img img:not([src]) {
  display: none;
}

.team-body {
  padding: 22px 24px;
}

.team-role {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 6px;
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--main-color);
  margin-bottom: 10px;
  font-weight: 400;
}

.team-bio {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 16px;
}

.team-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-light);
  color: var(--main-color);
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

/* ── STATS STREIFEN ─────────────────────────────────────────── */
.co-stats {
  background: var(--main-color);
  padding: 60px 0;
}

.co-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.co-stat {
  text-align: center;
  padding: 20px 0;
  position: relative;
}

.co-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.co-stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 8px;
}

.co-stat-label {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ── KARRIERE ───────────────────────────────────────────────── */
.co-career {
  background: var(--bg-light);
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.co-career-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.co-career-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
  background: var(--accent-light);
}

.co-career-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.outline-button-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: transparent;
  color: var(--main-color);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: 1.5px solid var(--main-color);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}

.outline-button-light:hover {
  background: var(--main-color);
  color: #fff;
}

.outline-button-light img {
  width: 18px;
  height: 18px;
  display: inline-block;
}

/* ── NETZWERK ───────────────────────────────────────────────── */
.co-network {
  background: var(--main-color);
  padding: 80px 0;
}

.co-network-header {
  margin-bottom: 52px;
}

.co-network-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.network-item {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: all 0.25s;
  cursor: default;
}

.network-item:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.network-flag {
  font-size: 2.2rem;
  margin-bottom: 10px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.network-country {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}

.network-detail {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* ── KONTAKT CTA ────────────────────────────────────────────── */
.co-cta {
  background: var(--bg-white);
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.co-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.co-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  color: var(--main-color);
  margin-bottom: 8px;
  line-height: 1.2;
}

.co-cta-sub {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.65;
  max-width: 500px;
}

.co-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .co-values-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-card--featured {
    grid-column: 1 / -1;
    flex-direction: row;
  }
  .co-network-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .company-hero { aspect-ratio: 3 / 1; }
  .co-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .co-career-layout { grid-template-columns: 1fr; gap: 36px; }
  .co-career-image { height: 280px; }
  .co-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .co-stat:nth-child(2)::after { display: none; }
  .co-stat { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .co-stat:nth-child(3),
  .co-stat:nth-child(4) { border-bottom: none; }
  .co-network-grid { grid-template-columns: repeat(2, 1fr); }
  .co-cta-inner { flex-direction: column; align-items: flex-start; }
  .team-card--featured {
    flex-direction: column;
  }
  .team-card--featured .team-img {
    width: 100%;
    min-width: unset;
    height: 240px;
  }
  .team-card--featured .team-body {
    padding: 22px 24px;
  }
}

@media (max-width: 640px) {
  .company-hero { aspect-ratio: 2.5 / 1; min-height: 200px; }
  .company-hero-title { font-size: 1.5rem; }
  .co-values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .co-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .co-network-grid { grid-template-columns: repeat(2, 1fr); }
  .milestone-year { width: 56px; height: 56px; font-size: 0.85rem; }
  .milestone:not(:last-child)::after { left: 27px; }
}