/* Bornhauser Blog — simple, theme-matching blog styles */

.bhblog,
.bhpost {
	box-sizing: border-box;
	padding-bottom: 80px;
	font-family: "MuseoSansRounded300", sans-serif;
	color: #001e62;
}

.bhblog *,
.bhpost * {
	box-sizing: border-box;
}

.bhblog {
	padding-top: 100px;
}

@media (min-width: 961px) and (max-width: 1280px) {
	.bhblog {
		padding-top: 130px;
	}
}

@media (min-width: 1281px) {
	.bhblog {
		padding-top: 160px;
	}
}

.bhblog__container,
.bhpost__container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 5%;
}

/* Headings */

.bhblog__title {
	font-family: "MuseoSansRounded700", sans-serif;
	font-weight: 400;
	color: #001e62;
	line-height: 1.1;
	letter-spacing: 0;
	margin: 0 0 10px 0;
	font-size: 30px;
}

@media (min-width: 961px) {
	.bhblog__title {
		font-size: 40px;
	}
}

@media (min-width: 1281px) {
	.bhblog__title {
		font-size: 50px;
	}
}

.bhblog__subtitle {
	font-family: "MuseoSansRounded300", sans-serif;
	font-weight: 300;
	color: #001e62;
	font-size: 16px;
	line-height: 1.5;
	margin: 0;
}

@media (min-width: 961px) {
	.bhblog__subtitle {
		font-size: 18px;
	}
}

.bhblog__header {
	margin-bottom: 40px;
}

/* Search bar */

.bhblog__search-wrap {
	margin-bottom: 40px;
}

.bhblog__search {
	display: flex;
	align-items: stretch;
	max-width: 540px;
	border: 1.5px solid #c8d4e8;
	border-radius: 5px;
	overflow: hidden;
	transition: border-color 200ms ease;
}

.bhblog__search:focus-within {
	border-color: #001e62;
}

.bhblog__search-input {
	flex: 1 1 0;
	border: none;
	outline: none;
	padding: 12px 16px;
	font-family: "MuseoSansRounded300", sans-serif;
	font-size: 16px;
	color: #001e62;
	background: #fff;
	min-width: 0;
}

.bhblog__search-input::placeholder {
	color: #a0b0c8;
}

.bhblog__search-btn {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 18px;
	background-color: #001e62;
	border: none;
	color: #fff;
	cursor: pointer;
	transition: background-color 200ms ease;
}

.bhblog__search-btn:hover {
	background-color: #0a2d80;
}

/* Spinner */

.bhblog__spinner {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}

.bhblog__spinner-ring {
	width: 36px;
	height: 36px;
	border: 3px solid #c8d4e8;
	border-top-color: #001e62;
	border-radius: 50%;
	animation: bh-spin 0.75s linear infinite;
}

@keyframes bh-spin {
	to { transform: rotate(360deg); }
}

/* Loading state */

.bhblog__grid--loading {
	opacity: 0.4;
	pointer-events: none;
	transition: opacity 150ms ease;
}

/* Listing grid */

.bhblog__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px 30px;
}

@media (min-width: 641px) {
	.bhblog__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.bhblog__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.bhblog__card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
}

.bhblog__card-thumb {
	display: block;
	overflow: hidden;
	border-radius: 8px;
	aspect-ratio: 16 / 10;
	background: #f4f4f4;
}

.bhblog__card-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.bhblog__card-thumb:hover img {
	transform: scale(1.04);
}

.bhblog__card-body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding-top: 18px;
}

.bhblog__date {
	font-size: 14px;
	letter-spacing: 0.02em;
	color: #7bafd4;
	margin-bottom: 8px;
}

.bhblog__card-title {
	font-family: "MuseoSansRounded700", sans-serif;
	font-weight: 400;
	font-size: 22px;
	line-height: 1.25;
	margin: 0 0 12px 0;
}

.bhblog__card-title a {
	color: #001e62;
	text-decoration: none;
}

.bhblog__card-title a:hover {
	text-decoration: underline;
}

.bhblog__excerpt {
	font-size: 16px;
	line-height: 1.5;
	color: #001e62;
	margin-bottom: 16px;
	flex-grow: 1;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.bhblog__excerpt p {
	margin: 0;
}

.bhblog__empty {
	font-size: 18px;
}

/*
 * Buttons — matches the site's actual global button preset "laybutton1"
 * (Lay Theme's button manager, used live on the homepage and several
 * content pages, e.g. "Unser Angebot für Unternehmen"), found in the
 * generated CSS: font MuseoSansRounded300/300, color #fff on #001e62,
 * border-radius 5px (a soft rounded rectangle, NOT a pill), padding
 * 8px/24px, hover inverts to white fill / navy text+border, font-size
 * 16px on mobile/tablet and 20px on desktop, 200ms ease transitions.
 */

.bhblog__readmore,
.bhpost__back {
	display: inline-block;
	align-self: flex-start;
	font-family: "MuseoSansRounded300", sans-serif;
	font-weight: 300;
	letter-spacing: 0.01em;
	background-color: #001e62;
	border: 1px solid #001e62;
	color: #fff;
	text-decoration: none;
	border-radius: 5px;
	padding: 8px 24px;
	font-size: 16px;
	cursor: pointer;
	transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, border-width 200ms ease;
}

@media (min-width: 961px) {
	.bhblog__readmore,
	.bhpost__back {
		font-size: 20px;
	}
}

.bhblog__readmore:hover,
.bhpost__back:hover {
	background-color: #fff;
	color: #001e62;
}

.bhpost__back {
	margin-bottom: 30px;
}

/* Pagination — same button language, compact scale for nav controls */

.bhblog__pagination {
	margin-top: 50px;
}

.bhblog__pagination ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.bhblog__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 16px;
	font-family: "MuseoSansRounded300", sans-serif;
	font-weight: 300;
	letter-spacing: 0.01em;
	border-radius: 5px;
	border: 1px solid #001e62;
	background-color: #fff;
	color: #001e62;
	text-decoration: none;
	font-size: 16px;
	transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, border-width 200ms ease;
}

.bhblog__pagination .page-numbers.current {
	background-color: #001e62;
	color: #fff;
}

.bhblog__pagination a.page-numbers:hover {
	background-color: #001e62;
	color: #fff;
}

/* Single post */

.bhpost__hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
	margin-top: 100px;
}

@media (min-width: 961px) and (max-width: 1280px) {
	.bhpost__hero {
		margin-top: 130px;
	}
}

@media (min-width: 1281px) {
	.bhpost__hero {
		margin-top: 140px;
	}
}

.bhpost__hero--image {
	height: 260px;
}

@media (min-width: 641px) {
	.bhpost__hero--image {
		height: 340px;
	}
}

@media (min-width: 1281px) {
	.bhpost__hero--image {
		height: 440px;
	}
}
@media (min-width: 1500px) {
	.bhpost__hero--image {
		height: 560px;
	}
}

.bhpost__hero--plain {
	background-color: #001e62;
	padding: 50px 5%;
}

@media (min-width: 1281px) {
	.bhpost__hero--plain {
		padding: 70px 5%;
	}
}

.bhpost__hero-media {
	position: absolute;
	inset: 0;
}

.bhpost__hero-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.bhpost__hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(rgba(0, 30, 98, 0.55), rgba(0, 30, 98, 0.4));
}

.bhpost__hero-title {
	position: relative;
	z-index: 1;
	color: #fff;
	font-family: "MuseoSansRounded700", sans-serif;
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0;
	margin: 0;
	max-width: 900px;
	padding: 0 5%;
	font-size: 26px;
}

@media (min-width: 641px) {
	.bhpost__hero-title {
		font-size: 34px;
	}
}

@media (min-width: 1281px) {
	.bhpost__hero-title {
		font-size: 44px;
	}
}

.bhpost__container {
	padding-top: 40px;
}

.bhpost__content {
	font-size: 16px;
	line-height: 1.6;
	color: #001e62;
	/* max-width: 760px; */
}

@media (min-width: 961px) {
	.bhpost__content {
		font-size: 18px;
	}
}

.bhpost__content > * {
	margin: 0 0 20px 0;
}

.bhpost__content h2,
.bhpost__content h3,
.bhpost__content h4 {
	font-family: "MuseoSansRounded700", sans-serif;
	font-weight: 400;
	line-height: 1.2;
	margin-top: 36px;
	margin-bottom: 16px;
}

.bhpost__content h2 {
	font-size: 28px;
}

.bhpost__content h3 {
	font-size: 22px;
}

.bhpost__content h4 {
	font-size: 18px;
}

.bhpost__content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.bhpost__content a {
	color: #001e62;
	text-decoration: underline;
}

.bhpost__content ul,
.bhpost__content ol {
	padding-left: 22px;
}

/*
 * The parent theme strips WordPress's classic-editor/core styling
 * sitewide (it builds its own pages with the Lay grid, not the post
 * editor), so this is the baseline support a normal theme would
 * already provide for content typed into the editor: image alignment,
 * captions, galleries, quotes and tables.
 */

.bhpost__content .alignleft {
	float: left;
	margin: 0 24px 16px 0;
}

.bhpost__content .alignright {
	float: right;
	margin: 0 0 16px 24px;
}

.bhpost__content .aligncenter {
	display: block;
	margin: 0 auto 20px;
}

.bhpost__content .alignnone {
	margin: 0 0 20px 0;
}

.bhpost__content .wp-caption {
	max-width: 100%;
	margin-bottom: 20px;
}

.bhpost__content .wp-caption img {
	display: block;
	margin: 0 0 8px 0;
}

.bhpost__content .wp-caption-text,
.bhpost__content .wp-caption .wp-caption-text,
.bhpost__content figcaption {
	font-size: 14px;
	line-height: 1.4;
	color: #7bafd4;
	margin: 0;
}

.bhpost__content blockquote {
	margin: 0 0 20px 0;
	padding: 10px 24px;
	border-left: 3px solid #7bafd4;
	font-style: italic;
}

.bhpost__content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 20px 0;
	font-size: 15px;
}

.bhpost__content table th,
.bhpost__content table td {
	border: 1px solid #e6e6e6;
	padding: 10px 14px;
	text-align: left;
}

.bhpost__content table th {
	font-family: "MuseoSansRounded700", sans-serif;
	font-weight: 400;
	background-color: #f4f4f4;
}

.bhpost__content hr {
	border: none;
	border-top: 1px solid #e6e6e6;
	margin: 30px 0;
}

.bhpost__content .gallery {
	display: grid;
	grid-template-columns: repeat(var(--gallery-columns, 3), 1fr);
	gap: 12px;
	margin: 0 0 20px 0;
	list-style: none;
	padding: 0;
}

.bhpost__content .gallery-item {
	margin: 0;
}

.bhpost__content .gallery-icon img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.bhpost__content .gallery-columns-1 { --gallery-columns: 1; }
.bhpost__content .gallery-columns-2 { --gallery-columns: 2; }
.bhpost__content .gallery-columns-4 { --gallery-columns: 4; }
.bhpost__content .gallery-columns-5 { --gallery-columns: 5; }
.bhpost__content .gallery-columns-6 { --gallery-columns: 6; }
.bhpost__content .gallery-columns-7 { --gallery-columns: 7; }
.bhpost__content .gallery-columns-8 { --gallery-columns: 8; }
.bhpost__content .gallery-columns-9 { --gallery-columns: 9; }

@media (max-width: 640px) {
	.bhpost__content .alignleft,
	.bhpost__content .alignright {
		float: none;
		display: block;
		margin: 0 0 16px 0;
	}

	.bhpost__content .gallery {
		grid-template-columns: repeat(2, 1fr);
	}.bhblog {
		padding-top: 50px;
        padding-bottom: 50px;
	}
}

/*
 * Buttons placed inside the post content (classic-editor "laybutton"
 * links, or block-editor button blocks) inherit the same button
 * language as the rest of the blog instead of plain underlined links.
 */

.bhpost__content .laybutton,
.bhpost__content .wp-block-button__link {
	display: inline-block;
	font-family: "MuseoSansRounded300", sans-serif;
	font-weight: 300;
	letter-spacing: 0.01em;
	background-color: #001e62;
	border: 1px solid #001e62;
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 5px;
	padding: 8px 24px;
	transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, border-width 200ms ease;
}

.bhpost__content .laybutton:hover,
.bhpost__content .wp-block-button__link:hover {
	background-color: #fff;
	color: #001e62 !important;
}

.bhpost__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 50px;
	padding-top: 30px;
	border-top: 1px solid #e6e6e6;
}

.bhpost__nav-item {
	flex: 1 1 240px;
}

.bhpost__nav-next {
	text-align: right;
}

.bhpost__nav a {
	display: block;
	text-decoration: none;
	color: #001e62;
}

.bhpost__nav-label {
	display: block;
	font-size: 13px;
	color: #7bafd4;
	margin-bottom: 4px;
}

.bhpost__nav-title {
	display: block;
	font-family: "MuseoSansRounded700", sans-serif;
	font-size: 16px;
	line-height: 1.3;
}

.bhpost__nav a:hover .bhpost__nav-title {
	text-decoration: underline;
}

@media (max-width: 640px) {
	.bhpost__nav-next {
		text-align: left;
	}
}
