/* Bausteine (Shortcodes nxtl_standort, nxtl_standortwahl, nxtl_faq, nxtl_buchen, nxtl_gutschein) – siehe inc/bausteine.php
 * Farben und Schrift aus dem Elementor-Kit: Primär #008FFF, Text #1B242F, Dunkel #11161D, Hell #EFF7FF, Schrift "Sandbox". */

.nxb {
	--nxb-primary: #008fff;
	--nxb-primary-dark: #0072cc;
	--nxb-text: #1b242f;
	--nxb-muted: #556e83;
	--nxb-dark: #11161d;
	--nxb-light: #eff7ff;
	--nxb-line: #e5e7eb;
	--nxb-star: #f5b301;
	font-family: Sandbox, sandbox, sans-serif;
	color: var(--nxb-text);
}
.nxb *, .nxb *::before, .nxb *::after { box-sizing: border-box; }
.nxb-title {
	margin: 0 0 16px;
	font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
	line-height: 1.15;
	font-weight: 700;
}

/* ── Buttons ────────────────────────────────────────────────────────
 * Bewusst eigene Klassen statt .btn: das Kit setzt .btn { color:#fff !important } (weißer Text auf
 * transparentem Grund). Werte wie das Kit: Radius 24px, Schriftgröße 1rem, Gewicht 500.
 * Buchen-Buttons tragen zusätzlich btn-buchen (Seitenskript → Drawer); das Kit setzt dort Farbe und
 * Radius per !important auf dieselben Werte. */
a.nxb-btn, .nxb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 24px;
	border: 0;
	border-radius: 24px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
a.nxb-btn--primary, .nxb-btn--primary { background: #008fff; color: #fff; }
a.nxb-btn--primary:hover, .nxb-btn--primary:hover { background: #0072cc; color: #fff; transform: translateY(-1px); }
a.nxb-btn--secondary, .nxb-btn--secondary { background: #fff; color: #008fff !important; box-shadow: inset 0 0 0 2px #008fff; }
a.nxb-btn--secondary:hover, .nxb-btn--secondary:hover { background: #eff7ff; transform: translateY(-1px); }
a.nxb-btn--light, .nxb-btn--light { background: #fff; color: #11161d !important; }
a.nxb-btn--light:hover, .nxb-btn--light:hover { background: #eff7ff; transform: translateY(-1px); }

/* ── Sterne ─────────────────────────────────────────────────────── */
.nxb-stars { display: inline-flex; gap: 1px; font-size: 1.25rem; line-height: 1; vertical-align: middle; }
.nxb-star { color: #c9d3dd; }
.nxb-star.is-on { color: var(--nxb-star, #f5b301); }

/* ── Standort-Karte ─────────────────────────────────────────────── */
.nxb-store {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	overflow: hidden;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 8px 30px rgba(17, 22, 29, .08);
}
.nxb-store__media img { display: block; width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.nxb-store__body { padding: 26px 24px 28px; }
.nxb-store__name { margin: 0 0 8px; font-size: 1.5rem; line-height: 1.2; font-weight: 700; }
.nxb-store__rating { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1rem; }
.nxb-store__rating strong { font-size: 1.15rem; }
.nxb-store__rating span { color: var(--nxb-muted); }
.nxb-store__address { margin: 0 0 16px; color: #334155; }
.nxb-store__address a { color: var(--nxb-primary); }
.nxb-store__hours h4 { margin: 0 0 6px; font-size: 1rem; font-weight: 700; }
.nxb-store__hours table, .nxb-store__hours .wpseo-opening-hours { font-size: .95rem; border: 0; width: auto; margin: 0; }
.nxb-store__hours td, .nxb-store__hours th { padding: 2px 14px 2px 0; border: 0; background: transparent; color: #334155; }
.nxb-store__hours tr { border: 0; }
.nxb-store__phone { margin: 14px 0 0; color: #334155; }
.nxb-store__phone a { color: var(--nxb-primary); font-weight: 700; }
.nxb-store__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 20px; }
.nxb-store__price { color: var(--nxb-muted); }
.nxb-store__more { color: var(--nxb-primary); text-decoration: underline; }
.nxb-store__others { margin: 18px 0 0; color: var(--nxb-muted); font-size: .95rem; }
.nxb-store__others a { margin-left: 8px; color: var(--nxb-primary); white-space: nowrap; }

/* ── Standortwahl ───────────────────────────────────────────────── */
.nxb-chooser { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.nxb-chooser li { margin: 0; }
.nxb-chooser a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 0 0 14px;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	color: var(--nxb-text);
	text-decoration: none;
	box-shadow: 0 4px 16px rgba(17, 22, 29, .06);
	transition: transform .15s ease;
}
.nxb-chooser a:hover { transform: translateY(-2px); }
.nxb-chooser img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 8px; }
.nxb-chooser strong { padding: 0 14px; font-size: 1.05rem; }
.nxb-chooser span { padding: 0 14px; font-size: .85rem; color: var(--nxb-muted); }

/* ── FAQ ────────────────────────────────────────────────────────── */
.nxb-faq__item { border-bottom: 1px solid var(--nxb-line); }
.nxb-faq__item summary {
	padding: 16px 32px 16px 0;
	font-size: 1.08rem;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
	position: relative;
}
.nxb-faq__item summary::-webkit-details-marker { display: none; }
.nxb-faq__item summary::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.4rem;
	color: var(--nxb-primary);
}
.nxb-faq__item[open] summary::after { content: "–"; }
.nxb-faq__answer { padding: 0 0 18px; line-height: 1.55; color: #334155; max-width: 760px; }
.nxb-faq__answer p { margin: 0 0 10px; }

/* ── Hero mit Foto-Überblendung ─────────────────────────────────── */
.nxb-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: var(--nxb-hero-h, 72vh);
	overflow: hidden;
	color: #fff;
	background: var(--nxb-dark);
	isolation: isolate;
}
.nxb-hero__media { position: absolute; inset: 0; z-index: -2; }
.nxb-hero__slide { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity 1.2s ease; }
.nxb-hero__slide.is-active { opacity: 1; }
.nxb-hero__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.nxb-hero__img--top { object-position: center 20%; }
.nxb-hero__img--bottom { object-position: center 80%; }
/* Leichter Zoom während ein Foto steht (nur bei mehreren Fotos, nicht bei reduzierter Bewegung). */
.nxb-hero--multi .nxb-hero__slide.is-active .nxb-hero__img { animation: nxb-hero-zoom 9s ease-out both; }
@keyframes nxb-hero-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.nxb-hero__shade {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(17, 22, 29, .15) 0%, rgba(17, 22, 29, .55) 55%, rgba(17, 22, 29, .95) 100%);
}
.nxb-hero__inner { width: 100%; max-width: 1120px; margin: 0 auto; padding: 96px 20px 44px; }
.nxb-hero__eyebrow {
	margin: 0 0 12px;
	font-size: .95rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #9fd3ff;
	font-weight: 700;
}
.nxb-hero__title {
	margin: 0 0 14px;
	max-width: 820px;
	font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem);
	line-height: 1.05;
	font-weight: 800;
	color: #fff;
}
.nxb-hero__text { margin: 0 0 22px; max-width: 640px; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); line-height: 1.5; color: #e6eef7; }
.nxb-hero__facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 26px; padding: 0; list-style: none; }
.nxb-hero__facts li { display: flex; flex-direction: column; min-width: 90px; margin: 0; }
.nxb-hero__facts strong { font-size: 1.4rem; line-height: 1.1; }
.nxb-hero__facts span { font-size: .85rem; color: #c7d4e2; }
.nxb-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-bottom: 14px; }
.nxb-hero__price { font-size: 1rem; color: #e6eef7; }
.nxb-hero__store { margin: 0; font-size: .95rem; color: #c7d4e2; }
.nxb-hero__switch { margin-left: 10px; color: #9fd3ff !important; text-decoration: underline; }
.nxb-hero__dots { position: absolute; right: 20px; bottom: 18px; display: flex; gap: 8px; }
.nxb-hero__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .45);
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}
.nxb-hero__dot.is-active { background: #fff; transform: scale(1.2); }
@media (prefers-reduced-motion: reduce) {
	.nxb-hero__slide { transition: none; }
	.nxb-hero--multi .nxb-hero__slide.is-active .nxb-hero__img { animation: none; }
}

@media (min-width: 768px) {
	.nxb-hero__inner { padding: 140px 20px 64px; }
	.nxb-store { grid-template-columns: 5fr 7fr; }
	.nxb-store__body { padding: 34px 36px; }
}
@media (min-width: 1025px) {
	.nxb-hero__inner { padding-top: 120px; }
}

/* ── Standortkarte (inc/standortkarte.php) ─────────────────────────
 * Eigene SVG-Karte statt Google Maps. stil="dunkel" für dunkle Abschnitte (#11161d), "hell" sonst. */
.nxb-sk { --sk-bg: transparent; --sk-fg: #fff; --sk-muted: #a7b4c2; --sk-land: #223244; --sk-land-line: #35506b; --sk-card: #18212c; --sk-card-line: #263445; --sk-partner: #8a9bb0; }
.nxb-sk--hell { --sk-fg: #1b242f; --sk-muted: #556e83; --sk-land: #eff7ff; --sk-land-line: #c7dcef; --sk-card: #fff; --sk-card-line: #e5e7eb; --sk-partner: #8a9bb0; }
.nxb-sk { color: var(--sk-fg); }
.nxb-sk__eyebrow { margin: 0 0 6px; font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--nxb-primary); }
.nxb-sk__title { color: var(--sk-fg); margin-bottom: 24px; }
.nxb-sk__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.nxb-sk__map svg { display: block; width: 100%; height: auto; max-height: 640px; overflow: hidden; }
.nxb-sk__nb { fill: none; stroke: var(--sk-land-line); stroke-width: 1.2; opacity: .55; }
.nxb-sk__land { fill: var(--sk-land); stroke: var(--sk-land-line); stroke-width: 1.5; stroke-linejoin: round; }
.nxb-sk__pin { cursor: pointer; outline: none; }
.nxb-sk__pin text { font-family: Sandbox, sandbox, sans-serif; font-size: 23px; font-weight: 600; fill: var(--sk-fg); paint-order: stroke; stroke: var(--sk-land); stroke-width: 5px; stroke-linejoin: round; pointer-events: none; }
.nxb-sk__dot { fill: var(--nxb-primary); stroke: #fff; stroke-width: 3; transition: r .15s ease; }
.nxb-sk__halo { fill: var(--nxb-primary); opacity: 0; transition: opacity .15s ease; }
.nxb-sk__pin--partner .nxb-sk__dot { fill: var(--sk-partner); }
.nxb-sk__pin--partner text, .nxb-sk__pin--bald text { font-weight: 500; fill: var(--sk-muted); }
.nxb-sk__pin--bald .nxb-sk__dot { fill: var(--sk-land); stroke: var(--nxb-primary); stroke-dasharray: 4 3; }
.nxb-sk__pin:hover .nxb-sk__halo, .nxb-sk__pin:focus-visible .nxb-sk__halo, .nxb-sk__pin.is-active .nxb-sk__halo { opacity: .28; }
.nxb-sk__pin.is-active .nxb-sk__dot { r: 13; }
.nxb-sk__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; font-size: .85rem; color: var(--sk-muted); }
.nxb-sk__key { display: inline-block; width: 11px; height: 11px; margin-right: 7px; border: 2px solid #fff; border-radius: 50%; vertical-align: -1px; background: var(--nxb-primary); }
.nxb-sk__key--partner { background: var(--sk-partner); }
.nxb-sk__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 8px; }
.nxb-sk__plz { display: flex; margin: 0; }
/* Das Kit stylt button/input global (rosa Hover) – hier bewusst überschreiben. */
.nxb-sk .nxb-sk__plz input[type="text"] { width: 112px; min-height: 40px; margin: 0; padding: 8px 14px !important; border: 1px solid var(--sk-card-line) !important; border-right: 0 !important; border-radius: 20px 0 0 20px !important; background: var(--sk-card) !important; color: var(--sk-fg) !important; font: inherit; font-size: .95rem; box-shadow: none !important; }
.nxb-sk .nxb-sk__plz input[type="text"]::placeholder { color: var(--sk-muted); opacity: 1; }
.nxb-sk .nxb-sk__plz input[type="text"]:focus { outline: none; border-color: var(--nxb-primary) !important; }
.nxb-sk .nxb-sk__plz button, .nxb-sk .nxb-sk__near { min-height: 40px; margin: 0; padding: 8px 16px !important; border: 1px solid var(--nxb-primary) !important; background: var(--nxb-primary) !important; color: #fff !important; font: inherit; font-size: .92rem !important; font-weight: 500; line-height: 1.2; text-transform: none !important; letter-spacing: normal !important; box-shadow: none !important; cursor: pointer; transition: background-color .15s ease; }
.nxb-sk .nxb-sk__plz button { border-radius: 0 20px 20px 0 !important; }
.nxb-sk .nxb-sk__near { border-radius: 20px !important; background: transparent !important; color: var(--sk-fg) !important; border-color: var(--sk-card-line) !important; }
.nxb-sk .nxb-sk__plz button:hover, .nxb-sk .nxb-sk__plz button:focus-visible { background: var(--nxb-primary-dark) !important; border-color: var(--nxb-primary-dark) !important; color: #fff !important; }
.nxb-sk .nxb-sk__near:hover, .nxb-sk .nxb-sk__near:focus-visible { background: transparent !important; border-color: var(--nxb-primary) !important; color: var(--nxb-primary) !important; }
.nxb-sk .nxb-sk__near:disabled { opacity: .6; cursor: progress; }
/* Browser-Element <geolocation> (Chrome 144+): Chrome prüft Kontrast (mind. 3:1), deckende Farben und
 * Mindestgrößen, sonst ist der Knopf gesperrt. Daher volle Farben, keine Transparenz. */
.nxb-sk geolocation.nxb-sk__geo { display: contents; }
.nxb-sk--geo-el geolocation.nxb-sk__geo { display: inline-block; box-sizing: border-box; height: 40px; min-height: 40px; padding: 0 18px; border: 0; border-radius: 24px; background-color: #008fff; color: #ffffff; font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1.2; outline: none; cursor: pointer; transition: background-color .15s ease; }
.nxb-sk--geo-el geolocation.nxb-sk__geo:hover { background-color: #0072cc; }
.nxb-sk--geo-el geolocation.nxb-sk__geo:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.nxb-sk--hell.nxb-sk--geo-el geolocation.nxb-sk__geo:focus-visible { outline-color: #11161d; }
/* Eigene Position auf der Karte */
.nxb-sk__me-dot { fill: #ffffff; stroke: var(--nxb-primary); stroke-width: 5; }
.nxb-sk__me-pulse { fill: #ffffff; opacity: .35; transform-box: fill-box; transform-origin: center; animation: nxb-sk-pulse 2s ease-out infinite; }
.nxb-sk__me-legend { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: .85rem; color: var(--sk-muted); }
.nxb-sk__me-legend[hidden] { display: none; }
.nxb-sk__me-legend i { display: inline-block; width: 13px; height: 13px; border: 3px solid var(--nxb-primary); border-radius: 50%; background: #fff; }
@keyframes nxb-sk-pulse { from { transform: scale(.6); opacity: .5; } to { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nxb-sk__me-pulse { animation: none; } }
.nxb-sk__status { min-height: 1.2em; margin: 0 0 10px; font-size: .85rem; line-height: 1.4; color: var(--sk-muted); }
.nxb-sk__status:empty { margin: 0; min-height: 0; }
.nxb-sk__credit { margin: 10px 0 0; font-size: .72rem; color: var(--sk-muted); }
.nxb-sk__credit a { color: inherit; }
.nxb-sk__list { list-style: none; margin: 0; padding: 0 4px 0 0; max-height: 600px; overflow-y: auto; scrollbar-width: thin; display: grid; gap: 10px; }
.nxb-sk__item { margin: 0; padding: 16px 18px; border: 1px solid var(--sk-card-line); border-radius: 16px; background: var(--sk-card); transition: border-color .15s ease, box-shadow .15s ease; scroll-margin: 12px; }
.nxb-sk__item.is-active { border-color: var(--nxb-primary); box-shadow: 0 0 0 1px var(--nxb-primary); }
.nxb-sk__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.nxb-sk__name { margin: 0; font-size: 1.15rem; line-height: 1.25; font-weight: 700; color: var(--sk-fg); }
.nxb-sk__badge { padding: 2px 9px; border-radius: 10px; font-size: .75rem; font-weight: 600; color: var(--sk-muted); border: 1px solid var(--sk-card-line); }
.nxb-sk__badge--bald { color: var(--nxb-primary); border-color: var(--nxb-primary); }
.nxb-sk__dist { margin-left: auto; font-size: .85rem; color: var(--sk-muted); }
.nxb-sk__addr { margin: 4px 0 0; font-size: .95rem; color: var(--sk-muted); }
.nxb-sk__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 12px 0 0; }
.nxb-sk__actions:empty { display: none; }
a.nxb-btn--sm, .nxb-btn--sm { min-height: 40px; padding: 9px 18px; font-size: .95rem; }
a.nxb-sk__link { color: var(--nxb-primary); font-size: .95rem; text-decoration: none; }
a.nxb-sk__link:hover { text-decoration: underline; }
.nxb-sk__item--partner .nxb-sk__name, .nxb-sk__item--bald .nxb-sk__name { font-weight: 600; }
@media (max-width: 860px) {
	.nxb-sk__grid { grid-template-columns: 1fr; gap: 20px; }
	.nxb-sk__map svg { max-height: 460px; margin: 0 auto; }
	.nxb-sk__list { max-height: none; overflow: visible; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { .nxb-sk__dot, .nxb-sk__halo, .nxb-sk__item { transition: none; } }
