/* ==========================================================================
   Fahrdienst Studio Theme – ergänzende Gestaltung zu theme.json
   ========================================================================== */

/* ---------- Grundlagen ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--wp--custom--header-height) + 16px); -webkit-text-size-adjust: 100%; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
:where(h1, h2, h3, h4) { text-wrap: balance; }
:where(p, li, dd) { text-wrap: pretty; }
::selection { background: color-mix(in oklab, var(--wp--preset--color--primary) 22%, transparent); }
:focus-visible { outline: 3px solid var(--wp--preset--color--primary); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; height: auto; }
.wp-site-blocks { min-height: 100dvh; display: flex; flex-direction: column; }
.wp-site-blocks > main, .wp-site-blocks > .wp-block-group:has(> main) { flex: 1; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Sanfte Seitenwechsel (View Transitions, ohne JavaScript) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
/* Kein view-transition-name am Kopf: würde das Vollbild-Menü auf die Kopfhöhe begrenzen. */

/* ---------- Kopfbereich ---------- */
header.wp-block-template-part { position: sticky; top: 0; z-index: 100; }
.admin-bar header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar header.wp-block-template-part { top: 0; } }
.fdt-header {
	position: relative;
	min-height: var(--wp--custom--header-height);
	border-bottom: 1px solid transparent;
	transition: border-color var(--wp--custom--transition), box-shadow var(--wp--custom--transition);
}
/* Schatten erscheint erst beim Scrollen – rein per CSS (Scroll-Driven Animations) */
@supports (animation-timeline: scroll()) {
	.fdt-header { animation: fdt-header-shadow linear both; animation-timeline: scroll(root); animation-range: 0 80px; }
	@keyframes fdt-header-shadow { to { border-bottom-color: var(--wp--preset--color--border); box-shadow: 0 6px 24px rgb(15 23 42 / .06); } }
}
/* Milchglas auf eigener Ebene – direkt am Kopf würde backdrop-filter das mobile Menü
   (position: fixed) auf die Kopfhöhe einsperren. */
.fdt-header::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: color-mix(in oklab, var(--wp--preset--color--base) 82%, transparent);
	backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); }
html[data-contrast="1"] .fdt-header::before { background: #fff; backdrop-filter: none; }
.fdt-header.is-scrolled { border-bottom-color: var(--wp--preset--color--border); box-shadow: 0 6px 24px rgb(15 23 42 / .06); }
.fdt-brand { gap: .7rem !important; }
.fdt-brand::before { content: ""; width: 42px; height: 42px; flex: none; border-radius: 13px; box-shadow: var(--wp--preset--shadow--glow);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17h1m16 0h1M5 17a2 2 0 1 0 4 0 2 2 0 0 0-4 0m10 0a2 2 0 1 0 4 0 2 2 0 0 0-4 0M9 17h6M3 17V8a2 2 0 0 1 2-2h9l4 5h1a2 2 0 0 1 2 2v4'/%3E%3Cpath d='M3 11h15'/%3E%3C/svg%3E") center / 22px no-repeat, var(--wp--preset--gradient--primary); }
.fdt-brand:has(.wp-block-site-logo img)::before, .editor-styles-wrapper .fdt-brand:has(.wp-block-site-logo)::before { display: none; }
.fdt-header .wp-block-site-title { line-height: 1.1; white-space: nowrap; }
.fdt-header .wp-block-button__link { white-space: nowrap; }
.fdt-footer .fdt-bigphone { white-space: nowrap; }
.fdt-header .wp-block-site-tagline { margin: 0; line-height: 1.2; }
.fdt-header .wp-block-navigation__container { gap: .25rem 1.4rem; }
.fdt-header .wp-block-navigation-item__content { padding-block: .4rem; position: relative; }
.fdt-header .wp-block-navigation-item__content::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--wp--preset--color--primary); transform: scaleX(0); transition: transform var(--wp--custom--transition); }
.fdt-header .wp-block-navigation-item__content:hover::after, .fdt-header .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.fdt-header .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--primary); }
.fdt-header .wp-block-buttons .wp-block-button__link { padding: .7em 1.25em; font-size: var(--wp--preset--font-size--small); }
.fdt-phone .wp-block-button__link::before { content: ""; width: 1.05em; height: 1.05em; margin-right: .45em; display: inline-block; vertical-align: -.15em; background: currentColor; mask: var(--fdt-i-phone) center / contain no-repeat; -webkit-mask: var(--fdt-i-phone) center / contain no-repeat; }
@media (max-width: 1180px) { .fdt-header .fdt-phone { display: none; } }
@media (max-width: 1300px) { .fdt-header .wp-block-site-tagline { display: none; } }
@media (max-width: 600px) { .fdt-header .fdt-cta { display: none; } .fdt-header .wp-block-site-tagline { display: none; } }
/* Mobiles Menü */
.wp-block-navigation__responsive-container.is-menu-open { position: fixed; inset: 0; z-index: 100000; padding: 0 !important; background: var(--wp--preset--color--base) !important; color: var(--wp--preset--color--contrast) !important; overflow-y: auto; animation: fdt-menu .2s ease both; }
@keyframes fdt-menu { from { opacity: 0; transform: translateY(-8px); } }
.admin-bar .wp-block-navigation__responsive-container.is-menu-open { top: var(--wp-admin--admin-bar--height, 0px); }
/* Abstände direkt an Inhalt und Punkten – unabhängig davon, wie WordPress den Container polstert */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close { max-width: none !important; margin: 0 !important; padding: 0 !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog { margin: 0 !important; padding: 0 !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { position: absolute; top: max(.75rem, env(safe-area-inset-top)); right: max(.75rem, env(safe-area-inset-right)); z-index: 2; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding: 4.5rem max(1.25rem, env(safe-area-inset-left)) 2rem max(1.25rem, env(safe-area-inset-right)) !important; margin: 0 !important; align-items: stretch !important; box-sizing: border-box; width: 100%; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { width: 100%; gap: 0 !important; align-items: stretch !important; margin: 0 !important; padding: 0 !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; margin: 0 !important; border-bottom: 1px solid var(--wp--preset--color--border); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:first-child { border-top: 1px solid var(--wp--preset--color--border); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { display: flex !important; align-items: center; justify-content: space-between; width: 100%; box-sizing: border-box; min-height: 64px; padding: .75rem .75rem !important; border-radius: 12px; color: var(--wp--preset--color--contrast) !important; font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--x-large) !important; font-weight: 750; letter-spacing: -.01em; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after { content: ""; position: static; display: block; width: .7rem; height: .7rem; flex: none; transform: none !important; background: none; border-right: 2.5px solid var(--wp--preset--color--muted); border-top: 2.5px solid var(--wp--preset--color--muted); rotate: 45deg; margin-right: .35rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:is(:hover, :focus, :focus-visible, :active) { outline: none !important; box-shadow: none !important; background: var(--wp--preset--color--primary-soft); color: var(--wp--preset--color--primary) !important; }
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; }
.wp-block-navigation__responsive-container-open { background: var(--wp--preset--color--base-2); }

/* ---------- Abschnitte (Blockstile) ---------- */
.is-style-section-tint { background: var(--wp--preset--color--base-2); }
.is-style-section-dark { background: var(--wp--preset--gradient--night); color: #e6ecf7; }
.is-style-section-dark :where(h1, h2, h3, h4, h5, h6) { color: #fff; }
.is-style-section-dark .has-contrast-2-color, .is-style-section-dark .has-muted-color { color: #b8c4d9 !important; }
.is-style-section-primary .has-contrast-2-color, .is-style-section-primary .has-muted-color { color: rgb(255 255 255 / .85) !important; }
.is-style-section-dark a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--accent); }
.is-style-section-dark .is-style-eyebrow { color: var(--wp--preset--color--accent); background: rgb(56 189 248 / .12); }
.is-style-section-primary { background: var(--wp--preset--gradient--primary); color: #fff; }
.is-style-section-primary :where(h1, h2, h3, h4, h5, h6) { color: #fff; }
.is-style-section-primary a:where(:not(.wp-element-button)) { color: #fff; }
.is-style-section-primary .is-style-eyebrow { color: #fff; background: rgb(255 255 255 / .14); }
:where(.is-style-section-tint, .is-style-section-dark, .is-style-section-primary) { position: relative; isolation: isolate; }

/* Karten */
.is-style-card, .is-style-card-hover, .wp-block-columns.is-style-cards > .wp-block-column {
	background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--l); padding: clamp(1.25rem, 1rem + 1.2vw, 2rem); box-shadow: var(--wp--preset--shadow--soft);
	container-type: inline-size;
}
.is-style-section-dark .is-style-card, .is-style-section-dark .is-style-card-hover { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .1); box-shadow: none; }
.is-style-card-hover { transition: transform var(--wp--custom--transition), box-shadow var(--wp--custom--transition), border-color var(--wp--custom--transition); }
.is-style-card-hover:hover { transform: translateY(-4px); box-shadow: var(--wp--preset--shadow--lift); border-color: color-mix(in oklab, var(--wp--preset--color--primary) 30%, var(--wp--preset--color--border)); }
.is-style-card-hover:has(a.fdt-stretch)::after { content: none; }
.is-style-glass { background: color-mix(in oklab, var(--wp--preset--color--base) 70%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgb(255 255 255 / .6); border-radius: var(--wp--custom--radius--l); box-shadow: var(--wp--preset--shadow--soft); }
:where(.is-style-card, .is-style-card-hover) > :first-child { margin-block-start: 0; }

/* Texte */
.is-style-eyebrow { display: flex; align-items: center; gap: .5em; width: fit-content; margin-bottom: .25rem !important; padding: .35em .85em; border-radius: var(--wp--custom--radius--pill); background: var(--wp--preset--color--primary-soft); color: var(--wp--preset--color--primary); font-size: var(--wp--preset--font-size--x-small); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.has-text-align-center.is-style-eyebrow { margin-inline: auto !important; }
.is-layout-constrained > .is-style-eyebrow:not(.has-text-align-center) { margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important; }
.is-layout-flow > .is-style-eyebrow:not(.has-text-align-center), .wp-block-column > .is-style-eyebrow:not(.has-text-align-center) { margin-left: 0 !important; }
.is-style-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.55; color: var(--wp--preset--color--contrast-2); }
.is-style-section-dark .is-style-lead, .is-style-section-primary .is-style-lead { color: inherit; opacity: .88; }
.is-style-note { padding: 1rem 1.15rem 1rem 3rem; border-radius: var(--wp--custom--radius--m); background: color-mix(in oklab, var(--wp--preset--color--accent) 12%, var(--wp--preset--color--base)); border: 1px solid color-mix(in oklab, var(--wp--preset--color--accent) 35%, transparent); position: relative; font-size: var(--wp--preset--font-size--small); }
.is-style-note::before { content: ""; position: absolute; left: 1rem; top: 1.05rem; width: 1.25rem; height: 1.25rem; background: var(--wp--preset--color--primary); mask: var(--fdt-i-info) center / contain no-repeat; -webkit-mask: var(--fdt-i-info) center / contain no-repeat; }

/* Listen */
ul.is-style-check { list-style: none; padding-left: 0; display: grid; gap: .55rem; }
ul.is-style-check li { position: relative; padding-left: 2rem; }
ul.is-style-check li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: color-mix(in oklab, var(--wp--preset--color--success) 14%, transparent); }
ul.is-style-check li::after { content: ""; position: absolute; left: .3rem; top: .5em; width: .7rem; height: .7rem; background: var(--wp--preset--color--success); mask: var(--fdt-i-check) center / contain no-repeat; -webkit-mask: var(--fdt-i-check) center / contain no-repeat; }
.is-style-section-dark ul.is-style-check li::before, .is-style-section-primary ul.is-style-check li::before { background: rgb(255 255 255 / .14); }
.is-style-section-dark ul.is-style-check li::after, .is-style-section-primary ul.is-style-check li::after { background: #fff; }
ul.is-style-inline { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
ul.is-style-inline.is-style-check li, ul.is-style-inline li { position: relative; }
ol.is-style-steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 1rem; }
ol.is-style-steps li { counter-increment: s; position: relative; padding-left: 3.25rem; min-height: 2.5rem; }
ol.is-style-steps li::before { content: counter(s); position: absolute; left: 0; top: -.1em; width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; background: var(--wp--preset--color--primary); color: #fff; font-weight: 800; font-family: var(--wp--preset--font-family--heading); }

/* Buttons */
.wp-block-button__link { transition: background-color var(--wp--custom--transition), transform var(--wp--custom--transition), box-shadow var(--wp--custom--transition), color var(--wp--custom--transition); min-height: 48px; display: inline-flex; align-items: center; justify-content: center; text-wrap: balance; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button__link:active { transform: translateY(0); }
.wp-block-button.is-style-soft .wp-block-button__link { background: var(--wp--preset--color--primary-soft); color: var(--wp--preset--color--primary); box-shadow: none; }
.wp-block-button.is-style-soft .wp-block-button__link:hover { background: color-mix(in oklab, var(--wp--preset--color--primary) 18%, var(--wp--preset--color--base)); }
.wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; color: var(--wp--preset--color--contrast); box-shadow: inset 0 0 0 2px var(--wp--preset--color--border); }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { box-shadow: inset 0 0 0 2px var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); }
.wp-block-button.is-style-white .wp-block-button__link { background: #fff; color: var(--wp--preset--color--primary-dark); box-shadow: 0 10px 30px rgb(0 0 0 / .18); }
.is-style-section-dark .wp-block-button.is-style-ghost .wp-block-button__link, .is-style-section-primary .wp-block-button.is-style-ghost .wp-block-button__link { color: #fff; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .35); }
.fdt-btn-phone .wp-block-button__link::before, .fdt-btn-book .wp-block-button__link::before { content: ""; width: 1.15em; height: 1.15em; margin-right: .55em; flex: none; background: currentColor; mask: var(--fdt-i-phone) center / contain no-repeat; -webkit-mask: var(--fdt-i-phone) center / contain no-repeat; }
.fdt-btn-book .wp-block-button__link::before { mask-image: var(--fdt-i-calendar); -webkit-mask-image: var(--fdt-i-calendar); }

/* Bilder */
.wp-block-image.is-style-float img { border-radius: var(--wp--custom--radius--xl); box-shadow: var(--wp--preset--shadow--lift); }
.fdt-hero-art img { border-radius: 0 !important; filter: drop-shadow(0 30px 60px rgb(36 87 245 / .16)); }

/* Trenner */
.wp-block-separator.is-style-short { width: 64px !important; height: 4px !important; border-radius: 4px; background: var(--wp--preset--color--primary) !important; opacity: 1; margin-inline: 0 !important; }
.has-text-align-center + .wp-block-separator.is-style-short, .wp-block-separator.is-style-short.aligncenter { margin-inline: auto !important; }

/* FAQ */
.wp-block-details { transition: border-color var(--wp--custom--transition), box-shadow var(--wp--custom--transition); overflow: hidden; }
.wp-block-details + .wp-block-details { margin-top: .75rem; }
.wp-block-details summary { list-style: none; cursor: pointer; padding: 1.1rem 3.25rem 1.1rem 1.25rem; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: var(--wp--preset--font-size--medium); position: relative; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: ""; position: absolute; right: 1.15rem; top: 50%; width: 1.6rem; height: 1.6rem; margin-top: -.8rem; border-radius: 50%; background: var(--wp--preset--color--primary-soft); transition: transform var(--wp--custom--transition); }
.wp-block-details summary::before { content: ""; position: absolute; right: 1.55rem; top: 50%; width: .8rem; height: .8rem; margin-top: -.4rem; z-index: 1; background: var(--wp--preset--color--primary); mask: var(--fdt-i-plus) center / contain no-repeat; -webkit-mask: var(--fdt-i-plus) center / contain no-repeat; transition: transform var(--wp--custom--transition); }
.wp-block-details[open] { border-color: color-mix(in oklab, var(--wp--preset--color--primary) 35%, var(--wp--preset--color--border)); box-shadow: var(--wp--preset--shadow--soft); }
.wp-block-details[open] summary::before { transform: rotate(45deg); }
.wp-block-details > :not(summary) { padding-inline: 1.25rem; color: var(--wp--preset--color--contrast-2); }
.wp-block-details > :last-child { padding-bottom: 1.1rem; }
@supports (interpolate-size: allow-keywords) {
	:root { interpolate-size: allow-keywords; }
	.wp-block-details::details-content { block-size: 0; overflow: hidden; transition: block-size .3s ease, content-visibility .3s allow-discrete; }
	.wp-block-details[open]::details-content { block-size: auto; }
}

/* ---------- Symbole (CSS-Masken, im Editor als Klasse „fdt-ic fdt-ic--…“) ---------- */
:root {
	--fdt-i-van: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17h1m16 0h1M5 17a2 2 0 1 0 4 0 2 2 0 0 0-4 0m10 0a2 2 0 1 0 4 0 2 2 0 0 0-4 0M9 17h6M3 17V8a2 2 0 0 1 2-2h9l4 5h1a2 2 0 0 1 2 2v4'/%3E%3Cpath d='M3 11h15'/%3E%3C/svg%3E");
	--fdt-i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
	--fdt-i-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4M16 2v4M3 10h18M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zM9 15l2 2 4-4'/%3E%3C/svg%3E");
	--fdt-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	--fdt-i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 4v16M4 12h16'/%3E%3C/svg%3E");
	--fdt-i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E");
	--fdt-i-wheelchair: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='4' r='2'/%3E%3Cpath d='M12 7v6h5l3 6M12 10h5'/%3E%3Cpath d='M8 11a6 6 0 1 0 8.5 7.5'/%3E%3C/svg%3E");
	--fdt-i-bed: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4v16M2 8h18a2 2 0 0 1 2 2v10M2 17h20M6 8v9'/%3E%3C/svg%3E");
	--fdt-i-drop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.7s7 7.3 7 12.3a7 7 0 0 1-14 0C5 10 12 2.7 12 2.7z'/%3E%3Cpath d='M9 15a3 3 0 0 0 3 3'/%3E%3C/svg%3E");
	--fdt-i-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.5-1.5 3-3.2 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.8 0-3 .5-4.5 2-1.5-1.5-2.7-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4 3 5.5l7 7z'/%3E%3Cpath d='M3.2 12.5h4.3l1.5-3 3 6 1.5-3h7.3'/%3E%3C/svg%3E");
	--fdt-i-hospital: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V7l7-4 7 4v14M10 21v-5h4v5M12 8v4M10 10h4'/%3E%3C/svg%3E");
	--fdt-i-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10 12 3l9 7v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2zM9 22V12h6v10'/%3E%3C/svg%3E");
	--fdt-i-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
	--fdt-i-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
	--fdt-i-route: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='19' r='3'/%3E%3Cpath d='M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15'/%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3C/svg%3E");
	--fdt-i-phone-app: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='3'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E");
	--fdt-i-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21a6 6 0 0 0-12 0M10 13a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM22 21a6 6 0 0 0-4-5.6M16 3.1a4 4 0 0 1 0 7.8'/%3E%3C/svg%3E");
	--fdt-i-euro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M18 7a7 7 0 1 0 0 10M4 10h10M4 14h10'/%3E%3C/svg%3E");
	--fdt-i-doc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8zM14 2v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E");
	--fdt-i-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-6.2 8-12a8 8 0 1 0-16 0c0 5.8 8 12 8 12z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
	--fdt-i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E");
	--fdt-i-bell: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 1 1 12 0c0 7 3 9 3 9H3s3-2 3-9M10.3 21a1.9 1.9 0 0 0 3.4 0'/%3E%3C/svg%3E");
	--fdt-i-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='m12 2 3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E");
}
.fdt-ic::before {
	content: ""; display: grid; width: 3.25rem; height: 3.25rem; margin-bottom: 1rem; border-radius: 16px;
	background: var(--wp--preset--color--primary-soft) padding-box;
	-webkit-mask: none; mask: none;
	box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--wp--preset--color--primary) 12%, transparent);
	position: relative;
}
.fdt-ic { position: relative; }
.fdt-ic::after { content: ""; position: absolute; top: .85rem; left: .85rem; width: 1.55rem; height: 1.55rem; background: var(--wp--preset--color--primary); mask: var(--fdt-i, var(--fdt-i-check)) center / contain no-repeat; -webkit-mask: var(--fdt-i, var(--fdt-i-check)) center / contain no-repeat; }
:where(.is-style-card, .is-style-card-hover, .wp-block-column).fdt-ic::after { top: calc(clamp(1.25rem, 1rem + 1.2vw, 2rem) + .85rem); left: calc(clamp(1.25rem, 1rem + 1.2vw, 2rem) + .85rem); }
.is-style-section-dark .fdt-ic::before, .is-style-section-primary .fdt-ic::before { background: rgb(255 255 255 / .1); box-shadow: none; }
.is-style-section-dark .fdt-ic::after, .is-style-section-primary .fdt-ic::after { background: var(--wp--preset--color--accent); }
.fdt-ic--van { --fdt-i: var(--fdt-i-van); } .fdt-ic--wheelchair { --fdt-i: var(--fdt-i-wheelchair); } .fdt-ic--bed { --fdt-i: var(--fdt-i-bed); }
.fdt-ic--drop { --fdt-i: var(--fdt-i-drop); } .fdt-ic--heart { --fdt-i: var(--fdt-i-heart); } .fdt-ic--hospital { --fdt-i: var(--fdt-i-hospital); }
.fdt-ic--home { --fdt-i: var(--fdt-i-home); } .fdt-ic--clock { --fdt-i: var(--fdt-i-clock); } .fdt-ic--shield { --fdt-i: var(--fdt-i-shield); }
.fdt-ic--route { --fdt-i: var(--fdt-i-route); } .fdt-ic--app { --fdt-i: var(--fdt-i-phone-app); } .fdt-ic--users { --fdt-i: var(--fdt-i-users); }
.fdt-ic--euro { --fdt-i: var(--fdt-i-euro); } .fdt-ic--doc { --fdt-i: var(--fdt-i-doc); } .fdt-ic--pin { --fdt-i: var(--fdt-i-pin); }
.fdt-ic--phone { --fdt-i: var(--fdt-i-phone); } .fdt-ic--mail { --fdt-i: var(--fdt-i-mail); } .fdt-ic--bell { --fdt-i: var(--fdt-i-bell); }
.fdt-ic--calendar { --fdt-i: var(--fdt-i-calendar); } .fdt-ic--star { --fdt-i: var(--fdt-i-star); }
/* Kleine Symbole vor Zeilen (Kontakt) */
.fdt-line { display: flex; gap: .75rem; align-items: flex-start; }
.fdt-line::before { content: ""; flex: none; width: 1.3rem; height: 1.3rem; margin-top: .2em; background: var(--wp--preset--color--primary); mask: var(--fdt-i) center / contain no-repeat; -webkit-mask: var(--fdt-i) center / contain no-repeat; }
.is-style-section-dark .fdt-line::before { background: var(--wp--preset--color--accent); }

/* ---------- Startbereich ---------- */
.fdt-hero { overflow: clip; position: relative; }
.fdt-hero::before { content: ""; position: absolute; inset: auto -10% -45% auto; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(closest-side, rgb(56 189 248 / .16), transparent); pointer-events: none; z-index: -1; }
.fdt-hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--wp--preset--color--primary), #0ea5e9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fdt-hero-badges { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--contrast-2); }
.fdt-hero-art { animation: fdt-float 7s ease-in-out infinite; }
@keyframes fdt-float { 50% { transform: translateY(-10px); } }

/* Vertrauensleiste */
.fdt-trust p.fdt-ic { display: grid; grid-template-columns: 2.75rem 1fr; column-gap: .85rem; align-items: center; margin: 0; line-height: 1.3; color: var(--wp--preset--color--contrast-2); }
.fdt-trust p.fdt-ic::before { grid-row: span 2; margin: 0; width: 2.75rem; height: 2.75rem; border-radius: 14px; }
.fdt-trust p.fdt-ic::after { top: 50%; left: .65rem; margin-top: -.725rem; width: 1.45rem; height: 1.45rem; }
.fdt-trust strong { display: block; align-self: end; font-family: var(--wp--preset--font-family--heading); color: var(--wp--preset--color--contrast); font-size: 1.05em; }

/* Großer Kontakt-Link */
.fdt-bigphone a { text-decoration: none; font-family: var(--wp--preset--font-family--heading); font-weight: 800; letter-spacing: -.02em; }

/* ---------- Beiträge ---------- */
.wp-block-post-template.is-layout-grid > li { container-type: inline-size; }
.fdt-post-card { height: 100%; display: flex; flex-direction: column; }
.fdt-post-card .wp-block-post-featured-image { margin: calc(clamp(1.25rem, 1rem + 1.2vw, 2rem) * -1) calc(clamp(1.25rem, 1rem + 1.2vw, 2rem) * -1) 1rem; }
.fdt-post-card .wp-block-post-featured-image img { border-radius: var(--wp--custom--radius--l) var(--wp--custom--radius--l) 0 0; aspect-ratio: 16/10; object-fit: cover; }
.fdt-post-card .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.fdt-post-card { position: relative; }
.wp-block-query-pagination { gap: .5rem; }
.wp-block-query-pagination-numbers .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; border-radius: 12px; text-decoration: none; }
.wp-block-query-pagination-numbers .current { background: var(--wp--preset--color--primary); color: #fff; }
.wp-block-post-content > *:first-child { margin-top: 0; }
.fdt-pagehead { position: relative; overflow: clip; }

/* ---------- Fußbereich ---------- */
.fdt-footer a { text-decoration: none; color: #d5deee !important; }
.fdt-footlist { list-style: none; display: grid; gap: .5rem; }
.fdt-footer a:hover { text-decoration: underline; }
.fdt-footer .wp-block-navigation { --navigation-layout-direction: column; }
.fdt-emergency { display: inline-block; padding: .55rem 1rem; line-height: 1.4; border-radius: var(--wp--custom--radius--pill); background: rgb(225 29 72 / .14); color: #fecdd3 !important; font-weight: 600; }
.fdt-emergency strong { color: #fff; }
.fdt-no-emergency .fdt-emergency { display: none; }

/* ---------- Anruf-Leiste (Handy) ---------- */
.fdt-callbar { display: none; }
@media (max-width: 781px) {
	.fdt-has-callbar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
	.fdt-callbar { position: fixed; z-index: 200; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 8px; padding: 8px; border-radius: 20px; background: color-mix(in oklab, var(--wp--preset--color--base) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 12px 40px rgb(15 23 42 / .22); border: 1px solid var(--wp--preset--color--border); animation: fdt-up .4s ease both .4s; }
	@keyframes fdt-up { from { transform: translateY(140%); } }
	.fdt-callbar__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; border-radius: 14px; font: 700 1.05rem/1 var(--wp--preset--font-family--heading); text-decoration: none; color: var(--wp--preset--color--contrast); background: var(--wp--preset--color--base-2); }
	.fdt-callbar__btn.is-primary { background: var(--wp--preset--color--primary); color: #fff; }
	.fdt-callbar__btn svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
	.fdt-view { bottom: calc(92px + env(safe-area-inset-bottom)) !important; }
}

/* ---------- Ansicht anpassen ---------- */
.fdt-view { position: fixed; z-index: 210; right: 16px; bottom: 16px; }
.fdt-view__toggle { width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); box-shadow: 0 10px 30px rgb(15 23 42 / .25); transition: transform var(--wp--custom--transition); }
.fdt-view__toggle:hover { transform: scale(1.06); }
.fdt-view__toggle svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fdt-view__panel { position: absolute; right: 0; bottom: 64px; width: min(300px, calc(100vw - 32px)); padding: 1rem; display: grid; gap: .6rem; border-radius: 18px; background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); border: 1px solid var(--wp--preset--color--border); box-shadow: var(--wp--preset--shadow--lift); font-size: 1rem; transform-origin: bottom right; animation: fdt-pop .18s ease both; }
.fdt-view__panel[hidden] { display: none; }
@keyframes fdt-pop { from { opacity: 0; transform: scale(.94) translateY(6px); } }
.fdt-view__title { margin: 0; font-weight: 800; font-family: var(--wp--preset--font-family--heading); }
.fdt-view__row { display: flex; align-items: center; gap: .4rem; }
.fdt-view__row span { flex: 1; }
.fdt-view__row button { min-width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--wp--preset--color--border); background: var(--wp--preset--color--base); color: inherit; font-weight: 800; cursor: pointer; }
.fdt-view__row button[aria-pressed="true"] { background: var(--wp--preset--color--primary); color: #fff; border-color: transparent; }
.fdt-view__switch { display: flex; align-items: center; gap: .6rem; min-height: 40px; cursor: pointer; }
.fdt-view__switch input { width: 1.25rem; height: 1.25rem; accent-color: var(--wp--preset--color--primary); }
.fdt-view__reset { justify-self: start; border: 0; background: none; color: var(--wp--preset--color--primary); font: inherit; font-weight: 600; cursor: pointer; padding: .25rem 0; }

html[data-textsize="l"] { font-size: 112.5%; }
html[data-textsize="xl"] { font-size: 128%; }
html[data-links="1"] a:not(.wp-element-button, .fdt-callbar__btn) { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px; background: color-mix(in oklab, #fde047 40%, transparent); }
html[data-contrast="1"] body, html[data-contrast="1"] .wp-site-blocks { --wp--preset--color--muted: #1f2937; --wp--preset--color--contrast-2: #111827; --wp--preset--color--border: #4b5563; --wp--preset--color--primary: #0033cc; --wp--preset--color--primary-dark: #001f80; }
html[data-contrast="1"] .is-style-section-dark, html[data-contrast="1"] .is-style-section-primary { background: #000 !important; color: #fff; }
html[data-contrast="1"] .is-style-card, html[data-contrast="1"] .is-style-card-hover { border-width: 2px; box-shadow: none; }
html[data-contrast="1"] :focus-visible { outline-width: 4px; outline-color: #000; }
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* ---------- Einblenden beim Scrollen (nur wenn unterstützt und gewünscht) ---------- */
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.fdt-reveal > *, .is-style-card-hover, .wp-block-columns.is-style-cards > .wp-block-column {
			animation: fdt-in linear both; animation-timeline: view(); animation-range: entry 0% entry 35%;
		}
		@keyframes fdt-in { from { opacity: 0; transform: translateY(28px); } }
	}
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	@view-transition { navigation: none; }
}

/* ---------- App-Seiten (Plugin-Oberflächen) ---------- */
.fdt-app-main { padding-block: var(--wp--preset--spacing--40); }
.fdt-app-main .fds { max-width: 1180px; margin-inline: auto; }

/* ---------- Formulare & Suche ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="url"], input[type="password"], textarea, select { font: inherit; font-size: max(16px, 1em); padding: .75em 1em; border-radius: var(--wp--custom--radius--s); border: 1.5px solid var(--wp--preset--color--border); background: var(--wp--preset--color--base); color: inherit; }
input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: var(--wp--preset--color--primary); outline: 3px solid color-mix(in oklab, var(--wp--preset--color--primary) 25%, transparent); outline-offset: 0; }
.wp-block-search__inside-wrapper { border-radius: var(--wp--custom--radius--pill); }
.wp-block-search__button { border-radius: var(--wp--custom--radius--pill) !important; }

/* ---------- Editor ---------- */
.editor-styles-wrapper .fdt-hero-art { animation: none; }
.editor-styles-wrapper header .fdt-header { position: relative; }

/* ---------- Druck ---------- */
@media print {
	.fdt-callbar, .fdt-view, header.wp-block-template-part, .wp-block-navigation, .wp-block-buttons { display: none !important; }
	.is-style-section-dark, .is-style-section-primary { background: none !important; color: #000 !important; }
	a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* ---------- Einzelne Muster ---------- */
.fdt-bigstat { margin: .25rem 0 .5rem !important; font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--x-large); color: var(--wp--preset--color--contrast-2); }
.fdt-bigstat strong { font-size: 2.2em; letter-spacing: -.04em; color: var(--wp--preset--color--primary); margin-right: .15em; }
.fdt-costcard { background: linear-gradient(180deg, var(--wp--preset--color--base) 0%, var(--wp--preset--color--base-2) 100%); border-top: 4px solid var(--wp--preset--color--primary); }
.fdt-stepnum { display: inline-block; margin-bottom: .75rem !important; padding: .2em .7em; border-radius: var(--wp--custom--radius--pill); background: var(--wp--preset--color--primary); color: #fff; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.fdt-stepnum + .fdt-ic::after { top: calc(.85rem); }
.wp-block-button.is-style-white .wp-block-button__link { color: #1a3fc0; }
.fdt-contactcard .fdt-line { margin-block: .65rem; }
.fdt-contactcard p:empty, .fdt-footer p.fdt-line:empty { display: none; }
.fdt-cta-band { overflow: clip; }
.fdt-cta-band::before, .fdt-cta-band::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; }
.fdt-cta-band::before { width: 520px; height: 520px; right: -140px; top: -220px; background: radial-gradient(closest-side, rgb(255 255 255 / .18), transparent); }
.fdt-cta-band::after { width: 420px; height: 420px; left: -120px; bottom: -220px; background: radial-gradient(closest-side, rgb(56 189 248 / .35), transparent); }
@container (max-width: 360px) { .is-style-card-hover h3, .is-style-card h3 { font-size: var(--wp--preset--font-size--medium); } }

/* Handy: Hauptknöpfe in voller Breite, gut zu treffen */
@media (max-width: 600px) {
	.fdt-hero .wp-block-buttons, .fdt-contactcard .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.fdt-hero .wp-block-button, .fdt-hero .wp-block-button__link { width: 100%; }
	.is-style-eyebrow { font-size: .75rem; }
	:where(h1, h2, h3) { overflow-wrap: break-word; }
}

/* Während das mobile Menü offen ist: nichts darüberlegen */
html.has-modal-open .fdt-callbar, html.has-modal-open .fdt-view,
body:has(.wp-block-navigation__responsive-container.is-menu-open) :is(.fdt-callbar, .fdt-view) { display: none !important; }
