/* Blog-Suche – fotografie-reichl.at
   Bewusst zurueckhaltend, neutral, an helle Kadence-Themes angelehnt.
   Nutzt currentColor/Theme-Schrift, damit es sich einfuegt. */

.blogsuche {
	position: relative;
	max-width: 560px;
	margin: 2.5rem auto;
	font-family: inherit;
}

.blogsuche__heading {
	margin: 0 0 .5rem;
	font-size: .95rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: .7;
}

.blogsuche__form {
	position: relative;
	display: flex;
	align-items: center;
}

.blogsuche__sr {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

.blogsuche__input {
	width: 100%;
	box-sizing: border-box;
	padding: .85rem 3rem .85rem 1.1rem;
	font-size: 1rem;
	line-height: 1.4;
	color: inherit;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .18);
	border-radius: 6px;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.blogsuche__input:focus {
	outline: none;
	border-color: rgba(0, 0, 0, .55);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

.blogsuche__submit {
	position: absolute;
	right: .35rem; top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center; justify-content: center;
	width: 2.4rem; height: 2.4rem;
	padding: 0; margin: 0;
	color: inherit;
	background: transparent;
	border: 0; border-radius: 6px;
	cursor: pointer;
	opacity: .65;
	transition: opacity .15s ease;
}
.blogsuche__submit:hover { opacity: 1; }

/* Dropdown-Panel */
.blogsuche__panel {
	position: absolute;
	z-index: 50;
	left: 0; right: 0; top: calc(100% + 6px);
	max-height: 70vh;
	overflow-y: auto;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 8px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
	padding: .35rem;
}
.blogsuche__panel[hidden] { display: none; }

.blogsuche__item {
	display: flex;
	gap: .7rem;
	align-items: flex-start;
	padding: .6rem .65rem;
	border-radius: 6px;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}
.blogsuche__item:hover,
.blogsuche__item.is-active {
	background: rgba(0, 0, 0, .05);
}

.blogsuche__thumb {
	flex: 0 0 auto;
	width: 52px; height: 52px;
	object-fit: cover;
	border-radius: 5px;
	background: rgba(0, 0, 0, .06);
}

.blogsuche__body { min-width: 0; }

.blogsuche__title {
	display: block;
	font-weight: 600;
	font-size: .98rem;
	line-height: 1.25;
	margin: 0 0 .15rem;
}

.blogsuche__meta {
	font-size: .78rem;
	opacity: .6;
	margin: 0 0 .2rem;
}

.blogsuche__excerpt {
	font-size: .85rem;
	line-height: 1.4;
	opacity: .8;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.blogsuche__excerpt mark,
.blogsuche__title mark {
	background: rgba(255, 214, 0, .35);
	color: inherit;
	padding: 0 .05em;
}

.blogsuche__footer,
.blogsuche__empty {
	padding: .6rem .7rem;
	font-size: .9rem;
}
.blogsuche__footer {
	border-top: 1px solid rgba(0, 0, 0, .08);
	margin-top: .25rem;
}
.blogsuche__all {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	text-decoration: none;
	font-weight: 600;
	color: inherit;
}
.blogsuche__all:hover { text-decoration: underline; }

.blogsuche__empty { opacity: .75; }
.blogsuche__dym { margin-top: .35rem; }
.blogsuche__dym a { font-weight: 600; }

.blogsuche__loading {
	padding: .8rem .7rem;
	font-size: .9rem;
	opacity: .6;
}

/* "Meinten Sie?" auf der Ergebnisseite */
.blogsuche-dym-results {
	max-width: 1080px;
	margin: 0 auto 1.5rem;
	padding: .9rem 1.1rem;
	background: rgba(0, 0, 0, .04);
	border-radius: 8px;
	font-size: 1rem;
}
.blogsuche-dym-results a { font-weight: 700; }

@media (prefers-color-scheme: dark) {
	.blogsuche__input,
	.blogsuche__panel { background: #1e1e1e; border-color: rgba(255, 255, 255, .18); }
	.blogsuche__item:hover,
	.blogsuche__item.is-active { background: rgba(255, 255, 255, .08); }
}
