/* ==========================================================================
   CargoEuroHub – Theme-Styles (ergänzt theme.json)
   ========================================================================== */

:root {
	--ceh-red: var(--wp--preset--color--primary, #e30613);
	--ceh-red-dark: var(--wp--preset--color--primary-dark, #aa050e);
	--ceh-ink: var(--wp--preset--color--ink, #14171f);
	--ceh-ink-strong: var(--wp--preset--color--ink-strong, #0a0b0f);
	--ceh-muted: var(--wp--preset--color--muted, #5b616e);
	--ceh-line: var(--wp--preset--color--line, #e8eaed);
	--ceh-light: var(--wp--preset--color--light, #f8f9fc);
	--ceh-radius: 12px;
	--ceh-shadow: 0 10px 40px 0 rgba(0, 0, 0, .06), 0 1px 4px 0 rgba(0, 0, 0, .08);
	--ceh-shadow-hover: 0 16px 48px 0 rgba(0, 0, 0, .10), 0 2px 6px 0 rgba(0, 0, 0, .10);
	--ceh-header-h: 72px;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(h1, h2, h3, h4) { text-wrap: balance; }
[id] { scroll-margin-top: calc(var(--ceh-header-h) + 16px); }
:focus-visible { outline: 2px solid var(--ceh-red); outline-offset: 2px; }
.wp-site-blocks { padding-top: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
main.wp-block-group { margin-top: 0; }
/* Vollbreite Sektionen innerhalb des Seiteninhalts behalten den seitlichen Abstand */
.has-global-padding > .alignfull.has-global-padding {
	padding-left: var(--wp--style--root--padding-left);
	padding-right: var(--wp--style--root--padding-right);
}

/* ---------- Header ---------- */
.ceh-header {
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.admin-bar .ceh-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .ceh-header { top: 0; } }
.ceh-header .ceh-header__inner { min-height: var(--ceh-header-h); }
.ceh-header .wp-block-image.ceh-logo img { height: 34px; width: auto; }
.ceh-header .wp-block-navigation a:hover,
.ceh-header .wp-block-navigation .current-menu-item > a { color: #fff; opacity: 1; }
.ceh-header .wp-block-navigation .wp-block-navigation-item__content { opacity: .88; transition: opacity .15s; }
.ceh-header .wp-block-navigation .wp-block-navigation-item__content:hover { opacity: 1; }
.ceh-header .wp-block-navigation__submenu-container {
	background: #fff !important;
	color: var(--ceh-ink) !important;
	border: 0 !important;
	border-radius: 10px;
	box-shadow: var(--ceh-shadow-hover);
	padding: .5rem 0;
	min-width: 230px !important;
}
.ceh-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .55rem 1.1rem !important; opacity: 1; }
.ceh-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { color: var(--ceh-red) !important; }
.ceh-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--ceh-ink-strong) !important;
	color: #fff !important;
	padding: 1.5rem;
}
.ceh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { font-size: 1.25rem; gap: 1rem; }
.ceh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { background: transparent !important; color: #fff !important; box-shadow: none; }
.ceh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { color: #fff !important; font-size: 1rem; }
.ceh-header .wp-block-buttons .wp-block-button__link { padding: .7rem 1.25rem; font-size: .9375rem; border-radius: 8px; }
@media (max-width: 781px) {
	.ceh-header .ceh-header-cta { display: none; }
}

/* ---------- Hero ---------- */
.ceh-hero { position: relative; overflow: hidden; }
.ceh-hero .wp-block-cover__image-background { opacity: .9; }
.ceh-hero h1 { color: #fff; }
.ceh-hero .ceh-hero__lead { color: rgba(255, 255, 255, .82); }
.ceh-hero .ceh-quote--hero { margin-inline: auto; }
.ceh-hero-badges { color: rgba(255, 255, 255, .85); }
.ceh-hero-badges p { display: inline-flex; align-items: center; gap: .5rem; margin: 0; }
.ceh-hero-badges p::before {
	content: "";
	width: 18px; height: 18px; flex: none;
	border-radius: 50%;
	background: var(--wp--preset--color--green, #6ea592) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Überzeile / Tagline */
.is-style-ceh-tagline {
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: .8125rem !important;
	font-weight: 700;
	color: var(--ceh-red);
}
.has-ink-strong-background-color .is-style-ceh-tagline,
.has-navy-background-color .is-style-ceh-tagline,
.has-hero-gradient-background .is-style-ceh-tagline,
.ceh-hero .is-style-ceh-tagline { color: var(--wp--preset--color--mint, #bcdfd6); }

/* ---------- Karten ---------- */
.is-style-ceh-card,
.is-style-ceh-card-hover {
	background: #fff;
	border: 1px solid rgba(10, 11, 15, .08);
	border-radius: var(--ceh-radius);
	box-shadow: var(--ceh-shadow);
	height: 100%;
}
.is-style-ceh-card-hover { transition: transform .2s ease, box-shadow .2s ease; }
.is-style-ceh-card-hover:hover { transform: translateY(-4px); box-shadow: var(--ceh-shadow-hover); }
.wp-block-column > .is-style-ceh-card,
.wp-block-column > .is-style-ceh-card-hover { height: 100%; }

.ceh-icon img { width: 56px; height: 56px; object-fit: contain; }
.ceh-icon--sm img { width: 40px; height: 40px; }
.ceh-card-link a { font-weight: 700; text-decoration: none; }
.ceh-card-link a::after { content: " →"; }

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: background-color .15s, color .15s, border-color .15s; }
.wp-block-button.is-style-ceh-outline-dark .wp-block-button__link {
	background: transparent; color: var(--ceh-ink); border: 2px solid var(--ceh-ink);
}
.wp-block-button.is-style-ceh-outline-dark .wp-block-button__link:hover { background: var(--ceh-ink); color: #fff; }
.wp-block-button.is-style-ceh-outline-light .wp-block-button__link {
	background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .7);
}
.wp-block-button.is-style-ceh-outline-light .wp-block-button__link:hover { background: #fff; color: var(--ceh-ink); }
.ceh-cta .wp-block-button:not([class*="is-style-ceh"]) .wp-block-button__link { background: #fff; color: var(--ceh-red); }
.ceh-cta .wp-block-button:not([class*="is-style-ceh"]) .wp-block-button__link:hover { background: var(--ceh-ink); color: #fff; }

/* ---------- Listen ---------- */
.is-style-ceh-checks { list-style: none; padding-left: 0; }
.is-style-ceh-checks li { position: relative; padding-left: 2rem; margin-bottom: .6rem; }
.is-style-ceh-checks li::before {
	content: "";
	position: absolute; left: 0; top: .2em;
	width: 1.25rem; height: 1.25rem;
	border-radius: 50%;
	background: var(--ceh-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- Bilder ---------- */
.is-style-ceh-rounded img { border-radius: var(--ceh-radius); }

/* ---------- Ablauf / Schritte ---------- */
.ceh-step-num {
	display: flex;
	margin-inline: auto; align-items: center; justify-content: center;
	width: 3rem; height: 3rem;
	border-radius: 50%;
	background: var(--ceh-red); color: #fff !important;
	font-weight: 800; font-size: 1.25rem !important; line-height: 1;
}
.ceh-steps .wp-block-column { position: relative; }
@media (min-width: 782px) {
	.ceh-steps .wp-block-column:not(:last-child)::after {
		content: "";
		position: absolute; top: 1.5rem; left: calc(50% + 2.5rem); right: calc(-50% + 2.5rem);
		border-top: 2px dashed rgba(227, 6, 19, .35);
	}
}

/* ---------- Kennzahlen ---------- */
.ceh-stat strong { display: block; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; color: var(--ceh-red); line-height: 1.1; }

/* ---------- Länder ---------- */
.ceh-country-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem !important; }
.ceh-country-grid > p,
.ceh-chip {
	margin: 0 !important;
	background: #fff;
	border: 1px solid var(--ceh-line);
	border-radius: 10px;
	padding: .7rem 1rem;
	font-weight: 600;
	font-size: .9375rem;
	display: flex; align-items: center; gap: .6rem;
	transition: border-color .15s, box-shadow .15s;
}
.ceh-country-grid > p:hover { border-color: var(--ceh-red); box-shadow: var(--ceh-shadow); }
.ceh-country-grid > p a { color: inherit; text-decoration: none; }
.ceh-country-grid > p::before {
	content: "";
	width: 8px; height: 8px; flex: none;
	border-radius: 50%;
	background: var(--ceh-red);
}
.ceh-flag-code {
	font-size: .7rem; font-weight: 800; letter-spacing: .04em; color: var(--ceh-red);
	background: rgba(227, 6, 19, .08); border-radius: 6px; padding: .2rem .4rem;
}

/* ---------- Testimonials ---------- */
.ceh-stars { color: #f5a623; letter-spacing: .15em; font-size: 1.1rem !important; }
.ceh-avatar img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }

/* ---------- FAQ ---------- */
.wp-block-details summary {
	font-weight: 700; font-size: 1.0625rem; cursor: pointer; list-style: none;
	display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+"; flex: none;
	width: 2rem; height: 2rem; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--ceh-light); color: var(--ceh-red); font-weight: 800; font-size: 1.25rem;
	transition: transform .2s;
}
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { color: var(--ceh-muted); margin-top: .75rem; }

/* ---------- Blog ---------- */
.ceh-post-card .wp-block-post-featured-image { flex-shrink: 0; width: 100%; margin: 0; overflow: hidden; border-radius: 12px 12px 0 0; }
.ceh-post-card .wp-block-post-featured-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s ease; }
.ceh-post-card:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.ceh-post-card .wp-block-post-title a { color: var(--ceh-ink-strong); text-decoration: none; }
.ceh-post-card .wp-block-post-title a:hover { color: var(--ceh-red); }
.wp-block-post-template.is-layout-grid { gap: 1.75rem; }
.wp-block-query-pagination a { text-decoration: none; font-weight: 600; }
.wp-block-query-pagination-numbers .page-numbers { padding: .4rem .75rem; border-radius: 8px; }
.wp-block-query-pagination-numbers .page-numbers.current { background: var(--ceh-red); color: #fff; }
.wp-block-post-terms a {
	display: inline-block; text-decoration: none; font-size: .75rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: .06em; color: var(--ceh-red);
}
.single .wp-block-post-content a:not(.wp-element-button) { text-decoration: underline; text-underline-offset: 3px; }
.ceh-card-link a, .ceh-footer a, .wp-block-button__link { text-decoration: none; }
.wp-block-search__input { border-radius: 8px; border: 1px solid var(--ceh-line); padding: .7rem 1rem; }
.wp-block-search__button { border-radius: 8px; }

/* ---------- Footer ---------- */
.ceh-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.ceh-footer a:hover { color: #fff; }
.ceh-footer .ceh-footer__links p { margin: .45rem 0 !important; }
.ceh-footer .wp-block-social-links .wp-social-link { background: rgba(255, 255, 255, .08) !important; color: #fff !important; }
.ceh-footer .wp-block-social-links .wp-social-link:hover { background: var(--ceh-red) !important; }
.ceh-footer .ceh-logo img { height: 34px; width: auto; }

/* ==========================================================================
   Anfrageformular
   ========================================================================== */
.ceh-quote {
	--ceh-field-bg: #fff;
	background: #fff;
	color: var(--ceh-ink);
	border-radius: 16px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, .25);
	padding: clamp(1rem, 3vw, 1.75rem);
	text-align: left;
	max-width: 100%;
	container-type: inline-size;
}
.ceh-quote--full { box-shadow: var(--ceh-shadow); border: 1px solid rgba(10, 11, 15, .08); }
.ceh-quote__heading { margin: 0 0 1rem; font-size: 1.375rem; }
.ceh-form { margin: 0; }
.ceh-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ceh-legend { font-weight: 800; font-size: .875rem; margin-bottom: .4rem; padding: 0; color: var(--ceh-ink-strong); }
.ceh-step--1 { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: end; }
.ceh-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; }
.ceh-grid { display: grid; gap: .9rem 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 1.25rem; }
.ceh-field { display: flex; flex-direction: column; gap: .3rem; margin: 0; }
.ceh-field--full { grid-column: 1 / -1; }
.ceh-label { font-size: .8125rem; font-weight: 600; color: var(--ceh-muted); }
.ceh-form input[type="text"],
.ceh-form input[type="email"],
.ceh-form input[type="tel"],
.ceh-form input[type="number"],
.ceh-form input[type="date"],
.ceh-form select,
.ceh-form textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: 1rem;
	color: var(--ceh-ink);
	background: var(--ceh-field-bg);
	border: 1.5px solid #d5d9e0;
	border-radius: 8px;
	padding: .8rem .9rem;
	min-height: 52px;
	transition: border-color .15s, box-shadow .15s;
}
.ceh-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b616e' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; background-size: 16px; padding-right: 2.2rem; }
.ceh-form input:focus,
.ceh-form select:focus,
.ceh-form textarea:focus { outline: none; border-color: var(--ceh-red); box-shadow: 0 0 0 3px rgba(227, 6, 19, .15); }
.ceh-form .is-invalid { border-color: var(--ceh-red) !important; background-color: #fff6f6 !important; }
.ceh-consent { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1rem; font-size: .875rem; color: var(--ceh-muted); line-height: 1.45; }
.ceh-consent input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--ceh-red); flex: none; }
.ceh-consent.is-invalid { color: var(--ceh-red); }
.ceh-actions { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; margin-top: 1.25rem; flex-wrap: wrap; }
.ceh-btn {
	appearance: none; border: 0; cursor: pointer;
	background: var(--ceh-red); color: #fff;
	font: inherit; font-weight: 700; font-size: 1rem;
	min-height: 52px; padding: .8rem 1.75rem; border-radius: 10px;
	transition: background-color .15s, transform .1s;
	white-space: nowrap;
}
.ceh-btn:hover, .ceh-btn:focus-visible { background: var(--ceh-red-dark); }
.ceh-btn:active { transform: translateY(1px); }
.ceh-link { appearance: none; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 600; color: var(--ceh-muted); padding: .5rem 0; }
.ceh-link:hover { color: var(--ceh-ink); }
.ceh-note { font-size: .75rem; color: var(--ceh-muted); margin: .75rem 0 0; text-align: right; }
.ceh-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ceh-notice { border-radius: 10px; padding: .9rem 1.1rem; margin-bottom: 1rem; font-size: .9375rem; }
.ceh-notice--ok { background: #eaf5f0; color: #1f5a45; border: 1px solid #bcdfd6; }
.ceh-notice--error { background: #fdecec; color: #8a0a12; border: 1px solid #f6b9bc; }

@media (min-width: 782px) {
	.ceh-quote--hero .ceh-step--1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
	.ceh-quote--full .ceh-step--1 { grid-template-columns: 1fr 1fr; }
}
@container (max-width: 620px) {
	.ceh-quote--full .ceh-step--1 { grid-template-columns: 1fr; }
}
@container (max-width: 380px) {
	.ceh-pair { grid-template-columns: 1fr; }
}
/* Hero-Variante: zweistufig (nur mit JS) */
.ceh-js .ceh-quote--hero .ceh-step--2 { display: none; }
.ceh-js .ceh-quote--hero.is-step-2 .ceh-step--2 { display: block; animation: ceh-fade .25s ease; }
.ceh-js .ceh-quote--hero.is-step-2 .ceh-next { display: none; }
.ceh-js .ceh-quote--hero.is-step-2 .ceh-step--1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
html:not(.ceh-js) .ceh-quote--hero .ceh-next,
html:not(.ceh-js) .ceh-quote--hero .ceh-back { display: none; }
@keyframes ceh-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

@media (max-width: 480px) {
	.ceh-pair { grid-template-columns: 1fr; }
	.ceh-js .ceh-quote--hero.is-step-2 .ceh-step--1 { grid-template-columns: 1fr; }
	.ceh-btn { width: 100%; }
	.ceh-actions { flex-direction: column-reverse; align-items: stretch; }
}

/* Editor-Vorschau */
.editor-styles-wrapper .ceh-quote--hero .ceh-step--2 { display: none; }
