/*
Theme Name: Mackximal Child
Theme URI: https://mackximal.de
Description: Child theme für Mackximal GmbH – basierend auf Twenty Twenty-Five. Selbes Design-System wie die Next.js-Website: Navy #0e2b46, Sandy #f4dfc8, lokale Handwerker-Positionierung im Landkreis FFB.
Author: Mackximal GmbH
Author URI: https://mackximal.de
Template: twentytwentyfive
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: mackximal-child
*/

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
	--color-primary:    #0e2b46;
	--color-primary-mid:#27415d;
	--color-accent:     #f4dfc8;
	--color-accent-dark:#d7c3ad;
	--color-secondary:  #6b5c4a;
	--color-body:       #43474d;
	--color-muted:      #73777e;
	--color-surface:    #f9f9f9;
	--color-surface-2:  #f3f3f3;
	--color-border:     #e8e8e8;
	--color-white:      #ffffff;

	--gradient-signature: linear-gradient(135deg, #0e2b46 0%, #27415d 100%);

	--radius-sm:  6px;
	--radius-md:  12px;
	--radius-lg:  16px;
	--radius-xl:  20px;

	--shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
	--shadow-md:  0 4px 16px rgba(0,0,0,.08);
	--shadow-lg:  0 8px 32px rgba(0,0,0,.12);
}

/* ─── Base Reset ─────────────────────────────────────────── */
body {
	background-color: var(--color-surface);
	color: var(--color-body);
	font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
	color: var(--color-primary);
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }

p { color: var(--color-body); }

a {
	color: var(--color-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* ─── Utility Classes ────────────────────────────────────── */
.signature-gradient {
	background: var(--gradient-signature);
}

.text-primary  { color: var(--color-primary) !important; }
.text-accent   { color: var(--color-secondary) !important; }
.text-muted    { color: var(--color-muted) !important; }
.bg-primary    { background-color: var(--color-primary) !important; }
.bg-accent     { background-color: var(--color-accent) !important; }
.bg-surface    { background-color: var(--color-surface) !important; }
.bg-surface-2  { background-color: var(--color-surface-2) !important; }

/* ─── Buttons ────────────────────────────────────────────── */
.wp-block-button__link,
.wp-element-button {
	border-radius: var(--radius-sm) !important;
	font-weight: 700;
	font-size: .9rem;
	letter-spacing: 0;
	padding: 14px 28px !important;
	transition: filter .2s, transform .15s;
}

.wp-block-button__link:hover {
	filter: brightness(1.1);
	transform: translateY(-1px);
}

/* Primary button */
.wp-block-button.is-style-primary .wp-block-button__link,
.wp-block-button:not([class*="is-style-"]) .wp-block-button__link {
	background: var(--gradient-signature) !important;
	color: #fff !important;
	border: none !important;
	box-shadow: var(--shadow-md);
}

/* Secondary/ghost button */
.wp-block-button.is-style-secondary .wp-block-button__link {
	background: var(--color-surface-2) !important;
	color: var(--color-primary) !important;
	border: none !important;
}

/* White button (on dark bg) */
.wp-block-button.is-style-white .wp-block-button__link {
	background: #fff !important;
	color: var(--color-primary) !important;
	border: none !important;
}

/* ─── Cards ──────────────────────────────────────────────── */
.mxm-card {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	padding: 2.5rem;
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--color-border);
	transition: box-shadow .3s, transform .3s;
}

.mxm-card:hover {
	box-shadow: var(--shadow-lg);
	transform: translateY(-4px);
}

.mxm-card--primary {
	background: var(--gradient-signature);
	border-color: transparent;
	color: #fff;
}

.mxm-card--primary h2,
.mxm-card--primary h3,
.mxm-card--primary p { color: #fff; }

.mxm-card--accent {
	background-color: var(--color-accent);
	border-color: transparent;
}

/* ─── Badge / Label ──────────────────────────────────────── */
.mxm-badge {
	display: inline-block;
	background: var(--color-accent);
	color: var(--color-secondary);
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 4px 12px;
	border-radius: var(--radius-sm);
	margin-bottom: 1rem;
}

/* ─── Sections ───────────────────────────────────────────── */
.mxm-section {
	padding-block: 5rem;
}

.mxm-section--dark {
	background: var(--color-primary);
}

.mxm-section--dark h1,
.mxm-section--dark h2,
.mxm-section--dark h3 {
	color: #fff;
}

.mxm-section--dark p {
	color: rgba(255,255,255,.72);
}

/* ─── Service Icon Box ───────────────────────────────────── */
.mxm-icon-box {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: var(--radius-md);
	background: var(--gradient-signature);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.5rem;
	transition: transform .3s;
}

.mxm-card:hover .mxm-icon-box {
	transform: scale(1.1);
}

/* ─── Pricing Card ───────────────────────────────────────── */
.mxm-price-card {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	padding: 2rem;
	border: 1px solid var(--color-border);
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: box-shadow .3s, transform .3s;
}

.mxm-price-card:hover {
	box-shadow: var(--shadow-lg);
	transform: translateY(-4px);
}

.mxm-price-card--highlight {
	background: var(--gradient-signature);
	border-color: transparent;
	box-shadow: var(--shadow-lg);
}

.mxm-price-card--highlight * { color: #fff !important; }

.mxm-price {
	font-size: 3rem;
	font-weight: 900;
	color: var(--color-primary);
	line-height: 1;
}

.mxm-price-card--highlight .mxm-price { color: #fff; }

/* ─── Feature List ───────────────────────────────────────── */
.mxm-feature-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mxm-feature-list li {
	display: flex;
	align-items: flex-start;
	gap: .75rem;
	padding: .5rem 0;
	font-size: .9rem;
	color: var(--color-body);
}

.mxm-feature-list li::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	min-width: 16px;
	margin-top: 2px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e2b46' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
}

.mxm-price-card--highlight .mxm-feature-list li::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.8)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
}

/* ─── Stats Bar ──────────────────────────────────────────── */
.mxm-stats-bar {
	background: var(--color-primary);
	padding: 1.5rem 0;
}

.mxm-stat {
	text-align: center;
}

.mxm-stat__number {
	font-size: 2.2rem;
	font-weight: 900;
	color: #fff;
	line-height: 1;
	margin-bottom: .25rem;
}

.mxm-stat__label {
	font-size: .8rem;
	color: rgba(255,255,255,.6);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
}

/* ─── Testimonial ────────────────────────────────────────── */
.mxm-testimonial {
	background: var(--color-white);
	border-radius: var(--radius-xl);
	padding: 3rem;
	text-align: center;
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--color-border);
}

.mxm-testimonial blockquote {
	font-size: 1.3rem;
	font-weight: 700;
	font-style: italic;
	color: var(--color-primary);
	border: none;
	padding: 0;
	margin: 0 0 1.5rem;
}

.mxm-stars {
	color: var(--color-primary);
	font-size: 1.1rem;
	margin-bottom: 1rem;
	letter-spacing: 2px;
}

/* ─── Process Steps ──────────────────────────────────────── */
.mxm-step {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	background: rgba(255,255,255,.06);
	border-radius: var(--radius-md);
	padding: 1.25rem;
}

.mxm-step__nr {
	width: 2.5rem;
	height: 2.5rem;
	min-width: 2.5rem;
	border-radius: 50%;
	background: var(--color-accent);
	color: var(--color-primary);
	font-size: .75rem;
	font-weight: 900;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mxm-step__title {
	font-weight: 700;
	color: #fff;
	margin-bottom: .25rem;
	font-size: .95rem;
}

.mxm-step__desc {
	font-size: .85rem;
	color: rgba(255,255,255,.6);
	margin: 0;
}

/* ─── Header / Nav Overrides ─────────────────────────────── */
.wp-block-template-part header,
.site-header {
	background: rgba(255,255,255,.88) !important;
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	border-bottom: 1px solid rgba(0,0,0,.06);
	position: sticky;
	top: 0;
	z-index: 100;
}

.wp-block-site-title a,
.site-title a {
	color: var(--color-primary) !important;
	font-weight: 900 !important;
	letter-spacing: -.02em;
	text-decoration: none !important;
}

.wp-block-navigation a {
	color: var(--color-body) !important;
	font-weight: 500;
	font-size: .875rem;
}

.wp-block-navigation a:hover {
	color: var(--color-primary) !important;
}

/* ─── Comparison Table ───────────────────────────────────── */
.mxm-compare-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--color-white);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

.mxm-compare-table th {
	background: var(--color-surface-2);
	color: var(--color-primary);
	font-weight: 900;
	padding: 1rem;
	text-align: center;
	font-size: .85rem;
}

.mxm-compare-table th:first-child { text-align: left; }

.mxm-compare-table th.highlight {
	background: var(--gradient-signature);
	color: #fff;
}

.mxm-compare-table td {
	padding: .85rem 1rem;
	font-size: .85rem;
	color: var(--color-body);
	border-bottom: 1px solid var(--color-surface-2);
	text-align: center;
}

.mxm-compare-table td:first-child { text-align: left; }
.mxm-compare-table td.highlight { background: rgba(14,43,70,.04); }

.mxm-compare-table tr:nth-child(even) td { background-color: var(--color-surface); }
.mxm-compare-table tr:nth-child(even) td.highlight { background: rgba(14,43,70,.06); }

/* ─── Footer ─────────────────────────────────────────────── */
.wp-block-template-part footer,
.site-footer {
	background: var(--color-surface-2) !important;
	border-top: 1px solid var(--color-border);
}

.wp-block-template-part footer a,
.site-footer a {
	color: var(--color-body);
	text-decoration: none;
	font-size: .875rem;
}

.wp-block-template-part footer a:hover,
.site-footer a:hover {
	color: var(--color-primary);
	text-decoration: underline;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
	.mxm-section { padding-block: 3rem; }
	.mxm-card    { padding: 1.5rem; }
	h1 { font-size: 2rem; }
	h2 { font-size: 1.6rem; }

	.mxm-compare-table {
		font-size: .75rem;
	}

	.mxm-compare-table th,
	.mxm-compare-table td {
		padding: .6rem .5rem;
	}
}

/* ─── Animation (accessible) ────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
	.mxm-card,
	.mxm-price-card,
	.wp-block-button__link {
		transition: box-shadow .25s ease, transform .25s ease, filter .2s ease;
	}
}
