/* =========================================
   KARRIERE (karriere.html)
   ========================================= */
:root {
  --job-primary: #1e293b;
  --job-accent: #00b0ff;
  --job-bg: #f8fafc;
  --job-card-bg: #ffffff;
  --job-text: #475569;
}

body {
  font-family: inherit;
}

main {
  display: block;
  padding-top: var(--header-height-desktop);
}

.career-wrapper-outer {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 80px 0;
}

.career-section {
  width: 100%;
  max-width: 1280px;
  padding: 0 20px;
}

.career-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
}

.career-title {
  font-size: 2.5rem;
  color: var(--job-primary);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 15px 0;
}

.career-desc {
  font-size: 1.1rem;
  color: var(--job-text);
  line-height: 1.6;
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  width: 100%;
}

.job-card {
  background: var(--job-card-bg);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 35px 30px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.job-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 176, 255, 0.15);
  border-color: var(--job-accent);
}

.job-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.job-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 176, 255, 0.1);
  color: var(--job-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.job-icon svg {
  width: 24px;
  height: 24px;
}

.job-type-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #f1f5f9;
  color: #475569;
  padding: 6px 12px;
  border-radius: 50px;
}

.job-headline {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--job-primary);
  margin: 0 0 15px 0;
  line-height: 1.4;
}

.job-short-desc {
  font-size: 0.95rem;
  color: var(--job-text);
  line-height: 1.5;
  margin-bottom: 25px;
  flex-grow: 1;
}

.job-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  background-color: transparent;
  border: 2px solid #e2e8f0;
  color: var(--job-primary);
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s;
  cursor: pointer;
  font-size: 1rem;
}

.job-btn:hover,
.job-btn:focus-visible {
  background-color: var(--job-accent);
  border-color: var(--job-accent);
  color: #ffffff;
}

/* --- MODAL --- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(5px);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 600px;
  padding: 40px;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: slideUpModal 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.close-modal svg {
  width: 18px;
  height: 18px;
}

.close-modal:hover,
.close-modal:focus-visible {
  background: #e2e8f0;
  color: #ef4444;
  transform: rotate(90deg);
}

.modal-title {
  margin: 10px 0 5px 0;
  font-size: 1.8rem;
  color: var(--job-primary);
}

.modal-subtitle {
  font-size: 1rem;
  color: var(--job-accent);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.form-group {
  margin-bottom: 15px;
  width: 100%;
}

.form-row-split {
  display: flex;
  gap: 15px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
}

.form-input {
  width: 100%;
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  box-sizing: border-box;
  font-size: 1rem;
  background: #f8fafc;
}

.form-input:focus {
  outline: none;
  border-color: var(--job-accent);
  background: white;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--job-accent);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 20px;
  box-shadow: 0 5px 15px rgba(0, 176, 255, 0.3);
}

.submit-btn:hover,
.submit-btn:focus-visible {
  background: #0284c7;
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@keyframes slideUpModal {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .career-wrapper-outer {
    padding: 40px 0;
  }

  .career-title {
    font-size: 2rem;
  }

  .job-grid {
    grid-template-columns: 1fr;
  }

  .form-row-split {
    flex-direction: column;
    gap: 0;
  }

  .modal-content {
    padding: 30px 20px;
    margin-top: 40px;
    max-height: 85vh;
  }

  .close-modal {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
  }
}
