/* =========================================================================
   Design42 — Front page (Consulting für KMU: AI & Workplace Management)
   Loaded only on the front page. Everything is scoped under .d42-home.
   ========================================================================= */

.d42-home {
	--d42-ink: #0f172a;
	--d42-ink-soft: #475569;
	--d42-muted: #64748b;
	--d42-line: #e2e8f0;
	--d42-bg: #ffffff;
	--d42-tint: #f6f7fb;
	--d42-accent: #6366f1;   /* indigo – AI */
	--d42-accent-2: #14b8a6; /* teal – Workplace */
	--d42-dark: #0b1020;
	--d42-radius: 18px;
	--d42-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
	--d42-shadow-hover: 0 2px 4px rgba(15, 23, 42, .05), 0 22px 40px -18px rgba(79, 70, 229, .35);

	font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--d42-ink);
	background: var(--d42-bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

/* Kadence wraps content in a boxed article — undo that on the front page. */
.home #inner-wrap,
.home .content-container,
.home .site-container { max-width: none; padding: 0; }
.home .content-area { margin: 0; }

.d42-home *,
.d42-home *::before,
.d42-home *::after { box-sizing: border-box; }

.d42-home h1,
.d42-home h2,
.d42-home h3 {
	color: inherit;
	font-family: inherit;
	letter-spacing: -0.025em;
	line-height: 1.15;
	margin: 0;
}
.d42-home p { margin: 0; }
.d42-home a { text-decoration: none; }

.d42-wrap {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- Buttons & small bits ---------- */
.d42-btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .85rem 1.4rem;
	border-radius: 999px;
	background: #fff;
	color: var(--d42-dark) !important;
	font-weight: 600;
	font-size: .975rem;
	border: 1px solid transparent;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.d42-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(99, 102, 241, .6); }
.d42-btn--ghost {
	background: rgba(255, 255, 255, .06);
	color: #fff !important;
	border-color: rgba(255, 255, 255, .22);
}
.d42-btn--ghost:hover { background: rgba(255, 255, 255, .12); box-shadow: none; }
.d42-btn--small { padding: .5rem 1rem; font-size: .9rem; }

.d42-kicker {
	display: inline-block;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	background: linear-gradient(90deg, var(--d42-accent), var(--d42-accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin-bottom: .75rem !important;
}

.d42-gradient-text {
	background: linear-gradient(90deg, #a5b4fc 0%, #5eead4 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.d42-link {
	font-weight: 600;
	color: var(--d42-accent) !important;
	white-space: nowrap;
}
.d42-link span { display: inline-block; transition: transform .2s ease; }
.d42-link:hover span { transform: translateX(3px); }

.d42-card {
	background: #fff;
	border: 1px solid var(--d42-line);
	border-radius: var(--d42-radius);
	box-shadow: var(--d42-shadow);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* ---------- Hero ---------- */
.d42-hero {
	position: relative;
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(60rem 30rem at 85% -10%, rgba(99, 102, 241, .45), transparent 60%),
		radial-gradient(40rem 26rem at -5% 110%, rgba(20, 184, 166, .35), transparent 60%),
		var(--d42-dark);
	padding-bottom: 88px;
}
.d42-hero::before {
	/* subtle grid */
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
	pointer-events: none;
}
.d42-hero__glow {
	position: absolute;
	width: 520px;
	height: 520px;
	right: -120px;
	top: 120px;
	border-radius: 50%;
	background: conic-gradient(from 180deg, #6366f1, #14b8a6, #a855f7, #6366f1);
	filter: blur(110px);
	opacity: .28;
	animation: d42-float 14s ease-in-out infinite alternate;
	pointer-events: none;
}
@keyframes d42-float {
	to { transform: translate(-80px, 40px) rotate(40deg); }
}

.d42-nav {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 22px;
	padding-bottom: 22px;
}
.d42-nav__logo img { display: block; height: 30px; width: auto; }
.d42-nav__links {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.d42-nav__links a:not(.d42-btn) {
	color: rgba(255, 255, 255, .78);
	font-size: .95rem;
	font-weight: 500;
	transition: color .2s ease;
}
.d42-nav__links a:not(.d42-btn):hover { color: #fff; }

.d42-hero__body {
	position: relative;
	z-index: 2;
	padding-top: 72px;
}
.d42-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	padding: .4rem .9rem;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 999px;
	background: rgba(255, 255, 255, .05);
	backdrop-filter: blur(6px);
	font-size: .85rem;
	font-weight: 500;
	color: rgba(255, 255, 255, .85);
	margin-bottom: 1.6rem !important;
}
.d42-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #5eead4;
	box-shadow: 0 0 0 4px rgba(94, 234, 212, .18);
}
.d42-hero__title {
	font-size: clamp(2.3rem, 5.6vw, 4.4rem);
	font-weight: 750;
	max-width: 900px;
}
.d42-hero__lead {
	margin-top: 1.5rem !important;
	max-width: 640px;
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	color: rgba(255, 255, 255, .74);
}
.d42-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: .8rem;
	margin-top: 2.2rem;
}
.d42-hero__facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	max-width: 760px;
	margin: 4rem 0 0;
	padding: 0;
	list-style: none;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 16px;
	overflow: hidden;
	background: rgba(255, 255, 255, .1);
}
.d42-hero__facts li {
	padding: 1.1rem 1.25rem;
	background: rgba(11, 16, 32, .75);
	backdrop-filter: blur(8px);
}
.d42-hero__facts strong { display: block; font-size: 1.05rem; }
.d42-hero__facts span { font-size: .88rem; color: rgba(255, 255, 255, .6); }

/* ---------- Sections ---------- */
.d42-section { padding: 104px 0; }
.d42-section--tint { background: var(--d42-tint); }

.d42-section__head {
	max-width: 680px;
	margin-bottom: 3rem;
}
.d42-section__head h2 {
	font-size: clamp(1.9rem, 3.6vw, 2.75rem);
	font-weight: 750;
}
.d42-section__head > p:not(.d42-kicker) {
	margin-top: 1rem !important;
	color: var(--d42-ink-soft);
	font-size: 1.08rem;
}
.d42-section__head--row {
	max-width: none;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

/* ---------- Services ---------- */
.d42-services {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.d42-service { padding: 28px; position: relative; overflow: hidden; }
.d42-service::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--d42-c), transparent);
	opacity: 0;
	transition: opacity .25s ease;
}
.d42-service--ai { --d42-c: var(--d42-accent); --d42-c-soft: #eef2ff; }
.d42-service--workplace { --d42-c: var(--d42-accent-2); --d42-c-soft: #e6fbf8; }
.d42-service:hover { transform: translateY(-4px); box-shadow: var(--d42-shadow-hover); border-color: transparent; }
.d42-service:hover::after { opacity: 1; }
.d42-service__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.4rem;
}
.d42-service__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--d42-c-soft);
	color: var(--d42-c);
}
.d42-tag {
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--d42-c);
	background: var(--d42-c-soft);
	padding: .25rem .6rem;
	border-radius: 999px;
}
.d42-service h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .6rem; }
.d42-service p { color: var(--d42-ink-soft); font-size: .97rem; }

/* Process */
.d42-steps {
	margin-top: 56px;
	padding: 40px;
	border-radius: 24px;
	background: linear-gradient(135deg, #0f172a, #1e1b4b);
	color: #fff;
}
.d42-steps__title { font-size: 1.35rem; font-weight: 700; margin-bottom: 1.75rem !important; }
.d42-steps ol {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}
.d42-steps li { position: relative; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .16); }
.d42-steps__num {
	display: block;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .1em;
	color: #a5b4fc;
	margin-bottom: .35rem;
}
.d42-steps strong { display: block; font-size: 1.05rem; margin-bottom: .35rem; }
.d42-steps p { color: rgba(255, 255, 255, .66); font-size: .93rem; }

/* ---------- Blog ---------- */
.d42-posts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
.d42-post { overflow: hidden; display: flex; flex-direction: column; }
.d42-post:hover { transform: translateY(-4px); box-shadow: var(--d42-shadow-hover); }
.d42-post__media {
	display: block;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #e0e7ff, #ccfbf1);
	overflow: hidden;
}
.d42-post__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}
.d42-post:hover .d42-post__media img { transform: scale(1.04); }
.d42-post__body { padding: 22px 24px 26px; }
.d42-post time { font-size: .82rem; color: var(--d42-muted); font-weight: 500; }
.d42-post h3 { font-size: 1.15rem; font-weight: 700; margin: .45rem 0 .6rem; }
.d42-post h3 a { color: var(--d42-ink) !important; }
.d42-post h3 a:hover { color: var(--d42-accent) !important; }
.d42-post p { color: var(--d42-ink-soft); font-size: .95rem; }

/* ---------- Arbeiten ---------- */
.d42-work {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.d42-work__item {
	position: relative;
	display: block;
	border-radius: var(--d42-radius);
	overflow: hidden;
	background:
		radial-gradient(20rem 14rem at 80% 0%, rgba(99, 102, 241, .28), transparent 70%),
		linear-gradient(160deg, #141a33, var(--d42-dark));
	aspect-ratio: 4 / 3;
	color: #fff !important;
	transition: transform .25s ease, box-shadow .25s ease;
}
.d42-work__item:hover { transform: translateY(-4px); box-shadow: var(--d42-shadow-hover); }
/* Portfolio thumbnails are mostly logos: show them whole, centred. */
.d42-work__media {
	position: absolute;
	inset: 14% 18% 30%;
}
.d42-work__media img {
	position: absolute;
	inset: 0;
	margin: auto;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	opacity: .9;
	transition: transform .5s ease, opacity .3s ease;
}
.d42-work__item:hover .d42-work__media img { transform: scale(1.06); opacity: 1; }
.d42-work__meta {
	position: absolute;
	z-index: 1;
	left: 20px;
	right: 20px;
	bottom: 18px;
}
.d42-work__meta strong { display: block; font-size: 1.1rem; }
.d42-work__meta small { font-size: .82rem; color: rgba(255, 255, 255, .7); }

/* ---------- Kontakt ---------- */
.d42-contact { background: var(--d42-tint); }
.d42-contact__grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 56px;
	align-items: start;
}
.d42-contact__intro h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 750; }
.d42-contact__intro p:not(.d42-kicker) { margin-top: 1rem !important; color: var(--d42-ink-soft); font-size: 1.05rem; }
.d42-contact__form { padding: 32px; }
.d42-contact__form .wpcf7-form p { margin: 0 0 1rem; font-size: .92rem; font-weight: 600; color: var(--d42-ink); }
.d42-contact__form input[type="text"],
.d42-contact__form input[type="email"],
.d42-contact__form input[type="tel"],
.d42-contact__form textarea {
	width: 100%;
	margin-top: .4rem;
	padding: .8rem 1rem;
	border: 1px solid var(--d42-line);
	border-radius: 12px;
	background: #f8fafc;
	font: inherit;
	font-weight: 400;
	color: var(--d42-ink);
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.d42-contact__form textarea { min-height: 140px; resize: vertical; }
.d42-contact__form input:focus,
.d42-contact__form textarea:focus {
	outline: none;
	background: #fff;
	border-color: var(--d42-accent);
	box-shadow: 0 0 0 4px rgba(99, 102, 241, .15);
}
.d42-contact__form input[type="submit"] {
	padding: .85rem 1.6rem;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--d42-accent), #4f46e5);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease;
}
.d42-contact__form input[type="submit"]:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px -10px rgba(79, 70, 229, .7);
}

/* ---------- Reveal on scroll (progressive: only when JS adds .d42-js) ---------- */
.d42-js .d42-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.d42-js .d42-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.d42-services,
	.d42-posts,
	.d42-work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.d42-steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.d42-contact__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 680px) {
	.d42-wrap { padding: 0 16px; }
	.d42-nav__links li:not(:last-child) { display: none; }
	.d42-hero__body { padding-top: 40px; }
	.d42-hero { padding-bottom: 64px; }
	.d42-hero__facts { grid-template-columns: 1fr; margin-top: 2.75rem; }
	.d42-section { padding: 72px 0; }
	.d42-services,
	.d42-posts,
	.d42-work,
	.d42-steps ol { grid-template-columns: 1fr; }
	.d42-steps { padding: 28px 22px; }
	.d42-contact__form { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.d42-hero__glow { animation: none; }
	.d42-home * { transition: none !important; }
	.d42-js .d42-reveal { opacity: 1; transform: none; }
}
