/* Sichtbarkeits-Check – Frontend (Google Material Look, angelehnt an sichtbarkeitscheck.at) */

/* Standard = DUNKEL (passend zum Seitendesign von sichtbarkeitscheck.at). */
.sbc-widget {
	--sbc-blue: #1a73e8;
	--sbc-blue-dark: #1b80f0;
	--sbc-blue-tint: rgba(26, 115, 232, .14);
	--sbc-green: #34a853;
	--sbc-yellow: #f9ab00;
	--sbc-yellow-bar: #fbbc04;
	--sbc-red: #ea4335;
	--sbc-text: #ffffff;
	--sbc-grey: #c4c7c5;
	--sbc-muted: #9aa0a6;
	--sbc-border: #3c4043;
	--sbc-bg-soft: #2a2a2d;
	--sbc-bg: #1c1c1e;
	--sbc-track: #3c4043;
	--sbc-shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .3);
	max-width: 640px;
	margin: 0 auto;
	font-family: 'Google Sans', Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	color: var(--sbc-text);
}
.sbc-widget * { box-sizing: border-box; }

/* Heller Modus: <div class="sbc-widget sbc-widget--light"> ... (per Filter aktivierbar). */
.sbc-widget--light {
	--sbc-blue-dark: #1765cc;
	--sbc-blue-tint: #e8f0fe;
	--sbc-text: #202124;
	--sbc-grey: #5f6368;
	--sbc-muted: #80868b;
	--sbc-border: #dadce0;
	--sbc-bg-soft: #f8f9fa;
	--sbc-bg: #ffffff;
	--sbc-track: #f1f3f4;
	--sbc-shadow: 0 1px 3px rgba(60, 64, 67, .15), 0 4px 12px rgba(60, 64, 67, .08);
}

/* ---- Formular ---- */
.sbc-form {
	background: var(--sbc-bg);
	border: 1px solid var(--sbc-border);
	border-radius: 16px;
	padding: 32px;
	box-shadow: var(--sbc-shadow);
}
.sbc-form__title { margin: 0 0 6px; font-size: 1.6rem; font-weight: 500; letter-spacing: -.2px; }
.sbc-form__sub { margin: 0 0 24px; color: var(--sbc-grey); font-family: Roboto, sans-serif; font-size: .98rem; }

.sbc-field { margin-bottom: 18px; }
.sbc-field label { display: block; font-weight: 500; font-size: .85rem; color: var(--sbc-grey); margin-bottom: 6px; font-family: Roboto, sans-serif; }
.sbc-field input[type="text"],
.sbc-field input[type="email"],
.sbc-field textarea {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid var(--sbc-border);
	border-radius: 12px;
	font-size: 1rem;
	font-family: Roboto, sans-serif;
	color: var(--sbc-text);
	background: var(--sbc-bg-soft);
	transition: border-color .15s, box-shadow .15s;
}
.sbc-field textarea { resize: vertical; min-height: 64px; }
.sbc-field input::placeholder,
.sbc-field textarea::placeholder { color: var(--sbc-muted); }
.sbc-field input:focus,
.sbc-field textarea:focus {
	outline: none;
	border-color: var(--sbc-blue);
	box-shadow: 0 0 0 3px rgba(26, 115, 232, .2);
}
.sbc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .sbc-row { grid-template-columns: 1fr; } }

.sbc-consent label { display: flex; gap: 10px; font-weight: 400; font-size: .82rem; color: var(--sbc-grey); cursor: pointer; font-family: Roboto, sans-serif; line-height: 1.5; }
.sbc-consent input { margin-top: 3px; flex: 0 0 auto; accent-color: var(--sbc-blue); }
.sbc-consent a { color: var(--sbc-blue); text-decoration: none; }
.sbc-consent a:hover { text-decoration: underline; }

.sbc-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.sbc-submit {
	width: 100%;
	margin-top: 8px;
	padding: 14px 24px;
	background: var(--sbc-blue);
	color: #fff;
	border: 0;
	border-radius: 24px;
	font-size: 1rem;
	font-weight: 500;
	font-family: 'Google Sans', Roboto, sans-serif;
	letter-spacing: .2px;
	cursor: pointer;
	transition: background .15s, box-shadow .15s;
}
.sbc-submit:hover { background: var(--sbc-blue-dark); box-shadow: 0 1px 3px rgba(60,64,67,.3), 0 4px 8px rgba(60,64,67,.15); }
.sbc-submit:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }

.sbc-error { color: var(--sbc-red); font-size: .9rem; margin: 12px 0 0; min-height: 1em; font-family: Roboto, sans-serif; }
.sbc-privacy-note { margin: 14px 0 0; font-family: Roboto, sans-serif; font-size: .72rem; line-height: 1.5; color: var(--sbc-muted); }

/* ---- Loading ---- */
.sbc-loading { text-align: center; padding: 48px 20px; color: var(--sbc-grey); font-family: Roboto, sans-serif; }
.sbc-spinner {
	width: 44px; height: 44px; margin: 0 auto 18px;
	border: 4px solid var(--sbc-bg-soft);
	border-top-color: var(--sbc-blue);
	border-radius: 50%;
	animation: sbc-spin .8s linear infinite;
}
@keyframes sbc-spin { to { transform: rotate(360deg); } }

/* ---- Ergebnisse ---- */
.sbc-results {
	background: var(--sbc-bg);
	border: 1px solid var(--sbc-border);
	border-radius: 16px;
	padding: 32px;
	box-shadow: var(--sbc-shadow);
}
.sbc-overall { text-align: center; margin-bottom: 32px; }
.sbc-overall__domain { color: var(--sbc-grey); font-size: .9rem; word-break: break-all; font-family: Roboto, sans-serif; }
.sbc-overall__score { font-size: 3.6rem; font-weight: 500; line-height: 1; margin: 10px 0 4px; }
.sbc-overall__rating { font-weight: 500; font-size: 1.05rem; }

.sbc-cat { margin-bottom: 22px; }
.sbc-cat__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.sbc-cat__name { font-weight: 500; }
.sbc-cat__pct { font-weight: 500; font-variant-numeric: tabular-nums; font-family: Roboto, sans-serif; }
.sbc-bar { height: 10px; background: var(--sbc-track); border-radius: 999px; overflow: hidden; }
.sbc-bar__fill { height: 100%; width: 0; border-radius: 999px; transition: width .9s cubic-bezier(.22,.61,.36,1); }

.sbc-checks { list-style: none; margin: 12px 0 0; padding: 0; font-family: Roboto, sans-serif; }
.sbc-checks li { display: flex; gap: 9px; font-size: .86rem; padding: 4px 0; color: var(--sbc-grey); line-height: 1.4; }
.sbc-checks li .sbc-ic { flex: 0 0 auto; font-weight: 700; }
.sbc-checks li.ok .sbc-ic { color: var(--sbc-green); }
.sbc-checks li.fail .sbc-ic { color: var(--sbc-red); }

.sbc-cta { margin-top: 28px; padding: 24px; background: var(--sbc-blue-tint); border-radius: 12px; text-align: center; font-family: Roboto, sans-serif; }
.sbc-cta p { margin: 0 0 14px; color: var(--sbc-text); }
.sbc-cta__offer { font-size: 1.05rem; }
.sbc-cta__offer strong { color: var(--sbc-blue); }
.sbc-offer-btn {
	display: inline-block; margin: 4px 0 6px; padding: 13px 28px;
	background: var(--sbc-blue); color: #fff !important; text-decoration: none;
	border-radius: 24px; font-weight: 500; font-size: 1rem;
	font-family: 'Google Sans', Roboto, sans-serif;
	box-shadow: 0 2px 12px rgba(66, 133, 244, .35);
	transition: background .15s;
}
.sbc-offer-btn:hover { background: var(--sbc-blue-dark); }
.sbc-restart {
	display: block; margin-top: 10px; background: none; border: 0;
	color: var(--sbc-grey); cursor: pointer; font-size: .85rem; font-family: Roboto, sans-serif;
}
.sbc-restart:hover { text-decoration: underline; }

/* ---- Bare-Modus: nahtlos in eine bestehende (Glas-)Card einbetten ---- */
/* z.B. <div class="fcard">[sichtbarkeitscheck bare="1"]</div> auf sichtbarkeitscheck.at */
.sbc-widget--bare {
	--sbc-blue: #4285f4;
	--sbc-blue-dark: #5a95f5;
	--sbc-blue-tint: rgba(66, 133, 244, .12);
	--sbc-track: rgba(255, 255, 255, .12);
	max-width: none;
}
.sbc-widget--bare .sbc-form,
.sbc-widget--bare .sbc-results {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
}
.sbc-widget--bare .sbc-field label {
	text-transform: uppercase;
	letter-spacing: .5px;
	font-size: .72rem;
	color: rgba(255, 255, 255, .6);
}
.sbc-widget--bare .sbc-field input[type="text"],
.sbc-widget--bare .sbc-field input[type="email"],
.sbc-widget--bare .sbc-field textarea {
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .15);
	color: #fff;
}
.sbc-widget--bare .sbc-field input::placeholder,
.sbc-widget--bare .sbc-field textarea::placeholder { color: rgba(255, 255, 255, .3); }
.sbc-widget--bare .sbc-field input:focus,
.sbc-widget--bare .sbc-field textarea:focus {
	border-color: var(--sbc-blue);
	box-shadow: none;
}
.sbc-widget--bare .sbc-submit {
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(66, 133, 244, .35);
}
.sbc-widget--bare .sbc-consent label,
.sbc-widget--bare .sbc-privacy-note { color: rgba(255, 255, 255, .55); }
.sbc-widget--bare .sbc-consent a,
.sbc-widget--bare .sbc-privacy-note a { color: rgba(255, 255, 255, .8); }

/* ---- Premium-Anfrage: Danke-Box ---- */
.sbc-thanks__box { text-align: center; padding: 24px 8px; font-family: Roboto, sans-serif; }
.sbc-thanks__ic {
	width: 56px; height: 56px; margin: 0 auto 16px;
	border-radius: 50%; background: rgba(52, 168, 83, .15); color: var(--sbc-green);
	display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700;
}
.sbc-thanks__box p { color: var(--sbc-text); font-size: 1rem; line-height: 1.6; max-width: 420px; margin: 0 auto; }
