/*
Theme Name: Mironczyk Clean
Theme URI: https://mironczyk.de
Author: Stefan Mironczyk
Description: Schlankes Custom-Theme für mironczyk.de. Kein Page-Builder, Performance- und SEO/GEO-first. Farbwelt und Logo übernommen vom bisherigen Elementor-Kit (Blau #3154B7), technisch komplett neu aufgebaut.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: mironczyk-clean
*/

:root {
	--mz-blue: #3154b7;
	--mz-blue-dark: #24418f;
	--mz-blue-darker: #1c336f;
	--mz-gold: #c9a24b;
	--mz-ink: #161c2d;
	--mz-text: #3a4256;
	--mz-text-muted: #6b7280;
	--mz-border: #e5e2da;
	--mz-bg: #fffdf9;
	--mz-bg-alt: #f5f1e8;
	--mz-white: #ffffff;

	--mz-font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
	--mz-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--mz-font-hand: 'Architects Daughter', cursive;

	--mz-container: 1200px;
	--mz-radius: 4px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--mz-font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--mz-text);
	background: var(--mz-bg);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--mz-blue);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

h1, h2, h3, h4 {
	font-family: var(--mz-font-heading);
	font-weight: 600;
	color: var(--mz-ink);
	line-height: 1.15;
	margin: 0 0 0.55em;
	letter-spacing: -0.01em;
}

h1 {
	font-size: clamp(2.4rem, 5vw, 3.6rem);
	font-weight: 500;
	letter-spacing: -0.02em;
}

h1 em,
.mz-em {
	font-style: italic;
	font-weight: 500;
	color: var(--mz-blue);
}

h2 {
	font-size: clamp(1.6rem, 2.8vw, 2.15rem);
	margin-top: 0.2em;
	font-weight: 500;
}

h3 {
	font-size: 1.25rem;
	font-weight: 600;
	font-family: var(--mz-font-body);
}

p {
	margin: 0 0 1.2em;
}

.mz-container {
	max-width: var(--mz-container);
	margin: 0 auto;
	padding: 0 24px;
}

/* Header */
.mz-header {
	background: var(--mz-blue);
	color: var(--mz-white);
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mz-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 24px;
	gap: 24px;
}

.mz-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--mz-font-heading);
	font-weight: 600;
	font-size: 1.1rem;
	color: var(--mz-white);
}

.mz-logo img {
	height: 54px;
	width: auto;
}

.mz-nav ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
}

.mz-nav a {
	color: var(--mz-white);
	font-size: 0.95rem;
	font-weight: 500;
	padding: 8px 12px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
}

.mz-nav-icon {
	width: 16px;
	height: 16px;
	opacity: 0.85;
	flex-shrink: 0;
}

.mz-nav a:hover,
.mz-nav a.is-active,
.mz-nav .current-menu-item > a {
	background: rgba(255, 255, 255, 0.16);
	font-weight: 600;
}

.mz-nav-toggle {
	display: none;
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: var(--mz-white);
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 0.95rem;
}

/* Hero */
.mz-hero {
	position: relative;
	background: linear-gradient(160deg, var(--mz-blue) 0%, var(--mz-blue-darker) 100%);
	color: var(--mz-white);
	padding: 76px 24px 92px;
	overflow: hidden;
}

.mz-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.5px, transparent 1.5px);
	background-size: 26px 26px;
	-webkit-mask-image: linear-gradient(160deg, rgba(0, 0, 0, 0.9), transparent 70%);
	mask-image: linear-gradient(160deg, rgba(0, 0, 0, 0.9), transparent 70%);
	pointer-events: none;
}

/* Subtle film-grain texture for depth, pure CSS/SVG, no image request */
.mz-hero {
	background-image:
		linear-gradient(160deg, var(--mz-blue) 0%, var(--mz-blue-darker) 100%),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
	background-blend-mode: overlay;
}

.mz-hero::after {
	content: "";
	position: absolute;
	right: -120px;
	top: -120px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
	pointer-events: none;
}

/* Large decorative line-art doodle, bottom-right of the hero, own SVG (no
   external image request). Reads at a glance as "designed", not templated. */
.mz-hero-doodle {
	position: absolute;
	right: -40px;
	bottom: -40px;
	width: 340px;
	height: 340px;
	opacity: 0.16;
	pointer-events: none;
	z-index: 0;
}

.mz-hero .mz-container {
	max-width: 880px;
	position: relative;
	z-index: 1;
}

/* Hero split with a real hand-drawn illustration (not a photo, not a stock
   icon tile): a dominant sketched browser/search/growth-chart scene, same
   scale and contrast as the reference nestec.de hero illustrations (large,
   full-opacity ink strokes, not a small decorative afterthought). Used on
   every page hero via page.php, not just the front page. */
.mz-hero-illustrated {
	max-width: 1280px !important;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 32px;
	align-items: center;
}

.mz-hero-sketch {
	position: relative;
	justify-self: end;
	width: 100%;
	max-width: 460px;
}

.mz-hero-sketch svg {
	width: 100%;
	height: auto;
}

@media (max-width: 960px) {
	.mz-hero-illustrated {
		grid-template-columns: 1fr;
	}

	.mz-hero-sketch {
		max-width: 340px;
		margin-top: 12px;
	}
}

.mz-hero h1 {
	color: var(--mz-white);
}

.mz-hero p {
	font-size: 1.15rem;
	color: rgba(255, 255, 255, 0.92);
	max-width: 640px;
}

/* Two-column hero (photo variant, used on inner pages such as Über mich) */
.mz-hero-grid {
	max-width: 1120px !important;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 48px;
	align-items: center;
}

.mz-hero-photo {
	position: relative;
	justify-self: center;
}

.mz-hero-photo::before {
	content: "";
	position: absolute;
	inset: -18px -18px auto auto;
	width: 100%;
	height: 100%;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-radius: 18px;
	z-index: 0;
}

.mz-hero-photo img {
	position: relative;
	z-index: 1;
	width: 280px;
	height: 340px;
	object-fit: cover;
	border-radius: 18px;
	box-shadow: 0 24px 48px rgba(10, 18, 40, 0.35);
}

/* Hand-drawn annotation pill, matching the sketch style used on nestec.de
   (Architects Daughter handwriting font, tilted sticky-note pill). */
.mz-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--mz-white);
	color: var(--mz-ink);
	font-family: var(--mz-font-hand);
	font-size: 1.05rem;
	line-height: 1;
	padding: 12px 22px;
	border-radius: 999px;
	box-shadow: 0 10px 24px rgba(10, 12, 20, 0.22);
	transform: rotate(-3deg);
}

.mz-pill--alt {
	transform: rotate(2deg);
	background: var(--mz-gold);
	color: #2b220c;
}

/* Hand-drawn arrow doodle pointing at the primary CTA */
.mz-doodle-arrow {
	width: 70px;
	height: auto;
	opacity: 0.85;
	transform: rotate(6deg);
}

/* Hand-drawn scribble accents: a wavy underline for emphasised words and a
   loose circle to hand-annotate a number, in the gold accent colour. */
.mz-scribble {
	position: relative;
	white-space: nowrap;
}

.mz-scribble::after {
	content: "";
	position: absolute;
	left: -2%;
	right: -2%;
	bottom: -0.1em;
	height: 0.32em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M2 12 C 40 4, 70 18, 110 10 S 180 2, 220 12 S 270 18, 298 8' fill='none' stroke='%23c9a24b' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.mz-kicker {
	display: block;
	color: rgba(255, 255, 255, 0.85);
	font-family: var(--mz-font-body);
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	padding-left: 14px;
	border-left: 3px solid var(--mz-gold);
	margin-bottom: 18px;
}

.mz-pill {
	margin-bottom: 22px;
}

/* Stat strip (real, non-fabricated figures only). Default (dark-on-light)
   colours for use inside regular .mz-content sections; .mz-hero overrides
   below restore the light-on-dark variant for use inside the blue hero. */
.mz-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	margin-top: 36px;
	padding-top: 28px;
	border-top: 1px solid var(--mz-border);
}

.mz-stat strong {
	display: block;
	font-family: var(--mz-font-heading);
	font-size: 1.8rem;
	color: var(--mz-ink);
	line-height: 1;
}

.mz-stat span {
	display: block;
	margin-top: 6px;
	font-size: 0.85rem;
	color: var(--mz-text-muted);
}

.mz-hero .mz-stats {
	border-top-color: rgba(255, 255, 255, 0.2);
}

.mz-hero .mz-stat strong {
	color: var(--mz-white);
}

.mz-hero .mz-stat span {
	color: rgba(255, 255, 255, 0.75);
}

.mz-hero-summary {
	margin-top: 28px;
	padding: 20px 24px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: var(--mz-radius);
	font-size: 0.98rem;
}

.mz-hero-summary strong {
	display: block;
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.75);
}

/* Buttons: understated agency-style CTA, not a rounded SaaS pill */
.mz-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: none;
	color: var(--mz-white);
	font-family: var(--mz-font-body);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	font-size: 0.8rem;
	padding: 0 0 10px;
	border: none;
	border-bottom: 1.5px solid rgba(255, 255, 255, 0.55);
	text-decoration: none;
	transition: gap 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.mz-btn:hover {
	gap: 16px;
	border-color: var(--mz-white);
	text-decoration: none;
	opacity: 0.9;
}

.mz-btn-outline {
	color: var(--mz-white);
	border-bottom-color: rgba(255, 255, 255, 0.4);
}

.mz-section .mz-btn {
	color: var(--mz-ink);
	border-bottom-color: var(--mz-ink);
}

.mz-cta .mz-btn {
	color: var(--mz-white);
	border-bottom-color: rgba(255, 255, 255, 0.6);
}

.mz-cta p {
	color: rgba(255, 255, 255, 0.92);
}

.mz-cta a:not(.mz-btn) {
	color: var(--mz-white);
	text-decoration: underline;
}

/* Content sections */
.mz-section {
	padding: 64px 24px;
}

.mz-section-alt {
	background: var(--mz-bg-alt);
}

.mz-content {
	max-width: 780px;
	margin: 0 auto;
}

.mz-content:has(.mz-grid) {
	max-width: 1080px;
}

.mz-content h2:first-child {
	margin-top: 0;
}

/* Pillar / card grid (Google Ads / Performance / SEO teaser on Startseite):
   editorial numbered list, not boxed SaaS feature tiles. */
.mz-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	margin: 40px 0 0;
	border-top: 1px solid var(--mz-border);
}

.mz-card {
	position: relative;
	background: none;
	border-right: 1px solid var(--mz-border);
	padding: 34px 32px 12px;
	transition: transform 0.25s ease;
}

.mz-card:last-child {
	border-right: none;
}

.mz-card:first-child {
	padding-left: 0;
}

.mz-card:hover {
	transform: translateY(-3px);
}

.mz-card-top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 6px;
}

.mz-card-icon {
	width: 30px;
	height: 30px;
	color: var(--mz-gold);
}

.mz-card .mz-card-index {
	font-family: var(--mz-font-heading);
	font-weight: 700;
	font-size: 2.6rem;
	line-height: 1;
	color: var(--mz-border);
	transition: color 0.2s ease;
}

.mz-card:hover .mz-card-index {
	color: rgba(49, 84, 183, 0.35);
}

.mz-card h3 {
	margin-top: 0;
	color: var(--mz-ink);
}

.mz-card a.mz-card-link {
	font-weight: 600;
	font-size: 0.92rem;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

/* Value grid ("Was mich unterscheidet"): four short items, thin rule above
   each heading instead of the numbered-card treatment used for the pillar
   grid, so the two grids read as visually distinct. */
.mz-grid--4 {
	grid-template-columns: repeat(4, 1fr);
}

.mz-value {
	padding: 22px 28px 8px 0;
}

.mz-value::before {
	content: "";
	display: block;
	width: 32px;
	height: 2px;
	background: var(--mz-gold);
	margin-bottom: 16px;
}

.mz-value h3 {
	margin-top: 0;
}

.mz-value p {
	font-size: 0.95rem;
}

@media (max-width: 960px) {
	.mz-grid--4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.mz-grid--4 {
		grid-template-columns: 1fr;
	}
}

/* FAQ */
.mz-faq-item {
	border-bottom: 1px solid var(--mz-border);
	padding: 22px 0 22px 40px;
	position: relative;
}

.mz-faq-item:first-child {
	padding-top: 4px;
}

.mz-faq-item:last-child {
	border-bottom: none;
}

.mz-faq-item::before {
	content: "?";
	position: absolute;
	left: 0;
	top: 22px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--mz-blue);
	color: var(--mz-white);
	font-family: var(--mz-font-heading);
	font-size: 0.85rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mz-faq-item:first-child::before {
	top: 4px;
}

.mz-faq-item h3,
.mz-faq-item p:first-of-type strong {
	color: var(--mz-ink);
	font-size: 1.05rem;
}

/* Fact / summary box reused inside content pages */
.mz-fact-box {
	background: var(--mz-white);
	color: var(--mz-text);
	border-left: 4px solid var(--mz-blue);
	border-radius: 0 var(--mz-radius) var(--mz-radius) 0;
	padding: 20px 24px;
	margin: 24px 0;
	font-size: 0.98rem;
	line-height: 1.6;
	box-shadow: 0 8px 24px rgba(30, 41, 59, 0.1);
}

.mz-fact-box strong:first-child {
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.72rem;
	color: var(--mz-blue);
	margin-bottom: 8px;
}

/* CTA band */
.mz-cta {
	background: var(--mz-blue);
	color: var(--mz-white);
	padding: 56px 24px;
	text-align: center;
}

.mz-cta h2 {
	color: var(--mz-white);
	margin-top: 0;
}

/* Footer */
.mz-footer {
	background: var(--mz-ink);
	color: rgba(255, 255, 255, 0.75);
	padding: 40px 24px;
	font-size: 0.92rem;
}

.mz-footer a {
	color: rgba(255, 255, 255, 0.9);
}

.mz-footer-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	align-items: center;
}

.mz-footer-links ul {
	list-style: none;
	display: flex;
	gap: 18px;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 780px) {
	.mz-nav {
		display: none;
		width: 100%;
	}

	.mz-nav.is-open {
		display: block;
	}

	.mz-nav ul {
		flex-direction: column;
		padding: 12px 0;
	}

	.mz-nav-toggle {
		display: inline-block;
	}

	.mz-header-inner {
		flex-wrap: wrap;
	}

	.mz-hero {
		padding: 48px 20px 60px;
	}

	.mz-hero-grid {
		grid-template-columns: 1fr;
	}

	.mz-grid {
		grid-template-columns: 1fr;
		border-top: none;
	}

	.mz-card {
		border-right: none;
		border-bottom: 1px solid var(--mz-border);
		padding: 24px 0;
	}

	.mz-card:first-child {
		padding-left: 0;
		border-top: 1px solid var(--mz-border);
	}

	.mz-hero-photo {
		order: -1;
		margin-bottom: 8px;
	}

	.mz-hero-photo img {
		width: 200px;
		height: 240px;
	}

	.mz-section {
		padding: 44px 20px;
	}
}
