/* ==========================================================================
   CONTORIUS — Jobs (jobs.html)
   Baut auf site.css und theme.css auf: gleiche Farben, Schriften und Radien.
   Stellen sind aufklappbare Zeilen (details/summary), keine Karten.
   ========================================================================== */

/* --- Einstieg: stummer Filmausschnitt hinter der Überschrift --------------- */
.jobs-hero{position:relative;isolation:isolate;overflow:hidden;background:var(--ink);
  min-height:min(78vh,720px);display:flex;align-items:flex-end}
.jobs-hero__film{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
/* links und unten dunkler für die Schrift, nach unten in den Grund auslaufend */
.jobs-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:
  linear-gradient(180deg,rgba(7,16,18,.35) 0%,rgba(7,16,18,.1) 30%,rgba(7,16,18,.75) 78%,var(--ink) 100%),
  linear-gradient(90deg,rgba(7,16,18,.7) 0%,rgba(7,16,18,.15) 60%)}
.jobs-hero__inhalt{width:100%;padding-block:180px 72px}   /* volle Breite: bündig mit der Liste darunter */
.jobs-hero .h2{max-width:900px}
.jobs-hero__aktion{margin-top:32px}

/* --- Über uns: ein Satz, darunter drei kurze Aussagen (Spalten mit Haarlinie, keine Karten) --- */
.jobs-wir{background:var(--ink);padding-block:88px 0}
.wir__satz{max-width:860px;margin-top:14px;font-size:clamp(26px,3.1vw,42px);font-weight:500;line-height:1.16;letter-spacing:-.01em;color:var(--white)}
.wir{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:52px}
.wir > div{border-left:1px solid rgba(231,204,210,.22);padding:2px 32px 2px 24px}
.wir h3{margin-bottom:10px;font-family:'Anton','SpaceGrotesk',sans-serif;font-weight:400;font-size:24px;line-height:1.05;
  letter-spacing:.01em;text-transform:uppercase;color:var(--pink)}
.wir p{font-size:var(--t-body);line-height:1.55;color:var(--txt)}

/* --- Stellenliste ------------------------------------------------------------ */
.jobs-liste{background:var(--ink);padding-top:96px}
.stellen{border-top:1px solid rgba(231,204,210,.22)}
.stelle{border-bottom:1px solid rgba(231,204,210,.22)}
.stelle summary{display:grid;grid-template-columns:44px minmax(0,1fr) 190px 150px 20px;align-items:center;gap:24px;
  padding:26px 0;cursor:pointer;list-style:none}
.stelle summary::-webkit-details-marker{display:none}
.stelle summary:focus-visible{outline:2px solid var(--pink);outline-offset:4px;border-radius:12px}
.stelle__nr{font-family:'Institut',sans-serif;font-size:var(--t-h3);line-height:1;color:var(--pink)}
.stelle__kopf{display:flex;flex-direction:column;gap:6px;min-width:0}
.stelle__titel{font-family:'Anton','SpaceGrotesk',sans-serif;font-size:clamp(24px,2.4vw,34px);line-height:1.04;
  letter-spacing:.005em;text-transform:uppercase;color:var(--white);transition:color .2s ease}
.stelle__mwd{font-family:'SpaceGrotesk',sans-serif;font-size:var(--t-small);font-weight:500;text-transform:none;
  letter-spacing:0;color:var(--txt);white-space:nowrap}
.stelle__meta{font-size:var(--t-small);color:var(--txt)}
.stelle__fakt{font-size:var(--t-body);font-weight:600;color:var(--white)}
.stelle summary:hover .stelle__titel{color:var(--pink)}
/* Plus, das beim Aufklappen zum Minus wird */
.stelle__pfeil{position:relative;width:20px;height:20px}
.stelle__pfeil::before,.stelle__pfeil::after{content:"";position:absolute;left:0;right:0;top:9px;height:2px;background:var(--pink);
  transition:transform .25s var(--ease)}
.stelle__pfeil::after{transform:rotate(90deg)}
.stelle[open] .stelle__pfeil::after{transform:rotate(0)}

.stelle__inhalt{display:grid;grid-template-columns:repeat(2,minmax(0,440px));gap:36px 0;padding:6px 0 40px 68px}
.stelle__inhalt > div{border-left:1px solid rgba(231,204,210,.22);padding:2px 28px 2px 24px}
.stelle__inhalt h3{font-size:var(--t-small);font-weight:600;letter-spacing:0;color:var(--pink);margin-bottom:12px}
.stelle__inhalt ul{display:grid;gap:8px}
.stelle__inhalt li{display:flex;gap:11px;font-size:var(--t-small);color:var(--txt);line-height:1.5}
.stelle__inhalt li::before{content:"";flex:none;width:10px;height:2px;margin-top:10px;background:var(--pink)}
.stelle__kurz{grid-column:1 / -1;max-width:720px;font-size:var(--t-lead);line-height:1.45;color:var(--white)}
.stelle__aktion{grid-column:1 / -1;display:flex;align-items:center;flex-wrap:wrap;gap:14px 20px}
.stelle__aktion span{font-size:var(--t-small);color:var(--txt)}
.stelle__aktion span a{color:var(--pink);text-underline-offset:3px}

/* --- Klick-Bewerbung (Dialog) ---------------------------------------------------
   Eine Frage pro Schritt, Antwort anklicken führt weiter. Am Handy als Blatt von unten. */
html:has(.bw[open]){overflow:hidden}
.bw{width:min(560px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;overflow:auto;
  border:1px solid var(--line-strong);border-radius:24px;background:var(--ink);color:var(--white)}
.bw::backdrop{background:rgba(0,0,0,.8)}
.bw__form{display:flex;flex-direction:column;min-height:468px;padding:20px 28px 22px}
.bw__kopf{display:flex;align-items:center;justify-content:space-between;gap:16px}
.bw__stelle{font-size:var(--t-small);font-weight:600;color:var(--pink)}
.bw__zu{position:relative;flex:none;width:44px;height:44px;margin-right:-12px;padding:0;border:0;border-radius:12px;background:none;cursor:pointer}
.bw__zu::before,.bw__zu::after{content:"";position:absolute;left:13px;right:13px;top:21px;height:2px;background:var(--white);transform:rotate(45deg)}
.bw__zu::after{transform:rotate(-45deg)}
.bw__zu:hover{background:rgba(255,255,255,.08)}
.bw__zu:focus-visible,.bw__zurueck:focus-visible{outline:2px solid var(--pink);outline-offset:2px}
.bw__fortschritt{height:2px;margin:12px 0 30px;background:rgba(231,204,210,.18)}
.bw__fortschritt span{display:block;height:100%;background:var(--pink);transform-origin:0 50%;transform:scaleX(0);transition:transform .35s var(--ease)}

.bw__schritt{display:grid;gap:10px;min-width:0;margin:0;padding:0;border:0}
.bw__schritt[hidden]{display:none}
.bw__schritt:focus{outline:none}
.bw__schritt legend,.bw__danke h2{padding:0;margin-bottom:22px;font-family:'Anton','SpaceGrotesk',sans-serif;font-weight:400;
  font-size:clamp(28px,5vw,38px);line-height:1.06;letter-spacing:.005em;text-transform:uppercase;color:var(--white)}
.bw__danke h2{margin-bottom:6px;outline:none}
.bw__danke p{color:var(--txt)}
.bw button{font-family:inherit}
.bw__danke .btn{margin-top:18px;background:none;cursor:pointer}
.bw__vorschau{font-size:var(--t-small)}

.bw__wahl{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 18px;
  border:1px solid var(--line-strong);border-radius:12px;font-weight:600;
  transition:border-color .15s ease,background .15s ease,color .15s ease}
.bw__wahl input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.bw__wahl::after{content:"";flex:none;width:8px;height:8px;margin-right:4px;border-top:2px solid currentColor;border-right:2px solid currentColor;
  transform:rotate(45deg);opacity:.55}
@media (hover:hover){ .bw__wahl:hover{border-color:var(--pink)} }   /* kein haftender Hover am Handy */
.bw__wahl:has(input:checked){background:var(--pink);border-color:var(--pink);color:var(--ink)}
.bw__wahl:has(input:focus-visible){outline:2px solid var(--pink);outline-offset:3px}

.bw__feld{display:grid;gap:6px;font-size:var(--t-small);color:var(--txt)}
.bw__feld input,.bw__feld textarea{width:100%;font:inherit;font-size:16px;color:var(--white);background:rgba(255,255,255,.04);
  border:1px solid var(--line-strong);border-radius:12px;padding:13px 14px}
.bw__feld textarea{display:block;resize:vertical;min-height:52px;line-height:1.4}
.bw__feld input:focus,.bw__feld textarea:focus{outline:none;border-color:var(--pink)}
.bw__falle{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}   /* Falle für Automaten */
.bw__fehler{padding-left:12px;border-left:2px solid var(--st-krit);font-size:var(--t-small);color:var(--white)}
.bw__fehler a,.bw__klein a{color:var(--pink);text-underline-offset:3px}
.bw__mehr{display:grid;gap:10px;padding:2px 0 8px}
.bw__mehr[hidden]{display:none}
.bw__feld input::placeholder{color:var(--txt-dim)}
.bw__weiter{justify-content:center;cursor:pointer}
.bw__senden{justify-content:center;margin-top:8px;cursor:pointer}
.bw__senden:disabled{opacity:.6;cursor:default;transform:none}
.bw__klein{font-size:13px;line-height:1.45;color:var(--txt-dim)}

.bw__fuss{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;margin-top:auto;padding-top:20px}
.bw__zurueck{padding:10px 0;border:0;border-radius:12px;background:none;font:inherit;font-size:var(--t-small);font-weight:600;color:var(--pink);cursor:pointer}
.bw__zaehler{margin-left:auto;font-size:var(--t-small);color:var(--txt-dim)}

/* --- Initiativbewerbung ---------------------------------------------------------- */
.initiativ{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:24px;margin-top:88px}
.initiativ__titel{font-family:'Anton','SpaceGrotesk',sans-serif;font-weight:400;font-size:clamp(30px,3.2vw,48px);
  line-height:1;letter-spacing:.005em;text-transform:uppercase}
.initiativ .lead{margin-top:10px}

/* --- Entwurfshinweis (nur solange ENTWURF = true) --------------------------------- */
.entwurf{position:fixed;left:16px;bottom:16px;z-index:90;margin:0;padding:10px 14px;background:var(--pink);color:var(--ink);
  font-size:13px;font-weight:600;border-radius:12px}

@media (max-width:1000px){
  .stelle summary{grid-template-columns:36px minmax(0,1fr) 20px;gap:2px 16px;padding:22px 0;align-items:start}
  .stelle__nr{padding-top:6px}
  .stelle__kopf{margin-bottom:6px}
  .stelle__fakt{grid-column:2;font-size:var(--t-small);font-weight:500;color:var(--txt)}
  .stelle__pfeil{grid-column:3;grid-row:1;margin-top:8px}
  .stelle__inhalt{grid-template-columns:1fr;gap:24px;padding:4px 0 32px 0}
  .stelle__inhalt > div{padding:2px 0 2px 18px}
}
@media (max-width:768px){
  .jobs-hero{min-height:560px}
  .jobs-hero__film{object-position:50% 50%}
  .jobs-hero__inhalt{padding-block:140px 48px}
  .jobs-liste{padding-top:56px}
  .jobs-wir{padding-block:48px 0}
  .wir{grid-template-columns:1fr;gap:26px;margin-top:32px}
  .wir > div{padding:2px 0 2px 18px}
  .stelle__nr{font-size:20px}
  .stelle__aktion .btn{width:100%;justify-content:center}
  .initiativ{margin-top:56px}
  .initiativ .btn{width:100%;justify-content:center}
  .entwurf{left:10px;bottom:10px;font-size:12px}
  .bw{width:100%;max-height:92dvh;margin:auto 0 0;border-width:1px 0 0;border-radius:24px 24px 0 0}
  .bw__form{min-height:430px;padding:16px 20px 20px}
  .bw__fortschritt{margin-bottom:24px}
}
@media (prefers-reduced-motion:reduce){ .bw__fortschritt span,.bw__wahl{transition:none} .jobs-hero__film{display:none} .jobs-hero{background:var(--ink) url("../img/film-poster.jpg") center/cover} }
