/* Ergänzungen, die Elementor nicht direkt stylen kann. */

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/*
 * Ticket-Button in der Terminliste, entspricht der globalen Klasse ts-btn-outline.
 * Elementor entfernt Klassen aus Shortcode-Ausgaben, deshalb der Selektor über das
 * Element „Termin Ticket“ der Startseite (data-interaction-id 11ad78a).
 */
.e-paragraph-base[data-interaction-id="11ad78a"] a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 26px 12px;
	border: 1px solid #dba14d;
	border-radius: 30px;
	color: #dba14d;
	font-family: Roboto, sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.5px;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color 0.2s, color 0.2s;
}

.e-paragraph-base[data-interaction-id="11ad78a"] a:hover,
.e-paragraph-base[data-interaction-id="11ad78a"] a:focus-visible {
	background-color: #dba14d;
	color: #1a1a1a;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Album-Einzelseite: Plattform-Links und Spotify-Player (aus includes/album.php). */
.ts-platforms {
	margin-top: 32px;
}

.ts-platforms__label {
	margin: 0 0 12px;
	color: #dba14d;
	font-family: Oswald, sans-serif;
	font-size: 14px;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.ts-platforms__list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ts-platforms a.ts-platform {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid #3a3a3a;
	border-radius: 50%;
	color: #dba14d;
	transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.ts-platform svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.ts-platforms a.ts-platform:hover,
.ts-platforms a.ts-platform:focus-visible {
	border-color: #dba14d;
	background-color: #dba14d;
	color: #1a1a1a;
}

.ts-spotify {
	margin-top: 48px;
}

.ts-spotify__title {
	margin: 0 0 20px;
}

.ts-spotify__player {
	display: block;
	width: 100%;
	min-height: 452px;
	border: 0;
	border-radius: 12px;
	background-color: #222222;
}

/* Albenliste der Startseite, zugeklappt ab dem fünften Album (siehe ts-site.js). */
#alben-liste.ts-albums--collapsed .e-collection-loop-layout-base > :nth-child(n+5) {
	display: none;
}

/*
 * Bestellformular: Elementor-Pro-Formular mit der ID „bestellformular“ (CSS-ID des Widgets oder
 * Formular-ID, beides greift) und dem Feldtyp „Artikelliste“ (includes/order-elementor.php). Das Widget
 * bringt eigene Vorgaben mit (weiße Felder, weiße Schrift auf hellem Gold) und die Seite den
 * Fließtext-Stil; die ID setzt sich gegen beides durch.
 */
#bestellformular {
	--ts-form-line: rgba(255, 255, 255, 0.12);
	color: #cccccc;
	font-size: 16px;
	line-height: 1.5;
	hyphens: manual;
}

#bestellformular .elementor-field-group > .elementor-field-label {
	margin-bottom: 6px;
	color: #ffffff;
	font-family: Roboto, sans-serif;
	font-size: 15px;
	font-weight: 500;
}

#bestellformular .elementor-mark-required .elementor-field-label::after {
	color: #dba14d;
}

#bestellformular .elementor-field-group .elementor-field-textual {
	min-height: 48px;
	padding: 12px 16px;
	border: 1px solid #3a3a3a;
	border-radius: 12px;
	background-color: #222222;
	color: #ffffff;
	font-family: Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.4;
}

#bestellformular .elementor-field-group .elementor-field-textual::placeholder {
	color: #9a9a9a;
	opacity: 1;
}

#bestellformular .elementor-field-group .elementor-field-textual:focus {
	border-color: #dba14d;
	outline: 2px solid #dba14d;
	outline-offset: 1px;
	box-shadow: none;
}

#bestellformular .elementor-error .elementor-field-textual,
#bestellformular .elementor-field-textual[aria-invalid="true"] {
	border-color: #ff8a80;
}

#bestellformular .elementor-form-help-inline {
	display: block;
	width: 100%;
	margin-top: 6px;
	color: #ff8a80;
	font-size: 14px;
}

/* Zwischenüberschriften (Formularfeld „HTML“) und die Beschriftung der Artikelliste. */
#bestellformular .ts-form-titel,
#bestellformular .elementor-field-type-ts_artikelliste > .elementor-field-label {
	margin: 32px 0 8px;
	color: #ffffff;
	font-family: Oswald, sans-serif;
	font-size: 26px;
	font-weight: 500;
	line-height: 1.2;
	text-transform: uppercase;
}

#bestellformular .elementor-field-group:first-child .ts-form-titel {
	margin-top: 0;
}

#bestellformular .ts-form-hinweis {
	margin: 0;
	color: #9a9a9a;
	font-size: 14px;
	line-height: 1.6;
}

/* Feldtyp „Artikelliste“ */
#bestellformular .ts-artikelliste {
	flex-basis: 100%;
	width: 100%;
}

#bestellformular .ts-artikelliste [hidden] {
	display: none !important;
}

#bestellformular .ts-artikelliste__liste {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--ts-form-line);
}

#bestellformular .ts-artikelliste__artikel {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto 88px;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 12px 0;
	border-bottom: 1px solid var(--ts-form-line);
}

#bestellformular .ts-artikelliste__cover {
	width: 64px;
	height: 64px;
	overflow: hidden;
	border-radius: 8px;
	background-color: #2a2a2a;
}

#bestellformular .ts-artikelliste__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#bestellformular .ts-artikelliste__info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

#bestellformular .ts-artikelliste__interpret {
	color: #9a9a9a;
	font-size: 14px;
}

#bestellformular .ts-artikelliste__titel {
	color: #ffffff;
	font-family: Oswald, sans-serif;
	font-size: 18px;
	line-height: 1.3;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

#bestellformular .ts-artikelliste__preis {
	color: #dba14d;
	font-weight: 700;
	white-space: nowrap;
}

#bestellformular .ts-artikelliste__menge .elementor-field-textual {
	width: 100%;
	padding: 10px 8px;
	text-align: center;
}

#bestellformular .ts-artikelliste__summe {
	margin: 20px 0 0;
	padding: 16px 20px;
	border: 1px solid var(--ts-form-line);
	border-radius: 12px;
	background-color: #222222;
}

#bestellformular .ts-artikelliste__leerhinweis {
	margin: 0;
	color: #9a9a9a;
	font-size: 15px;
}

#bestellformular .ts-artikelliste__betraege {
	margin: 0;
}

#bestellformular .ts-artikelliste__betraege > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 3px 0;
}

#bestellformular .ts-artikelliste__betraege dt {
	font-weight: 400;
}

#bestellformular .ts-artikelliste__betraege dd {
	margin: 0;
	white-space: nowrap;
}

#bestellformular .ts-artikelliste__betraege > .ts-artikelliste__gesamt {
	margin-top: 8px;
	padding-top: 10px;
	border-top: 1px solid var(--ts-form-line);
	color: #ffffff;
	font-size: 18px;
	font-weight: 700;
}

#bestellformular .ts-artikelliste__gesamt dt {
	font-weight: 700;
}

#bestellformular .ts-artikelliste__leer {
	margin: 0;
}

#bestellformular .ts-artikelliste__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Zustimmung zu AGB, Widerrufsbelehrung und Datenschutz (Feldtyp „Akzeptanz“). */
#bestellformular .elementor-field-type-acceptance .elementor-field-subgroup {
	width: 100%;
	padding: 16px 20px;
	border: 1px solid var(--ts-form-line);
	border-radius: 12px;
}

#bestellformular .elementor-field-type-acceptance .elementor-field-option {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

#bestellformular .elementor-field-type-acceptance input[type="checkbox"] {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 3px 0 0;
	accent-color: #dba14d;
}

#bestellformular .elementor-field-type-acceptance .elementor-field-option label {
	color: #cccccc;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
}

#bestellformular .elementor-field-type-acceptance a {
	color: #dba14d;
	text-decoration: underline;
	text-underline-offset: 3px;
}

#bestellformular .elementor-button[type="submit"] {
	min-height: 52px;
	padding: 16px 32px;
	border: 0;
	border-radius: 30px;
	background-color: #dba14d;
	color: #1a1a1a;
	font-family: Roboto, sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	transition: background-color 0.2s;
}

#bestellformular .elementor-button[type="submit"]:hover,
#bestellformular .elementor-button[type="submit"]:focus-visible {
	background-color: #f5cf55;
	color: #1a1a1a;
}

#bestellformular .elementor-button[type="submit"]:focus-visible {
	outline: 2px solid #f5cf55;
	outline-offset: 3px;
}

#bestellformular .elementor-message {
	margin-top: 20px;
	padding: 14px 18px;
	border: 1px solid currentColor;
	border-radius: 12px;
	font-size: 15px;
	line-height: 1.6;
}

#bestellformular .elementor-message-success {
	border-color: #dba14d;
	background-color: rgba(219, 161, 77, 0.08);
	color: #ffffff;
}

#bestellformular .elementor-message-danger {
	background-color: rgba(255, 138, 128, 0.08);
	color: #ff8a80;
}

@media (max-width: 767px) {
	#bestellformular .ts-artikelliste__artikel {
		grid-template-columns: 56px minmax(0, 1fr) 72px;
		gap: 4px 12px;
	}

	#bestellformular .ts-artikelliste__cover {
		grid-row: span 2;
		width: 56px;
		height: 56px;
	}

	#bestellformular .ts-artikelliste__preis {
		grid-column: 2;
		font-size: 15px;
	}

	#bestellformular .ts-artikelliste__menge {
		grid-column: 3;
		grid-row: 1 / span 2;
	}

	#bestellformular .ts-form-titel,
	#bestellformular .elementor-field-type-ts_artikelliste > .elementor-field-label {
		font-size: 22px;
	}
}

/* Fließtext auf normalen Seiten (Rechtstexte, Bestellen) im Template „Seite Standard“. */
body.page .elementor-widget-theme-post-content {
	color: #cccccc;
	font-size: 17px;
	line-height: 1.7;
	overflow-wrap: break-word;
	hyphens: auto;
}

body.page .elementor-widget-theme-post-content h2 {
	margin: 56px 0 16px;
	font-size: clamp(1.5rem, 3vw, 2rem);
}

body.page .elementor-widget-theme-post-content h3 {
	margin: 36px 0 12px;
	color: #ffffff;
	font-size: clamp(1.15rem, 2vw, 1.35rem);
}

body.page .elementor-widget-theme-post-content p,
body.page .elementor-widget-theme-post-content ul,
body.page .elementor-widget-theme-post-content ol {
	margin: 0 0 16px;
}

body.page .elementor-widget-theme-post-content ul,
body.page .elementor-widget-theme-post-content ol {
	padding-left: 1.4em;
}

body.page .elementor-widget-theme-post-content li {
	margin-bottom: 6px;
}

body.page .elementor-widget-theme-post-content li::marker {
	color: #dba14d;
}

body.page .elementor-widget-theme-post-content strong {
	color: #ffffff;
}

body.page .elementor-widget-theme-post-content a {
	color: #dba14d;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.page .elementor-widget-theme-post-content a:hover {
	color: #f5cf55;
}

/*
 * Mit Elementor gebaute Seiten im Template „Seite Standard“ (z. B. Bestellen): Das Raster kommt aus dem
 * Template (Klasse ts-container wie auf der Startseite). Die äußersten Container des Seiteninhalts
 * bekommen deshalb keinen eigenen seitlichen Innenabstand, sonst stünde der Inhalt neben der Überschrift
 * eingerückt.
 */
.elementor-widget-theme-post-content [data-elementor-type="wp-page"] > .e-con {
	padding-inline: 0;
}

/* Hinweis auf noch nicht geprüfte Rechtstexte (Klasse aus dem Import). */
.ts-legal-check {
	padding: 16px 20px;
	border: 1px solid #dba14d;
	border-left-width: 4px;
	border-radius: 12px;
	background-color: rgba(219, 161, 77, 0.08);
	font-size: 15px;
}
