/*
Theme Name: H&S Personaldienstleistungen
Theme URI: https://www.personal-h-s.de
Author: H&S Personaldienstleistungen GmbH
Description: Industrielles Theme fuer H&S Personaldienstleistungen GmbH (Arbeitnehmerueberlassung). Benoetigt das Plugin "H&S Personal Core".
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: hs-personal
*/

:root {
  --brand: #161c21;
  --brand-foreground: #f2f0ec;
  --accent: #7cc043;
  --accent-dark: #56922c;
  --accent-foreground: #10161a;
  --steel: #dfe3e6;
  --bg: #e7eaec;
  --fg: #161c21;
  --card: #f3f5f6;
  --muted: #55606a;
  --border: #c6ccd1;
  --destructive: #c1402a;
  --texture-line: rgb(0 0 0 / 0.06);
}

html.dark {
  --brand: #f2f0ec;
  --brand-foreground: #12171b;
  --steel: #232b33;
  --bg: #12171b;
  --fg: #e8e6e1;
  --card: #1a2127;
  --muted: #97a3ab;
  --border: #2c353d;
  --destructive: #e0563f;
  --texture-line: rgb(255 255 255 / 0.04);
}

* { box-sizing: border-box; border-color: var(--border); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Barlow", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: "Bebas Neue", "Barlow Condensed", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0;
  color: var(--brand);
}
a { color: inherit; text-decoration: none; }
p { line-height: 1.65; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font: inherit; color: inherit; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.section { padding: 72px 0; }
.section--steel { background: var(--steel); position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--accent); }
.eyebrow.no-line::before { display: none; }
.texture-grid {
  background-image:
    linear-gradient(to right, var(--texture-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--texture-line) 1px, transparent 1px);
  background-size: 48px 48px;
}
.texture-stripes {
  background-image: repeating-linear-gradient(-45deg,
    rgb(124 192 67 / .16) 0, rgb(124 192 67 / .16) 10px,
    transparent 10px, transparent 20px);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 28px; font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; cursor: pointer;
  border: 0; background: var(--accent); color: var(--accent-foreground);
}
.btn:hover { opacity: .9; }
.btn--ghost { background: transparent; border: 2px solid var(--border); color: var(--brand); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--block { width: 100%; justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; }
.topbar { background: var(--steel); border-bottom: 1px solid var(--border); font-size: .75rem; color: var(--muted); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; text-transform: uppercase; letter-spacing: .06em; }
.topbar a { color: var(--accent); font-weight: 700; }
.headbar { background: var(--bg); border-bottom: 1px solid var(--border); }
.headbar .container { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 16px; }
.site-logo img { height: 56px; width: auto; }
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 8px 12px; font-size: .82rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted);
}
.main-nav a:hover { color: var(--accent); }
.main-nav a.is-active { color: var(--brand); border-bottom: 2px solid var(--accent); }
.head-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--brand); }
.mobile-nav { display: none; background: var(--bg); border-bottom: 1px solid var(--border); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 12px 16px; font-weight: 600; text-transform: uppercase; }

.theme-toggle {
  width: 52px; height: 28px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); position: relative; cursor: pointer;
}
.theme-toggle span {
  position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 999px;
  background: var(--accent); transition: transform .2s;
}
html.dark .theme-toggle span { transform: translateX(24px); }

@media (max-width: 1023px) {
  .main-nav, .headbar .btn { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 767px) { .topbar { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero > img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; opacity: .8; }
html.dark .hero > img { opacity: .45; }
.hero .overlay { position: absolute; inset: 0; background: linear-gradient(to right, var(--bg), rgba(0,0,0,0) 130%); }
.hero .inner { position: relative; padding: 96px 0; }
.hero h1 { font-size: clamp(3rem, 8vw, 6rem); max-width: 900px; }
.hero .accent { color: var(--accent); }
.hero p { max-width: 620px; font-size: 1.05rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-rule { height: 8px; position: relative; }

.page-hero { background: var(--steel); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.page-hero .inner { position: relative; padding: 64px 0; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-top: 10px; }
.page-hero p { max-width: 640px; color: var(--muted); }

/* Grids / cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-tight { gap: 1px; background: var(--border); }
.grid-tight > * { background: var(--bg); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--border); padding: 26px; }
.card h3 { font-size: 1.6rem; margin-top: 14px; }
.card p { font-size: .92rem; color: var(--muted); margin: 8px 0 0; }
.card:hover { border-color: var(--accent); }
.icon { color: var(--accent); font-size: 1.5rem; line-height: 1; }

.stats { background: var(--steel); border-bottom: 1px solid var(--border); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 36px 12px; text-align: center; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; }
.stat .value { font-family: "Bebas Neue", sans-serif; font-size: 3.2rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat .label { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); margin-top: 6px; }
@media (max-width: 640px) { .stats .container { grid-template-columns: repeat(2, 1fr); } }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.tile { position: relative; overflow: hidden; border: 1px solid var(--border); min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; }
.tile img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; opacity: .7; transition: transform .5s, opacity .3s; }
.tile:hover img { transform: scale(1.05); opacity: .85; }
.tile .shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), rgba(0,0,0,0) 90%); }
.tile .body { position: relative; padding: 28px; }
.tile h3 { font-size: 2rem; margin-top: 12px; }

.quote { font-family: "Bebas Neue", sans-serif; font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; line-height: 1.1; color: var(--brand); }

/* Job list */
.jobfilter { background: var(--card); border: 1px solid var(--border); padding: 20px; display: grid; grid-template-columns: 2fr 1.4fr auto auto; gap: 12px; align-items: end; }
@media (max-width: 900px) { .jobfilter { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 2px;
}
.field textarea { min-height: 120px; }
.autocomplete { position: relative; }
.autocomplete ul { position: absolute; z-index: 30; top: 100%; left: 0; right: 0; margin: 2px 0 0; padding: 0; list-style: none; background: var(--card); border: 1px solid var(--border); max-height: 240px; overflow: auto; }
.autocomplete li { padding: 10px 14px; cursor: pointer; font-size: .9rem; }
.autocomplete li:hover, .autocomplete li.active { background: var(--accent); color: var(--accent-foreground); }

.job-card { display: block; background: var(--card); border: 1px solid var(--border); padding: 24px; }
.job-card:hover { border-color: var(--accent); }
.job-card h3 { font-size: 1.7rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; background: var(--steel); border: 1px solid var(--border); padding: 5px 10px; margin: 6px 6px 0 0; }
.chip--accent { background: var(--accent); color: var(--accent-foreground); border-color: var(--accent); }

.factgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.factgrid > div { background: var(--card); padding: 18px; }
.factgrid .k { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.factgrid .v { font-weight: 700; margin-top: 4px; }
@media (max-width: 900px) { .factgrid { grid-template-columns: repeat(2, 1fr); } }

.joblayout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .joblayout { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 130px; }
.prose h2 { font-size: 1.9rem; margin: 32px 0 10px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; line-height: 1.6; }

.formbox { background: var(--card); border: 1px solid var(--border); padding: 28px; }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .formgrid { grid-template-columns: 1fr; } }
.checkline { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: .9rem; }
.notice { padding: 14px 16px; border-left: 4px solid var(--accent); background: var(--steel); margin-bottom: 20px; }
.notice--error { border-color: var(--destructive); }

/* Footer */
.site-footer { background: var(--steel); border-top: 4px solid var(--accent); margin-top: 80px; position: relative; }
.site-footer .cols { position: relative; display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 40px; padding: 60px 0; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: "Barlow", sans-serif; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; font-size: .9rem; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); font-size: .75rem; color: var(--muted); }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 20px 16px; }
.ai-hint { text-align: center; font-size: .65rem; opacity: .7; padding-bottom: 20px; }

/* Cookie banner */
.cookie-banner {
  position: fixed; inset: auto 0 0 0; z-index: 100; background: var(--card);
  border-top: 3px solid var(--accent); padding: 20px 0; box-shadow: 0 -10px 40px rgb(0 0 0 / .2);
}
.cookie-banner .container { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.cookie-banner p { margin: 0; max-width: 640px; font-size: .9rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-settings { display: none; width: 100%; border-top: 1px solid var(--border); margin-top: 14px; padding-top: 14px; }
.cookie-settings.open { display: block; }

/* ---------- Stellenanzeigen: Filter ---------- */
.job-filter {
	display: grid;
	grid-template-columns: 1.4fr 1fr .7fr auto;
	gap: 14px;
	align-items: end;
	background: var(--card);
	border: 1px solid var(--border);
	padding: 20px;
}
.job-filter .field { position: relative; }
.job-filter label {
	display: block;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted-foreground);
	margin-bottom: 6px;
}
.job-filter input,
.job-filter select {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid var(--border);
	background: var(--background);
	color: inherit;
	font: inherit;
}
.job-filter button { height: 44px; }

@media (max-width: 900px) {
	.job-filter { grid-template-columns: 1fr; }
}

/* ---------- Stellenanzeigen: Detail ---------- */
.job-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 36px;
	align-items: start;
}
.job-aside { position: sticky; top: 110px; }
.facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1px;
	background: var(--border);
	border: 1px solid var(--border);
}
.facts .fact { background: var(--card); padding: 16px 18px; }
.facts .k {
	display: block;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted-foreground);
}
.facts .v { display: block; margin-top: 5px; font-weight: 600; }
.badge {
	display: inline-block;
	margin-top: 10px;
	padding: 4px 10px;
	font-size: .7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	background: var(--accent);
	color: var(--accent-foreground);
}
.share {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	align-items: center;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--border);
}
.share a { font-size: .82rem; font-weight: 600; }

@media (max-width: 980px) {
	.job-layout { grid-template-columns: 1fr; }
	.job-aside { position: static; }
}
.icon { display:inline-flex; align-items:center; justify-content:center; width:48px; height:48px; background: rgb(124 192 67 / .14); border:1px solid rgb(124 192 67 / .4); }
.icon svg { display:block; }
.icon--sm { width:36px; height:36px; flex-shrink:0; }
.icon { color: var(--accent); flex-shrink:0; }
