#header {
  position: relative;
  display: flex;
  flex-direction: column;
}

#footer {
  background-color: #7e9dca !important;
  margin-top: 3em;
}

#header::after {
  content: "";
  background: url(../img/header_background_4.jpg);
  background-position: 50% 80%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: .8;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  position: absolute;
  z-index: -1;
  -webkit-transition: opacity 0.2s ease-in-out;
  -moz-transition: opacity 0.2s ease-in-out;
  transition: opacity 0.2s ease-in-out;
}

#slogan {
  font-family: 'Kalam', cursive;
  vertical-align: middle;
  margin: 0 20px 0 45px;
  position: absolute;
  font-size: 25px;
}

@media only screen and (max-width: 992.99px) {
  #slogan {
    text-align: center;
    left: 0;
    right: 0;
    margin: 0;
  }
}

#header:hover::after {
  opacity: 1;
}

#header:hover #logo {
  opacity: .5;
}

#logo:hover {
  opacity: 1 !important;
}

#logo {
  width: 250px;
  height: 190px;
  background-image: url(../img/logo.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-color: #ffffff;
  display: block;
  margin: 10px 20px;
  -webkit-transition: opacity 0.2s ease-in-out;
  -moz-transition: opacity 0.2s ease-in-out;
  transition: opacity 0.2s ease-in-out;
}

@media only screen and (max-width: 992.99px) {
  #logo {
    margin: 20px auto;
    height: 220px;
    width: 290px
  }
}

#main {
  background: white;
}

.button-baseline {
  line-height: 36px;
  vertical-align: baseline;
}

a {
  display: inline-block;
}

a.background-hover {
  transition: background-color 0.5s ease
}

a.background-hover:hover {
  background-color: whitesmoke;
}

/** navigation styles */

nav i.right {
  margin-left: 5px;
}

#nav-positioner {
  width: 100%;
}

nav ul.center>li {
  display: inline-block;
  float: none;
}

nav a.button-collapse {
  text-shadow: 0px 0px 20px black;
}

/* divider in navigations */
nav ul:not(.dropdown-content):not(.sidenav)>.divider {
  float: left;
  width: 1px;
  display: block;
  height: 64px;
}

nav ul:not(.dropdown-content):not(.sidenav)>li.active>a {
  color: rgba(0, 0, 0, 0.87);
}

nav ul.sidenav li>.disabled {
  cursor: default;
  padding: 0 32px;
  color: rgba(0, 0, 0, 0.5);
}

ul.sidenav ul.collapsible-accordion .collapsible-body li .disabled {
  padding: 0 37.5px 0 45px;
}

nav ul:not(.dropdown-content):not(.sidenav)>li>.disabled {
  cursor: default;
  padding: 0 15px;
}

nav ul:not(.dropdown-content):not(.sidenav)>li.active {
  background-color: #f3f3f3;
}

nav ul.dropdown-content:not(.sidenav) li>a {
  color: rgba(0, 0, 0, 0.87);
}

nav ul.dropdown-content:not(.sidenav)>li.active>a {
  background-color: rgba(0, 0, 0, 0.05);
}

/* make nav bar invisible if nav is a slide out */
nav {
  background-color: rgba(72, 72, 72, 0.72);
  box-shadow: 0 -2px 2px 0 rgba(0, 0, 0, 0.07), 0 -1px 1px 0 rgba(0, 0, 0, 0.07), 0 -3px 1px 0px rgba(0, 0, 0, 0.1)
}

@media only screen and (min-width: 993px) {

  /* reverse navbar and logo order on bigger screens */
  #header {
    flex-direction: column-reverse;
  }
}


/** side nav styles */

ul.sidenav ul.collapsible-accordion a.collapsible-header {
  padding: 0 32px;
}

ul.sidenav ul.collapsible-accordion .collapsible-body li a {
  font-weight: 400;
  padding: 0 37.5px 0 45px;
}

ul.sidenav ul.collapsible-accordion a.collapsible-header {
  height: 48px;
}

ul.sidenav .collapsible-header i.right {
  margin-right: 0;
}


/** make container span full width on mobile with a .large class */

@media only screen and (min-width: 993px) {
  .container.large {
    width: 85%;
  }
}

@media only screen and (min-width: 1201px) {
  .container.large {
    width: 70%;
  }
}

.container.large {
  width: 100%;
}


/** sticky footer */

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

#main {
  flex: 1 0 auto;
}

#flickrembed {
  height: 700px;
}

.responsive-img:not(.full-width) {
  max-height: 550px;
  display: inline-block;
  margin: 10px;
  max-width: calc(100% - 20px);
  box-shadow: 2px 2px 5px grey;
}

/** fancybox styles */
#main img.zoom {
  cursor: pointer;
}

/** fancybox fix for materialize interplay ussues */
#fancybox-wrap {
  box-sizing: content-box;
}

/** slideshow */
.slideshow {
  margin: 10px auto;
}

h1 {
  font-size: 3.2rem;
  margin: 1.6rem 0 1rem 0;
}

h2 {
  font-size: 2.6rem;
  margin: 1.4rem 0 .8rem 0;
}

h3 {
  font-size: 1.6rem;
  margin: 2rem 0 .5rem 0;
}

h4 {
  font-size: 1.4rem;
  margin: 1.5rem 0 .5rem 0;
}

br {
  line-height: 2;
}

.card .card-action a:not(.btn):not(.btn-small):not(.btn-large):not(.btn-large):not(.btn-floating) {
  color: #7e9dca;
}

.card .card-action a:not(.btn):not(.btn-small):not(.btn-large):not(.btn-large):not(.btn-floating):hover {
  color: #89a5ce;
}

.btn,
.btn-large {
  background-color: #7e9dca;
  margin: 4px 2px;
}

.btn:hover,
.btn-large:hover {
  background-color: #89a5ce;
}

.btn:focus,
.btn-small:focus,
.btn-large:focus,
.btn-floating:focus {
  background-color: #526d96;
}

content a {
  color: #7e9dca;
}

[type=checkbox].filled-in:checked+span:not(.lever):after {
  background-color: #7e9dca;
  border-color: #7e9dca;
}

[type=radio]:checked+span:after,
[type=radio].with-gap:checked+span:after {
  background-color: #7e9dca;
}

[type=radio]:checked+span:after,
[type=radio].with-gap:checked+span:before,
[type=radio].with-gap:checked+span:after {
  border-color: #7e9dca;
}

.dropdown-content li>a,
.dropdown-content li>span {
  color: black;
}

content a:not(.btn):not(.btn-large):hover {
  text-decoration-color: grey !important;
  text-decoration: underline;
  animation: .2s;
}

.collapsible-body .button-row {
  margin-top: 10px;
}

.collapsible-body .button-row>* {
  display: inline-block;
}

.collapsible-body .button-row>*:not(:last-child) {
  margin-right: 10px;
}

form .flex-group {
  display: flex;
  margin: 0 -5px;
}

form .flex-group>* {
  flex: 1;
  margin-bottom: 0;
  padding: 0 5px;
}

form textarea.materialize-textarea {
  min-height: 9rem;
}

label.mod-forms-label {
  color: black;
}

.mod-forms-radio {
  display: flex;
}

.mod-forms-radio .radio-description {
  flex: 1;
}

.mod-forms-radio label {
  margin-left: 3em;
}

.image-grid {
  display: flex;
}

.image-grid figure {
  position: relative;
  margin: 10px;
}

.image-grid figure img {
  margin: 0 !important;
}

.image-grid figure.aspect-3x2 {
  flex: 1.5 0%;
}

.image-grid figure.aspect-4x3 {
  flex: 1.333333 0%;
}

.image-grid figure.aspect-2x3 {
  flex: .666667 0%;
}

.image-grid figure.aspect-3x4 {
  flex: .75 0%;
}

.image-grid figure.aspect-3x1 {
  flex: 3 0%;
}

.image-grid figure.aspect-1x1 {
  flex: 1 0%;
}

.image-grid figure img {
  width: 100%;
}

.image-grid figure img:not(.full-width) {
  max-width: 100%;
}

.social img {
  height: 32px;
  margin-right: 8px;
}

/** self hosted fonts: */

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

/* /angebote CSS */
.angebote .card-image {
  height: 250px;
}

.angebote .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.angebote .card-image::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0%), rgb(0 0 0 / 0%), rgb(0 0 0 / 70%));
  z-index: 1;
}
.angebote .card-image img {
  position: relative;
  z-index: 0;
}
.angebote .card-title {
  position: relative;
  z-index: 2;
}
