/* =====================================================================
   FAQ-Seite PicVid.ch
   Ergänzt main.css (Spectral). Farben passend zur übrigen Website.
   ===================================================================== */

.faq-wrapper {
	max-width: 52em;
	margin: 0 auto;
}

/* Suche */
.faq-wrapper .search-box {
	display: flex;
	align-items: center;
	gap: 0.75em;
	background: #ffffff;
	border: solid 2px #dfdfdf;
	border-radius: 6px;
	padding: 0.35em 0.9em;
	margin-bottom: 1.25em;
}
.faq-wrapper .search-box:focus-within {
	border-color: #176B87;
}
.faq-wrapper .search-icon {
	font-size: 1.1em;
	line-height: 1;
}
.faq-wrapper .search-box input[type="search"] {
	flex: 1;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #2e3842;
	height: 2.75em;
	padding: 0;
}

/* Leiste mit Anzahl und "Alle öffnen" */
.faq-wrapper .toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1em;
	font-size: 0.9em;
}
.faq-wrapper .result-count {
	color: #595959;
}
.faq-wrapper .toggle-all {
	border-bottom: 0;
	color: #176B87;
	font-weight: 600;
}

/* Fragen */
.faq-list {
	display: flex;
	flex-direction: column;
	gap: 0.6em;
}
.faq-item {
	background: #ffffff;
	border: solid 1px #e3e0d8;
	border-left: solid 4px #e3e0d8;
	border-radius: 6px;
	transition: border-color 0.2s ease;
}
.faq-item:hover,
.faq-item.active {
	border-left-color: #A84D00;
}

/* Spectral-Knopfstil zurücksetzen */
#main .faq-item .faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	width: 100%;
	max-width: none;
	height: auto;
	padding: 1em 1.25em;
	background: transparent;
	box-shadow: none;
	border: 0;
	border-radius: 6px;
	color: #2e3842;
	font-family: inherit;
	font-size: 1em;
	font-weight: 600;
	letter-spacing: normal;
	line-height: 1.45;
	text-align: left;
	text-transform: none;
	white-space: normal;
	cursor: pointer;
}
#main .faq-item .faq-question:hover {
	background: #F7F5F0;
	box-shadow: none;
}
#main .faq-item .faq-question:focus-visible {
	outline: 2px solid #176B87;
	outline-offset: 2px;
}
.faq-item .question-text {
	display: flex;
	align-items: baseline;
	gap: 0.85em;
}
.faq-item .question-number {
	color: #A84D00;
	font-size: 0.8em;
	font-weight: 800;
	min-width: 1.6em;
}
.faq-item .faq-icon {
	flex-shrink: 0;
	color: #176B87;
	font-size: 1.4em;
	font-weight: 400;
	line-height: 1;
	transition: transform 0.25s ease;
}
.faq-item.active .faq-icon {
	transform: rotate(45deg);
}

/* Antworten */
.faq-item .faq-answer {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s ease;
}
.faq-item.active .faq-answer {
	grid-template-rows: 1fr;
}
.faq-item .faq-answer-inner {
	overflow: hidden;
}
.faq-item .faq-answer p {
	margin: 0;
	padding: 0 1.25em 1.1em 3.6em;
	color: #3F3F3F;
}

/* Keine Treffer */
.no-results {
	display: none;
	text-align: center;
	padding: 2em 0 1em 0;
}
.no-results h3 {
	color: #2e3842;
}

@media screen and (max-width: 736px) {
	#main .faq-item .faq-question {
		padding: 0.9em 1em;
	}
	.faq-item .faq-answer p {
		padding: 0 1em 1em 1em;
	}
}
