/* ====================================================================
 * CATRO – Jobdetailseite
 * Vorlage: catro-job-maske_2.html
 *
 * Alle Regeln hängen an .catrojob-single, damit das Theme ausserhalb
 * der Jobmaske unberührt bleibt. --red kommt pro Job aus dem Template
 * (Hausfarbe des Unternehmens) und überschreibt den Standardwert.
 * ==================================================================== */

.catrojob-single{
  --red:#dc0f32;
  --red-dark:#af0b27;
  --red-tint:#fdecef;
  --ink:#14161a;
  --ink-2:#39414d;
  --muted:#6b7480;
  --line:#dde1e7;
  --surface:#f1f3f6;
  --paper:#fff;

  --display:"Archivo","Segoe UI",Arial,sans-serif;
  --body:"IBM Plex Sans","Segoe UI",Arial,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,Menlo,monospace;

  --wrap:1180px;
  --r:4px;

  background:var(--paper);
  color:var(--ink);
  font:400 16px/1.65 var(--body);
  -webkit-font-smoothing:antialiased;
}

.catrojob-single *{box-sizing:border-box}
html:has(.catrojob-single){scroll-behavior:smooth; scroll-padding-top:88px}
.catrojob-single img{max-width:100%; display:block}
.catrojob-single a{color:var(--red-dark)}
.catrojob-single h1,
.catrojob-single h2,
.catrojob-single h3{font-family:var(--display); font-weight:700; letter-spacing:-.02em; margin:0}
.catrojob-single .wrap{max-width:var(--wrap); margin:0 auto; padding:0 24px}

/* Sichtbarer Fokus – Pflicht für Barrierefreiheit */
.catrojob-single a:focus-visible,
.catrojob-single button:focus-visible,
.catrojob-single input:focus-visible,
.catrojob-single textarea:focus-visible,
.catrojob-single select:focus-visible{
  outline:3px solid var(--red); outline-offset:2px; border-radius:2px;
}
.catrojob-single .skip{position:absolute; left:-9999px}
.catrojob-single .skip:focus{left:16px; top:12px; z-index:99; background:var(--ink); color:#fff; padding:10px 16px}
/* Überschrift ausblenden, aber für Screenreader und SEO erhalten */
.catrojob-single .vh{position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden;
  clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; border:0}

.catrojob-single .eyebrow{
  font:500 .72rem/1 var(--mono); text-transform:uppercase; letter-spacing:.14em;
  color:var(--red); display:block; margin-bottom:14px;
}

/* Pfeil-Motiv (Anlehnung an das rote CATRO-Pfeilelement) */
.catrojob-single .arw{width:8px; height:11px; flex:0 0 8px; background:var(--red);
  clip-path:polygon(0 0,100% 50%,0 100%)}

/* ---------- Hero ---------- */
.catrojob-single .hero{position:relative; background:var(--surface); border-top:3px solid var(--red); overflow:hidden}
.catrojob-single .hero::after{ /* stark vergrößerter Pfeil als Wasserzeichen */
  content:""; position:absolute; right:-40px; top:-30px; width:340px; height:340px;
  background:var(--red); opacity:.05; clip-path:polygon(0 0,100% 50%,0 100%); pointer-events:none;
}
.catrojob-single .hero__in{position:relative; padding:44px 0 96px}
/* max-width großzügig + text-wrap:balance = kein harter Umbruch mehr vor "(m/w/d)" */
.catrojob-single .hero h1{font-size:clamp(1.9rem,4.4vw,3rem); line-height:1.06; max-width:34ch;
  text-wrap:balance; hyphens:manual}
.catrojob-single .h1-mwd{white-space:nowrap; font-weight:600}   /* (m/w/d) bleibt immer zusammen */
.catrojob-single .hero__sub{margin:16px 0 0; font-size:1.06rem; color:var(--ink-2); max-width:52ch}
.catrojob-single .hero__sub strong{font-weight:600; color:var(--ink)}

.catrojob-single .chips{display:flex; gap:8px; flex-wrap:wrap; margin:22px 0 0; padding:0; list-style:none}
.catrojob-single .chip{font:500 .8rem/1 var(--body); background:var(--paper); border:1px solid var(--line);
  color:var(--ink-2); padding:8px 12px; border-radius:999px}
.catrojob-single .chip--new{background:var(--red-tint); border-color:currentColor; color:var(--red-dark)}

/* ---------- Eckdaten-Leiste (Signature-Element, überlappt den Hero) ---------- */
.catrojob-single .facts{margin:-60px auto 0; position:relative; z-index:2}
.catrojob-single .facts__box{background:var(--paper); border:1px solid var(--line); border-top:3px solid var(--red);
  box-shadow:0 10px 30px rgba(20,22,26,.07); display:grid;
  grid-template-columns:repeat(auto-fit,minmax(168px,1fr))}
.catrojob-single .fact{padding:18px 20px; border-left:1px solid var(--line)}
.catrojob-single .fact:first-child{border-left:0}
.catrojob-single .fact__label{font:400 .67rem/1 var(--mono); text-transform:uppercase; letter-spacing:.1em;
  color:var(--muted); display:block; margin-bottom:7px}
.catrojob-single .fact__val{font-weight:600; font-size:.97rem; color:var(--ink)}
.catrojob-single .fact--pay{background:var(--red-tint)}
.catrojob-single .fact--pay .fact__val{color:var(--red-dark)}
.catrojob-single .fact--id .fact__val{font-family:var(--mono); font-weight:500; letter-spacing:.02em}

/* ---------- Sprungnavigation ---------- */
.catrojob-single .jump{position:sticky; top:0; z-index:20; background:rgba(255,255,255,.94);
  backdrop-filter:blur(8px); border-bottom:1px solid var(--line); margin-top:40px}
.catrojob-single .jump ul{display:flex; gap:4px; margin:0; padding:0; list-style:none;
  overflow-x:auto; scrollbar-width:none}
.catrojob-single .jump ul::-webkit-scrollbar{display:none}
.catrojob-single .jump a{display:block; padding:15px 14px; font-size:.88rem; font-weight:500;
  color:var(--ink-2); text-decoration:none; white-space:nowrap; border-bottom:2px solid transparent}
.catrojob-single .jump a:hover{color:var(--red-dark)}
.catrojob-single .jump a.is-active{color:var(--ink); border-bottom-color:var(--red); font-weight:600}

/* ---------- Layout ---------- */
.catrojob-single .layout{display:grid; grid-template-columns:minmax(0,1fr) 348px; gap:56px;
  padding:52px 0 72px; align-items:start}
.catrojob-single .aside{position:sticky; top:76px; display:grid; gap:20px}

/* ---------- Inhaltsblöcke ---------- */
.catrojob-single .sec{padding:0 0 40px; max-width:68ch}
.catrojob-single .sec + .sec{border-top:1px solid var(--line); padding-top:38px}
.catrojob-single .sec h2{font-size:1.42rem; margin-bottom:14px}
.catrojob-single .sec p{margin:0 0 14px; color:var(--ink-2)}
.catrojob-single .sec p:last-child{margin-bottom:0}

/* Die ACF-Texte liefern eigene <ul>. Sie bekommen dieselbe Pfeiloptik. */
.catrojob-single .arrowlist,
.catrojob-single .sec__text ul{list-style:none; margin:0; padding:0; display:grid; gap:11px}
.catrojob-single .arrowlist li,
.catrojob-single .sec__text ul li{position:relative; padding-left:24px; color:var(--ink-2)}
.catrojob-single .arrowlist li::before,
.catrojob-single .sec__text ul li::before{content:""; position:absolute; left:0; top:.55em; width:8px; height:11px;
  background:var(--red); clip-path:polygon(0 0,100% 50%,0 100%)}
.catrojob-single .sec__text ul + p,
.catrojob-single .sec__text p + ul{margin-top:14px}

.catrojob-single .callout{border-left:3px solid var(--red); background:var(--surface);
  padding:16px 20px; margin:22px 0 0}
.catrojob-single .callout p{margin:0; font-size:.95rem}

/* ---------- Karten in der Sidebar ---------- */
.catrojob-single .card{border:1px solid var(--line); background:var(--paper)}
.catrojob-single .card__hd{padding:16px 20px 0; font:500 .7rem/1 var(--mono); text-transform:uppercase;
  letter-spacing:.1em; color:var(--muted)}
.catrojob-single .card__bd{padding:14px 20px 20px}
.catrojob-single .card--apply{border-top:3px solid var(--red)}
.catrojob-single .pay{font-family:var(--display); font-weight:700; font-size:1.3rem; letter-spacing:-.02em}
.catrojob-single .pay small{display:block; font:400 .8rem/1.4 var(--body); color:var(--muted); margin-top:4px; letter-spacing:0}

/* Das Theme legt allen Buttons einen roten Innenschatten auf – hier abschalten,
   sonst liegt er über der Hausfarbe des Unternehmens. */
.catrojob-single .btn{display:flex; align-items:center; justify-content:center; gap:10px; width:100%;
  padding:14px 18px; font:600 .97rem/1 var(--body); border-radius:var(--r);
  border:1px solid transparent; cursor:pointer; text-decoration:none; box-shadow:none;
  text-transform:none; letter-spacing:0; transition:background .15s,color .15s}
.catrojob-single .btn--primary{background:var(--red); color:#fff}
.catrojob-single .btn--primary:hover{background:var(--red-dark); color:#fff}
.catrojob-single .btn--ghost{background:var(--paper); color:var(--ink); border-color:var(--line); margin-top:10px}
.catrojob-single .btn--ghost:hover{border-color:var(--ink)}
.catrojob-single .btn .arw{background:currentColor}

.catrojob-single .person{display:flex; gap:14px; align-items:center}
.catrojob-single .person__ini{width:52px; height:52px; flex:0 0 52px; display:grid; place-items:center;
  background:var(--surface); border:1px solid var(--line); border-radius:50%;
  font:500 .95rem/1 var(--mono); color:var(--ink); overflow:hidden}
.catrojob-single .person__ini img{width:100%; height:100%; object-fit:cover}
.catrojob-single .person__nm{font-weight:600; font-size:.97rem}
.catrojob-single .person__ro{font-size:.85rem; color:var(--muted)}
.catrojob-single .dl{margin:16px 0 0; font-size:.9rem; display:grid; gap:8px}
.catrojob-single .dl div{display:flex; gap:10px; justify-content:space-between; align-items:baseline}
.catrojob-single .dl dt{color:var(--muted)}
.catrojob-single .dl dd{margin:0; font-weight:500; text-align:right}
.catrojob-single .dl dd.mono{font-family:var(--mono); font-weight:400}
.catrojob-single .adr{margin:14px 0 0; font-size:.9rem; color:var(--ink-2); font-style:normal; line-height:1.5}

.catrojob-single .tools{display:flex; flex-wrap:wrap; gap:8px}
.catrojob-single .tool{display:inline-flex; align-items:center; gap:8px; padding:9px 13px; font-size:.85rem;
  font-weight:500; background:var(--paper); border:1px solid var(--line); border-radius:var(--r);
  color:var(--ink-2); text-decoration:none; cursor:pointer; box-shadow:none}
.catrojob-single .tool:hover{border-color:var(--ink); color:var(--ink)}
.catrojob-single .tool__ic{display:inline-flex; align-items:center; flex-shrink:0}
.catrojob-single .tool__ic[hidden]{display:none}

/* ---------- Bewerbung (Gravity Forms) ---------- */
.catrojob-single .bewerbungsformular{margin-top:24px; max-width:640px}
.catrojob-single .bewerbungsformular .gform_wrapper{margin:0}
.catrojob-single .bewerbungsformular .gfield_label{font:600 .88rem/1.4 var(--body); color:var(--ink); margin-bottom:6px}
.catrojob-single .bewerbungsformular input[type=text],
.catrojob-single .bewerbungsformular input[type=email],
.catrojob-single .bewerbungsformular input[type=tel],
.catrojob-single .bewerbungsformular textarea,
.catrojob-single .bewerbungsformular select{
  width:100%; padding:12px 14px; font:400 .97rem var(--body);
  border:1px solid var(--line); border-radius:var(--r); background:var(--paper); color:var(--ink)}
.catrojob-single .bewerbungsformular input[type=text]:hover,
.catrojob-single .bewerbungsformular input[type=email]:hover,
.catrojob-single .bewerbungsformular textarea:hover{border-color:#c3c9d2}
.catrojob-single .bewerbungsformular .gfield_required{color:var(--red)}
.catrojob-single .bewerbungsformular .gform_drop_area,
.catrojob-single .bewerbungsformular .gform_fileupload_rules{
  border-radius:var(--r); background:var(--surface); font-size:.9rem; color:var(--ink-2)}
.catrojob-single .bewerbungsformular .gform_drop_area{border:1.5px dashed #c3c9d2; padding:22px; text-align:center}
.catrojob-single .bewerbungsformular .gform_footer input[type=submit],
.catrojob-single .bewerbungsformular .gform_button{
  background:var(--red); color:#fff; border:1px solid var(--red); box-shadow:none;
  padding:14px 24px; font:600 .97rem/1 var(--body); border-radius:var(--r);
  text-transform:none; letter-spacing:0; cursor:pointer}
.catrojob-single .bewerbungsformular .gform_footer input[type=submit]:hover,
.catrojob-single .bewerbungsformular .gform_button:hover{background:var(--red-dark); border-color:var(--red-dark)}

/* ---------- Ähnliche Jobs ---------- */
.catrojob-single .related{background:var(--surface); border-top:1px solid var(--line); padding:56px 0}
.catrojob-single .related h2{font-size:1.42rem; margin-bottom:22px}
/* Fest drei Spalten statt "so viele wie passen" – sonst schwankt die Reihe
   je nach Fensterbreite zwischen zwei und vier Karten. Darunter halbiert
   sich das Raster stufenweise (siehe Media Queries am Dateiende). */
.catrojob-single .grid3{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px}
.catrojob-single .jobcard{display:block; background:var(--paper); border:1px solid var(--line);
  padding:20px; text-decoration:none; color:inherit; transition:border-color .15s, transform .15s}
.catrojob-single .jobcard:hover{border-color:var(--red); transform:translateY(-2px)}
.catrojob-single .jobcard__ti{font-family:var(--display); font-weight:600; font-size:1.05rem; letter-spacing:-.01em}
.catrojob-single .jobcard__me{font-size:.85rem; color:var(--muted); margin-top:6px}
.catrojob-single .jobcard__go{display:inline-flex; align-items:center; gap:8px; margin-top:16px;
  font-size:.85rem; font-weight:600; color:var(--red-dark)}

/* ---------- Mobile Aktionsleiste ---------- */
.catrojob-single .stickybar{position:fixed; left:0; right:0; bottom:0; z-index:30; display:none;
  gap:14px; align-items:center; padding:12px 16px; background:var(--paper);
  border-top:1px solid var(--line); box-shadow:0 -6px 20px rgba(20,22,26,.1);
  transform:translateY(110%); transition:transform .22s ease}
.catrojob-single .stickybar.is-in{transform:translateY(0)}
.catrojob-single .stickybar__pay{font-size:.82rem; line-height:1.3; color:var(--muted); flex:1 1 auto}
.catrojob-single .stickybar__pay b{display:block; color:var(--ink); font-size:.95rem}
.catrojob-single .stickybar .btn{width:auto; flex:0 0 auto; padding:13px 20px}

/* ---------- Responsive ---------- */
@media (max-width:1000px){
  .catrojob-single .layout{grid-template-columns:1fr; gap:0; padding-bottom:40px}
  .catrojob-single .aside{position:static; margin-top:36px; grid-template-columns:1fr 1fr}
  .catrojob-single .card--apply{grid-column:1/-1}
}
@media (max-width:860px){
  .catrojob-single .grid3{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:720px){
  .catrojob-single .wrap{padding:0 18px}
  .catrojob-single .hero__in{padding:32px 0 84px}
  .catrojob-single .grid3{grid-template-columns:minmax(0,1fr); gap:14px}
  .catrojob-single .facts__box{grid-template-columns:1fr 1fr}
  .catrojob-single .fact{border-left:0; border-top:1px solid var(--line)}
  .catrojob-single .fact:nth-child(-n+2){border-top:0}
  .catrojob-single .fact:nth-child(even){border-left:1px solid var(--line)}
  .catrojob-single .aside{grid-template-columns:1fr}
  .catrojob-single .stickybar{display:flex}
  body.catrojob-has-stickybar{padding-bottom:76px}
}
@media (prefers-reduced-motion:reduce){
  html:has(.catrojob-single){scroll-behavior:auto}
  .catrojob-single *{transition:none !important; animation:none !important}
}
@media print{
  .catrojob-single .jump,
  .catrojob-single .aside,
  .catrojob-single .related,
  .catrojob-single .stickybar,
  .catrojob-single #bewerbung{display:none !important}
  .catrojob-single .hero{background:none}
  .catrojob-single .hero::after{display:none}
  .catrojob-single .layout{display:block; padding:0}
  .catrojob-single .facts{margin-top:20px}
  .catrojob-single{font-size:11pt}
}
