/*
 * Amadors – eigene Ergänzungen zum Layout-Framework.
 *
 * Enthält das Buchungsformular (ersetzt WPForms), Redaktionsinhalte
 * der Unterseiten und einige Kleinigkeiten. Keine externen Ressourcen.
 */

/* ---------------------------------------------------------------- Formular */

/*
 * Eingabefelder wie auf der bestehenden Website: dunkelroter Grund,
 * weiße Schrift, kein sichtbarer Rahmen.
 */

.ama-form-container {
	max-width: 100%;
}

.ama-form-message {
	margin: 0 0 20px;
	padding: 14px 16px;
	border-radius: 2px;
	font-size: 16px;
	line-height: 1.4;
}

.ama-form-message p:last-child {
	margin-bottom: 0;
}

.ama-form-message-success {
	background: rgba(255, 255, 255, 0.9);
	color: #1b8422;
}

.ama-form-message-error {
	background: rgba(255, 255, 255, 0.9);
	color: #bf0000;
}

.ama-form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0 20px;
	margin-bottom: 8px;
}

.ama-form-row > .ama-form-field {
	flex: 1 1 calc(50% - 10px);
	min-width: 140px;
}

.ama-form-field {
	padding: 10px 0;
}

.ama-form-row > .ama-form-field {
	padding-bottom: 0;
}

/* Beschriftungen sind wie bisher nur für Screenreader vorhanden. */
.ama-form-label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.ama-form input[type="text"],
.ama-form input[type="email"],
.ama-form input[type="tel"],
.ama-form textarea {
	box-sizing: border-box;
	display: block;
	width: 100%;
	height: 38px;
	padding: 6px 10px;
	margin: 0;
	border: 1px solid #621816;
	border-radius: 2px;
	background-color: #621816;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.3;
}

.ama-form textarea {
	height: 120px;
	resize: vertical;
}

.ama-form input:focus,
.ama-form textarea:focus {
	outline: 0;
	border-color: #e0a024;
}

.ama-form ::placeholder {
	color: rgba(255, 255, 255, 0.7);
	opacity: 1;
}

.ama-form-field-error input,
.ama-form-field-error textarea {
	border-color: #e0a024;
}

.ama-form-error {
	display: block;
	margin-top: 4px;
	color: #e0a024;
	font-size: 14px;
}

.ama-form-submit {
	margin-top: 20px;
}

/* Honeypot: unsichtbar, aber im DOM vorhanden. */
.ama-form-hp {
	position: absolute !important;
	left: -9000px !important;
	display: none !important;
}

/* ------------------------------------------------- Inhalte der Unterseiten */

.amadors-entry-content > *:last-child {
	margin-bottom: 0;
}

.amadors-entry-content img {
	max-width: 100%;
	height: auto;
}

.amadors-entry-content ul,
.amadors-entry-content ol {
	padding-left: 30px;
}

.amadors-entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.amadors-entry-content th,
.amadors-entry-content td {
	padding: 8px 12px;
	text-align: left;
	vertical-align: top;
}

/* --------------------------------------------------------------- Audio-Tag */

.uk-accordion-content audio {
	display: block;
	width: 100%;
	max-width: 420px;
	margin: 0 auto;
}

/* --------------------------------------------------- Tastaturbedienbarkeit */

.uk-logo:focus-visible,
.uk-navbar-nav > li > a:focus-visible,
.uk-accordion-title:focus-visible,
.ama-form button:focus-visible {
	outline: 2px solid #e0a024;
	outline-offset: 2px;
}

/* ------------------------------------------------------- Kundenstimmen */

/*
 * Auf der bestehenden Website sind die Hintergrundbilder der
 * Kundenstimmen ausgeblendet (sie bestimmen nur die Höhe der Kacheln).
 * Dieses Verhalten wird hier bewusst übernommen.
 */
#amazitate .el-image {
	visibility: hidden !important;
}

/* -------------------------------------------------------------------- Band */

/*
 * Alle Bandmitglieder werden im gleichen Seitenverhältnis dargestellt,
 * damit die Kacheln gleich groß sind. Der Bildausschnitt beginnt oben,
 * damit keine Köpfe angeschnitten werden.
 */
#amateam .el-item {
	aspect-ratio: 629 / 891;
	width: 100%;
}

#amateam .el-item .el-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

/* -------------------------------------------------------------- Hörproben */

/* Beide Spalten beginnen oben, unabhängig von der Anzahl der Titel. */
#amahoerproben .uk-tile {
	align-items: flex-start;
}

/*
 * Plus-Symbol der Aufklapper: eigene, handgezeichnete Striche.
 * Beim Öffnen dreht der senkrechte Strich zum Minus.
 */
.uk-accordion-icon svg > [class*="line-"] {
	transition: 0.2s ease-out;
	transition-property: transform, opacity;
	transform-origin: center;
}

[aria-expanded="true"] .uk-accordion-icon svg > .line-1 {
	transform: rotate(-45deg);
	opacity: 0;
}

[aria-expanded="true"] .uk-accordion-icon svg > .line-2 {
	transform: rotate(90deg);
}

/* ------------------------------------------------------- Kundenstimmen */

/* Mindesthöhe, falls einer Kundenstimme kein Bild zugeordnet ist. */
#amazitate .el-item {
	min-height: 320px;
}
