/*
Theme Name: b2bflex
Theme URI: https://b2bflex.com
Description: Kindthema von Twenty Twenty-Five fuer b2bflex LLC. Zweisprachig (EN/DE) ohne Plugins, ohne Fremdschriften, ohne Cookies.
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: b2bflex
*/

:root {
	--b2b-navy: #0f2a47;
	--b2b-navy-2: #173a61;
	--b2b-ink: #0d1b2a;
	--b2b-muted: #4a5b6e;
	--b2b-accent: #f08a24;
	--b2b-accent-dark: #b85f06;
	--b2b-surface: #f3f6fa;
	--b2b-line: #dce3ec;
	--b2b-wrap: 1180px;
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}
body { -webkit-font-smoothing: antialiased; }
[id] { scroll-margin-top: 5.5rem; }

/* Abstaende zwischen Kopf, Inhalt, Fuss und Abschnitten: buendig */
.wp-site-blocks > * { margin-block-start: 0 !important; }
.wp-block-post-content > * { margin-block: 0 !important; }

.wrap {
	width: 100%;
	max-width: var(--b2b-wrap);
	margin-inline: auto;
	padding-inline: clamp(1.1rem, 4vw, 2rem);
	box-sizing: border-box;
}

a:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 3px solid var(--b2b-accent);
	outline-offset: 2px;
}

/* Typografie */
h1, h2, h3, h4 { color: var(--b2b-navy); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 720; }
h3 { font-size: 1.25rem; font-weight: 700; }
.eyebrow {
	margin: 0 0 .9rem;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--b2b-accent-dark);
}
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--b2b-muted); max-width: 44rem; }

/* Abschnitte */
.sec { padding-block: clamp(3rem, 7vw, 5.5rem); }
.sec-surface { background: var(--b2b-surface); }
.sec-dark { background: var(--b2b-navy); color: #fff; }
.sec-dark h1, .sec-dark h2, .sec-dark h3 { color: #fff; }
.sec-dark a { color: #fff; }
.sec-dark .eyebrow { color: var(--b2b-accent); }
.sec-dark .lead { color: #d5deea; }
.sec-strip { padding-block: 1.6rem; border-bottom: 1px solid var(--b2b-line); }
.sec-hero {
	background: linear-gradient(135deg, var(--b2b-navy) 0%, var(--b2b-navy-2) 100%);
	color: #fff;
	padding-block: clamp(3rem, 8vw, 6rem);
	overflow: hidden;
}
.sec-hero h1 { color: #fff; margin-top: 0; }
.sec-hero .eyebrow { color: var(--b2b-accent); }
.sec-hero .lead { color: #d5deea; }
.sec-page { background: linear-gradient(180deg, var(--b2b-surface), #fff); padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.sec-page h1 { margin-top: 0; }

.hero-grid { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.hero-grid > * { margin: 0 !important; }
.hero-art svg { width: 100%; height: auto; display: block; }
@media (max-width: 820px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-art { max-width: 340px; margin-inline: auto !important; }
}

/* Raster und Karten */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.grid > * { margin: 0 !important; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.card {
	background: #fff;
	border: 1px solid var(--b2b-line);
	border-radius: 14px;
	padding: 1.6rem;
	box-shadow: 0 1px 2px rgba(15, 42, 71, .05);
}
.card h3 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.steps { counter-reset: s; }
.steps > .card::before {
	counter-increment: s;
	content: counter(s);
	display: inline-grid;
	place-items: center;
	width: 2rem; height: 2rem;
	margin-bottom: .8rem;
	border-radius: 50%;
	background: var(--b2b-navy);
	color: #fff;
	font-weight: 700;
}
.fact h3 { margin: 0 0 .25rem; font-size: 1rem; }
.fact p { margin: 0; font-size: .95rem; color: var(--b2b-muted); }
.sec-head { max-width: 46rem; margin-bottom: 2rem; }
.sec-head > * { margin-top: 0; }
.sec-head h2 { margin-bottom: .7rem; }

/* Listen */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 1.9rem; margin-bottom: .8rem; }
.checks li::before { content: "\2713"; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--b2b-accent-dark); }

/* Buttons */
.wp-block-button__link {
	background: var(--b2b-accent);
	color: var(--b2b-ink);
	font-weight: 700;
	border-radius: 10px;
	padding: .85rem 1.5rem;
	text-decoration: none;
	border: 2px solid var(--b2b-accent);
}
.wp-block-button__link:hover { background: #ffa04a; border-color: #ffa04a; color: var(--b2b-ink); }
.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--b2b-navy);
	border-color: var(--b2b-navy);
}
.is-style-outline > .wp-block-button__link:hover { background: var(--b2b-navy); color: #fff; }
.sec-dark .is-style-outline > .wp-block-button__link,
.sec-hero .is-style-outline > .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, .7); }
.sec-dark .is-style-outline > .wp-block-button__link:hover,
.sec-hero .is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--b2b-navy); }
a.more { font-weight: 700; text-decoration: none; color: var(--b2b-navy); }
a.more:hover { color: var(--b2b-accent-dark); }

/* Kopf */
.site-header { background: #fff; border-bottom: 1px solid var(--b2b-line); position: sticky; top: 0; z-index: 50; }
.site-header__bar { padding-block: .85rem; align-items: center; }
.wordmark { margin: 0 !important; font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.wordmark a { color: var(--b2b-navy); text-decoration: none; }
.wordmark span { color: var(--b2b-accent); }
.site-header__right { gap: 1.25rem; align-items: center; }
.site-header__right > * { margin: 0 !important; }
.site-header .wp-block-navigation a { text-decoration: none; font-weight: 600; color: var(--b2b-navy); }
.site-header .wp-block-navigation a:hover { color: var(--b2b-accent-dark); }
.lang-switch {
	display: inline-block;
	font-weight: 700;
	font-size: .85rem;
	border: 1.5px solid var(--b2b-navy);
	border-radius: 999px;
	padding: .25rem .75rem;
	text-decoration: none;
	color: var(--b2b-navy);
}
.lang-switch:hover { background: var(--b2b-navy); color: #fff; }
/* Sprachauswahl (Aufklappmenue, ohne Skript) */
.lang-menu { position: relative; display: inline-block; }
.lang-menu summary { list-style: none; cursor: pointer; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: " \25BE"; }
.lang-menu ul {
	position: absolute; right: 0; top: calc(100% + .4rem); z-index: 60;
	margin: 0; padding: .35rem; list-style: none; min-width: 11rem;
	background: #fff; border: 1px solid var(--b2b-line); border-radius: 10px;
	box-shadow: 0 8px 24px rgba(15, 42, 71, .14);
}
.lang-menu li { margin: 0; }
.lang-menu a { display: block; padding: .45rem .7rem; border-radius: 6px; text-decoration: none; color: var(--b2b-navy); font-weight: 600; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--b2b-surface); }
.lang-menu a[aria-current="true"] { color: var(--b2b-accent-dark); }

/* Fuss */
.site-footer { background: #0a1d33; color: #c9d5e3; padding-block: 3rem 1.5rem; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .wordmark a { color: #fff; }
.site-footer .wordmark { margin-bottom: .7rem !important; }
.site-footer h4 { color: #fff; margin: 0 0 .7rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer p { margin: 0 0 .4rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 2rem; padding-top: 1rem; font-size: .85rem; color: #9fb1c6; }
.footer-bottom p { margin: 0; }

/* Rechtstexte */
.sec-legal .wrap > * { max-width: 820px; }
.sec-legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.sec-legal h2:first-child { margin-top: 0; }

/* Offene Punkte (nur intern sichtbar; vor dem Start entfernen) */
mark.todo { background: #fff3a3; color: #5a4300; padding: .1em .4em; border-radius: 4px; font-weight: 600; }
