/*
Theme Name: Weidmann Karriere 2026
Author: gregermax multimedia
Author URI: https://greger.me
Description: Recruiting-Landingpage für Dach und Gerüst Weidmann mit Bewerbung in Schritten.
Version: 2026.11.7
Requires PHP: 7.4
Text Domain: weidmann-2026
*/

/* Markenschriften wie auf weidmann-gmbh.de, lokal eingebunden (OFL) */
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("fonts/montserrat-var.woff2") format("woff2");
}
@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-display: swap;
	font-weight: 200 900;
	src: url("fonts/source-sans-3-var.woff2") format("woff2");
}

:root {
	--font-head: "Montserrat", "Arial Black", Arial, sans-serif;
	--font-text: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--y: #f1c745;
	--y-light: #fbf0c9;
	--ink: #141414;
	--ink-2: #333;
	--bg: #fff;
	--bg-2: #f3f2ee;
	--line: #d6d6d2;
	--muted: #5f6061;
	--red: #b3261e;
	--r: 4px;
	--wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0; font-family: var(--font-text);
	font-size: 1.125rem; line-height: 1.55; color: var(--ink); background: var(--bg); overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); line-height: 1.12; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wk-icon { flex: none; width: 1.2em; height: 1.2em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--y); }

.wk-wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wk-wrap--text { max-width: 720px; padding: 40px 0 80px; }
.wk-page h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: .8em; }
.wk-page h2 { margin: 1.5em 0 .5em; }

.wk-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; }
.wk-skip:focus { left: 8px; }

/* Button: eckig wie das Logo */
.wk-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px;
	padding: .8em 1.5em; border: 0; border-radius: var(--r); background: var(--y); color: var(--ink);
	font: inherit; font-weight: 700; text-decoration: none; line-height: 1.15; cursor: pointer;
}
.wk-btn:hover { background: #e9bb2c; }
.wk-btn--small { min-height: 42px; padding: .5em 1em; font-size: .95rem; }
.wk-btn--block { width: 100%; }

/* Header */
.wk-header {
	position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 10px max(16px, (100vw - var(--wrap)) / 2); background: #fff; border-bottom: 1px solid var(--line);
}
.wk-header__logo img { width: 132px; height: auto; }
.wk-header .wk-btn { transition: opacity .2s; }
body.is-applying .wk-header .wk-btn { opacity: 0; pointer-events: none; }
body:not(.home) .wk-header .wk-btn { display: none; }

/* Hero: Foto + schwarzer Block wie im Logo */
.wk-hero { display: grid; background: var(--ink); color: #fff; }
.wk-hero__photo img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 35%; }
.wk-hero__panel { padding: 28px 16px 36px; border-top: 8px solid var(--y); }
.wk-hero__title { font-size: clamp(1.9rem, 5.6vw, 3.6rem); font-weight: 800; max-width: 15ch; letter-spacing: -.015em; line-height: 1.08; }
.wk-hero__lead { font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: #e8e8e8; max-width: 38ch; margin: 1rem 0 1.5rem; }
.wk-hero__note { font-size: .9rem; color: #b9b9b9; margin: .7rem 0 0; }
@media (min-width: 900px) {
	.wk-hero { grid-template-columns: 1.25fr 1fr; min-height: min(78vh, 760px); }
	.wk-hero__photo img { aspect-ratio: auto; }
	.wk-hero__panel { align-self: end; padding: 48px max(32px, (100vw - var(--wrap)) / 2) 56px 48px; border-top: 0; border-left: 8px solid var(--y); }
}

/* Zahlen */
.wk-facts { background: var(--y); }
.wk-facts__row { display: grid; grid-template-columns: repeat(3, 1fr); }
.wk-facts p { margin: 0; padding: 18px 12px 18px 0; font-size: .88rem; line-height: 1.3; }
.wk-facts p + p { padding-left: 14px; border-left: 1px solid rgba(0,0,0,.2); }
.wk-facts strong { display: block; font-size: clamp(1.2rem, 3.5vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; }

/* Abschnitte */
.wk-section { padding: clamp(48px, 8vw, 96px) 0; }
.wk-h2 { font-size: clamp(1.55rem, 3.6vw, 2.3rem); font-weight: 800; margin-bottom: 1.2rem; }
.wk-two { display: grid; gap: 8px 64px; }
@media (min-width: 900px) { .wk-two { grid-template-columns: 1fr 2fr; } }

/* Stellen als Liste */
.wk-joblist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.wk-joblist a {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 4px;
	border-bottom: 1px solid var(--line); text-decoration: none;
}
.wk-joblist strong { display: block; font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 700; letter-spacing: -.01em; }
.wk-joblist em { display: block; font-style: normal; color: var(--muted); font-size: .95rem; margin-top: 2px; }
.wk-joblist .wk-icon { width: 28px; height: 28px; padding: 4px; background: var(--y); border-radius: var(--r); }
.wk-joblist a:hover { background: var(--bg-2); }
.wk-joblist a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Ausbildung */
.wk-section--azubi { background: var(--bg-2); border-top: 1px solid var(--line); }
.wk-azubi-head { max-width: 720px; }
.wk-azubi-head .wk-sub { color: var(--ink-2); margin-bottom: 1.2rem; }
.wk-bonus { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 2rem; padding: 12px 16px; background: var(--y); border-radius: var(--r); }
.wk-bonus strong { font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; }
.wk-bonus span { font-size: .95rem; }
.wk-azubis { display: grid; gap: 16px; }
@media (min-width: 900px) { .wk-azubis { grid-template-columns: repeat(3, 1fr); } }
.wk-azubi { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: var(--r); padding: 22px 20px 20px; }
.wk-azubi h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: .6rem; }
.wk-azubi > p { color: var(--ink-2); font-size: 1rem; }
.wk-pay { width: 100%; border-collapse: collapse; margin: auto 0 .8rem; font-size: 1rem; }
.wk-pay caption { text-align: left; font-weight: 700; font-size: .9rem; padding-bottom: 6px; }
.wk-pay th, .wk-pay td { padding: 8px 0; border-top: 1px solid var(--line); }
.wk-pay th { text-align: left; font-weight: 400; color: var(--ink-2); }
.wk-pay td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.wk-azubi__school { font-size: .95rem; color: var(--muted); margin-bottom: 1rem; }
.wk-azubi-more { margin: 1.4rem 0 0; color: var(--ink-2); }
.wk-azubi-more a { font-weight: 700; text-decoration-color: var(--y); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* Fotos */
.wk-section--photos { padding: 0; }
.wk-photos { display: grid; grid-auto-flow: column; grid-auto-columns: 85vw; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.wk-photos::-webkit-scrollbar { display: none; }
.wk-photos figure { margin: 0; scroll-snap-align: start; }
.wk-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 900px) {
	.wk-photos { grid-auto-flow: row; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; overflow: visible; }
	.wk-photos figure:first-child { grid-row: span 2; }
	.wk-photos figure:first-child img { aspect-ratio: auto; height: 100%; }
	.wk-photos img { aspect-ratio: 4 / 3; }
}

/* Vorteile */
.wk-perks { margin: 0; display: grid; gap: 0 40px; }
@media (min-width: 640px) { .wk-perks { grid-template-columns: 1fr 1fr; } }
.wk-perks div { padding: 16px 0; border-top: 1px solid var(--line); }
.wk-perks dt { font-weight: 700; font-size: 1.1rem; }
.wk-perks dd { margin: 2px 0 0; color: var(--ink-2); }

/* Bewerbung */
.wk-apply { background: var(--bg-2); padding: clamp(40px, 7vw, 88px) 0; border-top: 8px solid var(--ink); }
.wk-apply__inner { width: min(100% - 32px, 560px); margin-inline: auto; }
.wk-apply__title { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; }
.wk-apply__lead { color: var(--ink-2); margin: .5rem 0 1.5rem; }
#wk-form { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: clamp(20px, 5vw, 32px); }

/* Über uns */
.wk-section--about { border-top: 1px solid var(--line); }
.wk-about p { color: var(--ink-2); max-width: 60ch; }
.wk-about__links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 600; }
.wk-about__links a { text-decoration-color: var(--y); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* Footer */
.wk-footer { background: var(--ink); color: #bdbdbd; padding: 40px 0 112px; font-size: .9rem; }
.wk-footer img { margin-bottom: 16px; }
.wk-footer p { margin: 0 0 .3em; }
.wk-footer a { color: #fff; }
@media (min-width: 900px) { .wk-footer { padding-bottom: 40px; } }

/* Handy: Bewerben-Leiste unten */
.wk-sticky { position: fixed; inset: auto 0 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s ease; }
.wk-sticky.is-visible { transform: none; }
@media (min-width: 900px) { .wk-sticky { display: none; } }

/* ============ Bewerbungsformular (CF7 #15) ============ */
.wpcf7-form { position: relative; }
.wpcf7-form .gb-intro, .gb-num { display: none; }
.gb-step { margin: 0 0 32px; }
.gb-step__head { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; margin-bottom: 16px; }
.gb-step__head em, .gb-label em { font-style: normal; font-weight: 400; color: var(--muted); font-size: .85em; }
.gb-label { display: block; font-weight: 600; margin-bottom: 6px; }
.gb-field { display: block; margin-bottom: 18px; }
.wpcf7-form-control-wrap { display: block; }

.wpcf7 input[type=text], .wpcf7 input[type=tel], .wpcf7 input[type=email], .wpcf7 textarea {
	width: 100%; font: inherit; font-size: 1.0625rem; min-height: 52px; padding: 12px 14px; border: 2px solid #8a8b8c; border-radius: var(--r);
	background: #fff; color: var(--ink); -webkit-appearance: none; appearance: none;
}
.wpcf7 textarea { min-height: 96px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 3px solid var(--ink); outline-offset: 0; box-shadow: 0 0 0 6px var(--y); }

.wk-btn, .gb-next, .wpcf7 .wpcf7-submit, .wk-joblist strong, .wk-facts strong, .wk-perks dt, .gb-step__head, .gb-done h3 { font-family: var(--font-head); }
.wk-btn, .gb-next, .wpcf7 .wpcf7-submit { font-size: 1rem; letter-spacing: .01em; }
.gb-step__head { font-size: 1.25rem; }
.wk-joblist strong { font-size: clamp(1.1rem, 2.3vw, 1.4rem); }

/* Antworten als große Auswahlfelder */
.gb-chips { display: grid; gap: 8px; }
.gb-chips .wpcf7-list-item { margin: 0; display: block; }
.gb-chips label { display: block; cursor: pointer; position: relative; }
.gb-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gb-chips .wpcf7-list-item-label {
	display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 16px; border: 2px solid var(--line); border-radius: var(--r);
	background: #fff; line-height: 1.3; user-select: none;
}
.gb-chips .wpcf7-list-item-label::before {
	content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #8a8b8c; background: #fff;
}
.wpcf7-checkbox.gb-chips .wpcf7-list-item-label::before { border-radius: 3px; }
.gb-chips label:hover .wpcf7-list-item-label { border-color: var(--ink); }
.gb-chips input:checked + .wpcf7-list-item-label { border-color: var(--ink); background: var(--y-light); font-weight: 600; }
.gb-chips input:checked + .wpcf7-list-item-label::before { border: 7px solid var(--ink); }
.wpcf7-checkbox.gb-chips input:checked + .wpcf7-list-item-label::before {
	border: 2px solid var(--ink); background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.gb-chips input:focus-visible + .wpcf7-list-item-label { outline: 3px solid var(--ink); box-shadow: 0 0 0 6px var(--y); }
.gb-chips .wpcf7-list-item.is-hidden { display: none; }

/* Absenden / Weiter */
.gb-submit { position: relative; margin-top: 8px; }
.wpcf7 .wpcf7-submit, .gb-next {
	display: block; width: 100%; min-height: 56px; padding: 14px 20px; font: inherit; font-size: 1.1rem; font-weight: 700; color: var(--ink);
	background: var(--y); border: 0; border-radius: var(--r); cursor: pointer;
}
.wpcf7 .wpcf7-submit:hover, .gb-next:hover { background: #e9bb2c; }
.wpcf7 .wpcf7-submit:disabled { opacity: .6; cursor: wait; }
.wpcf7-spinner { position: absolute; right: 16px; top: 50%; margin: -12px 0 0; }
.gb-privacy { font-size: .85rem; color: var(--muted); margin: 4px 0 12px; line-height: 1.45; }
.gb-privacy a { color: inherit; }

/* Fehler */
.wpcf7-not-valid-tip, .gb-error { display: block; color: var(--red); font-size: .95rem; font-weight: 600; margin-top: 8px; }
.gb-error { margin: 0 0 12px; }
.wpcf7 .wpcf7-not-valid { border-color: var(--red) !important; }
.gb-step.has-error .gb-chips .wpcf7-list-item-label { border-color: var(--red); }
.wpcf7 form .wpcf7-response-output { margin: 18px 0 0; padding: 12px 14px; border-radius: var(--r); border-width: 2px; font-size: .95rem; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { border-color: var(--red); background: #fbeceb; }
.wpcf7 form.sent .wpcf7-response-output { display: none; }

/* --- Schritte (nur mit JavaScript aktiv) --- */
.gb-ms .gb-step { display: none; margin: 0; }
.gb-ms .gb-step.is-active { display: block; }
.gb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: .95rem; }
.gb-back { background: none; border: 0; padding: 8px 0; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.gb-back[hidden] { display: block; visibility: hidden; }
.gb-count { color: var(--muted); }
.gb-progress { height: 4px; background: #e6e6e3; margin-bottom: 24px; }
.gb-progress__bar { height: 100%; width: 0; background: var(--ink); transition: width .25s ease; }
.gb-next { margin-top: 20px; }
.gb-skip { display: block; margin: 12px auto 0; background: none; border: 0; padding: 10px; min-height: 44px; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.gb-note { margin: 14px 0 0; padding: 12px 14px; background: var(--bg-2); border-left: 4px solid var(--ink); font-size: .95rem; }
.gb-hint { display: block; font-size: .9rem; color: var(--muted); margin: -2px 0 6px; font-weight: 400; }
.wk-apply__help { font-size: .95rem; color: var(--ink-2); margin: 16px 0 0; }
.wk-apply__help a { font-weight: 700; }
@media (max-width: 599px) {
	.wk-facts p { font-size: .8rem; padding-right: 8px; }
	.wk-facts p + p { padding-left: 10px; }
	.wk-facts strong { font-size: 1.05rem; }
}

/* Danke */
.gb-done h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 10px; }
.gb-done p { color: var(--ink-2); }

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