/*                                                                          */
/*       Stil-Definitionen für die Seite www.sternberg-fotos.de             */
/*                                                                          */
/* 20.06.2022, v1.0.0: erste im Internet veröffentlichte Version            */
/* 21.06.2022, v1.0.1: Änderung der Höhe für die Gallerie-Thumbs            */
/*                     Icon-Formatierung im Header verschoben in header.img */
/*                     Choice-Formatierung geändert (Rand)                  */
/*                     Startseite: Bild mittig positioniert                 */
/*                                                                          */

/* Allgeimeine Formatierungen */

body {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	min-width: 220px;
	font-size: 1.1em;
	color: rgba(63,62,59,1);
	background-color: white;
	margin: 0;
	padding: 0;
	border: 0;
}
a {
	border: none;
	color: rgba(63,62,59,1);
	text-decoration: none;
}
a:hover {
	font-weight: bold;
}
img {
	margin: 2px;
	border: 0;
	padding: 0;
}

/* Kopfzeile */

#header {
	position: relative;
	min-height:45px;
	background-color: rgba(193,184,176,.5);
	top: 0;
	width:100%;
	margin:0;
	padding:0;
	border: 0;
	text-decoration:none;
}
#header ul {
	position: absolute;
	height: 100%;
	right: .3em;
	top: 0;
	border: 0;
	padding: 0;
	margin: 0;
	text-decoration: none;
	text-align: right;
}
#header li {
    display: inline;
}
#header img {
	top: .3em;
	width:32px;
	height:32px;
	margin-left: .3em;
	display:inline;
	position:relative;
}

/* Buttons, linke Seite */
.logo { /* Schriftzug "Sternberg-Fotos" */
	position: absolute;
	top: 50%;
	left: 50px;
	transform: translate(0,-50%);
	border: 0;
	padding: 0;
	margin: 0 auto;
	font: 22px monospace; 
	font-size: calc(12px + 8 * ((100vw - 320px) / (680)));
	letter-spacing: .2em;
}
.at_home { /* Änderung des Mauszeigers auf den rechten Buttons */
	cursor: pointer;
}
/* Buttons, rechte Seite */
.menu-button {
	right: 0;
}
.hidden-mobile {
}
#email {
	display:none;
}
#download {
	display:none;
}
@media (max-width: 767px) {
	.hidden-mobile {
		display: none;
	}
}

/* Hamburger-Menü (von https://codepen.io/markcaron/pen/pPZVWO) */
#main-menu {
	position:relative;
	width: 275px;
	right: 0;
	top: 0;
	outline: none;
	margin: 0;
	border: 0;
	padding: 0;
	display: none;
	text-align: right;
	color: white;
}
#main-menu ul {
	position: absolute;
	height: auto;
	right: 0;
	top: 2.5em;
	padding: 1em;
	margin: 1em;
	background: rgba(63,62,59,.7);
	text-align: right;
	text-decoration: none;
	line-height: 2em;
}
#main-menu a {
	display: block;
	position: relative;
	padding: 0;
	text-decoration: none;
	color: white;
}
#main-menu li {
	display:block;
}
#main-menu:target { 
	position: absolute;
	display: block;
	z-index:1;
}
#main-menu img {
	position: absolute;
	top: -4.2em;
	right: -2em;
}
/* Impressum-Box */
.popup span { 
	display: none;
	z-index: 2;
}
.popup:hover span {
	display: flex;
	overflow: visible;
	position: relative;
	flex-shrink: 0.5;
	right: 3em;
	text-decoration: none;
}
.popup img {
	min-width:400px;
	min-height:259px;
}
@media only screen and (max-width: 767px) {
	.popup img {
		top:5em !important;
		min-width:300px;
		min-height:194px;
	}
} 	

/* Fußzeile */

#footer { 
	bottom: 1em;
	width: 99vw;
	margin: 0;
	border: 0;
	padding: 0;
	text-align:right;
	overflow: visible;
	height: 1.5%;
	min-height: 1.3em;
	position: fixed;
	right: 1.3em;
	bottom: .3em;
	font: 10px arial; 
}
@media (max-width: 767px) {
	#footer {
		display: none;
	}
}

/* Startseite */

.main-page {
	height: 85vh;
	display:flex;
	justify-content: center;
	align-items: center;
	top:2em;
	position:relative;
	margin:0 auto; 
	border:0;
	padding:0;
	overflow:hidden;
}
.image {
	width: 100%;
	opacity: 1;
	transition: .5s ease;
	backface-visibility: hidden;
}
.middle {
	transition: .5s ease;
	opacity: 0;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	text-align: center;
	color:rgba(62,60,55,1);
}
.middle a:visited {
	color: rgba(62,60,55,1);
}
.main-page:hover .image {
  opacity: 0.3;
}
.main-page:hover .middle {
  opacity: 1;
}

/* Gallerie-Auswahl */

#choice { 
	width: 95vw;
	min-height: 85vh;
	margin:0 auto;
	border:0;
	padding:0;
	background: rgba(193,184,176,.5);
	position:relative;
}
#choice ul {
	display: flex;
	flex-wrap:wrap;
	padding:1em;
	margin:0;
	text-decoration: none;
	justify-content: center;
	list-style-type: none;
}
#choice h1 {
	padding: .3em;
}
#choice figure { 
	position: relative;
	margin: .5em;
	padding: 0;
	background-color: rgba(63,62,59,1);
	width: 150px;
	height: 150px;
}
#choice figure figcaption { 
	position: absolute;
	bottom: .5em;
	width: 100%;
	margin: 0 auto;
	text-align: center;
	font-size: .8em;
	color: white;
	background: rgba(63,62,59,.5);
}
#choice a {
	padding: 0;
	margin: 0;
	border:0;
}
#choice img {
	display:block;
	padding: 0;
	margin: 0 auto;
	border:0;
	object-fit:contain;
}

/* Gallerie (von https://codepen.io/ongtiffany/pen/PPbPyB) */

#gallerywrapper { /* Überschrift, Bild, Bildtitel, Auswahlbilder */
	display:flex;
	justify-content:center;
	align-items:center;
	width:100%;
	height:80vh;
	margin:0 auto;
	border:0;
	padding:0;
	position:relative;
	left:0;
	top:.3em;
	text-align:center;
	overflow:hidden;
} 
#gallery {
	margin:0 auto;
	border:0;
	padding:0;
	margin-top: .7em;
	font-size: calc(12px + 6 * ((100vw - 320px) / (680)));
	text-align: center;
}
#gallerywrapper figure { /* Bild, Bildtitel */
	display: none;
	top: .5em;
	height: 100%;
	margin: 0;
	border: 0;
	padding: 0;
	position: absolute;
} 
#gallerywrapper figure figcaption { /* Bildtitel */
	margin:0;
	border:0;
	padding:0;
	font-size: calc(8px + 3 * ((100vw - 320px) / (680)));
}
#gallerywrapper figure img {
	height: 76vh;
	width: 100%;
	object-fit: contain;
}
#gallerywrapper figure:target {
	display: block;
}
#thumb { /* Box für Auswahlbilder */
	width:100%;
	min-height:3vh;
	display: flex;
	justify-content: center;
	align-items: center;
	top:0;
}
#thumb img { /* Box für Auswahlbild */
	height:6vh;
	width: 5vw;
	background: rgba(193,184,176,1);
	object-fit:contain;
}
@media (max-width: 767px) {
	#thumb {
		display: none;
	}
}

/* Sättigungsbeilage */

#text {
	width:98%;
	background-color: rgba(193,184,176,.5);
	border-top-color: rgba(63,62,59,1);
	border-top-style: solid;
	border-top-width: 1px;
	margin:0 auto;
	padding: 1%;
	top:0;
	position:relative;
	overflow:hidden;
}
#icon-show {
	width: 100%;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-evenly;
}
#icon-show img {
	margin-top: 8px;
	max-width: 30%;
	object-fit:contain;
}
@media screen and (max-width: 800px) {
	#icon-show img {
		flex: 50%;
		max-width: 50%;
	}
}
@media screen and (max-width: 600px) {
  #icon-show img {
    flex: 100%;
    max-width: 100%;
  }
}

/* Bild-Link für Skript */
#img-link {
	display: none;
}

/* wird aktuell nicht gebraucht */

#listing {
	position: relative;
	width: 20em;
	background: transparent;
	height: 98%;
	bottom: 2%;
	top: 2em;
	overflow: auto;
	text-decoration: none;
}
#listing li {
	margin-top: .2em;
    list-style: none;
}
#listing ul ul {
    text-align: left;
	display: none;
}
#listing ul li:hover ul {
	display: block;
}
#glink {
	width: 10em;
	margin-top: 1em;
}
#home {
	padding: 3px 3px;
	margin: 0;
}
