/* FAQ Accordion Styles */

.faq-search-wrapper {
	margin-top: 2em;
	margin-bottom: 2em;
}

.faq-search-field {
	position: relative;
	display: flex;
	align-items: center;
	max-width: 100%;
}

.faq-search-field input[type="search"] {
	padding-right: 2.5em;
	width: 100%;
}

.faq-search-clear {
	position: absolute;
	right: 0.825rem;
	background: transparent;
	border: none;
	cursor: pointer;
	font-size: 1.5em;
	line-height: 1;
	color: rgba(0, 0, 0, 0.4);
	padding: 0;
	width: 1.5em;
	height: 1.5em;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.3s ease;
	outline: none;
}

.faq-search-clear:hover {
	color: #47D3E5;
}

.faq-search-clear:focus {
	outline: 2px solid rgba(71, 211, 229, 0.5);
	outline-offset: 2px;
	border-radius: 2px;
}

.faq-container {
	margin-top: 2em;
}

.faq-entry.hidden {
	display: none;
}

.faq-entry {
	margin-bottom: 1em;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	overflow: hidden;
	transition: border-color 0.3s ease;
}

.faq-entry:hover {
	border-color: #47D3E5;
}

.faq-question {
	width: 100%;
	padding: 1.25em 1.5em;
	background-color: transparent;
	border: none;
	text-align: left;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1em;
	transition: background-color 0.3s ease, color 0.3s ease;
	font-family: inherit;
	font-size: inherit;
	font-weight: 600;
	color: #000000;
	margin: 0;
	outline: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.faq-question:focus {
	outline: 2px solid rgba(71, 211, 229, 0.5);
	outline-offset: -2px;
}

.faq-question-text {
	flex: 1;
}

.faq-icon {
	font-size: 1.5em;
	font-weight: 300;
	line-height: 1;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
	            color 0.3s ease;
	color: #47D3E5;
	flex-shrink: 0;
	width: 1.2em;
	text-align: center;
}

.faq-entry.active .faq-icon {
	transform: rotate(45deg);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
	            padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
	            padding-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	padding: 0 1.5em;
}

.faq-entry.active .faq-answer {
	max-height: 2000px;
	padding: 0 1.5em 1.5em 1.5em;
	transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
	            padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
	            padding-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-content {
	padding-top: 1em;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1.6;
}

.faq-answer-content p {
	margin-bottom: 1em;
}

.faq-answer-content p:last-child {
	margin-bottom: 0;
}

/* Responsive Anpassungen */
@media screen and (max-width: 736px) {
	.faq-question {
		padding: 1em 1.25em;
		font-size: 0.9em;
	}
	
	.faq-answer {
		padding-left: 1.25em;
		padding-right: 1.25em;
	}
	
	.faq-entry.active .faq-answer {
		padding-left: 1.25em;
		padding-right: 1.25em;
		padding-bottom: 1.25em;
	}
	
	.faq-icon {
		font-size: 1.3em;
	}
}

/* News Styles */

.news-entry {
	display: flex;
	align-items: center;
	gap: 1em;
	margin-bottom: 1em;
	overflow: hidden;
}

.news-date {
	display: block;
	width: 100%;
	text-align: right;
}

.news-entry-content {
	flex: 1;
	min-width: 0;
}

.news-teaser {
	position: relative;
	overflow: hidden;
}

.news-teaser-image {
	flex-shrink: 0;
	max-height: 200px;
	width: auto;
	height: auto;
	border: 1px solid rgba(0, 0, 0, 0.1);
	align-self: flex-start;
	margin-left: 1em;
	object-fit: contain;
	object-position: top;
}

.news-teaser p {
	margin: 0;
}

/* News Reader Styles */

.news-reader {
	margin-bottom: 1em;
	overflow: hidden;
}

.news-reader-body {
	display: flex;
	align-items: flex-start;
	gap: 1em;
	margin-top: 1em;
}

.news-reader-body .news {
	flex: 1;
	min-width: 0;
	margin-top: 0;
	padding-top: 0;
}

.news-reader-image {
	flex-shrink: 0;
	max-height: 400px;
	width: auto;
	height: auto;
	border: 1px solid rgba(0, 0, 0, 0.1);
	margin-left: 1em;
	margin-top: 0;
	vertical-align: top;
}

/* Responsive Anpassungen für News */
@media screen and (max-width: 736px) {
	.news-entry {
		flex-direction: column;
		align-items: stretch;
	}
	
	.news-entry-content {
		order: 1;
	}
	
	.news-teaser-image {
		order: 2;
		margin-top: 0em;
		max-width: 100%;
		display: block;
		margin-left: auto;
		margin-right: auto;
	}
	
	.news-reader-body {
		flex-direction: column;
	}
	
	.news-reader-body .news {
		order: 1;
	}
	
	.news-reader-image {
		order: 2;
		margin-top: 1em;
		max-width: 100%;
		max-height: none;
		display: block;
		margin-left: auto;
		margin-right: auto;
	}
}

/* Testimonials Styles */

.testimonials-container {
	position: relative;
	height: 250px;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background-image: url('/images/testimonial.png');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center center;
}

.testimonial-item {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2em;
	background-color: transparent;
	opacity: 0;
	visibility: hidden;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	height: 250px;
	width: 100%;
	min-width: 400px;
	transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
	box-sizing: border-box;
	background-color: rgba(255, 255, 255, 0.5);
}

.testimonial-item.active {
	opacity: 1;
	visibility: visible;
	position: absolute;
}

.testimonial-text {
	flex: 1;
	font-size: 1.5rem;
	line-height: 1.6;
	color: #000000;
	font-weight: 500;
	padding-top: 0;
	min-width: 0;
	overflow-wrap: break-word;
	word-wrap: break-word;
	text-align: center;
}

/* Responsive Anpassungen für Testimonials */
@media screen and (max-width: 736px) {
	.testimonials-container {
		height: 300px;
		background-size: contain;
		background-position: center center;
	}
	
	.testimonial-item {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		height: 300px;
		width: calc(100% - 2em);
		padding-left: 1em;
		padding-right: 1em;
		max-width: 100%;
	}
	
	.testimonial-text {
		font-size: 1.3rem;
		padding-top: 0;
		max-width: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
	}
}

/* Testimonials Reader Styles */

.testimonials-reader {
	position: relative;
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
	padding: 2em 0;
	min-height: 200px;
}

.testimonial-icon {
	float: left;
	width: 80px;
	height: auto;
	margin: 0 1.5em 0.5em 0;
	border-radius: 4px;
	shape-outside: margin-box;
	max-width: 80px;
}

.testimonials-reader .testimonial-story {
	display: none;
	position: relative;
	overflow: hidden;
}

.testimonials-reader .testimonial-story.active {
	display: block;
}

.testimonial-story .testimonial-text {
	font-size: 1.2rem;
	line-height: 1.8;
	color: #333;
	margin-bottom: 1.5em;
	text-align: left;
	overflow: hidden;
	padding-right: 100px;
	column-count: 1;
	columns: 1;
	display: block;
}

.testimonial-story .testimonial-author {
	font-size: 1rem;
	font-weight: 600;
	color: #666;
	text-align: right;
	font-style: italic;
	clear: both;
	padding-top: 1em;
	padding-right: 0;
	margin-right: 0;
}

.testimonials-reader-navigator {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 0.5em;
	z-index: 10;
	margin: 1em 0 0 0;
}

.testimonials-reader-navigator-mobile {
	display: none;
}

.testimonial-nav-btn {
	background: transparent;
	border: 2px solid rgba(0, 0, 0, 0.2);
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
	color: rgba(0, 0, 0, 0.6);
	font-size: 0;
}

.testimonial-nav-btn:hover {
	background-color: rgba(0, 0, 0, 0.05);
	border-color: rgba(0, 0, 0, 0.4);
	color: rgba(0, 0, 0, 0.8);
}

.testimonial-nav-btn:active {
	background-color: rgba(0, 0, 0, 0.1);
	transform: scale(0.95);
}

.testimonial-nav-arrow {
	font-size: 24px;
	line-height: 1;
	font-weight: bold;
	display: block;
}

/* Responsive Anpassungen für Testimonials Reader */
@media screen and (max-width: 736px) {
	.testimonials-reader {
		padding: 1em 0;
	}
	
	.testimonials-reader-navigator {
		display: none;
	}
	
	.testimonials-reader-navigator-mobile {
		display: flex;
		justify-content: flex-end;
		align-items: center;
		gap: 0.4em;
	}
	
	.testimonial-story {
		display: flex;
		flex-direction: column;
	}
	
	.testimonial-story-header {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		margin-bottom: 1em;
		gap: 1em;
		width: 100%;
	}
	
	.testimonial-icon {
		float: none;
		width: 60px;
		max-width: 60px;
		margin: 0;
		display: block;
		flex-shrink: 0;
		shape-outside: none;
	}
	
	.testimonial-story .testimonial-text {
		font-size: 1rem;
		line-height: 1.6;
		padding-right: 0;
		width: 100%;
		margin-bottom: 1em;
		column-count: 1 !important;
		columns: 1 !important;
		display: block;
		float: none;
		clear: both;
	}
	
	.testimonial-story .testimonial-author {
		font-size: 0.9rem;
		text-align: right;
		margin-top: 0.5em;
		padding-top: 0;
		clear: none;
	}
	
	.testimonial-nav-btn {
		width: 36px;
		height: 36px;
	}
	
	.testimonial-nav-arrow {
		font-size: 20px;
	}
	
	.testimonials-reader-navigator {
		gap: 0.4em;
	}
}

/* Contact Success Modal */

#contact-success {
	display: none;
}

#contact-success .inner {
	max-width: 600px;
	margin: 0 auto;
	padding: 3em 2em;
}

#contact-success h2 {
	color: #47D3E5;
	margin-bottom: 1em;
}

#contact-success p {
	font-size: 1.2rem;
	margin-bottom: 1.5em;
}

#contact-success .actions {
	margin-top: 2em;
	display: flex;
	justify-content: flex-end;
}

#contact-success .actions .button {
	position: static;
	background-color: #47D3E5;
	color: white;
	border: none;
	padding: 0.75em 2em;
	font-size: 1rem;
	transition: background-color 0.3s ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

#contact-success .actions .button:hover {
	background-color: #36b3c5;
}

@media screen and (max-width: 736px) {
	#contact-success .inner {
		padding: 2em 1.5em;
	}

	#contact-success p {
		font-size: 1rem;
	}
}

/* Contact Error Modal */

#contact-error {
	display: none;
}

#contact-error .inner {
	max-width: 600px;
	margin: 0 auto;
	padding: 3em 2em;
}

#contact-error h2 {
	color: #e74c3c;
	margin-bottom: 1em;
}

#contact-error p {
	font-size: 1.2rem;
	margin-bottom: 1.5em;
	color: #555;
}

#contact-error .actions {
	margin-top: 2em;
	display: flex;
	justify-content: flex-end;
}

#contact-error .actions .button {
	position: static;
	background-color: #e74c3c;
	color: white;
	border: none;
	padding: 0.75em 2em;
	font-size: 1rem;
	transition: background-color 0.3s ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

#contact-error .actions .button:hover {
	background-color: #c0392b;
}

@media screen and (max-width: 736px) {
	#contact-error .inner {
		padding: 2em 1.5em;
	}

	#contact-error p {
		font-size: 1rem;
	}
}

/* Announcement Banner */

.announcements {
	margin-top: 2em;
	display: flex;
	flex-direction: column;
	gap: 0.75em;
}

.announcement {
	display: flex;
	align-items: flex-start;
	gap: 0.75em;
	padding: 0.9em 1.1em;
	border-left: 4px solid #47D3E5;
	border-radius: 4px;
	background-color: rgba(71, 211, 229, 0.09);
	font-size: 0.8em;
	line-height: 1.6;
}

.announcement-body {
	flex: 1;
	min-width: 0;
}

/* Der Inhalt kommt als WYSIWYG-HTML aus dem CMS – Redaktion kann blockquote,
   Überschriften, Absätze und Listen setzen. Deshalb hier alles einfangen. */
.announcement-body > *:first-child {
	margin-top: 0;
}

.announcement-body > *:last-child,
.announcement-body > *:last-child > *:last-child {
	margin-bottom: 0;
}

.announcement-body blockquote {
	margin: 0;
	padding: 0;
	border: none;
	font-style: normal;
}

.announcement-body h1,
.announcement-body h2,
.announcement-body h3,
.announcement-body h4 {
	font-size: 1.1em;
	line-height: 1.4;
	margin: 0 0 0.4em 0;
	letter-spacing: normal;
}

.announcement-body p,
.announcement-body li {
	margin-bottom: 0.6em;
	font-size: inherit;
	line-height: inherit;
}

.announcement-body ul,
.announcement-body ol {
	margin-bottom: 0.6em;
	padding-left: 1.2em;
}

.announcement-close {
	flex-shrink: 0;
	background: transparent;
	border: none;
	cursor: pointer;
	font-size: 1.5em;
	line-height: 1;
	color: rgba(0, 0, 0, 0.4);
	padding: 0;
	width: 1.2em;
	height: 1.2em;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.3s ease;
	outline: none;
}

.announcement-close:hover {
	color: #47D3E5;
}

@media screen and (max-width: 736px) {
	.announcements {
		margin-top: 1.5em;
	}

	.announcement {
		padding: 0.75em 0.9em;
		font-size: 0.75em;
	}
}

