/*
Theme Name: Stas Group
Theme URI: https://stasgruppe.com
Author: Stas Group s.r.o.
Description: Firmenwebseite der Stas Group s.r.o. – Gerüstbau, Montageteams und Bauleistungen in Deutschland und Österreich. Einseitige Startseite mit Leistungen, Ablauf, Einsatzgebieten, Karriere (CZ/SK) und Kontaktformular.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: stas-group
*/

/* ---------- Tokens ---------- */
:root {
	--ink: #1C1F24;
	--ink-2: #262a31;
	--ink-3: #33383f;
	--accent: #E5531A;
	--accent-dark: #c4430f;
	--paper: #F4F3EF;
	--white: #ffffff;
	--muted: #5c626b;
	--muted-on-dark: #a9adb4;
	--line: rgba(28, 31, 36, .12);
	--line-dark: rgba(255, 255, 255, .12);
	--radius: 6px;
	--wrap: 1200px;
	--font: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--shadow: 0 1px 2px rgba(28,31,36,.06), 0 8px 24px rgba(28,31,36,.06);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; padding: 10px 16px; background: var(--white); z-index: 1000; left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo__icon { width: 40px; height: auto; flex: none; }
.logo__icon .bar { fill: currentColor; }
.logo__icon .bar--accent { fill: var(--accent); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-weight: 800; font-size: 25px; letter-spacing: .01em; }
.logo__sub { font-weight: 500; font-size: 11.5px; letter-spacing: .42em; margin-top: 5px; padding-left: 2px; }
.logo--light { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 15px 26px; border-radius: var(--radius); border: 2px solid transparent;
	font: 700 15px/1 var(--font); letter-spacing: .02em; text-decoration: none;
	cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-3); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(244, 243, 239, .92);
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); position: relative; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--accent); transition: right .25s; }
.nav ul a:hover::after { right: 0; }
.nav .btn { padding: 12px 20px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; }
.hero::before {
	content: ""; position: absolute; inset: 0;
	background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
	background-size: 64px 64px; opacity: .35;
	mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 112px 24px 120px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 22px; height: 8px; background: var(--accent); flex: none; }
.hero .eyebrow { color: var(--muted-on-dark); }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); letter-spacing: -.02em; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: 19px; color: #d3d6db; max-width: 560px; margin-bottom: 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 28px 40px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.hero__fact strong { display: block; font-size: 22px; font-weight: 800; }
.hero__fact span { font-size: 14px; color: var(--muted-on-dark); }

.stairs { display: flex; flex-direction: column; align-items: flex-end; gap: clamp(14px, 2vw, 26px); }
.stairs span { display: block; height: clamp(34px, 4.4vw, 58px); background: var(--white); border-radius: 2px; animation: stair-in .9s cubic-bezier(.2,.8,.2,1) both; }
.stairs span:nth-child(1) { width: 37%; background: var(--accent); animation-delay: .45s; }
.stairs span:nth-child(2) { width: 58%; animation-delay: .3s; }
.stairs span:nth-child(3) { width: 79%; animation-delay: .15s; }
.stairs span:nth-child(4) { width: 100%; }
@keyframes stair-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .stairs span { animation: none; } html { scroll-behavior: auto; } }

/* Hero mit Drohnenvideo – Vollbild hinter der Überschrift */
.hero--media { min-height: clamp(580px, 88vh, 900px); display: flex; align-items: center; }
.hero--media::before { display: none; }
.hero__bg { position: absolute; inset: 0; overflow: hidden; background: var(--ink); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; max-width: none; display: block; }
.hero--media .hero__bg::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		linear-gradient(90deg, rgba(28,31,36,.92) 0%, rgba(28,31,36,.82) 28%, rgba(28,31,36,.45) 46%, rgba(28,31,36,.08) 64%, rgba(28,31,36,0) 100%),
		linear-gradient(0deg, rgba(28,31,36,.75) 0%, rgba(28,31,36,0) 32%),
		linear-gradient(180deg, rgba(28,31,36,.45) 0%, rgba(28,31,36,0) 18%);
}
.hero--media .hero__inner { grid-template-columns: minmax(0, 560px); width: 100%; }
.hero--media h1 { text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero--media .hero__lead { text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.hero--media .hero__facts { border-top-color: rgba(255,255,255,.22); }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; margin-left: -13px; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; }
.hero__scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: scroll-dot 1.8s ease-in-out infinite; }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 960px) {
	.hero--media { min-height: 0; }
	.hero__video { object-position: 68% center; }
	.hero--media .hero__bg::after { background: linear-gradient(0deg, rgba(28,31,36,.95) 0%, rgba(28,31,36,.78) 45%, rgba(28,31,36,.35) 100%); }
	.hero--media .hero__inner { padding-top: 200px; }
	.hero__scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero__scroll::after { animation: none; } }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--ink); color: var(--white); }
.section--dark .eyebrow { color: var(--muted-on-dark); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head h2 { font-size: clamp(32px, 4vw, 48px); }
.section__head p { font-size: 18px; color: var(--muted); }
.section--dark .section__head p { color: var(--muted-on-dark); }

/* Leistungen */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__num { font-weight: 800; font-size: 14px; color: var(--accent); letter-spacing: .1em; margin-bottom: 40px; }
.card h3 { font-size: 21px; }
.card p { color: var(--muted); font-size: 16px; margin: 0; }

/* Warum */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
.why__item { border-top: 2px solid var(--ink); padding-top: 20px; }
.why__item h3 { font-size: 19px; margin-bottom: 8px; }
.why__item p { color: var(--muted); font-size: 16px; margin: 0; }
.why__quote { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 44px 40px; position: sticky; top: 108px; }
.why__quote p { font-size: 24px; font-weight: 700; line-height: 1.35; margin-bottom: 28px; }
.why__quote .stairs { width: 120px; gap: 8px; margin-bottom: 32px; }
.why__quote .stairs span { height: 12px; animation: none; }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { padding: 0 28px 0 0; position: relative; }
.step__marker { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.step__marker b { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--white); font-size: 18px; }
.step__marker i { flex: 1; height: 1px; background: var(--line-dark); }
.step:last-child .step__marker i { display: none; }
.step h3 { font-size: 20px; }
.step p { color: var(--muted-on-dark); font-size: 16px; margin: 0; }

/* Einsatzgebiete */
.regions { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.region-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.region-list li { padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.region-list li span { color: var(--muted); font-weight: 500; font-size: 14px; }
.flags { display: flex; gap: 16px; }
.flag { flex: 1; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 28px; }
.flag strong { display: block; font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.flag span { color: var(--muted); font-size: 15px; }
.flag--accent { background: var(--accent); border-color: var(--accent); color: var(--white); }
.flag--accent span { color: rgba(255,255,255,.85); }

/* Karriere */
.career { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.career .eyebrow { display: flex; }
.lang-switch { display: inline-flex; border: 1px solid var(--line-dark); border-radius: 999px; padding: 4px; margin-bottom: 28px; }
.lang-switch button { background: none; border: 0; color: var(--muted-on-dark); font: 700 13px/1 var(--font); letter-spacing: .12em; padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
[data-lang-block] { display: none; }
[data-lang-block].is-active { display: block; }
.benefits { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.benefits li { display: flex; gap: 14px; align-items: flex-start; }
.benefits li::before { content: ""; width: 14px; height: 6px; background: var(--accent); margin-top: 11px; flex: none; }
.jobs { display: grid; gap: 12px; align-content: start; }
.job { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); text-decoration: none; transition: border-color .2s, background .2s; }
.job:hover { border-color: var(--accent); background: var(--ink-3); }
.job > div > strong { display: block; font-size: 18px; color: var(--white); }
.job > div > span { display: block; color: var(--muted-on-dark); font-size: 14px; margin-top: 2px; }
.job svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.jobs__label { font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-on-dark); margin: 16px 0 4px; }
.jobs__label:first-child { margin-top: 0; }

.career h2 { font-size: clamp(32px, 4vw, 48px); }
.career__lead { color: var(--muted-on-dark); font-size: 18px; }
[data-lang-inline][hidden] { display: none; }

/* Kontakt */
.section__head--tight { margin-bottom: 0; }
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.contact__details { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 22px; }
.contact__details li { display: flex; gap: 16px; align-items: flex-start; }
.contact__details svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.contact__details small { display: block; font-size: 13px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.contact__details a { text-decoration: none; font-weight: 600; }
.contact__details a:hover { color: var(--accent); }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form__full { grid-column: 1 / -1; }
.form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.form input, .form select, .form textarea {
	width: 100%; font: 400 16px/1.4 var(--font); color: var(--ink);
	padding: 13px 14px; border: 1px solid #d5d4cf; border-radius: var(--radius); background: var(--paper);
	transition: border-color .2s, background .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.form textarea { min-height: 140px; resize: vertical; }
.form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.form__consent input { width: auto; margin-top: 4px; }
.form__hp { position: absolute; left: -9999px; }
.notice { grid-column: 1 / -1; padding: 14px 18px; border-radius: var(--radius); font-weight: 600; }
.notice--ok { background: #e7f4ea; color: #1d5b2c; }
.notice--err { background: #fbe9e3; color: #8a2a0c; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-on-dark); padding: 72px 0 32px; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.site-footer h4 { color: var(--white); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer__claim { margin-top: 20px; max-width: 320px; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; font-size: 14px; }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--ink); color: var(--white); padding: 72px 0 64px; }
.page-hero h1 { font-size: clamp(34px, 4.5vw, 52px); margin: 0; }
.page-content { padding: 64px 0 112px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin-top: 1.8em; }
.prose h3 { font-size: 20px; margin-top: 1.5em; }
.prose a { color: var(--accent-dark); }
.prose ul { padding-left: 1.2em; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td { padding: 8px 12px 8px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose td:first-child { color: var(--muted); width: 38%; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.cards { grid-template-columns: repeat(2, 1fr); }
	.why { grid-template-columns: 1fr; gap: 48px; }
	.why__quote { position: static; }
	.steps { grid-template-columns: repeat(2, 1fr); gap: 48px 0; }
	.step:nth-child(2) .step__marker i { display: none; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
	.nav { position: fixed; inset: 76px 0 auto 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s; z-index: -1; }
	.nav.is-open { transform: none; }
	.nav ul { flex-direction: column; gap: 0; }
	.nav ul a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
	.nav ul a::after { display: none; }
	.nav .btn { margin-top: 20px; }
	.nav-toggle { display: block; }
	.hero__inner { grid-template-columns: 1fr; padding: 72px 24px 80px; }
	.hero__visual { order: -1; max-width: 300px; }
	.regions, .career, .contact { grid-template-columns: 1fr; gap: 48px; }
	.section { padding: 80px 0; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	.hero__inner { padding: 56px 16px 64px; }
	.hero__visual { max-width: 200px; }
	.hero__lead { font-size: 17px; }
	.hero__ctas .btn { flex: 1 1 100%; }
	.cards, .steps, .why__list, .region-list { grid-template-columns: 1fr; }
	.step .step__marker i { display: none; }
	.flags { flex-direction: column; }
	.form { grid-template-columns: 1fr; padding: 24px 20px; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.why__quote { padding: 32px 24px; }
	.why__quote p { font-size: 20px; }
	.logo__name { font-size: 22px; }
	.logo__icon { width: 34px; }
}
