/* ==========================================================================
   Tracht- & Brassfestival Mamming – schlankes Stylesheet (ersetzt Webador-CSS)
   Farben, Schriften und Aufbau wie bisher; ohne fremde Server.
   ========================================================================== */
:root {
	--tb-akzent: #fc6e51;
	--tb-akzent-dunkel: #e8543a;
	--tb-text: #6d6d6d;
	--tb-kopf: #737373;
	--tb-linie: #e5e5e5;
	--tb-hell: #f6f6f6;
	--tb-breite: 980px;
	--tb-kopfschrift: 'Bevan', Georgia, serif;
	--tb-schrift: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: #fff;
	color: var(--tb-text);
	font: 400 16px/1.6 var(--tb-schrift);
	-webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--tb-akzent); }
a:hover { color: var(--tb-akzent-dunkel); }
h1, h2, h3 {
	margin: 0 0 .6em;
	font-family: var(--tb-kopfschrift);
	font-weight: 400;
	line-height: 1.3;
	color: var(--tb-kopf);
}
h2 { font-size: 24px; }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }

.tb-wrap { width: 100%; max-width: var(--tb-breite); margin: 0 auto; padding: 0 20px; }
.tb-mitte { text-align: center; }
.tb-skip { position: absolute; left: -9999px; }
.tb-skip:focus { left: 10px; top: 10px; z-index: 10; padding: 8px 12px; background: #fff; }

/* --- Kopf: Titel + Menü mit Linien links/rechts ---------------------------- */
.tb-kopf { padding: 40px 0 10px; text-align: center; }
.tb-titel {
	margin: 0;
	font-family: var(--tb-kopfschrift);
	font-size: clamp(22px, 3.4vw, 36px);
	line-height: 1.15;
	color: var(--tb-akzent);
	text-transform: uppercase;
}
.tb-titel a { color: inherit; text-decoration: none; }
.tb-nav { display: flex; align-items: center; gap: 24px; margin: 36px 0 0; }
.tb-nav::before, .tb-nav::after { content: ''; flex: 1; height: 2px; background: var(--tb-linie); }
.tb-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tb-nav a {
	display: block;
	padding: 5px 13px;
	border-radius: 3px;
	color: var(--tb-kopf);
	font-size: 15px;
	letter-spacing: .5px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}
.tb-nav a:hover { color: var(--tb-akzent); }
.tb-nav a[aria-current="page"] { background: var(--tb-akzent); color: #fff; }
.tb-menue-knopf { display: none; }

/* --- Inhalt ------------------------------------------------------------- */
main { padding: 40px 0 20px; }
.tb-banner { overflow: hidden; border-radius: 2px; }
.tb-banner img { width: 100%; transform-origin: 50% 60%; animation: tb-einzoomen 1.6s ease-out both; }
.tb-datum { margin: 56px 0 0; font-size: clamp(19px, 2.4vw, 24px); }
.tb-abschnitt { padding: 56px 0; }
.tb-abschnitt--grau { background: var(--tb-hell); }
.tb-abschnitt > .tb-wrap > h2 { text-align: center; margin-bottom: 1.6em; }

.tb-act + .tb-act { margin-top: 64px; }
.tb-act h3 { text-align: center; margin-bottom: 28px; }
.tb-act__inhalt { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.tb-act__logo { display: flex; justify-content: center; }
.tb-act__logo img { max-height: 340px; width: auto; transition: transform .4s ease; }
.tb-act:hover .tb-act__logo img { transform: scale(1.04) rotate(-1deg); }
.tb-act__text p { margin-bottom: 16px; }

/* Video erst nach Klick (Zwei-Klick-Lösung) */
.tb-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #111 center / cover no-repeat; }
.tb-video__start {
	position: absolute; inset: 0; width: 100%; height: 100%;
	border: 0; padding: 0; cursor: pointer; color: #fff;
	background: linear-gradient(rgba(0, 0, 0, .05) 40%, rgba(0, 0, 0, .88) 85%);
	transition: background-color .2s;
}
.tb-video__start:hover { background-color: rgba(0, 0, 0, .15); }
.tb-video__start:focus-visible { outline: 3px solid var(--tb-akzent); outline-offset: -3px; }
.tb-video__play {
	position: absolute; left: 50%; top: 45%; width: 68px; height: 48px; margin: -24px 0 0 -34px;
	border-radius: 12px; background: var(--tb-akzent); transition: transform .2s;
}
.tb-video__play::after {
	content: ''; position: absolute; left: 27px; top: 14px;
	border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff;
}
.tb-video__start:hover .tb-video__play { transform: scale(1.1); }
.tb-video__info { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; text-align: left; font-size: 12px; line-height: 1.4; pointer-events: none; }
.tb-video__info strong { display: block; font-size: 14px; }
.tb-video__info a { color: #fff; pointer-events: auto; }
.tb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Tickets */
.tb-tickets { padding: 64px 0; text-align: center; background: var(--tb-hell); }
.tb-knopf {
	display: inline-block;
	padding: 14px 34px;
	border-radius: 4px;
	background: var(--tb-akzent);
	color: #fff;
	font: 700 20px/1.2 var(--tb-schrift);
	letter-spacing: .5px;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(252, 110, 81, .35);
	transition: transform .2s, background-color .2s, box-shadow .2s;
	animation: tb-puls 2.8s ease-in-out 1.5s infinite;
}
.tb-knopf:hover, .tb-knopf:focus-visible { color: #fff; background: var(--tb-akzent-dunkel); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(252, 110, 81, .45); animation: none; }
.tb-knopf--klein { font-size: 15px; padding: 10px 22px; box-shadow: none; animation: none; }

/* Kontakt + Standort */
.tb-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.tb-kontakt-zeilen { margin: 0 0 20px; padding: 0; list-style: none; }
.tb-kontakt-zeilen li { margin-bottom: 6px; }
.tb-karte { height: 300px; margin-bottom: 24px; border-radius: 4px; background: var(--tb-hell); overflow: hidden; }
.tb-karte .leaflet-container { height: 100%; font: inherit; }
.tb-adresse { margin-bottom: 1.4em; }

/* Rechtstexte */
.tb-text { max-width: 820px; margin: 0 auto; }
.tb-text h1 { font-size: 28px; }
.tb-text h3 { margin-top: 1.6em; font-size: 17px; }
.tb-text p { overflow-wrap: anywhere; }

/* --- Fuß ---------------------------------------------------------------- */
.tb-fuss { margin-top: 40px; }
.tb-fuss .tb-wrap { padding-top: 30px; padding-bottom: 40px; font-size: 14px; color: var(--tb-kopf); position: relative; }
.tb-fuss .tb-wrap::before { content: ''; position: absolute; top: 0; left: 20px; right: 20px; height: 2px; background: var(--tb-linie); }
.tb-fuss a { color: var(--tb-kopf); }
.tb-fuss a:hover { color: var(--tb-akzent); }

/* --- Sanfte Animationen beim Scrollen (nur mit JS, siehe site.js) ------- */
.js .tb-auf { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--tb-verz, 0s); }
.js .tb-auf.tb-sichtbar { opacity: 1; transform: none; }
@keyframes tb-einzoomen { from { transform: scale(1.06); opacity: .4; } to { transform: scale(1); opacity: 1; } }
@keyframes tb-puls { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

/* --- Handy -------------------------------------------------------------- */
@media (max-width: 760px) {
	.tb-kopf { padding: 16px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
	.tb-titel { font-size: 16px; }
	.tb-menue-knopf {
		display: block; flex: none; width: 44px; height: 44px; border: 0; border-radius: 4px; background: none; cursor: pointer; position: relative;
	}
	.tb-menue-knopf span, .tb-menue-knopf span::before, .tb-menue-knopf span::after {
		position: absolute; left: 11px; width: 22px; height: 2px; background: var(--tb-kopf); content: ''; transition: transform .25s, top .25s, opacity .2s;
	}
	.tb-menue-knopf span { top: 21px; }
	.tb-menue-knopf span::before { left: 0; top: -7px; }
	.tb-menue-knopf span::after { left: 0; top: 7px; }
	.tb-menue-knopf[aria-expanded="true"] span { background: transparent; }
	.tb-menue-knopf[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
	.tb-menue-knopf[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
	.tb-nav { position: absolute; left: 0; right: 0; top: 100%; z-index: 1000; margin: 0; padding: 10px 20px 18px; background: #fff; box-shadow: 0 12px 24px rgba(0, 0, 0, .12); display: none; }
	.tb-nav.offen { display: block; animation: tb-runter .25s ease-out; }
	.tb-nav::before, .tb-nav::after { display: none; }
	.tb-nav ul { flex-direction: column; gap: 4px; }
	.tb-nav a { padding: 10px 13px; }
	.tb-kopf-rahmen { position: relative; }
	main { padding-top: 20px; }
	.tb-datum { margin-top: 32px; }
	.tb-abschnitt { padding: 40px 0; }
	.tb-act__inhalt, .tb-zwei { grid-template-columns: 1fr; gap: 24px; }
	.tb-act__logo img { max-height: 220px; }
	.tb-knopf { font-size: 18px; }
}
@keyframes tb-runter { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .tb-auf { opacity: 1; transform: none; }
}
.tb-karte .leaflet-marker-icon { filter: hue-rotate(160deg) saturate(1.6) brightness(1.05); }
