/* ==========================================================================
   Couchgoblins – Ergänzende Stile (Entwurf B „Sanft & Rund“)
   Farben, Schriften und Abstände stehen in theme.json.
   ========================================================================== */

:root {
	--cg-r: 24px;
	--cg-r-s: 16px;
	--cg-shadow: 0 12px 36px rgba(94, 82, 68, .10);
	--cg-ease: cubic-bezier(.16, 1, .3, 1);
}

body { -webkit-font-smoothing: antialiased; }
img { height: auto; }

/* ---------- Kopfbereich: schwebende Pille ---------- */
.cg-header { position: sticky; top: 0; z-index: 50; padding-top: 12px; padding-bottom: 4px; }
.admin-bar .cg-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .cg-header { top: 0; } }
.cg-header__bar {
	background: rgba(251, 250, 248, .88);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-radius: 999px;
	box-shadow: var(--cg-shadow);
	min-height: 64px;
}
.cg-header .wp-block-navigation__container { gap: 4px; }
.cg-header .wp-block-navigation-item__content { padding: 10px 14px !important; border-radius: 999px; }
.cg-header .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--base); }
.cg-header .wp-block-navigation__submenu-container {
	border: 0 !important; border-radius: 18px; padding: 10px !important;
	box-shadow: 0 16px 40px rgba(94, 82, 68, .16); background: var(--wp--preset--color--card) !important; min-width: 260px !important;
}
.cg-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { border-radius: 12px; }
.cg-header .wc-block-mini-cart__button { background: var(--wp--preset--color--beige); border-radius: 999px; padding: 10px 16px; }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--base) !important; padding: 28px !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.15rem; }

/* ---------- Block-Stilvarianten ---------- */
.wp-block-image.is-style-bogen img { border-radius: 400px 400px var(--cg-r) var(--cg-r) !important; }
.wp-block-image.is-style-rund img { border-radius: 50% !important; aspect-ratio: 1; object-fit: cover; }
.wp-block-group.is-style-karte { background: var(--wp--preset--color--card); border-radius: var(--cg-r); padding: clamp(24px, 4vw, 44px); }
.wp-block-button.is-style-weich .wp-block-button__link { background: var(--wp--preset--color--beige); color: var(--wp--preset--color--contrast); }
.wp-block-button.is-style-weich .wp-block-button__link:hover { background: var(--wp--preset--color--beige-dark); }
.wp-block-button__link { transition: transform .2s, background .2s; }
.wp-block-button__link:active { transform: scale(.98); }
.wp-block-button.is-style-outline .wp-block-button__link { border: 1.5px solid currentColor; background: transparent; }

ol.is-style-schritte { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 16px; }
ol.is-style-schritte li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; color: var(--wp--preset--color--muted); }
ol.is-style-schritte li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--wp--preset--color--beige); display: grid; place-items: center; font: 500 15px var(--wp--preset--font-family--heading); color: var(--wp--preset--color--contrast); }
ul.is-style-haken { list-style: none; padding: 0; display: grid; gap: 10px; }
ul.is-style-haken li { padding-left: 32px; position: relative; }
ul.is-style-haken li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%; background: var(--wp--preset--color--beige) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2333312E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ---------- Hero ---------- */
.cg-hero { gap: 28px !important; }
.cg-hero > .wp-block-column { display: flex; }
.cg-hero__card { border-radius: var(--cg-r); display: flex; flex-direction: column; justify-content: flex-end; min-height: min(620px, 78vh); width: 100%; }
.cg-hero .wp-block-image { margin: 0; width: 100%; height: 100%; }
.cg-hero .wp-block-image img { width: 100%; height: 100%; min-height: min(620px, 78vh); object-fit: cover; }
@media (max-width: 781px) {
	.cg-hero > .wp-block-column:last-child { order: -1; }
	.cg-hero .wp-block-image img, .cg-hero__card { min-height: 380px; }
}

/* ---------- Chips ---------- */
.cg-chips { gap: 10px !important; }
.cg-chips p { background: var(--wp--preset--color--base); border-radius: 999px; padding: 9px 16px; margin: 0; font: 500 15px var(--wp--preset--font-family--heading); }

/* ---------- Karten-Raster (Das hebt uns ab) ---------- */
.cg-cards { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cg-cards > * { margin: 0 !important; border-radius: var(--cg-r); padding: 30px; background: var(--wp--preset--color--beige); }
.cg-cards > *:nth-child(2n) { background: var(--wp--preset--color--grey); }
.cg-cards > *:nth-child(3) { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--card); }
.cg-cards > *:nth-child(3) :where(h2, h3, h4) { color: var(--wp--preset--color--card); }
.cg-cards > *:nth-child(3) p { color: #c9c3ba; }
.cg-cards h3 { font-size: 1.35rem; margin: 0 0 8px; }
.cg-cards p { font-size: .97rem; color: var(--wp--preset--color--muted); margin: 0; }
@media (max-width: 900px) { .cg-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cg-cards { grid-template-columns: 1fr; } }

/* ---------- Hunde-Bento (Query Loop) ---------- */
.cg-bento .wp-block-post-template { display: grid !important; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 18px; }
.cg-bento .wp-block-post-template > li { margin: 0; }
.cg-bento .wp-block-post-template > li:first-child { grid-column: span 2; grid-row: span 2; }
.cg-bento .wp-block-post-template > li:nth-child(2) { grid-column: span 2; }
.cg-dogcard { position: relative; height: 100%; border-radius: var(--cg-r); overflow: hidden; background: var(--wp--preset--color--grey); }
.cg-dogcard .wp-block-post-featured-image { position: absolute; inset: 0; margin: 0; height: 100% !important; }
.cg-dogcard .wp-block-post-featured-image img { width: 100%; height: 100% !important; object-fit: cover; border-radius: 0 !important; transition: transform .8s var(--cg-ease); }
.cg-dogcard:hover .wp-block-post-featured-image img { transform: scale(1.04); }
.cg-dogcard .cg-cap { position: absolute; left: 14px; right: 14px; bottom: 14px; background: rgba(251, 250, 248, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 16px; padding: 12px 16px; gap: 2px !important; }
.cg-dogcard .cg-cap .wp-block-post-title { font-size: 1.15rem; margin: 0; }
.cg-dogcard .cg-cap .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.cg-dogcard .cg-cap .wp-block-post-terms { font-size: .85rem; color: var(--wp--preset--color--muted); }
.cg-dogcard .cg-cap .wp-block-post-terms a { text-decoration: none; color: inherit; pointer-events: none; }
@media (max-width: 900px) { .cg-bento .wp-block-post-template { grid-template-columns: 1fr 1fr; grid-auto-rows: 230px; } }
@media (max-width: 600px) {
	.cg-bento .wp-block-post-template { grid-template-columns: 1fr; grid-auto-rows: 280px; }
	.cg-bento .wp-block-post-template > li:first-child, .cg-bento .wp-block-post-template > li:nth-child(2) { grid-column: auto; }
	.cg-bento .wp-block-post-template > li:first-child { grid-row: span 2; }
}

/* Hunde-Archiv: gleichmäßiges Raster */
.cg-grid .wp-block-post-template { gap: 18px; }
.cg-grid .cg-dogcard { aspect-ratio: 4 / 5; height: auto; }

/* Welpen-Status-Badge */
.cg-badge { display: inline-flex; }
.cg-badge a, .cg-badge span:not(.wp-block-post-terms__separator) {
	display: inline-block; padding: 5px 12px; border-radius: 999px; font: 500 13px var(--wp--preset--font-family--heading);
	text-decoration: none; background: var(--wp--preset--color--beige); color: var(--wp--preset--color--contrast);
}
.cg-badge .term-verfuegbar, .cg-badge a[href*="verfuegbar"] { background: #DDE3D6; }
.cg-badge a[href*="reserviert"] { background: #EADFCB; }
.cg-badge a[href*="vergeben"] { background: var(--wp--preset--color--grey); }

/* ---------- Steckbrief-Tabelle im Hundeprofil ---------- */
.cg-steckbrief table { border-collapse: separate; border-spacing: 0; width: 100%; background: var(--wp--preset--color--card); border-radius: var(--cg-r-s); overflow: hidden; }
.cg-steckbrief td { border: 0 !important; border-bottom: 1px solid var(--wp--preset--color--base) !important; padding: 12px 16px !important; }
.cg-steckbrief tr:last-child td { border-bottom: 0 !important; }
.cg-steckbrief td:first-child { color: var(--wp--preset--color--muted); width: 42%; }

/* ---------- Galerie ---------- */
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: var(--cg-r-s); }

/* ---------- Hinweis-Kasten ---------- */
.cg-hinweis { border-radius: var(--cg-r-s); background: var(--wp--preset--color--beige); padding: 18px 22px; }

/* ---------- Video-Galerie ---------- */
.cg-videos { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.cg-videos > * { margin: 0 !important; }
.cg-videos video { width: 100%; border-radius: var(--cg-r-s); background: #000; aspect-ratio: 9/16; object-fit: cover; }

/* ---------- Fußbereich ---------- */
.cg-footer__box { border-radius: var(--cg-r); }
.cg-footer a { text-decoration: none; color: #46433f; }
.cg-footer a:hover { color: var(--wp--preset--color--contrast); text-decoration: underline; }
.cg-footer .wp-block-navigation .wp-block-navigation-item__content { padding: 0; }
.cg-widerruf .wp-block-button__link { font-size: .9rem !important; padding: .7rem 1.2rem !important; }
.cg-social a { display: inline-flex; }

/* ---------- WooCommerce ---------- */
.woocommerce-page main, .wc-block-components-product-name { font-family: var(--wp--preset--font-family--body); }
.wc-block-grid__product, .wc-block-product { background: var(--wp--preset--color--card); border-radius: var(--cg-r); padding: 12px 12px 18px !important; }
.wc-block-components-product-image img, .wp-block-woocommerce-product-image img { border-radius: var(--cg-r-s) !important; }
.wp-block-post-title a { text-decoration: none; }
.wc-block-components-product-price, .wp-block-woocommerce-product-price { color: var(--wp--preset--color--muted); }
.woocommerce div.product div.images img, .wp-block-woocommerce-product-image-gallery img { border-radius: var(--cg-r); }
.woocommerce .quantity .qty, .woocommerce select, .woocommerce input.input-text, .woocommerce textarea,
.wc-block-components-text-input input, .wc-block-components-textarea, .wc-blocks-components-select__select {
	border-radius: 12px !important; border: 1px solid var(--wp--preset--color--grey) !important; background: var(--wp--preset--color--card) !important; padding: 10px 12px;
}
.woocommerce button.button, .woocommerce a.button, .wc-block-components-button:not(.is-link) {
	border-radius: 999px !important; background: var(--wp--preset--color--contrast) !important; color: var(--wp--preset--color--card) !important;
	font-family: var(--wp--preset--font-family--heading) !important; font-weight: 500 !important;
}
.woocommerce table.variations td, .woocommerce table.variations th { padding: 6px 0; }
.woocommerce table.variations label { font-weight: 500; }
.woocommerce-variation-price .price { font-size: 1.4rem; }
.wc-gzd-additional-info, .wc-gzd-additional-wrapper, .legal-price-info, .shipping-costs-info, .delivery-time-info { font-size: .85rem; color: var(--wp--preset--color--muted); }
.woocommerce-store-notice, p.demo_store { background: var(--wp--preset--color--contrast) !important; }

/* Personalisierungs-Felder */
.wapf-wrapper, .cg-personalisierung { background: var(--wp--preset--color--card); border-radius: var(--cg-r-s); padding: 18px 20px 6px; margin: 14px 0 18px; }
.wapf-field-container { margin: 0 0 14px !important; padding: 0 !important; }
.wapf-field-label label { font-weight: 500; font-size: .95rem; }
.wapf-field-description { font-size: .85rem; color: var(--wp--preset--color--muted); }
.wapf input[type=text], .wapf textarea, .wapf select { width: 100%; border-radius: 12px; border: 1px solid var(--wp--preset--color--grey); background: #fff; padding: 10px 12px; font: inherit; }

/* ---------- Einblenden beim Scrollen ---------- */
@media (prefers-reduced-motion: no-preference) {
	.cg-js .cg-reveal > *, .cg-js .cg-reveal-self { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--cg-ease), transform .8s var(--cg-ease); }
	.cg-js .cg-reveal > .is-in, .cg-js .cg-reveal-self.is-in { opacity: 1; transform: none; }
}

/* ---------- Kleinigkeiten ---------- */
.cg-muted { color: var(--wp--preset--color--muted); }
.wp-site-blocks { padding-bottom: 20px; }
:where(.wp-site-blocks) > main { margin-block-start: 0; }
.skip-link:focus { z-index: 100000; }

/* ---------- Korrekturen v1.0.1 ---------- */
.cg-dark { color: var(--wp--preset--color--card); }
.cg-dark p { color: #d9d4cc; }
.cg-dark a { color: var(--wp--preset--color--card); }
.cg-footer .wp-block-button__link, .cg-footer .wp-block-button__link:hover { color: var(--wp--preset--color--card) !important; text-decoration: none !important; }
.cg-hero h1 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); hyphens: manual; overflow-wrap: normal; word-break: normal; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1rem; font-family: var(--wp--preset--font-family--heading); font-weight: 500; }
.woocommerce ul.products li.product { background: var(--wp--preset--color--card); border-radius: var(--cg-r); padding: 12px 12px 18px; }
.woocommerce ul.products li.product a img { border-radius: var(--cg-r-s); aspect-ratio: 1; object-fit: cover; }
.woocommerce span.onsale { background: var(--wp--preset--color--accent) !important; border-radius: 999px; min-height: 0; line-height: 1; padding: 8px 12px; }
.woocommerce ul.products li.product .price { color: var(--wp--preset--color--muted); }

.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 24px 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; display: flex; flex-direction: column; }
.woocommerce ul.products li.product .button { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .woocommerce ul.products { gap: 10px; } .woocommerce ul.products li.product { padding: 8px 8px 14px; } }
.cg-hand .wp-block-image { max-width: 180px; margin-left: auto !important; margin-right: auto !important; }

/* Lesbare Textbreite, linksbündig im Inhaltsbereich */
.wp-block-post-content.is-layout-constrained > :where(p, ul, ol, .cg-hinweis, .wp-block-table) {
	max-width: min(760px, 100%);
	margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important;
}
.wp-block-column > p, .wp-block-group > p { max-width: 72ch; }

/* Mobil: Sortierung nicht breiter als der Bildschirm */
.wc-block-catalog-sorting, .woocommerce-ordering, .woocommerce-ordering select { max-width: 100%; }
@media (max-width: 600px) { .wp-block-woocommerce-catalog-sorting, .wc-block-catalog-sorting { width: 100%; } .woocommerce-ordering select { width: 100%; } }

.woocommerce-product-gallery { overflow: hidden; border-radius: var(--cg-r); }
.woocommerce-product-gallery .flex-control-thumbs li img { border-radius: 12px; }

/* ---------- Kopfbereich bleibt beim Scrollen sichtbar ---------- */
.wp-site-blocks > .wp-block-template-part:has(> .cg-header), .wp-site-blocks > header:has(.cg-header) { position: sticky; top: 0; z-index: 90; }
.admin-bar .wp-site-blocks > .wp-block-template-part:has(> .cg-header) { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > .wp-block-template-part:has(> .cg-header) { top: 46px; } }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > .wp-block-template-part:has(> .cg-header) { top: 0; } }
.cg-header { position: relative !important; top: auto !important; }

/* ---------- Mobiles Menü (Vollbild) ---------- */
/* backdrop-filter erzeugt einen eigenen Rahmen für position:fixed – sonst bleibt das Menü in der Pille gefangen */
.cg-header__bar:has(.is-menu-open) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
@media (max-width: 781px) {
	.cg-header__bar { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(251, 250, 248, .97); }
}
.wp-block-navigation__responsive-container.is-menu-open {
	position: fixed !important; inset: 0 !important; width: auto !important; height: auto !important; box-sizing: border-box;
	background: var(--wp--preset--color--base) !important; padding: 20px 24px 32px !important; overflow-y: auto; z-index: 100000;
	animation: cg-menu-in .28s cubic-bezier(.16, 1, .3, 1);
}
@keyframes cg-menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wp-block-navigation__responsive-container.is-menu-open { animation: none; } }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog { margin: 0; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog::before {
	content: ""; display: block; width: 150px; height: 47px; background: url(/wp-content/uploads/2026/09/logo-couchgoblins-menue.png) left center / contain no-repeat; margin: 0 0 22px;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	top: 22px !important; right: 20px !important; width: 44px; height: 44px; border-radius: 50%;
	background: var(--wp--preset--color--card) !important; display: grid !important; place-items: center; box-shadow: var(--cg-shadow);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 0 !important; align-items: stretch !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0 !important; width: 100%; align-items: stretch !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
	width: 100%; border-bottom: 1px solid var(--wp--preset--color--beige-dark); padding: 6px 0; flex-direction: column; align-items: flex-start !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	font: 500 1.55rem/1.2 var(--wp--preset--font-family--heading) !important; letter-spacing: -.01em; padding: 12px 4px !important; border-radius: 0; background: none !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon { display: none !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	position: static !important; box-shadow: none !important; background: transparent !important; padding: 0 0 10px 4px !important; min-width: 0 !important;
	display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: 8px !important; border: 0 !important; opacity: 1 !important; visibility: visible !important; width: 100% !important; height: auto !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font: 500 .95rem var(--wp--preset--font-family--heading) !important; padding: 9px 14px !important; border-radius: 999px !important; background: var(--wp--preset--color--card) !important; color: var(--wp--preset--color--contrast) !important;
}

@media (max-width: 781px) {
	.cg-header__bar { background: #FBFAF8 !important; gap: 6px; }
	.cg-header__bar > .wp-block-site-title { margin-right: auto; }
	.cg-header__bar > .wp-block-navigation { order: 10; }
	.cg-header .wp-block-navigation__responsive-container-open { width: 44px; height: 44px; border-radius: 50%; background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--card); display: grid; place-items: center; }
	.cg-header .wp-block-navigation__responsive-container-open svg { fill: currentColor; }
}

/* ---------- Rassen getrennt (Hundefamilie) ---------- */
.cg-rasse { scroll-margin-top: 110px; }
.cg-rasse + .cg-rasse { margin-top: var(--wp--preset--spacing--60); padding-top: var(--wp--preset--spacing--50); border-top: 1px solid var(--wp--preset--color--beige-dark); }
.cg-rasse:not(:has(.wp-block-post)) { display: none; }
.cg-rasse > .cg-muted { max-width: 760px; }

/* ---------- Widerrufsbutton im Shop ---------- */
.cg-widerruf-shop { width: min(1200px, calc(100% - 32px)); margin: var(--wp--preset--spacing--50) auto 0; }
.cg-widerruf-shop__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; background: var(--wp--preset--color--beige); border-radius: 28px; padding: 22px clamp(20px, 4vw, 36px); }
.cg-widerruf-shop__inner p { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--wp--preset--color--contrast); }
.cg-widerruf-shop__btn { display: inline-block; background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--card) !important; text-decoration: none !important; font: 600 1rem var(--wp--preset--font-family--heading); padding: 14px 26px; border-radius: 999px; white-space: nowrap; }
.cg-widerruf-shop__btn:hover, .cg-widerruf-shop__btn:focus-visible { background: var(--wp--preset--color--accent); }

/* ---------- Logo auf der Startseite ---------- */
.cg-hero .cg-logo, .cg-logo { margin: 0 0 8px !important; width: clamp(150px, 20vw, 230px) !important; max-width: 100%; height: auto !important; flex: 0 0 auto !important; align-self: flex-start; border-radius: 0 !important; overflow: visible !important; }
.cg-hero .cg-logo img, .cg-logo img { width: 100% !important; height: auto !important; aspect-ratio: auto !important; object-fit: contain !important; max-height: none !important; min-height: 0 !important; border-radius: 0 !important; box-shadow: none !important; position: static !important; }

/* ---------- Lehrgänge: Zertifikate ---------- */
.wp-block-gallery.cg-zertifikate { gap: 18px !important; align-items: stretch; }
.wp-block-gallery.cg-zertifikate .wp-block-image { background: var(--wp--preset--color--card); border-radius: 18px; padding: 12px 12px 0; box-shadow: var(--cg-shadow); display: flex !important; flex-direction: column !important; justify-content: space-between; }
.wp-block-gallery.cg-zertifikate .wp-block-image img { border-radius: 8px; height: auto !important; object-fit: contain !important; }
.wp-block-gallery.cg-zertifikate .wp-block-image figcaption { position: static !important; background: none !important; color: var(--wp--preset--color--contrast) !important; text-shadow: none !important; font: 500 .9rem/1.35 var(--wp--preset--font-family--heading); padding: 12px 4px 14px !important; margin: 0 !important; max-height: none !important; overflow: visible !important; text-align: left; }
.wp-block-gallery.cg-zertifikate .wp-block-image::before { display: none !important; }
.wp-block-gallery.cg-zertifikate .wp-block-image { flex-grow: 0 !important; width: calc(25% - 13.5px) !important; }
@media (max-width: 1000px) { .wp-block-gallery.cg-zertifikate .wp-block-image { width: calc(33.333% - 12px) !important; } }
@media (max-width: 781px) { .wp-block-gallery.cg-zertifikate { gap: 12px !important; } .wp-block-gallery.cg-zertifikate .wp-block-image { width: calc(50% - 6px) !important; } }

/* ---------- Logo im Menü ---------- */
.cg-header .cg-logo-menu { margin: 0 !important; flex: 0 0 auto; line-height: 0; }
.cg-header .cg-logo-menu img { height: 50px !important; width: auto !important; max-width: none; }
@media (max-width: 781px) { .cg-header .cg-logo-menu { margin-right: auto !important; } .cg-header .cg-logo-menu img { height: 42px !important; } }
@media (max-width: 360px) { .cg-header .cg-logo-menu img { height: 36px !important; } }

/* ---------- Burger-Menü auch auf Tablets (bis 1100 px), damit das Menü nie umbricht ---------- */
@media (min-width: 600px) and (max-width: 1100px) {
	.cg-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: grid !important; }
	.cg-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
}
@media (max-width: 1100px) {
	.cg-header__bar { gap: 6px; }
	.cg-header__bar > .wp-block-navigation { order: 10; }
	.cg-header .cg-logo-menu { margin-right: auto !important; }
	.cg-header .wp-block-navigation__responsive-container-open { width: 44px; height: 44px; border-radius: 50%; background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--card); place-items: center; }
	.cg-header .wp-block-navigation__responsive-container-open svg { fill: currentColor; }
}
/* ---------- Logo im Footer ---------- */
.cg-footer .cg-logo-footer { margin: 0 0 14px !important; line-height: 0; }
.cg-footer .cg-logo-footer img { height: 56px !important; width: auto !important; }

/* ---------- Videos (Hunde, Videogalerie, Shop) ---------- */
.cg-video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.cg-video-grid .wp-block-video { margin: 0 !important; }
.cg-video-grid video { width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: var(--wp--preset--color--contrast); border-radius: 18px; display: block; }
@media (max-width: 781px) { .cg-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .cg-video-grid video { border-radius: 14px; } }
.cg-video-main .wp-block-video, .cg-in-memory .wp-block-video { margin: 16px 0 0 !important; }
.cg-video-main video, .cg-in-memory video, .cg-produkt-video video { display: block; max-width: 100%; max-height: 78vh; width: auto; margin: 0 auto; border-radius: 22px; background: var(--wp--preset--color--contrast); }
.cg-produkt-video { margin: 0 0 1.5em; }
.cg-produkt-video video { width: 100%; max-height: 70vh; object-fit: contain; }
.cg-roentgen img { border-radius: 22px; }

/* APF-Box nie breiter als der Bildschirm */
.wapf-wrapper { max-width: 100% !important; box-sizing: border-box !important; }
.wapf-wrapper .wapf-field-group, .wapf-wrapper .wapf-field-row { max-width: 100%; box-sizing: border-box; }

/* ---------- WhatsApp-Button ---------- */
.cg-wa { position: fixed; right: 18px; bottom: 18px; z-index: 900; display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 20px 0 14px; border-radius: 999px; background: #25D366; color: #fff !important; text-decoration: none !important; font: 600 1rem var(--wp--preset--font-family--heading); box-shadow: 0 10px 28px rgba(0,0,0,.18); transition: transform .2s ease, box-shadow .2s ease; }
.cg-wa:hover, .cg-wa:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,.22); }
.cg-wa svg { flex: 0 0 auto; }
@media (max-width: 781px) { .cg-wa { right: 14px; bottom: 14px; width: 56px; padding: 0; justify-content: center; } .cg-wa__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media print { .cg-wa { display: none; } }

.cg-video-grid figcaption { font: 500 .88rem/1.3 var(--wp--preset--font-family--heading); color: var(--wp--preset--color--contrast); margin: 8px 2px 0 !important; text-align: left; }

/* ---------- Auffälliger Shop-Button (Startseite) ---------- */
.cg-btn-shop .wp-block-button__link { background: var(--wp--preset--color--accent) !important; color: #fff !important; padding: 16px 30px !important; font-size: 1.05rem !important; box-shadow: 0 10px 24px rgba(141,119,96,.35); display: inline-flex; align-items: center; gap: 10px; }
.cg-btn-shop .wp-block-button__link::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: 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 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%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='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center/contain no-repeat; }
.cg-btn-shop .wp-block-button__link:hover, .cg-btn-shop .wp-block-button__link:focus-visible { background: var(--wp--preset--color--contrast) !important; }
/* WhatsApp-Button im Kontakt */
.cg-btn-wa .wp-block-button__link { background: #25D366 !important; color: #fff !important; }
.cg-btn-wa .wp-block-button__link:hover { background: #1ebe5a !important; }
