/* ==========================================================================
   Mantrailer Baden – Theme
   Farben: CSS-Variablen aus dem Logo (siehe inc/colors.php)
   ========================================================================== */
:root {
	--mtb-ink: #211c24;
	--mtb-muted: #6b6470;
	--mtb-line: #ebe6ec;
	--mtb-soft: #f7f4f8;
	--mtb-bg: #ffffff;
	--mtb-blush: color-mix(in srgb, var(--mtb-brand, #be259e) 6%, #ffffff);
	--wrap: 1160px;
	--wrap-text: 760px;
	--radius: 18px;
	--shadow: 0 18px 50px -20px rgba(20, 30, 25, .25);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-head: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
	--header-h: 84px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--mtb-ink); background: var(--mtb-bg); }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--mtb-primary); text-underline-offset: .18em; }
a:hover { color: var(--mtb-primary-dark); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); line-height: 1.18; margin: 0 0 .6em; color: var(--mtb-ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--mtb-accent); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--mtb-primary); color: #fff; padding: .75rem 1rem; z-index: 1000; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
.container { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.is-scrolled { border-color: var(--mtb-line); box-shadow: 0 6px 24px -14px rgba(0, 0, 0, .25); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.site-branding .custom-logo { max-height: 62px; width: auto; display: block; transition: max-height .25s; }
.is-scrolled .site-branding .custom-logo { max-height: 50px; }
.site-title { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; text-decoration: none; color: var(--mtb-primary); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-nav a { display: block; padding: .55rem .85rem; border-radius: 999px; text-decoration: none; font-weight: 650; color: var(--mtb-ink); font-size: .98rem; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--mtb-primary); background: var(--mtb-primary-soft); }
.site-nav .menu-item-cta > a { background: var(--mtb-primary); color: #fff; padding-inline: 1.15rem; margin-left: .5rem; }
.site-nav .menu-item-cta > a::before { content: ""; display: inline-block; width: .9em; height: .9em; margin-right: .45em; vertical-align: -.08em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-1V6a5 5 0 0 0-5-5zm-3 5a3 3 0 1 1 6 0v3H9V6z'/%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 24 24'%3E%3Cpath d='M12 1a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-1V6a5 5 0 0 0-5-5zm-3 5a3 3 0 1 1 6 0v3H9V6z'/%3E%3C/svg%3E") center/contain no-repeat; }
.site-nav .menu-item-cta > a:hover { background: var(--mtb-primary-dark); color: #fff; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--mtb-primary-soft); cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { position: absolute; left: 12px; right: 12px; height: 2.5px; border-radius: 2px; background: var(--mtb-primary); content: ""; transition: transform .25s, top .25s, opacity .2s; }
.nav-toggle-bars { top: 22px; }
.nav-toggle-bars::before { left: 0; right: 0; top: -7px; }
.nav-toggle-bars::after { left: 0; right: 0; top: 7px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 960px) {
	:root { --header-h: 72px; }
	.nav-toggle { display: block; }
	.site-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--mtb-bg); border-bottom: 1px solid var(--mtb-line); padding: 1rem 1.25rem 1.5rem; transform: translateY(-120%); transition: transform .3s ease; box-shadow: 0 20px 40px -20px rgba(0,0,0,.3); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
	.admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .site-nav { transform: none; }
	.site-nav ul { flex-direction: column; align-items: stretch; gap: .2rem; }
	.site-nav a { padding: .85rem 1rem; font-size: 1.1rem; }
	.site-nav .menu-item-cta > a { margin: .5rem 0 0; text-align: center; }
	.site-branding .custom-logo { max-height: 50px; }
}

/* ---------- Buttons (Blöcke + allgemein) ---------- */
.wp-block-button__link, .wp-element-button, button.wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	background: var(--mtb-primary); color: #fff; border: 2px solid var(--mtb-primary);
	padding: .85em 1.6em; border-radius: 999px; font-weight: 750; text-decoration: none; font-size: 1rem; line-height: 1.2;
	transition: background .2s, transform .15s, box-shadow .2s; box-shadow: 0 10px 24px -12px var(--mtb-primary);
}
.wp-block-button__link:hover, .wp-element-button:hover { background: var(--mtb-primary-dark); border-color: var(--mtb-primary-dark); color: #fff; transform: translateY(-1px); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--mtb-primary); box-shadow: none; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--mtb-primary-soft); }
.wp-block-button.is-style-accent > .wp-block-button__link, .wp-block-button.btn-accent > .wp-block-button__link { background: var(--mtb-accent); border-color: var(--mtb-accent); box-shadow: 0 10px 24px -12px var(--mtb-accent); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Seitenstruktur ---------- */
.content-area { padding: 3rem 0 5rem; }
.entry-page, .entry-single { max-width: var(--wrap-text); margin-inline: auto; }
.page-hero { background: linear-gradient(120deg, var(--mtb-primary) 0%, color-mix(in srgb, var(--mtb-dark) 60%, var(--mtb-primary)) 45%, var(--mtb-dark) 100%); color: #fff; padding: 3.5rem 0 3rem; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; background: var(--mtb-primary); opacity: .18; filter: blur(10px); }
.page-hero .page-title { color: #fff; margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.is-members-area .entry-page { max-width: var(--wrap); }
.entry-content > * { margin-block: 0 1.2em; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .35em; }
.entry-content hr, .wp-block-separator { border: 0; border-top: 1px solid var(--mtb-line); margin: 2.5rem 0; }

/* ---------- Startseite (Blöcke) ---------- */
.front-content > * { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.front-content > .alignfull { width: 100%; max-width: none; margin-block: 0; }
.front-content > .alignwide { width: min(100% - 2.5rem, var(--wrap)); }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 1.25rem; position: relative; }
/* Klassische Themes: Gruppen haben einen inneren Container */
.section > .wp-block-group__inner-container, .section.is-layout-flow > *, .section.is-layout-constrained > * { max-width: var(--wrap); margin-inline: auto; }
.section > .wp-block-group__inner-container > p:not(.eyebrow), .section > .wp-block-group__inner-container > .wp-block-list { max-width: var(--wrap-text); }
.section > .wp-block-group__inner-container > .wp-block-columns { margin-bottom: 0; }
.team-title { text-align: center; margin-top: clamp(3rem, 7vw, 5rem) !important; }
.section--soft { background: var(--mtb-soft); }
.section--blush { background: var(--mtb-blush); }
.section--brand { background: var(--mtb-dark); color: #fff; background-image: radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--mtb-brand, #be259e) 45%, transparent) 0, transparent 45%), radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--mtb-brand, #be259e) 20%, transparent) 0, transparent 40%); }
.section--brand h2, .section--brand h3, .section--brand a:not(.wp-block-button__link) { color: #fff; }
.section--brand .eyebrow { color: rgba(255, 255, 255, .8); }
.section--brand .wp-block-button__link { background: var(--mtb-primary); color: #fff; border-color: var(--mtb-primary); }
.section--brand .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: #fff; border-color: #fff; }
.section-intro { font-size: 1.15rem; color: var(--mtb-muted); max-width: 680px; }
.section--brand .section-intro { color: rgba(255, 255, 255, .88); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem !important; font-weight: 800; color: var(--mtb-accent-dark); margin-bottom: .6rem !important; display: flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--mtb-brand, var(--mtb-accent)); }
.has-text-align-center.eyebrow { justify-content: center; }

/* Hero */
.wp-block-cover.hero { min-height: min(88vh, 820px) !important; padding: 7rem 1.25rem 5rem; align-items: flex-end; }
.wp-block-cover.hero .wp-block-cover__image-background { object-position: center 35%; }
.wp-block-cover.hero .wp-block-cover__image-background { filter: grayscale(1) contrast(1.05) brightness(.95); }
.wp-block-cover.hero .wp-block-cover__background { background: linear-gradient(115deg, color-mix(in srgb, var(--mtb-brand, #be259e) 82%, transparent) 0%, color-mix(in srgb, var(--mtb-brand, #be259e) 45%, rgba(33, 28, 36, .6)) 45%, rgba(33, 28, 36, .9) 100%) !important; opacity: 1 !important; mix-blend-mode: normal; }
.wp-block-cover.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--mtb-brand, var(--mtb-primary)); z-index: 2; }
.hero .hero-logo { padding: 1.1rem 1.5rem !important; border-radius: 26px !important; box-shadow: 0 24px 60px -20px rgba(0,0,0,.55) !important; }
.hero .hero-logo img { max-height: clamp(140px, 24vh, 240px) !important; max-width: min(78vw, 520px) !important; height: auto !important; width: auto !important; }
.wp-block-cover.hero { justify-content: center !important; }
.wp-block-cover.hero .wp-block-cover__inner-container { width: min(100%, var(--wrap)) !important; max-width: var(--wrap); margin: 0 auto !important; color: #fff; }
.hero h1 { color: #fff; max-width: 15ch; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.hero p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 40rem; color: rgba(255,255,255,.92); }
.hero .hero-logo { background: #fff; border-radius: 20px; padding: .8rem 1rem; display: inline-block; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.hero .hero-logo img { max-height: 120px; width: auto; display: block; }
.hero .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.85); }
.hero .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(255,255,255,.12); }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem !important; padding: 0 !important; list-style: none; font-weight: 650; color: rgba(255,255,255,.9); }
.hero-facts li::before { content: "✓"; color: var(--mtb-accent); margin-right: .45rem; font-weight: 900; }

/* Karten */
.feature-cards { gap: 1.25rem !important; margin-top: 2.5rem !important; }
.feature-card { background: #fff; border: 1px solid var(--mtb-line); border-radius: var(--radius); padding: 1.6rem 1.5rem 1.3rem; box-shadow: 0 1px 2px rgba(0,0,0,.03); transition: transform .25s, box-shadow .25s; position: relative; overflow: hidden; }
.feature-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--mtb-brand, var(--mtb-primary)), var(--mtb-accent)); }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-card h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.feature-card p { color: var(--mtb-muted); margin: 0; }
.feature-card .feature-icon { font-size: 2rem; line-height: 1; margin-bottom: .75rem !important; }

.split { gap: clamp(1.5rem, 5vw, 4rem) !important; align-items: center !important; }
.split .wp-block-image img, .rounded-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.check-list { list-style: none; padding-left: 0 !important; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .7rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--mtb-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4z'/%3E%3C/svg%3E") center/70% no-repeat; }
.callout { background: #fff; border-left: 5px solid var(--mtb-accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.4rem 1.6rem !important; box-shadow: 0 8px 30px -18px rgba(0,0,0,.25); margin-top: 2rem !important; }
.callout h3 { margin-bottom: .4rem; }
.callout p:last-child { margin-bottom: 0; }

.seminar-list { columns: 2 260px; column-gap: 2rem; }
.seminar-list li { break-inside: avoid; }

.team-cards { gap: 1.5rem !important; margin-top: 2rem !important; }
.team-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--mtb-line); box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.team-card .wp-block-image { margin: 0 !important; }
.team-card .wp-block-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.team-card h3, .team-card p { padding-inline: 1.4rem; }
.team-card h3 { margin-top: 1.2rem; }
.team-card .team-breed { color: var(--mtb-accent-dark); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .4rem; }

/* Galerie */
.section .wp-block-gallery.has-nested-images { gap: .75rem; }
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; transition: transform .35s, filter .35s; }
.wp-block-gallery.has-nested-images figure.wp-block-image { overflow: hidden; border-radius: 14px; cursor: zoom-in; }
.wp-block-gallery.has-nested-images figure.wp-block-image:hover img { transform: scale(1.04); filter: saturate(1.1); }
.mtbt-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(8, 12, 10, .95); touch-action: pan-y; user-select: none; }
.mtbt-lb-stage { position: absolute; inset: 3.5rem 4.5rem; margin: 0; display: flex; align-items: center; justify-content: center; }
.mtbt-lb-stage img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.mtbt-lb-stage img.is-in { animation: mtbtFade .35s ease; }
@keyframes mtbtFade { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.mtbt-lb-bar { position: absolute; top: .75rem; left: 1rem; right: .75rem; display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.85); font-size: .95rem; }
.mtbt-lb-count { margin-right: auto; font-variant-numeric: tabular-nums; }
.mtbt-lightbox button { border: 0; background: rgba(255,255,255,.14); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.mtbt-lightbox button:hover { background: rgba(255,255,255,.28); }
.mtbt-lb-play { font-size: 1rem !important; }
.mtbt-lb-prev, .mtbt-lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 54px !important; height: 54px !important; font-size: 2rem !important; }
.mtbt-lb-prev { left: .75rem; } .mtbt-lb-next { right: .75rem; }
@media (max-width: 700px) {
	.mtbt-lb-stage { inset: 3.75rem .25rem 4.5rem; }
	.mtbt-lb-prev, .mtbt-lb-next { top: auto; bottom: .9rem; transform: none; }
	.mtbt-lb-prev { left: calc(50% - 64px); } .mtbt-lb-next { right: calc(50% - 64px); }
}

/* Wischbare Diashow (Galerie-Stil „Diashow“) */
.mtbt-carousel { position: relative; }
.wp-block-gallery.is-style-carousel.has-nested-images { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; gap: 1rem; padding: .25rem 0 .5rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.wp-block-gallery.is-style-carousel::-webkit-scrollbar { display: none; }
.wp-block-gallery.is-style-carousel.has-nested-images figure.wp-block-image { flex: 0 0 calc((100% - 2rem) / 3) !important; width: auto !important; max-width: none; scroll-snap-align: start; margin: 0 !important; }
.wp-block-gallery.is-style-carousel.has-nested-images figure.wp-block-image img { aspect-ratio: 4 / 3; height: 100%; }
@media (max-width: 960px) { .wp-block-gallery.is-style-carousel.has-nested-images figure.wp-block-image { flex-basis: calc((100% - 1rem) / 2) !important; } }
@media (max-width: 600px) { .wp-block-gallery.is-style-carousel.has-nested-images figure.wp-block-image { flex-basis: 86% !important; scroll-snap-align: center; } }
.team-carousel.wp-block-gallery.is-style-carousel.has-nested-images figure.wp-block-image { flex-basis: 100% !important; }
.team-carousel.wp-block-gallery.has-nested-images { gap: 0; padding: 0; }
.team-carousel.wp-block-gallery.has-nested-images figure.wp-block-image, .team-carousel.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 0; }
.mtbt-car-btn { position: absolute; top: calc(50% - 1.2rem); transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--mtb-primary); font-size: 1.9rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.mtbt-car-btn:hover { transform: translateY(-50%) scale(1.06); }
.mtbt-car-prev { left: -.75rem; } .mtbt-car-next { right: -.75rem; }
.team-card .mtbt-car-prev { left: .5rem; } .team-card .mtbt-car-next { right: .5rem; }
@media (hover: none) and (max-width: 600px) { .mtbt-car-btn { display: none; } }
.mtbt-car-dots { display: flex; justify-content: center; gap: .35rem; margin-top: .6rem; }
.mtbt-car-dots button { width: 28px; height: 28px; border: 0; background: transparent; padding: 0; cursor: pointer; position: relative; }
.mtbt-car-dots button::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--mtb-line); transition: background .2s, transform .2s; }
.mtbt-car-dots button.is-active::after { background: var(--mtb-primary); transform: scale(1.3); }
.team-card .mtbt-car-dots { position: absolute; bottom: .25rem; left: 0; right: 0; margin: 0; }
.team-card .mtbt-car-dots button::after { background: rgba(255,255,255,.6); }
.team-card .mtbt-car-dots button.is-active::after { background: #fff; }
.team-text { max-width: var(--wrap-text); margin: 2.5rem auto 0 !important; }

/* Kontakt */
.contact-grid { gap: clamp(1.5rem, 4vw, 3.5rem) !important; }
.contact-box { background: #fff; border-radius: var(--radius); padding: 1.75rem !important; box-shadow: var(--shadow); color: var(--mtb-ink); }
.section--brand .contact-box h3 { color: var(--mtb-ink); }
.contact-facts { list-style: none; padding: 0 !important; }
.contact-facts li { padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.section--brand .contact-facts a { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--mtb-dark); color: rgba(255, 255, 255, .78); padding: 4rem 0 1.5rem; font-size: .96rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo .custom-logo { max-height: 80px; width: auto; background: #fff; padding: .5rem .75rem; border-radius: 14px; }
.footer-logo .site-title { color: #fff; }
.footer-title { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-social { display: flex; gap: 1rem; margin-top: 1.25rem; }
.footer-social a { display: inline-flex; align-items: center; gap: .4rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 3rem; padding-top: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }

/* ---------- Beiträge ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.card { background: #fff; border: 1px solid var(--mtb-line); border-radius: var(--radius); overflow: hidden; }
.card-img img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 1.25rem 1.4rem; }
.entry-meta { color: var(--mtb-muted); font-size: .9rem; }
.entry-thumb img { border-radius: var(--radius); }

/* Rechtstexte */
.legal h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.15rem; }
.legal p, .legal li { font-size: .98rem; }
.legal .legal-box { background: var(--mtb-soft); border-radius: 14px; padding: 1.25rem 1.4rem !important; }

/* Animation beim Scrollen */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.mtb-public-events { margin-bottom: 1.75rem; }
.section--brand .eyebrow::before { background: rgba(255, 255, 255, .7); }
.section--brand .contact-box .mtb-check a { color: var(--mtb-primary); }

.callout-card { border-left: 5px solid var(--mtb-accent); }
.callout-card::before { display: none; }
.feature-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.feature-card p { color: var(--mtb-ink); margin-bottom: 1em; }
.feature-card p:last-child { margin-bottom: 0; }
.hero h1 { max-width: none; }
/* Tablet */
@media (min-width: 601px) and (max-width: 1024px) {
	.split { flex-wrap: wrap !important; }
	.split > .wp-block-column { flex-basis: 100% !important; }
	.split .rounded-img img { max-height: 460px; }
	.feature-cards { flex-wrap: wrap !important; }
	.feature-cards > .wp-block-column { flex-basis: 100% !important; }
	.team-cards > .wp-block-column { flex-basis: calc(50% - .75rem) !important; }
	.wp-block-cover.hero { min-height: 70vh !important; }
}
@media (max-width: 600px) {
	.section { padding: 3rem 1.1rem; }
	.wp-block-cover.hero { min-height: 82svh !important; padding: 6rem 1.1rem 2.5rem; }
	.hero .hero-logo img { max-height: 84px; }
	.hero .wp-block-buttons { gap: .5rem; }
	.hero .wp-block-button { flex: 1 1 auto; }
	.hero .wp-block-button__link { width: 100%; padding: .8em 1em; }
	.feature-card { padding: 1.25rem 1.1rem; }
	.split .rounded-img img { max-height: 340px; }
	body { font-size: 1.02rem; }
}

/* Überschriften mit Magenta-Akzent */
.section h2.wp-block-heading { position: relative; padding-bottom: .55rem; }
.section h2.wp-block-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: var(--mtb-brand, var(--mtb-primary)); }
.section h2.has-text-align-center::after, .team-title::after { left: 50%; transform: translateX(-50%); }
.section--brand h2.wp-block-heading::after { background: var(--mtb-primary); }
.feature-card h2.wp-block-heading { padding-bottom: .55rem; }
.feature-card::before { background: var(--mtb-brand, var(--mtb-primary)) !important; }
.callout-card { border-left-color: var(--mtb-brand, var(--mtb-primary)); background: var(--mtb-blush); }
.team-card { box-shadow: 0 12px 30px -18px rgba(33,28,36,.35); }
.team-card h3 { font-size: 1.1rem; }
.split .rounded-img img, .rounded-img img { box-shadow: 18px 18px 0 -2px var(--mtb-blush), var(--shadow); }
.site-footer { border-top: 4px solid var(--mtb-brand, var(--mtb-primary)); }
.contact-facts li { border-bottom-color: rgba(255,255,255,.14); }

/* Social-Icons */
.social-links { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: 42px; min-width: 42px; padding: 0 .9rem 0 .7rem; border-radius: 999px; text-decoration: none; font-weight: 650; font-size: .95rem; background: var(--mtb-soft); color: var(--mtb-ink); transition: background .2s, color .2s, transform .15s; }
.social-links a:hover { background: var(--mtb-primary); color: #fff; transform: translateY(-1px); }
.social-links svg { width: 20px; height: 20px; flex: none; }
.social-links--icons a { padding: 0; width: 40px; }
.social-links--icons a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.header-social { margin-left: .5rem; }
.header-social a { background: transparent; color: var(--mtb-ink); }
@media (max-width: 960px) { .header-social { display: none; } .site-nav .social-links { margin-top: 1rem; } }
.site-footer .social-links a { background: rgba(255,255,255,.08); color: #fff; }
.site-footer .social-links a:hover { background: var(--mtb-primary); }
.section--brand .social-links a { background: rgba(255,255,255,.1); color: #fff; }
.section--brand .social-links a:hover { background: var(--mtb-primary); }
@media (min-width: 961px) { .nav-social { display: none !important; } }
.footer-links .social-links { margin-top: 1.25rem; }
/* Auf Magenta-Hintergrund: Hauptbutton weiß */
.hero .wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: #fff; color: var(--mtb-primary); border-color: #fff; box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); }
.hero .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover { background: var(--mtb-blush); color: var(--mtb-primary-dark); }

/* Logo-Shortcode */
.mtbt-logo img { max-width: 100%; height: auto; display: block; }

/* Team: drei Bilder (Etax | Trainerin mit Hund | Black Boy) */
.team-cards--3 { margin-top: 0 !important; margin-bottom: clamp(2rem,5vw,3.5rem) !important; align-items: stretch !important; }
.team-cards--3 .team-card .wp-block-image img { aspect-ratio: 4/5; object-position: center top; }
.team-cards--3 .team-card--me { align-self: stretch; }
.team-cards--3 .team-card--me .wp-block-image, .team-cards--3 .team-card--me .wp-block-image img { height: 100%; }
.team-cards--3 .team-card h3 { margin-bottom: .2rem; }
.team-cards--3 .team-breed { padding-bottom: 1.2rem; text-transform: none !important; letter-spacing: 0 !important; font-size: 1rem !important; }
.about-text { max-width: var(--wrap-text); margin-inline: auto; }
.about-text .seminar-list { columns: 2 18rem; }

/* Vektorlogos (1.5) */
.hero .hero-logo picture { display: block; }
.footer-logo .mtbt-brand-wordmark { max-height: 64px; padding: .6rem .9rem; }
.site-branding .mtbt-brand-horizontal { max-height: 66px; }
.is-scrolled .site-branding .mtbt-brand-horizontal { max-height: 52px; }
@media (max-width: 600px) { .hero .hero-logo img.mtbt-brand-horizontal { max-height: 200px !important; max-width: 70vw !important; } }

/* Voraussetzungen: drei Karten mit Symbol + Hinweisband (1.5) */
.req-cards { gap: 1.25rem !important; margin-top: 2rem !important; align-items: stretch !important; }
.req-card { background: #fff; border: 1px solid var(--mtb-line); border-radius: var(--radius); padding: 1.6rem 1.5rem 1.5rem; box-shadow: 0 12px 30px -24px rgba(33,28,36,.35); position: relative; display: flex; flex-direction: column; }
.req-card::before { content: ""; display: block; width: 3.25rem; height: 3.25rem; border-radius: 16px; margin-bottom: 1.1rem; flex: none;
	background: linear-gradient(135deg, var(--mtb-brand, var(--mtb-primary)), color-mix(in srgb, var(--mtb-dark) 55%, var(--mtb-primary)));
	-webkit-mask: var(--req-icon) center / 58% no-repeat, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: var(--req-icon) center / 58% no-repeat, linear-gradient(#000 0 0); mask-composite: exclude; }
.req-card p { margin: 0; color: var(--mtb-text, #2b2530); line-height: 1.7; }
.req-card--scent { --req-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 8c2-2 4 2 6 0s4 2 6 0 4 2 4 2'/%3E%3Cpath d='M4 13c2-2 4 2 6 0s4 2 6 0 4 2 4 2'/%3E%3Cpath d='M4 18c2-2 4 2 6 0s4 2 6 0'/%3E%3C/svg%3E"); }
.req-card--gear { --req-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6' r='3'/%3E%3Cpath d='M8.2 8.2 13 13'/%3E%3Cpath d='M13 13c3 0 5 1.5 6 4s-1 4-3.5 3-2.5-4-2.5-7z'/%3E%3C/svg%3E"); }
.req-card--dog { --req-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cellipse cx='6' cy='10' rx='2' ry='2.6'/%3E%3Cellipse cx='10' cy='6' rx='2' ry='2.6'/%3E%3Cellipse cx='14.5' cy='6' rx='2' ry='2.6'/%3E%3Cellipse cx='18.5' cy='10' rx='2' ry='2.6'/%3E%3Cpath d='M12.2 11c2.6 0 5.3 3.4 5.3 5.8 0 2-1.6 2.7-3 2.4-1-.2-1.6-.6-2.3-.6s-1.3.4-2.3.6c-1.4.3-3-.4-3-2.4 0-2.4 2.7-5.8 5.3-5.8z'/%3E%3C/svg%3E"); }
.pro-callout { margin-top: 1.5rem !important; border-radius: var(--radius); padding: 1.8rem 2rem 1.8rem 6.2rem !important; position: relative; color: #fff; overflow: hidden;
	background: linear-gradient(120deg, var(--mtb-brand, var(--mtb-primary)) 0%, color-mix(in srgb, var(--mtb-dark) 60%, var(--mtb-primary)) 55%, var(--mtb-dark) 100%); box-shadow: 0 24px 50px -30px rgba(33,28,36,.6); }
.pro-callout::before { content: ""; position: absolute; left: 1.8rem; top: 1.8rem; width: 2.9rem; height: 2.9rem; background: rgba(255,255,255,.95);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.4 8 11 4.6-1.6 8-6 8-11V5z'/%3E%3Cpath d='M12 8v.01M12 11v5'/%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 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.4 8 11 4.6-1.6 8-6 8-11V5z'/%3E%3Cpath d='M12 8v.01M12 11v5'/%3E%3C/svg%3E") center / contain no-repeat; }
.pro-callout h3 { color: #fff !important; font-size: 1.3rem; margin: 0 0 .5rem !important; }
.pro-callout p { color: rgba(255,255,255,.92); margin: 0; max-width: 62rem; line-height: 1.7; }
@media (max-width: 781px) {
	.req-cards { gap: 1rem !important; }
	.pro-callout { padding: 4.8rem 1.4rem 1.5rem !important; }
	.pro-callout::before { left: 1.4rem; top: 1.4rem; width: 2.5rem; height: 2.5rem; }
}
@media (min-width: 782px) {
	.req-cards { display: grid !important; grid-template-columns: 1.15fr 1fr; }
	.req-cards > .req-card { flex-basis: auto !important; margin: 0 !important; }
	.req-card--scent { grid-row: span 2; justify-content: center; padding: 2rem 2rem 2rem !important; }
	.req-card--scent p { font-size: 1.08rem; }
	.req-card--gear, .req-card--dog { flex-direction: row; gap: 1.1rem; align-items: flex-start; }
	.req-card--gear::before, .req-card--dog::before { margin-bottom: 0; }
}
