/*
Theme Name: Computerfuzzy Modern
Theme URI: https://www.computerfuzzy.de/
Description: Modernes, schnelles Child Theme für Computerfuzzy.de auf Basis von Gambit.
Author: Computerfuzzy
Template: gambit
Version: 1.0.2
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: computerfuzzy-modern
*/

:root {
	--cfm-navy: #0b1f33;
	--cfm-blue: #1769e0;
	--cfm-blue-dark: #0d4fb8;
	--cfm-cyan: #12b8a6;
	--cfm-orange: #ff9f43;
	--cfm-ink: #162235;
	--cfm-muted: #637083;
	--cfm-line: #dde5ee;
	--cfm-soft: #f3f7fb;
	--cfm-white: #fff;
	--cfm-radius: 18px;
	--cfm-shadow: 0 14px 40px rgba(17, 41, 73, 0.1);
	--primary-color: var(--cfm-blue);
	--secondary-color: var(--cfm-blue-dark);
	--tertiary-color: var(--cfm-navy);
	--accent-color: var(--cfm-orange);
	--link-color: var(--cfm-blue);
	--link-hover-color: var(--cfm-blue-dark);
	--button-color: var(--cfm-blue);
	--button-hover-color: var(--cfm-blue-dark);
	--navi-primary-color: var(--cfm-blue);
	--navi-secondary-color: var(--cfm-navy);
	--site-title-color: var(--cfm-blue);
	--title-color: var(--cfm-ink);
	--widget-title-color: var(--cfm-navy);
	--footer-background-color: var(--cfm-navy);
	--text-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--title-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--navi-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--widget-title-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }
body { color: var(--cfm-ink); background: var(--cfm-soft); font-size: 17px; }
.container { max-width: 1240px; }
.site { overflow: hidden; }
.site-content-wrap { padding: 0; }
.site-content { padding-top: 2rem; padding-bottom: 3rem; }
.home .site-content { max-width: none; padding: 0; }
.home .site-content-wrap { background: var(--cfm-white); }
.home .breadcrumbs { display: none; }

.site-header { border-bottom: 1px solid var(--cfm-line); box-shadow: 0 4px 18px rgba(17,41,73,.04); }
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-top: 1.15rem; padding-bottom: 1.15rem; }
.site-branding { display: flex; align-items: center; gap: .85rem; float: none; }
.site-branding .custom-logo { max-height: 62px; width: auto; margin: 0; }
.site-title { font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.035em; }
.site-description { color: var(--cfm-muted); margin: .15rem 0 0; }
.header-widgets { margin-left: auto; }
.header-widget { float: none; margin: 0; }

.primary-navigation-wrap { border: 0; }
.main-navigation ul { font-size: .86rem; letter-spacing: .035em; }
.main-navigation ul a { padding-top: 1rem; padding-bottom: 1rem; }

.cfm-home {
	clear: both;
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}
.cfm-home,
.cfm-home * { box-sizing: border-box; }
.cfm-home > section {
	clear: both;
	float: none !important;
	width: 100%;
}
.cfm-hero,
.cfm-section,
.cfm-ad-slot { max-width: 1240px; margin-right: auto; margin-left: auto; }

.cfm-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
	align-items: center;
	gap: clamp(2rem, 6vw, 5.5rem);
	padding: clamp(4rem, 8vw, 7rem) 2rem;
}
.cfm-eyebrow { margin: 0 0 .65rem; color: var(--cfm-blue); font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.cfm-hero h1 { max-width: 800px; margin: 0; font-size: clamp(2.6rem, 6vw, 5.2rem); letter-spacing: -.055em; line-height: 1.02; }
.cfm-hero-text { max-width: 700px; margin: 1.35rem 0 0; color: var(--cfm-muted); font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.7; }
.cfm-hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.8rem; }
.cfm-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.25rem; border: 2px solid transparent; border-radius: 999px; font-weight: 800; text-decoration: none; transition: .18s ease; }
.cfm-button-primary,
.cfm-button-primary:link,
.cfm-button-primary:visited { color: var(--cfm-white) !important; background: var(--cfm-blue); box-shadow: 0 8px 24px rgba(23,105,224,.25); }
.cfm-button-primary:hover,
.cfm-button-primary:active { color: var(--cfm-white) !important; background: var(--cfm-blue-dark); transform: translateY(-2px); }
.cfm-button-secondary,
.cfm-button-secondary:link,
.cfm-button-secondary:visited { color: var(--cfm-ink); border-color: var(--cfm-line); background: var(--cfm-white); }
.cfm-button-secondary:hover { color: var(--cfm-blue); border-color: var(--cfm-blue); }

.cfm-search { max-width: 640px; margin-top: 1.7rem; }
.cfm-search .search-form { display: flex; padding: .35rem; border: 1px solid var(--cfm-line); border-radius: 14px; background: var(--cfm-white); box-shadow: var(--cfm-shadow); }
.cfm-search .search-field { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 1rem; }
.cfm-search .search-submit { flex: 0 0 auto; border-radius: 10px; }

.cfm-terminal { padding: 1rem 1.25rem 1.35rem; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; color: #cde7ff; background: var(--cfm-navy); box-shadow: 28px 28px 0 var(--cfm-cyan), var(--cfm-shadow); transform: rotate(1.5deg); }
.cfm-terminal-bar { display: flex; gap: .4rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.cfm-terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff6b6b; }
.cfm-terminal-bar i:nth-child(2) { background: #ffd166; }
.cfm-terminal-bar i:nth-child(3) { background: #44d19d; }
.cfm-terminal p { margin: 1rem 0 0; font: 600 .95rem/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
.cfm-terminal span { display: inline-block; width: 1.6rem; color: var(--cfm-cyan); }

.cfm-section { padding: clamp(3.5rem, 7vw, 6rem) 2rem; }
.cfm-section-muted {
	max-width: none;
	min-height: 0;
	padding: 0;
	background: var(--cfm-soft);
}
.cfm-section-inner {
	clear: both;
	width: 100%;
	max-width: 1240px;
	min-width: 0;
	margin-right: auto;
	margin-left: auto;
	padding: clamp(3.5rem, 7vw, 6rem) 2rem;
}
.cfm-section-heading {
	clear: both;
	float: none !important;
	width: 100%;
	max-width: 100%;
	margin-bottom: 1.8rem;
}
.cfm-section-heading h2,
.cfm-trust h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.045em; line-height: 1.1; }
.cfm-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; }

.cfm-topic-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.cfm-topic-card { display: flex; min-height: 235px; flex-direction: column; align-items: flex-start; padding: 1.35rem; border: 1px solid var(--cfm-line); border-radius: var(--cfm-radius); color: var(--cfm-ink); background: var(--cfm-white); text-decoration: none; transition: .18s ease; }
.cfm-topic-card:hover { border-color: var(--cfm-blue); color: var(--cfm-ink); box-shadow: var(--cfm-shadow); transform: translateY(-4px); }
.cfm-topic-icon { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; margin-bottom: 1.1rem; border-radius: 13px; color: var(--cfm-blue); background: #eaf2ff; }
.cfm-icon { width: 25px; height: 25px; fill: currentColor; }
.cfm-topic-card strong { margin-bottom: .45rem; font-size: 1.17rem; }
.cfm-topic-card > span:not(.cfm-topic-icon) { color: var(--cfm-muted); font-size: .92rem; line-height: 1.55; }
.cfm-topic-card small { margin-top: auto; padding-top: 1rem; color: var(--cfm-blue); font-weight: 800; }

.cfm-card-grid {
	clear: both;
	display: grid;
	float: none !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.3rem;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}
.cfm-card-grid-featured { grid-template-columns: repeat(2, 1fr); }
.cfm-post-card {
	float: none !important;
	width: auto !important;
	max-width: none;
	min-width: 0;
	overflow: hidden;
	margin: 0;
	border: 1px solid var(--cfm-line);
	border-radius: var(--cfm-radius);
	background: var(--cfm-white);
	box-shadow: none;
	transition: .18s ease;
}
.cfm-post-card:hover { box-shadow: var(--cfm-shadow); transform: translateY(-3px); }
.cfm-card-image { display: block; aspect-ratio: 16/8.5; overflow: hidden; background: #eaf2ff; }
.cfm-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.cfm-post-card:hover .cfm-card-image img { transform: scale(1.025); }
.cfm-image-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--cfm-blue); }
.cfm-image-placeholder .cfm-icon { width: 58px; height: 58px; opacity: .5; }
.cfm-card-body { padding: 1.45rem; }
.cfm-card-meta { margin: 0 0 .65rem; color: var(--cfm-muted); font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cfm-card-body h3 { margin: 0; font-size: 1.3rem; line-height: 1.3; }
.cfm-card-body h3 a { color: var(--cfm-ink); text-decoration: none; }
.cfm-card-body h3 a:hover { color: var(--cfm-blue); }
.cfm-card-body > p:not(.cfm-card-meta) { color: var(--cfm-muted); font-size: .95rem; line-height: 1.65; }
.cfm-text-link { color: var(--cfm-blue); font-size: .9rem; font-weight: 800; text-decoration: none; }
.cfm-text-link:hover { color: var(--cfm-blue-dark); }
.cfm-post-card-compact { min-height: 390px; }

.cfm-ad-slot { margin-top: 1rem; margin-bottom: 1rem; padding: 1.25rem 2rem; border: 1px dashed #b9c6d5; border-radius: 14px; text-align: center; background: #fbfcfe; }
.cfm-ad-label { display: block; margin: 0 0 .6rem; color: var(--cfm-muted); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.cfm-ad-widget { margin: 0; }

.cfm-trust { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; align-items: center; margin-bottom: 3rem; border-radius: 24px; color: var(--cfm-white); background: var(--cfm-navy); }
.cfm-trust .cfm-eyebrow { color: #73e2d5; }
.cfm-trust h2 { color: var(--cfm-white); }
.cfm-trust ul { margin: 0; padding: 0; list-style: none; }
.cfm-trust li { position: relative; margin: .75rem 0; padding-left: 1.8rem; }
.cfm-trust li::before { position: absolute; left: 0; content: "✓"; color: #73e2d5; font-weight: 900; }

.cfm-single { border: 1px solid var(--cfm-line); border-radius: var(--cfm-radius); background: var(--cfm-white); box-shadow: 0 10px 35px rgba(17,41,73,.06); }
.cfm-article-header { padding: clamp(1.5rem, 4vw, 2.6rem); }
.cfm-article-header .entry-title { font-size: clamp(2.1rem, 5vw, 3.7rem); letter-spacing: -.045em; line-height: 1.08; }
.cfm-article-summary { max-width: 760px; color: var(--cfm-muted); font-size: 1.08rem; line-height: 1.65; }
.cfm-article-meta { display: flex; flex-wrap: wrap; gap: .7rem 1.3rem; padding-top: .9rem; border-top: 1px solid var(--cfm-line); color: var(--cfm-muted); font-size: .8rem; font-weight: 700; }
.cfm-single .entry-content { padding: 0 clamp(1.5rem, 4vw, 2.6rem) 2.6rem; font-size: 1.06rem; line-height: 1.8; }
.cfm-single .entry-content h2 { margin-top: 2.2em; font-size: 1.75rem; }
.cfm-single .entry-content h3 { margin-top: 1.8em; font-size: 1.35rem; }
.cfm-single .entry-content pre { border-radius: 12px; color: #e7f2ff; background: var(--cfm-navy); }
.cfm-single .entry-content :not(pre) > code { padding: .15em .38em; border-radius: 5px; background: #edf2f8; }
.cfm-post-ad { margin-right: 2rem; margin-left: 2rem; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 2rem; padding-bottom: 2rem; }
.cfm-footer-links { display: inline-flex; flex-wrap: wrap; gap: .85rem; margin-left: 1rem; }

@media (max-width: 1024px) {
	.cfm-topic-grid { grid-template-columns: repeat(3, 1fr); }
	.cfm-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
	body { font-size: 16px; }
	.header-main { display: block; padding: 1rem; }
	.site-branding { display: block; }
	.header-widgets { display: none; }
	.cfm-hero { grid-template-columns: 1fr; padding: 3.4rem 1.2rem 4rem; }
	.cfm-hero-visual { display: none; }
	.cfm-section { padding: 3.4rem 1.2rem; }
	.cfm-section-muted { padding: 0; }
	.cfm-section-inner { padding: 3.4rem 1.2rem; }
	.cfm-topic-grid,
	.cfm-card-grid,
	.cfm-card-grid-featured,
	.cfm-trust { grid-template-columns: 1fr; }
	.cfm-topic-card { min-height: 190px; }
	.cfm-heading-row { display: block; }
	.cfm-heading-row .cfm-text-link { display: inline-block; margin-top: .8rem; }
	.cfm-trust { margin-right: 1.2rem; margin-left: 1.2rem; border-radius: 18px; }
	.cfm-search .search-form { display: block; }
	.cfm-search .search-submit { width: 100%; margin-top: .4rem; }
	.site-footer { display: block; text-align: center; }
	.cfm-footer-links { justify-content: center; margin: .7rem 0 0; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
