/* karriere.hag-quartier.de — eigenes Stylesheet der HAG-QUARTIER GmbH.
   Markenelemente: HAG-Rot, Logo, Fellix (Überschriften/Fließtext), PP Supply Mono (Kennzeichnungen). */

@font-face { font-family: "Fellix"; src: url(fonts/FellixUprightsVF.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Supply Mono"; src: url(fonts/PPSupplyMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --rot: #ee3f4b;
  --rot-dunkel: #c92a36;
  --grau: #eeedec;
  --papier: #eeedec;
  --linie: #dddddd;
  --tinte: #1d2326;
  --text: #575757;
  --leise: #8a8f93;
  --weiss: #fff;
  --rand: clamp(20px, 5vw, 64px);
  --breite: 1240px;
  --mono: "Supply Mono", ui-monospace, monospace;
  --sans: "Fellix", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--weiss); color: var(--text); font: 400 17px/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { color: var(--tinte); font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1.02; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }
.nw { white-space: nowrap; }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rahmen { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.marke { font: 400 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--rot); }
.marke--hell { color: rgba(255,255,255,.78); }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; gap: .6em; padding: 15px 22px; border: 0; border-radius: 0;
  background: var(--rot); color: var(--weiss); font: 700 14px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.knopf:hover { background: var(--rot-dunkel); }
.knopf:active { transform: translateY(1px); }
.knopf::after { content: "→"; font-weight: 400; transition: transform .2s; }
.knopf:hover::after { transform: translateX(3px); }
.knopf--leer { background: transparent; color: var(--tinte); box-shadow: inset 0 0 0 1.5px currentColor; }
.knopf--leer:hover { background: var(--rot); color: var(--weiss); box-shadow: none; }
.knopf--zurueck::after { content: none; }
.knopf--zurueck::before { content: "←"; font-weight: 400; }
.knopf[disabled] { opacity: .5; cursor: wait; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linie); }
.kopf .rahmen { display: flex; align-items: center; gap: 28px; height: 110px; }
.kopf__logo img { height: 65px; width: auto; }
.kopf__nav { display: flex; gap: 24px; margin-left: auto; font: 400 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.kopf__nav a { text-decoration: none; color: var(--tinte); padding: 6px 0; border-bottom: 1.5px solid transparent; }
.kopf__nav a:hover { border-color: var(--rot); }
.kopf .knopf { padding: 12px 16px; font-size: 13px; }
@media (max-width: 760px) { .kopf__nav { display: none; } .kopf .knopf { margin-left: auto; } .kopf .rahmen { height: 76px; } .kopf__logo img { height: 42px; } }

/* Bühne Startseite */
.buehne { position: relative; min-height: min(78vh, 760px); display: flex; align-items: flex-end; color: var(--weiss); background: var(--tinte); overflow: hidden; }
.buehne__bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 62%; }
.buehne::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29,35,38,.6), rgba(29,35,38,0) 70%), linear-gradient(180deg, rgba(29,35,38,.1) 30%, rgba(29,35,38,.8)); }
.buehne .rahmen { position: relative; z-index: 1; padding-bottom: clamp(40px, 8vw, 96px); padding-top: 120px; }
.buehne h1 { color: var(--weiss); font-size: clamp(34px, 8vw, 112px); max-width: 12ch; margin: 18px 0 22px; }
.buehne p { max-width: 46ch; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.88); margin-bottom: 30px; }

/* Abschnitte */
.abschnitt { padding: clamp(56px, 8vw, 112px) 0; }
.abschnitt--papier { background: var(--papier); }
.abschnitt__kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: clamp(28px, 4vw, 48px); }
.abschnitt__kopf h2 { font-size: clamp(32px, 4.6vw, 60px); margin-top: 12px; }
.abschnitt__kopf p { max-width: 44ch; margin: 0; }

/* Stellenliste */
.stellen { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--tinte); }
.stelle { border-bottom: 1px solid var(--linie); }
.stelle a { display: grid; grid-template-columns: 56px 1fr auto 40px; align-items: center; gap: 20px; padding: 26px 0; text-decoration: none; transition: padding .25s, background .25s; }
.stelle a:hover { background: var(--weiss); padding-left: 16px; padding-right: 16px; }
.stelle__nr { font: 400 13px/1 var(--mono); color: var(--leise); }
.stelle__titel { font: 700 clamp(20px, 2.6vw, 32px)/1.1 var(--sans); text-transform: uppercase; letter-spacing: .02em; color: var(--tinte); }
.stelle__ort { display: block; margin-top: 6px; font: 400 13px/1.3 var(--mono); color: var(--leise); text-transform: none; letter-spacing: 0; }
.stelle__pfeil { font-size: 26px; color: var(--rot); transition: transform .25s; }
.stelle a:hover .stelle__pfeil { transform: translateX(6px); }
.schilder { display: flex; flex-wrap: wrap; gap: 6px; }
.schild { font: 400 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; padding: 7px 9px; background: var(--grau); color: var(--tinte); }
.schild--rot { background: var(--rot); color: var(--weiss); }
@media (max-width: 640px) {
  .stelle a { grid-template-columns: 1fr 28px; gap: 10px 14px; }
  .stelle__nr { display: none; }
  .stelle a .schilder { grid-column: 1; grid-row: 2; }
  .stelle__pfeil { grid-column: 2; grid-row: 1 / span 2; }
}

/* Drei Schritte */
.schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; }
.schritte li { list-style: none; padding: 28px 28px 32px 0; border-top: 1.5px solid var(--tinte); margin-right: 28px; }
.schritte li::before { counter-increment: s; content: "0" counter(s); display: block; font: 400 13px/1 var(--mono); color: var(--rot); margin-bottom: 18px; }
.schritte h3 { font-size: 22px; margin-bottom: 10px; }
.schritte p { margin: 0; }
.schritte { padding: 0; margin: 0; }
@media (max-width: 760px) { .schritte { grid-template-columns: 1fr; } .schritte li { margin-right: 0; } }

/* Vorteile */
.vorteile { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--linie); border: 1px solid var(--linie); }
.vorteil { background: var(--weiss); padding: 30px 28px; }
.vorteil h3 { font-size: 19px; margin-bottom: 10px; }
.vorteil p { margin: 0; font-size: 16px; }
.vorteil__zeichen { display: block; width: 28px; height: 3px; background: var(--rot); margin-bottom: 20px; }
@media (max-width: 900px) { .vorteile { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .vorteile { grid-template-columns: 1fr; } }

/* Initiativ-Band */
.band { background: var(--grau); color: var(--tinte); padding-bottom: 48px; }
.band .rahmen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.band h2 { color: var(--tinte); font-size: clamp(28px, 3.6vw, 46px); max-width: 18ch; }


/* Stellenseite */
.stellenkopf { position: relative; display: flex; align-items: flex-end; min-height: min(72vh, 660px); background: var(--grau); color: var(--weiss); overflow: hidden; }
.stellenkopf__bild { position: absolute; inset: 0; }
.stellenkopf__bild img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 25%; }
.stellenkopf__bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29,35,38,.6), rgba(29,35,38,0) 70%), linear-gradient(180deg, rgba(29,35,38,.15) 30%, rgba(29,35,38,.8)); }
.stellenkopf__text { position: relative; z-index: 1; width: 100%; max-width: var(--breite); margin: 0 auto; padding: 120px var(--rand) clamp(40px, 6vw, 80px); }
.stellenkopf__text .zurueck { position: absolute; top: 32px; left: var(--rand); font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.85); text-decoration: none; }
.stellenkopf__text .zurueck:hover { color: var(--weiss); }
.stellenkopf__text p { max-width: 46ch; color: rgba(255,255,255,.9); }
.stellenkopf h1 { color: var(--weiss); font-size: clamp(30px, 4.6vw, 70px); max-width: 20ch; margin: 16px 0 24px; hyphens: manual; }
.stellenkopf .schilder { margin-bottom: 30px; }
.stellenkopf .schild { background: var(--weiss); color: var(--tinte); }
.stellenkopf .schild--rot { background: var(--rot); color: var(--weiss); }
.stellentext { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.stellentext__einleitung p:first-child { font: 700 clamp(22px, 2.4vw, 30px)/1.2 var(--sans); color: var(--tinte); text-transform: uppercase; letter-spacing: .02em; }
.liste h2 { font-size: 22px; margin: 0 0 14px; }
.liste + .liste { margin-top: 40px; }
.liste ul { list-style: none; margin: 0; padding: 0; }
.liste li { position: relative; padding: 11px 0 11px 30px; border-bottom: 1px solid var(--linie); }
.liste li::before { content: "→"; position: absolute; left: 0; color: var(--rot); }
@media (max-width: 860px) { .stellentext { grid-template-columns: 1fr; } }

/* Kurzbewerbung */
.bewerben { background: var(--grau); }
.bewerben__aufbau { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.bewerben__intro h2 { font-size: clamp(32px, 4.4vw, 56px); margin: 12px 0 18px; }
.bewerben__intro ul { list-style: none; padding: 0; margin: 24px 0 0; font: 400 14px/1.4 var(--mono); color: var(--tinte); }
.bewerben__intro li { padding: 10px 0; border-top: 1px solid rgba(29,35,38,.2); }
.bewerben__intro li::before { content: "✓  "; color: var(--rot); }
@media (max-width: 900px) { .bewerben__aufbau { grid-template-columns: 1fr; } }

.kb { background: var(--weiss); box-shadow: 0 18px 50px rgba(29,35,38,.12); }
.kb__zaehler { white-space: nowrap; }
.kb__kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 26px; background: var(--rot); color: var(--weiss); font: 400 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.kb__balken { height: 4px; background: var(--linie); }
.kb__balken span { display: block; height: 100%; width: 0; background: var(--rot-dunkel); transition: width .35s ease; }
.kb__schritt { border: 0; margin: 0; padding: 30px 26px 8px; min-width: 0; }
.kb__frage { float: left; width: 100%; display: block; padding: 0; margin-bottom: 20px; font: 700 clamp(21px, 2.3vw, 28px)/1.15 var(--sans); color: var(--tinte); text-transform: uppercase; letter-spacing: .02em; }
.kb__hinweis { clear: both; display: block; margin: -12px 0 18px; font: 400 13px/1.4 var(--mono); color: var(--leise); }
.kb__frage + * { clear: both; }
.kb__optionen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kb__option { position: relative; display: block; cursor: pointer; }
.kb__option input { position: absolute; opacity: 0; pointer-events: none; }
.kb__option span { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 14px 16px; border: 1.5px solid var(--linie); background: var(--weiss); color: var(--tinte); font-weight: 600; line-height: 1.25; transition: border-color .15s, background .15s; }
.kb__option span::before { content: ""; flex: 0 0 18px; height: 18px; border: 1.5px solid var(--leise); border-radius: 50%; transition: all .15s; }
.kb__option input[type=checkbox] + span::before { border-radius: 0; }
.kb__option:hover span { border-color: var(--tinte); }
.kb__option input:checked + span { border-color: var(--rot); background: #fdf0f1; }
.kb__option input:checked + span::before { border-color: var(--rot); background: var(--rot); box-shadow: inset 0 0 0 3px var(--weiss); }
.kb__option input:focus-visible + span { outline: 3px solid var(--rot); outline-offset: 2px; }
@media (max-width: 560px) { .kb__optionen { grid-template-columns: 1fr; } }

.kb__felder { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--linie); border-left: 1px solid var(--linie); }
.kb__feld { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.kb__feld--breit { grid-column: 1 / -1; }
.kb__feld label { font: 400 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--leise); }
.kb__feld input, .kb__feld textarea { width: 100%; border: 0; padding: 0; background: transparent; color: var(--tinte); font: 600 17px/1.4 var(--sans); outline: none; resize: vertical; }
.kb__feld input::placeholder, .kb__feld textarea::placeholder { color: #c3c0bb; }
.kb__feld:focus-within { background: #fafafa; box-shadow: inset 3px 0 0 var(--rot); }
.kb__feld.ist-fehler { box-shadow: inset 3px 0 0 var(--rot); background: #fdf0f1; }
@media (max-width: 560px) { .kb__felder { grid-template-columns: 1fr; } }

.kb__upload { display: block; margin-top: 16px; padding: 22px; border: 1.5px dashed var(--leise); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.kb__upload:hover, .kb__upload.ist-ueber { border-color: var(--rot); background: #fdf0f1; }
.kb__upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kb__upload strong { display: block; color: var(--tinte); }
.kb__upload small { font: 400 12px/1.4 var(--mono); color: var(--leise); }
.kb__dateien { list-style: none; margin: 10px 0 0; padding: 0; font: 400 13px/1.4 var(--mono); }
.kb__dateien li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--linie); color: var(--tinte); }
.kb__dateien button { border: 0; background: none; color: var(--rot); cursor: pointer; font: inherit; }

.kb__zustimmung { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.kb__zustimmung input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--rot); flex: 0 0 auto; }
.kb__falle { position: absolute; left: -9999px; }

.kb__fuss { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 22px 26px 28px; }
.kb__meldung { margin: 0 26px 22px; font-size: 15px; color: var(--rot-dunkel); }
.kb__meldung:empty { display: none; }
.kb__fertig { padding: 48px 26px 56px; text-align: center; }
.kb__fertig h3 { font-size: clamp(26px, 3vw, 36px); margin: 16px 0 14px; }
.kb__fertig .haken { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--rot); color: var(--weiss); font-size: 30px; }

/* Ohne JavaScript: alle Schritte untereinander, nur Absenden */
.kb:not(.kb--js) .kb__weiter, .kb:not(.kb--js) .kb__zurueck, .kb:not(.kb--js) .kb__balken, .kb:not(.kb--js) .kb__zaehler { display: none; }
.kb:not(.kb--js) .kb__schritt + .kb__schritt { border-top: 1px solid var(--linie); }
.kb--js .kb__schritt { display: none; }
.kb--js .kb__schritt.ist-aktiv { display: block; animation: rein .3s ease; }
.kb--js .kb__senden { display: none; }
.kb--js.ist-letzter .kb__senden { display: inline-flex; }
.kb--js.ist-letzter .kb__weiter { display: none; }
.kb--js.ist-erster .kb__zurueck { visibility: hidden; }
@keyframes rein { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* Fuß: rot mit gezackter Oberkante, Adresskarte mit welliger Kante */
.fuss { position: relative; background: var(--rot); color: var(--weiss); margin-top: 0; }
.fuss::before { content: ""; position: absolute; left: 0; right: 0; top: -47px; height: 48px; background: var(--rot);
  clip-path: polygon(0 40%, 34% 100%, 62% 52%, 85% 18%, 100% 30%, 100% 100%, 0 100%); }
.fuss__raster { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px 32px; padding-top: 56px; padding-bottom: 72px; align-items: start; }
.fuss__logo { grid-column: 1 / -1; }
.fuss__logo img { height: 96px; width: auto; filter: brightness(0) invert(1); }
.fuss__titel { display: inline-block; margin: 0 0 22px; padding: 5px 7px 4px; background: var(--weiss); color: var(--tinte);
  font: 700 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.fuss__liste { list-style: none; margin: 0; padding: 0; }
.fuss__liste li { margin: 0 0 10px; }
.fuss__liste a { display: inline-flex; gap: 12px; align-items: baseline; color: var(--weiss); text-decoration: none;
  font: 600 13px/1.35 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.fuss__liste a::before { content: "›"; font-size: 18px; line-height: 0; transform: translateY(1px); }
.fuss__liste a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fuss__karte { grid-row: 2; grid-column: 4; align-self: start; margin-top: -8px; background: #f7f7f7; color: var(--text); padding: 46px 34px 44px; font-size: 15px; line-height: 1.55;
  clip-path: polygon(0 4%, 24% 2.5%, 66% 0, 100% 3%, 100% 97%, 64% 96%, 32% 100%, 0 98%); }
.fuss__titel--dunkel { background: var(--weiss); }
.fuss__karte p { margin: 0 0 18px; } .fuss__karte p:last-child { margin: 0; }
.fuss__karte a { color: var(--tinte); text-decoration: none; white-space: nowrap; } .fuss__karte a:hover { text-decoration: underline; }
.fuss__raster { grid-template-columns: 1fr 1fr .4fr 1.3fr; }
.fuss__unten { background: #f7f7f7; color: var(--leise); }
.fuss__unten .rahmen { display: flex; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.fuss__recht { display: flex; gap: 28px; }
.fuss__unten a { color: var(--leise); text-decoration: none; } .fuss__unten a:hover { color: var(--tinte); }
@media (max-width: 980px) { .fuss__raster { grid-template-columns: 1fr 1fr; } .fuss__karte { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 560px) { .fuss__raster { grid-template-columns: 1fr; } .fuss__unten .rahmen { flex-direction: column; }  }

/* Textseite (Datenschutz) */
.textseite { max-width: 760px; }
.textseite h1 { font-size: clamp(32px, 4.4vw, 52px); margin: 12px 0 32px; }
.textseite h2 { font-size: 20px; margin: 36px 0 12px; }

/* Einleitung und Stellenkacheln (Vorschlag, Aufbau wie hag-quartier.de) */
.mittig { text-align: center; margin-bottom: 40px; }
.mittig h2 { display: inline-block; background: var(--weiss); padding: 5px 9px; margin-top: 14px; font-size: clamp(22px, 2.2vw, 28px); }
.kacheln { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.kachel { display: flex; flex-direction: column; background: var(--weiss); text-decoration: none; color: inherit; transition: transform .25s;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%); }
.kachel:hover { transform: translateY(-2px); }
.kachel__bild { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--grau); }
.kachel__bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform .5s; }
.kachel:hover .kachel__bild img { transform: scale(1.04); }
.kachel__bild .schild { position: absolute; top: 12px; left: 12px; }
.kachel__text { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 24px 24px 44px; }
.kachel__titel { font: 700 clamp(18px, 1.7vw, 22px)/1.2 var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--tinte); }
.kachel__ort { grid-column: 1; font: 400 13px/1.3 var(--mono); color: var(--leise); }
.kachel__pfeil { grid-column: 2; grid-row: 1; color: var(--rot); font-size: 24px; line-height: 1; transition: transform .25s; }
.kachel:hover .kachel__pfeil { transform: translateX(4px); }
@media (max-width: 760px) { .kacheln { grid-template-columns: 1fr; } }
.intro { position: relative; z-index: 2; margin-top: -90px; padding-bottom: clamp(40px, 6vw, 80px); }
.intro__kasten { display: grid; grid-template-columns: 1.4fr 1fr; background: var(--grau); padding: 40px; gap: 56px; align-items: center; }
.intro__bild { aspect-ratio: 16 / 10; overflow: hidden; clip-path: polygon(80px 0, 100% 0, 100% calc(100% - 100px), calc(100% - 100px) 100%, 0 100%, 0 80px); }
.intro__bild img { width: 100%; height: 100%; object-fit: cover; }
.intro__text p { font-size: 16px; }
.kasten-titel { display: inline-block; background: var(--weiss); padding: 5px 9px; margin: 14px 0 18px -9px; font-size: clamp(22px, 2.2vw, 28px); }
.intro__text .knopf { margin-top: 8px; box-shadow: 0 3px 12px rgba(98,98,98,.35); }
@media (max-width: 900px) { .intro { margin-top: 0; } .intro__kasten { grid-template-columns: 1fr; padding: 20px; gap: 24px; } }
