/* =============================================================
   Bingo-Bongo-Zaubertricks – Theme-Stylesheet
   Schwarz-Gold nach den gelieferten Entwürfen.
   Aufbau: 1 Tokens · 2 Basis · 3 Hero · 4 Karte · 5 Kontakt
           6 Fußzeile · 7 Inhalte aus WordPress · 8 Utilities
   ============================================================= */

/* ---------------------------------------------------- 1 Tokens */
:root {
	--bb-black: #000000;
	--bb-ink: #050504;
	--bb-ink-soft: #0a0907;

	--bb-gold-100: #ffe9a8;
	--bb-gold-400: #f3c64b;
	--bb-gold-500: #e9a72c;
	--bb-gold-700: #a77a39;
	--bb-gold-line: rgba(167, 122, 57, 0.85);

	--bb-text: #f2f2f4;
	--bb-text-dim: #cfcfd4;

	--bb-serif: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	--bb-sans: "Jost", "Futura", "Century Gothic", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--bb-script: "Allura", "Snell Roundhand", "Brush Script MT", cursive;

	--bb-shell: 1180px;
	--bb-gutter: clamp(0.75rem, 2.4vw, 1.6rem);
	--bb-card-pad: clamp(1.4rem, 3.4vw, 3.1rem);
	--bb-radius: 18px;

	--bb-focus: #ffd76b;
}

/* ---------------------------------------------------- 2 Basis */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background-color: var(--bb-black);
	color: var(--bb-text);
	font-family: var(--bb-sans);
	font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.06rem);
	font-weight: 300;
	line-height: 1.72;
	letter-spacing: 0.005em;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--bb-gold-500);
	text-decoration-color: rgba(233, 167, 44, 0.45);
	text-underline-offset: 0.22em;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover,
a:focus-visible {
	color: var(--bb-gold-100);
	text-decoration-color: currentColor;
}

:focus-visible {
	outline: 2px solid var(--bb-focus);
	outline-offset: 3px;
	border-radius: 3px;
}

h1, h2, h3, h4 {
	font-family: var(--bb-serif);
	font-weight: 700;
	line-height: 1.15;
	margin: 0;
	color: var(--bb-gold-400);
	text-wrap: balance;
}

.bb-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: 0.75rem 1.25rem;
	background: var(--bb-ink);
	color: var(--bb-gold-400);
	border: 1px solid var(--bb-gold-700);
	border-radius: 0 0 8px 0;
}

.bb-skip-link:focus {
	left: 0;
}

.bb-shell {
	width: 100%;
	max-width: var(--bb-shell);
	margin-inline: auto;
	padding-inline: var(--bb-gutter);
}

/* ---------------------------------------------------- 3 Hero */
.bb-hero {
	position: relative;
	background: var(--bb-black);
	isolation: isolate;
}

/* Sprachumschalter: mobil als Leiste über dem Bild, ab Tablet im Bild oben rechts. */
.bb-langbar {
	display: flex;
	justify-content: flex-end;
	padding: 0.55rem var(--bb-gutter);
	border-bottom: 1px solid var(--bb-gold-line);
}

.bb-langbar__list {
	display: flex;
	gap: 0.6rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bb-lang {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 3.4rem;
	min-height: 2.6rem;
	padding: 0.2rem 0.85rem;
	border: 1.5px solid var(--bb-gold-500);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.55);
	color: var(--bb-text);
	font-family: var(--bb-serif);
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	transition: color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bb-lang:hover,
.bb-lang:focus-visible {
	color: var(--bb-gold-100);
	box-shadow: 0 0 14px rgba(233, 167, 44, 0.35);
}

.bb-lang.is-active {
	color: var(--bb-gold-500);
	box-shadow: 0 0 18px rgba(233, 167, 44, 0.28) inset;
}

.bb-hero__stage {
	position: relative;
	overflow: hidden;
	min-height: 190px;
	aspect-ratio: 16 / 10;
}

.bb-hero__media {
	position: absolute;
	inset: 0;
	display: block;
}

.bb-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 100% 50%;
	display: block;
}

/* Weicher Übergang nach links, damit das Logo frei steht. */
.bb-hero__veil {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.85) 18%, rgba(0, 0, 0, 0.25) 38%, rgba(0, 0, 0, 0) 55%),
		linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0.3) 100%);
	pointer-events: none;
}

.bb-hero__logo {
	position: absolute;
	left: clamp(0.4rem, 2.5vw, 2.4rem);
	bottom: clamp(0.6rem, 3vw, 2rem);
	z-index: 2;
	width: min(44vw, 230px);
}

.bb-logo__wrap {
	display: block;
	filter: drop-shadow(0 0 34px rgba(255, 193, 74, 0.35));
}

.bb-logo {
	display: block;
	width: 100%;
	height: auto;
}

/* Kartensymbole – dezenter Bühnenzauber, wie im Entwurf über dem Wirbel. */
.bb-suits {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.bb-suit {
	position: absolute;
	color: var(--bb-gold-500);
	font-size: clamp(0.7rem, 1.5vw, 1.15rem);
	text-shadow: 0 0 12px rgba(233, 167, 44, 0.7);
	animation: bb-float 7s ease-in-out infinite;
}

.bb-suit--spade  { top: 16%; right: 22%; animation-delay: 0s; }
.bb-suit--diamond{ top: 9%;  right: 15%; animation-delay: 1.4s; }
.bb-suit--club   { top: 22%; right: 9%;  animation-delay: 2.8s; }

@keyframes bb-float {
	0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.75; }
	50%      { transform: translateY(-9px) rotate(6deg); opacity: 1; }
}

/* ---------------------------------------------------- 4 Karte */
.bb-main {
	padding-block: clamp(1rem, 2.6vw, 1.9rem) clamp(1.4rem, 3vw, 2.4rem);
}

.bb-card {
	position: relative;
	background: linear-gradient(180deg, var(--bb-ink-soft) 0%, var(--bb-black) 55%);
	border: 1px solid var(--bb-gold-line);
	border-radius: var(--bb-radius);
	padding: var(--bb-card-pad);
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.9),
		0 0 46px rgba(233, 167, 44, 0.1),
		0 26px 60px rgba(0, 0, 0, 0.85);
}

.bb-card__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.2rem, 3vw, 2rem);
}

.bb-h1 {
	font-size: clamp(1.9rem, 1.35rem + 2.1vw, 2.85rem);
	margin-bottom: clamp(0.7rem, 1.6vw, 1.1rem);
}

.bb-h2 {
	font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: clamp(0.9rem, 2vw, 1.35rem);
}

.bb-h3 {
	font-size: 1.25rem;
	margin-bottom: 0.4rem;
}

.bb-prose p {
	margin: 0 0 1.15em;
	text-align: justify;
	text-justify: inter-word;
	hyphens: auto;
	-webkit-hyphens: auto;
}

.bb-prose p:last-child {
	margin-bottom: 0;
}

.bb-closing {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.6rem clamp(1rem, 4vw, 2.6rem);
	margin: clamp(0.9rem, 2vw, 1.4rem) 0 0;
}

.bb-signature {
	font-family: var(--bb-script);
	font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem);
	line-height: 1;
	color: var(--bb-gold-400);
	transform: rotate(-3deg);
	text-shadow: 0 0 18px rgba(243, 198, 75, 0.35);
}

/* Trennlinie mit Stern – auf dem Handy waagerecht, auf dem Desktop senkrecht. */
.bb-divider {
	position: relative;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--bb-gold-line) 18%, var(--bb-gold-line) 82%, transparent);
}

.bb-divider__star {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: grid;
	place-items: center;
	color: var(--bb-gold-100);
	filter: drop-shadow(0 0 10px rgba(255, 233, 168, 0.8));
}

.bb-star {
	width: 20px;
	height: 20px;
}

/* ---------------------------------------------------- 5 Kontakt */
.bb-address {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	font-style: normal;
	font-size: clamp(1rem, 0.95rem + 0.25vw, 1.16rem);
	margin-bottom: clamp(1.1rem, 2.4vw, 1.8rem);
}

.bb-address__lines {
	display: flex;
	flex-direction: column;
}

.bb-address__icon,
.bb-contact-item__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 1.9rem;
	height: 1.9rem;
	color: var(--bb-gold-500);
}

.bb-icon {
	width: 100%;
	height: 100%;
}

.bb-contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: clamp(0.7rem, 1.6vw, 1.15rem);
}

.bb-contact-item {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	font-size: clamp(1rem, 0.95rem + 0.25vw, 1.16rem);
}

.bb-contact-item__body {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.5rem;
	min-width: 0;
}

.bb-contact-item__label {
	color: var(--bb-text);
}

.bb-contact-item a {
	color: var(--bb-text);
	text-decoration: none;
	word-break: break-word;
	border-bottom: 1px solid transparent;
}

.bb-contact-item a:hover,
.bb-contact-item a:focus-visible {
	color: var(--bb-gold-100);
	border-bottom-color: currentColor;
}

.bb-contact-item .bb-link {
	color: var(--bb-gold-500);
}

/* ---------------------------------------------------- 6 Fußzeile */
.bb-footer {
	border-top: 1px solid var(--bb-gold-line);
	padding-block: 0.9rem 1.1rem;
	background: var(--bb-black);
}

.bb-footer__line {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.35rem 0.7rem;
	margin: 0;
	font-size: 0.86rem;
	color: var(--bb-text-dim);
	text-align: center;
}

.bb-footer__sep {
	color: var(--bb-gold-700);
}

.bb-footer__link {
	color: var(--bb-gold-500);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.bb-footer__link:hover,
.bb-footer__link:focus-visible {
	color: var(--bb-gold-100);
	border-bottom-color: currentColor;
}

.bb-footer__menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem 1rem;
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
	font-size: 0.86rem;
}

/* Nach-oben-Knopf */
.bb-totop {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 20;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--bb-gold-700);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.8);
	color: var(--bb-gold-500);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.bb-totop.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

/* ------------------------------------- 7 Inhalte aus WordPress */
.bb-card--single {
	max-width: 900px;
	margin-inline: auto;
}

.bb-card--center {
	text-align: center;
}

.bb-prose--page p {
	text-align: left;
}

.bb-prose--page h2,
.bb-prose--page h3 {
	margin-top: 1.8em;
	margin-bottom: 0.5em;
}

.bb-prose--page h2 { font-size: 1.6rem; }
.bb-prose--page h3 { font-size: 1.3rem; }

.bb-prose ul,
.bb-prose ol {
	margin: 0 0 1.15em;
	padding-left: 1.3em;
}

.bb-prose li { margin-bottom: 0.4em; }

.bb-prose blockquote {
	margin: 1.5em 0;
	padding: 0.6em 0 0.6em 1.2em;
	border-left: 2px solid var(--bb-gold-700);
	color: var(--bb-text-dim);
	font-style: italic;
}

.bb-prose table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.4em;
}

.bb-prose th,
.bb-prose td {
	border: 1px solid rgba(167, 122, 57, 0.5);
	padding: 0.5em 0.7em;
	text-align: left;
}

.bb-prose img {
	border-radius: 10px;
}

.bb-meta {
	color: var(--bb-text-dim);
	font-size: 0.9rem;
	margin: -0.4rem 0 1.2rem;
}

.bb-list__item + .bb-list__item {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(167, 122, 57, 0.35);
}

.bb-back {
	margin: 2rem 0 0;
}

.bb-pagination {
	margin-top: 2rem;
	font-size: 0.95rem;
}

.bb-pagination .page-numbers {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	border: 1px solid transparent;
	border-radius: 6px;
	text-decoration: none;
}

.bb-pagination .current {
	border-color: var(--bb-gold-700);
	color: var(--bb-gold-100);
}

/* ---------------------------------------------------- 8 Ab Tablet */
@media (min-width: 48em) {

	.bb-hero {
		--bb-hero-height: clamp(380px, 50vw, 760px);
	}

	.bb-langbar {
		position: absolute;
		top: clamp(0.6rem, 1.6vw, 1.4rem);
		right: clamp(0.6rem, 1.8vw, 1.6rem);
		z-index: 3;
		padding: 0;
		border-bottom: 0;
	}

	.bb-lang {
		min-width: 4rem;
		min-height: 2.9rem;
		font-size: 1.3rem;
	}

	.bb-hero__stage {
		aspect-ratio: auto;
		height: var(--bb-hero-height);
		min-height: var(--bb-hero-height);
	}

	.bb-hero__media img {
		object-position: 100% 50%;
	}

	.bb-hero__logo {
		left: clamp(1rem, 4vw, 3.4rem);
		bottom: clamp(1rem, 3.5vw, 2.8rem);
		width: min(38vw, 500px);
	}

	.bb-card__grid {
		grid-template-columns: minmax(0, 1.42fr) 1px minmax(0, 1fr);
		gap: clamp(1.6rem, 3.6vw, 3.2rem);
		align-items: start;
	}

	.bb-divider {
		width: 1px;
		height: 100%;
		min-height: 100%;
		background: linear-gradient(180deg, transparent, var(--bb-gold-line) 12%, var(--bb-gold-line) 88%, transparent);
	}

	.bb-star {
		width: 26px;
		height: 26px;
	}

	.bb-contact {
		padding-top: 0.35rem;
	}

	.bb-contact-item__body {
		flex-direction: column;
		gap: 0.1rem;
	}

	/* Im Desktop-Entwurf steht die Anschrift ohne Symbol. */
	.bb-address__icon {
		display: none;
	}

	.bb-contact-list {
		gap: clamp(0.9rem, 2vw, 1.5rem);
	}
}

@media (min-width: 64em) {
	.bb-suit { font-size: 1.3rem; }
}

/* ------------------------------------------- Rücksicht & Druck */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}

@media (prefers-contrast: more) {
	body { color: #fff; }
	.bb-card { border-color: var(--bb-gold-400); }
	.bb-contact-item a { text-decoration: underline; }
}

@media print {
	body { background: #fff; color: #000; }
	.bb-hero__media,
	.bb-hero__veil,
	.bb-suits,
	.bb-langbar,
	.bb-totop { display: none !important; }
	.bb-hero__stage { min-height: 0; }
	.bb-hero__logo { position: static; width: 220px; padding: 1rem; }
	.bb-card { border-color: #999; box-shadow: none; background: #fff; }
	h1, h2, h3, .bb-signature, a { color: #000 !important; }
	.bb-prose p { text-align: left; }
}
