/*
 * Typografie- und Abstands-Feinschliff (01.11.2026)
 *
 * Ergänzt style.css, ändert sie nicht: wird danach geladen und lässt sich durch Entfernen der
 * Einbindung in template-parts/inc/includes.php vollständig zurücknehmen.
 * Grundgröße der Seite ist 17px (html), 1rem = 17px.
 */

/* ---------- 1. Lesefluss ---------- */

/* Mehr Zeilenabstand für Fließtext und Listen (vorher 1.375). */
main p,
main li {
	line-height: 1.6;
}

/* Silbentrennung und ausgewogene Zeilenumbrüche statt großer Wortlücken im Blocksatz.
   Zentrierte Absätze ausgenommen – dort wirken Trennstriche unruhig. */
main p:not(.has-text-align-center) {
	-webkit-hyphens: auto;
	hyphens: auto;
	text-wrap: pretty;
}

/* Am Handy linksbündig statt Blocksatz – auf schmalen Spalten entstehen sonst Lücken.
   Im Editor ausdrücklich zentrierte Absätze (has-text-align-*) bleiben, wie sie sind. */
@media only screen and (max-width: 767px) {
	main p {
		text-align: left;
	}
}

/* ---------- 2. Überschriften ---------- */

/* Mehrzeilige Überschriften etwas enger setzen. h1 bewusst nicht: Das sind die Titel im
   Startbild, deren Lage fein abgestimmt ist. Kein text-wrap: balance – das trennte z. B.
   „A-8344“ in der Anfahrts-Adresse nach dem Bindestrich. */
main h2,
main h3 {
	line-height: 1.25;
}

/* Abschnittsüberschriften einheitlich groß (Kapitel-Titel waren kleiner als die übrigen). */
main .chapter-title {
	font-size: 1.5em;
}

/* Bild-Text-Block am Handy wie am Desktop: Überschrift linksbündig, Text im Blocksatz mit Silbentrennung,
   damit die Zeilen die ganze Breite füllen (seit 02.11.2026; vorher Überschrift zentriert, Text linksbündig). */
@media only screen and (max-width: 767px) {
	.leistungen .text h2 {
		text-align: left;
	}

	main .leistungen .text > p {
		text-align: justify;
		-webkit-hyphens: auto;
		hyphens: auto;
	}
}

/* ---------- 3. Lesebreite und Größen am Desktop ---------- */

@media only screen and (min-width: 768px) {
	/* Fließtext auf eine angenehme Zeilenlänge (~80 Zeichen) begrenzen und mittig setzen. */
	.container > p.wp-block-paragraph,
	.container > ul.wp-block-list,
	.container > ol.wp-block-list,
	.wt > p,
	.gal-description {
		max-width: 42rem;
		margin-left: auto;
		margin-right: auto;
	}

	/* Video und Einbettungen nicht breiter als Galerien und Inhaltsblöcke. */
	.container > figure.wp-block-video,
	.container > figure.wp-block-embed {
		max-width: 1000px;
		margin-left: auto;
		margin-right: auto;
	}
}

@media only screen and (min-width: 950px) {
	/* Fließtext auf großen Bildschirmen eine Stufe größer. */
	.container > p.wp-block-paragraph,
	.container > ul.wp-block-list li,
	.container > ol.wp-block-list li,
	.wt > p,
	.leistungen .text p,
	.gal-description,
	.faq-text {
		font-size: 18px;
	}

	/* Abschnittsüberschriften am Desktop größer als am Handy. */
	.container > h2,
	.wt > h2,
	.leistungen .text h2,
	main .chapter-title {
		font-size: 1.85rem;
	}
}

/* ---------- 4. Attraktionen als Bildkarten (Block „attraktionen“) ---------- */

/* Raster: 2 Spalten am Handy, 3 am Desktop. Ab der 7. Karte ausgeblendet (Attribut hidden),
   der Knopf „Mehr Attraktionen“ blendet sie ein (assets/js/attraktionen.js). */
.attr-box {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px 0;
}

.attr-box > [hidden] {
	display: none;
}

.attr-karte {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	background: #331306;
	box-shadow: 0 4px 12px rgba(51, 19, 6, 0.22);
}

.attr-karte .attr-img {
	margin: 0;
}

.attr-karte .attr-img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0;
	box-shadow: none;
}

/* Dunkler Verlauf von unten, damit der weiße Name auf jedem Foto lesbar bleibt. */
.attr-karte::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(20, 12, 0, 0.8) 0%, rgba(20, 12, 0, 0.35) 40%, rgba(20, 12, 0, 0) 68%);
	pointer-events: none;
}

.attr-karte .attr-title {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	margin: 0;
	padding: 0 0.75em 0.65em;
	color: #fff;
	font-size: 1.05em;
	font-weight: 700;
	line-height: 1.2;
	text-align: left;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.attr-mehr {
	text-align: center;
	margin: 1.4em 0 2.2em;
}

.attr-mehr-knopf {
	background: #e42528;
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 0.85em 2.2em;
	font: inherit;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.attr-mehr-knopf:hover,
.attr-mehr-knopf:focus-visible {
	background: #c41d20;
}

.attr-mehr-knopf:focus-visible {
	outline: 3px solid #422e0e;
	outline-offset: 3px;
}

@media only screen and (min-width: 768px) {
	.attr-box {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 24px;
	}

	.attr-karte .attr-title {
		font-size: 1.35em;
		padding: 0 1em 0.85em;
	}
}

/* ---------- 6. Weihnachtsknopf in der Kopfleiste (Startseiten aller Sprachen, seit 02.11.2026) ---------- */

/* Ersetzt dort „Tickets“ durch „Geschenk sichern“ → Weihnachts-Landingpage der Sprache (template-parts/header/navigation.php).
   Kräftiges Weihnachtsrot mit goldener Kante, goldenes Band links, Schleife auf der linken oberen Ecke.
   Animationen: einmaliges Aufspringen beim Laden, danach pulsierender Goldschein, Glanzstreif und wackelnde Schleife.
   Die Lage des Knopfs steuert style.css über transform – deshalb wird hier nur mit „scale“ und „rotate“ animiert,
   die sich mit transform verrechnen statt es zu überschreiben. */
.geschenk-button {
	/* Gleiche Höhe wie der bisherige Tickets-Knopf, obwohl die Schrift kleiner ist. */
	display: flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	padding-top: 0;
	padding-bottom: 0;
	overflow: visible;
	padding-left: 1.6em;
	font-size: 1em;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
	color: #fff;
	background-color: #e1000f;
	background-image:
		linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%),
		linear-gradient(to bottom, #ff2b1f 0%, #e1000f 55%, #b8000c 100%);
	background-size: 260% 100%, 100% 100%;
	background-position: 160% 0, 0 0;
	background-repeat: no-repeat;
	border: 2px solid #f0c75e;
	border-radius: 4px;
	box-shadow: 0 0 0 0 rgba(255, 214, 102, 0.7), 0 3px 8px -2px rgba(0, 0, 0, 0.55), inset 0 -2px 3px rgba(0, 0, 0, 0.35);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
	animation: geschenk-auftritt 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both, geschenk-schein 2.6s ease-out 1.6s infinite, geschenk-glanz 4.2s ease-in-out 1.8s infinite;
}

/* Goldenes Geschenkband unter der Schleife */
.geschenk-button::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0.75em;
	width: 0.42em;
	background: linear-gradient(to right, #a8741f, #f6dc8f 45%, #c8943a);
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.35);
}

.geschenk-schleife {
	position: absolute;
	z-index: 1;
	top: -0.15em;
	left: -0.55em;
	width: 2.4em;
	height: auto;
	transform: rotate(-14deg);
	transform-origin: 50% 55%;
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.45));
	pointer-events: none;
	animation: geschenk-schleife 4.2s ease-in-out 1.8s infinite;
}

.geschenk-button:hover,
.geschenk-button:focus-visible {
	background-color: #f0101c;
	scale: 1.04;
}

.geschenk-button:focus-visible {
	outline: 3px solid #f0d79c;
	outline-offset: 2px;
}

/* Einmal kräftig aufspringen, sobald die Seite da ist. */
@keyframes geschenk-auftritt {
	0% { scale: 0.6; opacity: 0; }
	60% { scale: 1.12; opacity: 1; }
	80% { scale: 0.97; }
	100% { scale: 1; opacity: 1; }
}

/* Goldener Schein, der vom Knopf nach außen pulsiert, dazu ein kaum merkliches Atmen. */
@keyframes geschenk-schein {
	0% { box-shadow: 0 0 0 0 rgba(255, 214, 102, 0.75), 0 3px 8px -2px rgba(0, 0, 0, 0.55), inset 0 -2px 3px rgba(0, 0, 0, 0.35); scale: 1; }
	35% { scale: 1.045; }
	70% { box-shadow: 0 0 0 14px rgba(255, 214, 102, 0), 0 3px 8px -2px rgba(0, 0, 0, 0.55), inset 0 -2px 3px rgba(0, 0, 0, 0.35); scale: 1; }
	100% { box-shadow: 0 0 0 0 rgba(255, 214, 102, 0), 0 3px 8px -2px rgba(0, 0, 0, 0.55), inset 0 -2px 3px rgba(0, 0, 0, 0.35); scale: 1; }
}

/* Glanzstreif, der über den Knopf wandert */
@keyframes geschenk-glanz {
	0%, 55% { background-position: 160% 0, 0 0; }
	85%, 100% { background-position: -60% 0, 0 0; }
}

/* Schleife wackelt kurz, passend zum Glanz */
@keyframes geschenk-schleife {
	0%, 50%, 100% { rotate: 0deg; }
	58% { rotate: 12deg; }
	66% { rotate: -9deg; }
	74% { rotate: 6deg; }
	82% { rotate: -3deg; }
}

@media (prefers-reduced-motion: reduce) {
	.geschenk-button,
	.geschenk-schleife {
		animation: none;
	}
}

@media only screen and (min-width: 565px) {
	.geschenk-button {
		font-size: 1.15em;
	}
}

@media only screen and (min-width: 1285px) {
	.geschenk-button {
		height: 60px;
		font-size: 1.7em;
		padding-left: 1.4em;
	}

	.geschenk-schleife {
		top: -0.35em;
		left: -0.6em;
		width: 2.3em;
	}
}

/* ---------- 7. Website-Umschalter Dinopark ⇄ Baumhotel im Menü (seit 02.11.2026) ---------- */

/* Schlichte Leiste mit gemeinsamem Rahmen: aktive Website dunkelgelb gefüllt, mit Pfeilspitze zur anderen hin;
   die andere Website nur in gedämpftem Gelb. Beim Antippen gibt sie leicht nach. Die !important überstimmen die
   alten Stile aus style.css bzw. die allgemeinen Menü-Link-Stile (#main-nav a). */
#main-nav .site-switcher {
	display: flex;
	max-width: min(340px, calc(100% - 2em));
	margin: 2em auto 0.6em;
	padding: 0;
	overflow: hidden;
	background: rgba(20, 14, 2, 0.35);
	border: 2px solid #e0b84a;
	border-radius: 5px;
	box-shadow: none;
}

#main-nav .site-switcher .switcher-item {
	position: relative;
	flex: 1 1 50%;
	display: flex !important;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0.55em 0.5em !important;
	font-family: Assistant, sans-serif;
	font-size: 1.1em !important;
	font-weight: 800;
	line-height: 1.2 !important;
	letter-spacing: 0.06em;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 0;
	box-shadow: none !important;
	transition: color 0.15s ease, background-color 0.15s ease, opacity 0.1s ease;
	-webkit-tap-highlight-color: transparent;
}

/* Aktive Website mit Pfeilspitze */
#main-nav .site-switcher .switcher-item.active {
	z-index: 1;
	margin-right: -14px;
	padding-right: calc(0.5em + 14px) !important;
	color: #3a2808 !important;
	background: #e0b84a !important;
	clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
	cursor: default;
}

#main-nav .site-switcher .switcher-item.active::after {
	content: none !important;
}

/* Andere Website */
#main-nav .site-switcher a.switcher-item {
	padding-left: calc(0.5em + 14px) !important;
	color: rgba(236, 205, 106, 0.85) !important;
	background: transparent !important;
}

#main-nav .site-switcher a.switcher-item::after {
	content: none;
}

#main-nav .site-switcher a.switcher-item:hover,
#main-nav .site-switcher a.switcher-item:focus-visible {
	color: #f6dc7e !important;
	background: rgba(236, 205, 106, 0.12) !important;
}

#main-nav .site-switcher a.switcher-item:focus-visible {
	outline: 2px solid #f0d79c;
	outline-offset: -4px;
}

/* Klick-Effekt */
#main-nav .site-switcher a.switcher-item:active {
	opacity: 0.7;
	background: rgba(236, 205, 106, 0.2) !important;
}

/* Am Handy unter dem fest stehenden Sprachumschalter („DE“) beginnen, sonst überdeckt er die rechte Ecke. */
@media only screen and (max-width: 600px) {
	#main-nav .site-switcher {
		margin-top: 66px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#main-nav .site-switcher .switcher-item {
		transition: none;
	}
}

/* ---------- 8. Kopfbilder der Unterseiten (seit 02.11.2026) ---------- */

/* Bisher links oben verankert (0 0) und am Desktop nur 300 px hoch – abzüglich Kopfleiste und Welle blieben ~150 px,
   Köpfe und Gesichter waren angeschnitten. Jetzt mittig und höher; Startseite (min-height in vh) und die
   Weihnachtsseite (eigene Regeln mit !important) sind davon nicht betroffen. */
#page-header {
	height: 300px;
	background-position: center center;
}

@media only screen and (min-width: 768px) {
	#page-header {
		height: 360px;
	}
}

@media only screen and (min-width: 1285px) {
	#page-header {
		height: 460px;
	}
}

/* Schwerpunkt je Bild (gilt in allen Sprachen, weil die Dateinamen gleich sind). */
#page-header[style*="carnotaurus-niedrige-aufloesung"] { background-position: 50% 40%; }
#page-header[style*="kettenkarussell-im-styrassic-park"] { background-position: 50% 40%; }
#page-header[style*="rollstuhl-karussell"] { background-position: 50% 50%; }
#page-header[style*="IMG_7870"] { background-position: 65% 35%; }
#page-header[style*="trex-styrassic-park"] { background-position: 35% 45%; }

/* ---------- 9. Ticketshop: Tagesticket in eigener Farbe (seit 02.11.2026) ---------- */

/* Oben stehen die Geschenke (Gutschein, Jahreskarte, Baumhotel-Wertgutschein) in Creme mit rotem Knopf, darunter das
   Tagesticket (Block-Klasse „tagesticket“) in Sandgelb mit grünem Knopf, damit es sich klar abhebt. */
.tagesticket .ti {
	background: #f2df90;
	box-shadow: 0 0 0 2px #4e6b2c, 0 4px 12px rgba(0, 0, 0, 0.35);
}

.tagesticket .tb a {
	background: #4e6b2c !important;
	box-shadow: 0 2px 6px -2px #2b3d17 !important;
}

.tagesticket .tb a:hover,
.tagesticket .tb a:focus-visible {
	background: #3d5622 !important;
}

/* ---------- 10. Jobangebote: Knopf „Jetzt bewerben“ (seit 02.11.2026) ---------- */

/* Ersetzt dort „Tickets“ und springt zum Formular #bewerbung. Längerer Text, daher kleinere Schrift bei gleicher Höhe. */
.bewerben-button {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	padding-top: 0;
	padding-bottom: 0;
	font-size: 1em;
	white-space: nowrap;
}

@media only screen and (min-width: 565px) {
	.bewerben-button {
		font-size: 1.15em;
	}
}

@media only screen and (min-width: 1285px) {
	.bewerben-button {
		height: 60px;
		font-size: 1.7em;
	}
}

.bewerben-button .icon-user::before {
	padding-right: 0.45em;
}

/* Beim Anspringen nicht unter der festen Kopfleiste verschwinden. */
#bewerbung {
	scroll-margin-top: 80px;
}

@media only screen and (min-width: 1285px) {
	#bewerbung {
		scroll-margin-top: 120px;
	}
}

html {
	scroll-behavior: smooth;
}

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

/* ---------- 11. Wellen-Block: Text mittig (seit 02.11.2026) ---------- */

/* Auf Wunsch auf allen Bildschirmgrößen zentriert (am Handy vorher linksbündig), ohne Silbentrennung. */
main .wt > p {
	text-align: center;
	-webkit-hyphens: manual;
	hyphens: manual;
}

/* ---------- 12. Seite Tagesprogramm (seit 02.11.2026) ---------- */

/* Kopfbild (Kettenkarussell) mit warmem Farbfilter in den Parkfarben; der Titel liegt darüber.
   Seite 2083 auf DE/SL/HU, auf EN 1143 (dort per html[lang] eingegrenzt, weil die ID auf DE anders belegt sein kann). */
.page-id-2083 #page-header::before,
html[lang^="en"] .page-id-1143 #page-header::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, rgba(236, 205, 106, 0.45) 0%, rgba(139, 46, 31, 0.35) 55%, rgba(66, 46, 14, 0.6) 100%);
	mix-blend-mode: multiply;
	pointer-events: none;
}

.page-id-2083 #page-header .page-title,
html[lang^="en"] .page-id-1143 #page-header .page-title {
	z-index: 1;
}

#page-header[style*="kettenkarussell-scaled"] {
	background-position: 45% 45%;
}

/* Zeitplan schlicht: keine Rundungen, nur feine Trennlinien; Uhrzeit fett, Schlusszeile farbig wie auf dem Aushang. */
.tagesprogramm {
	max-width: 760px;
	margin: 1.5em auto 2em;
}

.tagesprogramm table {
	width: 100%;
	border-collapse: collapse;
	background: transparent;
}

.tagesprogramm td {
	padding: 0.7em 0.6em;
	border: 0 !important;
	border-bottom: 1px solid rgba(66, 46, 14, 0.25) !important;
	background: transparent;
	line-height: 1.35;
	vertical-align: top;
}

.tagesprogramm tr:first-child td {
	border-top: 2px solid #422e0e !important;
}

.tagesprogramm td:first-child {
	width: 1%;
	white-space: nowrap;
	font-weight: 700;
	padding-right: 1.4em;
}

.tagesprogramm tr:last-child td {
	background: #f0c4a6;
	font-weight: 700;
	border-bottom: 2px solid #422e0e !important;
}

.tp-einleitung {
	max-width: 42rem;
	margin-left: auto;
	margin-right: auto;
}

.tp-hinweise {
	max-width: 760px;
	margin: 1em auto 3em !important;
	padding: 1em 1.2em 1em 2.4em;
	background: transparent;
	border-left: 3px solid #422e0e;
}

.tp-hinweise li {
	margin: 0.35em 0;
}

@media only screen and (max-width: 767px) {
	.tagesprogramm td {
		padding: 0.6em 0.4em;
	}

	.tagesprogramm td:first-child {
		padding-right: 0.8em;
	}
}

/* ---------- 13. Nachbesserungen 02.11.2026 (vierte Runde) ---------- */

/* Umschalter: längere Übersetzungen (z. B. „Drevesni hotel“, „Lombház Hotel“) dürfen umbrechen. */
#main-nav .site-switcher .switcher-item {
	white-space: normal;
	line-height: 1.15 !important;
}

/* ---------- 14. Ticketshop: Winter-Kopf (nur DE, seit 02.11.2026) ---------- */

/* Kleine Vorzeile „Wir sperren … wieder auf“, darunter groß die Frage – beides mittig im Kopfbild. */
.ts-winterkopf {
	position: absolute;
	top: 50%;
	left: 50%;
	width: min(92%, 900px);
	transform: translate(-50%, -38%);
	text-align: center;
}

.ts-vorzeile {
	margin: 0 0 0.4em;
	font-size: 1.05em;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #f6dc7e;
	text-shadow: 0 1px 3px #000;
}

.ts-winterkopf .ts-hauptzeile {
	position: static;
	margin: 0;
	font-size: clamp(1.6rem, 5.2vw, 3rem);
	line-height: 1.15;
	color: #fbf8f3;
	text-shadow: 2px 1px 0 #000, 0 0 18px rgba(0, 0, 0, 0.5);
}

@media only screen and (min-width: 1285px) {
	.ts-vorzeile {
		font-size: 1.3em;
	}
}
