/* ================================================
   KARRIERE PAGE STYLES
   Добавить в main.css или подключить отдельно
   ================================================ */

/* ================================================
   HERO SECTION
   ================================================ */
.heronew.karriere {
  padding: 0 !important;
}

.heronew.karriere .lead {
  max-width: 540px;
}

/* ================================================
   STELLEN SECTION (Вакансии)
   ================================================ */
.karriere-stellen {
  padding: 80px 0;
  background: #f8fafc;
}

.karriere-stellen .kicker1 {
  margin-bottom: 8px;
}

.karriere-stellen .section-title {
  margin-bottom: 40px;
}

.stellen-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
 
}

/* ================================================
   STELLE CARD (Карточка вакансии)
   ================================================ */
.stelle-card {
  position: relative;
  background: #fff;
  /*border-radius: 12px;*/
  box-shadow: 0 4px 20px rgba(26, 49, 95, 0.08);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.stelle-card:not(.coming-soon):hover {
  box-shadow: 0 8px 32px rgba(26, 49, 95, 0.14);
}

.stelle-card.coming-soon {
  opacity: 0.6;
}

.stelle-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  padding-bottom: 56px; /* Platz für Toggle unten */
  cursor: pointer;}

.stelle-card.coming-soon .stelle-header {
  cursor: default;
}

.stelle-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), #2a4a7f);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stelle-info {
  flex: 1;
}

.stelle-info h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brand);
  margin: 0 0 4px;
}

.stelle-meta {
  font-size: 0.9rem;
  color: var(--muted);
}



/* Quick-Aufgaben (sichtbarer Teil) */
.stelle-quick {
  margin-top: 14px;
}

.stelle-quick h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--brand);
}

.stelle-quick ul {
  margin: 0;
  color: #1f2937;
  font-size: 0.95rem;
}


.stelle-quick li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.5;
}

.stelle-quick li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Foto rechts (nur bei Karten mit .has-photo) */
.stelle-card.has-photo .stelle-header {
  padding-right: 0; /* bis zum rechten Rand */
}

.stelle-card.has-photo .stelle-info {
  padding-right: 300px; /* Platz für Foto */
}

.stelle-card.has-photo .stelle-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  overflow: hidden;
}

.stelle-card.has-photo .stelle-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile: Foto unterhalb */
@media (max-width: 900px) {
  .stelle-card.has-photo .stelle-header {
    padding-right: 24px;
    flex-wrap: wrap;
  }

  .stelle-card.has-photo .stelle-info {
    padding-right: 0;
    flex-basis: 100%;
  }

  .stelle-card.has-photo .stelle-photo {
    position: static;
    width: 100%;
    height: 180px;
    margin-top: 12px;
    border-radius: 12px;
  }
}
.stelle-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--brand);
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  position: absolute;
  left: 50%;
  bottom: 16px; /* нижняя часть ВСЕЙ карточки */
  transform: translateX(-50%);
  z-index: 10;
}

.stelle-toggle i {
  transition: transform 0.3s ease;
}

.stelle-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}
.stelle-toggle i {
  transition: transform 0.3s ease;
}

.stelle-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.stelle-toggle:hover {
  background: #e2e8f0;
}

.stelle-toggle[aria-expanded="true"] {
  background: var(--brand);
  color: #fff;
}

/* Stelle Body (раскрывающийся блок) */
.stelle-body {
  padding-bottom: 72px; /* Platz für Toggle unten */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 24px;
}

.stelle-card.open .stelle-body {
  max-height: 800px;
  padding: 0 24px 24px;
}

.stelle-desc h4 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--brand);
  margin: 20px 0 10px;
}

.stelle-desc h4:first-child {
  margin-top: 0;
}

.stelle-desc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stelle-desc li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.5;
}

.stelle-desc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.btn-bewerben {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-bewerben:hover {
  background: #2a4a7f;
  transform: translateY(-2px);
}

/* ================================================
   INITIATIV SECTION (Инициативное резюме)
   ================================================ */
.initiativ-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--brand) 0%, #2a4a7f 100%);
  color: #fff;
}

.initiativ-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.initiativ-text .kicker1 {
  color: rgba(255, 255, 255, 0.7);
}

.initiativ-text .section-title {
  color: #fff;
}

.initiativ-text .section-title .accent {
  color: #7db3ff;
}

.initiativ-text .copy {
  color: rgba(255, 255, 255, 0.85);
  max-width: 580px;
}

.btn-initiativ {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-initiativ:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* ================================================
   MODAL OVERLAY
   ================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 49, 95, 0.85);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
}

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

.modal-content {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  font-size: 1.5rem;
  color: var(--brand);
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-close:hover {
  background: #e2e8f0;
}

.modal-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--brand);
  margin: 0 0 4px;
}

.modal-subtitle {
  font-size: 1.1rem;
  color: var(--accent);
  margin: 0 0 30px;
  font-weight: 500;
}

/* ================================================
   BEWERBUNG FORM (Форма заявки)
   ================================================ */
.bewerbung-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231A315F' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ================================================
   FILE UPLOAD
   ================================================ */
.file-upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.file-upload-zone:hover,
.file-upload-zone.dragover {
  border-color: var(--accent);
  background: #f0f7ff;
}

.file-upload-zone i {
  font-size: 2.5rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

.file-upload-zone p {
  margin: 0;
  color: #64748b;
  font-family: var(--font-head);
}

.file-browse {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

.file-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 0.9rem;
}

.file-item i {
  color: #ef4444;
}

.file-item .file-name {
  flex: 1;
  color: var(--brand);
  font-family: var(--font-head);
}

.file-item .file-size {
  color: #64748b;
  font-size: 0.8rem;
}

.file-item .file-remove {
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
}

.file-item .file-remove:hover {
  color: #dc2626;
}

.file-hint {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 8px;
}

/* ================================================
   CHECKBOX
   ================================================ */
.checkbox-group {
  margin-top: 10px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.5;
}

.checkbox-label input {
  display: none;
}

.checkmark {
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
  margin-top: 2px;
}

.checkbox-label input:checked + .checkmark {
  background: var(--brand);
  border-color: var(--brand);
}

.checkbox-label input:checked + .checkmark::after {
  content: "✓";
  color: #fff;
  font-size: 0.8rem;
  font-weight: bold;
}

.checkbox-text {
  color: #4a5568;
  font-family: var(--font-head);
}

.checkbox-text a {
  color: var(--accent);
  text-decoration: underline;
}

.checkbox-text a:hover {
  color: var(--brand);
}

/* ================================================
   DSGVO INFO BOX
   ================================================ */
.dsgvo-info {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: #f0f7ff;
  border-radius: 10px;
  border-left: 4px solid var(--accent);
}

.dsgvo-info i {
  color: var(--accent);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.dsgvo-info p {
  margin: 0;
  font-size: 0.85rem;
  color: #4a5568;
  line-height: 1.5;
  font-family: var(--font-head);
}

.dsgvo-info strong {
  color: var(--brand);
}

/* ================================================
   SUBMIT BUTTON
   ================================================ */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-submit:hover {
  background: #2a4a7f;
  transform: translateY(-2px);
}

.btn-submit:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

/* Honeypot (скрытое поле) */
.hp-field {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}

/* ================================================
   SUCCESS MODAL
   ================================================ */
.success-content {
  text-align: center;
  max-width: 420px;
  padding: 50px 40px;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #34d399);
  display: grid;
  place-items: center;
}

.success-icon i {
  font-size: 2.5rem;
  color: #fff;
}

.success-content h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--brand);
  margin: 0 0 12px;
}

.success-content p {
  color: #4a5568;
  margin: 0 0 8px;
  font-family: var(--font-head);
}

.success-ref {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 16px !important;
}

.success-ref span {
  font-weight: 600;
  color: var(--brand);
}

.btn-close-success {
  margin-top: 24px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-close-success:hover {
  background: #2a4a7f;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 980px) {
  .initiativ-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .initiativ-text .copy {
    max-width: 100%;
  }

  .initiativ-form-wrap {
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .karriere-stellen {
    padding: 60px 0;
  }

  .initiativ-section {
    padding: 60px 0;
  }

  .form-row.two-col {
    grid-template-columns: 1fr;
  }

  .modal-content {
    padding: 24px;
    margin: 10px;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .stelle-header {
    flex-wrap: wrap;
  }

  .stelle-toggle {
    margin-left: auto;
  }

  .stelle-info h3 {
    font-size: 1.1rem;
  }

  .btn-bewerben,
  .btn-initiativ {
    width: 100%;
    justify-content: center;
  }

  .file-upload-zone {
    padding: 24px 16px;
  }

  .file-upload-zone i {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .stelle-header {
    padding: 16px;
  }

  .stelle-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .stelle-card.open .stelle-body {
    padding: 0 16px 16px;
  }

  .modal-content {
    padding: 20px 16px;
  }

  .success-content {
    padding: 30px 20px;
  }
}
