/*** logo ***/
#header--logo:hover #header--logo--red {
	visibility: hidden;
}

@media (max-width: 840px) {
	header .site-title {
		text-align: center;
	}
}

/*** content ***/

h1.post-title {
	line-height: 1.25;
	font-family: ui-serif, Georgia, Cambria, Times New Roman, Times, serif;
	font-weight: 700;
	letter-spacing: -.025em;
	word-spacing: 0.025em;
	font-size: 2.25rem;
}

.content p {
	font-size: 1.125rem;
	line-height: 1.75rem;
	-webkit-font-smoothing: antialiased;
	color: var(--font-color);
}

.content h2 {
	margin-top: 3.5rem;
	margin-bottom: 1.75rem;
	font-size: 1.625rem;
	font-family: ui-serif, Georgia, Cambria, Times New Roman, Times, serif;
	font-weight: 700;
	letter-spacing: -.025em;
	word-spacing: 0.025em;
	line-height: 2.25rem;
}

.content h3 {
	margin-top: 2.5rem;
	margin-bottom: 1.25rem;
	font-size: 1.3rem;
	font-family: ui-serif, Georgia, Cambria, Times New Roman, Times, serif;
	font-weight: 700;
	letter-spacing: -.025em;
	word-spacing: 0.025em;
	line-height: 2.25rem;
}

.content figcaption p {
	font-size: 0.975rem;
	line-height: 1.25rem;
}

@media (max-width: 840px) {
/*
	html, body {
		font-size: 16px;
	}
*/
	.common-header {
	    padding-bottom: 0;
	}

	h1.post-title {
		line-height: 1.25;
		font-size: 1.95rem;
	}

	.content p {
		font-size: 1.125rem;
		line-height: 1.75rem;
	}

	.content h2 {
		margin-top: 2.5rem;
		margin-bottom: 1.25rem;
		font-size: 1.5rem;
		line-height: 2.25rem;
	}

	.content h3 {
		margin-top: 2rem;
		margin-bottom: 1rem;
		font-size: 1.25rem;
		line-height: 2.25rem;
	}

}

.content>p:first-child>img:first-child,
.content>figure:first-child img {
	border-radius: 1rem;
	margin-top: 0;
}
.content>p:first-child:has(img:first-child) {
	margin-top: 0;
}

article:not(:last-of-type) {
	border-bottom: 0;
}

figure {
	margin-left: 0;
	margin-right: 0;
}

hr {
	color: silver;
	width: 80px;
	margin-top: 2.5rem;
	margin-bottom: 2.5rem;
	border-top: 1px solid silver;
}

article img,
article video {
	margin-top: 20px;
	margin-bottom: 20px;
}

article figure img {
	margin-top: 0px;
	margin-bottom: 0px;
}

article figure a img {
	margin-bottom: 0;
}

section.footnotes {
	margin-top: 50px;
}

section.footnotes hr {
	margin-left: 0px;
	width: 200px;
}

section.footnotes ol {
	list-style: none;
	counter-reset: footnote-counter;
    padding-left: 1.5rem;
}

section.footnotes ol li::before {
	content: counter(footnote-counter);
	position: absolute;
	margin-left: -12px;
	font-size: 12px;
	margin-top: -4px;
}

section.footnotes ol li {
	counter-increment: footnote-counter;
	font-size: 1rem;
    line-height: 1.5rem;
	padding-bottom: 10px;
}

section.footnotes ol li p {
	font-size: 1rem;
    line-height: 1.5rem;
    margin: 0;
}

a.footnote-ref {
	border-bottom: 0;
}

a.footnote-backref {
	border-bottom: 0;
}



/*** Shortcodes ***/
.shortcode-infotextbox,
.shortcode-twittertextbox,
.shortcode-warningtextbox,
.shortcode-alarmtextbox,
.shortcode-sperrfrist {
	width: 100%;
	padding: 15px;
	margin-top: 2rem;
	margin-bottom: 2rem;
	box-sizing: border-box;
}

.shortcode-infotextbox {
	background: #e6e6e6;
	border-left: 6px solid gray;
}

.shortcode-twittertextbox {
	background: #ddf1fd;
	border-left: 6px solid #1DA1F2;
}

.shortcode-warningtextbox {
	background: #fff9c9;
	border-left: 6px solid #ffd86b;
}

.shortcode-alarmtextbox {
	background: #ffc9c9;
	border-left: 6px solid #ff6b6b;
}

.shortcode-sperrfrist {
	background: #ffc9c9;
	border-left: 6px solid #ff6b6b;
}

.shortcode-sperrfrist h3 {
	text-align: center;
}

.shortcode-sperrfrist-link {
	padding-bottom: 15px;
}

.shortcode-infotextbox .footnotes {
	margin: 0;
}

.shortcode-infotextbox .footnotes hr {
    margin: 1.5rem 0 0.5rem;
}

.shortcode-infotextbox .footnotes ol {
    margin-bottom: 0;
}

.shortcode-infotextbox .footnotes li:last-child {
    padding-bottom: 0;
}

/*** Shortcode chat bubbles ***/


.shortcode-chat-bubble {
	position: relative;
	background: #0064ff;
	border-radius: 15px;
	padding: 15px;
	max-width: 80%;
	width: fit-content;
	color: white;
	font-weight: 400;
	margin-bottom: 20px;
}

.shortcode-chat-bubble[data-color="dark"] {
	background: #0064ff;
	color: white;
}

.shortcode-chat-bubble[data-color="light"] {
	background: #e2e2e2;
	color: black;
}

.shortcode-chat-bubble[data-side="right"] {
	margin-left: auto;
	margin-right: 0px;
}

.shortcode-chat-bubble[data-side="left"] {
	left: 0%;
}

.shortcode-chat-bubble:after {
	content: '';
	position: absolute;
	right: 0;
	bottom: 4px;
	width: 0;
	height: 0;
	border: 15px solid #0064ff;
	border-top-color: transparent;
	border-bottom: 0;
	margin-top: -11px;
	margin-right: -8px;

}


.shortcode-chat-bubble[data-color="dark"]:after {
	border-color: #0064ff;
}

.shortcode-chat-bubble[data-color="light"]:after {
	border-color: #e2e2e2;
}

.shortcode-chat-bubble[data-side="left"]:after {
	border-top-color: transparent;
	border-left-color: transparent;
	border-left: 0px;
	left: -7px;
}

.shortcode-chat-bubble[data-side="right"]:after {
	border-top-color: transparent;
	border-right-color: transparent;
	border-right: 0px;
	right: 0px;
}


article :first-child.shortcode-infotextbox,
article :first-child.shortcode-twittertextbox {
	margin-top: 0;
}


.badge-new {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 50rem;
    color: #000;
    background-color: rgba(255,193,7,1);
}

/*** Underline link ***/
main a,
.copyright a {
	border-bottom: 1px solid;
}

article video {
	max-width: 100%;
	display: block;
	height: auto;
	margin: 1em auto;
}

article figure img,
article video {
	max-height: 70vh;
	margin: 1em auto;
}

article {
	word-wrap: break-word;
}



/*** mobile-friendly Footer ***/
ul.footer-menu {
	display: block;
}

ul.footer-menu li {
	display: inline-block;
}



/*** media.ccc.de embed ***/
div .media-ccc-wrapper {
	position: relative;
	width: 100%;
	height: 0;
	padding-bottom: 56.25%;
}

div .media-ccc-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}


/*** Details/Summary Spoiler ***/

summary {
	cursor: pointer;
	display: list-item;
}

details {
	background-color: #EEEEEE;
	padding: 1em;
}

/*** Code blocks ***/

.post div.highlight {
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
	border-radius: 0.75rem;
	padding: 2rem;
}

code {
	white-space: pre-wrap;
}

.highlight {
	background-color: hsl(217deg 100% 8%);
	color: rgb(255 255 255);
}

.highlight pre {
	background: transparent !important;
	padding: 0;
	margin: 0;
}

/*** read more ***/
.read-more {
	background: var(--pagination-bg-color);
	padding: 0.75em 0.75em;
	display: inline-block;
	margin: 0.5em 0 0 0;
}

/*** post footer ***/
.post-info {
	display: flex;
	width: 100%;
	flex-wrap: wrap;
	align-items: center;
}

.post-info hr {
	height: 1px;
	flex: 1 1 0%;
	margin: 0 0.5rem;
	background-color: #f0f0f0;
	border-top: 0;
}

.post-info a {
	border-bottom: 0;
}

/*** Footer ***/


.footer-menu {
	margin: 0;
	line-height: 2.5;
}

.common-footer {
	background-color: rgb(255 243 243);
}

/*** tags ***/
.post-tags li[data-tag^=lang] {
	display: none;
}

/*** fix sub/superscript line height **/
sub, sup {
	line-height: 0;
}
