/* ==========================================================================
   AFDMDB Theme
   ========================================================================== */

:root {
	--c-bg: #ffffff;
	--c-surface: #f2f6fb;
	--c-surface-2: #e7eef7;
	--c-ink: #0e2238;
	--c-text: #3a4b5e;
	--c-muted: #64748a;
	--c-accent: #0156a5;
	--c-accent-dark: #013f7a;
	--c-accent-2: #1194d1;
	--c-line: #dce5ef;

	--f-head: "Bitter", Georgia, "Times New Roman", serif;
	--f-body: "Bitter", Georgia, "Times New Roman", serif;
	--f-label: "Bitter", Georgia, "Times New Roman", serif;

	--container: 1200px;
	--text-width: 760px;
	--gutter: clamp(20px, 4.5vw, 48px);
	--section: clamp(72px, 9vw, 128px);

	--r-sm: 8px;
	--r-md: 16px;
	--r-lg: 24px;
	--r-pill: 999px;

	--shadow-sm: 0 1px 2px rgba(14, 34, 56, .06), 0 4px 14px -6px rgba(1, 86, 165, .18);
	--shadow-md: 0 1px 2px rgba(14, 34, 56, .05), 0 18px 40px -18px rgba(1, 86, 165, .32);
	--shadow-lg: 0 30px 70px -30px rgba(1, 63, 122, .45);

	--header-h: 92px;
	--header-h-small: 72px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--ease-out: cubic-bezier(.16, 1, .3, 1);

	--grad: linear-gradient(115deg, #0156a5 0%, #0a74bd 55%, #1194d1 100%);
}

/* --------------------------------------------------------------------------
   Basis
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h-small) + 16px);
}

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--f-body);
	font-size: clamp(1rem, .2vw + .95rem, 1.125rem);
	line-height: 1.7;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

body.panel-open { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; }

:where(h1, h2, h3, h4, h5, h6) {
	margin: 0 0 .5em;
	color: var(--c-ink);
	font-family: var(--f-head);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.01em;
	text-wrap: balance;
}

:where(h1) { font-size: clamp(2.5rem, 5.6vw, 4.75rem); line-height: 1.02; }
:where(h2) { font-size: clamp(2rem, 3.8vw, 3.25rem); }
:where(h3) { font-size: clamp(1.375rem, 1.6vw, 1.625rem); }
:where(h4) { font-size: 1.25rem; }

:where(p) { margin: 0 0 1em; }
:where(p:last-child) { margin-bottom: 0; }

a {
	color: var(--c-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: .18em;
	transition: color .2s var(--ease);
}
a:hover { color: var(--c-accent-dark); }

:focus-visible {
	outline: 3px solid var(--c-accent-2);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection { background: var(--c-accent); color: #fff; }

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 1000;
	padding: 10px 18px;
	background: var(--c-ink);
	color: #fff;
	border-radius: var(--r-sm);
	font-family: var(--f-label);
	font-weight: 600;
	text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--text { max-width: calc(var(--text-width) + 2 * var(--gutter)); }

.section { padding-block: var(--section); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid transparent;
	transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header.is-scrolled {
	border-color: var(--c-line);
	box-shadow: 0 10px 30px -18px rgba(14, 34, 56, .35);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	max-width: calc(var(--container) + 2 * var(--gutter));
	height: var(--header-h);
	margin-inline: auto;
	padding-inline: var(--gutter);
	transition: height .3s var(--ease);
}
.site-header.is-scrolled .site-header__inner { height: var(--header-h-small); }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; line-height: 0; }
.brand__img {
	width: auto;
	height: 60px;
	transition: height .3s var(--ease), transform .3s var(--ease);
}
.site-header.is-scrolled .brand__img { height: 48px; }
.brand:hover .brand__img { transform: translateY(-1px); }
.brand__text { font-family: var(--f-head); font-weight: 800; font-size: 1.4rem; color: var(--c-ink); line-height: 1.1; }

/* Desktop-Navigation */
.primary-nav__menu,
.primary-nav__menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.primary-nav__menu {
	display: flex;
	align-items: center;
	gap: 6px;
}
.primary-nav__menu > li { position: relative; display: flex; align-items: center; }
.primary-nav__menu > li > a {
	position: relative;
	display: block;
	padding: 10px 14px;
	color: var(--c-ink);
	font-family: var(--f-head);
	font-weight: 700;
	font-size: 1.0625rem;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}
.primary-nav__menu > li > a::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 4px;
	height: 3px;
	border-radius: 3px;
	background: var(--c-accent);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .35s var(--ease-out);
}
.primary-nav__menu > li > a:hover,
.primary-nav__menu > li.current-menu-item > a,
.primary-nav__menu > li.current-menu-ancestor > a { color: var(--c-accent); }
.primary-nav__menu > li > a:hover::after,
.primary-nav__menu > li.current-menu-item > a::after,
.primary-nav__menu > li.current-menu-ancestor > a::after { transform: scaleX(1); }

.primary-nav__menu > li.menu-item-has-children > a { padding-right: 4px; }
.primary-nav__menu > li.menu-item-has-children > a::after { right: 4px; }

.submenu-toggle {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	margin-right: 6px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--c-ink);
	cursor: pointer;
	transition: transform .3s var(--ease), background-color .2s var(--ease);
}
.submenu-toggle:hover { background: var(--c-surface); }

.primary-nav__menu .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 260px;
	padding: 10px;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	box-shadow: var(--shadow-md);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.primary-nav__menu .sub-menu::before {
	content: "";
	position: absolute;
	inset: -10px 0 auto 0;
	height: 10px;
}
.primary-nav__menu > li:hover > .sub-menu,
.primary-nav__menu > li:focus-within > .sub-menu,
.primary-nav__menu > li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition-delay: 0s;
}
.primary-nav__menu > li:hover > .submenu-toggle,
.primary-nav__menu > li.is-open > .submenu-toggle { transform: rotate(180deg); }

.primary-nav__menu .sub-menu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 14px;
	border-radius: var(--r-sm);
	color: var(--c-ink);
	font-family: var(--f-body);
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	transition: background-color .2s var(--ease), color .2s var(--ease);
}
.primary-nav__menu .sub-menu a[target="_blank"]::after,
.mobile-nav__menu a[target="_blank"]::after {
	content: "";
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	background: currentColor;
	opacity: .55;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 2h6v6M10 2 3 9' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 2h6v6M10 2 3 9' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.primary-nav__menu .sub-menu a:hover { background: var(--c-surface); color: var(--c-accent); }

/* Burger */
.nav-toggle {
	display: none;
	align-items: center;
	gap: 12px;
	height: 46px;
	padding: 0 8px 0 18px;
	border: 1px solid var(--c-line);
	border-radius: var(--r-pill);
	background: #fff;
	color: var(--c-ink);
	font-family: var(--f-label);
	font-weight: 600;
	font-size: 1.0625rem;
	letter-spacing: .02em;
	cursor: pointer;
	transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--c-accent); }
.nav-toggle__bars {
	position: relative;
	display: inline-block;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--c-accent);
}
.nav-toggle__bars span {
	position: absolute;
	left: 8px;
	right: 8px;
	height: 2px;
	border-radius: 2px;
	background: #fff;
	transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 10px; }
.nav-toggle__bars span:nth-child(2) { top: 14px; }
.nav-toggle__bars span:nth-child(3) { top: 18px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 14px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: 14px; transform: rotate(-45deg); }

/* Mobiles Panel */
.mobile-panel {
	position: fixed;
	top: var(--panel-top, var(--header-h));
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99;
	overflow-y: auto;
	background: #fff;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-12px);
	transition: opacity .3s var(--ease), transform .35s var(--ease-out), visibility 0s .35s;
}
.mobile-panel.is-open {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}
.mobile-panel__inner {
	display: flex;
	flex-direction: column;
	gap: 32px;
	min-height: 100%;
	padding: 24px var(--gutter) 40px;
}
.mobile-panel__backdrop { display: none; }

.mobile-nav__menu,
.mobile-nav__menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav__menu > li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	border-bottom: 1px solid var(--c-line);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .35s var(--ease), transform .45s var(--ease-out);
}
.mobile-panel.is-open .mobile-nav__menu > li { opacity: 1; transform: none; }
.mobile-panel.is-open .mobile-nav__menu > li:nth-child(2) { transition-delay: .04s; }
.mobile-panel.is-open .mobile-nav__menu > li:nth-child(3) { transition-delay: .08s; }
.mobile-panel.is-open .mobile-nav__menu > li:nth-child(4) { transition-delay: .12s; }
.mobile-panel.is-open .mobile-nav__menu > li:nth-child(5) { transition-delay: .16s; }
.mobile-panel.is-open .mobile-nav__menu > li:nth-child(6) { transition-delay: .2s; }

.mobile-nav__menu > li > a {
	flex: 1;
	display: block;
	padding: 18px 0;
	color: var(--c-ink);
	font-family: var(--f-head);
	font-weight: 800;
	font-size: clamp(1.5rem, 5.5vw, 2rem);
	line-height: 1.15;
	text-decoration: none;
	cursor: pointer;
}
.mobile-nav__menu > li.current-menu-item > a { color: var(--c-accent); }
.mobile-nav__menu .submenu-toggle {
	width: 44px;
	height: 44px;
	margin: 0;
	background: var(--c-surface);
}
.mobile-nav__menu .submenu-toggle svg { width: 14px; height: 14px; }
.mobile-nav__menu li.is-open > .submenu-toggle { transform: rotate(180deg); }
.mobile-nav__menu .sub-menu {
	flex-basis: 100%;
	max-height: 0;
	overflow: hidden;
	transition: max-height .4s var(--ease), padding .3s var(--ease);
}
.mobile-nav__menu li.is-open > .sub-menu { max-height: 400px; padding-bottom: 14px; }
.mobile-nav__menu .sub-menu a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0 10px 16px;
	border-left: 2px solid var(--c-line);
	color: var(--c-text);
	font-weight: 600;
	font-size: 1.125rem;
	text-decoration: none;
}

/* Breakpoint Navigation */
@media (max-width: 1024px) {
	:root { --header-h: 76px; --header-h-small: 68px; }
	.primary-nav { display: none; }
	.nav-toggle { display: inline-flex; }
	.brand__img { height: 48px; }
	.site-header.is-scrolled .brand__img { height: 42px; }
}
@media (max-width: 480px) {
	.nav-toggle__label { display: none; }
	.nav-toggle { padding: 0 7px; border-color: transparent; }
	.brand__img { height: 42px; }
}
@media (min-width: 1025px) {
	.mobile-panel, .mobile-panel__backdrop { display: none !important; }
}

/* --------------------------------------------------------------------------
   Social Links
   -------------------------------------------------------------------------- */

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.social-link {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--c-surface);
	color: var(--c-accent);
	transition: transform .25s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.social-link:hover { transform: translateY(-3px); background: var(--c-accent); color: #fff; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
	position: relative;
	margin-top: 0;
	background: var(--c-surface);
	color: var(--c-text);
	border-top: 1px solid var(--c-line);
}
.site-footer__main {
	display: grid;
	grid-template-columns: 1.3fr 1fr auto;
	gap: 48px;
	align-items: start;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding: clamp(56px, 7vw, 88px) var(--gutter) 40px;
}
.footer-brand { display: inline-block; line-height: 0; }
.footer-brand__img { width: auto; height: 72px; }
.site-footer__role {
	margin: 16px 0 0;
	color: var(--c-ink);
	font-family: var(--f-head);
	font-weight: 700;
	font-size: 1.125rem;
}
.footer-nav__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-nav__menu li:has(> a:not([href])) { display: none; }
.footer-nav__menu a {
	color: var(--c-ink);
	font-family: var(--f-label);
	font-weight: 600;
	font-size: 1.1875rem;
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
	transition: background-size .3s var(--ease-out), color .2s var(--ease);
}
.footer-nav__menu a:hover { color: var(--c-accent); background-size: 100% 2px; }

.social-links--footer .social-link { background: #fff; box-shadow: var(--shadow-sm); }
.social-links--footer .social-link:hover { background: var(--c-accent); }

.site-footer__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding: 22px var(--gutter) 28px;
	border-top: 1px solid var(--c-line);
	font-size: 1rem;
}
.site-footer__bar p { margin: 0; color: var(--c-ink); font-weight: 600; }
.footer-legal__menu { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 0; }
.footer-legal__menu a { color: var(--c-text); text-decoration: none; }
.footer-legal__menu a:hover { color: var(--c-accent); text-decoration: underline; }

.site-footer__banner { line-height: 0; background: #fff; }
.site-footer__banner img { display: block; width: 100%; height: auto; }

@media (max-width: 900px) {
	.site-footer__main { grid-template-columns: 1fr 1fr; }
	.site-footer__social { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.site-footer__main { grid-template-columns: 1fr; gap: 32px; }
	.footer-brand__img { height: 60px; }
	.site-footer__bar { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   Seitenkopf (nicht-Elementor-Seiten, 404, Archive)
   -------------------------------------------------------------------------- */

.page-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(72px, 10vw, 140px);
	background: var(--grad);
	color: #fff;
}
.page-hero--compact { padding-block: clamp(56px, 7vw, 96px); }
.page-hero::after {
	content: "";
	position: absolute;
	right: -10%;
	top: -40%;
	width: 60%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(255, 255, 255, .14), transparent);
	pointer-events: none;
}
.page-hero__title { color: #fff; margin: 0; }
.page-hero__meta { display: block; margin-bottom: 12px; font-family: var(--f-label); font-weight: 600; font-size: 1.125rem; letter-spacing: .04em; opacity: .85; }
.page-hero__lead { max-width: 560px; margin: 18px 0 32px; font-size: 1.25rem; opacity: .92; }

.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { margin-top: 1.6em; font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
.entry-content h3 { margin-top: 1.4em; }
.entry-thumb { margin: 0 0 32px; }
.entry-thumb img { border-radius: var(--r-md); }

/* Beitragskarten */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	box-shadow: var(--shadow-sm);
	transition: transform .35s var(--ease-out), box-shadow .35s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card__media { display: block; aspect-ratio: 16 / 10; background: var(--c-surface-2); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__date { font-family: var(--f-label); font-weight: 600; color: var(--c-muted); }
.post-card__title { margin: 0; font-size: 1.375rem; }
.post-card__title a { color: var(--c-ink); text-decoration: none; }
.post-card__title a:hover { color: var(--c-accent); }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--r-pill); background: var(--c-surface); color: var(--c-ink); text-decoration: none; font-weight: 600; }
.pagination .page-numbers.current { background: var(--c-accent); color: #fff; }

/* Buttons und Links (Theme-eigen) */
.afd-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 30px;
	border-radius: var(--r-pill);
	background: var(--c-accent);
	color: #fff;
	font-family: var(--f-label);
	font-weight: 600;
	font-size: 1.1875rem;
	letter-spacing: .02em;
	text-decoration: none;
	transition: transform .25s var(--ease), background-color .2s var(--ease), box-shadow .25s var(--ease);
}
.afd-button:hover { color: #fff; background: var(--c-accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.afd-button--light { background: #fff; color: var(--c-accent); }
.afd-button--light:hover { background: #fff; color: var(--c-accent-dark); }
.afd-link { font-family: var(--f-label); font-weight: 600; font-size: 1.125rem; text-decoration: none; }
.afd-link::after { content: " \2192"; display: inline-block; transition: transform .25s var(--ease); }
.afd-link:hover::after { transform: translateX(4px); }

/* ==========================================================================
   Elementor-Integration
   ========================================================================== */

.site-main > .elementor { overflow: clip; }

/* Typo-Grundlagen für Elementor-Widgets */
.elementor-widget-heading .elementor-heading-title {
	font-family: var(--f-head);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.01em;
	text-wrap: balance;
}
.elementor-widget-heading h1.elementor-heading-title { font-size: clamp(2.5rem, 5.6vw, 4.75rem); line-height: 1.02; }
.elementor-widget-heading h2.elementor-heading-title { font-size: clamp(2rem, 3.8vw, 3.25rem); }
.elementor-widget-heading h3.elementor-heading-title { font-size: clamp(1.375rem, 1.7vw, 1.625rem); }
.elementor-widget-heading h4.elementor-heading-title { font-size: 1.25rem; }
.elementor-widget-heading p.elementor-heading-title,
.elementor-widget-heading span.elementor-heading-title,
.elementor-widget-heading div.elementor-heading-title { font-size: clamp(1.25rem, 1.6vw, 1.5rem); }

.elementor-widget-text-editor { font-family: var(--f-body); font-size: inherit; line-height: 1.65; }
.elementor-widget-text-editor p { margin: 0 0 1em; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* Abschnitte: einheitlicher Container für alle Sektionen */
.e-con.afd-section {
	--padding-top: var(--section);
	--padding-bottom: var(--section);
	--padding-left: var(--gutter);
	--padding-right: var(--gutter);
	--content-width: var(--container);
}
.e-con.afd-section--tight { --padding-top: clamp(48px, 6vw, 80px); --padding-bottom: clamp(48px, 6vw, 80px); }
.e-con.afd-section--flush-top { --padding-top: 0; }
.e-con.afd-section--surface { background-color: var(--c-surface); }
.e-con.afd-col {
	--padding-top: 0;
	--padding-bottom: 0;
	--padding-left: 0;
	--padding-right: 0;
}
.afd-measure { max-width: var(--text-width); }

/* Kicker / kleine Überschrift */
.afd-kicker .elementor-heading-title {
	font-family: var(--f-label) !important;
	font-weight: 600 !important;
	font-size: clamp(1.125rem, 1.3vw, 1.3125rem) !important;
	line-height: 1.3 !important;
	letter-spacing: .03em !important;
	color: var(--c-accent) !important;
}
.afd-kicker--light .elementor-heading-title { color: rgba(255, 255, 255, .85) !important; }

/* Markierte Überschrift (Signatur der bisherigen Seite) */
.afd-mark .elementor-heading-title {
	display: inline;
	padding: .02em .28em .06em;
	background: var(--c-accent);
	color: #fff !important;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	line-height: 1.3 !important;
}

/* Buttons (Elementor-Button-Widget) */
.elementor-widget-button .elementor-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 32px;
	border-radius: var(--r-pill);
	background-color: var(--c-accent);
	color: #fff;
	font-family: var(--f-label);
	font-weight: 600;
	font-size: 1.1875rem;
	line-height: 1.1;
	letter-spacing: .02em;
	transition: transform .25s var(--ease), background-color .2s var(--ease), box-shadow .25s var(--ease), color .2s var(--ease);
}
.elementor-widget-button .elementor-button:hover,
.elementor-widget-button .elementor-button:focus-visible {
	background-color: var(--c-accent-dark);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}
.elementor-widget-button .elementor-button .elementor-button-icon { transition: transform .25s var(--ease); }
.elementor-widget-button .elementor-button:hover .elementor-button-icon { transform: translateX(4px); }
.afd-btn-light .elementor-button { background-color: #fff !important; color: var(--c-accent) !important; }
.afd-btn-light .elementor-button:hover { background-color: #fff !important; color: var(--c-accent-dark) !important; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .45); }
.afd-btn-outline .elementor-button { background-color: transparent !important; color: var(--c-accent) !important; box-shadow: inset 0 0 0 2px var(--c-accent); }
.afd-btn-outline .elementor-button:hover { background-color: var(--c-accent) !important; color: #fff !important; }

/* Bilder */
.afd-rounded img { border-radius: var(--r-md); }
.afd-media { position: relative; }
.afd-media img {
	position: relative;
	z-index: 1;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-lg);
}
.afd-media::before {
	content: "";
	position: absolute;
	z-index: 0;
	inset: 28px -18px -18px 28px;
	border-radius: var(--r-lg);
	background: var(--grad);
	opacity: .9;
}

/* Hero */
.e-con.afd-hero {
	--padding-top: clamp(48px, 7vw, 96px);
	--padding-bottom: 0;
	--padding-left: var(--gutter);
	--padding-right: var(--gutter);
	--content-width: var(--container);
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.e-con.afd-hero::after {
	content: "";
	position: absolute;
	z-index: 0;
	right: -12%;
	bottom: -55%;
	width: min(900px, 80vw);
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0));
	pointer-events: none;
}
.afd-hero > .e-con-inner { position: relative; z-index: 1; }
.afd-hero__content { padding-bottom: clamp(48px, 7vw, 96px) !important; }
.afd-hero .elementor-heading-title { color: #fff; text-shadow: 0 2px 24px rgba(1, 40, 80, .25); }
.afd-hero h1.elementor-heading-title { font-size: clamp(3rem, 7vw, 6rem); line-height: .98; }
.afd-hero__sub .elementor-heading-title {
	font-family: var(--f-head) !important;
	font-weight: 600 !important;
	font-size: clamp(1.375rem, 2.2vw, 2rem) !important;
	line-height: 1.2 !important;
	opacity: .95;
}
.afd-hero__portrait { align-self: flex-end; }
.afd-hero__portrait img {
	display: block;
	width: 100%;
	max-width: 560px;
	margin-left: auto;
}

/* Social-Icons-Widget auf Blau */
.afd-hero .elementor-social-icon {
	background-color: rgba(255, 255, 255, .14) !important;
	border: 1px solid rgba(255, 255, 255, .35);
	transition: transform .25s var(--ease), background-color .2s var(--ease);
}
.afd-hero .elementor-social-icon i,
.afd-hero .elementor-social-icon svg { color: #fff !important; fill: #fff !important; }
.afd-hero .elementor-social-icon:hover { background-color: #fff !important; transform: translateY(-3px); }
.afd-hero .elementor-social-icon:hover i,
.afd-hero .elementor-social-icon:hover svg { color: var(--c-accent) !important; fill: var(--c-accent) !important; }
.elementor-social-icon { transition: transform .25s var(--ease), opacity .2s var(--ease); }
.elementor-social-icon:hover { transform: translateY(-3px); }

/* Video-Sektion */
.e-con.afd-section--video { position: relative; isolation: isolate; }
.afd-section--video .elementor-background-video-container { z-index: -2; }
.afd-section--video::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(100deg, rgba(8, 26, 48, .92) 0%, rgba(8, 26, 48, .78) 45%, rgba(1, 63, 122, .45) 100%);
}
.afd-section--video .elementor-widget-text-editor { color: rgba(255, 255, 255, .92); }
.afd-section--video .elementor-heading-title { color: #fff; }

/* Karten */
.e-con.afd-cards { --gap: 28px; --row-gap: 28px; --column-gap: 28px; --flex-wrap: nowrap; }
.afd-cards > .e-con-inner > .afd-card,
.afd-cards > .afd-card { --width: auto; flex: 1 1 0; min-width: 0; }
.e-con.afd-card {
	--padding-top: clamp(28px, 3vw, 40px);
	--padding-bottom: clamp(28px, 3vw, 40px);
	--padding-left: clamp(24px, 2.6vw, 36px);
	--padding-right: clamp(24px, 2.6vw, 36px);
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	box-shadow: var(--shadow-sm);
	transition: transform .4s var(--ease-out), box-shadow .4s var(--ease), border-color .3s var(--ease);
}
.e-con.afd-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.afd-card .elementor-widget-text-editor { font-size: 1.0625rem; }

.afd-icon-badge .elementor-icon-wrapper { text-align: left; }
.afd-icon-badge .elementor-icon {
	display: inline-grid !important;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 18px;
	background: var(--c-surface);
	color: var(--c-accent) !important;
	fill: var(--c-accent) !important;
	font-size: 28px !important;
	transition: transform .4s var(--ease-out), background-color .3s var(--ease), color .3s var(--ease);
}
.afd-icon-badge .elementor-icon svg { width: 28px; height: 28px; fill: currentColor; }
.afd-icon-badge .elementor-icon i { color: inherit !important; }
.afd-card:hover .afd-icon-badge .elementor-icon { background: var(--c-accent); color: #fff !important; fill: #fff !important; transform: rotate(-6deg) scale(1.05); }

/* Verlaufsband */
.e-con.afd-band {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background-image: var(--grad);
	background-size: 180% 180%;
	color: #fff;
}
.afd-band .elementor-heading-title,
.afd-band .elementor-widget-text-editor { color: #fff; }
.afd-band::before,
.afd-band::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	pointer-events: none;
}
.afd-band::before { width: 520px; height: 520px; right: -140px; top: -220px; background: radial-gradient(closest-side, rgba(255, 255, 255, .16), transparent); }
.afd-band::after { width: 380px; height: 380px; left: -160px; bottom: -200px; background: radial-gradient(closest-side, rgba(255, 255, 255, .1), transparent); }

.afd-big-icon .elementor-icon {
	display: inline-grid !important;
	place-items: center;
	width: clamp(140px, 16vw, 220px);
	height: clamp(140px, 16vw, 220px);
	border-radius: 50%;
	font-size: clamp(56px, 6vw, 90px) !important;
}
.afd-big-icon .elementor-icon svg { width: 42%; height: 42%; }
.afd-big-icon--light .elementor-icon { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); color: #fff !important; fill: #fff !important; }
.afd-big-icon--light .elementor-icon i { color: #fff !important; }
.afd-big-icon--accent .elementor-icon { background: var(--c-surface); color: var(--c-accent) !important; fill: var(--c-accent) !important; }
.afd-big-icon--accent .elementor-icon i { color: var(--c-accent) !important; }

/* Kontakt-Karte */
.e-con.afd-panel {
	--padding-top: clamp(36px, 5vw, 64px);
	--padding-bottom: clamp(36px, 5vw, 64px);
	--padding-left: clamp(24px, 5vw, 64px);
	--padding-right: clamp(24px, 5vw, 64px);
	background: var(--c-surface);
	border-radius: var(--r-lg);
}

/* Icon-Liste (Kontaktseite) */
.elementor-widget-icon-list .elementor-icon-list-icon i,
.elementor-widget-icon-list .elementor-icon-list-icon svg { color: var(--c-accent); fill: var(--c-accent); }

/* --------------------------------------------------------------------------
   Formulare (Contact Form 7)
   -------------------------------------------------------------------------- */

.wpcf7 { font-family: var(--f-body); }
.wpcf7 form p { margin: 0 0 18px; }
.wpcf7 label { display: block; color: var(--c-ink); font-weight: 600; font-size: 1.0625rem; }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1.5px solid var(--c-line);
	border-radius: var(--r-sm);
	background: #fff;
	color: var(--c-ink);
	font: inherit;
	font-weight: 400;
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.wpcf7 textarea { min-height: 160px; resize: vertical; }
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 4px rgba(1, 86, 165, .15); }
.wpcf7 ::placeholder { color: #8796a8; }
.wpcf7 .wpcf7-list-item { margin: 4px 18px 4px 0; }
.wpcf7 .wpcf7-list-item label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] { width: 20px; height: 20px; accent-color: var(--c-accent); }
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
	appearance: none;
	display: inline-flex;
	padding: 15px 34px;
	border: 0;
	border-radius: var(--r-pill);
	background: var(--c-accent);
	color: #fff;
	font-family: var(--f-label);
	font-weight: 600;
	font-size: 1.1875rem;
	letter-spacing: .02em;
	cursor: pointer;
	transition: transform .25s var(--ease), background-color .2s var(--ease), box-shadow .25s var(--ease);
}
.wpcf7 input[type="submit"]:hover { background: var(--c-accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.wpcf7 .wpcf7-spinner { vertical-align: middle; }
.wpcf7 .wpcf7-not-valid-tip { margin-top: 6px; color: #b42318; font-size: .95rem; font-weight: 500; }
.wpcf7 form .wpcf7-response-output { margin: 18px 0 0; padding: 14px 18px; border-radius: var(--r-sm); border-width: 1.5px; }

/* --------------------------------------------------------------------------
   Animationen
   -------------------------------------------------------------------------- */

@keyframes afdFadeUp {
	from { opacity: 0; transform: translate3d(0, 28px, 0); }
	to { opacity: 1; transform: none; }
}
@keyframes afdRise {
	from { opacity: 0; transform: translate3d(0, 48px, 0) scale(.97); }
	to { opacity: 1; transform: none; }
}
@keyframes afdGradient {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

/* Hero-Einstieg */
.js .afd-hero .afd-hero__content > .elementor-element { animation: afdFadeUp .9s var(--ease-out) both; }
.js .afd-hero .afd-hero__content > .elementor-element:nth-child(2) { animation-delay: .12s; }
.js .afd-hero .afd-hero__content > .elementor-element:nth-child(3) { animation-delay: .24s; }
.js .afd-hero .afd-hero__content > .elementor-element:nth-child(4) { animation-delay: .36s; }
.js .afd-hero .afd-hero__portrait { animation: afdRise 1.2s .15s var(--ease-out) both; }

/* Seitenkopf */
.js .page-hero .container > * { animation: afdFadeUp .8s var(--ease-out) both; }
.js .page-hero .container > *:nth-child(2) { animation-delay: .1s; }
.js .page-hero .container > *:nth-child(3) { animation-delay: .2s; }

/* Scroll-Reveal (nur mit JS, sonst sichtbar) */
.js .afd-reveal {
	opacity: 0;
	transform: translate3d(0, 32px, 0);
	transition: opacity .8s var(--ease-out), transform .9s var(--ease-out);
	transition-delay: var(--reveal-delay, 0s);
}
.js .afd-reveal.is-visible { opacity: 1; transform: none; }
.js .afd-card.afd-reveal.is-visible { transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), box-shadow .4s var(--ease), border-color .3s var(--ease); }
.js .afd-card.afd-reveal.is-visible:hover { transform: translateY(-6px); transition-delay: 0s; }

.afd-band { animation: afdGradient 16s ease-in-out infinite; }

/* Elementor-Editor: keine Animationen */
.elementor-editor-active .afd-reveal { opacity: 1 !important; transform: none !important; }
.elementor-editor-active .afd-hero * { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
	.js .afd-reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive Feinschliff für Elementor-Inhalte
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.e-con.afd-split { --flex-direction: column; --gap: 48px; --row-gap: 48px; }
	.e-con.afd-split > .e-con-inner,
	.e-con.afd-panel { flex-direction: column !important; align-items: flex-start !important; }
	.afd-panel > .e-con { --width: 100% !important; width: 100% !important; }
	.afd-split > .e-con-inner > .e-con,
	.afd-split > .e-con { --width: 100% !important; width: 100% !important; }
	.e-con.afd-cards { --flex-wrap: wrap; flex-wrap: wrap; }
	.e-con.afd-cards > .e-con-inner { flex-wrap: wrap; }
	.afd-cards > .e-con-inner > .afd-card,
	.afd-cards > .afd-card { flex: 1 1 calc(50% - 14px); }
	.afd-media::before { inset: 20px -10px -10px 20px; }
}
@media (max-width: 1024px) and (min-width: 768px) {
	.afd-hero > .e-con-inner { flex-direction: row !important; align-items: flex-end; }
	.afd-hero .afd-hero__content { --width: 56% !important; }
	.afd-hero .afd-hero__portrait { --width: 44% !important; }
}
@media (max-width: 767px) {
	.afd-cards > .e-con-inner > .afd-card,
	.afd-cards > .afd-card { flex: 1 1 100%; }
	.afd-hero > .e-con-inner { flex-direction: column !important; }
	.afd-hero .afd-hero__content,
	.afd-hero .afd-hero__portrait { --width: 100% !important; width: 100% !important; }
	.afd-hero__content { padding-bottom: 8px !important; }
	.afd-hero__portrait img { max-width: 420px; margin-inline: auto; }
	.afd-big-icon { display: none; }
	.afd-media::before { inset: 16px -8px -8px 16px; }
	.elementor-widget-button .elementor-button { padding: 14px 26px; }
}

/* Feinschliff */
.elementor-widget-button .elementor-button .elementor-button-icon svg { fill: currentColor; width: 1em; height: 1em; }
.elementor-widget-button .elementor-button .elementor-button-icon i { color: currentColor; }
.afd-panel .afd-big-icon--accent .elementor-icon { background: #fff; box-shadow: var(--shadow-sm); }
@media (max-width: 1024px) {
	.e-con.afd-section--video { --min-height: 0px; min-height: 0; }
}

/* Seitenkopf in Elementor-Seiten */
.e-con.afd-pagehead {
	--padding-top: clamp(64px, 8vw, 112px);
	--padding-bottom: clamp(56px, 7vw, 96px);
	--padding-left: var(--gutter);
	--padding-right: var(--gutter);
	--content-width: var(--container);
	--gap: 18px;
	--row-gap: 18px;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background-image: var(--grad);
	color: #fff;
}
.e-con.afd-pagehead::after {
	content: "";
	position: absolute;
	z-index: -1;
	right: -8%;
	top: -60%;
	width: min(720px, 70vw);
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(255, 255, 255, .16), transparent);
	pointer-events: none;
}
.afd-pagehead .elementor-heading-title { color: #fff !important; }
.afd-pagehead .elementor-widget-text-editor { color: rgba(255, 255, 255, .92) !important; max-width: var(--text-width); font-size: clamp(1.125rem, 1.4vw, 1.3125rem); }
.afd-pagehead .elementor-widget-text-editor a { color: #fff; }
.js .afd-pagehead > .e-con-inner > .elementor-element { animation: afdFadeUp .8s var(--ease-out) both; }
.js .afd-pagehead > .e-con-inner > .elementor-element:nth-child(2) { animation-delay: .1s; }
.js .afd-pagehead > .e-con-inner > .elementor-element:nth-child(3) { animation-delay: .2s; }
.elementor-editor-active .afd-pagehead * { animation: none !important; }

.e-con.afd-narrow { --content-width: var(--text-width); }
.e-con.afd-row { --gap: clamp(28px, 4vw, 56px); --row-gap: 28px; --column-gap: clamp(28px, 4vw, 56px); }
.e-con.afd-row + .e-con.afd-row { --padding-top: 0; }
.afd-row .elementor-widget-image img,
.afd-row .elementor-widget-video .elementor-wrapper { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-md); }
@media (max-width: 767px) {
	.e-con.afd-row { --flex-direction: column; }
	.e-con.afd-row > .e-con-inner { flex-direction: column; }
	.afd-row > .e-con-inner > .e-con,
	.afd-row > .e-con { --width: 100% !important; width: 100% !important; }
}
.afd-banner-image img { width: 100%; border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.afd-notice { padding: clamp(24px, 3vw, 36px); background: var(--c-surface); border-left: 4px solid var(--c-accent); border-radius: var(--r-sm); }

/* Kontakt-Karte in Blau */
.e-con.afd-contactcard {
	--padding-top: clamp(32px, 4vw, 48px);
	--padding-bottom: clamp(32px, 4vw, 48px);
	--padding-left: clamp(24px, 3.5vw, 44px);
	--padding-right: clamp(24px, 3.5vw, 44px);
	background-color: var(--c-accent);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	color: #fff;
}
.afd-contactcard::before { border-radius: inherit; }
.afd-contactcard .elementor-heading-title { color: #fff !important; }
.afd-contactcard .elementor-icon-list-item { align-items: flex-start !important; }
.afd-contactcard .elementor-icon-list-items .elementor-icon-list-item:not(:last-child) { padding-bottom: 18px !important; margin-bottom: 18px !important; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.afd-contactcard .elementor-icon-list-icon { padding-top: 4px; }
.afd-contactcard .elementor-icon-list-icon i,
.afd-contactcard .elementor-icon-list-icon svg { color: #fff !important; fill: #fff !important; }
.afd-contactcard .elementor-icon-list-text { color: #fff !important; font-family: var(--f-body); font-weight: 600 !important; font-size: 1.125rem !important; line-height: 1.45; }
.afd-contactcard a:hover .elementor-icon-list-text { text-decoration: underline; }

/* Beitragsliste (Elementor-Posts-Widget, Karten) */
.elementor-widget-posts .elementor-posts-container { --grid-column-gap: 28px; --grid-row-gap: 32px; }
.elementor-posts--skin-cards .elementor-post__card {
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--r-md) !important;
	box-shadow: var(--shadow-sm) !important;
	overflow: hidden;
	transition: transform .4s var(--ease-out), box-shadow .4s var(--ease);
}
.elementor-posts--skin-cards .elementor-post:hover .elementor-post__card { transform: translateY(-6px); box-shadow: var(--shadow-md) !important; }
.elementor-posts--skin-cards .elementor-post__thumbnail img { transition: transform .7s var(--ease-out); }
.elementor-posts--skin-cards .elementor-post:hover .elementor-post__thumbnail img { transform: scale(1.05) translate(-50%, -50%); }
.elementor-posts--skin-cards .elementor-post__badge {
	background: var(--c-accent) !important;
	border-radius: var(--r-pill) !important;
	font-weight: 700 !important;
	font-size: 12px !important;
	letter-spacing: .02em !important;
	text-transform: none !important;
	padding: .45em 1em !important;
	margin: 16px !important;
}
.elementor-posts--skin-cards .elementor-post__text { padding: 22px 26px 0 !important; margin-top: 0 !important; }
.elementor-posts--skin-cards .elementor-post__title { margin: 0 0 10px !important; }
.elementor-posts--skin-cards .elementor-post__title a { color: var(--c-ink) !important; font-weight: 800 !important; font-size: 1.25rem !important; line-height: 1.25 !important; }
.elementor-posts--skin-cards .elementor-post:hover .elementor-post__title a { color: var(--c-accent) !important; }
.elementor-posts--skin-cards .elementor-post__excerpt p { color: var(--c-text) !important; font-size: 1rem !important; line-height: 1.6 !important; }
.elementor-posts--skin-cards .elementor-post__read-more { display: inline-block; margin: 14px 0 22px; color: var(--c-accent) !important; font-weight: 700 !important; font-size: 1rem !important; text-transform: none !important; }
.elementor-posts--skin-cards .elementor-post__read-more::after { content: " \2192"; }
.elementor-posts--skin-cards .elementor-post__meta-data {
	padding: 14px 26px !important;
	border-top: 1px solid var(--c-line) !important;
	color: var(--c-muted) !important;
	font-size: .9rem !important;
	font-weight: 600 !important;
}
.elementor-posts--skin-cards .elementor-post__avatar { display: none; }
.elementor-widget-posts .elementor-pagination { margin-top: 48px; display: flex; justify-content: center; gap: 8px; }
.elementor-widget-posts .elementor-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--r-pill); background: var(--c-surface); color: var(--c-ink); font-weight: 700; text-decoration: none; }
.elementor-widget-posts .elementor-pagination .page-numbers.current { background: var(--c-accent); color: #fff; }

/* Einzelbeitrag (Elementor-Single-Template) */
.single-post .elementor-widget-theme-post-title .elementor-heading-title { font-size: clamp(2rem, 4.2vw, 3.25rem); }
.single-post .elementor-widget-post-info { color: var(--c-muted); font-weight: 600; }
.single-post .elementor-widget-theme-post-featured-image img { width: 100%; border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.single-post .elementor-widget-theme-post-content { font-size: clamp(1.0625rem, .3vw + 1rem, 1.1875rem); line-height: 1.75; }
.single-post .elementor-widget-theme-post-content p + p { margin-top: 1.1em; }
.single-post .elementor-widget-theme-post-content em { color: var(--c-muted); }

/* Rechtstexte (eRecht24) */
.afd-legal { font-size: 1.0625rem; }
.afd-legal h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); margin-bottom: .6em; }
.afd-legal h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 1.6em; }
.afd-legal h3 { font-size: 1.25rem; margin-top: 1.4em; }
.afd-legal h4 { font-size: 1.125rem; margin-top: 1.2em; }
.afd-legal ul { padding-left: 1.2em; }
.afd-legal a { word-break: break-word; }
.afd-contactcard .elementor-icon-list-icon { flex: 0 0 26px; justify-content: center; }
.afd-contactcard .elementor-icon-list-icon svg { width: 18px !important; height: 18px !important; }
.brand picture, .footer-brand picture { display: contents; }


/* ==========================================================================
   Schrift-Garantie: Jeder Text der Website in Bitter.
   Ausgenommen sind nur Icon-Elemente (<i>, Icon-Fonts), damit Symbole sichtbar bleiben.
   ========================================================================== */
html body,
html body *:not(i):not(svg):not(svg *):not([class^="fa-"]):not([class*=" fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not([class^="eicon"]):not([class*=" eicon"]):not(.dashicons):not([class*="dashicons-"]):not(.ab-icon),
html body input,
html body select,
html body textarea,
html body button {
	font-family: "Bitter", Georgia, "Times New Roman", serif !important;
}
/* Etwas ruhigere Laufweite für Bitter im Fließtext */
.elementor-widget-text-editor, .entry-content, .wpcf7 { letter-spacing: 0; }
.elementor-widget-button .elementor-button,
.wpcf7 input[type="submit"],
.afd-button,
.nav-toggle,
.footer-nav__menu a { letter-spacing: .01em; font-weight: 700; }
.afd-kicker .elementor-heading-title { letter-spacing: .01em !important; font-weight: 700 !important; }

/* Besucherfahrt: breiterer Inhaltsbereich */
.e-con.afd-wide { --content-width: 1000px; }

/* Freiheit-Abschnitt auf Weiß */
.e-con.afd-section--white { background-color: #fff; }

/* Startseite: Aktuelles (Desktop 4, Handy 2) */
.afd-latest .elementor-posts--skin-cards .elementor-post__title a { font-size: 1.125rem !important; }
.afd-latest .elementor-posts--skin-cards .elementor-post__text { padding: 20px 22px 0 !important; }
.afd-latest .elementor-posts--skin-cards .elementor-post__meta-data { padding: 12px 22px !important; }
@media (max-width: 767px) {
	.afd-latest .elementor-posts-container > .elementor-post:nth-child(n+3) { display: none !important; }
}

/* Überschriften nie im Wort trennen, ganze Wörter rutschen in die nächste Zeile */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
	hyphens: manual;
	-webkit-hyphens: manual;
	overflow-wrap: normal;
	word-break: normal;
}

/* Größeres Logo auf Tablet und Handy */
@media (max-width: 1024px) {
	:root { --header-h: 88px; --header-h-small: 76px; }
	.brand__img { height: 64px; }
	.site-header.is-scrolled .brand__img { height: 54px; }
}
@media (max-width: 480px) {
	:root { --header-h: 84px; --header-h-small: 74px; }
	.brand__img { height: 60px; }
	.site-header.is-scrolled .brand__img { height: 52px; }
}

/* Hero-Name auf dem Handy größer, aber immer so klein, dass "Ebenberger" in eine Zeile passt.
   Wortbreite in Bitter 800 = 5,51 x Schriftgröße; gerechnet wird mit 5,7 als Sicherheitspuffer. */
@media (max-width: 767px) {
	.afd-hero h1.elementor-heading-title {
		font-size: min(calc((100vw - 2 * var(--gutter)) / 5.7), 4.5rem);
		line-height: 1;
	}
}


/* Beitragslisten nie ausblenden (zu hoch fuer Scroll-Reveal auf Mobilgeraeten) */
.js .elementor-widget-posts.afd-reveal,
.js .elementor-widget-loop-grid.afd-reveal {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
	will-change: auto !important;
}

/* Kein Scroll-Reveal auf Handys */
@media (max-width: 767px) {
	.js .afd-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
