/* APEC Seminarzentrum – ergänzende Styles (Grundgestaltung in theme.json) */

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "cv11", "ss01"; }

/* Sichtbarer Tastaturfokus */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
	border-radius: 4px;
}
.wp-element-button:focus-visible, .wp-block-button__link:focus-visible { outline-offset: 4px; }

/* Kopfbereich */
.apec-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .apec-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .apec-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .apec-header { top: 0; } }
.apec-header__bar {
	background: rgba(255, 255, 255, 0.94);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.apec-topbar a { color: inherit; text-decoration: none; }
.apec-topbar a:hover { text-decoration: underline; }
@media (max-width: 680px) { .apec-topbar .apec-topbar__secondary { display: none; } }
.apec-brand { line-height: 1.1; }
.apec-brand .wp-block-site-title { margin: 0; }
.apec-brand__tagline { margin: 0; }
.wp-block-site-logo img { max-height: 48px; width: auto; }
.apec-header .wp-block-navigation .wp-block-navigation-item__content { padding-block: 0.35rem; }
.apec-header .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; }
.apec-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { gap: 1rem; font-size: 1.25rem; }
@media (max-width: 599px) { .apec-header__cta { display: none !important; } .apec-brand__tagline { display: none; } }

/* Dachzeile */
.is-style-apec-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: var(--wp--preset--font-size--x-small) !important;
	font-weight: 800;
	color: var(--wp--preset--color--primary);
}
.has-night-background-color .is-style-apec-eyebrow,
.has-contrast-background-color .is-style-apec-eyebrow,
.wp-block-cover .is-style-apec-eyebrow,
.is-style-apec-card-dark .is-style-apec-eyebrow { color: var(--wp--preset--color--accent-light); }

/* Badges */
.is-style-apec-badge {
	display: inline-block;
	margin: 0 !important;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	background: rgba(255, 255, 255, 0.10);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 650;
	line-height: 1.3;
}
:where(.has-base-background-color, .has-surface-background-color) .is-style-apec-badge {
	border-color: var(--wp--preset--color--line);
	background: var(--wp--preset--color--base);
}

/* Karten */
.is-style-apec-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--large);
	box-shadow: var(--wp--preset--shadow--soft);
	overflow: hidden;
	transition: transform var(--wp--custom--transition), box-shadow var(--wp--custom--transition);
}
.is-style-apec-card-dark {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	border-radius: var(--wp--custom--radius--large);
	overflow: hidden;
}
.is-style-apec-card-dark :where(h1, h2, h3, h4) { color: var(--wp--preset--color--base); }
.apec-card-hover:hover { transform: translateY(-4px); box-shadow: var(--wp--preset--shadow--lift); }
.apec-card--featured { border: 2px solid var(--wp--preset--color--accent) !important; }
.apec-card .wp-block-image { margin: 0; }
.apec-card .wp-block-image img { border-radius: 0; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.apec-card__media-placeholder {
	aspect-ratio: 16 / 10;
	display: flex !important;
	flex-direction: column;
	justify-content: flex-end;
	margin: 0 !important;
}
.apec-card__media-placeholder .apec-m2 { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.apec-card__link a { text-decoration: none; font-weight: 700; }
.apec-card__link a::after { content: " →"; transition: margin var(--wp--custom--transition); }
.apec-card__link a:hover::after { margin-left: 4px; }
.apec-stretch-card { height: 100%; }

/* Häkchenliste */
.is-style-apec-checklist { list-style: none; padding-left: 0 !important; }
.is-style-apec-checklist li { position: relative; padding-left: 2rem; margin-bottom: 0.6rem; }
.is-style-apec-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 50%;
	background: var(--wp--preset--color--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5l2.6 2.5L12 5.5'/%3E%3C/svg%3E") center / 75% no-repeat;
}

/* Buttons */
.wp-block-button.is-style-apec-light .wp-block-button__link { background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); }
.wp-block-button.is-style-apec-light .wp-block-button__link:hover { background: var(--wp--preset--color--surface); }
.wp-block-button.is-style-apec-ghost-light .wp-block-button__link { background: transparent; color: var(--wp--preset--color--base); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6); }
.wp-block-button.is-style-apec-ghost-light .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.12); }
.wp-block-button.is-style-outline .wp-block-button__link { border: 1.5px solid currentColor; }
.wp-block-button__link { transition: background-color var(--wp--custom--transition), color var(--wp--custom--transition), transform var(--wp--custom--transition); }
.wp-block-button__link:active { transform: translateY(1px); }

/* Bilder */
.is-style-apec-framed img { border-radius: var(--wp--custom--radius--large); box-shadow: var(--wp--preset--shadow--lift); }

/* Kennzahlen */
.apec-stat__value { font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 0; }
.apec-stat__label { margin: 0.4rem 0 0; }

/* Ablauf-Schritte */
.apec-step__number {
	display: inline-flex; align-items: center; justify-content: center;
	width: 2.5rem; height: 2.5rem; border-radius: 50%;
	background: var(--wp--preset--color--primary); color: #fff;
	font-weight: 800; font-size: 1rem; margin: 0;
}

/* Hero */
.apec-hero { min-height: min(86vh, 760px) !important; }
.apec-hero h1 { max-width: 17ch; text-wrap: balance; }
.apec-hero .apec-hero__lead { max-width: 40rem; }
:where(h1, h2, h3) { text-wrap: balance; }
p { text-wrap: pretty; }

/* Preise */
.apec-price { font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 0; }
.apec-price small { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--wp--preset--color--muted); }
.apec-price-rows { border-top: 1px solid var(--wp--preset--color--line); }
.apec-price-rows p { display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding: 0.7rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }

/* Fußbereich */
.apec-footer a { color: inherit; text-decoration: none; }
.apec-footer a:hover { color: var(--wp--preset--color--base); text-decoration: underline; }
.apec-footer .wp-block-navigation { --navigation-layout-direction: column; }

/* Beitragsliste */
.apec-post-card .wp-block-post-featured-image img { aspect-ratio: 16 / 9; object-fit: cover; }

/* Rechtliche Seiten */
.apec-legal h2 { font-size: var(--wp--preset--font-size--x-large); margin-top: 2.5rem; }
.apec-legal h3 { font-size: var(--wp--preset--font-size--large); margin-top: 1.75rem; }
.apec-placeholder { background: #FFF4F2; border-left: 3px solid var(--wp--preset--color--accent); padding: 0.75rem 1rem; border-radius: 6px; }

/* Mobile Feinheiten */
@media (max-width: 781px) {
	.apec-hero { min-height: 0 !important; }
	.apec-reverse-mobile { flex-direction: column-reverse; }
}
.apec-plain-list { list-style: none; padding-left: 0 !important; }
.apec-plain-list li { margin-bottom: 0.45rem; }
@media (max-width: 781px) {
	.apec-facts { display: grid !important; grid-template-columns: 1fr 1fr; gap: 1.5rem !important; }
}
.is-style-apec-card-dark a:not(.wp-element-button) { color: inherit; }
.has-text-align-center { text-align: center; }
.wp-site-blocks > footer, .wp-site-blocks > .wp-block-template-part:last-child { margin-block-start: 0; }
.wp-site-blocks > main, .wp-site-blocks > header + * { margin-block-start: 0; }
@media (min-width: 782px) and (max-width: 1100px) {
	.apec-audiences { flex-wrap: wrap !important; }
	.apec-audiences > .wp-block-column { flex-basis: calc(50% - 1rem) !important; }
}
