.flagicon {
 text-align: center;
}
.gallery a img {
	width: 6em;
}

.gallery a {
	text-decoration: none;
}

[hidden] {
	display: none;
}

dialog img {
	padding: 0;
	margin: 0;
	width: 100%;
	/* Bild passt sich an verfügbaren Raum im dialog an */
}

dialog {
	position: relative;
}

dialog::backdrop {
	background-color: grey;
	opacity: 0.5;
}

#lightbox {
	border: thin solid #aaa;
	left: 1em;
	position: fixed;
	top: 1em;
}

#lightbox img {
	display: block;
	margin: auto;
	max-width: 90vw;
	max-height: 80vh;
}

#lightbox figcaption {
	font-style: italic;
	text-align: center;
}

#lightbox button {
	position: absolute;
	top: 0;
	right: 0;
	width: 2rem;
	height: 2rem;
	cursor: pointer;
	border: 0;
	font: 0/0 a;
	text-shadow: none;
	background: transparent;
	color: transparent;
}

#lightbox #close {
	background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100' height='100' fill='firebrick' rx='10' /%3E%3Cpath d='M20,20 l60,60 m0,-60 l-60,60' fill='none' stroke='white' stroke-width='15' stroke-linecap='round'/%3E%3C/svg%3E");
	background-size: contain;
}

#lightbox #close:hover,
#lightbox #close:focus {
	background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100' height='100' fill='grey' rx='10' /%3E%3Cpath d='M20,20 l60,60 m0,-60 l-60,60' fill='none' stroke='white' stroke-width='15' stroke-linecap='round'/%3E%3C/svg%3E");
}

#lightbox button:nth-of-type(2) {
	top: 50%;
	left: 1em;
	width: 4rem;
	height: 4rem;
	background-image: url("data:image/svg+xml,%3Csvg width='100' height='200' viewBox='0 0 100 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath id='right' d='M90,10 l-80,90 l80,90' fill='none' stroke='%2387ceeb' stroke-width='15' stroke-linecap='round'/%3E%3C/svg%3E");
	background-size: contain;
}

#lightbox button:nth-of-type(2):hover,
#lightbox button:nth-of-type(2):focus {
	background-image: url("data:image/svg+xml,%3Csvg width='100' height='200' viewBox='0 0 100 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath id='right' d='M90,10 l-80,90 l80,90' fill='none' stroke='%23337599' stroke-width='15' stroke-linecap='round'/%3E%3C/svg%3E");
}

#lightbox button:nth-of-type(3) {
	top: 50%;
	right: 1em;
	width: 4rem;
	height: 4rem;
	background-image: url("data:image/svg+xml,%3Csvg width='100' height='200' viewBox='0 0 100 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath id='right' d='M10,10 l80,90 l-80,90' fill='none' stroke='%2387ceeb' stroke-width='15' stroke-linecap='round'/%3E%3C/svg%3E");
	background-size: contain;
}

@media (prefers-reduced-motion: no-preference) {
	#lightbox[open] img {
		animation: show 0.25s ease-in-out normal;
	}
	@keyframes show {
		from {
			opacity: 0;
		}
		to {
			opacity: 1;
		}
	}
}
/* Mobile first - für schmale Viewports */

ul,
li {
	display: inline-block;
	margin: 0.1em;
	padding: 0.1em;
}

li {
	list-style-type: none;
}

[role=note] {
	border-left: medium solid #c82f04;
	padding-left: 0.5em;
	max-width: 40em;
}

[role=note]:before {
	content: 'Beachten:  ';
	color: #c82f04;
	font-weight: blod;
}
/* Grundlayout für SELFHTML-Beispiele */

body {
	margin: 1em auto;
	max-width: 60em;
	font-family: sans-serif;
	color: #333333;
}

h1 {
	font-size: 1.5rem;
	position: relative;
	padding-left: 3em;
}

h1:before {
	position: absolute;
	left: 0;
	content: "";
	width: 2rem;
	border: thin solid transparent;
	aspect-ratio: 1/1;
	
	background-size: cover;
}

html {
	background: transparent!important;
	
}

.hinweis {
	border-inline-start: thick solid var(--red);
	padding-inline-start: 1em;
}

kbd {
	background: #f9f9f9 linear-gradient(to bottom, #eee, #f9f9f9, #eee) repeat scroll 0 0;
	border: thin solid #aaa;
	border-radius: 2px;
	box-shadow: 1px 2px 2px #ddd;
	font-family: inherit;
	font-size: 0.9em;
	padding: 0 0.5em;
}
