/* ===============================
   Career Page - Modern & Unique Styles (karriere.css)
================================= */

body {
  font-family: "Roboto", sans-serif;
  color: #333;
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
}

/* Base Styles for the Career Section */
.career-section {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
}

/* Hauptcontainer: breiter und mit modernen Akzenten */
.career-section .container {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Allgemeine Titel für die Sektion */
.section-title {
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #2d2d2d;
  border-bottom: 2px solid #645f5ea6;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-intro {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.2rem;
}

/* --- Career Hero Section --- */
.career-hero {
  position: relative;
  padding: 1rem;
  background: #f5f5f5;
}

.career-hero-image {
  width: 100%;
  height: 40rem;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

/* Overlay für den Text, links unten mittig */
.career-hero-overlay {
  position: absolute;
  left: 5%;
  bottom: 30%;
  color: #ffffff;
  text-shadow: 8px 8px 12px rgba(0, 0, 0, 0.8);
}

.career-hero-overlay h1 {
  font-size: 3rem;
  margin: 0;
}

.career-hero-overlay h2 {
  font-size: 2rem;
  margin: 0.5rem 0 0;
}

/* --- Career Subsections --- */
.career-subsection {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.subsection-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #2d2d2d;
  display: inline-block;
  padding-bottom: 0.5rem;
}

/* Jobs Section */
.job-positions ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
}

.job-positions ul li {
  font-size: 1.1rem;
  padding: 0.8rem 1rem;
  margin: 0.5rem 0;
  background: #f9cc36;
  border: 1px solid #f5dc24;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
}

.job-positions ul li:hover {
  transform: translateY(-3px);
}

.custom-list {
  list-style: none;
  counter-reset: step-counter;
  padding-left: 0;
  max-width: 600px;
  margin: 0 auto;
}

.custom-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.custom-list li::before {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  color: #f9cc36;
  font-size: 1.2rem;
  line-height: 1.5;
}

.application-form form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 100%;
}

.application-form .form-label {
  grid-column: span 2;
  font-size: 1rem;
  color: #000;
  font-weight: 500;
}

.application-form .form-control {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #000;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

.application-form .form-control:focus {
  border-color: #d9eb81;
  box-shadow: none;
}

.application-form .form-check {
  grid-column: 1 / -1; /* spannt von der ersten bis zur letzten Spalte */
}

/* Stelle sicher, dass das Label als Block-Element die volle Breite einnimmt */
.application-form .form-check-label {
  display: block;
  width: 100%;
}

.application-form .btn-primary {
  grid-column: span 2;
  padding: 1rem;
  background-color: #6c757d;
  color: #ffffff;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.application-form .btn-primary:hover {
  background-color: #5a6268;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.application-form .btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.5);
}

/* ===============================
       Responsive Adjustments
================================= */

/* Bereits vorhanden */
@media (max-width: 768px) {
  .career-hero-image {
    height: 50rem;
  }
  .career-hero-overlay h1 {
    font-size: 2.2rem;
  }
  .career-hero-overlay h2 {
    font-size: 1.8rem;
  }
  .application-form form {
    grid-template-columns: 1fr; /* alle Felder in einer Spalte */
    gap: 1rem; /* etwas geringerer Abstand */
  }
  .application-form .btn-primary {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }
  .job-positions ul li {
    font-size: 1rem;
  }
}

/* Weitere Anpassungen für sehr kleine Bildschirme */
@media (max-width: 515px) {
  /* Container des Formulars: volle Breite, zentriert, weniger Padding */
  .application-form {
    width: 100%;
    padding: 0.5rem 1rem; /* Weniger Innenabstand */
    box-sizing: border-box;
    margin: 0 auto;
  }

  /* Das Formular selbst: Volle Breite, keine überflüssigen Grid-Spalten */
  .application-form form {
    display: block; /* Grid-Layout abschalten, um Probleme zu vermeiden */
    width: 100%;
    margin: 0 auto;
  }

  /* Allgemeine Felder: Volle Breite und kompaktere Darstellung */
  .application-form .form-control {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.9rem;
    box-sizing: border-box;
  }

  /* Labels etwas kleiner und blockweise, damit sie über dem Feld stehen */
  .application-form .form-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }

  /* Gruppiere Eingabefelder mit ausreichendem Abstand */
  .application-form > div,
  .application-form .mb-3 {
    margin-bottom: 1rem;
  }

  /* Absende-Button: Volle Breite, geringeres Padding */
  .application-form .btn-primary {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.75rem;
    margin-top: 1rem;
  }
}
