/* RBC – Template-Styles. Farben aus dem bisherigen Theme „noachis“ übernommen. */

@font-face { font-family: "PT Sans"; src: url("../fonts/pt-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PT Sans"; src: url("../fonts/pt-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Agdasima"; src: url("../fonts/agdasima-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
	--c-primary: #b87333;
	--c-primary-light: #ce813a;
	--c-primary-dark: #98612e;
	--c-header: #1d1404;
	--c-bg: #36250b;
	--c-card: #5a3a1c;
	--c-card-2: #4a2f15;
	--c-card-head: #451507;
	--c-nav: #e0dace;
	--c-nav-text: #45423d;
	--c-text: #e9e3d3;
	--c-muted: #cfc5b0;
	--c-heading: #fff;
	--c-footer: #484439;
	--c-accent: #ffae02;
	--radius: 3px;
	--shadow: 0 6px 18px rgb(0 0 0 / .35);
	--f-body: "PT Sans", system-ui, sans-serif;
	--f-head: "Agdasima", "PT Sans", sans-serif;
	--w: 1400px;
	--gap: clamp(1rem, 2vw, 1.75rem);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font: 400 1rem/1.6 var(--f-body); }
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--c-primary-light); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--c-accent); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: 400; color: var(--c-heading); letter-spacing: .5px; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--w); margin-inline: auto; padding-inline: var(--gap); }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--c-primary); color: #fff; padding: .5rem 1rem; }
.skip-link:focus { top: 1rem; }
[class^="icon-"]:empty, [class*=" icon-"]:empty { display: none; }

.btn, button.btn, .readmore a, .btn-primary, .btn-secondary, input[type="submit"] {
	display: inline-flex; align-items: center; gap: .4em; border: 0; border-radius: var(--radius);
	background: var(--c-primary); color: #fff; font: inherit; font-size: .95rem; line-height: 1.2;
	padding: .55em 1em; cursor: pointer; text-decoration: none; transition: background .2s;
}
.btn:hover, .readmore a:hover, .btn-primary:hover, input[type="submit"]:hover { background: var(--c-primary-dark); color: #fff; }
.ico { width: 1em; height: 1em; flex: none; }

input, select, textarea { font: inherit; color: #222; background: #f4f0e8; border: 1px solid #c9bfa9; border-radius: var(--radius); padding: .5em .7em; max-width: 100%; }

/* ---------- Kopf ---------- */
.site-header { background: var(--c-header); position: relative; z-index: 20; }
.header-brand { display: flex; align-items: center; justify-content: space-between; padding-block: .75rem; }
.brand-logo { width: auto; height: clamp(70px, 9vw, 100px); }
.brand-logo.is-inverted { filter: invert(.88) sepia(.35); }

.navbar { background: var(--c-nav); box-shadow: 0 2px 0 rgb(0 0 0 / .15); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul, .main-nav .mod-menu { display: flex; flex-wrap: wrap; }
.main-nav li { position: relative; }
.main-nav a, .main-nav .mod-menu__heading, .main-nav .mod-menu__separator {
	display: block; padding: .7rem 1rem; color: var(--c-nav-text); text-decoration: none; font-size: .95rem; cursor: pointer;
}
.main-nav a:hover, .main-nav li:focus-within > a { color: var(--c-primary); }
.main-nav .current > a, .main-nav .active > a { background: var(--c-primary); color: #fff; }
.main-nav .parent > a::after, .main-nav .parent > span::after {
	content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .45em; vertical-align: .2em;
	border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.sub-toggle { display: none; }

.header-search form { display: flex; }
.header-search .mod-finder__search, .header-search .input-group { display: flex; margin: 0; }
.header-search input[type="search"], .header-search input[type="text"] {
	width: 11rem; background: var(--c-primary); color: #fff; border: 0; border-radius: 0; padding: .3rem .6rem; font-size: .85rem;
}
.header-search input::placeholder { color: rgb(255 255 255 / .8); }
.header-search button, .header-search .btn { background: var(--c-card-head); border-radius: 0; padding: .3rem .7rem; font-size: .85rem; }
.header-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.nav-toggle { display: none; }

@media (min-width: 992px) {
	.main-nav ul ul {
		position: absolute; top: 100%; left: 0; min-width: 14rem; z-index: 30; background: var(--c-nav);
		box-shadow: var(--shadow); visibility: hidden; opacity: 0; transform: translateY(6px); transition: .18s;
	}
	.main-nav ul ul ul { top: 0; left: 100%; }
	.main-nav li:hover > ul, .main-nav li:focus-within > ul { visibility: visible; opacity: 1; transform: none; }
	.main-nav ul ul a { padding: .55rem 1rem; }
}

@media (max-width: 991.98px) {
	.nav-toggle {
		display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgb(255 255 255 / .25);
		border-radius: var(--radius); background: transparent; cursor: pointer;
	}
	.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
		content: ""; display: block; width: 24px; height: 2px; background: var(--c-text); transition: .2s;
	}
	.nav-toggle-bars { position: relative; }
	.nav-toggle-bars::before { position: absolute; top: -7px; }
	.nav-toggle-bars::after { position: absolute; 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); }

	.navbar { display: none; }
	.nav-open .navbar { display: block; }
	.navbar-inner { flex-direction: column; align-items: stretch; padding-block: .5rem; }
	.main-nav > ul, .main-nav .mod-menu { flex-direction: column; }
	.main-nav a, .main-nav .mod-menu__heading { padding: .85rem .5rem; border-bottom: 1px solid rgb(0 0 0 / .08); }
	.main-nav .parent > a::after, .main-nav .parent > span::after { display: none; }
	.main-nav ul ul { display: none; padding-left: 1rem; }
	.main-nav li.is-open > ul { display: block; }
	.sub-toggle {
		display: grid; place-items: center; position: absolute; right: 0; top: 0; width: 48px; height: 48px;
		background: none; border: 0; color: var(--c-nav-text); cursor: pointer;
	}
	.sub-toggle::before { content: ""; width: .6em; height: .6em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: .2s; }
	.is-open > .sub-toggle::before { transform: rotate(-135deg); }
	.header-search { padding: .5rem 0; }
	.header-search input[type="search"], .header-search input[type="text"] { width: 100%; flex: 1; padding: .6rem; font-size: 1rem; }
	.header-search form, .header-search .mod-finder__search, .header-search .input-group { width: 100%; }
}

/* ---------- Slider ---------- */
.hero { border-bottom: 3px solid var(--c-primary); }
.rbc-slider { position: relative; overflow: hidden; background: #000; }
.rbc-slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rbc-slider-track::-webkit-scrollbar { display: none; }
.rbc-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; height: clamp(220px, 32vw, 480px); overflow: hidden; }
.rbc-slide-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); }
.rbc-slide.is-active .rbc-slide-img { animation: rbc-kenburns 14s ease-out both; }
@keyframes rbc-kenburns { from { transform: scale(1.12) translate(1.5%, 1%); } to { transform: scale(1) translate(0, 0); } }

.rbc-slide-caption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem max(var(--gap), calc((100% - var(--w)) / 2 + var(--gap)));
	background: linear-gradient(transparent, rgb(0 0 0 / .7)); color: #fff;
}
.rbc-slide-caption > * { max-width: 40rem; opacity: 0; transform: translateY(20px); }
.rbc-slide.is-active .rbc-slide-caption > * { animation: rbc-flyin .7s ease-out forwards; }
.rbc-slide.is-active .rbc-slide-caption > :nth-child(2) { animation-delay: .25s; }
.rbc-slide.is-active .rbc-slide-caption > :nth-child(3) { animation-delay: .5s; }
@keyframes rbc-flyin { to { opacity: 1; transform: none; } }
.rbc-slide-title { margin: 0 0 .3em; font-size: clamp(1.5rem, 4vw, 2.6rem); text-shadow: 0 2px 8px rgb(0 0 0 / .6); }
.rbc-slide-text { margin-bottom: .8em; }

.rbc-slider-nav {
	position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; display: grid; place-items: center;
	background: rgb(0 0 0 / .35); border: 0; border-radius: 50%; cursor: pointer; color: #fff; transition: background .2s;
}
.rbc-slider-nav:hover { background: var(--c-primary); }
.rbc-slider-nav svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.rbc-slider-nav.prev { left: 1rem; }
.rbc-slider-nav.next { right: 1rem; }
.rbc-slider-dots { position: absolute; bottom: .7rem; right: 1rem; display: flex; gap: .4rem; }
.rbc-slider-dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; }
.rbc-slider-dots button[aria-current="true"] { background: var(--c-primary); border-color: var(--c-primary); }
@media (max-width: 575.98px) { .rbc-slider-nav { display: none; } .rbc-slide-text { display: none; } }

/* ---------- Feature (großer Beitrag) ---------- */
.feature-band {
	padding-block: clamp(1.5rem, 3vw, 2.5rem);
	background: radial-gradient(ellipse at 40% 30%, rgb(120 85 40 / .35), transparent 60%);
}
.rbc-feature { display: grid; }
.rbc-feature-item { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 1.5rem 2rem; align-items: start; max-width: 900px; margin-inline: auto; }
.rbc-feature.is-rotating .rbc-feature-item { opacity: 0; visibility: hidden; transition: opacity .8s, visibility .8s; }
.rbc-feature.is-rotating .rbc-feature-item.is-active { opacity: 1; visibility: visible; }
.frame { display: block; background: #fff; padding: 7px; box-shadow: var(--shadow); }
.frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.rbc-feature-title { border-bottom: 1px solid rgb(255 255 255 / .12); padding-bottom: .4em; font-size: 1.8rem; }
.rbc-feature-title a { color: inherit; text-decoration: none; }
@media (max-width: 767.98px) {
	.rbc-feature-item { grid-template-columns: 1fr; }
	.rbc-feature-img { max-width: 320px; margin-inline: auto; }
}

/* ---------- Dreispaltiger Inhalt ---------- */
.site-body { display: grid; gap: var(--gap); padding-block: var(--gap) calc(var(--gap) * 2); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) {
	.layout-l-r { grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr) minmax(0, 1fr); }
	.layout-l { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
	.layout-r { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
}
@media (max-width: 991.98px) {
	/* Mobil: Inhalt zuerst, dann rechte, dann linke Spalte */
	.main { order: 1; }
	.sidebar-r { order: 2; }
	.sidebar-l { order: 3; }
}
.sidebar, .main { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }

/* Modulkasten: Leder-Kopf mit Ziernaht + Kupferkante */
.card {
	background: linear-gradient(160deg, var(--c-card) 0%, var(--c-card-2) 100%);
	border-radius: 10px; box-shadow: 0 10px 25px rgb(0 0 0 / .45); overflow: hidden;
}
.card-title {
	position: relative; display: flex; align-items: center; gap: .45rem; margin: 0; padding: .6rem 1rem;
	font-size: 1.45rem; text-shadow: 0 1px 1px rgb(0 0 0 / .7);
	background: radial-gradient(ellipse at 30% 0%, #7a2a10, transparent 70%), linear-gradient(#5b1c0a, #3a0f04);
	box-shadow: inset 0 2px 3px rgb(255 255 255 / .12);
}
.card-title::after { /* Ziernaht */
	content: ""; position: absolute; inset: 5px 5px 7px; border: 1px dashed rgb(230 180 130 / .45); border-radius: 6px; pointer-events: none;
}
.card-body { position: relative; }
.card-body::before { /* Kupferkante */
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
	background: linear-gradient(90deg, transparent, var(--c-primary-light) 20%, #f0b071 50%, var(--c-primary-light) 80%, transparent);
}
.card-title::before {
	content: ""; width: 1em; height: 1em; flex: none; background: var(--c-primary-light);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='5' cy='10' rx='2.3' ry='3'/%3E%3Cellipse cx='9.3' cy='5.5' rx='2.4' ry='3.2'/%3E%3Cellipse cx='14.7' cy='5.5' rx='2.4' ry='3.2'/%3E%3Cellipse cx='19' cy='10' rx='2.3' ry='3'/%3E%3Cpath d='M12 11c-3 0-6.5 4.2-6.5 7.2 0 2 1.6 2.8 3.4 2.8 1.3 0 2-.6 3.1-.6s1.8.6 3.1.6c1.8 0 3.4-.8 3.4-2.8C18.5 15.2 15 11 12 11z'/%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%3Cellipse cx='5' cy='10' rx='2.3' ry='3'/%3E%3Cellipse cx='9.3' cy='5.5' rx='2.4' ry='3.2'/%3E%3Cellipse cx='14.7' cy='5.5' rx='2.4' ry='3.2'/%3E%3Cellipse cx='19' cy='10' rx='2.3' ry='3'/%3E%3Cpath d='M12 11c-3 0-6.5 4.2-6.5 7.2 0 2 1.6 2.8 3.4 2.8 1.3 0 2-.6 3.1-.6s1.8.6 3.1.6c1.8 0 3.4-.8 3.4-2.8C18.5 15.2 15 11 12 11z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.card-body { padding: 1.1rem 1rem; font-size: .95rem; }
.card-body > :last-child { margin-bottom: 0; }
.card-body p { hyphens: auto; text-align: left; }

/* Listen */
.rbc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.rbc-list-item { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: .75rem; align-items: start; }
.rbc-list-img img { width: 70px; height: 92px; object-fit: cover; box-shadow: 0 3px 8px rgb(0 0 0 / .4); }
.rbc-list-title { display: block; font-family: var(--f-head); font-size: 1.15rem; color: var(--c-heading); text-decoration: none; line-height: 1.2; margin-bottom: .2rem; }
.rbc-list-title:hover { color: var(--c-accent); }
.rbc-list p { margin: 0; font-size: .9rem; color: var(--c-muted); }
.rbc-list + .btn { margin-top: 1rem; }

/* Ticker */
.rbc-ticker { height: 26rem; overflow: hidden; mask-image: linear-gradient(transparent, #000 8%, #000 92%, transparent); }
.rbc-ticker .rbc-list { padding-bottom: 1.1rem; animation: rbc-ticker var(--rbc-ticker-time, 20s) linear infinite; }
.rbc-ticker:hover .rbc-list, .rbc-ticker:focus-within .rbc-list { animation-play-state: paused; }
@keyframes rbc-ticker { to { transform: translateY(-100%); } }

/* Kacheln */
.rbc-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.rbc-card a { display: block; color: var(--c-heading); text-decoration: none; }
.rbc-card-img { display: block; overflow: hidden; box-shadow: 0 3px 10px rgb(0 0 0 / .4); }
.rbc-card-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .4s; }
.rbc-card a:hover img { transform: scale(1.05); }
.rbc-card-title { display: block; font-family: var(--f-head); font-size: 1.2rem; margin: .5rem 0 .2rem; }
.rbc-card p { font-size: .9rem; color: var(--c-muted); margin: 0; }

/* Beitragsansicht (com_content) */
.component .page-header h1, .component .page-header h2 { margin-bottom: .4em; }
.component .item-page, .component .blog, .component .category-list { background: rgb(0 0 0 / .12); padding: clamp(1rem, 3vw, 2rem); border-radius: var(--radius); }
.component img { height: auto; }
.component .article-info { font-size: .85rem; color: var(--c-muted); display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: 0 0 1rem; }
.component .article-info dt { display: none; }
.component .article-info dd { margin: 0; }
.component table { width: 100%; border-collapse: collapse; }
.component th, .component td { border: 1px solid rgb(255 255 255 / .12); padding: .45rem .6rem; text-align: left; }
.item-image, .item-image img { margin-bottom: 1rem; }
.float-start { float: left; margin: 0 1.25rem 1rem 0; max-width: 45%; }
.float-end { float: right; margin: 0 0 1rem 1.25rem; max-width: 45%; }
@media (max-width: 575.98px) { .float-start, .float-end { float: none; max-width: 100%; margin: 0 0 1rem; } }
.clearfix::after, .item-page::after { content: ""; display: table; clear: both; }
.pagination { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; padding: 0; }
.pagination .page-link { display: block; padding: .35rem .7rem; background: var(--c-card); color: var(--c-text); text-decoration: none; border-radius: var(--radius); }
.pagination .active .page-link { background: var(--c-primary); color: #fff; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; padding: 0; margin: 0; font-size: .85rem; }
.breadcrumb-item + .breadcrumb-item::before { content: "›"; margin-right: .3rem; color: var(--c-muted); }
.alert { padding: .8rem 1rem; border-radius: var(--radius); background: var(--c-card); border-left: 4px solid var(--c-primary); }
.alert-danger, .alert-error { border-left-color: #dc3545; }
.alert-success { border-left-color: #3c9d5d; }
iframe, video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }

/* ---------- Fußbereich ---------- */
.site-footer { background: var(--c-footer) radial-gradient(ellipse at 50% 40%, rgb(255 255 255 / .07), transparent 60%); border-top: 2px solid #1c1304; }
.footer-inner { padding-block: 2.5rem 2rem; }
.footer-title { font-size: 1.8rem; }
.footer-title .accent { color: var(--c-primary-light); }
.nl-form { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 34rem; }
.nl-form input[type="email"] { flex: 1 1 14rem; }
.nl-consent { flex-basis: 100%; display: flex; gap: .5rem; align-items: flex-start; font-size: .85rem; color: var(--c-muted); }
.nl-consent input { margin-top: .25rem; }
.social { list-style: none; display: flex; gap: .6rem; padding: 0; margin: 1.5rem 0 0; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / .12); color: var(--c-text); transition: background .2s; }
.social a:hover { background: var(--c-primary); color: #fff; }
.social svg { width: 18px; fill: currentColor; }
.footer-bottom { background: var(--c-header); padding-block: 1rem; font-size: .85rem; color: var(--c-muted); }
.footer-bottom p { margin: 0; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }

.back-top {
	position: fixed; right: 1rem; bottom: 1rem; z-index: 40; width: 44px; height: 44px; display: grid; place-items: center;
	background: var(--c-header); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transition: .25s;
}
.back-top.is-visible { opacity: 1; visibility: visible; }
.back-top svg { width: 22px; }
.back-top:hover { background: var(--c-primary); color: #fff; }

/* Bewegung reduzieren: keine Animationen */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.rbc-slide-caption > * { opacity: 1; transform: none; }
	.rbc-ticker { height: auto; mask-image: none; }
	.rbc-ticker .rbc-list[aria-hidden] { display: none; }
}

@media print {
	.site-header, .hero, .sidebar, .site-footer, .back-top { display: none; }
	body { background: #fff; color: #000; }
	h1, h2, h3 { color: #000; }
}

/* Beitragsbilder in Blog-/Kategorieansicht begrenzen */
.component .item-image { max-width: 260px; margin: 0 1.25rem 1rem 0; float: left; }
.component .item-image img { box-shadow: var(--shadow); }
.component .item-page .item-image { max-width: 360px; }
.component .blog-item, .component .items-row > div { overflow: hidden; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgb(255 255 255 / .08); }
.component .blog-item h2 a, .component .page-header a { color: var(--c-heading); text-decoration: none; }
@media (max-width: 575.98px) { .component .item-image { float: none; margin: 0 auto 1rem; } }

/* ---------- Galerie pro Hund ---------- */
.rbc-gallery-wrap { clear: both; padding-top: 1rem; }
.gal-title { display: flex; flex-wrap: wrap; gap: .6rem; align-items: baseline; margin: 1rem 0 0; font-size: 1.6rem; }
.gal-title small { font: 400 .9rem var(--f-body); color: var(--c-muted); }
.rbc-gallery { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); }
.rbc-gallery figure { margin: 0; }
.rbc-gallery button { display: block; position: relative; width: 100%; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: var(--c-card-2); box-shadow: 0 4px 12px rgb(0 0 0 / .45); }
.rbc-gallery img, .rbc-gallery video { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .35s; pointer-events: none; }
.rbc-gallery button:hover img, .rbc-gallery button:hover video { transform: scale(1.06); }
.rbc-gallery .is-video { cursor: pointer; }
.rbc-gallery .is-video::after {
	content: ""; position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%;
	border: 2px solid rgb(255 255 255 / .85);
	background: rgb(0 0 0 / .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='white'/%3E%3C/svg%3E") center / 26px no-repeat;
}
.rbc-gallery .dur { position: absolute; right: 6px; bottom: 6px; background: rgb(0 0 0 / .65); color: #fff; font-size: .75rem; padding: 1px 6px; border-radius: 4px; }
.rbc-gallery figcaption { font-size: .8rem; color: var(--c-muted); margin-top: .3rem; line-height: 1.3; }

.rbc-lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(10 6 2 / .95); color: #fff; overflow: hidden; }
.rbc-lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.rbc-lightbox::backdrop { background: rgb(0 0 0 / .6); }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; font-size: .95rem; }
.lb-x, .lb-nav { display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; cursor: pointer; font: 1.6rem/1 var(--f-body); }
.lb-x { width: 42px; height: 42px; }
.lb-x:hover, .lb-nav:hover { background: var(--c-primary); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 4.5rem; }
.lb-media { display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; }
.lb-media img, .lb-media video { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; border-radius: 4px; box-shadow: 0 10px 40px #000; }
.lb-media video { aspect-ratio: auto; background: #000; }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-cap { text-align: center; padding: .6rem 1rem 1rem; margin: 0; min-height: 2.6rem; color: var(--c-text); }
@media (max-width: 575.98px) {
	.lb-stage { padding: 0 .5rem; }
	.lb-nav { top: auto; bottom: -3.2rem; translate: none; width: 44px; height: 44px; }
	.lb-prev { left: 1rem; } .lb-next { right: 1rem; }
	.lb-cap { padding-inline: 4rem; }
}

/* Beitrag (z. B. ein Hund) im Modulkasten */
.card-article .card-title { font-size: 1.9rem; }
.card-article .card-body { padding: clamp(1rem, 2.5vw, 1.75rem); font-size: 1rem; }
.card-article .item-page { background: none; padding: 0; }
.card-article .page-header { display: none; } /* Titel steht bereits im Kastenkopf */
.card-article .rbc-gallery-wrap { border-top: 1px solid rgb(255 255 255 / .1); margin-top: 1.5rem; }

/* Leerer Meldungs-Container soll keinen Abstand erzeugen */
#system-message-container:not(:has(*)) { display: none; }

/* Hundeseite: keine Blätter-Navigation zum nächsten Beitrag */
.card-article .pagenavigation, .card-article .pager { display: none; }
