/* Softwareberater online – ergänzende Styles (Farben/Schrift kommen aus theme.json) */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(.wp-site-blocks) *:focus-visible { outline: 3px solid var(--wp--preset--color--blue); outline-offset: 2px; }
img { height: auto; }

/* ---------- Kopfzeile ---------- */
.sbo-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.96);
	backdrop-filter: saturate(180%) blur(8px);
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.admin-bar .sbo-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sbo-header { top: 0; } }
.sbo-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none !important; color: var(--wp--preset--color--navy) !important; }
.sbo-brand img { width: 40px; height: 40px; border-radius: 9px; display: block; }
.sbo-brand__name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.1; }
.sbo-brand__name span { color: var(--wp--preset--color--accent-dark); }
.sbo-brand__claim { display: block; font-weight: 500; font-size: .72rem; color: var(--wp--preset--color--muted); letter-spacing: 0; }
@media (max-width: 480px) { .sbo-brand__claim { display: none; } .sbo-brand__name { font-size: 1.05rem; } }
.sbo-header .wp-block-navigation a { text-decoration: none; }
.sbo-header .wp-block-navigation a:hover { color: var(--wp--preset--color--accent-dark); }
.sbo-header .wp-block-button__link { padding: .6rem 1.1rem; font-size: .9rem; }
@media (max-width: 900px) { .sbo-header .sbo-header-cta { display: none; } }

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease; box-shadow: 0 1px 2px rgba(15,23,42,.12); }
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(245,158,11,.35); }
.wp-block-button.is-style-sbo-secondary .wp-block-button__link {
	background: transparent; color: var(--wp--preset--color--navy);
	border: 2px solid var(--wp--preset--color--navy); box-shadow: none;
}
.wp-block-button.is-style-sbo-secondary .wp-block-button__link:hover { background: var(--wp--preset--color--navy); color: #fff; }
.has-navy-background-color .wp-block-button.is-style-sbo-secondary .wp-block-button__link,
.has-hero-gradient-background .wp-block-button.is-style-sbo-secondary .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.7); }
.has-hero-gradient-background .wp-block-button.is-style-sbo-secondary .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--navy); }
.sbo-cta-note { font-size: .78rem; color: var(--wp--preset--color--muted); margin-top: .4rem !important; }

/* ---------- Hero ---------- */
.sbo-hero { position: relative; overflow: hidden; }
.sbo-hero::after {
	content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
	background: radial-gradient(circle, rgba(245,158,11,.22) 0%, rgba(245,158,11,0) 70%); pointer-events: none;
}
.sbo-hero h1 { color: #fff; }
.sbo-hero h1 mark { background: none; color: var(--wp--preset--color--accent); }
.sbo-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.sbo-trust li { padding-left: 1.6rem; position: relative; font-weight: 500; }
.sbo-trust li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--wp--preset--color--accent); font-weight: 800; }
.sbo-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .78rem !important; }

/* ---------- Karten ---------- */
.is-style-sbo-card, .sbo-card {
	background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: 16px;
	box-shadow: 0 1px 3px rgba(15,23,42,.06); transition: box-shadow .2s ease, transform .2s ease;
}
.sbo-card--hover:hover { box-shadow: 0 12px 30px rgba(15,23,42,.12); transform: translateY(-2px); }
.sbo-card a.sbo-stretched { text-decoration: none; color: inherit; }
.sbo-card a.sbo-stretched::after { content: ""; position: absolute; inset: 0; }
.sbo-card { position: relative; }
.sbo-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem; background: var(--wp--preset--color--accent-light); margin: 0 !important; }

/* Produktkarte */
.sbo-product { display: flex; flex-direction: column; }
.wp-block-columns:has(> .sbo-product) { align-items: stretch !important; }
.sbo-product .wp-block-buttons { margin-top: auto; }
.sbo-badge {
	display: inline-block; font-size: .75rem !important; font-weight: 700; padding: .25rem .65rem; border-radius: 999px;
	background: var(--wp--preset--color--accent-light); color: var(--wp--preset--color--accent-dark); margin: 0 !important; width: fit-content;
}
.sbo-badge--blue { background: var(--wp--preset--color--blue-light); color: var(--wp--preset--color--blue); }
.sbo-product--featured { border: 2px solid var(--wp--preset--color--accent); box-shadow: 0 10px 30px rgba(245,158,11,.18); }
.sbo-meta { font-size: .9rem; color: var(--wp--preset--color--muted); }
.sbo-meta strong { color: var(--wp--preset--color--navy); }

/* Listen mit Haken / Kreuz */
.is-style-sbo-check, .is-style-sbo-cross { list-style: none; padding-left: 0; }
.is-style-sbo-check li, .is-style-sbo-cross li { position: relative; padding-left: 1.75rem; margin-bottom: .35rem; }
.is-style-sbo-check li::before { content: "✓"; position: absolute; left: 0; color: var(--wp--preset--color--success); font-weight: 800; }
.is-style-sbo-cross li::before { content: "✗"; position: absolute; left: 0; color: var(--wp--preset--color--danger); font-weight: 800; }

/* ---------- Vergleichstabelle ---------- */
.is-style-sbo-compare { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; border: 1px solid var(--wp--preset--color--border); }
.is-style-sbo-compare table { border-collapse: collapse; width: 100%; min-width: 640px; background: #fff; }
.is-style-sbo-compare th, .is-style-sbo-compare td { border: 0; border-bottom: 1px solid var(--wp--preset--color--border); padding: .85rem 1rem; text-align: left; vertical-align: top; }
.is-style-sbo-compare thead th { background: var(--wp--preset--color--navy); color: #fff; font-weight: 700; }
.is-style-sbo-compare tbody tr:nth-child(even) td { background: var(--wp--preset--color--surface); }
.is-style-sbo-compare tbody td:first-child { font-weight: 700; color: var(--wp--preset--color--navy); }
.is-style-sbo-compare a { font-weight: 700; }
.is-style-sbo-compare figcaption { font-size: .8rem; color: var(--wp--preset--color--muted); padding: .5rem 1rem; }

/* ---------- Hinweis- und Info-Boxen ---------- */
.sbo-disclosure { font-size: .75rem; line-height: 1.4; color: var(--wp--preset--color--muted); background: none; border: 0; padding: 0 !important; margin-top: .25rem; }
.sbo-disclosure p { margin: 0; }
.sbo-disclosure a { color: inherit; }
.sbo-box { border-radius: 16px; }
.sbo-verdict { border: 2px solid var(--wp--preset--color--accent); }
.sbo-score { font-size: 2.5rem !important; font-weight: 800; line-height: 1 !important; color: var(--wp--preset--color--navy); }

/* Newsletter */
.sbo-newsletter { position: relative; overflow: hidden; }
.sbo-newsletter h2, .sbo-newsletter h3 { color: #fff; }

/* Schritte */
.sbo-step-number { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--wp--preset--color--navy); color: #fff; margin: 0 !important; }

/* FAQ */
.wp-block-details { border: 1px solid var(--wp--preset--color--border); border-radius: 12px; padding: 1rem 1.25rem; background: #fff; }
.wp-block-details + .wp-block-details { margin-top: .75rem; }
.wp-block-details summary { font-weight: 700; cursor: pointer; color: var(--wp--preset--color--navy); }
.wp-block-details[open] summary { margin-bottom: .5rem; }

/* ---------- Beiträge ---------- */
.sbo-post-card .wp-block-post-featured-image img { border-radius: 12px 12px 0 0; aspect-ratio: 16/9; object-fit: cover; }
.sbo-post-card .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--navy); }
.sbo-post-card .wp-block-post-title a:hover { color: var(--wp--preset--color--accent-dark); }
.wp-block-post-content > h2 { scroll-margin-top: 90px; }
.wp-block-post-content table { font-size: .95rem; }
.sbo-author img { border-radius: 14px; }
.sbo-author .wp-block-image { flex-shrink: 0; margin: 0; }
.wp-block-post-terms a { text-decoration: none; font-weight: 600; font-size: .8rem; background: var(--wp--preset--color--blue-light); color: var(--wp--preset--color--blue); padding: .2rem .6rem; border-radius: 999px; }
.wp-block-post-terms__separator { display: none; }
.wp-block-post-terms { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---------- Fußzeile ---------- */
.sbo-footer a { color: #CBD5E1; text-decoration: none; }
.sbo-footer a:hover { color: var(--wp--preset--color--accent); }
.sbo-footer ul { list-style: none; padding: 0; margin: 0; }
.sbo-footer li { margin-bottom: .4rem; }
.sbo-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .75rem; }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	.sbo-hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.sbo-hero .wp-block-buttons .wp-block-button { width: 100%; }
	.sbo-hero .wp-block-buttons .wp-block-button__link { width: 100%; text-align: center; }
	.sbo-hide-mobile { display: none !important; }
}

/* Seitenränder für volle Breite (Handy) */
.wp-block-group.alignfull:not(.has-global-padding), .sbo-header, .sbo-footer {
	padding-left: max(1.25rem, var(--wp--style--root--padding-left, 0px));
	padding-right: max(1.25rem, var(--wp--style--root--padding-right, 0px));
}
.sbo-trust { margin-top: .5rem !important; }

/* Schnellauswahl im Hero */
.sbo-quick { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); border-radius: 18px; padding: 1.5rem; backdrop-filter: blur(6px); }
.sbo-quick__title { color: #fff; font-weight: 800; font-size: 1.1rem; margin: 0 0 1rem; }
.sbo-quick ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.sbo-quick li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: #fff; border-radius: 12px; padding: .8rem 1rem; }
.sbo-quick__need { color: var(--wp--preset--color--muted); font-size: .9rem; font-weight: 500; }
.sbo-quick__tool { color: var(--wp--preset--color--navy) !important; font-weight: 800; text-decoration: none !important; white-space: nowrap; background: var(--wp--preset--color--accent); padding: .35rem .8rem; border-radius: 8px; font-size: .9rem; }
.sbo-quick__tool:hover { background: #D97706; }
.sbo-quick__foot { margin: 1rem 0 0; font-size: .9rem; }
.sbo-quick__foot a { color: #CBD5E1 !important; text-decoration: none; }
.sbo-quick__foot a:hover { color: #fff !important; }

/* Buttons in Produktkarten immer untereinander und volle Breite */
.sbo-product .wp-block-buttons { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: .5rem; }
.sbo-product .wp-block-buttons > .wp-block-button { width: 100%; margin: 0; }
.sbo-product .wp-block-button__link { width: 100%; text-align: center; }

/* Kopfzeile bei mittleren Breiten kompakt halten */
.sbo-brand__name, .sbo-header .wp-block-button__link, .sbo-header .wp-block-navigation-item__content { white-space: nowrap; }
.sbo-header .wp-block-navigation__container { flex-wrap: nowrap; }
@media (max-width: 1240px) { .sbo-brand__claim { display: none; } .sbo-header .sbo-header-cta { display: none; } }
@media (min-width: 600px) and (max-width: 1000px) {
	.sbo-header .wp-block-navigation__container { gap: .9rem !important; }
	.sbo-header .wp-block-navigation { font-size: .85rem; }
	.sbo-brand img { width: 34px; height: 34px; }
	.sbo-brand__name { font-size: 1rem; }
}
@media (min-width: 600px) and (max-width: 820px) {
	.sbo-header .wp-block-navigation-item:last-child { display: none; }
	.sbo-brand__name { display: none; }
}
