/* Werbung & Partner (STK_Ads). Colours come from each ad: --ad-bg, --ad-fg, --ad-accent. */
.stk-ad-slot, .stk-ads-preview-inner { container: stkad / inline-size; }
.stk-ad-slot { margin: 28px auto; max-width: 980px; display: grid; gap: 16px; }
.stk-ad-slot.is-front { padding: 0 20px; }
.stk-ad-slot.is-card, .stk-ad-slot.is-account, .stk-ad-slot.is-booking_done { max-width: 720px; }

.stk-ad {
	--ad-bg: #1c1318; --ad-fg: #fff; --ad-accent: #d9a38f;
	position: relative; overflow: hidden; box-sizing: border-box;
	background: var(--ad-bg); color: var(--ad-fg);
	border-radius: 20px; padding: 28px 30px 26px;
	font: inherit; line-height: 1.5; text-align: left;
	isolation: isolate;
}
.stk-ad *, .stk-ad *::before, .stk-ad *::after { box-sizing: border-box; }
/* Quiet label: plain small text, no pill */
.stk-ad-label {
	position: absolute; top: 18px; right: 22px;
	font-size: 11.5px; font-weight: 400; letter-spacing: 0;
	color: color-mix(in srgb, var(--ad-fg) 55%, transparent);
}
.stk-ad-logo { display: block; max-height: 40px; max-width: 170px; width: auto; height: auto; margin: 0 0 14px; object-fit: contain; }
.stk-ad-wordmark {
	display: block; margin: 0 0 14px;
	font: italic 500 22px/1 var(--wp--preset--font-family--display, "Cormorant Garamond"), Georgia, serif;
	color: var(--ad-accent);
}
.stk-ad .stk-ad-head {
	margin: 0 0 10px; padding-right: 0; max-width: 20em;
	font: 500 clamp(24px, 3vw, 30px)/1.12 var(--wp--preset--font-family--display, "Cormorant Garamond"), Georgia, serif;
	letter-spacing: -.005em; color: inherit;
}
.stk-ad .stk-ad-text { margin: 0 0 20px; font-size: 15px; color: color-mix(in srgb, var(--ad-fg) 74%, transparent); max-width: 54ch; }
.stk-ad-actions { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--ad-fg) 14%, transparent); }

/* Text link with an arrow, so the ad never competes with the studio's own buttons */
.stk-ad .stk-ad-btn {
	display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0;
	background: none; color: var(--ad-fg); border: 0;
	font-weight: 600; font-size: 15px;
	text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
	text-decoration-color: color-mix(in srgb, var(--ad-accent) 70%, transparent);
}
.stk-ad .stk-ad-btn svg { width: 15px; height: 15px; flex: none; transition: transform .2s ease; }
.stk-ad .stk-ad-btn:hover { color: var(--ad-fg); text-decoration-color: var(--ad-accent); }
.stk-ad .stk-ad-btn:hover svg { transform: translateX(3px); }
.stk-ad .stk-ad-btn:focus-visible, .stk-ad .stk-ad-store:focus-visible { outline: 2px solid var(--ad-fg); outline-offset: 3px; }

.stk-ad-stores { display: flex; flex-wrap: wrap; gap: 8px; }
.stk-ad .stk-ad-store {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 11px;
	border-radius: 11px; background: #000; color: #fff; text-decoration: none;
	border: 1px solid rgba(255, 255, 255, .22); transition: transform .18s ease, border-color .18s ease;
}
.stk-ad .stk-ad-store:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, .5); color: #fff; }
.stk-ad-store svg { width: 20px; height: 20px; flex: none; }
.stk-ad-store span { display: flex; flex-direction: column; font-size: 15px; font-weight: 650; line-height: 1.05; }
.stk-ad-store small { font-size: 10px; font-weight: 500; opacity: .8; letter-spacing: .02em; }

/* App layout: copy plus a phone frame */
.stk-ad.is-app { display: grid; grid-template-columns: 1fr 150px; gap: 26px; align-items: center; padding: 30px 30px 0 30px; }
.stk-ad.is-app .stk-ad-copy { padding-bottom: 28px; }
.stk-ad.is-app.no-shot { grid-template-columns: 1fr; padding-bottom: 0; }
.stk-ad.is-app .stk-ad-stores { margin-bottom: 12px; }
.stk-ad-web { margin: 0; }
.stk-ad.is-app .stk-ad-web .stk-ad-btn {
	background: transparent; color: var(--ad-fg); padding: 0; min-height: 0; font-size: 14px;
	text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--ad-fg) 40%, transparent);
}
.stk-ad.is-app .stk-ad-web .stk-ad-btn:hover { transform: none; color: var(--ad-fg); text-decoration-color: var(--ad-accent); }
.stk-ad-phone {
	align-self: end; width: 150px; height: 230px; border-radius: 26px 26px 0 0; padding: 9px 9px 0;
	background: #0d0d0f; border: 1px solid rgba(255, 255, 255, .14); border-bottom: 0;
	box-shadow: 0 -10px 34px -12px rgba(0, 0, 0, .5);
}
.stk-ad-screen {
	height: 100%; border-radius: 18px 18px 0 0; overflow: hidden; display: grid; place-items: center;
	background: linear-gradient(160deg, var(--ad-accent), color-mix(in srgb, var(--ad-accent) 45%, var(--ad-bg)));
}
.stk-ad-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.stk-ad-screen span { font-weight: 800; font-size: 17px; color: #1c1318; text-align: center; padding: 0 10px; line-height: 1.15; }

/* Banner: one row */
.stk-ad.is-banner { padding: 14px 18px; border-radius: 14px; }
.stk-ad.is-banner .stk-ad-label { position: static; flex: none; }
.stk-ad.is-banner { display: flex; align-items: center; gap: 14px; }
.stk-ad-row { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; flex-wrap: wrap; }
.stk-ad.is-banner .stk-ad-head { margin: 0; padding: 0; font-size: 20px; max-width: none; flex: 1; min-width: 180px; }
.stk-ad.is-banner .stk-ad-logo, .stk-ad.is-banner .stk-ad-wordmark { margin: 0; max-height: 28px; }

@container stkad (max-width: 560px) {
	.stk-ad { padding: 22px 20px 18px; border-radius: 18px; }
	.stk-ad-label { top: 16px; right: 18px; }
	.stk-ad.is-app { grid-template-columns: 1fr; padding: 24px 20px 0; gap: 0; }
	.stk-ad-phone { justify-self: center; width: 132px; height: 120px; }
	.stk-ad .stk-ad-head { padding-right: 0; }
	.stk-ad.is-banner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	.stk-ad .stk-ad-btn svg, .stk-ad .stk-ad-store { transition: none; }
}

/* ---------- wp-admin editor ---------- */
.stk-ads-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 520px); gap: 24px; align-items: start; margin-top: 12px; }
.stk-ads-box { background: #fff; border: 1px solid #dcdcde; border-radius: 10px; padding: 16px 18px 6px; margin: 0 0 16px; }
.stk-ads-box h2 { margin: 0 0 12px; font-size: 15px; }
.stk-ads-field { display: block; margin: 0 0 12px; }
.stk-ads-field > span { display: block; font-weight: 600; margin-bottom: 4px; }
.stk-ads-field input[type=text], .stk-ads-field input[type=url], .stk-ads-field input[type=date], .stk-ads-field textarea, .stk-ads-field select { width: 100%; max-width: 100%; }
.stk-ads-field input[type=color] { width: 64px; height: 34px; padding: 2px; }
.stk-ads-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stk-ads-colors { grid-template-columns: repeat(3, auto); justify-content: start; gap: 22px; }
.stk-ads-check { display: block; margin: 0 0 12px; font-weight: 600; }
.stk-ads-places { border: 0; padding: 0; margin: 0 0 12px; }
.stk-ads-places legend { font-weight: 600; margin-bottom: 6px; }
.stk-ads-places label { display: block; margin: 0 0 6px; }
.stk-ads-places small { color: #646970; }
.stk-ads-lang { display: inline-flex; border: 1px solid #c3c4c7; border-radius: 6px; overflow: hidden; margin-bottom: 12px; }
.stk-ads-lang button, .stk-ads-pv-sizes button { border: 0; background: #f6f7f7; padding: 5px 12px; cursor: pointer; }
.stk-ads-lang button.is-on, .stk-ads-pv-sizes button.is-on { background: #2271b1; color: #fff; }
.stk-ads-media { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.stk-ads-thumb { width: 88px; height: 88px; border: 1px dashed #c3c4c7; border-radius: 8px; display: grid; place-items: center; overflow: hidden; background: #f6f7f7; flex: none; }
.stk-ads-thumb img { max-width: 100%; max-height: 100%; }
.stk-ads-preview-col { position: sticky; top: 46px; }
.stk-ads-preview-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.stk-ads-preview-head h2 { margin: 0 auto 0 0; font-size: 15px; }
.stk-ads-pv-sizes { display: inline-flex; border: 1px solid #c3c4c7; border-radius: 6px; overflow: hidden; }
.stk-ads-preview { background: #f3efe9; border-radius: 12px; padding: 18px; min-height: 160px; }
.stk-ads-preview-inner { margin: 0 auto; transition: max-width .2s ease; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.stk-ads-preview-inner.is-loading { opacity: .55; }
.stk-ads-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; background: #f0f0f1; }
.stk-ads-pill.is-on { background: #d1f0dc; color: #0a5c2b; }
.stk-ads-table .num { text-align: right; }
@media (max-width: 1100px) { .stk-ads-editor { grid-template-columns: 1fr; } .stk-ads-preview-col { position: static; } }

/* Partner tiles on the loyalty card */
.stk-ad-tiles { margin: 22px 0 6px; }
.stk-ad-tiles h2 { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint, rgba(255, 255, 255, .55)); }
.stk-ad-tiles ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stk-ad-tile {
	--ad-bg: #1c1318; --ad-fg: #fff; --ad-accent: #d9a38f;
	display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 14px 12px 12px;
	border-radius: 16px; text-decoration: none; box-sizing: border-box;
	background: color-mix(in srgb, var(--ad-bg) 88%, #fff 6%); color: var(--ad-fg);
	border: 1px solid color-mix(in srgb, var(--ad-fg) 12%, transparent);
	transition: transform .18s ease, border-color .18s ease;
}
.stk-ad-tile:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--ad-accent) 60%, transparent); color: var(--ad-fg); }
.stk-ad-tile:focus-visible { outline: 2px solid var(--ad-accent); outline-offset: 2px; }
.stk-ad-tile-icon {
	flex: none; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
	background: var(--ad-accent); color: #1c1318; font-weight: 800; font-size: 16px; letter-spacing: .02em;
}
.stk-ad-tile-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stk-ad-tile-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.stk-ad-tile-body b { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.stk-ad-tile-body b em {
	font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	padding: 2px 6px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ad-fg) 26%, transparent);
	color: color-mix(in srgb, var(--ad-fg) 70%, transparent);
}
.stk-ad-tile-body > span { font-size: 13.5px; color: color-mix(in srgb, var(--ad-fg) 72%, transparent); }
.stk-ad-tile-body small { font-size: 12.5px; font-weight: 650; color: var(--ad-accent); }
.stk-ad-tile-go { flex: none; width: 20px; height: 20px; color: color-mix(in srgb, var(--ad-fg) 55%, transparent); }
.stk-ad-tile-go svg { width: 100%; height: 100%; display: block; }

/* Perk line in large ads */
.stk-ad .stk-ad-perk { margin: -8px 0 20px; font-size: 14px; font-weight: 600; color: var(--ad-accent); }
.stk-ads-preview-inner .stk-ad-tiles h2 { color: #8c8f94; }
.stk-ad .stk-ad-store[hidden] { display: none; }
