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

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


/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default padding */
ul[class],
ol[class] {
  padding: 0;
}

/* Remove default margin */
* {
    padding: 0;
    margin: 0;
}
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

/* Set core body defaults */
html,body {
  scroll-behavior: smooth;
  font-family: 'Raleway',sans-serif!important;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #555554;
  font-weight: 400;
}

/* Remove list styles on ul, ol elements with a class attribute */
ul[class],
ol[class],
ul {
  list-style: none;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img {
  max-width: 100%;
  display: block;
}


/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body p {
  font-size: 1.5rem;
  line-height: 1.2;
}
a:hover {
  text-decoration: none!important;
  color: #fff!important;
}

.m-section {
    margin: 60px 0px 0px 0px;
}

.m-block .m-btn {
  background-color: #fff;
  border: 1px solid #fff;
  font-size: 1.3rem;
}
.m-block h1 span {
  position: relative;
}
.m-block > h1 {
  line-height: 0.9;
  margin-bottom: 80px;
  font-size: 3.4rem;
}
.m-block h1 span:after {
  content: "";
  position: absolute;
  left: 4px;
  width: 160%;
  height: 2px;
  background: #fff;
  bottom: 7px;
}
h2.m-title {
    color: #5E78A4;
    text-align: center;
    margin-bottom: 56px;
    position: relative;
    font-size: 48px;
    font-size: 3rem;
}
h2.m-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: #5E78A4;
    transform: translate(-50%, 0px);
    left: 50%;
}


button.m-btn {
    color: #5e78a4;
    background-color: transparent;
    outline: 0;
    padding: 6px 30px;
    font-size: 1.3rem;
    border: 1px solid #5e78a4;
    margin: 36px 0 82px 0;
    transition: all .5s linear;
}

p:not(.m-bg__info) {
    text-align: center;
}
.m-section__boxes {
  margin: 75px;
}
.m-boxes__info {
    text-align: center;
}

.m-header li a,.m-header li {
    color: #fff;
    margin: 8px 0px 2px 0px;
}

.m-header, footer {
    background-color: #5E78A4;
}

ul.list-item {
    display: flex;
    justify-content: space-between;
    margin: 0;
}

.m-bg {
    background-image: url("img/Ines-Lenert-08.jpg");
    background-repeat: no-repeat;
    height: calc(100vh - 34px);
    width: 100%;
    position: relative;
    background-position: 240px 0%;
    background-size: cover;
}
.m-overlay {
    -webkit-clip-path: polygon(0 0, 32% 0, 100% 200%, 0% 100%);
    clip-path: polygon(0 0, 32% 0, 100% 200%, 0% 100%);
    background-color: #5E78A4;
    position: absolute;
    height: calc(100vh - 34px);
    width: 100vw;
    z-index: 9;
}
.m-block {
    z-index: 9999;
    position: relative;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    padding: 40% 55% 0px 0px;
}
.m-block h1,.m-block p {
    color: #fff;
}
.m-box {
    background-size: cover;
    background-repeat: no-repeat;
    margin-bottom: 60px;
}
.m-box img {
  border-radius: 25px;
  height: auto;
  width: 100%;
  object-fit: cover;
  object-position: top;
  box-shadow: 2px 2px 2px rgba(0,0,0,0.4);
}
.m-boxes:nth-child(4) .m-boxes__info .m-btn, .m-boxes:nth-child(3) .m-boxes__info .m-btn {
  margin-bottom: 0;
}
.m-tittle__text {
  padding: 0 10%;
}
.box:first-of-type {
    background-image: url("img/taschenrechner.png");
}
button.m-btn:hover, button.m-btn a:active {
  background: #5e78a4;
  color: #fff;
  transition: all .5s linear;
}
button.m-btn:hover a {
  color: #fff;
}
.m-info__bg {
  border: 2px solid #5E78A4;
  border-radius: 25px;
  overflow: hidden;
  height: 100%;
  max-height: 81%;
  width: 80%;
  margin: 0 auto;
}
.m-info__bg img {
  object-fit: cover;
  object-position: 0px -40px;
}
.m-social img {
  width: 200px;
  height: 120px;
  object-fit: contain;
  max-width: 100%;
}
.m-btn a {
  color: #5e78a4;
}
.m-info__box {
  text-align: center;
  margin: 40px 0 0 0;
}
.m-info__box .m-btn {
  margin-bottom: 0;
}
.m-social {
  margin: 20px 0;
}
.m-social ul {
  text-align: center;
}
.m-social ul li {
  display: inline-block;
}
.m-social ul li:nth-child(2) {
  margin: 0 40px 0;
}


footer {
  margin: 30px 0 0 0;
}
footer ul {
  display: flex;
  flex-direction: row;
  list-style: none;
  justify-content: center;
  margin: 0;
  padding: 10px 0;
}
footer ul li a {
  color: #fff;
  text-decoration: none;
  position: relative;
  margin: 0 5px;
}
footer ul li:first-of-type a:after {
  content: "|";
  right: -8px;
  position: absolute;
}

@media(max-width: 1600px) {
    .m-block {
      padding: 10% 55% 0px 0px;
  }
}

@media(max-width: 1024px) {
  .m-bg {
    background-size: cover;
    background-position: 120px 0px;
  }
}
@media(max-width: 992px) {
  .m-block > h1 {
    margin-bottom: 30px;
    font-size: 3.1rem;
  }
  .m-overlay {
    height: 100%;
  }
  .m-bg {
    height: 100%;
  }
}
@media (max-width: 767px) {
  .m-info__bg {
    width: 100%;
  }
  .m-tittle__text {
    padding: 0;
  }
  .list-item li:last-of-type {
    display: none;
  }
  .m-overlay {
    opacity: 0.7;
    height: 100%;
    top: 0;
    clip-path: polygon(0 0, 100% 0, 100% 200%, 0% 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 200%, 0% 100%);
  }
  .m-bg {
    background-position: 40% 6%;
    height: 100%;
    padding: 20px 0;
  }
  .m-block {
    padding: 32px 0 0 0;
  }
  .m-box {
    margin-bottom: 40px;
  }
  button.m-btn, .m-boxes:nth-child(4) .m-boxes__info .m-btn, .m-boxes:nth-child(3) .m-boxes__info .m-btn {
    margin-bottom: 60px;
  }
}