@import url('https://fonts.googleapis.com/css?family=Titillium+Web:400,700');


* {
    font-family: 'Titillium Web', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
}

body {
    color: rgba(0, 0, 0, 0.87);
    background: url(./bg.jpg) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    min-height: 100vh;
	min-width: 20rem;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 0 .25rem rgba(0, 0, 0, .12);
    position: sticky;
    top: 0;
    z-index: 10;
}

header nav {
    display: flex;
    margin: auto;
    max-height: 3.5rem;
    max-width: 56rem;
    overflow: hidden;
    position: relative;
}

header nav a {
    color: inherit;
    display: block;
    font-weight: bold;
    line-height: 2.5rem;
    padding: 0.5rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 250ms;
}

header nav a:hover,
header nav a:focus {
    background-color: rgba(153, 153, 153, 0.2);
}

header nav a:active {
    background-color: rgba(153, 153, 153, 0.4);
    transition: unset;
}

header nav a img.logo {
    display: block;
    height: 2.5rem;
}

#menu-icon {
    border-radius: 50%;
    display: none;
    height: 2.5rem;
    margin: 0.5rem;
    overflow: hidden;
    padding: 0;
    position: absolute;
    right: 0;
    width: 2.5rem;
}

#menu-icon img {
    display: block;
    height: 1.5rem;
    padding: 0.5rem;
    position: absolute;
    transition: opacity 250ms, transform 250ms;
    width: 1.5rem;
}

#menu-icon img:nth-child(1) {
    transform: translateY(0);
}

#menu-icon img:nth-child(2) {
    transform: translateY(-100%);
}

@media screen and (max-width: 600px) {

    header nav {
        flex-direction: column;
        transition: max-height 250ms;
    }

    header nav.show-menu {
        max-height: 21rem;
    }

    header nav.show-menu #menu-icon img:nth-child(1) {
        transform: translateY(100%);
    }

    header nav.show-menu #menu-icon img:nth-child(2) {
        transform: translateY(0);
    }

    header nav a:not(:first-child) {
        display: block;
    }

    #menu-icon {
        display: block;
    }
}

footer {
    color: white;
    font-weight: bold;
    margin: 1rem;
}

h1 {
    font-size: 1.5rem;
    padding: 1rem;
}

h2 {
    font-size: 1.25rem;
    padding: 1rem;
}

#content {
    margin: 1rem;
}

.box {
    background-color: white;
    border-radius: 0.125rem;
    box-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.12);
}

.box + .box {
    margin-top: 1rem;
}

.box > p {
    padding: 1rem;
}

.box > p + p {
    padding-top: 0;
}

.frm-fields {
    list-style-type: none;
    padding: 1rem;
}

.frm-fields li {
    display: flex;
}

.frm-fields li:not(:last-child) {
    margin-bottom: 0.5rem;
}

.frm-fields label {
    line-height: 2rem;
    padding-bottom: 1px;
    padding-right: 0.5rem;
    padding-top: 1px;
    width: 8rem;
}

.frm-field {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
}

.frm-field.fill input,
.frm-field.fill select,
.frm-field.fill textarea {
    flex: 1;
}

.frm-field input:not(:last-child) {
    margin-right: 0.5rem;
}

@media screen and (max-width: 600px) {

    .frm-fields li {
        flex-direction: column;
    }
    
    .frm-field input,
    .frm-field select,
    .frm-field textarea {
        flex: 1;
    }
}

.err {
    color: #f44336;
    display: block;
    line-height: 2rem;
    order: 1;
    padding: 1px 0.5rem 1px 0;
    width: 100%;
}

.err:not(:empty) + input,
.err:not(:empty) + textarea {
    border-color: #f44336;
}

input[type=text],
input[type=password],
select,
textarea {
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.125rem;
    box-sizing: content-box;
    display: block;
    font-family: inherit;
    font-size: 1rem;
    height: 2rem;
    outline: none;
    padding: 0 0.5rem;
    width: 12rem;
    transition: border-color 250ms, box-shadow 250ms;
}

input[type=text]:hover,
input[type=password]:hover,
select:hover,
textarea:hover {
    box-shadow: 0 0 0 0.125rem rgba(33, 150, 243, 0.25);
}

input[type=text]:focus,
input[type=password]:focus,
select:focus,
textarea:focus {
    border-color: #2196F3;
    box-shadow: 0 0 0 0.125rem rgba(33, 150, 243, 0.25);
}

input[type=text]:disabled,
input[type=password]:disabled,
select:disabled,
textarea:disabled {
    background-color: rgba(153, 153, 153, 0.2);
    color: rgba(0, 0, 0, 0.54);
}

select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background: url(./icon/ic_dropdown.svg) no-repeat right 0.5rem center;
}

textarea {
    height: 5rem;
    line-height: 1.5rem;
    padding-bottom: 0.25rem;
    padding-top: 0.25rem;
    min-height: 2rem;
    resize: vertical;
}

.btn-bar {
    border-top: 1px solid rgba(153, 153, 153, 0.2);
    display: flex;
    padding: 1rem;
}

.btn-bar > * + * {
    margin-left: 0.5rem;
}

/* Image-Upload */
.img-upload {
    border: 1px dashed rgba(0, 0, 0, 0.12);
    border-radius: 0.25rem;
    display: block;
    line-height: 3.5rem;
    margin: 1rem;
    text-align: center;
    transition: border-color 250ms, box-shadow 250ms;
}

.img-upload:hover {
    box-shadow: 0 0 0 0.125rem rgba(33, 150, 243, .25);
}

.img-upload:focus {
    border-color: #2196F3;
    box-shadow: 0 0 0 0.125rem rgba(33, 150, 243, .25);
}

.del-label {
    display: block;
    transition: background-color 250ms;
}

.del-label:focus,
.del-label:hover {
    background-color: rgba(153, 153, 153, 0.2);
}

.del-label:active {
    background-color: rgba(153, 153, 153, 0.4);
    transition: unset;
}

.del-label span {
    display: block;
    padding: 1rem;
}

.del-label input:checked + span {
    color: #f44336;
    text-decoration: line-through;
}

.center {
    max-width: 56rem;
    margin: 0 auto;
}

.padding {
    padding: 1rem;
}

.add-divider:not(:last-child) {
    border-bottom: 1px solid rgba(153, 153, 153, .2);
}

.caption {
    font-size: 1.25rem;
    font-weight: bold;
}

ul.cols {
    list-style-type: none;
    padding: 1rem;
    overflow-x: auto;
}

ul.cols li {
    display: flex;
}

ul.cols li + li {
    padding-top: 1rem;
}

ul.cols li div {
    width: 12rem;
}

ul.cols li div + div {
    margin-left: 0.5rem;
}

.gallery-list {
    display: flex;
    flex-wrap: wrap;
    padding: 0.5rem;
}

.gallery-list a {
    background-position: center;
    background-size: cover;
    border-radius: 0.125rem;
    flex: 1;
    height: 12rem;
    margin: 0.5rem;
    min-width: 16rem;
    overflow: hidden;
    position: relative;
    text-decoration: none;
}

.gallery-list a::after {
    background-image: linear-gradient(transparent, rgba(0, 0, 0, .25));
    bottom: 0;
    color: white;
    content: attr(data-title);
    font-weight: bold;
    left: 0;
    line-height: 2.5rem;
    overflow: hidden;
    padding: 0 1rem;
    position: absolute;
    right: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-list a div {
    background-position: center;
    background-size: cover;
    height: 100%;
    transition: transform 500ms;
    width: 100%;
}

.gallery-list a:hover div {
    transform: scale(1.125);
}

.gallery {
    background-color: rgba(51, 51, 51, 1);
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
}

.gallery img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.gallery-next,
.gallery-prev {
    background-color: rgba(153, 153, 153, .4);
    border: none;
    border-radius: 50%;
    display: block;
    outline: none;
    padding: .5rem;
    position: absolute;
    top: 50%;
    transition: background-color 250ms;
}

.gallery-next {
    right: .5rem;
}

.gallery-prev {
    left: .5rem;
}

.gallery-next:hover,
.gallery-prev:hover {
    background-color: #9e9e9e;
}

.gallery-next:active,
.gallery-prev:active {
    background-color: #616161;
    transition: none;
}

.gallery-next img,
.gallery-prev img {
    display: block;
    height: 1.5rem;
    width: 1.5rem;
}

.gallery-back-wrapper {
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

#neue-bilder {
    list-style-type: none;
    padding-left: 0;
}

#neue-bilder li {
    border: .0625rem solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
    display: flex;
    margin-bottom: .5rem;
}

#neue-bilder li span:first-child {
    line-height: 1.5rem;
    margin-right: auto;
    padding: .5rem;
}

.btn-pill {
    background-color: #9e9e9e;
    border: none;
    border-radius: 1.25rem;
    box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, .125);
    color: white;
    display: block;
    font-family: inherit;
    font-size: 1rem;
    height: 2.5rem;
    padding: 0 1.25rem;
    text-decoration: none;
    transition: background-color 250ms;
}

.btn-pill:hover {
    background-color: #616161;
}

.btn-icon-text {
    display: flex;
}

.btn-icon-text img {
    display: block;
    height: 1.5rem;
    margin: 0.5rem 0;
    width: 1.5rem;
}

.btn-icon-text span {
    display: block;
    overflow: hidden;
    line-height: 2.5rem;
    margin-left: 0.5rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-blue {
    background-color: #2196F3;
    font-weight: bold;
}

.btn-blue:hover {
    background-color: #1976d2;
}

.btn-red {
    background-color: #f44336;
}

.btn-red:hover {
    background-color: #d32f2f;
}

.btn-overlay {
    background-color: rgba(153, 153, 153, .4);
}

.btn-overlay:hover {
    background-color: #9e9e9e;
}

.btn-overlay:active {
    background-color: #616161;
}

.btn-main {
    bottom: 1.25rem;
    left: 50%;
    position: fixed;
    transform: translateX(-50%);
}

.margin {
    margin: 1rem;
}

.msg {
    color: white;
    display: flex;
    padding: 1rem;
}

.msg img {
    display: block;
    height: 1.5rem;
    margin-right: 0.5rem;
    width: 1.5rem;
}

.msg.error {
    background-color: #f44336;
}

.msg.success {
    background-color: #4caf50;
}

.flex {
    display: flex;
}

ul.link-list,
ul.text-list {
    list-style-type: none;
    padding-left: 0;
}

ul.text-list li {
    padding: 1rem;
}

ul.link-list li + li,
ul.text-list li + li {
    border-top: 1px solid rgba(0, 0, 0, .125);
}

ul.link-list a {
    color: inherit;
    display: block;
    padding: 1rem;
    text-decoration: none;
    transition: background-color 250ms;
}

ul.link-list a:focus,
ul.link-list a:hover {
    background-color: rgba(153, 153, 153, .2);
}

ul.link-list a:active {
    background-color: rgba(153, 153, 153, .4);
    transition: unset;
}

/* Link */
a.simple,
a.simple:visited {
    color: #2196F3;
    text-decoration: none;
    transition: background-color 250ms, color 250ms;
}

a.simple:focus,
a.simple:hover {
    background-color: #2196F3;
    color: white;
}

a.simple:active {
    background-color: #1976d2;
    transition: unset;
}

.margin-left-auto {
    margin-left: auto;
}

/* Beispiel */
.sample {
	background-color: #f0f4c3;
	border: 1px dashed #cddc39;
	border-radius: 0.125rem;
	box-sizing: border-box;
	margin-top: -2px;
	max-height: 0;
	min-width: 100%;
	opacity: 0;
	overflow: hidden;
	padding: 0 1rem;
	transition: margin-top 250ms, max-height 250ms, opacity 250ms, padding 250ms;
}

.sample::before {
	border-bottom: 1px solid #cddc39;
	content: 'Beispiel';
	display: block;
	font-weight: bold;
	margin-bottom: 0.5rem;
	padding-bottom: 0.5rem;
}

*:focus + .sample {
	margin-top: 0.5rem;
	max-height: 10rem;
	opacity: 1;
	padding: 1rem;
}

.no-margin-left {
	margin-left: 0 !important;
}