/* Seiten-Editor (Admin › Website & Shop › Seiten): Bausteine der eingeschalteten Seiten. Farben aus den Variablen der Website. */

/* Bis feststeht, ob die eigene Seite kommt, bleibt die feste Seite kurz unsichtbar; ohne Skript erscheint sie nach 1,6 s */
.sp-pending { visibility: hidden; animation: sp-show 0s linear 1.6s forwards; }
@keyframes sp-show { to { visibility: visible; } }

#sitePageRoot { position: relative; z-index: 1; }
.sp-sec { padding: 28px 0; }
.sp-sec.sp-band { padding: 48px 0; }
.sp-sec:first-child:not(.page-hero) { padding-top: 120px; }
.sp-left .sp-head, .sp-left .sp-buttons, .sp-left .sp-text { text-align: left; justify-content: flex-start; margin-left: 0; }

/* Kopf */
.sp-hero { text-align: center; }
.sp-hero.sp-left { text-align: left; }
.sp-hero-img { background-image: linear-gradient(180deg, rgba(10,10,10,.55), rgba(10,10,10,.85)), var(--sp-hero-img); background-size: cover; background-position: center; }
.sp-eyebrow { margin-bottom: 14px; }
.sp-hero-text { max-width: 640px; margin: 0 auto; }
.sp-hero.sp-left .sp-hero-text { margin: 0; }
.sp-hero-note { margin-top: 10px; font-size: 13px; color: var(--ink3); }
.sp-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.sp-hero-buttons { margin-top: 28px; }

/* Überschrift */
.sp-head { text-align: center; max-width: 760px; margin: 0 auto; }
.sp-head-visual { margin-bottom: 10px; display: flex; justify-content: center; color: var(--accent); }
.sp-left .sp-head-visual { justify-content: flex-start; }
.sp-title { margin: 0; }
.sp-head-text { color: var(--ink3); margin-top: 8px; }

/* Text */
.sp-text { max-width: 820px; margin: 0 auto; color: var(--ink2); line-height: 1.65; }
.sp-rt-p { margin: 0 0 12px; }
.sp-rt-h { margin: 18px 0 8px; color: var(--ink); }
.sp-rt-small { font-size: 12px; color: var(--ink4); margin: 0 0 10px; }
.sp-rt-quote { margin: 0 0 10px; padding: 6px 12px; border-left: 3px solid var(--accent); color: var(--ink2); background: rgba(255,0,0,.05); border-radius: 0 8px 8px 0; }
.sp-rt-list { margin: 0 0 12px; padding-left: 20px; }
.sp-rt-list li { margin: 4px 0; }
.sp-code { font-family: 'JetBrains Mono', monospace; font-size: .9em; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.07); }
.sp-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Banner und Bild */
.sp-banner, .sp-image { margin: 0 auto; }
.sp-banner img { display: block; width: 100%; border-radius: var(--rll, 18px); border: 1px solid rgba(255,0,0,.18); object-fit: cover; }
.sp-banner.sp-contain img { object-fit: contain; background: rgba(0,0,0,.25); }
.sp-h-s img { height: 160px; }
.sp-h-m img { height: 260px; }
.sp-h-l img { height: 380px; }
.sp-h-auto img { height: auto; }
.sp-image img { display: block; width: 100%; height: auto; border-radius: var(--rl, 14px); }
.sp-w-m { max-width: 520px; }
.sp-w-l { max-width: 860px; }
.sp-w-full { max-width: none; }
.sp-caption { text-align: center; font-size: 12px; color: var(--ink4); margin-top: 8px; }

/* Karten */
.sp-cards { display: grid; gap: 18px; grid-template-columns: repeat(var(--sp-cols, 3), minmax(0, 1fr)); }
.sp-cols-1 { --sp-cols: 1; max-width: 720px; margin: 0 auto; }
.sp-cols-2 { --sp-cols: 2; }
.sp-cols-3 { --sp-cols: 3; }
.sp-cols-4 { --sp-cols: 4; }
@media (max-width: 1000px) { .sp-cols-4, .sp-cols-3 { --sp-cols: 2; } }
@media (max-width: 640px) { .sp-cards { --sp-cols: 1 !important; } }
.sp-card {
 position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px;
 border-radius: var(--rll, 18px); background: linear-gradient(160deg, rgba(26,26,26,.7), rgba(17,17,17,.55));
 border: 1px solid var(--line, rgba(255,255,255,.08)); text-align: left;
}
.sp-card.is-hl { border-color: rgba(255,0,0,.55); box-shadow: 0 0 0 1px rgba(255,0,0,.2), 0 14px 40px -18px rgba(255,0,0,.55); }
.sp-badge {
 position: absolute; top: -10px; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px;
 font-size: 10px; font-weight: 700; letter-spacing: .08em; background: var(--accent, #ff0000); color: #fff; white-space: nowrap;
}
.sp-card-visual { color: var(--accent); display: flex; }
.sp-emoji { font-size: 30px; line-height: 1; }
.sp-visual-img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; }
.sp-card-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.sp-card-title { margin: 0; font-size: 1.15rem; color: var(--ink); }
.sp-card-sub { font-size: 12px; color: var(--ink3); }
.sp-card-text { color: var(--ink2); font-size: 14px; line-height: 1.55; }
.sp-card-text .sp-rt-list { padding-left: 0; list-style: none; }
.sp-card-text .sp-rt-list li { position: relative; padding-left: 18px; }
.sp-card-text .sp-rt-list li::before { content: ''; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--good, #22c55e); }
.sp-price { font-family: 'Space Grotesk', sans-serif; font-size: 1.9rem; font-weight: 700; color: var(--ink); margin-top: auto; }
.sp-price-note { font-size: 12px; color: var(--ink4); }
.sp-card-btn { margin-top: 6px; width: 100%; justify-content: center; }
/* Stufen: mittig wie die alten Partner-Stufen */
.sp-look-tier .sp-card { text-align: center; align-items: center; }
.sp-look-tier .sp-card-visual { justify-content: center; }
.sp-look-tier .sp-card-text .sp-rt-list li { text-align: left; }
/* Haken-Liste (Anforderungen): kleine Zeilen mit Symbol links */
.sp-look-check .sp-card { flex-direction: row; align-items: flex-start; gap: 12px; padding: 16px 18px; }
.sp-look-check .sp-card-visual { color: var(--good, #22c55e); margin-top: 2px; }
.sp-look-check .sp-card-title { font-size: 1rem; }

/* FAQ */
.sp-faq { max-width: 860px; margin: 0 auto; }
.sp-faq .faq-item summary { cursor: pointer; padding: 16px 4px; font-weight: 600; color: var(--ink); list-style: none; }
.sp-faq .faq-item summary::-webkit-details-marker { display: none; }
.sp-faq .faq-item summary::after { content: '+'; float: right; color: var(--accent); font-weight: 700; }
.sp-faq .faq-item[open] summary::after { content: '–'; }
.sp-faq-a { padding: 0 4px 16px; color: var(--ink2); line-height: 1.6; }

/* Hinweis */
.sp-note { max-width: 760px; margin: 0 auto; padding: 14px 18px; border-radius: var(--rl, 14px); font-size: 14px; line-height: 1.55; color: var(--ink2); text-align: center; }
.sp-tone-info { background: rgba(255,255,255,.04); border: 1px solid var(--line, rgba(255,255,255,.08)); }
.sp-tone-accent { background: rgba(255,0,0,.07); border: 1px solid rgba(255,0,0,.3); }
.sp-tone-warn { background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.35); }
.sp-note .sp-rt-p:last-child { margin-bottom: 0; }

/* Linie und Abstand */
.sp-hr { border: none; border-top: 1px solid var(--line, rgba(255,255,255,.08)); margin: 0; }
.sp-spacer.sp-s-s { height: 16px; }
.sp-spacer.sp-s-m { height: 40px; }
.sp-spacer.sp-s-l { height: 80px; }

body.light .sp-card { background: #fff; }

/* Die Abschnitte liegen jetzt in einer Hülle: über dem festen Hintergrund (Sterne, Leuchten) halten wie vorher main > section */
#sitePageFallback { position: relative; z-index: 1; }

/* Preis-Seite: Angebote aus dem Bot-Panel vollständig (ganzer Text der Kategorie, je Artikel eine Karte) */
.offer-cat-info {
 grid-column: 1 / -1; padding: 20px 22px; border-radius: var(--rll, 18px);
 background: linear-gradient(160deg, rgba(26,26,26,.6), rgba(17,17,17,.45)); border: 1px solid rgba(255,0,0,.18);
 color: var(--ink2); line-height: 1.6;
}
.offer-cat-title { margin: 0 0 10px; color: var(--ink); }
.offer-cat-info .offer-text-p, .offer-card-full .offer-text-p { margin: 0 0 10px; }
.offer-cat-info .offer-text-h, .offer-card-full .offer-text-h { display: block; margin: 12px 0 6px; color: var(--ink); }
.offer-card-full { color: var(--ink3); font-size: 14px; line-height: 1.55; }
