/* ============================================
   KARRIERE-SEITE — nur Overrides/Ergänzungen
   ============================================ */

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 50% 0%, rgba(31, 138, 118, 0.16), transparent 60%), var(--navy-950);
}

.page-hero-inner {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
  padding: 5rem 0 6rem;
  text-align: center;
}

.page-hero-inner p.lead {
  max-width: 36rem;
  margin: 1.25rem auto 0;
}

.page-hero-inner .btn {
  margin-top: 2rem;
}

/* application models */

.models-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

@media (min-width: 768px) {
  .models-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.models-grid .card h3 {
  margin-top: 1.25rem;
  font-size: 1.125rem;
}

.models-grid .card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* open roles */

.roles-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.025);
}

.roles-grid-featured {
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
  max-width: 58rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .roles-grid-featured {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .role-card-initiative {
    grid-column: 1 / -1;
  }
}

.role-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.role-card:hover {
  transform: translateY(-2px);
}

.role-card-featured {
  border: 1px solid rgba(31, 138, 118, 0.35);
  background: linear-gradient(to bottom right, rgba(31, 138, 118, 0.1), rgba(255, 255, 255, 0.55));
}

.role-card-featured:hover {
  border-color: rgba(31, 138, 118, 0.6);
}

.role-card-initiative {
  border: 1px dashed var(--border-soft);
  background: rgba(255, 255, 255, 0.5);
  justify-content: space-between;
}

.role-card-initiative:hover {
  border-color: rgba(43, 36, 26, 0.3);
}

.role-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.role-card .title {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
}

.role-remote-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-pale);
  background: rgba(209, 145, 44, 0.14);
  border: 1px solid rgba(209, 145, 44, 0.4);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.65rem;
}

.role-meta {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
  font-size: 0.8125rem;
  color: var(--text-muted-2);
}

.role-desc {
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  flex-grow: 1;
}

.role-description {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.role-description-toggle {
  width: 100%;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  text-align: left;
}

.role-description-icon {
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.2s ease;
}

.role-description.open .role-description-icon {
  transform: rotate(45deg);
  color: var(--blue-light);
}

.role-description-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.role-description-content {
  padding-top: 0.85rem;
}

.role-description-content p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted-2);
  margin-bottom: 0.85rem;
}

.role-description-content ul {
  margin: 0 0 0.85rem 0;
  padding-left: 1.2rem;
  list-style: disc;
}

.role-description-content li {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted-2);
  margin-bottom: 0.35rem;
}

.role-description-content strong {
  color: var(--text);
}

.role-cta {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue-pale);
}

.role-card-initiative .role-cta {
  color: var(--text-muted-2);
}

.role-arrow {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.role-card:hover .role-arrow {
  transform: translateX(3px);
}

/* application format tabs */

.format-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 640px) {
  .format-tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.format-tab {
  flex: 1;
  min-width: 9rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-muted-2);
  padding: 0.85rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.format-tab.active {
  border-color: var(--blue-light);
  background: rgba(31, 138, 118, 0.12);
  color: var(--text);
}

.format-panel {
  display: none;
}

.format-panel.active {
  display: block;
}

.format-soon {
  border-radius: 1rem;
  border: 1px dashed var(--border-soft);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.format-soon strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

/* ---------- Video-/Voice-Recorder ---------- */

.recorder {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
  padding: 1.5rem;
}

.recorder-preview {
  position: relative;
  border-radius: 0.85rem;
  overflow: hidden;
  background: var(--navy-900);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recorder-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.recorder-video.active {
  display: block;
}

.recorder-video.active ~ .recorder-placeholder {
  display: none;
}

.recorder-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
  padding: 1rem;
}

.recorder-preview-audio {
  aspect-ratio: unset;
  flex-direction: column;
  gap: 1rem;
  padding: 2.5rem 1rem;
}

.recorder-preview-audio .recorder-placeholder {
  position: static;
}

.recorder-pulse {
  height: 3.5rem;
  width: 3.5rem;
  border-radius: 50%;
  background: rgba(31, 138, 118, 0.18);
  border: 2px solid rgba(31, 138, 118, 0.4);
  display: none;
}

.recorder-pulse.active {
  display: block;
  animation: pulse-glow 1.2s ease-in-out infinite;
}

.recorder-audio-playback {
  width: 100%;
}

.recorder-timer {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.recorder-hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.recorder-controls {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.recorder-error {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: #8f3320;
  display: none;
}

.recorder-error.visible {
  display: block;
}

/* faq */

.faq-section {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.02);
}

.faq-list {
  max-width: 44rem;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--navy-900);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: rgba(31, 138, 118, 0.4);
}

.faq-question {
  width: 100%;
  cursor: pointer;
  background: none;
  border: none;
  padding: 1.1rem 1.25rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.faq-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--blue-light);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}
