@charset "UTF-8";
figure,
figcaption {
	margin: 0;
	padding: 0;
}

#gallery1 {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(20em, 1fr));
	gap: 1em;
}

#gallery1 figure {
	position: relative;
	overflow: hidden;
}

#gallery1 figure:before {
	position: absolute;
	bottom: 1em;
	left: 1em;
	background: white;
	color: black;
	opacity: 0.7;
	width: 1.5em;
	height: 1.5em;
	border-radius: 1em;
	text-align: center;
	font-size: 1.5em;
	line-height: 1.5em;
	transition: all 1s ease;
}

#gallery1 figure:hover:before {
	opacity: 0;
}

figure img {
	width: 100%;
	display: block;
}

#gallery1 > figure > figcaption {
	position: absolute;
	width: 100%;
	text-align: center;
	line-height: 3em;
	color: white;
	background: rgba(0, 0, 0, 0.7);
	opacity: 0;
	bottom: -3em;
	transition: all 1s ease;
}

figure.mitte figcaption {
	width: 0;
	left: 50%;
}

#gallery1 > figure.rechts > figcaption {
	width: 0;
	bottom: 50%;
	left: 50%;
}

#gallery1 > figure:hover > figcaption {
	opacity: 1;
	bottom: 0;
	left: 0;
	width: 100%;
}

#gallery1 > figcaption {
	grid-column: 1 / -1;
	text-align: center;
}

#Hilfe {
	border: solid 3px black;
	margin-right: 2em;
}

#Hilfe h2 {
	background-color: darkred;
	color: white;
	margin: 1 1 1.5em;
}

@media (min-width: 30em) {
	/* mehrspaltiges Layout  für breitere Bildschirme */
	
	#Hilfe {
		float: right;
		width: 19em;
	}
}

#Hilfe1 {
	margin-right: 2em;
}

#Hilfe1 h2 {
	background-color: darkred;
	color: white;
	margin: 1 1 1.5em;
}

@media (min-width: 30em) {
	/* mehrspaltiges Layout  für breitere Bildschirme */
	
	#Hilfe1 {
		float: right;
		width: 19em;
	}
}

#ersteh1:focus {
	background-color: red;
	color: black;
}

#ersteh1:hover {
	background-color: blue;
	color: white;
}

#ersteh1:active {
	background-color: yellow;
	color: black;
}

/* body {
	font: 1.5rem sans-serif;
	line-height: 1;
} */

#ersteh1 {
	padding: .2em;
}

.galerie2  figure {
	background: white;
	border: 10px solid white;
	box-shadow: 1px 1px 2px grey;
	float: left;
	height: 600px;
	margin: 10px;
	overflow: hidden;
	position: relative;
	text-align: center;
	width: 1000px;
}

 .galerie2 figure img {
	transition: all 0.2s ease-in;
}

.galerie2 figcaption {
	background-color: rgba(0,0,0,0.8);
	font-size: 100%;
	height: 600px;
	margin: 0;
	opacity: 2;
	padding: 30px 0 0;
	width: 1000px;
	transform-origin: bottom right;
	transform:
		translate(0px, -579px)
		rotate(180deg);
	transition: all 0.2s 0.4s ease-in-out;
}

.galerie2 figure:hover figcaption {
	opacity: 2;
	transition-delay: 0.3s;
	transform:
		translate(0px, -579px)
		rotate(0deg);
	}

.galerie2 figure h2 {
	background: rgba(0, 0, 0, 0.6);
	color: white;
	font-size: 1.5em;
	margin: 0px 0 0;
	padding: 1em;
	position: relative;
	text-align: center;
	text-transform: uppercase;
	transform: translateY(0px);
	transition: all 0.3s ease-in-out;
}

.galerie2 figure:hover h2 {
	transform: translateY(0px);
	transition-delay: 0.4s;
}

.galerie2 figure p {
	color: white;
	font-family: Georgia,serif;
	font-style: italic;
	padding: 10px 20px 20px;
	position: relative;
	opacity: 0;
	text-align: center;
	transform:
		translateX(200px)
		rotate(90deg);
	transition: all 0.4s ease-in-out;
}

.galerie2 figure:hover p {
	opacity: 1;
	transform:
		translateX(0px)
		rotate(0deg);
	transition-delay: 0.2s;
}

.galerie2 figure a.info {
	position: relative;
	transform: translateY(-200px);
	transition: all 0.2s ease-in-out;
}

.galerie2 figure:hover a.info {
	color: currentColor;
	background: rgba(255,255,255,0.5);
	border: 1px solid currentColor;
	font-size:1.2em;
	text-decoration: none;
	border-radius: 20%/50%;
	padding: 0.5em 2em;
	transform: translateY(0px);
	transition-delay: 0.3s;
}

.galerie2 figure:hover a.info:after,
figure:hover a.info:before {
	height: 1em;
	position: absolute;
	top: 0.5em;
	width: 1em;
}

.galerie2 figure:hover a.info:after{
	right: 0.5em;
}

.galerie2 figure:hover a.info:before {
	content: "→";
	left: 0.5em;
}

	/* clearfix */
main:after {
	clear: left;
	content: " ";
	display: block;
}

