/*
Theme Name:   wp-smde
Theme URI:    https://www.smartsteuer.de/online
Description:  Theme for the SMDE WordPress instance.
Author:       smartsteuer
Version:      N/A
*/

body {
	min-width: 320px;
}

.lead {
	font-weight: 450;
}

.smde-link-list a:link,
.smde-link-list a:visited {
	color: var(--sui-theme-bright-text-primary);
}

.smde-link-list a:hover {
	color: var(--sui-theme-bright-link);
}

/*** Searchform ***/

.searchform {
	max-width: 550px;
	display: flex;
	margin: 0 auto;
}

input[type=text] {
	min-width: 80px;
	flex-grow: 1;
	height: 48px;
	border: 2px solid var(--sui-color-electric-500);
	border-radius: 99px;
	box-shadow: 0 2px 4px rgba(9, 134, 208, 0.1);
	padding: 0 16px;
	box-sizing: border-box;
	color: var(--sui-theme-bright-text-primary);
	font-size: 1.125rem;
	font-weight: 650;
	transition: .12s;
}

input[type=text]:focus {
	outline: 3px solid rgba(from var(--sui-color-electric-500) r g b / 50%);
}

.searchform label {
	display: none;
}

/*** "Das Wichtigste in Kürze" Box ***/

.summary-box {
	position: relative;
	background-color: var(--sui-theme-bright-box);
}

.summary-box ul {
	padding-inline-start: 20px;
}

.summary-box ul > li {
	padding-bottom: 1rem;
}

.summary-box ul > li:last-child {
	padding-bottom: 0;
}

.summary-box i[class*=fa] {
	position: absolute;
	left: 50%;
	font-size: 2.3rem;
	transform: translate(-50%, -81px);
	border: 16px solid var(--sui-color-electric-500);
	background: var(--sui-color-electric-500);
	border-radius: 99px;
	color: var(--sui-color-electric-white);
}

@media screen and (max-width: 767px) {
	.summary-box i {
		font-size: 2.1rem;
		transform: translate(-50%, -78px);
		border-width: 14px;
	}
}

/*** TABLE OF CONTENTS PLUS PLUGIN ***/

#toc_container {
	background: none !important;
	border: none !important;
	padding: 0;
}

#toc_container li {
	padding: 4px 0;
	font-weight: 750;
	font-size: 1.2rem !important;
}

#toc_container ul.toc_list > li > ul li > a {
	font-size: 90%;
	font-weight: 500;
}

/*** Finanzamt-Finder ***/

.wpsl-gmap-canvas {
	width: 100% !important;
	border-radius: 16px;
}

/*** Steuerwissen template ***/

.steuerwissen-bio img {
	width: 200px;
	border-radius: 999px !important;
}

.steuerwissen-bio h2 {
	font-weight: 500;
}

@media screen and (max-width: 547px) {
	.steuerwissen-bio img {
		width: 140px;
	}
}

/*** Floating action buttons ***/

#smde-fab-container {
	--smde-fab-button-width: 48px;
	--smde-fab-gap: 12px;
	--smde-fab-inset: 24px;

	position: fixed;
	z-index: 1000;
	display: flex;
	flex-direction: column-reverse;
	width: var(--smde-fab-button-width);
	bottom: var(--smde-fab-inset);
	right: var(--smde-fab-inset);
	gap: var(--smde-fab-gap);
}

@media screen and (min-width: 1287px) {
	#smde-fab-container {
		--smde-fab-button-width: 64px;
		--smde-fab-inset: 36px;
		--smde-fab-gap: 16px;
	}
}

.smde-fab-button {
	background: var(--sui-color-electric-500);
	color: #ffffff;
	width: 100%;
	aspect-ratio: 1/1;
	border: none;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 12px rgba(10, 60, 90, 0.25);
	transition: all .35s, transform .15s;
}

.smde-fab-button:hover {
	transform: scale(1.15);
}

#smde-fab-back-to-top {
	font-size: calc(var(--smde-fab-button-width) / 2);
	display: none;
	opacity: 0;
	transition-behavior: allow-discrete;
}

#smde-fab-back-to-top.shown {
	display: flex;
	opacity: 1;

	@starting-style {
		opacity: 0;
	}
}

#smde-fab-chatbot img {
	transform: scale(0.75);
	transform-origin: 75% 35%;
}

#smde-chatbot-dialog {
	border-radius: 16px;
	transition: opacity .35s, display .35s, overlay 0.35s;
	transition-behavior: allow-discrete;
	width: 100%;
	height: 100%;
	border: none;
	opacity: 0;
	box-shadow: 0 2px 50px -2px rgba(21, 21, 150, .5), 0 6px 20px -2px rgba(21, 21, 150, .3);
	padding: 0;
}

#smde-chatbot-dialog::backdrop {
	opacity: 0;
}

#smde-chatbot-dialog[open]::backdrop {
	opacity: 1;
}

body:has(#smde-chatbot-dialog[open]) {
	overflow: hidden
}

#smde-chatbot-dialog[open] {
	opacity: 1;

	@starting-style {
		opacity: 0;
	}
}

.smde-chatbot-dialog-inner {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}

#smde-chatbot-dialog iframe {
	flex-grow: 1;
	border: none;
}

.smde-chatbot-dialog-header {
	display: flex;
	justify-content: right;
	padding: 12px;
}

/*** Notification bar ***/

#smde-notification-bar {
	display: block;
	padding: 11px 0;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 1rem;
}

#smde-notification-bar p {
	margin: 0;
}

#smde-notification-bar-countdown {
	display: inline-flex;
	gap: 8px;
	margin: 0 8px;
}

/*** Cookie-Einwilligung ***/

.smde-cookie-consent-button {
	background: none;
	border: none;
	padding: 0;
	text-decoration: underline;
	color: var(--sui-theme-night-link);
	transition: all 0.2s ease;
}

.smde-cookie-consent-button:hover {
	color: inherit;
}

/*** Steuerrechner ***/

#lb-steuerrechner2020-interview {
	--lb-steuerrechner2020-color: var(--sui-color-electric-600);
	--lb-steuerrechner2020-color-active: var(--sui-color-electric-medium);
}

.lb-steuerrechner2020-question,
.lb-steuerrechner2020-question-partner {
	margin-bottom: 8rem;
}

.lb-steuerrechner2020-question-title.h3 {
	min-height: 75px;
	max-width: 420px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin: 0 auto;
	font-size: 1.6rem;
}

.lb-steuerrechner2020-question-icon > i {
	font-size: 6rem;
}

.lb-steuerrechner2020-question-input {
	font-size: 1.4rem;
	font-weight: 650;
	color: var(--lb-steuerrechner2020-color)
}

.lb-steuerrechner2020-question-input label [class*=sui-button] {
	min-width: 160px;
}

.lb-steuerrechner2020-question-partner {
	display: none;
}

.lb-steuerrechner2020-question input[type="radio"],
.lb-steuerrechner2020-question-partner input[type="radio"] {
	display: none;
}

.lb-steuerrechner2020-question a {
	cursor: pointer;
}

.lb-steuerrechner2020-slider-container {
	width: 100%;
	max-width: 360px;
	display: inline-block;
}

.lb-steuerrechner2020-slider {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 26px;
	outline: none;
	border: 2px solid var(--lb-steuerrechner2020-color);
	border-radius: 16px;
	cursor: pointer;
}

.lb-steuerrechner2020-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	box-sizing: border-box;
	background-color: var(--lb-steuerrechner2020-color);
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 0 0 3px var(--lb-steuerrechner2020-color);
	cursor: grab;
	transition: 0.15s;
}

.lb-steuerrechner2020-slider::-moz-range-thumb {
	width: 20px;
	height: 20px;
	box-sizing: border-box;
	background-color: var(--lb-steuerrechner2020-color);
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 0 0 3px var(--lb-steuerrechner2020-color);
	cursor: grab;
	transition: 0.15s;
}

.lb-steuerrechner2020-slider::-webkit-slider-thumb:hover,
.lb-steuerrechner2020-slider::-webkit-slider-thumb:active {
	width: 30px;
	height: 30px;
}

.lb-steuerrechner2020-slider::-webkit-slider-thumb:active {
	background: var(--lb-steuerrechner2020-color-active);
}

.lb-steuerrechner2020-slider::-moz-range-thumb:hover,
.lb-steuerrechner2020-slider::-moz-range-thumb:active {
	width: 30px;
	height: 30px;
}

.lb-steuerrechner2020-slider::-moz-range-thumb:active {
	background: var(--lb-steuerrechner2020-color-active);
}

#lb-steuerrechner2020-result-positive i,
.lb-steuerrechner2020-result-negative i {
	font-size: 8rem;
}

.lb-steuerrechner2020-result-value {
	font-size: 3.5rem;
	background-color: var(--sui-color-success-100);
	color: var(--sui-theme-bright-text-primary);
	padding: 8px 28px;
	border-radius: 16px;
}

.lb-steuerrechner2020-result-negative .lb-steuerrechner2020-result-value {
	background-color: var(--sui-color-danger-100);
	text-shadow: none;
	color: var(--sui-theme-bright-text-primary);
}

#lb-steuerrechner-2020-result-error {
	display: none;
	color: var(--sui-color-danger-600);
}

.lb-steuerrechner2020-result-bottomtext {
	font-size: 12px;
}

@media screen and (max-width: 991px) {

	.lb-steuerrechner2020-question,
	.lb-steuerrechner2020-question-partner {
		margin-bottom: 6rem;
	}

	.lb-steuerrechner2020-question-title.h3 {
		font-size: 1.5rem;
		min-height: unset;
	}

	.lb-steuerrechner2020-slider-container {
		padding: 0 40px;
	}
}