/* Boulder World - Startseite (separat, wird nur auf der Startseite geladen) */


/* ---------------------------------------------------------------- Startseite */

.bw-hero { position: relative; overflow: hidden; color: #fff; min-height: 560px; display: flex !important; flex-direction: column; justify-content: flex-end; padding-bottom: 72px; }
.bw-hero > .bw-hero__art { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important; z-index: 0; }
.bw-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 28, 34, 0) 35%, rgba(20, 28, 34, .65)); pointer-events: none; z-index: 1; }
.bw-hero > .bw-hero__inner { position: relative; z-index: 2; width: 100%; max-width: 1180px !important; margin: 0 auto !important; }
.bw-hero__title { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 14ch; margin: 12px 0 0; color: #fff; }
.bw-hero__title span { color: var(--bw-teal); }
.bw-hero__lead { font-size: 1.15rem; max-width: 46ch; margin: 18px 0 28px; opacity: .92; }
.bw-hero .wp-block-button__link { border-radius: 999px; }
.bw-btn-ghost .wp-block-button__link { color: #fff !important; border-color: rgba(255, 255, 255, .6) !important; background: rgba(255, 255, 255, .14) !important; }

.bw-section { padding-top: 80px; padding-bottom: 0; }
.bw-section--tight { padding-top: 72px; }
.bw-section__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 4px 0 28px; }
.bw-sec-head { margin-bottom: 8px; }
.bw-sec-head .bw-section__title { margin-bottom: 0; }
.bw-more a { font-weight: 600; color: var(--bw-rust-d); text-decoration: none; }

.bw-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bw-tile { position: relative; border-radius: var(--bw-radius); aspect-ratio: 1 / 1; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; box-shadow: var(--bw-shadow); text-decoration: none; transition: transform .2s; }
.bw-tile:hover { transform: translateY(-4px); }
.bw-tile h3 { font-size: 1.45rem; margin: 0; position: relative; z-index: 1; color: inherit; }
.bw-tile small { position: relative; z-index: 1; font-weight: 500; opacity: .8; }
.bw-tile svg { position: absolute; right: -10px; bottom: -10px; width: 62%; }
.t-teal { background: var(--bw-teal); color: var(--bw-ink); }
.t-rust { background: var(--bw-rust); color: #fff; }
.t-ink { background: var(--bw-ink); color: #fff; }
.t-sand { background: var(--bw-sand-2); color: var(--bw-ink); }
.bw-tile.t-rust:hover, .bw-tile.t-ink:hover { color: #fff; }
.bw-tile.t-teal:hover, .bw-tile.t-sand:hover { color: var(--bw-ink); }

.bw-path { background: var(--bw-chalk); border-radius: 28px; padding: 48px; display: grid; grid-template-columns: 1fr 2fr; gap: 48px; box-shadow: var(--bw-shadow); }
.bw-path h2 { font-size: 2.1rem; margin: 8px 0 14px; }
.bw-path p { color: var(--bw-ink-2); margin: 0; }
.bw-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.bw-step { border: 1px solid var(--bw-line); border-radius: var(--bw-radius); padding: 22px; }
.bw-step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--bw-teal); font-weight: 700; margin-bottom: 16px; font-family: var(--bw-display); }
.bw-step h3 { font-size: 1.15rem; margin: 0 0 6px; }
.bw-step p { font-size: .92rem; }
.bw-step a { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--bw-rust-d); font-size: .92rem; text-decoration: none; }

.bw-guide { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: start; }
.bw-guide h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 6px 0 14px; }
.bw-guide p { color: var(--bw-ink-2); }
.bw-checks { list-style: none; padding: 0; display: grid; gap: 10px; margin: 0 0 26px; }
.bw-checks li { display: flex; gap: 10px; align-items: flex-start; }
.bw-checks li::before { content: ""; flex: 0 0 20px; height: 20px; border-radius: 50%; margin-top: 3px; background: var(--bw-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='%231E2A32' stroke-width='2.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.bw-btn { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.4em; border-radius: 999px; font-weight: 600; background: var(--bw-rust); color: #fff !important; text-decoration: none; }
.bw-btn:hover { background: var(--bw-rust-d); }
.bw-guide__picks { display: grid; gap: 14px; }
.bw-pick { display: grid; gap: 2px; background: var(--bw-chalk); border-radius: var(--bw-radius); padding: 18px 20px; box-shadow: var(--bw-shadow); text-decoration: none; color: var(--bw-ink); border: 2px solid transparent; transition: transform .2s; }
.bw-pick:hover { transform: translateY(-3px); color: var(--bw-ink); }
.bw-pick--main { border-color: var(--bw-rust); }
.bw-pick b { font-family: var(--bw-display); font-size: 1.15rem; }
.bw-pick small { color: var(--bw-ink-2); }
.bw-badge { justify-self: start; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--bw-teal); color: var(--bw-ink); margin-bottom: 4px; }
.bw-pick--main .bw-badge { background: var(--bw-rust); color: #fff; }

.bw-lexbox { background: var(--bw-ink); color: #fff; border-radius: 28px; padding: 48px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; }
.bw-lexbox h2 { color: #fff; font-size: 2.1rem; margin: 8px 0 12px; }
.bw-lexbox p { opacity: .85; }
.bw-lexbox .bw-chip { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.bw-lexbox .bw-chip:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.bw-home-content .bw-content { background: var(--bw-chalk); border-radius: 28px; padding: 40px 44px; box-shadow: var(--bw-shadow); }
.bw-home-content .bw-content > h2:first-child { margin-top: 0; }

.bw-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bw-trust div { border-top: 3px solid var(--bw-teal); padding-top: 16px; }
.bw-trust h3 { font-size: 1.1rem; margin: 0 0 6px; }
.bw-trust p { font-size: .92rem; color: var(--bw-ink-2); margin: 0; }

.bw-404 { padding-top: 80px; }

/* v1.8: Kacheln - Grafik nicht über dem Untertitel */
.bw-tile small { max-width: 58%; line-height: 1.35; }
.bw-tile svg { width: 46%; right: -6px; bottom: -6px; z-index: 0; }
.bw-front-author .bw-author { margin-top: 0; }

/* Responsive Grundlayout der Startseite (muss nach den Basisregeln stehen) */
@media (max-width: 1000px) {
	.bw-tiles { grid-template-columns: repeat(2, 1fr); }
	.bw-path, .bw-guide, .bw-lexbox { grid-template-columns: 1fr; }
	.bw-steps, .bw-trust { grid-template-columns: 1fr; }
	.bw-guide { gap: 22px; }
}

/* Karussell-Punkte (werden per JS unter die Karussells gesetzt) */
.bw-carousel-dots { display: none; }

@media (max-width: 640px) {
	/* Themen-Kacheln: kompaktes 2er-Raster */
	.bw-tiles { gap: 10px; }
	.bw-tile { aspect-ratio: auto; min-height: 118px; padding: 14px; }
	.bw-tile h3 { font-size: 1.05rem; }
	.bw-tile small { display: none; }
	.bw-tile svg { width: 50%; }

	/* Karussells */
	.bw-steps, .bw-guide__picks, .bw-trust, .bw-posts .wp-block-post-template {
		display: flex !important; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px;
		margin-left: -20px !important; margin-right: -20px !important; padding: 4px 20px 16px !important; scrollbar-width: none; -webkit-overflow-scrolling: touch;
	}
	.bw-steps::-webkit-scrollbar, .bw-guide__picks::-webkit-scrollbar, .bw-trust::-webkit-scrollbar, .bw-posts .wp-block-post-template::-webkit-scrollbar { display: none; }
	.bw-steps > *, .bw-guide__picks > *, .bw-trust > *, .bw-posts .wp-block-post-template > * { flex: 0 0 82%; scroll-snap-align: start; }
	.bw-trust > div { background: var(--bw-chalk); border-radius: 18px; box-shadow: var(--bw-shadow); padding: 18px; border-top-width: 4px; }
	.bw-carousel-dots { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 2px; }
	.bw-carousel-dots button { all: unset; cursor: pointer; width: 8px; height: 8px; border-radius: 50%; background: var(--bw-line); transition: width .2s, background .2s; }
	.bw-carousel-dots button.is-active { width: 22px; border-radius: 99px; background: var(--bw-rust); }
	.bw-carousel-dots__count { font-size: .78rem; font-weight: 600; color: var(--bw-ink-2); margin-left: 8px; }

	/* Einstieg: schlanker Rahmen, Schritte als Karussell */
	.bw-path { padding: 24px 0 14px; gap: 18px; border-radius: 22px; overflow: hidden; }
	.bw-path > div:first-child { padding: 0 20px; }
	.bw-path h2 { font-size: 1.6rem; }
	.bw-path .bw-steps { margin: 0 !important; padding: 4px 20px 12px !important; scroll-padding: 0 20px; }
	.bw-step { background: var(--bw-sand); border: 0; }

	/* Lexikon: Begriffe als wischbare Reihe */
	.bw-lexbox { padding: 26px 0 22px; gap: 18px; overflow: hidden; }
	.bw-lexbox > .wp-block-group:first-child { padding: 0 22px; }
	.bw-lexbox h2 { font-size: 1.6rem; }
	.bw-lexbox .wp-block-buttons, .bw-lexbox .wp-block-button, .bw-lexbox .wp-block-button__link { width: 100%; text-align: center; }
	.bw-lexbox .bw-chips { flex-wrap: nowrap; overflow-x: auto; padding: 2px 22px 6px; scrollbar-width: none; }
	.bw-lexbox .bw-chips::-webkit-scrollbar { display: none; }
	.bw-lexbox .bw-chip { flex-shrink: 0; }
}

/* Kaufberatungs-Tipps mit Produktbild */
.bw-pick { grid-template-columns: 96px minmax(0, 1fr); column-gap: 18px; align-items: center; }
.bw-pick__img { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--bw-sand-2); }
.bw-pick__txt { display: grid; gap: 2px; min-width: 0; }
@media (max-width: 640px) {
	.bw-pick { grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; padding: 14px 16px; }
	.bw-pick__img { width: 76px; height: 76px; }
}

/* v1.9: Themen-Kacheln mit Foto-Stickern (weiße, gedrehte Karten) */
.bw-tile > svg { display: none; }
.bw-tile small { max-width: 52%; position: relative; z-index: 2; }
.bw-tile h3 { position: relative; z-index: 2; }
.bw-tile__sticker {
	position: absolute; z-index: 1; right: 9%; bottom: 10%; width: 44%; aspect-ratio: 1;
	background: #fff; border-radius: 18px; overflow: hidden; display: grid; place-items: center;
	box-shadow: 0 14px 30px rgba(20, 28, 34, .22), 0 2px 6px rgba(20, 28, 34, .12);
	transform: rotate(-6deg); transition: transform .25s ease;
}
.bw-tile:nth-child(even) .bw-tile__sticker { transform: rotate(5deg); }
.bw-tile:hover .bw-tile__sticker { transform: rotate(0deg) scale(1.04); }
.bw-tile__sticker img { width: 84%; height: 84%; object-fit: contain; }
.bw-tile__sticker.is-photo img { width: 100%; height: 100%; object-fit: cover; }
.bw-tile__sticker svg { width: 80%; height: 80%; }
@media (max-width: 640px) {
	.bw-tile__sticker { width: 46%; right: 8%; bottom: 12%; border-radius: 12px; }
	.bw-tile { min-height: 150px; }
}

/* v1.9.1 Hero-Foto (Pixabay 5190782, Duoton) */
.bw-hero { background: #10181E; }
.bw-hero > .bw-hero__art { left: auto !important; right: 0; width: 80% !important; }
.bw-hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; display: block;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%); mask-image: linear-gradient(90deg, transparent 0, #000 38%); }
.bw-hero::after { background: linear-gradient(90deg, rgba(16, 24, 30, .75) 0, rgba(16, 24, 30, .2) 45%, rgba(16, 24, 30, 0) 70%), linear-gradient(180deg, rgba(16, 24, 30, 0) 45%, rgba(16, 24, 30, .6)); }
@media (max-width: 700px) {
	.bw-hero { min-height: 640px; }
	.bw-hero > .bw-hero__art { width: 100% !important; height: 62% !important; }
	.bw-hero__art img { object-position: 50% 62%; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
	.bw-hero::after { background: linear-gradient(180deg, rgba(16, 24, 30, 0) 30%, rgba(16, 24, 30, .5) 60%, rgba(16, 24, 30, .2)); }
}

/* v1.30 Klettergriffe Ton in Ton in den Themenkacheln */
.t-teal { --hbg: var(--bw-teal); } .t-rust { --hbg: var(--bw-rust); } .t-sand { --hbg: var(--bw-sand-2); }
.t-ink { --hbg: var(--bw-ink); }
.bw-tile .bw-hold {
	--hf: color-mix(in srgb, var(--hbg) 91%, #000); --hs: color-mix(in srgb, var(--hbg) 83%, #000); --hb: color-mix(in srgb, var(--hbg) 72%, #000);
	position: absolute; z-index: 0; right: -14%; top: -16%; width: 66%; pointer-events: none;
	transform: rotate(var(--r, 0deg)); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1);
}
.t-ink .bw-hold { --hf: color-mix(in srgb, var(--hbg) 90%, #fff); --hs: color-mix(in srgb, var(--hbg) 94%, #fff); --hb: color-mix(in srgb, var(--hbg) 80%, #000); }
.bw-tile .bw-hold svg { position: static; display: block; width: 100%; height: auto; }
.bw-hold .f { fill: var(--hf); } .bw-hold .s { fill: var(--hs); } .bw-hold .b { fill: var(--hb); }
.bw-hold .l { fill: none; stroke: var(--hs); stroke-width: 7; stroke-linecap: round; }
.bw-tile:hover .bw-hold { transform: rotate(calc(var(--r, 0deg) + 8deg)); }
@media (prefers-reduced-motion: reduce) { .bw-tile .bw-hold { transition: none; } }
@media (max-width: 640px) { .bw-tile .bw-hold { width: 72%; right: -20%; top: -22%; } }

/* v1.48 Einstieg in vier Schritten (2 × 2), Schuh-Zeichnung in den Empfehlungen */
@media (min-width: 1001px) { .bw-path .bw-steps { grid-template-columns: repeat(2, 1fr); } }
.bw-pick__img.bw-shoe-ill { background: var(--bw-teal-l); padding: 14px 10px; box-sizing: border-box; box-shadow: none; }

/* v1.53.7 Barrierefreiheit: Untertitel auf Türkis ohne Transparenz (Kontrast 7:1), größere Tippflächen der Karussell-Punkte */
.t-teal small { opacity: 1; color: #24383C; }

/* v1.53.16 Startbild mobil: Foto frei über dem Text, Boulderer sichtbar */
@media (max-width: 700px) {
	.bw-hero { min-height: 0; justify-content: flex-start; padding-top: 0 !important; padding-bottom: 40px; }
	.bw-hero > .bw-hero__art { position: relative !important; inset: auto; height: 340px !important;
		width: calc(100% + 2 * var(--wp--style--root--padding-left, 20px)) !important;
		margin: 0 calc(-1 * var(--wp--style--root--padding-left, 20px)) -56px !important; }
	.bw-hero__art img { height: 100%; object-position: 50% 66%;
		-webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent); }
	.bw-hero::after { display: none; }
	.bw-hero .wp-block-buttons { gap: 10px; }
	.bw-hero .wp-block-button__link { padding-left: 14px; padding-right: 14px; }
}
