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

body {
	min-width: 320px;
}

h1, h2, h3, h4, h5, h6 {
	hyphens: auto;
	word-break: break-word;
}

.smde-box {
	box-shadow: 0 2px 8px -2px rgba(21, 21, 21, 0.10), 0 6px 12px -2px rgba(21, 21, 21, 0.10);
	padding: 32px;

	@media (max-width: 547px) {
		padding: 24px 16px;
	}
}

.flex-gap, .left-column {
	gap: 16px;
}

@media (min-width: 1288px) {
	.flex-gap, .left-column {
		gap: 24px;
	}
}

.left-column {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex-grow: 1;
	flex-basis: 65%;
}

#sidebar {
	flex-basis: 35%;
	min-width: 0;
}

article.post h2 a {
	text-decoration: none;
}

article.post h2 a:hover {
	text-decoration: underline;
}

/*** 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: 24px;
	box-shadow: 0 2px 4px rgba(9, 134, 208, 0.1);
	padding: 0 16px;
	box-sizing: border-box;
	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%);
}

/*** Content ***/

.featured_image img {
	width: 100%;
	height: auto;
	border-radius: 24px;
	margin-bottom: 30px;
}

.wp-caption {
	width: 100% !important;
}

.wp-caption img {
	width: initial;
	max-width: 100%;
	height: auto;
}

/** Sidebar **/

.widget {
	padding: 24px;
	margin-bottom: 16px;
}

.widget:nth-child(2) {
	background: var(--sui-theme-electric-box-2);
}

.widget ul {
	font-size: 1rem;
	padding-left: 1rem;
	margin-bottom: 0;
}

.widget ul li {
	margin-bottom: 0.5rem;
}

/* Author bio */

#author-bio {
	display: flex;
}

#author-bio-name {
	margin-bottom: 8px;
	font-size: large;
}

#author-bio img {
	border-radius: 99px;
	margin: 0 20px 16px 0;
}

@media (max-width: 761px) {

	#author-bio {
		flex-direction: column;
		align-items: center;
	}

	#author-bio-name {
		text-align: center;
	}
}

/*** Chatbot floating action button ***/

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

	position: fixed;
	z-index: 1000;
	width: var(--smde-fab-button-width);
	bottom: var(--smde-fab-inset);
	right: var(--smde-fab-inset);
	background: var(--sui-color-electric-500);
	color: #ffffff;
	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;
}

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

#smde-fab-chatbot:hover {
	transform: scale(1.15);
}

#smde-fab-chatbot img {
	max-width: 100%;
	height: auto;
	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;
}

/*** Cookie-Einwilligung ***/

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

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