/*
Theme Name: kommduo
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kommduo
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts a margin-block-start equal to the block gap (24px unless
   theme.json sets styles.spacing.blockGap) between the template's top-level
   sections (header part, main, footer part) — a gap that exists even when no
   markup asks for it. Zero it so sections butt edge-to-edge and own their
   vertical rhythm via padding; this does not affect block gaps inside nested
   layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

/* === brand === */
:root {
	--brand-hover: var( --wp--preset--color--primary-hover );
	--line: #e7ebf0;
}

body {
	background-color: var( --wp--preset--color--background );
	color: var( --wp--preset--color--text );
}

/* === header === */
.site-header {
	background: var( --wp--preset--color--card );
	border-bottom: 1px solid var( --line );
	box-shadow: 0 1px 0 rgba( 20,32,46,0.04 );
	position: sticky;
	top: 0;
	z-index: 50;
}

.brand-mark {
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}
.brand-mark a {
	color: var( --wp--preset--color--text );
	text-decoration: none;
}
.brand-mark a:hover {
	color: var( --wp--preset--color--primary );
}
.brand-logo img {
	display: block;
	height: 44px;
	width: auto !important;
}

.main-nav .wp-block-navigation-item__content {
	font-size: 0.95rem;
	font-weight: 600;
}
.main-nav a:hover {
	color: var( --wp--preset--color--primary );
}

/* === hero === */
.hero {
	padding-block: clamp( 4rem, 9vh, 6.5rem );
}
.hero-inner > * {
	margin-inline: 0 !important;
}
.hero-cols,
.wp-block-columns.hero-cols {
	align-items: center;
}
.hero-copy .hero-title {
	font-size: clamp( 2.4rem, 4.2vw, 3rem );
}
.hero-copy .hero-sub {
	font-size: 1.1rem;
}
.hero-media {
	flex-basis: 44%;
}
.hero-media .wp-block-image {
	margin: 0;
}
.hero-media img {
	aspect-ratio: 4 / 3;
	border-radius: var( --wp--custom--rounded--lg );
	box-shadow: 0 20px 50px rgba( 15,23,42,0.14 );
	object-fit: cover;
	width: 100%;
}
.hero-eyebrow {
	color: var( --wp--preset--color--primary );
	font-size: var( --wp--preset--font-size--label );
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.hero-title {
	font-size: var( --wp--preset--font-size--display );
	letter-spacing: -0.02em;
	line-height: 1.05;
	margin-block: 1.25rem 1.1rem;
	max-width: 15em;
}
.hero-sub {
	color: var( --wp--preset--color--muted );
	font-size: 1.2rem;
	margin-block: 0 2.1rem;
	max-width: 34em;
}

/* === buttons & links === */
.wp-block-button__link,
.wp-block-button__link {
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.wp-block-button__link:hover {
	background-color: var( --wp--preset--color--primary-hover );
	transform: translateY( -1px );
}

/* === trust strip === */
.trust-strip {
	background: var( --wp--preset--color--background );
	border-block: 1px solid var( --line );
	padding-block: 2.5rem;
	text-align: center;
}
.trust-label p {
	color: var( --wp--preset--color--muted );
	font-size: var( --wp--preset--font-size--label );
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.trust-list {
	color: var( --wp--preset--color--text );
	font-weight: 600;
	letter-spacing: 0.02em;
	margin-block: 1rem 0;
}

/* === portfolio === */
.portfolio {
	padding-block: clamp( 4rem, 8vh, 5.5rem );
}
.section-label p {
	color: var( --wp--preset--color--primary );
	font-size: var( --wp--preset--font-size--label );
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.section-title {
	font-size: var( --wp--preset--font-size--headline );
	margin-block: 0.75rem 1rem;
	max-width: 18em;
	text-align: center;
}
.section-intro {
	color: var( --wp--preset--color--muted );
	font-size: 1.125rem;
	max-width: 42em;
}
.cards {
	margin-top: 4.5rem;
}

/* === Schnittstellensymbol (Zeichenfläche) === */
.is-style-card {
	position: relative;
}
.is-style-card .schnitt-icon {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate( -50%, -50% );
	margin: 0 !important;
	z-index: 1;
}
.is-style-card .schnitt-icon img {
	width: 60px;
	height: auto;
	filter: saturate( 0.5 ) brightness( 1.15 ) contrast( 0.95 );
}

/* === Unterseiten (Leistungen) === */
.sub-intro {
	align-items: center;
	margin-block: var( --wp--preset--spacing--50 ) 0;
}
.sub-eyebrow {
	color: var( --wp--preset--color--primary );
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	margin: 0 0 0.75rem;
	text-transform: uppercase;
}
.sub-intro-title {
	font-size: var( --wp--preset--font-size--headline );
	margin-block: 0 1rem;
}
.sub-intro-lead {
	color: var( --wp--preset--color--muted );
	font-size: 1.125rem;
}
.sub-intro-media {
	margin: 0 !important;
}
.sub-intro-media img {
	aspect-ratio: 4 / 3;
	border-radius: var( --wp--custom--rounded--lg );
	box-shadow: 0 20px 50px rgba( 15, 23, 42, 0.14 );
	object-fit: cover;
	width: 100%;
}
.sub-graphic {
	align-items: center;
	aspect-ratio: 4 / 3;
	background: linear-gradient( 135deg, #14202e, #22384a );
	border-radius: var( --wp--custom--rounded--lg );
	box-shadow: 0 20px 50px rgba( 15, 23, 42, 0.18 );
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 2rem;
	text-align: center;
}
.sub-graphic img {
	aspect-ratio: auto;
	border-radius: 0;
	box-shadow: none;
	filter: saturate( 0.5 ) brightness( 1.3 );
	height: auto;
	object-fit: initial;
	width: 120px;
}
.sub-graphic-flag {
	color: #fff;
	font-weight: 700;
	letter-spacing: 0.05em;
	margin: 1.25rem 0 0.5rem;
	opacity: 0.85;
	text-transform: uppercase;
}
.sub-graphic-note {
	color: rgba( 255, 255, 255, 0.75 );
	font-size: 0.9rem;
	margin: 0;
}
.sub-stats {
	margin-top: var( --wp--preset--spacing--40 );
}
.sub-stats .stat-num {
	color: var( --wp--preset--color--primary );
	font-size: 2.2rem;
	font-weight: 800;
	line-height: 1;
	margin: 0;
}
.sub-stats .stat-label {
	color: var( --wp--preset--color--muted );
	margin: 0.5rem 0 0;
}
.sub-steps {
	margin-bottom: 3rem;
	margin-top: var( --wp--preset--spacing--40 );
}
.sub-steps .step-num {
	align-items: center;
	background: var( --wp--preset--color--primary );
	border-radius: 50%;
	color: #fff;
	display: inline-flex;
	height: 34px;
	justify-content: center;
	margin: 0 0 1rem;
	width: 34px;
	font-weight: 700;
}
.sub-steps h3 {
	font-size: 1.2rem;
	margin-block: 0 0.5rem;
}
.sub-cta {
	align-items: center;
	background: var( --wp--preset--color--ink );
	border-radius: var( --wp--custom--rounded--lg );
	color: #fff;
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	justify-content: space-between;
	margin-top: var( --wp--preset--spacing--50 );
	padding: 2.5rem;
}
.sub-cta h2 {
	color: #fff;
	font-size: 1.5rem;
	margin: 0;
}
.sub-cta p {
	color: rgba( 255, 255, 255, 0.8 );
	margin: 0.5rem 0 0;
}
.footer-bottom {
	border-top: 1px solid rgba( 255, 255, 255, 0.15 );
	color: rgba( 255, 255, 255, 0.65 );
	font-size: 0.875rem;
	margin: 3rem auto 0;
	padding-top: 1.5rem;
	text-align: center;
}
/* === cards === */
.is-style-card {
	background: var( --wp--preset--color--card );
	border: 1px solid var( --line );
	border-radius: var( --wp--custom--rounded--md );
	box-shadow: 0 10px 30px rgba( 15,23,42,0.06 );
	height: 100%;
	padding: 2rem;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.is-style-card:hover {
	box-shadow: 0 16px 40px rgba( 15,23,42,0.1 );
	transform: translateY( -4px );
}
.card-title {
	font-size: 1.3rem;
	margin-block: 0;
}
.card-title::before {
	background: var( --wp--preset--color--primary );
	border-radius: 2px;
	content: "";
	display: block;
	height: 3px;
	margin-bottom: 1rem;
	width: 2.25rem;
}
.is-style-card ul {
	list-style: none;
	margin: 1.25rem 0;
	padding-left: 0;
}
.is-style-card li {
	color: var( --wp--preset--color--muted );
	margin-bottom: 0.5rem;
	padding-left: 1.4rem;
	position: relative;
}
.is-style-card li::before {
	color: var( --wp--preset--color--primary );
	content: "›";
	font-weight: 700;
	left: 0;
	position: absolute;
}
.card-link a {
	font-weight: 600;
	text-decoration: none;
}
.card-link a:hover {
	color: var( --wp--preset--color--primary-hover );
}

/* === cta === */
.cta {
	padding-block: clamp( 4rem, 9vh, 6rem );
	text-align: center;
}
.cta-title {
	font-size: var( --wp--preset--font-size--headline );
	margin-block: 0;
}
.cta-sub {
	color: rgba( 255,255,255,0.78 );
	margin-block: 1rem 2rem;
	margin-inline: auto;
	max-width: 38em;
}
.cta .wp-block-buttons {
	justify-content: center;
}

/* === footer === */
.site-footer a {
	color: var( --wp--preset--color--primary );
	font-weight: 600;
	text-decoration: none;
}
.site-footer a:hover {
	color: #ffb48a;
}
.site-footer .brand-mark a {
	color: #ffffff;
}
.footer-brand {
	font-size: 1.4rem;
}
.footer-heading {
	font-size: 1.05rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.footer-meta {
	color: rgba( 255,255,255,0.72 );
}

.is-style-panel-tint {
	background: var( --wp--preset--color--background );
	border: 1px solid var( --line );
	border-radius: var( --wp--custom--rounded--md );
	padding: 2rem;
}

/* === story (Über mich) === */
.lead {
	color: var( --wp--preset--color--text );
	font-size: 1.25rem;
	max-width: 46em;
}
.story {
	align-items: center;
	margin-top: var( --wp--preset--spacing--50 );
}
.story-media .story-img {
	margin: 0;
}
.story-media img {
	aspect-ratio: 4 / 3;
	border-radius: var( --wp--custom--rounded--lg );
	box-shadow: 0 20px 50px rgba( 15,23,42,0.12 );
	object-fit: cover;
	width: 100%;
}
.story-copy .story-sub {
	color: var( --wp--preset--color--primary );
	font-size: 1.05rem;
	margin-block: 1.5rem 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* === responsive === */
@media ( max-width: 781px ) {
	.hero-title {
		font-size: 2.35rem;
	}
	.is-style-card {
		padding: 1.5rem;
	}
	.cta .wp-block-columns,
	.site-footer .wp-block-columns {
		row-gap: 2rem;
	}
}

/* === reduced motion === */
@media ( prefers-reduced-motion: reduce ) {
	* {
		animation: none !important;
		transition: none !important;
	}
	.is-style-card:hover {
		transform: none;
	}
	.wp-block-button__link:hover {
		transform: none;
	}
}
