/*
pink  : #e36f75
blue  : #3e5a7f
green : 
gold  : #c4a366
*/

@charset 'UTF-8';
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,300i,600,700');

.m-hide-text,
.logo,
.social-icon {
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
}

.is-hidden    { display: none; }
.is-invisible { visibility: hidden; }
.is-centered  { text-align: center; }

.no-top-margin { margin-top: 0; }

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

html { font-size: 1.2rem; }

@media (max-width: 599px) {
  html { font-size: 1.3rem; }
}

body {
  font-family: 'Open Sans', serif;
  font-weight: 300;
}

nav {
  padding-top: .4em;
  padding-bottom: .6em;
  width: 100%;
  background-color: #3e5a7f;
  text-align: center;
}
@media (max-width: 599px) {
  nav {
    position: relative;
    text-align: center;
  }
}

nav a {
  text-decoration: none;
  padding: .5em 1.2em;
}
nav a.lang { padding-left: .35em; }
nav a.lang:first-child { padding-right: 0; }

.flag-icon {
  background-size: contain;
  background-position: 50%;
  background-repeat: no-repeat;
  position: relative;
  display: inline-block;
  width: 1.33333333em;
  line-height: 1em;
}

.flag-icon:before { content: '\00a0'; }
.flag-icon-gb { background-image: url(../img/flags/4x3-gb.svg); }
.flag-icon-si { background-image: url(../img/flags/4x3-si.svg); }
.flag-icon-de { background-image: url(../img/flags/4x3-de.svg); }

.logo {
  margin: 1em auto;
  padding: 0;
  display: block;
  width: 10em;
  height: 6em;
  background-size: 180%;
  background-image: url('../img/majas-lernspass-logo.png');
  background-repeat: no-repeat;
  background-position: center;
}
.logo a {
  display: block;
  height: 100%;
}

.more-info:after,
nav span:after {
  transition: width .25s ease-in-out;
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
}

nav span:after { background-color: #c4a366; }
.more-info:after { background-color: #e36f75; }

.nav-active span:after,
nav span:hover:after,
.more-info:hover:after {
  width: 100%;
}

hr.elegant {
  margin: 3.5rem auto;
  border: none;
  height: 1px;
  background-color: grey;
  transform: scaleX(1.5) scaleY(.5);
}

aside .elegant { margin: 2.5rem auto; }

p, li {
  font-size: 1rem;
  line-height: 1.6rem;
  font-variant-ligatures: common-ligatures;
  font-feature-settings: 'liga', 'clig';
}

p b { font-weight: 600; }
p strong { font-weight: 600; }

.intro:first-letter {
  float: left;
  display: block;
  font-weight: 700;
  font-size: 2.65em;
  color: #ffffff;
  background-color: #e36f75;
  padding: .485em .4em;
  margin: .1em .25em 0 0;
}

.container {
  margin: 0 auto;
  width: 90%; 
  max-width: 740px;
}

button,
nav a,
footer a {
  text-transform: uppercase;
  font-weight: 700;
  font-size: .7rem;
  line-height: 1rem;
  cursor: pointer;
}

.cta {
  margin-top: 1.5em;
  height: 40px;
  padding-left: 30px;
  padding-right: 30px;
  color: #000000;
  text-decoration: none;
}

nav .cta { color: #ffffff; }

.more-info {
  cursor: pointer;
  position: relative;
  font-weight: 700;
}

.cta span {
  transition: all .3s;
  will-change: transform;
  display: inline-block;
  position: relative;
}

.cta:not(.nav-active):hover span { transform: translateX(-4px); }
.cta:not(.nav-active):hover { color: #ffffff; background-color: #3e5a7f; }

.cta:not(.nav-active):hover:after {
  content: '→';
  position: absolute;
  font-size: 1.2em;
  line-height: 1.2em;
}

a.cta:not(.nav-active):hover:after { margin-top: .45em; }

h2 { margin-bottom: .8rem; }
h2 a {
  font-size: 1.2rem;
  color: #e36f75;
  transition: color .2s;
}
h2 a:hover { color: #000000; text-decoration: none; }

h3 {
  margin-top: 2.6rem;
  margin-bottom: .6rem;
}

li { margin-bottom: .357rem; }

/* ------------- */
/*     Footer    */
/* ------------- */
footer {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  padding: 5em 0;
  border-top: 1px solid grey;
  background-color: #000;
  color: #fff;
}

.footer-info { margin-left: 2em; }
.footer-info p { font-size: .75em; }
@media (max-width: 599px) {
  .footer-info { position: relative; }
}
.footer-info a { color: #e36f75; transition: color .2s; }
.footer-info a:hover { color: #fff; text-decoration: none; }

.social { margin-right: 2em; }
.social ul { list-style: none; }
.social li { display: inline-block; }

@media (max-width: 599px) {
  .social {
    position: static;
    margin-top: -1.6em;
    text-align: center;
  }
  .social ul { padding: 0; }
}

.social-icon {
  transition: border .3s;
  display: inline-block;
  padding: 1.8em;
  width: 1.8em;
  height: 1.8em;
  color: transparent;
  background-size: 70%;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  border: 1px solid #c3c3c3;
}
.social-icon:hover { border-color: #101010; }

.social-icon-fb    { background-image: url('../img/icons/facebook.svg'); }
.social-icon-ig    { background-image: url('../img/icons/instagram.svg'); }
.social-icon-email { background-image: url('../img/icons/email.svg'); }


/* -------------- */
/*     Courses    */
/* -------------- */

.button-close-modal {
  appearance: none;
  top: 3em;
  left: 5em;
  position: absolute;
  width: 1.8rem;
  height: 1.8rem;
  border: 0;
  cursor: pointer;
  background-color: transparent;
}
.button-close-modal:hover svg { color: #e36f75; }

aside {
  transform: translateY(-120%);
  z-index: 2;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(255, 255, 255, .975);
  overflow: scroll;
}
aside::-webkit-scrollbar { display: none; }
aside.shown { transition: transform .3s; transform: translateY(0); }

.course-info {
  padding: 3em 2em;
  margin: 0 auto;
  width: 90%; 
  max-width: 650px;
}

.overlay-heading { font-size: 1.75em; font-weight: 700; }

.reasons li { font-size: .85em; line-height: 1.3; }
.smaller { font-size: .85em; padding-bottom: 5em; }