/*
Theme Name: Simply Read PH
Description: Modernisiertes Erscheinungsbild für den Passivhausblog (Aufbau wie Elozucht, Farben des Passivhausblogs) – Child-Theme von Simply Read. Inhalte, Beiträge und Bilder bleiben unverändert.
Template: simply-read
Version: 1.0.0
Text Domain: simply-read-ph
*/

/* ---------- Grundwerte: Lindgrün + Anthrazit wie bisher ---------- */
:root {
	--srm-bg: #97DB43;
	--srm-lime: #97DB43;
	--srm-lime-soft: #EEF8E2;
	--srm-surface: #FFFFFF;
	--srm-soft: #EEF4E6;
	--srm-line: #DCE5D0;
	--srm-text: #282828;
	--srm-text-2: #3B3D38;
	--srm-muted: #5C6057;
	--srm-accent: #3F7D14;
	--srm-accent-dark: #2F5F0E;
	--srm-dark: #282828;
	--srm-radius: 20px;
	--srm-shadow: 0 1px 2px rgba(20, 40, 10, .08), 0 10px 28px rgba(20, 40, 10, .10);
	--srm-font: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--srm-display: 'Bricolage Grotesque', 'Nunito Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body,
body.custom-background {
	background: var(--srm-bg) !important;
	color: var(--srm-text);
	font-family: var(--srm-font);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

#container { background: transparent; }

a { color: var(--srm-accent-dark); text-decoration: underline; text-underline-offset: 3px; }
a:hover, a:focus { color: #5A3D0F; }
:focus-visible { outline: 3px solid var(--srm-accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3 {
	font-family: var(--srm-display);
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--srm-text);
}

img { max-width: 100%; height: auto; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.srm-skip {
	position: absolute; left: 12px; top: -60px; z-index: 10000;
	background: var(--srm-text); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.srm-skip:focus { top: 12px; color: #fff; }

.srm-wrap,
#inner-content.wrap,
#inner-footer.wrap {
	width: 100%;
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

.srm-btn {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--srm-accent); color: #fff !important;
	font-family: var(--srm-font); font-weight: 700; font-size: 16px; line-height: 1.2;
	padding: 13px 24px; border: 0; border-radius: 999px;
	text-decoration: none; cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}
.srm-btn:hover, .srm-btn:focus { background: var(--srm-accent-dark); color: #fff; }

/* ---------- Header ---------- */
.srm-header {
	position: sticky; top: 0; z-index: 999;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid #ECE6D8;
}
.admin-bar .srm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .srm-header { top: 0; position: relative; } }

.srm-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 14px 32px; padding-top: 14px; padding-bottom: 14px;
}
.srm-logo { display: block; line-height: 0; flex: 0 1 auto; min-width: 0; }
.srm-logo img { height: 80px; width: auto; max-width: 100%; }

/* Beim Scrollen schrumpft der Header zu einer schmalen Leiste */
.srm-header { transition: box-shadow .3s ease; }
.srm-header__inner { transition: padding .3s ease; }
.srm-logo img { transition: height .3s ease, max-width .3s ease; }
.srm-header.is-scrolled { box-shadow: 0 4px 18px rgba(40, 32, 16, .08); }
.srm-header.is-scrolled .srm-header__inner { padding-top: 6px; padding-bottom: 6px; }
.srm-header.is-scrolled .srm-logo img { height: 46px; }
@media (prefers-reduced-motion: reduce) {
	.srm-header, .srm-header__inner, .srm-logo img { transition: none; }
}

.srm-nav { display: flex; align-items: center; gap: 8px; }
.srm-nav nav { display: block; }

.srm-menu, .srm-menu ul { list-style: none; margin: 0; padding: 0; }
.srm-menu li:before { content: none !important; }
.srm-menu { display: flex; align-items: center; gap: 4px; }
.srm-menu > li { position: relative; }
.srm-menu > li > a {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 14px; border-radius: 999px;
	color: var(--srm-text); font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
	transition: background .15s ease;
}
.srm-menu > li > a:hover,
.srm-menu > li.is-open > a,
.srm-menu > li > a:focus-visible { background: var(--srm-soft); color: var(--srm-text); }
.srm-menu > .current-menu-item > a,
.srm-menu > .current-menu-ancestor > a { color: var(--srm-accent-dark); }
.srm-menu .srm-ico { transition: transform .2s ease; }
.srm-menu > li.is-open .srm-ico { transform: rotate(180deg); }

.srm-menu .sub-menu {
	position: absolute; left: 0; top: calc(100% + 8px);
	min-width: 260px; padding: 8px;
	background: var(--srm-surface); border-radius: 16px;
	box-shadow: 0 12px 40px rgba(40, 32, 16, .16);
	opacity: 0; visibility: hidden; transform: translateY(-14px) scale(.96); transform-origin: top left;
	transition: opacity .55s ease, transform .65s cubic-bezier(.16, 1, .3, 1), visibility .65s;
}
/* Menüpunkte gleiten nacheinander herein */
.srm-menu .sub-menu > li { opacity: 0; transform: translateY(-8px); transition: opacity .5s ease, transform .6s cubic-bezier(.16, 1, .3, 1); }
.srm-menu > li.is-open > .sub-menu > li,
.srm-menu > li:focus-within > .sub-menu > li { opacity: 1; transform: none; }
.srm-menu .sub-menu > li:nth-child(2) { transition-delay: .07s; }
.srm-menu .sub-menu > li:nth-child(3) { transition-delay: .14s; }
.srm-menu .sub-menu > li:nth-child(4) { transition-delay: .21s; }
.srm-menu .sub-menu > li:nth-child(5) { transition-delay: .28s; }
.srm-menu .sub-menu > li:nth-child(6) { transition-delay: .35s; }
.srm-menu .sub-menu > li:nth-child(n+7) { transition-delay: .42s; }
.srm-menu > li.is-open > .sub-menu,
.srm-menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1200px) {
	.srm-menu > li:hover > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.srm-menu > li:hover > .sub-menu > li { opacity: 1; transform: none; }
	.srm-menu > li:hover .srm-ico { transform: rotate(180deg); }
}
.srm-menu .sub-menu a {
	display: block; padding: 10px 14px; border-radius: 10px;
	color: var(--srm-text); text-decoration: none; font-size: 15.5px; line-height: 1.35;
}
.srm-menu .sub-menu a:hover, .srm-menu .sub-menu a:focus { background: var(--srm-soft); }
.srm-menu .sub-menu .current-menu-item > a { color: var(--srm-accent-dark); font-weight: 700; }

.srm-tools { display: flex; align-items: center; gap: 4px; margin-left: 4px; }
.srm-icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 999px; border: 0;
	background: transparent; color: var(--srm-text); cursor: pointer; text-decoration: none;
}
.srm-icon-btn:hover { background: var(--srm-soft); color: var(--srm-text); }
.srm-icon-btn--filled { background: var(--srm-soft); }
.srm-icon-btn--filled:hover { background: #EBE2CC; }

.srm-burger {
	display: none; align-items: center; gap: 10px;
	height: 44px; padding: 0 16px; border: 0; border-radius: 999px;
	background: var(--srm-soft); color: var(--srm-text);
	font: 700 15px/1 var(--srm-font); cursor: pointer;
}
.srm-burger__bars { display: inline-flex; flex-direction: column; gap: 4px; }
.srm-burger__bars span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.srm-burger[aria-expanded="true"] .srm-burger__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.srm-burger[aria-expanded="true"] .srm-burger__bars span:nth-child(2) { opacity: 0; }
.srm-burger[aria-expanded="true"] .srm-burger__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.srm-search { border-top: 1px solid #ECE6D8; background: var(--srm-surface); }
.srm-search__form { display: flex; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
.srm-search__form input[type="search"] {
	flex: 1 1 auto; min-width: 0; height: 48px; margin: 0;
	padding: 0 18px; border: 1.5px solid var(--srm-line); border-radius: 999px;
	background: var(--srm-bg); font: 400 16px var(--srm-font); color: var(--srm-text);
	box-shadow: none;
}
.srm-search__form input[type="search"]:focus { border-color: var(--srm-accent); outline: none; background: #fff; }

@media (max-width: 1199px) {
	.srm-header__inner { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
	.srm-logo { flex: 1 1 0; }
	.srm-logo img { width: 100%; height: auto; max-width: 480px; }
	.srm-header.is-scrolled .srm-logo img { height: auto; max-width: 280px; }
	.srm-burger { display: inline-flex; }
	.srm-nav {
		display: none; flex: 1 0 100%;
		flex-direction: column; align-items: stretch; gap: 8px;
		padding: 8px 0 6px; border-top: 1px solid #ECE6D8;
	}
	.srm-nav.is-open { display: flex; }
	.srm-menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.srm-menu > li > a { display: flex; justify-content: space-between; border-radius: 12px; padding: 12px 14px; }
	.srm-menu .sub-menu {
		position: static; min-width: 0; box-shadow: none; border-radius: 12px;
		background: var(--srm-bg); padding: 4px; margin: 2px 0 6px;
		opacity: 1; visibility: visible; transform: none; display: none;
	}
	.srm-menu > li.is-open > .sub-menu { display: block; }
	.srm-tools { margin: 4px 0 0; padding-top: 8px; border-top: 1px solid #ECE6D8; }
}
/* Schmale Handys: Menü-Knopf nur als Symbol, damit das Logo mehr Platz hat */
@media (max-width: 480px) {
	.srm-header__inner { gap: 10px; padding-left: 16px; padding-right: 16px; }
	.srm-burger { width: 48px; padding: 0; justify-content: center; }
	.srm-header.is-scrolled .srm-logo img { max-width: 210px; }
	.srm-burger__label {
		position: absolute; width: 1px; height: 1px; overflow: hidden;
		clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
	}
}

/* ---------- Slider ---------- */
.srm-hero { padding-top: 32px; }
.srm-hero__stage {
	position: relative; min-height: 520px; overflow: hidden;
	border-radius: 26px; background: #2A2A22; isolation: isolate;
}
.srm-slide {
	position: absolute; inset: 0; display: flex; align-items: flex-end;
	opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s;
}
.srm-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.srm-slide__img {
	position: absolute; inset: 0; width: 100% !important; height: 100% !important;
	object-fit: cover; object-position: center 40%; z-index: -1;
}
.srm-slide:after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(22, 20, 14, 0) 30%, rgba(22, 20, 14, .82) 100%);
}
.srm-slide__body { max-width: 720px; padding: 40px 44px 104px; color: #fff; }
.srm-slide__body time { font-size: 14px; font-weight: 700; color: #F3DDAE; }
.srm-slide__title { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.02em; margin: 8px 0 12px; color: #fff; }
/* auch bereits besuchte Beiträge: Das Eltern-Theme färbt a:visited schwarz */
.srm-slide__title a, .srm-slide__title a:visited { color: #EEEAE2; text-decoration: none; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.srm-slide__title a:hover, .srm-slide__title a:focus { color: #fff; }
.srm-slide__text { margin: 0 0 22px; font-size: 18px; color: #F2EFE6; }

.srm-hero__nav {
	position: absolute; z-index: 2; left: 44px; bottom: 36px;
	display: flex; align-items: center; gap: 10px;
}
.srm-round {
	width: 46px; height: 46px; border-radius: 999px;
	border: 1.5px solid rgba(255, 255, 255, .65); background: rgba(255, 255, 255, .12);
	color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
	transition: background .15s ease;
}
.srm-round:hover, .srm-round:focus-visible { background: rgba(255, 255, 255, .28); }
.srm-dots { display: flex; align-items: center; padding: 0 4px; }
.srm-dot {
	position: relative; width: 22px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
}
.srm-dot:before {
	content: ""; position: absolute; left: 8px; top: 19px; width: 6px; height: 6px;
	border-radius: 3px; background: rgba(255, 255, 255, .55); transition: width .25s ease, left .25s ease;
}
.srm-dot.is-active { width: 34px; }
.srm-dot.is-active:before { width: 22px; left: 6px; background: #fff; }

@media (max-width: 700px) {
	.srm-hero { padding-top: 16px; padding-left: 12px; padding-right: 12px; }
	.srm-hero__stage { min-height: 460px; border-radius: 20px; }
	.srm-slide__body { padding: 24px 22px 92px; }
	.srm-slide__text { font-size: 16px; }
	.srm-hero__nav { left: 22px; bottom: 24px; }
}

/* ---------- Beitragsliste ---------- */
.srm-posts { padding-top: 72px; padding-bottom: 80px; }
.srm-section-head { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; }
.srm-h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.1; margin: 0; }
.srm-line { flex: 1 1 auto; height: 1px; background: var(--srm-line); }

.srm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
@media (max-width: 360px) { .srm-grid { grid-template-columns: 1fr; } }

.srm-card {
	background: var(--srm-surface); border-radius: var(--srm-radius); overflow: hidden;
	box-shadow: var(--srm-shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.srm-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(40, 32, 16, .06), 0 16px 36px rgba(40, 32, 16, .1); }
@media (prefers-reduced-motion: reduce) { .srm-card, .srm-card:hover { transform: none; transition: none; } }
.srm-card__link { display: flex; flex-direction: column; height: 100%; color: var(--srm-text); text-decoration: none; }
.srm-card__link:hover, .srm-card__link:focus { color: var(--srm-text); }
.srm-card__img { display: block; width: 100%; height: 210px !important; object-fit: cover; }
.srm-card__img--empty { background: var(--srm-soft); }
.srm-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; padding: 22px 24px 26px; }
.srm-card__body time { font-size: 14px; font-weight: 700; color: var(--srm-muted); }
.srm-card__title { font-size: 23px; line-height: 1.2; margin: 0; }
.srm-card__body p { margin: 0; font-size: 16px; color: var(--srm-text-2); }
.srm-more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--srm-accent-dark); }

.srm-pager { display: flex; justify-content: center; gap: 12px; margin-top: 44px; }
.srm-pager a {
	border: 1.5px solid #CFC5B0; background: var(--srm-surface); color: var(--srm-text);
	font-weight: 700; padding: 13px 28px; border-radius: 999px; text-decoration: none;
}
.srm-pager a:hover, .srm-pager a:focus { border-color: var(--srm-accent); color: var(--srm-accent-dark); }

/* ---------- Beiträge & Seiten (Vorlagen des Eltern-Themes) ---------- */
#content { margin-top: 0; }
#content > .article-header {
	background: transparent; padding: 56px 0 8px; margin: 0; border: 0; box-shadow: none;
}
.single-title, .page-title {
	font-size: clamp(32px, 4.2vw, 50px); line-height: 1.1; letter-spacing: -0.02em;
	margin: 0; text-align: left; color: var(--srm-text);
}
#content > #inner-content.wrap { padding-top: 16px; padding-bottom: 72px; }
#main { box-sizing: border-box; }
.hentry { background: transparent; }
body .byline { color: var(--srm-muted); font-size: 15px; margin: 4px 0 24px; }
body .byline a { color: var(--srm-muted); }
.entry-content { font-size: 17.5px; line-height: 1.75; color: var(--srm-text); }
.entry-content h2 { font-size: 30px; margin: 1.6em 0 .5em; }
.entry-content h3 { font-size: 24px; margin: 1.4em 0 .4em; }
.entry-content img { border-radius: 14px; }
.entry-content ul li:before,
.comment_content ul li:before { font-family: var(--srm-font); color: var(--srm-accent); }
.entry-content ol > li:before,
.comment_content ol > li:before { font-family: var(--srm-font); }
.entry-content blockquote { border-left: 0; background: var(--srm-soft); border-radius: 14px; padding: 18px 22px; margin: 1.5em 0; }

.next-prev-post { border-color: var(--srm-line) !important; }
.next-prev-post p { font-family: var(--srm-font) !important; font-size: 13px !important; letter-spacing: .08em; color: var(--srm-muted); }
.next-prev-post a { font-family: var(--srm-display); font-weight: 700; text-decoration: none; color: var(--srm-text); }
body .related { border-color: var(--srm-line); }
body .related h3, body #comments-title { font-family: var(--srm-display); }
body .related ul li a { color: var(--srm-text); font-weight: 600; }
body .related ul li a img { border-radius: 12px; margin-bottom: 6px; }
body .hentry footer { border-color: var(--srm-line); }
body .comment-reply-link { background: var(--srm-accent); border-radius: 999px; }

/* Sidebar */
#sidebar1, #sidebar2, .sidebar { font-size: 16px; }
.sidebar .widget, .sidebar .wp-block-group {
	background: var(--srm-surface); border-radius: 16px; padding: 20px 22px; margin-bottom: 20px;
	box-shadow: var(--srm-shadow);
}
.sidebar .widgettitle, .sidebar h2, .sidebar h3 { font-size: 20px; margin-top: 0; }

/* Formulare (z. B. Kontaktformular) */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"],
.wpcf7 input[type="url"], .wpcf7 input[type="number"], .wpcf7 textarea, .wpcf7 select,
.comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond textarea {
	width: 100%; max-width: 100%; box-sizing: border-box;
	border: 1.5px solid var(--srm-line); border-radius: 12px; background: #fff;
	padding: 12px 14px; font: 400 16px var(--srm-font); color: var(--srm-text); box-shadow: none;
}
.wpcf7 input:focus, .wpcf7 textarea:focus, .comment-respond input:focus, .comment-respond textarea:focus { border-color: var(--srm-accent); outline: none; }
.wpcf7 input[type="submit"], .comment-respond input[type="submit"] {
	background: var(--srm-accent); color: #fff; border: 0; border-radius: 999px;
	padding: 13px 28px; font: 700 16px var(--srm-font); cursor: pointer;
}
.wpcf7 input[type="submit"]:hover, .comment-respond input[type="submit"]:hover { background: var(--srm-accent-dark); }

/* Paginierung auf Archivseiten */
body.home .pagination, body.blog .pagination { background: transparent; }
body .pagination li a, body .pagination li span { font-family: var(--srm-display); font-size: 20px; border-radius: 999px; }

/* ---------- Footer ---------- */
.srm-footer { background: var(--srm-dark); color: #D8D3C6; margin-top: 0; }
.srm-footer__inner {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 24px 40px; padding-top: 44px; padding-bottom: 36px;
}
.srm-ezfg {
	display: inline-block; line-height: 0; background: #fff;
	padding: 12px 16px; border-radius: 14px; transition: transform .2s ease;
}
.srm-ezfg:hover { transform: translateY(-2px); }
.srm-ezfg img { height: 52px; width: auto; }
.srm-footer__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-weight: 600; }
.srm-footer__nav a {
	display: inline-flex; align-items: center; gap: 8px;
	color: #F2EEE3; text-decoration: none; padding: 10px 0;
}
.srm-footer__nav a:hover, .srm-footer__nav a:focus { color: #fff; text-decoration: underline; }
.srm-footer__bottom { border-top: 1px solid #44423A; font-size: 14px; color: #B5AF9F; }
.srm-footer__bottom .srm-wrap { padding-top: 18px; padding-bottom: 18px; }
@media (max-width: 600px) {
	.srm-footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Dezente Animationen ---------- */
.srm-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.srm-reveal.is-visible { opacity: 1; transform: none; }

/* Slider: Foto zoomt ganz langsam, Text blendet weich ein */
@keyframes srm-kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes srm-fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.srm-slide.is-active .srm-slide__img { animation: srm-kenburns 9s ease-out forwards; }
.srm-slide.is-active .srm-slide__body > * { animation: srm-fadeup .8s ease both; }
.srm-slide.is-active .srm-slide__body > :nth-child(2) { animation-delay: .1s; }
.srm-slide.is-active .srm-slide__body > :nth-child(3) { animation-delay: .2s; }
.srm-slide.is-active .srm-slide__body > :nth-child(4) { animation-delay: .3s; }

/* Beitragsbilder zoomen beim Darüberfahren leicht */
.srm-card__img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.srm-card:hover .srm-card__img { transform: scale(1.04); }
.srm-btn, .srm-pager a, .srm-ezfg { transition: background .2s ease, transform .2s ease, border-color .2s ease; }
.srm-btn:hover, .srm-pager a:hover { transform: translateY(-1px); }

@media (prefers-reduced-motion: reduce) {
	.srm-reveal { opacity: 1; transform: none; transition: none; }
	.srm-slide.is-active .srm-slide__img, .srm-slide.is-active .srm-slide__body > * { animation: none; }
	.srm-card:hover .srm-card__img, .srm-btn:hover, .srm-pager a:hover { transform: none; }
}

/* ---------- Moderne Beitragsgestaltung (Block-Editor) ---------- */
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2.wp-block-heading {
	font-size: clamp(26px, 3vw, 32px); line-height: 1.2; margin: 1.9em 0 .55em;
	padding-top: .1em;
}
.entry-content h2.wp-block-heading:first-child { margin-top: 0; }
.entry-content h2.wp-block-heading:before {
	content: ""; display: block; width: 44px; height: 4px; border-radius: 2px;
	background: var(--srm-accent); margin-bottom: 14px;
}
.entry-content h3.wp-block-heading { font-size: 22px; line-height: 1.3; margin: 1.6em 0 .4em; }
.entry-content .srm-lead { font-size: 20px; line-height: 1.6; color: var(--srm-text); }

.entry-content .srm-callout {
	background: #FBF1DE; border-radius: 20px; padding: 22px 26px; margin: 1.6em 0;
	text-align: center;
}
.entry-content .srm-callout p { margin: 0; font-family: var(--srm-display); font-size: clamp(20px, 2.4vw, 24px); line-height: 1.35; color: #5E3D0C; }
.entry-content .srm-callout p strong { font-weight: 700; }
.entry-content .srm-callout--closing { background: var(--srm-text); margin-top: 2em; }
.entry-content .srm-callout--closing p { color: #fff; }
.entry-content .srm-callout--closing a, .entry-content .srm-callout--closing a:visited { color: #F2C77B; text-decoration-color: rgba(242, 199, 123, .6); }
.entry-content .srm-callout--closing a:hover, .entry-content .srm-callout--closing a:focus { color: #fff; text-decoration-color: #fff; }
/* Hinweis-Kasten (z. B. „bereits vermittelt“) */
.entry-content .srm-callout--notice { background: #E7F1E4; border-left: 5px solid #4F8A4B; }
.entry-content .srm-callout--notice p { font-family: inherit; font-size: 18px; color: #23402A; }
.entry-content .srm-callout--notice p strong { font-family: var(--srm-display); }
.entry-content .srm-callout--notice a { color: #2F6B2C; font-weight: 700; }
/* Eckdaten-Kasten, Karten nebeneinander, Kontakt-Kasten */
.entry-content .srm-callout--facts p { font-family: inherit; font-size: 17px; font-weight: 600; letter-spacing: .01em; }
.entry-content .srm-cards { gap: 18px; margin: 1.4em 0; align-items: stretch !important; }
.entry-content .srm-cards > .wp-block-column { align-self: stretch !important; }
.entry-content .srm-card { height: 100%; padding: 22px 24px; border-radius: 20px; background: #fff; box-shadow: 0 8px 26px rgba(35, 38, 31, .08); border-top: 4px solid var(--srm-accent); }
.entry-content .srm-card p { margin: 0 0 .6em; }
.entry-content .srm-card p:first-child strong { font-family: var(--srm-display); font-size: 20px; color: var(--srm-accent-dark); }
.entry-content .srm-callout--contact p { font-size: 18px; margin: 0 0 .35em; }
.entry-content .srm-callout--contact p:last-child { margin: .8em 0 0; font-family: var(--srm-display); font-size: 22px; }

.entry-content .srm-split { gap: 28px; margin: 1.6em 0; }
.entry-content .srm-split .wp-block-image { margin: 0; }
.entry-content .srm-split .wp-block-image img { width: 100%; height: auto; border-radius: 20px; }
.entry-content .srm-split p { font-size: 19px; line-height: 1.6; }

.entry-content .wp-block-pullquote.srm-pullquote {
	border: 0; margin: 2em 0; padding: 26px 30px 26px 34px; text-align: left;
	background: #F3F1EA; border-radius: 20px; position: relative;
}
.entry-content .wp-block-pullquote.srm-pullquote:before {
	content: "“"; position: absolute; left: 20px; top: -6px; font-family: var(--srm-display);
	font-size: 90px; line-height: 1; color: var(--srm-accent); opacity: .5;
}
.entry-content .wp-block-pullquote.srm-pullquote blockquote { margin: 0; padding: 0 0 0 26px; border: 0; background: none; }
.entry-content .wp-block-pullquote.srm-pullquote blockquote:before { content: none; }
.entry-content .wp-block-pullquote.srm-pullquote p { font-family: var(--srm-display); font-size: clamp(20px, 2.5vw, 25px); line-height: 1.4; font-weight: 600; margin: 0; color: var(--srm-text); }

.entry-content .wp-block-gallery.srm-gallery { gap: 12px; margin: 1.6em 0; }
.entry-content .wp-block-gallery.srm-gallery .wp-block-image img { border-radius: 16px; }
.entry-content .wp-block-gallery.srm-gallery.columns-2 .wp-block-image { aspect-ratio: 4 / 5; }
.entry-content .wp-block-gallery.srm-gallery.columns-3 .wp-block-image:first-child { flex-basis: 100% !important; aspect-ratio: 16 / 10; }
.entry-content .wp-block-gallery.srm-gallery.columns-3 .wp-block-image:not(:first-child) { aspect-ratio: 1 / 1; }
.entry-content .wp-block-gallery.srm-gallery .wp-block-image img { height: 100% !important; object-fit: cover; }
/* Das Eltern-Theme setzt Bilder auf volle Breite – Rasterbreiten hier festlegen */
.entry-content .wp-block-gallery.srm-gallery > figure.wp-block-image { flex-grow: 0 !important; margin: 0 !important; }
.entry-content .wp-block-gallery.srm-gallery.columns-2 > figure.wp-block-image { width: calc(50% - 6px) !important; flex-basis: calc(50% - 6px) !important; }
.entry-content .wp-block-gallery.srm-gallery.columns-3 > figure.wp-block-image { width: calc(33.333% - 8px) !important; flex-basis: calc(33.333% - 8px) !important; }
.entry-content .wp-block-gallery.srm-gallery.columns-3 > figure.wp-block-image:first-child { width: 100% !important; flex-basis: 100% !important; }
/* Bildunterschriften in Galerien: gut lesbares Glas-Etikett statt blasser Verlauf */
.entry-content .wp-block-gallery.srm-gallery .wp-block-image { position: relative; }
.entry-content .wp-block-gallery.srm-gallery .wp-block-image figcaption { position: absolute; left: 8px; right: auto; bottom: 8px; max-width: calc(100% - 16px); max-height: none; width: auto; margin: 0; padding: 6px 10px; border-radius: 10px; background: rgba(35, 38, 31, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 13.5px; line-height: 1.35; text-align: left; overflow: visible; }
/* Galerie mit Bildunterschrift unter dem Foto (für längere Texte) */
.entry-content .wp-block-gallery.srm-gallery.srm-gallery--below { align-items: flex-start; }
.entry-content .wp-block-gallery.srm-gallery.srm-gallery--below > figure.wp-block-image { aspect-ratio: auto !important; display: block; }
.entry-content .wp-block-gallery.srm-gallery.srm-gallery--below .wp-block-image img { aspect-ratio: auto; height: auto !important; width: 100%; object-fit: contain; }
.entry-content .wp-block-gallery.srm-gallery.srm-gallery--below .wp-block-image figcaption { position: static; max-width: none; padding: 10px 4px 0; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--srm-text); font-size: 15px; line-height: 1.45; }
/* 3er-Raster ohne großes erstes Bild bzw. 2er-Raster mit großem ersten Bild – damit keine Reihe halb leer bleibt */
.entry-content .wp-block-gallery.srm-gallery.srm-gallery--flat.columns-3 > figure.wp-block-image:first-child { width: calc(33.333% - 8px) !important; flex-basis: calc(33.333% - 8px) !important; aspect-ratio: 1 / 1; }
.entry-content .wp-block-gallery.srm-gallery.srm-gallery--hero.columns-2 > figure.wp-block-image:first-child { width: 100% !important; flex-basis: 100% !important; aspect-ratio: 16 / 10; }
.entry-content .wp-block-gallery.srm-gallery.srm-gallery--wide .wp-block-image { aspect-ratio: 4 / 3; }
.entry-content .srm-memory { padding: 18px; border-radius: 22px; background: var(--srm-bg-soft, #F4EEE4); }
.entry-content .srm-memory .wp-block-image img { filter: saturate(.75); }
.entry-content .srm-memory figcaption { margin-top: 8px; font-size: 14px; text-align: center; opacity: .75; }
@media (max-width: 600px) {
	.entry-content .srm-lead, .entry-content .srm-split p { font-size: 18px; }
	.entry-content .srm-callout { padding: 18px 20px; }
	.entry-content .wp-block-gallery.srm-gallery { gap: 8px; }
	.entry-content .wp-block-gallery.srm-gallery.columns-3 > figure.wp-block-image { width: calc(33.333% - 6px) !important; flex-basis: calc(33.333% - 6px) !important; }
	.entry-content .wp-block-gallery.srm-gallery.columns-2 > figure.wp-block-image { width: calc(50% - 4px) !important; flex-basis: calc(50% - 4px) !important; }
}

/* Archiv als kompaktes Auswahlfeld */
.srm-archive__title { font-family: var(--srm-display); font-size: 20px !important; margin: 0 0 10px !important; }
.srm-archive select, .wp-block-archives-dropdown select {
	width: 100%; min-height: 46px; box-sizing: border-box; margin: 0;
	padding: 10px 40px 10px 14px; border: 1.5px solid var(--srm-line); border-radius: 12px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2323261F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
	-webkit-appearance: none; appearance: none;
	font: 600 16px var(--srm-font); color: var(--srm-text); cursor: pointer;
}
.srm-archive select:focus { border-color: var(--srm-accent); outline: none; }
.sidebar .wp-block-jetpack-slideshow { border-radius: 16px; overflow: hidden; }
.sidebar .widget:empty, .sidebar .widget:not(:has(*)) { display: none; }

/* Alter „Nach oben“-Button passend einfärben */
.smooth-back-to-top-button { z-index: 998; }

/* Footer-Links: auch bereits besuchte Links hell (das Eltern-Theme färbt a:visited schwarz) */
.srm-footer a, .srm-footer a:visited { color: #F2EEE3; }
.srm-footer a:hover, .srm-footer a:focus { color: #F2C77B; }

/* „Nach oben“-Knopf (Plugin Smooth Back To Top): Akzentfarbe, weißer Pfeil, heller Fortschrittsring */
.smooth-back-to-top-button { background: var(--srm-accent) !important; box-shadow: 0 6px 18px rgba(35, 38, 31, .28), inset 0 0 0 2px rgba(255, 255, 255, .3) !important; }
.smooth-back-to-top-button:hover, .smooth-back-to-top-button:focus-visible { background: var(--srm-accent-dark) !important; }
.smooth-back-to-top-button::after { color: #fff !important; }
.smooth-back-to-top-button svg.progress-circle path { stroke: #fff !important; stroke-width: 4 !important; }

/* Schlagwörter: Das Eltern-Theme trennt sie nur mit „,“ ohne Leerzeichen → eine lange, unteilbare Zeile,
   die am Handy seitliches Verschieben verursacht. Als umbrechende Kärtchen darstellen. */
.tag-links { overflow-wrap: anywhere; line-height: 2.1; }
.tag-links a, .tag-links a:visited { display: inline-block; margin: 0 2px 0 4px; padding: 0 10px; border-radius: 999px; background: #EFE8DA; color: var(--srm-accent-dark); line-height: 1.9; text-decoration: none; font-size: .92em; }
.tag-links a:hover, .tag-links a:focus { background: var(--srm-accent); color: #fff; }

/* Sicherheitsnetz: Seiten lassen sich nie seitlich verschieben (clip statt hidden, damit „sticky“ weiter funktioniert) */
html, body { overflow-x: clip; }

/* Rassen-Galerie: gleich hohe Fotos, Name + Bildnachweis darunter */
.entry-content .wp-block-gallery.srm-gallery.srm-gallery--breeds .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; }
.entry-content .srm-gallery--breeds figcaption strong { display: block; font-family: var(--srm-display); font-size: 17px; }
.entry-content .srm-gallery--breeds figcaption small { font-size: 11.5px; opacity: .7; }
.entry-content .srm-gallery--breeds figcaption a { color: inherit; }

/* Zahlen-Kacheln */
.entry-content .srm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 1.2em 0; }
.entry-content .srm-stats > div { background: #fff; border-radius: 18px; padding: 18px 16px; text-align: center; box-shadow: 0 8px 22px rgba(35, 38, 31, .07); border-top: 4px solid var(--srm-accent); }
.entry-content .srm-stats strong { display: block; font-family: var(--srm-display); font-size: clamp(26px, 4vw, 36px); color: var(--srm-accent-dark); line-height: 1.1; }
.entry-content .srm-stats span { display: block; margin-top: 6px; font-size: 14px; color: var(--srm-muted, #6b6a62); }
@media (max-width: 600px) { .entry-content .srm-stats { grid-template-columns: 1fr; } }
.entry-content .srm-source { font-size: 14px; opacity: .75; }
.entry-content .srm-gallery--breeds img.wp-image-2504 { object-position: 70% 12%; } /* Eurasier: Kopf oben rechts im Bild */

/* Checkliste mit Häkchen (z. B. „Das bekommt euer Welpe mit“) */
.entry-content ul.srm-checklist { list-style: none; margin: .6em 0 0; padding: 0; }
.entry-content ul.srm-checklist li { position: relative; padding: 6px 0 6px 34px; border-bottom: 1px dashed #E2DACA; }
.entry-content ul.srm-checklist li:last-child { border-bottom: 0; }
.entry-content ul.srm-checklist li::before { content: "" !important; position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: #2F8F55 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Roll-Buttons: Schrift rollt beim Darüberfahren weg und hell wieder herein, Pfeil-Kreis schnellt nach rechts */
.srm-roll-btn { display: inline-flex !important; align-items: center; gap: 14px; overflow: hidden; }
.srm-roll-btn.has-ico { padding-right: 6px !important; }
.srm-roll { position: relative; display: block; overflow: hidden; line-height: 1.25; }
.srm-roll__ghost { display: block; visibility: hidden; white-space: nowrap; }
.srm-roll__a, .srm-roll__b { position: absolute; inset: 0; display: block; white-space: nowrap; transition: transform .5s cubic-bezier(.65, 0, .35, 1); }
.srm-roll__b { transform: translateY(-150%); color: #FBF4EB; }
.srm-roll-btn:hover .srm-roll__a, .srm-roll-btn:focus-visible .srm-roll__a { transform: translateY(150%); }
.srm-roll-btn:hover .srm-roll__b, .srm-roll-btn:focus-visible .srm-roll__b { transform: none; }
.srm-roll__ico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: #3D2517; color: #FBF4EB; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .25); }
.srm-roll__ico > span { display: inline-flex; }
.srm-roll__ico svg { width: 15px; height: 15px; }
.srm-roll-btn:hover .srm-roll__ico > span, .srm-roll-btn:focus-visible .srm-roll__ico > span { animation: srm-roll-through .6s cubic-bezier(.65, 0, .35, 1); }
/* Pfeil fährt rechts aus dem Kreis und kommt links wieder herein */
@keyframes srm-roll-through { 0% { transform: none; } 48% { transform: translateX(34px); } 49% { transform: translateX(-34px); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.srm-roll__a, .srm-roll__b { transition: none; }
	.srm-roll-btn:hover .srm-roll__ico > span { animation: none; }
}

/* Startseite: Hauptüberschrift über dem Slider (SEO) */
.srm-intro { max-width: 860px; margin-top: clamp(18px, 2.4vw, 28px); margin-bottom: clamp(18px, 2.4vw, 28px); text-align: center; hyphens: manual; -webkit-hyphens: manual; }
.srm-intro__kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--srm-accent); }
.srm-intro__title { font-family: var(--srm-display, inherit); font-size: clamp(30px, 4vw, 46px); line-height: 1.15; margin: 0 0 14px; }
.srm-intro__text { max-width: 640px; margin: 0 auto; font-size: clamp(16px, 1.4vw, 18.5px); line-height: 1.65; color: var(--srm-muted); }

/* FAQ: Fragen zum Aufklappen (core/details mit .srm-faq__item) */
:root { interpolate-size: allow-keywords; }
.entry-content .srm-faq__item {
	margin: 10px 0; padding: 0 22px; border-radius: 16px;
	background: var(--srm-surface, #fff); border: 1px solid var(--srm-line); box-shadow: var(--srm-shadow);
	transition: border-color .25s ease;
}
.entry-content .srm-faq__item[open] { border-color: var(--srm-accent); }
.entry-content .srm-faq__item > summary {
	position: relative; cursor: pointer; list-style: none; padding: 17px 40px 17px 0;
	font-family: var(--srm-display); font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--srm-text);
}
.entry-content .srm-faq__item > summary::-webkit-details-marker { display: none; }
.entry-content .srm-faq__item > summary::after {
	content: ""; position: absolute; right: 2px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
	background: var(--srm-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A5416' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat;
	transition: transform .3s ease;
}
.entry-content .srm-faq__item[open] > summary::after { transform: rotate(45deg); }
.entry-content .srm-faq__item > summary:focus-visible { outline: 3px solid var(--srm-accent); outline-offset: 4px; border-radius: 6px; }
.entry-content .srm-faq__item > :not(summary) { margin-top: 0; }
.entry-content .srm-faq__item > :last-child { margin-bottom: 18px; }
.entry-content .srm-faq__item::details-content { block-size: 0; overflow: hidden; transition: block-size .35s ease, content-visibility .35s allow-discrete; }
.entry-content .srm-faq__item[open]::details-content { block-size: auto; }
@media (max-width: 600px) {
	.entry-content .srm-faq__item { padding: 0 16px; }
	.entry-content .srm-faq__item > summary { font-size: 16.5px; padding: 15px 36px 15px 0; }
}
@media (prefers-reduced-motion: reduce) {
	.entry-content .srm-faq__item::details-content, .entry-content .srm-faq__item > summary::after { transition: none; }
}


/* =====================================================================
 * Passivhausblog: Farben und Eigenheiten
 * ===================================================================== */

/* Header in Lindgrün mit Schriftzug wie bisher */
.srm-header { background: rgba(151, 219, 67, .96); border-bottom: 1px solid rgba(40, 40, 40, .12); }
.srm-header.is-scrolled { box-shadow: 0 4px 18px rgba(20, 40, 10, .18); }
.srm-wordmark, .srm-wordmark:visited {
	font-family: 'Raleway-Regular', var(--srm-font); font-size: clamp(20px, 2.4vw, 30px); line-height: 1.2;
	letter-spacing: .3em; text-transform: uppercase; color: var(--srm-dark); text-decoration: none; white-space: nowrap;
	padding: 12px 0; transition: font-size .3s ease, padding .3s ease;
}
.srm-wordmark:hover, .srm-wordmark:focus { color: #000; }
.srm-header.is-scrolled .srm-wordmark { font-size: clamp(17px, 1.8vw, 22px); padding: 6px 0; }
.srm-menu > li > a:hover, .srm-menu > li.is-open > a, .srm-menu > li > a:focus-visible,
.srm-icon-btn:hover { background: rgba(255, 255, 255, .5); color: var(--srm-dark); }
.srm-menu > .current_page_item > a, .srm-menu > .current-menu-item > a { background: rgba(255, 255, 255, .7); color: var(--srm-dark); }
.srm-menu > li > a, .srm-menu > li > a:visited { color: var(--srm-dark); }
.srm-icon-btn, .srm-icon-btn:visited { color: var(--srm-dark); }
.srm-icon-btn--filled, .srm-burger { background: rgba(255, 255, 255, .6); color: var(--srm-dark); }
.srm-icon-btn--filled:hover { background: #fff; }
.srm-search { background: var(--srm-surface); border-top: 0; }
.srm-search__form input[type="search"] { background: #F6F8F3; }
:focus-visible { outline-color: var(--srm-dark); }
@media (max-width: 1199px) {
	.srm-logo { flex: 1 1 auto; }
	.srm-nav, .srm-tools { border-top-color: rgba(40, 40, 40, .15); }
	.srm-header.is-scrolled .srm-wordmark { font-size: 18px; }
}
@media (max-width: 480px) {
	.srm-wordmark, .srm-wordmark:visited { font-size: 17px; letter-spacing: .22em; }
}

/* Links und Knöpfe */
a { color: var(--srm-accent); }
a:hover, a:focus { color: var(--srm-accent-dark); }
.srm-btn { background: var(--srm-dark); }
.srm-btn:hover, .srm-btn:focus { background: #000; }
.srm-roll__b { color: var(--srm-lime); }
.srm-roll__ico { background: var(--srm-lime); color: var(--srm-dark); box-shadow: none; }

/* Startseite: Kopf direkt auf Grün */
.srm-intro__kicker { color: var(--srm-dark); opacity: .75; }
.srm-intro__text { color: var(--srm-text-2); }
.srm-h2 { color: var(--srm-dark); }
.srm-line { background: rgba(40, 40, 40, .25); }
.srm-slide__body time { color: var(--srm-lime); }
.srm-slide:after { background: linear-gradient(180deg, rgba(20, 24, 16, 0) 30%, rgba(20, 24, 16, .84) 100%); }
.srm-hero__stage { background: #1E2418; }
.srm-card__img--empty { background: var(--srm-lime-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2397DB43' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7v9H3z'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E") center / 64px no-repeat; }
.srm-more { color: var(--srm-accent); }
.srm-pager a { border-color: var(--srm-dark); background: var(--srm-surface); }
.srm-pager a:hover, .srm-pager a:focus { background: var(--srm-dark); color: #fff; border-color: var(--srm-dark); }

/* Beiträge und Seiten: Text auf weißer Fläche, Titel auf Grün */
#content > .article-header { padding: 44px 0 18px; }
.single-title, .page-title, .archive-title { color: var(--srm-dark); }
#content > #inner-content.wrap { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px; padding-bottom: 64px; }
#content > #inner-content.wrap > #main {
	flex: 1 1 560px; min-width: 0; width: auto; float: none; margin: 0;
	background: var(--srm-surface); border-radius: 24px; padding: clamp(22px, 4vw, 44px); box-shadow: var(--srm-shadow);
}
#content > #inner-content.wrap > .sidebar { flex: 0 1 320px; width: auto; float: none; margin: 0; padding: 0; }
#content > #inner-content.wrap > .sidebar:empty { display: none; }
@media (max-width: 900px) {
	#content > #inner-content.wrap > .sidebar { flex: 1 1 100%; }
}
@media (max-width: 600px) {
	#content > #inner-content.wrap { padding-left: 12px; padding-right: 12px; }
	#content > #inner-content.wrap > #main { border-radius: 18px; }
}
.entry-content h2.wp-block-heading:before, .entry-content > h2:before { background: var(--srm-lime); }
.entry-content > h2:before { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; margin-bottom: 12px; }
.entry-content ul li:before { color: var(--srm-accent); }
.entry-content blockquote { background: var(--srm-lime-soft); }
.next-prev-post a, .next-prev-post a:visited { color: var(--srm-dark); }
.tag-links a, .tag-links a:visited { background: var(--srm-lime-soft); color: var(--srm-accent-dark); }
.tag-links a:hover, .tag-links a:focus { background: var(--srm-dark); color: #fff; }
body .comment-reply-link { background: var(--srm-dark); }
.wpcf7 input[type="submit"], .comment-respond input[type="submit"] { background: var(--srm-dark); }
.wpcf7 input[type="submit"]:hover, .comment-respond input[type="submit"]:hover { background: #000; }

/* Seitenleiste: weiße Karten auf Grün */
.sidebar .widget { border: 0; }
.sidebar .widgettitle, .sidebar .widget h4 { font-family: var(--srm-display); font-size: 19px; letter-spacing: 0; text-transform: none; margin: 0 0 12px; color: var(--srm-dark); }
.sidebar .tagcloud a, .sidebar .wp-block-tag-cloud a { display: inline-block; margin: 0 4px 6px 0; padding: 2px 10px; border-radius: 999px; background: var(--srm-lime-soft); color: var(--srm-accent-dark); text-decoration: none; font-size: 14px !important; }
.sidebar .tagcloud a:hover { background: var(--srm-dark); color: #fff; }
.sidebar ul { margin: 0; padding: 0; }
.sidebar ul li { list-style: none; padding: 4px 0; }
.sidebar ul li:before { content: none !important; }
.sidebar .widget_search input[type="search"], .sidebar .widget_search input[type="text"] {
	width: 100%; box-sizing: border-box; height: 46px; border: 1.5px solid var(--srm-line); border-radius: 999px; padding: 0 16px; font: 400 16px var(--srm-font);
}

/* Archiv- und Suchseiten des Eltern-Themes */
body.archive #content, body.search #content { padding-bottom: 40px; }
body .pagination li span { border-color: var(--srm-dark); color: var(--srm-dark); }

/* Footer anthrazit, Schriftzug wie oben */
.srm-footer { background: var(--srm-dark); color: #CFD2CA; }
.srm-wordmark--footer, .srm-wordmark--footer:visited { color: var(--srm-lime) !important; font-size: 22px; padding: 0; }
.srm-footer__brand p { margin: 6px 0 0; max-width: 520px; font-size: 15px; color: #B9BCB3; }
.srm-footer a:hover, .srm-footer a:focus { color: var(--srm-lime); }
.srm-footer__bottom { border-top-color: #3A3A3A; color: #A3A69C; }
.smooth-back-to-top-button { background: var(--srm-dark) !important; }

/* Galerien (NextGEN, wc-gallery, Jetpack): runde Ecken wie im übrigen Design */
.entry-content .ngg-gallery-thumbnail img, .entry-content .gallery img, .entry-content .tiled-gallery img { border-radius: 10px; }

/* Karten bleiben weiß (.hentry ist sonst transparent) */
.srm-card.hentry { background: var(--srm-surface); }
#main .entry-content { padding-top: 0; }
#main .byline { margin-bottom: 18px; }

/* =====================================================================
 * Beiträge: lebendigere Darstellung
 * ===================================================================== */
.srm-post-hero { margin: 0 0 16px; }
.srm-post-hero__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px !important; box-shadow: 0 10px 30px rgba(20, 40, 10, .18); }
.srm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.srm-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--srm-lime-soft); color: var(--srm-accent-dark); font-size: 14px; font-weight: 700; }
.entry-content .srm-lead { font-size: clamp(19px, 1.9vw, 21px); line-height: 1.6; font-weight: 600; color: var(--srm-text); padding-left: 18px; border-left: 4px solid var(--srm-lime); }
.entry-content h2.srm-sub { font-size: clamp(22px, 2.6vw, 27px); line-height: 1.25; margin: 1.7em 0 .5em; }
.entry-content p { margin: 0 0 .9em; }
.entry-content > p > img, .entry-content > p > a > img, .entry-content .wp-caption img { border-radius: 14px; box-shadow: 0 8px 22px rgba(20, 40, 10, .14); }
.entry-content .srm-gallery-label { display: flex; align-items: center; gap: 10px; margin: 2em 0 .7em; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--srm-accent-dark); }
.entry-content .srm-gallery-label:after { content: ""; flex: 1 1 auto; height: 2px; background: var(--srm-lime); border-radius: 2px; }
.entry-content h5 { font-family: var(--srm-display); font-size: 19px; line-height: 1.4; background: var(--srm-lime-soft); border-radius: 14px; padding: 14px 18px; }

/* Galerie-Raster (wc-gallery ohne Masonry) */
.entry-content .wc-gallery .gallery.srm-pgallery { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; height: auto !important; margin: 0 0 1.6em !important; }
.entry-content .srm-pgallery > br { display: none; }
.entry-content .srm-pgallery .gallery-item {
	position: relative !important; left: auto !important; top: auto !important; float: none !important;
	width: auto !important; margin: 0 !important; padding: 0 !important; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 12px; background: var(--srm-lime-soft);
}
.entry-content .srm-pgallery .gallery-item:first-child:not(:last-child) { grid-column: span 2; grid-row: span 2; }
.entry-content .srm-pgallery .gallery-icon, .entry-content .srm-pgallery .gallery-icon a { display: block; height: 100%; }
.entry-content .srm-pgallery .gallery-icon img { width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0 !important; box-shadow: none !important; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.entry-content .srm-pgallery .gallery-item:hover img { transform: scale(1.05); }
.entry-content .srm-pgallery .gallery-caption {
	position: absolute; left: 6px; right: auto; bottom: 6px; max-width: calc(100% - 12px); margin: 0; padding: 5px 9px; border-radius: 9px;
	background: rgba(30, 36, 24, .66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 12.5px; line-height: 1.3; text-align: left;
	opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .25s ease; pointer-events: none;
}
.entry-content .srm-pgallery .gallery-item:hover .gallery-caption { opacity: 1; transform: none; }
@media (max-width: 600px) {
	.entry-content .wc-gallery .gallery.srm-pgallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
	.entry-content .srm-pgallery .gallery-item:first-child:not(:last-child) { grid-row: auto; aspect-ratio: 16 / 10; }
	.entry-content .srm-lead { padding-left: 14px; }
}
@media (prefers-reduced-motion: reduce) { .entry-content .srm-pgallery .gallery-item:hover img { transform: none; } }
.entry-content .srm-pgallery::before, .entry-content .srm-pgallery::after { content: none !important; display: none !important; }

/* =====================================================================
 * Logo: Zeichen (gedämmtes Haus mit PV, Sonne und Wärmerückgewinnung) + Schriftzug
 * ===================================================================== */
.srm-brand, .srm-brand:visited { display: inline-flex; align-items: center; gap: 14px; min-width: 0; color: var(--srm-dark); text-decoration: none; line-height: 1; }
.srm-brand:hover, .srm-brand:focus { color: #000; }
.srm-brand__mark { flex: 0 0 auto; width: 60px; height: 60px; transition: width .3s ease, height .3s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.srm-brand:hover .srm-brand__mark { transform: rotate(-4deg) scale(1.05); }
.srm-brand__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.srm-brand__name { font-family: var(--srm-display); font-size: 30px; font-weight: 800; letter-spacing: -.012em; white-space: nowrap; transition: font-size .3s ease; }
.srm-brand__name span { font-weight: 300; }
.srm-brand__tag { font-size: 11.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; opacity: .72; white-space: nowrap; transition: opacity .3s ease, max-height .3s ease; max-height: 20px; overflow: hidden; }
.srm-header.is-scrolled .srm-brand__mark { width: 42px; height: 42px; }
.srm-header.is-scrolled .srm-brand__name { font-size: 24px; }
.srm-header.is-scrolled .srm-brand__tag { opacity: 0; max-height: 0; }
.srm-header.is-scrolled .srm-brand__text { gap: 0; }
@media (max-width: 1199px) {
	.srm-logo.srm-brand { flex: 1 1 auto; }
}
@media (max-width: 600px) {
	.srm-brand { gap: 10px; }
	.srm-brand__mark { width: 46px; height: 46px; }
	.srm-brand__name { font-size: 23px; }
	.srm-brand__tag { font-size: 9.5px; letter-spacing: .14em; }
	.srm-header.is-scrolled .srm-brand__mark { width: 36px; height: 36px; }
	.srm-header.is-scrolled .srm-brand__name { font-size: 20px; }
}
@media (max-width: 370px) { .srm-brand__tag { display: none; } }
@media (prefers-reduced-motion: reduce) { .srm-brand__mark, .srm-brand__name, .srm-brand__tag { transition: none; } .srm-brand:hover .srm-brand__mark { transform: none; } }

/* Footer: helle Variante auf Anthrazit */
.srm-brand--footer, .srm-brand--footer:visited { --ph-body: #F4F6F1; color: #F4F6F1 !important; gap: 12px; }
.srm-brand--footer .srm-brand__mark { width: 46px; height: 46px; }
.srm-brand--footer .srm-brand__name { font-size: 24px; }
.srm-brand--footer:hover, .srm-brand--footer:focus { color: var(--srm-lime) !important; }
.srm-footer__brand p { margin-top: 12px; }
@media (max-width: 1199px) { .srm-logo.srm-brand { flex: 1 1 0; } }
@media (max-width: 480px) { .srm-brand__tag { display: none; } .srm-brand__name { font-size: 22px; } }
