/* ============================================================
   KARRIERE-SEITE — Aquamentum
   ============================================================ */

/* --- Hero --- */
.karriere-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: var(--s-32) var(--s-6);
  background: var(--c-ocean-deep);
}

.karriere-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(42,184,208,.15) 0%, transparent 70%),
    linear-gradient(160deg, var(--c-ocean-deep) 0%, var(--c-ocean-mid) 100%);
}

.karriere-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 25, 43, .45);
}

.karriere-hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-6);
}

.karriere-hero__title {
  font-family: var(--font-serif);
  font-size: var(--text-h2);
  color: var(--c-white);
  line-height: 1.1;
  margin: 0;
}

.karriere-hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,.8);
  max-width: 560px;
  line-height: 1.6;
  margin: 0;
}

.karriere-hero__cta { margin-top: var(--s-2); }


/* --- Werte --- */
.karriere-werte {
  padding: var(--s-24) var(--s-4);
  background: var(--c-cream);
}

.karriere-werte__header {
  text-align: center;
  margin-bottom: var(--s-16);
}

.karriere-werte__header h2 {
  font-family: var(--font-serif);
  font-size: var(--text-h2);
  color: var(--c-ocean);
  margin: var(--s-3) 0 var(--s-2);
}

.karriere-werte__subtitle {
  color: var(--c-muted);
  font-size: var(--text-lg);
  max-width: 540px;
  margin: 0 auto;
}

.karriere-werte__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-6);
}

.werte-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: var(--s-8) var(--s-6);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.werte-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.werte-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--c-teal-glow);
  color: var(--c-teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
}

.werte-card h3 {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--c-ocean);
  margin: 0 0 var(--s-2);
}

.werte-card p {
  color: var(--c-slate);
  font-size: var(--text-sm);
  line-height: 1.65;
  margin: 0;
}


/* --- Video --- */
.karriere-video {
  padding: var(--s-24) var(--s-4);
  background: var(--c-ocean);
}

.karriere-video__header {
  text-align: center;
  margin-bottom: var(--s-12);
}

.karriere-video__header h2 {
  font-family: var(--font-serif);
  font-size: var(--text-h2);
  color: var(--c-white);
  margin: var(--s-3) 0 var(--s-2);
}

.karriere-video__subtitle {
  color: rgba(255,255,255,.65);
  font-size: var(--text-lg);
  max-width: 500px;
  margin: 0 auto;
}

.karriere-video__embed {
  max-width: 860px;
  margin: 0 auto;
}


/* --- Stellen --- */
.karriere-stellen {
  padding: var(--s-24) var(--s-4);
  background: var(--c-sand);
  scroll-margin-top: calc(var(--nav-h) + var(--s-8));
}

.karriere-stellen__header {
  text-align: center;
  margin-bottom: var(--s-12);
}

.karriere-stellen__header h2 {
  font-family: var(--font-serif);
  font-size: var(--text-h2);
  color: var(--c-ocean);
  margin: var(--s-3) 0 var(--s-2);
}

.karriere-stellen__subtitle {
  color: var(--c-muted);
  max-width: 540px;
  margin: 0 auto;
}

.stellen-liste {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  max-width: 860px;
  margin: 0 auto;
}

/* ── Stelle Card ─────────────────────────────────────── */
.stelle-card {
  background: var(--c-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
.stelle-card:hover { box-shadow: var(--shadow-md); border-color: var(--c-teal-border); }

/* ── Header (summary) ────────────────────────────────── */
.stelle-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--s-6) var(--s-8);
  cursor: pointer;
  list-style: none;
  gap: var(--s-4);
  transition: background var(--t-fast);
}
.stelle-card__header:hover { background: var(--c-cream); }
.stelle-card__header::-webkit-details-marker { display: none; }

.stelle-card__info { flex: 1; }

.stelle-card__titel {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--c-ocean-deep);
  margin: 0 0 var(--s-3);
  line-height: 1.3;
}

.stelle-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
  font-size: var(--text-sm);
  color: var(--c-slate);
}
.stelle-card__meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.stelle-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.stelle-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--c-teal-glow);
  color: var(--c-teal-dark);
  border: 1px solid var(--c-teal-border);
  letter-spacing: 0.02em;
}
.stelle-tag--neutral,
.stelle-tag.neutral {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}

.stelle-card__arrow {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--c-muted);
  transition: transform var(--t-base);
}
details[open] .stelle-card__arrow { transform: rotate(180deg); }

/* ── Body ────────────────────────────────────────────── */
.stelle-card__body {
  padding: var(--s-6) var(--s-8) var(--s-8);
  border-top: 1px solid var(--c-border);
}

.stelle-card__intro {
  font-size: var(--text-base);
  color: var(--c-slate);
  line-height: 1.7;
  margin: 0 0 var(--s-6);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--c-border);
}

.stelle-section {
  margin-bottom: var(--s-6);
}

.stelle-section__title {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--c-ocean);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--s-3);
}

.stelle-section__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.stelle-section__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: var(--text-sm);
  color: var(--c-ink);
  line-height: 1.6;
}
.stelle-section__list li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-teal);
  margin-top: 8px;
}

.stelle-hinweis {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid var(--c-teal);
  border-radius: var(--radius-md);
  padding: var(--s-4);
  font-size: var(--text-sm);
  color: var(--c-slate);
  line-height: 1.65;
  margin-bottom: var(--s-6);
}
.stelle-hinweis strong { color: var(--c-ocean-deep); }

.stelle-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-4);
  padding-top: var(--s-6);
  border-top: 1px solid var(--c-border);
  margin-top: var(--s-2);
}
.stelle-card__footer-note {
  font-size: var(--text-xs);
  color: var(--c-muted);
}

.stelle-card__cta { white-space: nowrap; }

.stelle-offen {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  background: var(--c-white);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--c-teal-border);
  padding: var(--s-6) var(--s-8);
  flex-wrap: wrap;
}

.stelle-offen p {
  flex: 1;
  margin: 0;
  color: var(--c-slate);
  font-size: var(--text-sm);
  min-width: 200px;
}


/* --- Bewerbungsformular --- */
.karriere-form {
  padding: var(--s-24) var(--s-4);
  background: var(--c-ocean);
  scroll-margin-top: calc(var(--nav-h) + var(--s-8));
}

.karriere-form__header {
  text-align: center;
  margin-bottom: var(--s-12);
}

.karriere-form__header h2 {
  font-family: var(--font-serif);
  font-size: var(--text-h2);
  color: var(--c-white);
  margin: var(--s-3) 0 var(--s-2);
}

.karriere-form__subtitle {
  color: rgba(255,255,255,.65);
  max-width: 480px;
  margin: 0 auto;
}

.karriere-form__body {
  background: var(--c-white);
  border-radius: var(--radius-xl);
  padding: var(--s-10) var(--s-10);
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

/* File-Upload */
.file-upload {
  border: 2px dashed var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--s-8);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  transition: border-color var(--t-fast), background var(--t-fast);
  cursor: pointer;
}

.file-upload:hover,
.file-upload.drag-over {
  border-color: var(--c-teal);
  background: var(--c-teal-glow);
}

.file-upload p {
  margin: 0;
  color: var(--c-muted);
  font-size: var(--text-sm);
}

.btn--full { width: 100%; justify-content: center; }

/* Form Feedback */
#form-message {
  padding: var(--s-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-bottom: var(--s-4);
}

#form-message.success {
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
  color: #166534;
}

#form-message.error {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2);
  color: #991b1b;
}

/* ============================================================
   FORMULAR-STILE (für Karriere-Seite)
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-ocean);
  display: block;
}

.form-control,
.form-select {
  width: 100%;
  padding: 11px 14px;
  font-size: var(--text-base);
  font-family: var(--font-sans);
  color: var(--c-ink);
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--c-teal);
  box-shadow: 0 0 0 3px var(--c-teal-glow);
}

.form-control::placeholder { color: var(--c-muted); }

textarea.form-control {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7a90' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

.karriere-form__body .form-group + .form-group,
.karriere-form__body .form-row + .form-group,
.karriere-form__body .form-group + .form-row {
  margin-top: var(--s-6);
}

.karriere-form__body > *:not(.form-group):not(.form-row) + .form-group,
.karriere-form__body > .form-group:last-of-type {
  margin-top: var(--s-6);
}

/* Stack-Abstand zwischen allen Formular-Elementen */
.karriere-form__body > * + * { margin-top: var(--s-6); }
.karriere-form__body > *:first-child { margin-top: 0; }


/* ============================================================
   ACTIVE NAV LINK
   ============================================================ */
/* Active nav link */
.nav__link--active {
  color: var(--c-teal) !important;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .karriere-form__body { padding: var(--s-6); }
  .stelle-card__header { padding: var(--s-4) var(--s-6); }
  .stelle-card__body { padding: 0 var(--s-6) var(--s-6); }
}
