/* ROH Adventskalender
   Die Farben werden im Backend (Adventskalender → Farben) gesetzt;
   die Werte hier sind nur der Rückfall. */
.roh-advent,
.roh-modal,
.roh-band {
	--roh-nacht: #272727;
	--roh-nacht-hell: #363636;
	--roh-rot: #973c20;
	--roh-rot-hell: #a6563d;
	--roh-gruen: #4d5b48;
	--roh-gruen-hell: #687463;
	--roh-gold: #d9a441;
	--roh-creme: #f9f9f9;
	--roh-logo-bg: #1c1c1c;
	--roh-radius: 16px;
	/* Schriften wie auf rohfestival.de: Cardo (Überschriften, normal), Inter (Text) */
	--roh-headline: var(--wp--preset--font-family--heading, "Cardo", Georgia, serif);
	--roh-text: var(--wp--preset--font-family--body, "Inter", system-ui, sans-serif);
	font-family: var(--roh-text);
	font-weight: 400;
}

.roh-advent {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	box-sizing: border-box;
	padding: clamp(20px, 4vw, 48px) clamp(14px, 3vw, 40px);
	border-radius: 24px;
	background: radial-gradient(ellipse 120% 80% at 50% 0%, var(--roh-nacht-hell), var(--roh-nacht) 70%);
	color: var(--roh-creme);
}
.roh-advent *,
.roh-modal * { box-sizing: border-box; }

.roh-advent__kopf {
	position: relative;
	z-index: 1;
	margin: 0 auto clamp(18px, 3vw, 32px);
	text-align: center;
}
.roh-advent__titel {
	margin: 0;
	color: var(--roh-gold);
	font-family: var(--roh-headline);
	font-weight: 400;
	font-size: clamp(1.8rem, 4.5vw, 2.5rem);
	line-height: 1.15;
	text-shadow: 0 0 24px rgba(232, 185, 85, .35);
}
.roh-advent__untertitel {
	margin: .5em 0 0;
	opacity: .85;
	font-size: clamp(.95rem, 2vw, 1.1rem);
}

/* Raster: 4 Advente oben, 3 Weihnachtstage unten */
.roh-advent__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: clamp(10px, 2vw, 20px);
	max-width: 980px;
	margin: 0 auto;
}
.roh-tuer--advent { grid-column: span 3; aspect-ratio: 3 / 4; }
.roh-tuer--fest   { grid-column: span 4; aspect-ratio: 5 / 6; }
@media (max-width: 640px) {
	.roh-tuer--advent,
	.roh-tuer--fest { grid-column: span 6; aspect-ratio: 3 / 4; }
	/* Heiligabend auf dem Handy als breites Highlight-Türchen */
	.roh-tuer--fest:nth-child(5) { grid-column: span 12; aspect-ratio: 2 / 1; }
	.roh-tuer--fest:nth-child(5) .roh-tuer__symbol { width: 22%; }
}

/* ------------------------------------------------------------- Türchen */
.roh-tuer {
	appearance: none;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .45em;
	min-width: 0;
	margin: 0;
	padding: 14px 12px;
	border: 0;
	border-radius: var(--roh-radius);
	color: var(--roh-creme);
	font: inherit;
	text-align: center;
	text-decoration: none;
	perspective: 900px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.roh-tuer--rot   { background: linear-gradient(160deg, var(--roh-rot-hell), var(--roh-rot)); }
.roh-tuer--gruen { background: linear-gradient(160deg, var(--roh-gruen-hell), var(--roh-gruen)); }
.roh-tuer--fest  { box-shadow: 0 10px 24px rgba(0, 0, 0, .35), inset 0 0 0 2px var(--roh-gold); }

/* gestrichelter "Türrahmen" */
.roh-tuer.is-zu::before,
.roh-tuer__klappe::before {
	content: "";
	position: absolute;
	inset: 8px;
	border: 1.5px dashed rgba(232, 185, 85, .55);
	border-radius: calc(var(--roh-radius) - 6px);
	pointer-events: none;
}

.roh-tuer__symbol {
	display: block;
	width: 44%;
	max-width: 96px;
	color: var(--roh-gold);
	filter: drop-shadow(0 0 10px rgba(232, 185, 85, .45));
}
.roh-tuer__symbol svg { display: block; width: 100%; height: auto; }
.roh-tuer--fest .roh-tuer__symbol { width: 40%; }

.roh-tuer__titel {
	font-family: var(--roh-headline);
	font-weight: 400;
	font-size: clamp(.95rem, 1.9vw, 1.2rem);
	line-height: 1.2;
}
.roh-tuer__datum {
	padding: .15em .7em;
	border-radius: 999px;
	background: rgba(0, 0, 0, .25);
	font-family: var(--roh-text);
	font-weight: 500;
	font-size: clamp(.72rem, 1.4vw, .85rem);
}

/* geöffnet */
.roh-tuer.is-offen {
	cursor: pointer;
	transition: transform .25s ease, box-shadow .25s ease;
}
.roh-tuer.is-offen:hover,
.roh-tuer.is-offen:focus-visible {
	transform: translateY(-4px) rotate(-.6deg);
	box-shadow: 0 16px 30px rgba(0, 0, 0, .45), 0 0 0 2px var(--roh-gold), 0 0 28px rgba(232, 185, 85, .4);
}
.roh-tuer.is-offen:focus-visible { outline: 3px solid var(--roh-creme); outline-offset: 3px; }

.roh-tuer__logo {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 0;
	padding: 10%;
	border-radius: calc(var(--roh-radius) - 6px);
	background: var(--roh-logo-bg);
	overflow: hidden;
}
.roh-tuer__logo img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.roh-logo-text {
	color: var(--roh-creme);
	font-family: var(--roh-headline);
	font-weight: 400;
	font-size: clamp(1.1rem, 2.6vw, 1.6rem);
	line-height: 1.1;
	overflow-wrap: anywhere;
}

.roh-tuer__neu {
	position: absolute;
	z-index: 3;
	top: -9px;
	right: -6px;
	padding: .25em .7em;
	border-radius: 999px;
	background: var(--roh-gold);
	color: var(--roh-nacht);
	font-size: .78rem;
	font-weight: 600;
	transform: rotate(8deg);
	box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
	animation: roh-puls 1.8s ease-in-out infinite;
}

/* Klappe, die am Veröffentlichungstag aufschwingt */
.roh-tuer__klappe {
	position: absolute;
	z-index: 2;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .45em;
	border-radius: inherit;
	background: inherit;
	transform-origin: left center;
	backface-visibility: hidden;
	transition: transform 1.3s cubic-bezier(.55, .05, .3, 1), opacity .35s ease 1s;
	box-shadow: inherit;
}
.roh-tuer.is-auf .roh-tuer__klappe {
	transform: rotateY(-112deg);
	opacity: 0;
	pointer-events: none;
}

/* ---------------------------------------------------------------- Schnee */
.roh-advent__schnee {
	position: absolute;
	z-index: 0;
	inset: 0;
	pointer-events: none;
}
.roh-advent__schnee span {
	position: absolute;
	top: -4%;
	border-radius: 50%;
	background: #fff;
	animation: roh-fall linear infinite;
}

/* ----------------------------------------------------------------- Popup */
html.roh-modal-offen { overflow: hidden; }

.roh-modal {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 20px;
}
.roh-modal[hidden] { display: none; }

.roh-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 11, 22, .78);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
	opacity: 0;
	transition: opacity .3s ease;
}

.roh-modal__karte {
	position: relative;
	width: min(560px, 100%);
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	overflow: auto;
	padding: clamp(22px, 4vw, 34px);
	border: 1px solid rgba(232, 185, 85, .45);
	border-radius: 22px;
	background: linear-gradient(170deg, var(--roh-nacht-hell), var(--roh-nacht));
	color: var(--roh-creme);
	text-align: center;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 60px rgba(232, 185, 85, .18);
	opacity: 0;
	transform: translateY(40px) scale(.7) rotate(-4deg);
	transition: transform .55s cubic-bezier(.2, 1.35, .4, 1), opacity .3s ease;
}
.roh-modal.is-offen .roh-modal__backdrop { opacity: 1; }
.roh-modal.is-offen .roh-modal__karte { opacity: 1; transform: none; }

.roh-modal__zu {
	appearance: none;
	position: absolute;
	top: 10px;
	right: 10px;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: var(--roh-creme);
	font-size: 26px;
	line-height: 40px;
	cursor: pointer;
}
.roh-modal__zu:hover,
.roh-modal__zu:focus-visible { background: rgba(255, 255, 255, .22); }

.roh-modal__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 140px;
	margin: 18px 0 18px;
	padding: 22px;
	border-radius: 14px;
	background: var(--roh-logo-bg);
}
.roh-modal__logo img { display: block; max-width: 100%; max-height: 220px; object-fit: contain; }
.ist-hell .roh-logo-text { color: #1c1c1c; }
.roh-modal__logo .roh-logo-text { font-size: clamp(1.6rem, 5vw, 2.4rem); }

.roh-modal__kicker {
	margin: 0;
	color: var(--roh-gold);
	font-size: .95rem;
	font-weight: 500;
}
.roh-modal__titel {
	margin: .2em 0 0;
	color: var(--roh-creme);
	font-family: var(--roh-headline);
	font-weight: 400;
	font-size: clamp(1.6rem, 4.5vw, 2.2rem);
	line-height: 1.15;
}
.roh-modal__herkunft { margin: .35em 0 0; opacity: .8; }
.roh-modal__info { margin-top: .8em; text-align: left; font-size: 1.05rem; line-height: 1.55; }
.roh-modal__info p { margin: .7em 0; }
.roh-modal__info:empty { display: none; }

.roh-modal__btn {
	display: inline-block;
	margin-top: 1.1em;
	padding: .8em 1.7em;
	border-radius: 999px;
	background: var(--roh-gold);
	color: var(--roh-nacht);
	font-weight: 600;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}
.roh-modal__btn:hover,
.roh-modal__btn:focus-visible {
	color: var(--roh-nacht);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(232, 185, 85, .4);
}
.roh-modal__btn[hidden] { display: none; }

/* ------------------------------------------------- Band-Detailseite */
.roh-band {
	box-sizing: border-box;
	max-width: 820px;
	margin: 0 auto;
	padding: clamp(20px, 4vw, 44px);
	border: 1px solid color-mix(in srgb, var(--roh-gold) 40%, transparent);
	border-radius: 24px;
	background: linear-gradient(170deg, var(--roh-nacht-hell), var(--roh-nacht));
	color: var(--roh-creme);
}
.roh-band * { box-sizing: border-box; }
.roh-band a { color: var(--roh-gold); }
.roh-band__zurueck { display: inline-block; margin-bottom: 18px; text-decoration: none; font-weight: 500; }
.roh-band__zurueck:hover { text-decoration: underline; }
.roh-band__kopf { text-align: center; }
.roh-band__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 160px;
	padding: clamp(18px, 4vw, 36px);
	border-radius: 16px;
	background: var(--roh-logo-bg);
}
.roh-band__logo img { display: block; max-width: 100%; max-height: 280px; object-fit: contain; }
.roh-band__logo .roh-logo-text { color: var(--roh-creme); font-size: clamp(1.8rem, 6vw, 3rem); }
.roh-band__kicker {
	margin: 22px 0 0;
	color: var(--roh-gold);
	font-size: 1rem;
	font-weight: 500;
}
.roh-band__name {
	margin: .15em 0 0;
	color: var(--roh-creme);
	font-family: var(--roh-headline);
	font-weight: 400;
	font-size: clamp(2rem, 5.5vw, 3rem);
	line-height: 1.1;
}
.roh-band__herkunft { margin: .4em 0 0; opacity: .8; }
.roh-band__text { margin-top: 28px; font-size: 1.05rem; line-height: 1.55; }
.roh-band__text img { max-width: 100%; height: auto; border-radius: 10px; }
.roh-band__text iframe { max-width: 100%; }
.roh-band__fuss { margin: 30px 0 0; text-align: center; }
.roh-band__btn {
	display: inline-block;
	padding: .8em 1.7em;
	border-radius: 999px;
	background: var(--roh-gold);
	color: var(--roh-nacht) !important;
	font-weight: 600;
	text-decoration: none;
}

/* Funken beim Öffnen */
.roh-modal__funken {
	position: absolute;
	top: 50%;
	left: 50%;
	pointer-events: none;
}
.roh-modal__funken span {
	position: absolute;
	width: 8px;
	height: 8px;
	margin: -4px;
	border-radius: 50%;
	background: var(--roh-gold);
	box-shadow: 0 0 12px var(--roh-gold);
	opacity: 0;
}
.roh-modal.is-offen .roh-modal__funken span { animation: roh-funke .9s ease-out forwards; }
.roh-modal__funken span:nth-child(1)  { --a: 0deg; }
.roh-modal__funken span:nth-child(2)  { --a: 30deg;  background: #fff; }
.roh-modal__funken span:nth-child(3)  { --a: 60deg; }
.roh-modal__funken span:nth-child(4)  { --a: 90deg;  background: #fff; }
.roh-modal__funken span:nth-child(5)  { --a: 120deg; }
.roh-modal__funken span:nth-child(6)  { --a: 150deg; background: #fff; }
.roh-modal__funken span:nth-child(7)  { --a: 180deg; }
.roh-modal__funken span:nth-child(8)  { --a: 210deg; background: #fff; }
.roh-modal__funken span:nth-child(9)  { --a: 240deg; }
.roh-modal__funken span:nth-child(10) { --a: 270deg; background: #fff; }
.roh-modal__funken span:nth-child(11) { --a: 300deg; }
.roh-modal__funken span:nth-child(12) { --a: 330deg; background: #fff; }

/* --------------------------------------------- Line-up (ab Neujahr) */
.roh-lineup {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(16px, 3vw, 32px);
	max-width: 1000px;
	margin: 0 auto;
}
.roh-act {
	appearance: none;
	display: flex;
	flex: 0 1 calc(25% - 24px);
	flex-direction: column;
	align-items: center;
	gap: .35em;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--roh-creme);
	font: inherit;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	animation: roh-auftauchen .6s ease-out both;
}
@media (max-width: 900px) { .roh-act { flex-basis: calc(33.333% - 22px); } }
@media (max-width: 560px) { .roh-act { flex-basis: calc(50% - 10px); } }

.roh-act__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	margin-bottom: .4em;
	padding: 12%;
	border-radius: var(--roh-radius);
	background: var(--roh-logo-bg);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .08);
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
}
.roh-act__logo img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.roh-act:hover .roh-act__logo,
.roh-act:focus-visible .roh-act__logo {
	transform: translateY(-4px) scale(1.02);
	box-shadow: 0 16px 30px rgba(0, 0, 0, .45), 0 0 0 2px var(--roh-gold);
}
.roh-act:focus-visible { outline: none; }
.roh-act:focus-visible .roh-act__logo { outline: 3px solid var(--roh-creme); outline-offset: 3px; }
.roh-act__name {
	font-family: var(--roh-headline);
	font-weight: 400;
	font-size: clamp(1.1rem, 2.2vw, 1.4rem);
	line-height: 1.2;
}
.roh-act__herkunft { font-size: .9rem; opacity: .75; }

.roh-advent--lineup .roh-advent__titel { color: var(--roh-creme); text-shadow: none; }

/* ohne Kicker (Line-up): Abstand unter dem Logo */
.roh-band__logo + .roh-band__name { margin-top: 22px; }
.roh-modal__kicker[hidden] { display: none; }

/* ------------------------------------------------------------ Animationen */
@keyframes roh-auftauchen {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: none; }
}
@keyframes roh-fall {
	0%   { top: -4%;  transform: translateX(0); }
	100% { top: 104%; transform: translateX(var(--drift, 0)); }
}
@keyframes roh-puls {
	0%, 100% { transform: rotate(8deg) scale(1); }
	50%      { transform: rotate(8deg) scale(1.12); }
}
@keyframes roh-funke {
	0%   { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); }
	100% { opacity: 0; transform: rotate(var(--a)) translateY(-320px) scale(.3); }
}

@media (prefers-reduced-motion: reduce) {
	.roh-tuer, .roh-tuer__klappe, .roh-modal__karte, .roh-modal__backdrop, .roh-modal__btn { transition: none !important; }
	.roh-tuer__neu, .roh-act, .roh-modal.is-offen .roh-modal__funken span { animation: none !important; }
	.roh-act__logo { transition: none !important; }
}
