/* ============================================================
   VOURÉME KARRIERE — Ergänzungen zu styles.css
   Stellenboard, Stellen-Eckdaten und „Ein Tag bei Vouréme".
   ============================================================ */

/* ---- Stellenboard (Hub) ---- */
.job-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 1.5rem 0 1rem;
}

.job-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s var(--ease-luxury), box-shadow 0.3s var(--ease-luxury), border-color 0.3s var(--ease-luxury);
}

.job-card__chip {
  align-self: flex-start;
  padding: 4px 10px;
  border: 1px solid var(--soft-gold);
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deep-bronze);
}

.subpage-content .job-card h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-dark);
}

.subpage-content .job-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-medium);
}

.job-card__more {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.85rem;
  color: var(--deep-bronze);
}

@media (hover: hover) {
  .job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(76, 58, 33, 0.12);
    border-color: var(--soft-gold);
  }
}

/* ---- Stellen-Eckdaten ---- */
.job-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 1.6rem 0 2rem;
}

.job-facts > div {
  padding: 16px 20px;
  background: var(--pearl);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
}

.job-facts dt {
  margin-bottom: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
}

.job-facts dd {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--text-dark);
}

/* ---- Ein Tag bei Vouréme ---- */
.tag-section {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1rem, 3vw, 2rem);
}

.tag-section__head {
  margin: 0 0 1.6rem;
}

.subpage-content .tag-section__head h3 { margin-top: 0; }
.subpage-content .tag-section__head p { margin-bottom: 0; }

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

.tag-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 18px;
  background: var(--rich-dark, #241c16);
  color: #fff;
}

.tag-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tag-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 14, 10, 0) 35%, rgba(20, 14, 10, 0.82) 100%);
}

.tag-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 20px 20px 22px;
}

.tag-card__num {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--champagne, #e7d3ac);
}

.subpage-content .tag-card h4 {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
}

.subpage-content .tag-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .job-board { grid-template-columns: 1fr; }
  .job-facts { grid-template-columns: 1fr; gap: 8px; }
  .job-facts > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
  }
  .job-facts dt { margin: 0; }
  .job-facts dd { font-size: 1.05rem; text-align: right; }

  /* Mobil: gleiche Wisch-Slideshow wie die Galerie auf der Startseite (script.js,
     Fortschrittsbalken, Autoplay, Swipe-Hinweis). Hier nur die Karten-Optik. */
  .tag-strip.is-slideshow > .tag-card {
    aspect-ratio: 3 / 4 !important;
    height: auto !important;
    border-radius: 4px;
    overflow: hidden;
  }

  .tag-card__body { text-align: left; padding: 22px 22px 26px; }

  /* Ankunfts-Animation und Ken Burns der aktuellen Karte wie bei der Galerie */
  .tag-card.is-current {
    animation: serviceCardArrive 0.6s var(--ease-out-expo) both;
  }
  .tag-card.is-current img {
    animation: serviceImageKenBurns 6s linear both;
  }
}

/* ---- Textheader (ohne Bild): Tippflächen und Schriftgrößen auf dem Handy ---- */
@media (max-width: 768px) {
  .page-service .subpage-header .breadcrumb,
  .page-service .subpage-header .section-label {
    font-size: 0.75rem;
  }
  .page-service .subpage-header .breadcrumb a {
    display: inline-block;
    padding: 15px 10px;
    margin: -15px -10px;
  }
}


/* ---- „Ein Tag bei Vouréme“: Desktop-Akkordeon ----
   Eine Karte ist offen (Bild groß, Text sichtbar), die anderen stehen schmal daneben.
   Hover/Fokus/Klick wechselt, solange niemand eingreift, läuft es von selbst durch. */
.tag-card__bar { display: none; }

@media (min-width: 769px) {
  .tag-strip {
    display: flex;
    gap: 12px;
    height: clamp(340px, 34vw, 420px);
  }

  .tag-card {
    flex: 1 1 0;
    min-width: 0;
    aspect-ratio: auto;
    cursor: pointer;
    outline-offset: 3px;
    transition: flex-grow 0.85s var(--ease-out-expo, cubic-bezier(0.22, 1, 0.36, 1));
  }

  .tag-card.is-active { flex-grow: 2.6; }

  .tag-card img {
    transform: scale(1.12);
    transition: transform 1.2s var(--ease-out-expo, cubic-bezier(0.22, 1, 0.36, 1));
  }
  .tag-card.is-active img { transform: scale(1); }

  /* Geschlossene Karten liegen im Schatten, die offene im Licht */
  .tag-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(20, 14, 10, 0.42);
    transition: opacity 0.8s ease;
  }
  .tag-card.is-active::before { opacity: 0; }
  .tag-card::after { z-index: 1; }

  .tag-card__body { z-index: 2; }

  .tag-card__body { padding: 16px 14px 18px; }

  .subpage-content .tag-card h4 {
    font-size: 0.98rem;
    transition: font-size 0.6s ease;
  }
  .subpage-content .tag-card.is-active h4 { font-size: 1.45rem; }

  .tag-card__text {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.7s ease, opacity 0.45s ease;
  }
  .tag-card.is-active .tag-card__text {
    max-height: 8em;
    opacity: 1;
    transition: max-height 0.7s ease 0.1s, opacity 0.6s ease 0.35s;
  }
  .subpage-content .tag-card.is-active p { font-size: 0.88rem; max-width: 34ch; }

  /* Fortschrittslinie der offenen Karte (nur beim Selbstlauf) */
  .tag-strip.is-autoplay .tag-card.is-active .tag-card__bar {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    height: 3px;
    background: var(--soft-gold);
    transform-origin: left;
    animation: tagBar 5s linear forwards;
  }
}

@keyframes tagBar {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .tag-card,
  .tag-card img,
  .tag-card::before,
  .tag-card__text { transition: none; }
  .tag-strip.is-autoplay .tag-card.is-active .tag-card__bar { animation: none; }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .tag-card.is-current,
  .tag-card.is-current img {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
