html                 { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }

.hidden        { display: none; }
.clear         { clear: both; }
.help          { cursor: help; }
.comment       { color: #999; font-style: italic; }
.highlight     { color: #fff; background-color: #009; }
.first         { margin-top: 0; }
.notice        { color: #999; font-size: 0.8em; }
label, legend  { cursor: pointer; }
hr             { border: none; border-top: 1px solid #fff; margin: 30px 10px; }
div.text       { line-height: 1em; }
span.emphasize { color: #ff8427; }

body, header, menu, div, ul, li {
  margin: 0;
  padding: 0;
}

p { margin-block-start: 0; margin-top: 0; }

body {
  background-color: #d1ecfd;
  color: #000;
  font-family: Trebuchet MS, Verdana, Roboto, sans-serif;
  font-size: 16pt;
}

a { color: #4dabe2; text-decoration: none; }

a:focus, a:active, a:hover, a.active { text-decoration: underline; }

label, .pointer, input[type=submit], input[type=reset] { cursor: pointer; }

h1 { font-size: 1.5em; }

a[href^="mailto:"]:before {
  content: "\2709";
  margin-right: 5px;
}

a[href^="tel:"]:before {
    content: "\260e";
    margin-right: 5px;
}

a[href^="fax:"]:before {
    content: "\1F5B7";
    margin-right: 5px;
}

.preload * {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -ms-transition: none !important;
  -o-transition: none !important;
  transition: none !important;
}

div.error {
  padding: 10px;
  border: 1px solid #c33;
  margin-bottom: 10px;
}

div.error h2, div.error ul li { color: #c33; }

div.success {
  padding: 10px;
  border: 1px solid #3c3;
  margin-bottom: 10px;
}

div.fixed_aspect, span.fixed_aspect {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

span.fixed_aspect { display: block; }

/*** Layout-Elemente ***/
body > div {
  max-width: 1136px;
  margin-left: auto;
  margin-right: auto;
  background-color: #fff;
}

/* Header und Balken-Menü */
header {
  width: 100%;
  background: url(../img/header_bg.jpg?4) top center no-repeat;
  background-size: contain;
  position: relative;
}

header a#home_link {
  display: inline-block;
  float: left;
  width: 80%;
  padding-top: 20%;
  margin-bottom: 10px;
}

header menu {
  float: right;
  margin-top: 8%;
  margin-right: 20px;
}

header menu li { list-style-type: none; }

header menu a.menu {
  display: inline-block;
  width: 50px;
  cursor: pointer;
}

header menu a.menu span {
  display: block;
  height: 6px;
  background-color: #000845;
  margin-bottom: 6px;
  border-radius: 5px;
}

header menu nav {
  display: none;
  z-index: 30;
  width: 100%;
  position: absolute;
  left: 0;
  padding-left: 10px;
  padding-bottom: 15px;
  background-color: #000845;
  border-bottom: 1px solid #4dabe2;
}

header menu nav li {
  padding-top: 5px;
  padding-bottom: 5px;
}

header menu nav li a {
  display: block;
}

/* Menu-Interaction */
header menu:focus  nav,
header menu:hover  nav,
header menu:active nav {
  display: block;
}

/* Main-Content Navigation via Deck of Cards */
div.cards {
  clear: both;
  text-align: center;
}

a.card {
  display: inline-block;
  position: relative;
  width: 30%;
  padding-top: 15%;
  margin: 5px;
  border: 2px solid #fff;
  border-radius: 8px;
  background-color: #8fd2fc;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: 0.5s ease-out 0s;
}

a.card h2 {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  padding: 4px 35px 4px 20px;
  border-bottom-left-radius: 8px;
  font-size: 1em;
  color: #011871;
  opacity: 0.9;
  background-color: #fff;
}

a.card.inactive { filter: grayscale(100%); }

a.card#logopaedie    { background-image: url(../img/card_logopaedie.jpg?2); }
a.card#lerntherapie  { background-image: url(../img/card_lerntherapie.jpg?2); }
a.card#neurofeedback { background-image: url(../img/card_neurofeedback.jpg?4); }
a.card#faq           { background-image: url(../img/card_sonstiges.jpg?2); }
a.card#praxis        { background-image: url(../img/card_praxis.jpg?1); }
a.card#ueber_mich    { background-image: url(../img/card_ueber_mich.jpg?3); }

a.card:hover, a.card:focus, a.card:active {
  filter: grayscale(0);
}


/* Nav */
nav a {
  color: #4dabe2;
  text-decoration: none;
  transition: 0.5s ease-out 0s;
}

nav a:link, nav a:visited { text-decoration: none; }

nav a:focus, nav a:hover, nav a:active, nav a.active { color: #fff; text-decoration: none; }

nav ul {
  margin: 0;
  list-style-type: none;
  text-transform: uppercase;
}

nav.horizontal li {
  float: left;
  margin: 15px 20px;
  font-size: 18pt;
}

/* Footer */
footer {
  color: #fff;
  background-color: #000845;
}

footer nav a { color: #4dabe2; }

footer nav.horizontal li { float: left; margin: 12px 30px; font-size: 18pt; }


/* Seiten-Inhalt/Content */
div.content {
  min-height: 300px;
  padding: 30px;
}

div.content *:first-child { margin-top: 0; }

div.content section {
  border: 2px solid #ebf6fc;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 30px;
}

div.content section.emphasize {
  border-color: #ff8427;
}

div.content p {
  margin-bottom: 20px;
}

div.content > *:last-child {
  margin-bottom: 0;
}

div.content ul {
  margin-left: 20px;
}

div.content ul li, div.content ol li {
  margin-bottom: 20px;
}

div.content section ul li:last-child, div.content section ol li:last-child {
  margin-bottom: 0;
}

div.content img { max-width: 100%; }

div.gallery div.item {
  display: inline-block;
  position: relative;
  vertical-align: middle;
  line-height: 0;
  box-shadow: 1px 1px 3px #ccc, -1px -1px 3px #ccc, -1px 1px 3px #ccc, 1px -1px 3px #ccc;
  border-radius: 5px;
  width: 22%;
  margin: 10px;
}

div.gallery div.item img { border-radius: 5px; }

div.overlay {
  z-index: 10;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
}

div.overlay div.img {
  margin-top: 50px;
  line-height: 0;
  position: relative;
}

div.overlay div.img img {
  box-shadow: 1px 1px 3px #ccc, -1px -1px 3px #ccc, -1px 1px 3px #ccc, 1px -1px 3px #ccc;
}

div.overlay a.close,
div.overlay a.prev,
div.overlay a.next {
  z-index: 12;
  opacity: 0;
  display: flex;
  position: absolute;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.25s linear;
}

div.overlay a.close {
  top: -30px;
  right: 30px;
}

div.overlay a.prev, div.overlay a.next {
  z-index: 11;
  top: 0;
  width: 10%;
  min-width: 200px;
  height: 100%;
  align-items: center;
  justify-content: center;
}

div.overlay a.next {
  right: 0;
}

div.overlay a.close span,
div.overlay a.prev  span,
div.overlay a.next  span {
  display: block;
  line-height: 100%;
  font-size: 2em;
  background-color: #000;
  width: 60px;
  height: 60px;
  border-radius: 60px;
  border: 2px solid #fff;
  padding-top: 4px;
}

div.overlay a.close span { padding-top: 2px; }

div.overlay:hover  a.close,
div.overlay:focus  a.close,
div.overlay:active a.close,
div.overlay a.prev:hover,
div.overlay a.prev:focus,
div.overlay a.prev:active,
div.overlay a.next:hover,
div.overlay a.next:focus,
div.overlay a.next:active {
  opacity: 0.8;
}

/* Bei geöffnetem Overlay das Scrollen der Seite unterbinden */
.disable_scrolling { overflow: hidden; }

/* Elementenfluss, links/rechts */
div.float         { width: 50%; }
div.float.small   { width: 25%; }
div.float.img     { line-height: 0; }
div.float img     { width: 100%; }
div.float.left    { float: left;  margin-right: 20px; }
div.float.right   { float: right; margin-left:  20px; }

div.center        { text-align: center; }
div.padded        { padding-bottom: 1%; }
div.bottomizer    { display: flex; }
div.bottom        { display: flex; align-items: flex-end; }
div.bottom p:last-child { margin-bottom: 0; }

div.youtube {
  width: 100%;
  padding-top: 56%;
  position: relative;
}

p.notice {
  margin-top: 15px;
}

div.img div.text { padding-left: 20px; }

a.youtube_standin {
  display: inline-block;
  width: 100%;
  height: 100%;
  background: url(../img/neurofeedback_youtube_cover.jpg) center no-repeat;
  background-size: contain;
}

a.youtube_standin#neurofeedback { background-image: url(../img/neurofeedback_youtube_cover.jpg); }

iframe.youtube {
  width: 100%;
  height: 100%;
}

blockquote {
  padding: 20px;
  padding-left: 40px;
  background-color: #eef5f9;
  border: 1px solid #ccc;
  border-radius: 20px;
  position: relative;
}

blockquote::before {
  content: '"';
  font-size: 3em;
  font-family: serif;
  position: absolute;
  top: 5px;
  left: 10px;
  color: #ccc;
}

blockquote cite {
  position: relative;
  top: 10px;
}


/* Clearfixes */
header::after, div.content::after, footer::after {
  content: "";
  clear: both;
  display: table;
}


/*** Breakpoints ***/
.phone_only                  { display: none; }
.tablet_only                 { display: none; }

/* Large/Desktop */
@media (max-width: 1136px) {
  .nodesktop                 { display: none; }
  body > div                 { margin-left: 20px; margin-right: 20px; }
  a.card h2                  { padding: 4px 25px 4px 15px; font-size: 0.9em; }
  div.content                { padding: 25px; }
  footer nav.horizontal li   { margin: 10px 25px; font-size: 16pt; }
}

/* Medium */
@media (max-width: 991px) {
  a.card h2                  { font-size: 0.8em; }
  div.content                { padding: 15px; }
  div.img div.text           { padding-left: 10px; }
}

/* Small/Tablet */
@media (max-width: 767px) {
  .notablet                  { display: none; }
  .tablet_only               { display: block; }
  body                       { font-size: 14pt; }
  body > div                 { margin-left: 10px; margin-right: 10px; }
  div.bottomizer             { display: block; }
  div.float                  { width: 100%; }
  div.float.left             { float: none; }
  div.float.right            { float: none; margin-left: 0; }
  a.card h2                  { padding: 4px; font-size: 0.7em; }
  div.content                { padding: 10px; }
  div.note_right             { float: right; width: 80%; }
  div.img div.text           { padding-left: 10px; }
}

/* X-Small/Phone */
@media (max-width: 600px) {
  .nophone                   { display: none; }
  .phone_only                { display: block; }
  body > div                 { margin-left: 0; margin-right: 0; }
  header menu nav            { width: 100%; margin: 0px; }
  div.img div.text           { padding-left: 4px; }
  div.overlay a.close span,
  div.overlay a.prev  span,
  div.overlay a.next  span   { padding-top: 6px; }
}
