/* =============================================================================
LAYOUT
========================================================================== */
.template--praxis #main {
  overflow: visible;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  margin-top: 0;
}

@media screen and (min-width: 500px) {
  .template--praxis header {
    border: none;
    height: auto;
  }

  .template--praxis .wrapper {
    overflow: hidden;
  }
}

@media screen and (min-width: 800px) {
  .template--praxis #main {
    margin-top: 11.66666em;
  }

  .template--praxis header {
    height: 100px;
  }
}

.template--praxis h1 span {
  background-image: url(../img/logo-kalbheim-praxis.svg);
}

@media screen and (min-width: 500px) {
  .template--praxis h1 {
    height: 127px;
    width: 303px;
    margin: 20px auto -80px;
    position: relative;
    bottom: auto;
    left: auto;
  }
}

@media screen and (min-width: 800px) {
  .template--praxis h1 {
    bottom: -12px;
    width: 302px;
    height: 127px;
    position: absolute;
    left: 0;
  }
}

@media only screen and (max-width: 499px) {
  .template--praxis #backtotop {
    display: none;
  }
}

/* =============================================================================
CONTENT
========================================================================== */

.teasers_praxis {
  margin-bottom: 40px;
}
.teaser_praxis {
  margin-bottom: 20px;
  margin-top: 30px;
}
.teaser_praxis h2 {
  line-height: 1;
  margin-bottom: 10px !important;
}

.teaser_praxis a {
  display: block;
  text-decoration: none;
  background-image: radial-gradient(29% 132%, #fbe8d8 33%, #fdf5ee 100%);
  border-radius: 10px;
  padding: 30px;
  cursor: pointer;
  position: relative;
}

.teaser_praxis p {
  color: black;
  max-width: 300px;
  line-height: 1.7;
}

.teaser_praxis a:hover {
  filter: brightness(1.02);
}

.teaser_praxis p .cta {
  min-width: 190px;
  text-align: center;
  margin-top: 15px;
}
.teaser_praxis.-new a:before {
  content: "NEU";
  position: absolute;
  background: #fff;
  padding: 10px 30px;
  border-radius: 50%;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  font-family: "Yanone Kaffeesatz";
  font-weight: bold;
  font-size: 20px;
}

.praxis__intro,
.praxis__contact {
  box-sizing: border-box;
}

.praxis__intro p,
.praxis__contact p {
  line-height: 1.7;
}

.praxis__intro h2 b,
.praxis__intro p b,
.praxis__contact p b,
.teaser_praxis h2 b,
.teaser_praxis a:before {
  color: #ea680a;
}

.praxis__intro {
  background: #fff;
  width: 100%;
  position: relative;
  padding: 20px;
  border-top: 10px solid #ea680a;
}

.praxis__intro h2,
.teaser_praxis h2 {
  position: static;
  margin: 0 0 0.5em 0;
  font-family: "Yanone Kaffeesatz";
  font-weight: bold;
  font-size: 42px;
  color: black;
  text-transform: none;
  background: none;
  padding: 0;
  line-height: 1;
}

.praxis__intro h2 {
  margin-bottom: 1em;
}

.praxis__intro img {
  width: 66%;
  display: block;
  margin-left: -7%;
}
.praxis__intro hr {
  margin-top: 40px;
  margin-bottom: 40px;
}

.praxis__contact {
  padding: 20px;
  position: relative;
}

.praxis__contact-box {
  background: #fbe8d8;
  border-radius: 6px;
  padding: 20px;
  margin-top: 2em;
  margin-bottom: 2em;
  font-weight: 400;
  color: black;
  font-family: "Yanone Kaffeesatz";
  font-size: 1rem;
}

.praxis__contact-box a {
  display: block;
  font-size: 22px;
  color: #ea680a;
  text-decoration: none;
  margin-top: 20px;
  position: relative;
}

.praxis__contact-box a:before {
  position: absolute;
  width: 50px;
  height: 30px;
  border-radius: 50%;
  content: "";
  background-color: #fff;
  background-size: 30% auto;
  background-position: 80% center;
  background-repeat: no-repeat;
  right: 102%;
  top: 0;
}

.praxis__contact-box a[href^="mailto:"]:before {
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2213%22%20height%3D%229%22%20viewBox%3D%220%200%2013%209%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cg%20fill%3D%22%23EA680A%22%20fill-rule%3D%22nonzero%22%3E%3Cpath%20d%3D%22M7.286%204.409l4.285%202.448v-5zM.143%201.857v5L4.429%204.41zM10.876.429H.838a.703.703%200%200%200-.695.597l5.714%203.688%205.714-3.688a.703.703%200%200%200-.695-.597zM7.07%204.715l-1.016.691a.35.35%200%200%201-.394%200l-1.015-.692L.143%207.66c.055.352.338.626.694.626h10.04c.357%200%20.64-.274.694-.626L7.07%204.715z%22/%3E%3C/g%3E%3C/svg%3E");
}

.praxis__contact-box a[href^="tel:"]:before {
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2213%22%20height%3D%2213%22%20viewBox%3D%220%200%2013%2013%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M10.654%207.787c-.7%200-1.386-.11-2.037-.324-.32-.11-.712-.01-.906.19l-1.285.97c-1.49-.795-2.409-1.712-3.193-3.192l.941-1.251a.924.924%200%200%200%20.228-.936%206.499%206.499%200%200%201-.326-2.041.918.918%200%200%200-.917-.917h-2.1a.918.918%200%200%200-.916.917c0%205.796%204.715%2010.511%2010.511%2010.511a.918.918%200%200%200%20.917-.917V8.704a.918.918%200%200%200-.917-.917z%22%20fill%3D%22%23EA680A%22%20fill-rule%3D%22nonzero%22/%3E%3C/svg%3E");
}

.praxis__contact-box a + br {
  display: none;
}

.praxis__contact-box a + br + a,
.praxis__contact-box a + a {
  margin-top: 0;
}

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

.praxis__contact .badge {
  font-size: 1.1rem;
  padding-bottom: 12px;
}

.praxis__background {
  position: relative;
  z-index: -1;
  margin-bottom: -60px;
}

.praxis__background > div {
  overflow: hidden;
  position: relative;
  padding-top: 60px;
}

.praxis__background img {
  display: block;
  width: 100%;
  height: auto;
}

@media screen and (min-width: 500px) {
  .teaser_praxis {
    margin-top: 0;
  }
}

@media screen and (min-width: 800px) {
  .teasers_praxis {
    display: flex;
    gap: 50px;
  }

  .teaser_praxis {
    width: 50%;
  }

  .teaser_praxis a {
    padding: 30px;
  }

  .teaser_praxis span {
    text-align: center;
  }

  .praxis__intro {
    width: calc(6.5 / 12 * 100%);
    padding: 40px 5% 20px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    border-right: 10px solid #ea680a;
    border-top: none;
  }

  .praxis__intro h2 {
    width: 72%;
    margin-left: 28%;
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1;
    font-size: 56px;
  }

  .praxis__intro img {
    width: 30%;
    height: auto;
    margin-left: -5%;
    margin-right: 3%;
    margin-top: -15px;
    -webkit-box-ordinal-group: 3;
    -ms-flex-order: 2;
    order: 2;
  }

  .praxis__intro > div {
    width: 72%;
    -webkit-box-ordinal-group: 4;
    -ms-flex-order: 3;
    order: 3;
  }

  .praxis__contact {
    width: calc(5.5 / 12 * 100%);
    padding: 254px 40px 40px;
  }

  .praxis__contact-box {
    margin-right: -50vw;
    padding-right: 50vw;
  }

  .praxis__contact .badge {
    position: absolute;
    top: 70px;
    left: 40px;
  }

  .praxis__background {
    left: 50%;
    width: 50%;
  }

  .praxis__background {
    position: absolute;
    top: 0;
    right: 0;
  }

  .praxis__background > div {
    margin-left: -25%;
    padding-top: 380px;
  }

  .praxis__background img {
    position: absolute;
    left: 0;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
  }
}

@media screen and (min-width: 1280px) {
  .teaser_praxis h2 {
    margin-right: -50px;
  }
  .teaser_praxis a {
    display: grid;
    grid-template-columns: 5fr 7fr;
    column-gap: 40px;
  }
  .teaser_praxis h2 {
    grid-column: 1/2;
    grid-row: 1/2;
  }
  .teaser_praxis p {
    grid-column: 2/3;
    grid-row: 1/3;
    align-self: end;
    margin-bottom: 0;
  }
  .teaser_praxis span {
    grid-column: 1/2;
    grid-row: 2/3;
  }
}
