/* Arbeiten im Wangerland — öffentliches Stellenportal.
   Seit Oktober 2026 im Erscheinungsbild von wangerland.live: baut auf
   style.css und app.css auf (Wellenkopf, Poiret One, Tau, Drucktextur) und
   nimmt Rostrot als Leitfarbe — die Farbe der Tür „Jobs" auf dem Portal.

   Der Kniff: Die Forums-Bausteine (.knopf, .karte, .marker, Formularfelder,
   .hinweis-kasten) färben sich über --blau & Co. Diese Variablen werden hier
   für body.jobs auf Rost umgelegt, statt jeden Baustein einzeln zu überschreiben. */

body.jobs {
  --blau:        var(--app-rost);
  --blau-dunkel: #8C3520;
  --blau-hell:   #F6E9E3;
  --blau-rand:   #E9C9BD;
  --grund:       var(--app-grund);
  --rand:        var(--app-rand);
  --radius:      6px;
  --schatten:    0 1px 2px rgba(29,43,79,.06), 0 2px 8px rgba(29,43,79,.05);
  /* Eine Welle in Rost als Unterstrich der Abschnittsüberschriften. */
  --jobs-welle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='8'%3E%3Cpath d='M1 4c4-4 9-4 12.5 0s8.5 4 12.5 0 8.5-4 12.5 0 8.5 4 12.5 0' fill='none' stroke='%23B4472C' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  overflow-x: clip;              /* das Band läuft über die volle Breite */
}
.jobs a:not(.knopf) { color: var(--app-rost); }
.jobs a:not(.knopf):hover { color: var(--blau-dunkel); }

/* ------------------------------------------------------------ Kopf */
.jkopf { position: sticky; top: 0; z-index: 20; }
.jobs .app-kopf__innen { max-width: 1000px; }
.jobs .app-signet { color: var(--app-rost); }
.jobs .app-kopf__heim:hover .app-signet { color: var(--app-marine); }
.jnav {
  margin-left: auto;
  display: flex; align-items: center; gap: 14px;
  background: #fff; padding: 3px 3px 3px 10px; border-radius: 8px;  /* lesbar über den Wellen */
}
.jnav a:not(.knopf) { color: var(--app-marine); text-decoration: none; font-size: .9rem; font-weight: 600; }
.jnav a:not(.knopf):hover { color: var(--app-rost); }

.jinhalt { max-width: 1000px; margin: 0 auto; padding: 26px 16px 50px; }

/* ------------------------------------------------------------ Band
   Rost über die ganze Breite, mit Drucktextur, Etikettenrahmen und Tau —
   die Patchwork-Kachel der App, nur so groß wie die Seite. */
.jband {
  position: relative;
  margin: -26px calc(50% - 50vw) 34px;
  background: var(--app-rost);
  color: #fff;
  overflow: hidden;
}
.jband::before {
  content: ""; position: absolute; inset: 0;
  background: var(--app-korn); background-size: 180px 180px; opacity: .3; pointer-events: none;
}
.jband::after { content: ""; display: block; height: 6px; background: var(--app-tau); position: relative; }
.jband__innen {
  position: relative; z-index: 1;
  max-width: 1000px; margin: 0 auto; padding: 44px 16px 40px;
}
.jband__innen::before {           /* Etikettenrahmen wie auf den Kacheln */
  content: ""; position: absolute; inset: 14px 6px 16px; pointer-events: none;
  border: 1.5px solid rgba(255,255,255,.5); border-radius: 4px;
}
.jband__innen > * { position: relative; margin-left: 26px; margin-right: 26px; }
.jband__fuer {
  margin-top: 0; margin-bottom: 10px;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #F7D9CC;
}
.jobs .jband h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5.2vw, 3.5rem);
  max-width: 15ch;
  margin-top: 0; margin-bottom: 14px;
}
.jband__text { margin-top: 0; margin-bottom: 0; max-width: 34em; font-size: 1.08rem; line-height: 1.55; }
.jband__knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.jband__zahl { margin-top: 18px; margin-bottom: 0; font-size: .9rem; color: #F7D9CC; }
.jband__zahl strong { color: #fff; }

.jobs .jknopf--hell { background: #fff; border-color: #fff; color: var(--app-rost); }
.jobs .jknopf--hell:hover { background: var(--app-marine); border-color: var(--app-marine); color: #fff; }
.jobs .jknopf--rahmen { background: transparent; border-color: rgba(255,255,255,.75); color: #fff; }
.jobs .jknopf--rahmen:hover { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }
.jobs .knopf:focus-visible { outline: 3px solid var(--app-indigo); outline-offset: 2px; }

/* ------------------------------------------------------------ Stellenliste */
.jkopfzeile {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap;
  margin-bottom: 16px; scroll-margin-top: 80px;
}
.jobs h2.jabschnitt {
  margin: 0; padding-bottom: 12px; font-size: 1.5rem;
  background: var(--jobs-welle) no-repeat left bottom / 52px 8px;
}
.jfilter { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.jfilter__feld { display: flex; flex-direction: column; gap: 3px; margin: 0; font-weight: 400; }
.jfilter__feld span {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-leise);
}
.jfilter select { width: auto; min-width: 150px; padding: 8px 10px; }
.jfilter .knopf { padding: 8px 14px; }

.jstellen {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}
.jstelle {
  display: flex; flex-direction: column;
  padding: 18px 20px 16px;
  background: #fff; border: 1px solid var(--app-rand); border-radius: 5px;
  box-shadow: var(--schatten);
  text-decoration: none; color: inherit;
  transition: transform .15s ease, border-color .15s ease;
}
.jobs a.jstelle { color: inherit; }
.jstelle:hover { border-color: var(--app-rost); transform: translateY(-2px); }
.jstelle:focus-visible { outline: 3px solid var(--app-indigo); outline-offset: 2px; }
.jstelle__etiketten { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
/* Das Etikett: kleiner Rost-Stempel mit eigenem Rahmen, wie auf den Kacheln. */
.jetikett {
  display: inline-block; position: relative;
  padding: 4px 10px; border-radius: 3px;
  background: var(--app-rost); color: #fff;
  font-family: var(--app-schmal); font-size: .8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; line-height: 1.2;
  box-shadow: inset 0 0 0 2px var(--app-rost), inset 0 0 0 3px rgba(255,255,255,.55);
  flex: none;
}
.jstelle__bereich { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--app-petrol); }
/* Silbentrennung statt Bruch mitten im Wort: „Hotelfachmann/Hotelfachfrau"
   passt sonst in keine Kartenspalte (lang="de", der Browser trennt deutsch). */
.jobs .jstelle h3 {
  margin: 0 0 4px; font-size: 1.12rem; line-height: 1.3;
  overflow-wrap: break-word; hyphens: auto;
}
.jstelle__betrieb { font-size: .9rem; color: var(--app-rost); font-weight: 650; margin-bottom: 10px; }
.jstelle__text { font-size: .9rem; line-height: 1.55; color: var(--text-leise); margin: 0 0 14px; }
.jstelle__fuss {
  margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--app-rand);
  display: flex; justify-content: space-between; gap: 10px;
  font-size: .84rem; color: var(--text-leise);
}
.jstelle__mehr { color: var(--app-rost); font-weight: 700; }
.jstelle:hover .jstelle__mehr { text-decoration: underline; text-underline-offset: 3px; }

/* Aufruf zum Eintragen: Leinenfeld mit Tau, wie der Kopf der Gäste-App. */
.jaufruf {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap;
  background: var(--app-nebel); border-radius: 6px;
  padding: 26px 26px 32px;
}
.jaufruf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--app-tau); }
.jaufruf__text { flex: 1 1 380px; }
.jaufruf h2 { margin: 0 0 8px; font-size: 1.4rem; }
.jaufruf p { margin: 0; max-width: 62ch; line-height: 1.6; }

/* ------------------------------------------------------------ Unterseiten */
.jhero { padding: 10px 0 22px; }
.jhero--schmal { text-align: left; }
.jobs .jhero h1 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); margin: 0 0 10px; }
.jhero p { font-size: 1.04rem; line-height: 1.6; color: var(--text-leise); margin: 0; max-width: 560px; }
.jhero__knoepfe { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* Kopf einer Anzeige */
.jstelle__kopf { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.jobs .jstelle__kopf h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.jobs .karte h2 { font-size: 1.15rem; margin-top: 22px; }
.jobs .karte > h2:first-child { margin-top: 0; }
.jobs .marker { background: var(--app-rost); color: #fff; border-radius: 3px; letter-spacing: .04em; }
.jobs .marker--gut  { background: var(--gut-grund);  color: var(--gut); }
.jobs .marker--warn { background: var(--warn-grund); color: var(--warn); }

/* ------------------------------------------------------------ Fuß */
.jfuss p { max-width: 640px; margin: 0 auto 8px; }
.jobs .jfuss a { color: var(--text-leise); }
.jobs .jfuss a:hover { color: var(--app-rost); }

@media (max-width: 620px) {
  .jnav a:not(.knopf) { display: none; }
  .jnav { padding: 0; background: none; }
  /* Auf dem Handy reicht der Name; die Handschriftzeile würde den Knopf umbrechen. */
  .jobs .app-kopf__zusatz { display: none; }
  .jnav .knopf { white-space: nowrap; }
  .jband__innen { padding: 30px 12px 30px; }
  .jband__innen > * { margin-left: 18px; margin-right: 18px; }
  .jband__text { font-size: 1rem; }
  .jfilter { width: 100%; }
  .jfilter__feld { flex: 1 1 130px; }
  .jfilter select { width: 100%; min-width: 0; }
  .jstellen { grid-template-columns: 1fr; }
  .jaufruf { padding: 22px 18px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .jstelle { transition: none; }
  .jstelle:hover { transform: none; }
}

/* Selbstvorstellung des Betriebs unter der Anzeige — kommt aus dem Profil */
.jbetrieb {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--app-rand);
}

/* Was der Betrieb bietet — Symbol UND Beschriftung. Ein Symbol allein muesste
   man erraten, und auf dem Handy gibt es kein MouseOver; der ausfuehrliche
   Satz steht im title. */
.bietet {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bietet li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 10px;
  border: 1px solid var(--app-rand);
  border-radius: 999px;
  background: var(--app-grund);
  font-size: .88rem;
  line-height: 1.2;
  cursor: help;
}
.bietet li .symbol { color: var(--app-rost); flex: none; }

/* Ausbildungs-Codex */
.codex { margin: 0 0 22px; padding-left: 1.4em; }
.codex li { margin-bottom: 16px; }
.codex li::marker { color: var(--app-rost); font-weight: 700; }
.jobs .codex h2 { margin: 0 0 4px; font-size: 1.05rem; }
.codex p { margin: 0; }

/* Ein Merkmal, hinter dem eine Seite steht, ist anklickbar */
.bietet li.ist-verlinkt { cursor: pointer; border-color: var(--app-rost); }
.bietet li.ist-verlinkt a {
  display: inline-flex; align-items: center; gap: 7px;
  color: inherit; text-decoration: none;
}
.bietet li.ist-verlinkt:hover { background: var(--blau-hell); }
.bietet li.ist-verlinkt a:hover { text-decoration: underline; }
