main {
  div.banner {
    background-size: cover;
    background-position: center;
    height: 32vw;
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;

    &.clickable {
      &:hover {
        cursor: pointer;

      }

      h1:hover {
        text-decoration: underline;
      }
    }

    h1 {
      color: white;
      transform: translateY(-50%);
      padding: 0;
      margin: 0; // 0 0 30%;
      top: 50%;
      position: absolute;
      text-align: center;
      right: 0; /* 2vw; */
      left: 30%;
      font-size: 7vw;
      line-height: 1;
    }

    &.links {
      h1 {
        left: 2vw;
        right: 30%;
        text-align: left;
      }
    }

    &.lots_of_text {
      h1 {
        font-size: 3.3vw;
        line-height: 1.25;
      }
    }
  }
}


@media only screen and (min-width: 1100px) {
  main {
    div.banner {
      height: 333px;
      h1 {
        font-size: 70px;
        padding-left: 300px;
        left: 0;
      }

      &.links {
        h1 {
          left: 20px;
          padding-left: 0;
        }
      }

      &.lots_of_text {
        h1 {
          font-size: 33px;
        }
      }
    }
  }
}
:root {
    --blau: rgb(113, 163, 216);
    --dunkelblau: rgb(0, 79, 113);
    --hellblau: #E9F1F9;
    --gelb: rgb(247, 190, 0);
}
main {
  div.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2vw;
    margin-top: 2vw;
    margin-bottom: 2vw;
    position: relative;
    height: 100%; /* just need some value for Safari to display children */
  }

  div.flip-card {
    background-color: transparent;
    perspective: 2500px;
    position: relative;
    user-select: none;
    height: 100%;  /* safari needs this, otherwise the children get no height */

    &:before {
      content: "";
      float: left;
      padding-top: 100%;
    }

    .flip-card-inner {
      position: relative;
      display: block;
      width: 100%;
      height: 100%;
      text-align: center;
      transition: transform 0.6s;
      transform-style: preserve-3d;
      box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    }

    &:hover .flip-card-inner {
      transform: rotateX(180deg);
    }
    .flip-card-front,
    .flip-card-back {
      position: absolute;
      width: 100%;
      height: 100%;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }

    .flip-card-front {
      background-color: #bbb;
      color: black;
      background-size: cover;

      h1 {
        padding: 0;
        margin: 0 0 0 45%;
        position: absolute;
        left: 0;
        right: 0;
        text-align: left;
        color: white;
        font-size: 6vw;
        bottom: 4vw;
      }
    }

    &.lots_of_text {
      .flip-card-front {
        h1 {
          font-size: 4vw;
        }
      }
    }

    .flip-card-back {
      background-color: var(--blau);
      color: white;
      transform: rotateX(180deg);
      line-height: 1.15;

      h1 {
        color: white;
        font-size: 10vw;
        margin: 2vw;
      }

      p {
        margin: 3vw 6vw;
        font-size: 6vw;
      }

      a.button {
        display: block;
        position: absolute;
        bottom: 4vw;
        padding: 4vw 0;
        font-size: 6vw;
        width: 60%;
        left: 20%;
        right: 20%;
        border: 1px solid var(--dunkelblau);
        border-radius: 2px;
        color: var(--dunkelblau);

        &:hover {
          cursor: pointer;
          background-color: var(--hellblau);
        }
      }
    }

    &.lots_of_text {
      .flip-card-back {
        h1 {
          font-size: 6vw;
        }
      }
    }
  }
}
@supports (-webkit-touch-callout: none) {
  /* CSS specific to iOS devices */ 
  main{
  div.flip-card {
    .flip-card-inner {
      transform: rotateX(0deg) !important;
    }
    &:hover .flip-card-inner {
      transform: rotateX(0deg) !important;
    }
    .flip-card-front {
      display:none;
    }
    .flip-card-back {
      transform: rotateX(0deg) !important;
    }
  }
}
}
@media only screen and (min-width: 400px) {
  main {
    div.cards {
      grid-template-columns: 1fr 1fr;
    }

    div.flip-card {
      .flip-card-front {
        h1 {
          font-size: 3vw;
        }
      }

      .flip-card-back {
        h1 {
          font-size: 5vw;
          margin: 1vw;
        }

        p {
          margin: 1.5vw 3vw;
          font-size: 3vw;
        }

        a.button {
          bottom: 1vw;
          padding: 1vw 0;
          font-size: 3vw;
        }
      }

      &.lots_of_text {
        .flip-card-front {
          h1 {
            font-size: 2vw;
          }
        }

        .flip-card-back {
          h1 {
            font-size: 3.333vw;
          }
        }
      }
    }
  }
}

@media only screen and (min-width: 800px) {
  main {
    div.cards {
      grid-template-columns: 1fr 1fr 1fr;
    }

    div.flip-card {
      .flip-card-front {
        h1 {
          font-size: 2vw;
        }
      }

      .flip-card-back {
        h1 {
          font-size: 3.333vw;
          margin: 0.666vw;
        }

        p {
          margin: 1vw 2vw;
          font-size: 2vw;
        }

        a.button {
          bottom: 0.666vw;
          padding: 0.666vw 0;
          font-size: 2vw;
        }
      }

      &.lots_of_text {
        .flip-card-front {
          h1 {
            font-size: 1.33vw;
          }
        }

        .flip-card-back {
          h1 {
            font-size: 2.222vw;
          }
        }
      }
    }
  }
}

@media only screen and (min-width: 1100px) {
  main {
    div.cards {
      gap: 20px;
      margin-top: 20px;
      margin-bottom: 20px;
    }

    div.flip-card {
      .flip-card-front {
        h1 {
          font-size: 22px;
        }
      }

      .flip-card-back {
        h1 {
          font-size: 33.33px;
          margin: 6.66px;
        }

        p {
          margin: 10px 20px;
          font-size: 20px;
        }

        a.button {
          bottom: 6.66px;
          padding: 6.66px 0;
          font-size: 20px;
        }
      }

      &.lots_of_text {
        .flip-card-front {
          h1 {
            font-size: 14.66px;
          }
        }

        .flip-card-back {
          h1 {
            font-size: 22px;
          }
        }
      }
    }
  }
}
@font-face {
  font-family: "Open Sans";
  src: url(/assets/OpenSans-Italic-VariableFont_wdth,wght-b3602df718ff7380c3cecd91c301668a21b3a205ce237b269576fe3a983a8b06.otf) format("truetype");
  font-style: italic;
}

@font-face {
  font-family: "Open Sans";
  src: url(/assets/OpenSans-VariableFont_wdth,wght-bed10e81a35efbfb483867bb2928fdca4d677f15a6386a78c53a4b607da1e564.otf) format("truetype");
}
footer.footer1 {
  margin: 2vw 0 0 0;
  padding: 2vw 0;
  background-color: whitesmoke;
  background-color: var(--hellblau);

  box-shadow: 0 0px 4px 0px rgba(0, 0, 0, 0.2);

  div.row {
    display: flex;
    flex-direction: row;
    margin: 0 auto;
    font-size: 4vw;

    a,
    a:active,
    span {
      text-decoration: none;
      display: block;
      flex-grow: 1;
      text-align: center;
      padding: 0.2vw;
      font-weight: normal;
      color: var(--dunkelblau);
    }

    a:hover {
      text-decoration: underline;
    }
  }
}

@media only screen and (min-width: 400px) {
  footer.footer1 {
    margin: 20px 0 0 0;
    padding: 10px 0;

    div.row {
      font-size: 12px;

      a {
        padding: 2px;
      }
    }
  }
}


@media only screen and (min-width: 1100px) {
  footer.footer1 {
    div.row {
      width: 1000px;
    }
  }
}
footer.footer2 {
  text-align: left;
  flex-grow: 1;
  margin: 8vw 2vw 0 2vw;
  padding: 0;
  font-size: 3vw;
  line-height: 1.35;
  &.startseite {
    margin-top: 0;
  }

  div.big-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2vw;
    background-color: var(--dunkelblau);
    div.dm{
      padding: 2vw;
      text-align: center;
      line-height: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-evenly;
      img{
        display:block;
        width:75%;
        margin-left:auto;
        margin-right:auto;
      }
      p {
        color: white;
        font-size: 2vw;
        margin:0;
        a {
          color: white;
        }
      }
    }
  }
  div.small-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    background-color: var(--hellblau);
    padding: 2vw;
    p {
      margin: 0;
      padding: 2vw;
      font-size: 2.3vw;
      &.rechts {
        text-align: right;
      }
      a {
        color: var(--dunkelblau);
      }
    }
  }
  div.row {
    display: grid;
    margin: 1vw 0;
    grid-template-columns: 1fr 1fr 1fr;
    a {
      color: var(--dunkelblau);
      text-align: center;
      font-size: 2vw;
    }
  }
}

@media only screen and (min-width: 400px) {
  footer.footer2 {
    div.row {
      margin: 20px 0;
      a {
        font-size: 1.5;
      }
    }
    div.small-row {
      padding: 1vw;
      p {
        padding: 1vw;
      }
    }
  }
}

@media only screen and (min-width: 800px) {
  footer.footer2 {
    div.big-row{
      div.dm{
        p{
          font-size: 18px;
        }  
      }
    }
    div.small-row {
      padding: 4px;
      p {
        font-size: 18px;
        padding: 2px 4px;
      }
    }
    div.row {
      margin: 20px 0;
      a {
        font-size: 12px;
      }
    }
  }
}

@media only screen and (min-width: 1100px) {
  footer.footer2 {
    width: 1000px;
    padding: 0 0px;
    margin: 0 auto;
    div.big-row {
      gap: 20px;
      div.dm{
        padding: 20px;
      }
    }
  }
}
form {
  div.form-group {
    display: block;
    margin: 2vw 0;

    label {
      display: block;
      font-weight: bold;
    }

    input[type=text],
    input[type=password],
    input[type=email],
    input[type=submit],textarea {
      display: block;
      padding: 0;
      margin: 0;
      border: 1px solid var(--dunkelblau);
      border-radius: 2px;
      color: var(--dunkelblau);
      padding: 1vw;
      font-size: 3vw;
    }

    input[type=text],
    input[type=email],
    input[type=password] {
      min-width: calc(100% - 2vw - 2px);
    }

    input[type=submit] {
      background-color: var(--hellblau);
      font-weight: bold;
      padding: 1vw 3vw;

      &:hover {
        cursor: pointer;
        background-color: lightgray;
      }
    }

    textarea{
      min-height:200px;
      &.block{
        width: 100%;
        box-sizing: border-box;
      }
    }
    &.wissen {
      display: flex;

      input {
        width: 5vw;
        height: 3vw;
      }

      label {
        flex-grow: 1;
        text-align: left;
        font-weight: normal;
        vertical-align: top;
      }
    }
  }

  p.thema {
    padding-left: 2vw;

    span.box {
      position: relative;
      display: inline-block;
      width: 8vw;
      height: 8vw;

      input {
        display: none;
      }

      label {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background-color: var(--hellblau);
        border-radius: 2px;
        text-align: center;
        font-weight: bold;
        line-height: 2.5;
        border: 1px solid var(--dunkelblau);

        &:hover {
          background-color: var(--gelb);
        }
      }

      input:checked+label {
        background-color: var(--dunkelblau);
        color: var(--hellblau);
      }
    }

    span.label {
      display: inline-block;
      width: 36vw;
      vertical-align: top;
    }
  }
}

@media only screen and (min-width: 800px) {
  form {
    div.form-group {

      label {
        display: inline-block;
        width: 30%;
        text-align: right;
        padding-right: 10px;
      }

      input[type=text],
      input[type=password],
      input[type=email],
      input[type=submit], textarea {
        display: inline-block;
        padding: 2px 4px;
        font-size: 24px;
      }

      input[type=text],
      input[type=email],
      input[type=password] {
        min-width: 40%;
      }

      input[type=submit] {
        padding: 2px 6px;
      }
    }

    p.thema {
      span.box {
        label {
          line-height: 3;
        }
      }

    }
  }
}

@media only screen and (min-width: 1100px) {
  form {
    div.form-group {
      margin: 22px 0;

      &.wissen {

        input {
          width: 50px;
          height: 30px;
        }
      }

    }

    p.thema {
      padding-left: 20px;

      span.box {
        width: 80px;
        height: 80px;

        label {
          line-height: 3.5;
        }
      }

      span.label {
        width: 380px;
      }
    }
  }
}
header {
  padding: 2vw;
  margin-bottom: 4vw;
  text-align: left;

  .logo {
    display: inline-block;
    width: 35vw;
    height: calc(35vw * 0.385);
  }

  div.icons {
    width: 8vw;
    float: right;
    display: flex;
    flex-direction: column;
    text-align: right;

    a.icon {
      width: 8vw;
      height: 8vw;
      display: inline-block;
      border: 1px solid white;
      border-radius: 2px;

      svg {
        width: 80%;
        height: 80%;
        fill: var(--dunkelblau);
        margin: 10%;
      }

      &:hover {
        background-color: var(--hellblau);
        border: 1px solid var(--dunkelblau);
      }
    }
  }
}

body.public {
  header {
    text-align: center;
  }
}

@media only screen and (min-width: 800px) {
  header {
    padding: 20px;
    margin-bottom: 40px;

    .logo {
      width: 400px;
      height: calc(400px * 0.385);
    }

    div.icons {
      width: 64px;

      a.icon {
        width: 64px;
        height: 64px;
      }
    }
  }
}

@media only screen and (min-width: 1100px) {
  header {
    width: 1000px;
    margin: 0 auto 40px auto;
  }
}
main {
  text-align: left;
  flex-grow: 1;
  margin: 0;
  padding: 0 2vw;
  font-size: 3vw;
  line-height: 1.35;

  div.flash {
    background-color: var(--hellblau);
    border: 1px solid var(--dunkelblau);
    padding: 2vw 4vw;
  }

  h1 {
    font-size: 6vw;
  }

  h2 {
    font-size: 4.5vw;
  }

  h3 {
    font-size: 3vw;
    font-weight: bold;
  }

  p.pharmareferent {
    img {
      float: left;
      margin-right: 1vw;
      width: 16vw;
      height: 16vw;
      border-radius: 2px;
    }

    line-height: 1.5;
  }
  div.filmzeile{
    height: 500px;
    max-height: 50vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;

    div.videowrapper{
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      display: flex;
      overflow-x: auto;
      counter-reset: item;

      video{
        height:100%;
        margin:0 10px 0 0;
        aspect-ratio: 0.5625;      }
    }

  }
}
div.mfa_videos{
  display:block;
  video{
    width:100%;
  }
}
@media only screen and (min-width: 400px) {
  main {
    div.flash {
      padding: 1vw 2vw;
    }
  }
}

@media only screen and (min-width: 800px) {
  main {
    font-size: 24px;

    div.flash {
      padding: 8px 16px;
    }

    h1 {
      font-size: 48px;
    }

    h2 {
      font-size: 36px;
    }

    h3 {
      font-size: 24px;
    }
  }
  div.mfa_videos{
    display: grid;
    grid-template-columns:1fr 1fr;
    column-gap: 1rem;
  }
}

@media only screen and (min-width: 1100px) {
  main {
    width: 1000px;
    padding: 0 20px;
    margin: 0 auto;
  }
}
.pw-icon{
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    position: absolute;
    right: 28%;
    top: 1px;
    &.hide{
        display: none;
    }
}
.form-group{
    position: relative;
}
div.praxisservice.cart{
  position: relative;
  div.cart_image {
    svg{
      fill:#004f71;
    } 
  }
}
div.praxisservice-engine {
  div.available-articles {
  
    table {
 
      thead {
        background-color: #e9f1f9;
        font-size: 1rem;
        letter-spacing: 2%;
      }    
  
      th, td {
        border-color:#e9f1f9;
      }
  
      td {
        &.article{
          font-size:1rem !important;
          display:flex;
          div.title{
            a{
              color:#004f71;
            }
          }
          div.order-form {
            div.cart-and-quantity {
              svg{
                fill:#004f71;
              }
              span{
                color:#004f71
              }
            }
          }
        }
      }
    }
  }

  div.pop-over {
    div.container {
      input.slider {
        position:absolute;
        top:45%;
  
        &.previous {
          left:1rem;
        }
  
        &.next {
          right:1rem;
        }
      }
      div.additional {
        font-size:1rem;
        a{
          color:#004f71;
        }
      }
    }
  }
}
div.praxisservice-engine {
  div.available-articles {
    table {
      tr:nth-child(2n of .show){
        background-color: #e9f1f9;
      }
    }
  }
}
html,
body {
  text-align: center;
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  color: var(--dunkelblau);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--blau);
  text-decoration: none;
  font-weight: bold;

  &:hover {
    text-decoration: underline;
  }
}

h1,
h2,
h3 {
  font-weight: normal;
}


@media only screen and (min-width: 800px) {
  body.public {
    main {
      width: 800px;
    }
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *



 */
