/* "Offene Stellen" section, injected by /jobs/jobs.js. Mirrors the site's Tailwind tokens. */
.rj-section, .rj-dialog {
  --rj-green: #0f9b3f;
  --rj-green-deep: #0a5c2a;
  --rj-ink: #20242b;
  --rj-charcoal: #4a4a4a;
  --rj-paper: #f8f9fa;
  --rj-line: rgba(0, 0, 0, 0.06);
  --rj-ease: cubic-bezier(.16, 1, .3, 1);
  font-family: Inter, system-ui, sans-serif;
  color: var(--rj-charcoal);
}
.rj-section { background: #fff; border-top: 1px solid var(--rj-line); padding: 6rem 0; }
@media (min-width: 768px) { .rj-section { padding: 8rem 0; } }

.rj-head { max-width: 42rem; margin-bottom: 3.5rem; }
.rj-title {
  font-family: "Playfair Display", serif;
  font-size: 1.875rem; line-height: 1.2; font-weight: 700; color: var(--rj-ink); margin: 0;
}
@media (min-width: 768px) { .rj-title { font-size: 2.6rem; } }
.rj-lead { margin: 1.25rem 0 0; font-size: 1.0625rem; line-height: 1.7; }

.rj-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (min-width: 900px) { .rj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.rj-card {
  position: relative;
  background: var(--rj-paper);
  border: 1px solid var(--rj-line);
  border-radius: 1rem;
  padding: 2rem;
  display: flex; flex-direction: column;
  transition: box-shadow .5s var(--rj-ease), transform .5s var(--rj-ease), background-color .5s var(--rj-ease);
}
.rj-card:hover { background: #fff; box-shadow: 0 20px 50px -25px rgba(10, 40, 20, .35); transform: translateY(-2px); }
.rj-card::before {
  content: ""; position: absolute; left: 2rem; top: 0; width: 3rem; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(135deg, #0f9b3f 0%, #4caf50 100%);
}

.rj-job-title {
  font-family: "Playfair Display", serif; font-size: 1.375rem; line-height: 1.3; font-weight: 700;
  color: var(--rj-ink); margin: .25rem 0 1rem; overflow-wrap: anywhere;
}
.rj-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.rj-chip {
  display: inline-flex; align-items: center; gap: .375rem;
  font-size: .8125rem; font-weight: 500; color: var(--rj-green-deep);
  background: rgba(15, 155, 63, .08); border-radius: 9999px; padding: .3rem .75rem;
}
.rj-chip svg { width: 14px; height: 14px; flex: none; }
.rj-intro { margin: 0 0 1.25rem; line-height: 1.7; font-size: .9375rem; white-space: pre-line; }

.rj-details { overflow: hidden; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--rj-ease); }
.rj-details > div { min-height: 0; }
.rj-card.is-open .rj-details { grid-template-rows: 1fr; }
.rj-block { padding-top: .25rem; margin-bottom: 1.25rem; }
.rj-block h4 {
  margin: 0 0 .6rem; font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--rj-green);
}
.rj-block ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.rj-block li { position: relative; padding-left: 1.4rem; line-height: 1.6; font-size: .9375rem; }
.rj-block li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: .5rem; height: .5rem; border-radius: 9999px;
  background: linear-gradient(135deg, #0f9b3f 0%, #4caf50 100%);
}

.rj-actions { margin-top: auto; padding-top: .5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.rj-btn {
  display: inline-flex; align-items: center; gap: .5rem; border-radius: 9999px; padding: .75rem 1.5rem;
  font-weight: 600; font-size: .9375rem; color: #fff; text-decoration: none;
  background-image: linear-gradient(135deg, #0f9b3f 0%, #4caf50 100%);
  box-shadow: 0 10px 30px -10px #0f9b3f99; transition: transform .3s var(--rj-ease), box-shadow .3s var(--rj-ease);
}
.rj-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px #0f9b3fb3; }
.rj-btn svg { width: 16px; height: 16px; }
.rj-toggle {
  background: none; border: 0; padding: .25rem 0; cursor: pointer; font: inherit; font-size: .9375rem; font-weight: 600;
  color: var(--rj-ink); display: inline-flex; align-items: center; gap: .35rem;
}
.rj-toggle:hover { color: var(--rj-green); }
.rj-toggle svg { width: 16px; height: 16px; transition: transform .4s var(--rj-ease); }
.rj-card.is-open .rj-toggle svg { transform: rotate(180deg); }
.rj-btn:focus-visible, .rj-toggle:focus-visible { outline: 2px solid var(--rj-green); outline-offset: 3px; }

.rj-empty {
  border: 1px dashed rgba(15, 155, 63, .35); border-radius: 1rem; padding: 2rem; background: var(--rj-paper);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
}
.rj-empty p { margin: 0; line-height: 1.7; max-width: 40rem; }
.rj-empty strong { color: var(--rj-ink); display: block; font-size: 1.0625rem; margin-bottom: .25rem; }

.rj-reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--rj-ease), transform .9s var(--rj-ease); }
.rj-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rj-reveal { opacity: 1; transform: none; transition: none; }
  .rj-card, .rj-details, .rj-toggle svg { transition: none; }
}

.rj-more { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.rj-more p { margin: 0; }
.rj-more .rj-toggle { color: var(--rj-green); }
button.rj-btn { border: 0; cursor: pointer; font-family: inherit; }
button.rj-btn:disabled { opacity: .65; cursor: progress; transform: none; }

/* application dialog */
.rj-dialog {
  border: 0; padding: 0; background: transparent; width: min(40rem, calc(100% - 2rem)); max-width: none;
  max-height: calc(100% - 2rem); overflow: visible;
}
.rj-dialog::backdrop { background: rgba(10, 30, 18, .55); backdrop-filter: blur(3px); }
.rj-dialog[open] { animation: rj-pop .45s var(--rj-ease); }
@keyframes rj-pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.rj-dialog-box {
  position: relative; background: #fff; border-radius: 1.25rem; padding: 2rem 1.5rem 1.75rem;
  max-height: calc(100dvh - 2rem); overflow-y: auto; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5);
}
@media (min-width: 640px) { .rj-dialog-box { padding: 2.5rem 2.5rem 2rem; } }
.rj-dialog-title { font-family: "Playfair Display", serif; font-size: 1.6rem; line-height: 1.25; color: var(--rj-ink); margin: 0 2.5rem 1.5rem 0; overflow-wrap: anywhere; }
.rj-close {
  position: absolute; top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; border-radius: 9999px; border: 0;
  background: var(--rj-paper); color: var(--rj-ink); cursor: pointer; display: grid; place-items: center;
}
.rj-close:hover { background: #eef2ef; color: var(--rj-green); }
.rj-close svg { width: 18px; height: 18px; }

.rj-form { display: grid; gap: 1rem; }
.rj-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 560px) { .rj-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rj-field label, .rj-label { display: block; font-size: .85rem; font-weight: 600; color: var(--rj-ink); margin-bottom: .4rem; }
.rj-field input[type=text], .rj-field input[type=email], .rj-field input[type=tel], .rj-field textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #e3e6e8; border-radius: .75rem; padding: .75rem .9rem;
  font: inherit; font-size: 1rem; color: var(--rj-ink); background: var(--rj-paper); transition: border-color .2s, background .2s;
}
.rj-field textarea { resize: vertical; min-height: 6rem; }
.rj-field input:focus, .rj-field textarea:focus { outline: none; border-color: var(--rj-green); background: #fff; box-shadow: 0 0 0 3px rgba(15, 155, 63, .15); }
.rj-hint { margin: .4rem 0 0; font-size: .8rem; color: #6b7280; }
.rj-hint a { color: var(--rj-green); font-weight: 600; }
.rj-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

#rj-files { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rj-drop {
  display: flex !important; flex-direction: column; align-items: center; gap: .2rem; text-align: center; cursor: pointer;
  border: 1.5px dashed rgba(15, 155, 63, .45); border-radius: .9rem; padding: 1.25rem 1rem; background: rgba(15, 155, 63, .04);
  margin: 0 !important; font-weight: 400 !important; color: var(--rj-charcoal) !important; transition: background .2s, border-color .2s;
}
.rj-drop:hover, .rj-drop.is-over { background: rgba(15, 155, 63, .09); border-color: var(--rj-green); }
#rj-files:focus-visible + .rj-drop { outline: 2px solid var(--rj-green); outline-offset: 2px; }
.rj-drop svg { width: 26px; height: 26px; color: var(--rj-green); margin-bottom: .25rem; }
.rj-drop strong { color: var(--rj-ink); font-size: .95rem; }
.rj-drop span { font-size: .8rem; }
.rj-files { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .4rem; }
.rj-files li { display: flex; align-items: center; gap: .75rem; background: var(--rj-paper); border-radius: .6rem; padding: .5rem .5rem .5rem .8rem; font-size: .875rem; }
.rj-fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--rj-ink); }
.rj-fsize { color: #6b7280; font-size: .8rem; flex: none; }
.rj-fremove { flex: none; width: 1.8rem; height: 1.8rem; border-radius: 9999px; border: 0; background: #fff; cursor: pointer; font-size: 1.1rem; line-height: 1; color: #6b7280; }
.rj-fremove:hover { color: #c0392b; }

.rj-consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; line-height: 1.5; cursor: pointer; }
.rj-consent input { width: 1.1rem; height: 1.1rem; margin-top: .15rem; accent-color: var(--rj-green); flex: none; }
.rj-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; padding-top: .25rem; }
.rj-form-actions .rj-hint { margin: 0; }
.rj-error { background: #fdf1ef; color: #b03a2e; border-radius: .7rem; padding: .75rem 1rem; font-size: .9rem; }
.rj-error[hidden] { display: none; }

.rj-done { text-align: center; padding: 1rem 0 .5rem; display: grid; justify-items: center; gap: .5rem; }
.rj-done svg { width: 54px; height: 54px; color: var(--rj-green); }
.rj-done strong { font-family: "Playfair Display", serif; font-size: 1.4rem; color: var(--rj-ink); }
.rj-done p { margin: 0 0 1rem; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .rj-dialog[open] { animation: none; } }

/* hero badge */
.rj-hero-badge {
  display: inline-flex; align-items: center; gap: .6rem; max-width: 100%;
  margin-bottom: 1.75rem; padding: .45rem .9rem .45rem .75rem; border-radius: 9999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font-family: Inter, system-ui, sans-serif; font-size: .875rem; text-decoration: none;
  animation: rj-badge-in .9s cubic-bezier(.16, 1, .3, 1) both;
  transition: background .3s, border-color .3s;
}
.rj-hero-badge:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .5); }
.rj-hero-badge strong { font-weight: 600; white-space: nowrap; }
.rj-hero-sep { width: 1px; height: 1rem; background: rgba(255, 255, 255, .35); flex: none; }
.rj-hero-job { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255, 255, 255, .9); }
.rj-hero-badge svg { width: 15px; height: 15px; flex: none; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.rj-hero-badge:hover svg { transform: translateX(3px); }
.rj-pulse { position: relative; width: .5rem; height: .5rem; border-radius: 9999px; background: #6ee08f; flex: none; }
.rj-pulse::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #6ee08f; animation: rj-ping 1.8s ease-out infinite; }
@keyframes rj-ping { from { transform: scale(1); opacity: .8; } to { transform: scale(3); opacity: 0; } }
@keyframes rj-badge-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) { .rj-hero-badge { font-size: .8rem; margin-bottom: 1.25rem; } }
@media (prefers-reduced-motion: reduce) { .rj-hero-badge, .rj-pulse::after { animation: none; } }
/* the badge adds height to the hero: drop the decorative "Scrollen" hint on phones so nothing overlaps */
@media (max-width: 767px) { #home:has(#rj-hero-badge) > .absolute.bottom-8 { display: none; } }
@media (max-width: 767px) and (max-height: 700px) { .rj-hero-badge { display: none; } }
