/* =============================================================
   PIZZERIA POST — Jobs-Seite
   ============================================================= */

/* ── Seiten-Grundlage ──────────────────────────────────────── */
.jobs-page .site-header {
  background: #0f0f0f;
  border-bottom-color: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.jobs-page #main-content {
  padding-top: 86px;
}

@media (max-width: 1265px) {
  .jobs-page #main-content {
    padding-top: 92px;
  }
}

/* ── HERO ───────────────────────────────────────────────────── */
.jobs-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 72px;
  overflow: hidden;
  margin-top: 86px;
}

@media (max-width: 1265px) {
  .jobs-hero {
    margin-top: 92px;
  }
}

.jobs-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?w=1600&q=75&fit=crop');
  background-size: cover;
  background-position: center 45%;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.jobs-hero:hover .jobs-hero-bg {
  transform: scale(1.0);
}

.jobs-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 8, 5, 0.96) 0%,
    rgba(10, 8, 5, 0.65) 45%,
    rgba(10, 8, 5, 0.25) 100%
  );
}

.jobs-hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.jobs-eyebrow {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 14px;
}

.jobs-hero-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 600;
  color: #f0f0f0;
  line-height: 1.0;
  margin: 0 0 18px;
}

.jobs-hero-content p {
  font-size: 1rem;
  color: rgba(240, 232, 216, 0.62);
  line-height: 1.65;
  margin: 0 0 32px;
  max-width: 500px;
}

.jobs-hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* ── SECTION HEADER ────────────────────────────────────────── */
.jobs-section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.jobs-section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.jobs-section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* ── JOB CARDS GRID ────────────────────────────────────────── */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.job-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.65rem 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.job-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38);
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}

.job-badges {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.job-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 50px;
}

.job-badge--green {
  background: rgba(52, 168, 83, 0.15);
  color: #5ecb7c;
  border: 1px solid rgba(52, 168, 83, 0.25);
}

.job-badge--neutral {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.job-card-icon {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.job-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  font-weight: 600;
  color: #f5ead8;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.job-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.62;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.job-card-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
  padding: 0;
}

.job-card-details li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.38);
}

.job-card-details li i {
  width: 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.job-card-btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.job-card-btn i {
  transition: transform var(--ease);
}

.job-card-btn:hover i {
  transform: translateX(4px);
}

/* ── STELLENGESUCHE / SPONTANBEWERBUNG ─────────────────────── */
.jobs-spontan-inner {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.jobs-spontan-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 0.4rem;
}

.jobs-spontan-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 0.65rem;
}

.jobs-spontan-text p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 1.4rem;
}

.jobs-spontan-text strong {
  color: rgba(255, 255, 255, 0.7);
}

/* ── WARUM WIR (PERKS) ─────────────────────────────────────── */
.jobs-perks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.jobs-perk {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  text-align: center;
  transition: transform var(--ease), border-color var(--ease);
}

.jobs-perk:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
}

.jobs-perk-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 auto 1rem;
}

.jobs-perk h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: #f5ead8;
  margin-bottom: 0.5rem;
}

.jobs-perk p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.58;
  margin: 0;
}

/* ── BEWERBUNGSFORMULAR ────────────────────────────────────── */
.jobs-form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.jobs-form-intro h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  margin-bottom: 0.65rem;
}

.jobs-form-intro p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.6;
  margin-bottom: 1.6rem;
}

.jobs-contact-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.jobs-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: rgba(240, 232, 216, 0.55);
}

.jobs-contact-list li i {
  color: rgba(255, 255, 255, 0.3);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.jobs-contact-list a {
  color: rgba(240, 232, 216, 0.55);
  transition: color var(--ease);
}

.jobs-contact-list a:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Formular ──────────────────────────────────────────────── */
.jobs-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.75rem;
  box-shadow: var(--shadow-soft);
}

.jobs-form-error {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #f5e8e8;
  background: rgba(180, 60, 60, 0.35);
  border: 1px solid rgba(220, 100, 100, 0.45);
  border-radius: var(--radius-sm);
}

.jobs-form-error[hidden] {
  display: none !important;
}

.jobs-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}

.jobs-field label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.3rem;
}

.jobs-field input,
.jobs-field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.7rem 0;
  background: transparent;
  color: var(--text);
  transition: border-color var(--ease);
}

.jobs-field input:focus,
.jobs-field textarea:focus {
  outline: none;
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

.jobs-field textarea {
  resize: vertical;
  min-height: 7rem;
}

/* Select */
.jobs-select-wrap {
  position: relative;
}

.jobs-select-wrap select {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.7rem 2rem 0.7rem 0;
  background: transparent;
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color var(--ease);
}

.jobs-select-wrap select:focus {
  outline: none;
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

.jobs-select-wrap select option {
  background: var(--surface-2);
  color: var(--text);
}

.jobs-select-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

/* Zwei Spalten */
.jobs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

/* Datei-Upload */
.jobs-file-wrap {
  position: relative;
}

.jobs-file-wrap input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.jobs-file-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  transition: background var(--ease), border-color var(--ease), color var(--ease);
  user-select: none;
}

.jobs-file-label:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.7);
}

.jobs-file-label.has-file {
  border-style: solid;
  border-color: rgba(92, 203, 124, 0.4);
  background: rgba(52, 168, 83, 0.08);
  color: #5ecb7c;
}

.jobs-file-hint {
  margin: 0.4rem 0 0;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.22);
}

/* Footer der Form */
.jobs-form-footer {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.jobs-submit {
  width: 100%;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 0.9rem;
}

/* ── ERFOLGS-OVERLAY ───────────────────────────────────────── */
.jobs-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.jobs-success-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease;
}

.jobs-success-modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
}

.jobs-success-modal i {
  font-size: 3rem;
  color: #5ecb7c;
  margin-bottom: 1rem;
  display: block;
}

.jobs-success-modal h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.jobs-success-modal p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .jobs-form-wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .jobs-spontan-inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .jobs-spontan-icon {
    margin-top: 0;
  }

  .jobs-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

@media (max-width: 560px) {
  .jobs-hero-actions {
    flex-direction: column;
  }

  .jobs-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .jobs-form {
    padding: 1.5rem 1.25rem;
  }

  .jobs-perks {
    grid-template-columns: 1fr;
  }
}
