/**
 * Custom Fonts.
 *
 * Generated with https://google-webfonts-helper.herokuapp.com/fonts
 *
 *  - Abel [regular]
 *  - Open Sans [700,regular,italic,700italic]
 * /

/* abel-regular - latin */
@font-face {
  font-family: 'Abel';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/abel-v12-latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('./fonts/abel-v12-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('./fonts/abel-v12-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('./fonts/abel-v12-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('./fonts/abel-v12-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('./fonts/abel-v12-latin-regular.svg#Abel') format('svg'); /* Legacy iOS */
}

/* open-sans-regular - latin */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/open-sans-v27-latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('./fonts/open-sans-v27-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('./fonts/open-sans-v27-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('./fonts/open-sans-v27-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('./fonts/open-sans-v27-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('./fonts/open-sans-v27-latin-regular.svg#OpenSans') format('svg'); /* Legacy iOS */
}

/* open-sans-700 - latin */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url('./fonts/open-sans-v27-latin-700.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('./fonts/open-sans-v27-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('./fonts/open-sans-v27-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
       url('./fonts/open-sans-v27-latin-700.woff') format('woff'), /* Modern Browsers */
       url('./fonts/open-sans-v27-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
       url('./fonts/open-sans-v27-latin-700.svg#OpenSans') format('svg'); /* Legacy iOS */
}

/* open-sans-italic - latin */
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 400;
  src: url('./fonts/open-sans-v27-latin-italic.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('./fonts/open-sans-v27-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('./fonts/open-sans-v27-latin-italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('./fonts/open-sans-v27-latin-italic.woff') format('woff'), /* Modern Browsers */
       url('./fonts/open-sans-v27-latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('./fonts/open-sans-v27-latin-italic.svg#OpenSans') format('svg'); /* Legacy iOS */
}

/* open-sans-700italic - latin */
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 700;
  src: url('./fonts/open-sans-v27-latin-700italic.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('./fonts/open-sans-v27-latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('./fonts/open-sans-v27-latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('./fonts/open-sans-v27-latin-700italic.woff') format('woff'), /* Modern Browsers */
       url('./fonts/open-sans-v27-latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('./fonts/open-sans-v27-latin-700italic.svg#OpenSans') format('svg'); /* Legacy iOS */
}

/**
 * Eric Meyers Reset CSS 2.0
 */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/**
 * Einiges vom Reset für den Benutzer wiederherstellen
 */
b { font-weight: bold; }
i { font-style: italic; }
u { text-decoration: underline; }
ul { list-style-type: disc; padding-left: 32px; }

/**
 * Allgemeines
 */

html {
	background: #2A2B30 url('./images/bg.jpg');
	height: 101%; /* Immer eine Scrollbar anzeigen => Verhindert Seitenspringen */
}

body {
	min-width: 1200px;
	min-height: 100%;
	background: url('./images/bgOverlay.jpg') top center no-repeat;
	padding: 92px 0 20px;
	font: normal 12pt/15pt Abel;
	color: #D0D2DB;
	text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.7);
}

strong {
	color: #FFF;
	font-weight: bold;
}

a {
	color: #E3906A;
}

h1, h2, h3 {
	font-weight: normal;
	font-family: Abel;
}

h1 {
	color: #FFF;
	font-size: 3.2em;
	letter-spacing: -2px;
	text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.7);
	margin: 0 0 20px;
}

h3 {
	color: #BBBFCE;
	font-size: 1.5em;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7);
	margin: 0 0 15px;
}

img {
   background: url('./images/imgOverlay.jpg') center repeat;
   padding: 4px;
}

/**
 * Formulare
 */
form {
	width: 600px;
	margin: 0 0 35px 4px;
}

label {
	display: block;
	margin: 0 0 5px 0;
}

input, textarea {
	width: 100%;
	padding: 10px;
	border: 0;
	background: url('./images/bgDark.jpg');
	margin: 0 0 10px 0;
	color: #FFF;
	border-bottom: solid 1px rgba(255,255,255,0.4);
}

input:focus, textarea:focus {
	box-shadow: 0px 0px 3px 2px #F3A07A;
}

textarea {
	resize: vertical;
	min-height: 96px;
}

button {
	border: 0;
	background: url('./images/nav.png') -50px 0px no-repeat;
	padding: 8px 15px 8px 15px;
	font-family: Abel;
	color: #FFF;
	text-shadow: 1px 1px 0px rgba(0,0,0,0.7);
	font-size: 1.1em;
}

/**
 * Seitenlayout
 */

.wrapper {
	width: 1190px;
	margin: 0 auto;
}

#left {
	float: left;
}

#content {
	padding-top: 20px;
	margin-left: 260px;
	font: normal 0.85em/1.75em "Open Sans", sans-serif;
	overflow: auto; /* Trick um floats automatisch umzubrechen */
}

header {
	width: 217px;
	height: 200px;
	background: url('./images/logo.png') top right no-repeat;
	text-indent: -10000px;
}

nav#main {
	width: 217px;
	background: url('./images/sidebar.png') top right repeat-y;
	text-align: right;
}

nav#main a {
	display: block;
	margin-top: 8px;
	line-height: 51px;
	padding-right: 30px;
	font-size: 1.1em;
	color: #FFF;
	text-decoration: none;
	outline: 0;
}

nav#main a:first-child {
	margin: 0;
}

nav#main a.active {
	background: url('./images/nav.png') top center no-repeat;
}

nav#sub {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	line-height: 30px;
	background: url('./images/bgDark.jpg');
	z-index: 100;
	border-bottom: solid 1px #4B4C50;
}

nav#sub span {
	display: block;
	text-align: right;
	padding-right: 20px;
}

nav#sub a {
	color: #D0D2DB;
	text-decoration: none;
}

footer {
	width: 187px;
	min-height: 108px;
	padding: 30px 30px 0 0;
	background: url('./images/footer.png') top right no-repeat;
	text-align: right;
	color: #71717f;
	font-size: 0.8em;
}

footer a {
	color: #71717f;
	text-decoration: none;
}

/**
 * Thumbnails.
 */

.thumbnail-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, 214px);

	/** The vertical gap is applied by the item itself using `padding-bottom`. See below for further details. */
	grid-gap: 0 18px;

	list-style-type: none;
	padding: 0;
}

.thumbnail-list__item {
	position: relative;
	display: block;

	/** This padding makes sure the shadow image is visible. */
	padding-bottom: 18px;
	background: url('./images/shadow.png') center bottom no-repeat;

	text-align: center;
}

.thumbnail-list__item--full-width {
	/* Span from the first column to the last. */
	grid-column: 1 / -1;
}

.thumbnail-link {
	display: block;
	background: url('./images/imgOverlay.jpg') center repeat;
	padding: 8px 7px 7px;

	text-decoration: none;
}

.thumbnail-link__text {
	font: normal 12pt/15pt Abel;
	text-shadow: none;	
	color: #282A2F;
}

.thumbnail-link__image-container {
	position: relative;
	width: 100%;
	height: 130px;
	margin-top: 5px;
}

.thumbnail-link__image-container__image {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	padding: 0;
	background: none;
}

.thumbnail-link__image-container__image--grayscale {
	opacity: 1;
	transition: opacity 420ms ease-in-out;
}

.thumbnail-link__image-container__image--grayscale:hover {
	opacity: 0;
	transition: opacity 180ms ease-in-out;
}

/**
 * Popup.
 */

.popup-overlay {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 200;

	display: none;
	width: 100vw;
	height: 100vh;

	background-color: #000;
	cursor: pointer;
}

.popup, .popup * {
	box-sizing: border-box;
}

.popup {
	position: fixed;
	left: 50%;
	top: 50%;
	z-index: 201;

	min-width: 200px;
	min-height: 160px;

	background: url('./images/imgOverlay.jpg') center repeat;

	padding: 8px;

	/**
	 * Force children (e.g. navigation buttons) to be visible during an ongoing animation.
	 * Based on: https://stackoverflow.com/a/5412189
	 */
	overflow: visible !important;

	color: #000;
}

.popup__loading-indicator,
.popup__loading-indicator::before,
.popup__loading-indicator::after
{
	display: block;
	width: 8px;
	height: 8px;
 
	background: #b4b2b4;
	border-radius: 50%;

	animation: dot-flashing 1s ease-in-out 0ms infinite;
}

.popup__loading-indicator {
	position: relative;

	/** Center loading indicator in parent container. */
	top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

	animation-delay: 250ms;
}

.popup__loading-indicator::before {
	content: "";

	position: absolute;
	top: 0;
	left: -12px;

	animation-delay: 0s;
}

.popup__loading-indicator::after {
	content: "";

	position: absolute;
	top: 0;
	right: -12px;

	animation-delay: 500ms;
}

@keyframes dot-flashing {
	0% {
		background: #3d3a3c;
	}
	50% {
		background: #b4b2b4;
	}
	100% {
		background: #3d3a3c;
	}
}

.popup__image {
	display: block;

	max-width: calc(100vw - 128px);
	max-height: calc(100vh - 128px);

	background: 0;
	border: 0;
	padding: 0;

	/** 
	 * Handles a layout edge case where a long description and a narrow image cause layout issues.
 	 * This `margin` ensures the image is centered within its container.
	 *
	 * In our edge case, the description is restricted to a single line due to limited screen height,
 	 * so it cannot wrap onto multiple lines. But this single line increases the popup width.
	 */
	margin: 0 auto;
}

.popup__description {
	display: block;

	font: normal 12pt/18pt Abel;
	text-shadow: none;
	padding: 4px 2px 2px;
}

.popup__button {
	position: absolute;
	top: 0;
	right: -40px;

	width: 40px;
	height: 40px;
	background: url('./images/popupNavigation.jpg') left top no-repeat !important;
	cursor: pointer;
}

.popup__button--prev {
	top: 92px;
	background-position: 0 -40px !important;
}

.popup__button--next {
	top: 46px;
	background-position: 0 -80px !important;
}

/**
 * Google recaptcha
 */
.g-recaptcha {
	margin: 5px 0 15px;
}