/* ============================================================
   FECH GMBH · Unterseiten (Impressum, Datenschutz, Stellenanzeigen, 404)
   Schlank und ohne Skripte. Schriften und Farben wie die Startseite
   (website-entwurf/assets/site.css): Der Build vergleicht die Farbwerte
   und warnt, wenn sie auseinanderlaufen. Der Fußbereich ist eine Kopie
   der Footer-Regeln aus website-entwurf/assets/content.css.
   ============================================================ */
@font-face { font-family: "Poppins"; src: url("fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Orbitron"; src: url("fonts/orbitron-700.woff2") format("woff2"); font-weight: 500 900; font-display: swap; }

:root {
  --ink: #14181f;
  --ink2: #1b212b;
  --card: #262b35;
  --line-d: rgba(255,255,255,.1);
  --paper: #f4f5f2;
  --white: #fff;
  --text: #20242c;
  --muted: #5b6270;
  --line: #e1e4de;
  --acc: #8ec700;
  --acc-d: #76a600;
  --acc-ink: #131a05;
  --on-d: #fff;
  --on-d-muted: rgba(255,255,255,.72);
  --r: 14px;
  --wrap: 1200px;
  --us-hd: 76px;
  --us-lese: 860px;
}
@media (max-width: 900px) { :root { --us-hd: 64px; } }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-padding-top: calc(var(--us-hd) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.orb { font-family: "Orbitron", "Poppins", sans-serif; letter-spacing: .02em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.us-wrap { max-width: calc(var(--us-lese) + 48px); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap, .us-wrap { padding: 0 16px; } }

.us-skip {
  position: fixed; left: 16px; top: 10px; z-index: 120; transform: translate3d(0, -160%, 0);
  padding: 10px 16px; border-radius: 10px; background: var(--acc); color: var(--acc-ink);
  font-weight: 700; font-size: .9rem; text-decoration: none;
}
.us-skip:focus, .us-skip:focus-visible { transform: none; outline: 2px solid #fff; outline-offset: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--acc); color: var(--acc-ink);
  font-weight: 700; font-size: 1rem; min-height: 52px; padding: 0 26px; border-radius: 10px; border: 0; text-decoration: none;
  cursor: pointer; font-family: inherit; transition: background .15s, transform .15s;
}
.btn:hover { background: #9ad600; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--on-d); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--acc); color: var(--acc); background: transparent; }
.btn.line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px #c9cec3; }
.btn.line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: #fff; }

/* ---------- Kopfleiste: Logo, Zurück-Link, Telefon, Anfrage ---------- */
.us-hd {
  position: sticky; top: 0; z-index: 80; color: #fff; background: rgba(20, 24, 31, .96);
  -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.us-hd-bar { height: var(--us-hd); max-width: var(--wrap); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 22px; }
.us-logo { flex: 0 0 auto; display: block; line-height: 0; border-radius: 6px; }
.us-logo img { height: 44px; width: auto; }
.us-back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .8);
  font-size: .9rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color .2s;
}
.us-back svg { width: 16px; height: 16px; flex: 0 0 auto; stroke: var(--acc); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.us-back:hover { color: #fff; }
.us-back:hover svg { transform: translateX(-3px); }
.us-hd-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.us-phone { display: inline-flex; align-items: center; gap: 9px; min-width: 44px; min-height: 44px; justify-content: center; text-decoration: none; color: #fff; font-weight: 600; font-size: .9rem; white-space: nowrap; border-radius: 99px; }
.us-phone .us-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); transition: box-shadow .2s, background .2s; }
.us-phone:hover .us-ic { box-shadow: inset 0 0 0 1px var(--acc); background: rgba(142, 199, 0, .12); }
.us-phone svg { width: 16px; height: 16px; stroke: var(--acc); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.us-hd-cta .btn { min-height: 44px; padding: 0 18px; font-size: .9rem; white-space: nowrap; }
.us-hd a:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; }
.us-hd .btn:focus-visible { outline-color: #fff; }
@media (max-width: 900px) { .us-hd-bar { gap: 16px; } .us-logo img { height: 38px; } .us-back { padding-left: 16px; } .us-phone-nr { display: none; } }
@media (max-width: 600px) { .us-hd-bar { padding: 0 16px; gap: 12px; } .us-back { padding-left: 12px; font-size: .86rem; } .us-hd-cta .btn { display: none; } }

/* ---------- Seitenkopf ---------- */
.us-kopf { background: var(--ink); color: var(--on-d); padding: clamp(40px, 7vw, 84px) 0 clamp(36px, 6vw, 68px); position: relative; overflow: hidden; }
.us-kopf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--acc-d), var(--acc) 40%, rgba(142, 199, 0, 0)); }
.us-kicker { display: inline-block; color: var(--acc); font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.us-kopf h1 { font-size: clamp(1.75rem, 5.2vw, 3.2rem); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; overflow-wrap: break-word; hyphens: auto; }
.us-kopf h2 { font-size: clamp(1.5rem, 4.2vw, 2.5rem); line-height: 1.15; font-weight: 700; color: var(--acc); margin-top: 6px; overflow-wrap: break-word; }
.us-kopf p:not(.us-kicker) { margin-top: 22px; max-width: 68ch; font-size: clamp(1rem, 1.6vw, 1.1rem); color: var(--on-d-muted); }

/* ---------- Inhalt ---------- */
.us-rumpf { padding: clamp(28px, 5vw, 64px) 0 clamp(64px, 9vw, 112px); }
.us-karte { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 5vw, 56px); box-shadow: 0 30px 70px -50px rgba(20, 24, 31, .35); }
.us-prose { font-size: 1rem; overflow-wrap: break-word; }
.us-prose > :first-child { margin-top: 0; }
.us-prose > :last-child { margin-bottom: 0; }
.us-prose h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); line-height: 1.25; font-weight: 700; margin: 2.2em 0 .7em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.us-prose h2:first-child { padding-top: 0; border-top: 0; }
.us-prose h3 { font-size: 1.14rem; line-height: 1.3; font-weight: 700; margin: 1.9em 0 .55em; }
.us-prose h4 { font-size: 1rem; line-height: 1.35; font-weight: 600; margin: 1.5em 0 .4em; }
.us-prose h2 + h3, .us-prose h3 + h4 { margin-top: 1em; }
.us-prose p { margin: 0 0 1em; }
.us-prose ul, .us-prose ol { margin: 0 0 1.1em; padding: 0; list-style: none; display: grid; gap: .5em; }
.us-prose li { position: relative; padding-left: 1.5em; }
.us-prose ul > li::before { content: ""; position: absolute; left: .2em; top: .62em; width: .46em; height: .46em; border-radius: 2px; background: var(--acc); }
.us-prose ol { counter-reset: us; }
.us-prose ol > li { counter-increment: us; }
.us-prose ol > li::before { content: counter(us) "."; position: absolute; left: 0; font-weight: 600; color: var(--acc-d); }
.us-prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--acc-d); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; hyphens: none; }
.us-prose a:hover { color: #47650a; }
.us a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
.us-recht .us-prose p, .us-recht .us-prose li { color: #2c313b; }
/* Lange Rechtsbegriffe auf schmalen Bildschirmen trennen (Adressen in Links nie) */
@media (max-width: 600px) { .us-recht .us-prose { hyphens: auto; } }

/* Stellenanzeige: Listen als Haken, Bewerbung als dunkle Karte */
.us-stelle .us-prose ul > li { padding-left: 1.9em; }
.us-stelle .us-prose ul > li::before { left: 0; top: .28em; width: 1.15em; height: 1.15em; border-radius: 50%; background: #eef7d9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234c6b00' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7 10 16l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat; }
.us-stelle .us-prose > h3:first-child { margin-top: 0; }
.us-bewerben { margin-top: 26px; background: var(--ink); color: var(--on-d); border-radius: 18px; padding: clamp(22px, 4vw, 36px); }
.us-prose .us-bewerben p { color: var(--on-d-muted); margin: 0 0 18px; max-width: 60ch; }
.us-bewerben-akt { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.us-prose .us-bewerben-akt a.us-tel { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.us-prose .us-bewerben-akt a.us-tel:hover { color: var(--acc); }
.us-prose .us-bewerben a.btn { color: var(--acc-ink); text-decoration: none; }
.us-prose .us-bewerben .us-klein { font-size: .84rem; margin: 18px 0 0; }
.us-prose .us-bewerben .us-klein a { color: #fff; text-decoration-color: var(--acc); }
.us-bewerben a:focus-visible { outline-color: #fff; }
.us-weiter { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

/* 404 */
.us-404 .us-kopf h1 span { color: var(--acc); }
.us-prose .us-ziele { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 22px 0 0; }
.us-prose .us-ziele li { padding: 0; }
.us-prose .us-ziele li::before { content: none; }
.us-prose .us-ziele a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; text-decoration: none; transition: border-color .2s, background .2s; }
.us-prose .us-ziele a:hover { border-color: var(--acc-d); background: #fff; color: var(--text); }
.us-prose .us-ziele a span { color: var(--acc-d); }

/* ---------- Fußbereich (wie Startseite, Regeln aus content.css) ---------- */
.ct-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.ct-foot { background: #0b0e12; color: var(--on-d-muted); padding: clamp(64px, 8vw, 104px) 0 76px; font-size: .9rem; overflow-wrap: break-word; line-height: 1.6; }
.ct-foot-top { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(36px, 6vw, 88px); }
.ct-foot-logo { display: inline-block; }
.ct-foot .ct-foot-logo img { height: 52px; width: auto; margin: 0 0 20px; }
.ct-foot-brand p { max-width: 36ch; }
.ct-foot-seal { margin-top: 18px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
.ct-foot-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ct-foot-nav h2 { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 16px; line-height: 1.2; }
.ct-foot-nav ul { list-style: none; display: grid; gap: 9px; padding: 0; margin: 0; }
.ct-foot-nav address { font-style: normal; margin-bottom: 12px; line-height: 1.6; }
.ct-foot a { color: var(--on-d-muted); text-decoration: none; }
.ct-foot a:hover { color: var(--acc); }
.ct-foot a[aria-current="page"] { color: #fff; }
.ct-foot a:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.ct-foot-mid { margin-top: clamp(40px, 6vw, 64px); padding-top: 26px; border-top: 1px solid var(--line-d); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.ct-social { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0; }
.ct-social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-d); color: #fff; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.ct-social a:hover { border-color: var(--acc); color: var(--acc); transform: translateY(-2px); }
.ct-social svg { width: 18px; height: 18px; fill: currentColor; }
.ct-foot .ct-foot-schueco img { height: 34px; width: auto; margin: 0; opacity: .85; transition: opacity .2s; }
.ct-foot-schueco:hover img { opacity: 1; }
.ct-foot-bottom { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-d); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; }
.ct-foot-legal { display: flex; gap: 20px; }
@media (max-width: 900px) { .ct-foot-top { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ct-foot-nav { grid-template-columns: 1fr 1fr; } .ct-foot-nav > div:last-child { grid-column: 1 / -1; } }
@media (max-width: 760px), (pointer: coarse) {
  .ct-foot-legal a { display: inline-flex; align-items: center; min-height: 44px; }
  .ct-foot-nav ul { gap: 0; }
  .ct-foot-nav li > a, .ct-foot-nav li > span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
  .ct-foot-bottom { align-items: center; }
  .ct-foot-schueco { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .us-hd, .ct-foot, .us-skip, .us-weiter { display: none !important; }
  body { background: #fff; }
  .us-kopf { background: #fff; color: #000; padding: 0 0 12px; }
  .us-kopf h2, .us-kicker { color: #000; }
  .us-karte { border: 0; box-shadow: none; padding: 0; }
}
