/*
Theme Name: Spielzeit Wunderland
Theme URI: https://spielzeit-wunderland.at
Author: Spielzeit Wunderland
Description: Eigenes schlankes Block-Theme fuer Spielzeit Wunderland. Kein Page-Builder, warme Farben, abgerundete Elemente, selbst gehostete Schrift (Nunito) fuer DSGVO-Konformitaet.
Version: 0.3.7
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: spielzeit-wunderland
*/

body {
	overflow-x: hidden;
}

@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url('assets/fonts/nunito-latin.woff2') format('woff2-variations'), url('assets/fonts/nunito-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url('assets/fonts/nunito-latin-ext.woff2') format('woff2-variations'), url('assets/fonts/nunito-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+2113;
}


/* YouTube click-to-load facade */
.sw-yt-facade {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 20px;
	cursor: pointer;
	border: none;
	padding: 0;
	overflow: hidden;
	background-color: #2E2419;
}
.sw-yt-facade__thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.sw-yt-facade__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 72px;
	height: 72px;
	transform: translate(-50%, -50%);
	background-color: #E8663D;
	border-radius: 999px;
	box-shadow: 0 4px 16px rgba(0,0,0,.35);
	z-index: 2;
}
.sw-yt-facade__play::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-38%, -50%);
	border-style: solid;
	border-width: 14px 0 14px 22px;
	border-color: transparent transparent transparent #FFFFFF;
}
.sw-yt-facade__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 0.75rem 1rem;
	background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
	color: #fff;
	font-weight: 700;
	text-align: left;
}
.sw-yt-frame {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 20px;
	border: none;
}

/* Hero */
.sw-hero {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	aspect-ratio: 16 / 9;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.sw-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
}
.sw-hero__card {
	position: relative;
	z-index: 1;
	max-width: 620px;
	margin: 2rem;
	padding: 2.5rem 2rem;
	background: rgba(255, 249, 242, 0.92);
	border-radius: 28px;
	box-shadow: 0 12px 40px rgba(0,0,0,.25);
	text-align: center;
	backdrop-filter: blur(2px);
}
.sw-hero__title {
	font-size: 2.25rem;
	font-weight: 800;
	line-height: 1.2;
	color: #2E2419;
	margin: 0 0 .75rem;
}
.sw-hero__subtitle {
	font-size: 1.125rem;
	color: #2E2419;
	margin: 0 0 1.5rem;
}
.sw-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
}
.sw-hero__btn {
	display: inline-block;
	padding: .9rem 2rem;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
}
.sw-hero__btn--primary {
	background-color: #E8663D;
	color: #fff;
}
.sw-hero__btn--primary:hover {
	background-color: #C94F2B;
}
.sw-hero__btn--outline {
	background-color: transparent;
	color: #2E2419;
	border: 2px solid #2E2419;
}
@media (max-width: 600px) {
.sw-hero {
		aspect-ratio: auto;
		min-height: 400px;
	}
	.sw-hero__title {
		font-size: 1.4rem;
		margin-bottom: .5rem;
	}
	.sw-hero__subtitle {
		font-size: .95rem;
		margin-bottom: 1rem;
	}
	.sw-hero__card {
		padding: 1.5rem 1.25rem;
		margin: 1rem;
	}
	.sw-hero__btn {
		padding: .7rem 1.5rem;
		font-size: .95rem;
	}
	.sw-hero__buttons {
		gap: .6rem;
	}
}

/* Logo */
.sw-logo {
	display: flex;
	align-items: center;
	line-height: 0;
}
.sw-logo img {
	height: 48px;
	width: auto;
	display: block;
}
@media (max-width: 480px) {
	.sw-logo img {
		height: 34px;
	}
}

/* Decorative accents */
.sw-deco {
	position: absolute;
	pointer-events: none;
	z-index: 0;
	user-select: none;
}
.sw-deco--sm {
	width: 90px;
}
.sw-deco--md {
	width: 140px;
}

/* Heading flourishes */
.sw-heading-flourish {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	gap: 3rem;
	margin: 0.5rem 0 1.5rem;
}
.sw-heading-flourish img {
	width: 90px;
	height: auto;
	display: block;
}
.sw-heading-flourish--single {
	justify-content: center;
}
.sw-heading-flourish--single img {
	width: 110px;
}
@media (max-width: 480px) {
	.sw-heading-flourish img {
		width: 60px;
	}
	.sw-heading-flourish {
		gap: 1.5rem;
	}
}

/* Headings and card titles never hyphenate site-wide: mid-word breaks look broken, so wrap on word boundaries only */
h1, h2, h3, h4, h5, h6,
.wp-block-post-title {
	hyphens: none;
	-webkit-hyphens: none;
	overflow-wrap: normal;
	word-break: normal;
}

/* Body text in narrow columns/cards: hyphenation is fine here, it just needs to avoid overflow */
.wp-block-column p,
.sw-blog-card p {
	hyphens: auto;
	-webkit-hyphens: auto;
	overflow-wrap: normal;
	word-break: normal;
}

/* A wp:query nested inside a narrow wp:column (used for the "Neuer Blogartikel" mini-card)
   can end up wider than its column and overflow the card, cutting the post title off mid-word. */
.wp-block-columns .wp-block-column .wp-block-query,
.wp-block-columns .wp-block-column .wp-block-query * {
	max-width: 100%;
	box-sizing: border-box;
}
.wp-block-columns .wp-block-column .wp-block-query .wp-block-post-title {
	overflow-wrap: anywhere;
}

/* Blog cards grid */
.sw-blog-grid.is-layout-grid {
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 2rem !important;
}
@media (max-width: 900px) {
	.sw-blog-grid.is-layout-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 620px) {
	.sw-blog-grid.is-layout-grid { grid-template-columns: 1fr !important; }
}
.sw-blog-card {
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,.08);
	height: 100%;
	display: flex;
	flex-direction: column;
}
.sw-blog-card__image img {
	width: 100%;
	aspect-ratio: 16/10;
	object-fit: cover;
	display: block;
	margin: 0;
	border-radius: 0;
}
.sw-blog-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
}
.sw-blog-card__body .wp-block-post-title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.sw-blog-card__body .wp-block-post-excerpt__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.sw-blog-card__body .wp-block-read-more {
	display: inline-block;
	margin-top: auto;
	padding-top: 1rem;
	font-weight: 700;
	color: var(--wp--preset--color--primary) !important;
	text-decoration: none !important;
}
.sw-blog-card__body .wp-block-read-more:hover {
	color: var(--wp--preset--color--primary-dark) !important;
}

/* Category filter bar */
.sw-cat-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem;
	margin: 1.25rem 0 2.5rem;
}
.sw-cat-filter a {
	display: inline-block;
	padding: 0.5rem 1.2rem;
	border-radius: 999px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--background);
	color: var(--wp--preset--color--text);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
}
.sw-cat-filter a:hover,
.sw-cat-filter a.is-active {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

/* Lumi mascot accents */
.sw-lumi-wrap {
	position: relative;
}
.sw-lumi {
	position: absolute;
	pointer-events: none;
	z-index: 2;
	animation: sw-lumi-bob 3.2s ease-in-out infinite;
}
.sw-lumi img {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 6px 10px rgba(0,0,0,.12));
}
@keyframes sw-lumi-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
	.sw-lumi { animation: none; }
}

/* Hero: Lumi waves from just outside the card, bottom-right (background art already has a figure on the left) */
.sw-lumi--hero {
	right: -3.5rem;
	bottom: -0.5rem;
	width: 150px;
}

/* Video section: Lumi stands beside the video window, bottom-right, outside the frame */
.sw-lumi--point {
	right: -8.5rem;
	bottom: 0;
	top: auto;
	width: 130px;
}

/* Unterstuetzen: Lumi cheers just to the right of the treasure chest, not overlapping it */
.sw-lumi--cheer {
	left: auto;
	right: -0.5rem;
	top: 32%;
	bottom: auto;
	width: 120px;
}
@media (max-width: 780px) {
	.sw-lumi--hero { width: 90px; right: 0.5rem; bottom: -0.5rem; }
	.sw-lumi--point { width: 70px; right: 0.5rem; bottom: 0.5rem; }
	.sw-lumi--cheer { width: 70px; right: 0; top: 4%; }
}

/* Footer */
.sw-footer-grid {
	display: grid;
	grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 1fr));
	gap: 2.5rem 2rem;
	color: #FFF9F2;
}
.sw-footer-grid a {
	color: #FFF9F2;
	text-decoration: none;
	opacity: .92;
}
.sw-footer-grid a:hover {
	opacity: 1;
	text-decoration: underline;
}
.sw-footer-brand {
	font-weight: 800;
	font-size: 1.35rem;
	margin: 0 0 .5rem;
}
.sw-footer-tagline {
	margin: 0;
	opacity: .78;
	font-size: .95rem;
	max-width: 26rem;
}
.sw-footer-heading {
	margin: 0 0 .9rem;
	font-size: .8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	opacity: .6;
}
.sw-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: .6rem;
}
.sw-footer-links a {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
}
.sw-footer-links svg {
	flex: none;
	width: 18px;
	height: 18px;
}
.sw-footer-links--plain a {
	padding-left: 0;
}
.sw-footer-links .rcb-sc-link {
	color: #FFF9F2;
	opacity: .92;
	text-decoration: none;
	padding: 0;
	background: none;
	border: none;
	font: inherit;
	cursor: pointer;
}
.sw-footer-links .rcb-sc-link:hover {
	opacity: 1;
	text-decoration: underline;
}
.sw-footer-bottom {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 249, 242, .15);
	color: #FFF9F2;
	opacity: .75;
	font-size: .85rem;
}
.sw-footer-bottom p {
	margin: 0;
}
@media (max-width: 780px) {
	.sw-footer-grid { grid-template-columns: 1fr 1fr; }
	.sw-footer-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
	.sw-footer-grid { grid-template-columns: 1fr; }
}

/* Ausmalbilder category filter */
.sw-ausmal-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem;
	margin: 1.25rem 0;
}
.sw-ausmal-filter button {
	display: inline-block;
	padding: 0.5rem 1.2rem;
	border-radius: 999px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--background);
	color: var(--wp--preset--color--text);
	font: inherit;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
}
.sw-ausmal-filter button:hover,
.sw-ausmal-filter button.is-active {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: #fff;
}

/* Ausmalbilder gallery */
.sw-ausmal-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin: 1.5rem 0;
}
.sw-ausmal-card {
	background: var(--wp--preset--color--surface);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,.08);
	display: flex;
	flex-direction: column;
}
.sw-ausmal-card picture {
	display: block;
	background: #fff;
}
.sw-ausmal-card img {
	width: 100%;
	height: auto;
	display: block;
	border-bottom: 1px solid rgba(46,36,25,.08);
}
.sw-ausmal-card__title {
	margin: 1rem 1rem .25rem;
	font-weight: 800;
	color: var(--wp--preset--color--text);
	hyphens: none;
	overflow-wrap: normal;
}
.sw-ausmal-card__btn {
	display: block;
	margin: .75rem 1rem 1.25rem;
	padding: .7rem 1rem;
	text-align: center;
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
}
.sw-ausmal-card__btn:hover {
	background: var(--wp--preset--color--primary-dark);
}
@media (max-width: 780px) {
	.sw-ausmal-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
	.sw-ausmal-grid { grid-template-columns: 1fr; }
}

/* Themenwelten tiles */
.sw-theme-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}
.sw-theme-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: 1.75rem 1rem;
	border-radius: 20px;
	text-decoration: none !important;
	color: #fff !important;
	font-weight: 700;
	text-align: center;
	transition: transform .15s ease;
}
.sw-theme-tile:hover {
	transform: translateY(-3px);
}
.sw-theme-tile__icon {
	font-size: 2.5rem;
	line-height: 1;
}
.sw-theme-tile__label {
	hyphens: none;
	overflow-wrap: normal;
}
.sw-theme-tile--primary { background: var(--wp--preset--color--primary); }
.sw-theme-tile--accent { background: var(--wp--preset--color--accent); }
.sw-theme-tile--primary-dark { background: var(--wp--preset--color--primary-dark); }
.sw-theme-tile--secondary { background: var(--wp--preset--color--secondary); color: var(--wp--preset--color--text) !important; }
.sw-theme-tile--green { background: #5FA968; }
.sw-theme-tile--berry { background: #C9678A; }
@media (max-width: 780px) {
	.sw-theme-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
	.sw-theme-grid { grid-template-columns: 1fr; }
}

/* Rezepte */
.sw-rezept-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.5rem;
	margin: 1.5rem 0;
}
.sw-rezept-card {
	display: block;
	background: var(--wp--preset--color--surface);
	border-radius: 20px;
	padding: 1.75rem 1.5rem;
	box-shadow: 0 2px 10px rgba(0,0,0,.08);
	text-decoration: none !important;
	color: var(--wp--preset--color--text) !important;
}
.sw-rezept-card__icon {
	font-size: 2.5rem;
	line-height: 1;
	display: block;
	margin-bottom: .75rem;
}
.sw-rezept-card__title {
	font-weight: 800;
	font-size: 1.15rem;
	margin: 0 0 .4rem;
	hyphens: none;
	overflow-wrap: normal;
}
.sw-rezept-card__teaser {
	margin: 0;
	color: var(--wp--preset--color--text-muted);
	font-size: .95rem;
}
.sw-rezept {
	background: var(--wp--preset--color--surface);
	border-radius: 24px;
	padding: 2rem;
	margin: 2.5rem 0;
	scroll-margin-top: 2rem;
}
.sw-rezept__meta {
	display: inline-block;
	background: var(--wp--preset--color--background);
	border-radius: 999px;
	padding: .35rem 1rem;
	font-size: .85rem;
	font-weight: 700;
	color: var(--wp--preset--color--text-muted);
	margin-bottom: 1rem;
}
.sw-rezept__columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	margin: 1.5rem 0;
}
.sw-rezept__columns h3 {
	margin-top: 0;
}
.sw-rezept__columns ul {
	margin: 0;
	padding-left: 1.2rem;
}
.sw-rezept__columns li {
	margin-bottom: .3rem;
}
.sw-rezept ol {
	padding-left: 1.2rem;
}
.sw-rezept ol li {
	margin-bottom: .6rem;
}
.sw-rezept__tipp {
	background: var(--wp--preset--color--secondary);
	border-radius: 16px;
	padding: 1.25rem 1.5rem;
	margin-top: 1.5rem;
	font-weight: 600;
}
.sw-rezept__tipp strong {
	display: block;
	margin-bottom: .3rem;
}
.sw-rezept__note {
	margin-top: 1rem;
	font-style: italic;
	color: var(--wp--preset--color--text-muted);
}
@media (max-width: 600px) {
	.sw-rezept__columns { grid-template-columns: 1fr; gap: 1rem; }
	.sw-rezept { padding: 1.5rem 1.25rem; }
}

/* Section-edge background decoration, so the page doesn't go flat/sterile after the hero */
.sw-section-deco {
	position: relative;
	overflow: hidden;
}
.sw-section-deco::before,
.sw-section-deco::after {
	content: '';
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 260px;
	height: 260px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	opacity: 0.14;
	pointer-events: none;
	z-index: 0;
}
.sw-section-deco::before { left: -70px; }
.sw-section-deco::after { right: -70px; }
.sw-section-deco > * {
	position: relative;
	z-index: 1;
}
.sw-section-deco--flowers::before { background-image: url('assets/blume-2.png'); }
.sw-section-deco--flowers::after { background-image: url('assets/blume-1.png'); transform: translateY(-50%) scaleX(-1); }
.sw-section-deco--stones::before { background-image: url('assets/stein-1.png'); width: 200px; height: 200px; }
.sw-section-deco--stones::after { background-image: url('assets/stein-1.png'); width: 200px; height: 200px; transform: translateY(-50%) scaleX(-1); }
.sw-section-deco--leaves::before { background-image: url('assets/blume-1.png'); }
.sw-section-deco--leaves::after { background-image: url('assets/blume-2.png'); transform: translateY(-50%) scaleX(-1); }
@media (max-width: 900px) {
	.sw-section-deco::before, .sw-section-deco::after { width: 160px; height: 160px; opacity: 0.12; }
	.sw-section-deco--stones::before, .sw-section-deco--stones::after { width: 130px; height: 130px; }
}
@media (max-width: 600px) {
	.sw-section-deco::before, .sw-section-deco::after { display: none; }
}

/* Mobile navigation overlay menu — style it to match the brand instead of the bare WP default */
.wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--text) !important;
}
.wp-block-navigation__responsive-container-open svg,
.wp-block-navigation__responsive-container-close svg {
	width: 32px;
	height: 32px;
}
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--background) !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding: 5rem 2rem 2rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	top: 1.5rem;
	right: 1.25rem;
	color: var(--wp--preset--color--text) !important;
}
.wp-block-navigation__responsive-container.is-menu-open ul.wp-block-navigation__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	text-align: center;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--nunito);
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--wp--preset--color--text) !important;
	padding: 0.9rem 0;
	display: inline-block;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--primary) !important;
}
