/* --- Einheitliches, dezentes Timeline- und Karten-Design --- */

.card-company {
  color: #888;
  font-style: italic;
  margin-bottom: 0.2em;
}

/* Grundlayout */
body {
  font-family: 'Inter', Arial, sans-serif;
  background: #faf9f7;
  color: #222;
  margin: 0;
  padding: 0;
}

/* Timeline Bar mit Pfeilen auf einer Höhe */
.timeline-bar-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
  margin: 15px auto 0 auto;
  gap: 200px;
}

/* Pfeile vertikal mittig zur Timeline-Bar */
.timeline-arrow {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  font-size: 20px;
  color: #888;
  background: none;
  border: none;
  transition: background 0.2s, color 0.2s;
  margin: 0;
}
.timeline-arrow:hover {
  background: #ffffff;
  color: #222;
}
.timeline-arrow:active {
  background: #e0dedb;
}

/* Timeline Bar und Labels */
.timeline-bar-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Labels mit Spacern links und rechts für perfekte Zentrierung */
.timeline-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1000px;
  font-size: 1rem;
  color: #444;
  opacity: 0.92;
  margin-bottom: 4px;
  letter-spacing: 1px;
  font-weight: 500;
  gap: 0;
}
.timeline-labels span {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  max-width: 25%;
}

/* Timeline Bar */
.timeline-bar {
  width: 100%;
  max-width: 1000px;
  height: 8px;
  background: #f5e7ce;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
  min-width: 0;
}

/* Timeline Intervalle */
.timeline-interval {
  position: absolute;
  height: 100%;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.7;
  background: #e0dedb;
  transition: opacity 0.2s, box-shadow 0.2s, background 0.2s;
  z-index: 2;
  border: none;
}
.timeline-interval.active {
  opacity: 1;
  outline: 2px solid #bba876;
  background: #cca876 !important;
  box-shadow: 0 0 12px 2px #bba87655;
  z-index: 3;
}

/* Saudi-Arabia Timeline Interval: schwarze Border wie in der Legende */
.timeline-interval-saudi-arabia {
  border: 2px solid #000 !important;
}
.timeline-interval:hover {
  opacity: 0.95;
}

/* Timeline Interval nach Branche: nur dezente Farbe */
.timeline-interval.branche-it    { background: #A3C1DA22; }
.timeline-interval.branche-medizin { background: #F7C87333; }
.timeline-interval.branche-bildung { background: #B6E2A133; }

/* --- KEINE Kreise mehr im Timeline-Strahl! --- */

/* Karten-Container */
.permanent-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  margin-top: 18px;
  margin-bottom: 32px;
  /* Animation initial */
}
.career-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  margin-top: 18px;
  /* Animation initial */
}

/* Slide-Out/In Animation */
@keyframes slideOut {
  0% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(-40px); }
}
@keyframes slideIn {
  0% { opacity: 0; transform: translateX(40px); }
  100% { opacity: 1; transform: translateX(0); }
}
.slide-out {
  animation: slideOut 0.6s forwards;
}
.slide-in {
  animation: slideIn 0.6s forwards;
}

/* Einheitliche Karten */
.permanent-card,
.career-card {
  border: 1px solid #ddd !important;
  background: #fff !important;
  border-radius: 12px;
  min-width: 200px;
  max-width: 260px;
  padding: 18px 16px 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 4px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  color: #222;
  transition: border-color 0.2s;
  overflow: hidden;
}

.permanent-card:hover,
.career-card:hover {
  border-color: #CCA876 !important;
  background: #fff !important;
}

/* Dezenter Branchen-Streifen oben */
.permanent-card::before,
.career-card::before {
  content: '';
  display: block;
  height: 4px;
  width: 100%;
  border-radius: 12px 12px 0 0;
  position: absolute;
  top: 0; left: 0;
  opacity: 0.18;
  pointer-events: none;
}
.permanent-card.branche-it::before,
.career-card.branche-it::before { background: #A3C1DA; }
.permanent-card.branche-medizin::before,
.career-card.branche-medizin::before { background: #F7C873; }
.permanent-card.branche-bildung::before,
.career-card.branche-bildung::before { background: #B6E2A1; }
.permanent-card:not([class*="branche-"])::before,
.career-card:not([class*="branche-"])::before { background: transparent; }

/* Badges: dezente Markierung für Branche und Level */
.card-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  justify-content: center;
  align-items: center;
}
.badge {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1.5px solid #f3f2ef;
  box-shadow: none;
  opacity: 0.7;
}

.badge-branche {
  border-radius: 50%;
}

.badge-location {
  border-radius: 3px;
  width: 16px;
  height: 16px;
  display: inline-block;
  border: 1.5px solid #f3f2ef;
  opacity: 0.7;
}

.badge-branche-it           { background: #b3d1ff; }
.badge-branche-consulting   { background: #b2f2bb; }
.badge-branche-academia     { background: #ffe6a1; }
.badge-branche-logistics-quality   { background: #e0e0e0; }

.badge.active {
  box-shadow: 0 0 0 3px #f5e7ce, 0 0 0 6px #b3b3b322;
  border-color: #bba876 !important;
  opacity: 1 !important;
  z-index: 2;
  transform: scale(1.15);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}


/* Country Badges */
.badge-location-brazil        { background: #009C3B; }
.badge-location-germany       { background: #FFCE00; }
.badge-location-portugal      { background: #FF0000; }
.badge-location-angola        { background: #000000; }
.badge-location-namibia       { background: #002B6C; }
.badge-location-arabia        { background: #a1a1a1; }
.badge-location-paraguay      { background: #ff6a00; }
.badge-location-algeria       { background: #ffffff; border-color: #000000;}
.badge-location-russia        { background: #34ebde; }

/* Karten-Titel und Zusatzinfos */
.permanent-card strong,
.career-card h4 {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin: 0 0 6px 0;
}

.permanent-card small,
.career-card small {
  display: block;
  margin-top: 4px;
  font-size: 0.93rem;
  color: #444;
  font-weight: 400;
}

/* Aktive Karte: leichte Hervorhebung */
.career-card.active {
  border-color: #CCA876 !important;
  background: #f8f6f2 !important;
  font-weight: 700;
}

/* Legende */
.timeline-legend {
  margin: 32px auto 0 auto;
  padding: 16px 24px 12px 24px;
  border: none;
  border-radius: 0;
  max-width: 700px;
  font-size: 1rem;
  color: #555;
  box-shadow: none;
}

.legend-sections-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
  margin-top: 24px;
}

.legend-section {
  background: #fff;
  border: 1.5px solid #e6e4df;
  border-radius: 10px;
  padding: 16px 18px 10px 18px;
  min-width: 220px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
}

@media (max-width: 700px) {
  .legend-sections-row {
    flex-direction: column;
    gap: 12px;
  }
  .legend-section {
    min-width: 0;
    width: 100%;
  }
}

.legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.legend-list.legend-list-location {
  display: grid;
  grid-template-columns: 1 fr 1 fr;
  gap: 8px 18px;
}
.legend-list-location .legend-location-col1 {
  grid-column: 1;
}
.legend-list-location .legend-location-col2 {
  grid-column: 2;
}
.legend-title {
  font-weight: 600;
  margin-right: 8px;
}