/* Wildeshausen · Jobbörse — Gestaltung
   Übernimmt Farben und Formensprache der App: rot #ba092f, weiß, eckig,
   IBM Plex Sans (self-hosted), Klickflächen ≥ 44 px. */

@font-face {
  font-family: 'PlexSans';
  src: url('fonts/plex.woff2') format('woff2-variations'),
       url('fonts/plex.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #ba092f;
  --accent-ink: #8f0724;
  --ink: #161618;
  --ink-2: #4d4e53;
  --muted: #5f6067;
  --line: #e6e6e9;
  --line-strong: #d4d4d9;
  --surface: #ffffff;
  --side: #f4f4f6;
  --tap: 44px;
  --pad: 16px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'PlexSans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--side);
}

a { color: var(--ink); }
a:hover { color: var(--accent); }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 20;
  padding: 10px 14px;
  background: #fff;
  border: 2px solid var(--accent);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Kopf ------------------------------------------------------ */
.kopf {
  padding: 28px var(--pad) 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.kopf.ist-schmal { padding-bottom: 16px; }

/* Wortmarke wie im Logo: Turm links, „WILDESHAUSEN“ über „APP“. */
.marke {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.marke img { flex: none; height: 40px; width: auto; object-fit: contain; }
.marke-text { display: block; line-height: 1.05; }
.marke-text b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink);
}
.marke-text i {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Kleine Zeile über der Überschrift: sagt, welcher Teil der App das ist. */
.kicker {
  margin: 14px 0 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.unter {
  margin: 8px 0 0;
  max-width: 56ch;
  color: var(--ink-2);
}

/* ---------- Grundraster ----------------------------------------------- */
main {
  max-width: 780px;
  margin: 0 auto;
  padding: var(--pad) var(--pad) 48px;
  display: grid;
  gap: 24px;
}

/* ---------- Hinweise -------------------------------------------------- */
.hinweis {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--ink);
}
.hinweis.ist-gut { border-left-color: #1f7a3d; }
.hinweis.ist-fehler { border-left-color: var(--accent); }
.hinweis-titel { margin: 0 0 6px; font-size: 18px; }
.hinweis p { margin: 0 0 6px; }
.hinweis ul { margin: 6px 0 0; padding-left: 20px; }

/* ---------- Listen ---------------------------------------------------- */
.liste {
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.liste-kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.liste-kopf h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}
.zaehler { margin: 0; font-size: 14px; color: var(--muted); }

.stellen {
  margin: 0;
  padding: 0;
  list-style: none;
}
.stelle {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.stelle:last-child { border-bottom: 0; padding-bottom: 4px; }

.stelle-art {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}
.stelle-titel {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}
.stelle-firma {
  margin: 4px 0 8px;
  font-size: 15px;
  color: var(--ink-2);
}
.stelle-text {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--ink);
}
.stelle-daten {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0 0 12px;
  font-size: 14px;
}
.stelle-daten dt {
  display: inline;
  font-weight: 700;
  color: var(--muted);
  margin-right: 6px;
}
.stelle-daten dd { display: inline; margin: 0; }

.stelle-kontakt {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.stelle-bewerbung {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--ink-2);
}

.knopf,
.senden {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
}
.knopf:hover, .senden:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.knopf.ist-leise, .senden.ist-leise {
  color: var(--ink);
  background: #fff;
  border-color: var(--line-strong);
}
.knopf.ist-leise:hover, .senden.ist-leise:hover {
  border-color: var(--ink);
  background: #fff;
  color: var(--ink);
}

.knopf:focus-visible,
.senden:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.leer {
  margin: 16px 0 4px;
  color: var(--ink-2);
}

/* ---------- Formular -------------------------------------------------- */
.formular {
  padding: 18px 16px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.formular h2 {
  margin: 0 0 6px;
  font-size: 22px;
}
.formular-text {
  margin: 0 0 18px;
  color: var(--ink-2);
}

.feld { margin: 0 0 18px; }
.feld label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
}
.feld input[type="text"],
.feld input[type="email"],
.feld input[type="tel"],
.feld input[type="url"],
.feld select,
.feld textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 0;
}
.feld textarea { min-height: 150px; resize: vertical; }
.feld input[aria-invalid="true"],
.feld select[aria-invalid="true"],
.feld textarea[aria-invalid="true"] {
  border-color: var(--accent);
  border-width: 2px;
}
.feld-hinweis {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.feld-fehler {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #a3061f;
}

.feld-einwilligung {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  background: #fafafb;
  border: 1px solid var(--line);
}
.feld-einwilligung input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}
.feld-einwilligung label {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}
.klein { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }

.unsichtbar {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.senden { width: 100%; min-height: 48px; font-size: 17px; }
.entscheidung {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.entscheidung .senden { width: auto; flex: 1 1 220px; }

/* ---------- Fuß ------------------------------------------------------- */
.fuss {
  padding: 20px var(--pad) 28px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.fuss a { color: var(--ink-2); }
.fuss p { margin: 0 0 6px; }

@media (max-width: 480px) {
  body { font-size: 16.5px; }
  h1 { font-size: 28px; }
  .stelle-titel { font-size: 19px; }
  .entscheidung .senden { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media (forced-colors: active) {
  .knopf, .senden, .hinweis, .liste, .formular, .feld input, .feld select, .feld textarea {
    border: 1px solid CanvasText;
  }
  .knopf, .senden { background: ButtonFace; color: ButtonText; }
}
/* ---------- Sprachwechsler ------------------------------------------------ */
.kopf-zeile {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}
.sprachen {
  display: flex;
  gap: 4px;
  margin: 0;
  flex-wrap: wrap;
}
.sprache-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 10px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.sprache-link:hover { color: var(--accent); }
.sprache-link.ist-aktiv {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--accent);
}
.sprache-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

@media (max-width: 520px) {
  .kopf-zeile { gap: 6px; }
  .sprache-link { font-size: 13.5px; padding: 0 7px; }
}
/* ---------- Einbetten ---------------------------------------------------- */
.einbetten {
  padding: 18px 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.einbetten h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: 0; }
.einbetten-text { margin: 0 0 14px; color: var(--ink-2); }
.einbetten-code { display: grid; gap: 8px; margin-bottom: 16px; }
.einbetten-label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.einbetten pre {
  margin: 0;
  padding: 12px;
  overflow-x: auto;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
  background: #f6f6f7;
  border: 1px solid var(--line-strong);
}
.einbetten-knopf { width: auto; justify-self: start; }
