* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  word-break: break-word;
}

p {
  margin-bottom: 0;
}

.background {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: fixed;
  top: 0;
  z-index: -1;
  max-width: 100vw;
}

.bg-1 {
  background-image: url('../images/hintergrundbild_1.jpg');
}

.bg-2 {
  background-image: url('../images/backgrounds/familienrecht_bg.jpg');
}

.bg-3 {
  background-image: url('../images/backgrounds/verkehrsrecht_bg.jpg');
}

.bg-4 {
  background-image: url('../images/backgrounds/mietrecht_bg.jpg');
}

.bg-5 {
  background-image: url('../images/backgrounds/forderungseinzg_bg.jpg');
}

.bg-6 {
  background-image: url('../images/backgrounds/arbeitsrecht_bg.jpg');
}

.bg-7 {
  background-image: url('../images/backgrounds/kaufrecht_bg.jpg');
}

.bg-8 {
  background-image: url('../images/backgrounds/erbrecht_bg.jpg');
}

.bg-9 {
  background-image: url('../images/backgrounds/strafrecht_bg.jpg');
}

.bg-10 {
  background-image: url('../images/backgrounds/wettebewerbsrecht_bg.jpg');
}

.bg-11 {
  background-image: url('../images/backgrounds/internetrecht_bg.jpg');
}

@media (min-width: 992px) {
  /*Navigation*/

  .bg-light {
    opacity: 0.9;
  }

  .navbar-light,
  .navbar-nav,
  .nav-link {
    color: #154d7f;
  }

  .logohintergrund {
    background-color: rgba(255, 255, 255, 0.75);
    width: 100%;
    height: 230px;
  }

  #logo {
    width: 100%;
  }

  .box {
    width: 450px;
    height: 300px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
  }

  .zitat {
    width: 100%;
    padding-top: 2rem;
    display: block;
    text-align: center;
    font-family: 'Roboto Condensed', sans-serif;
    font-style: italic;
    font-size: 2.5rem;
    color: #ffffff;
    line-height: 3rem;
  }

  .zitat-leistungen {
    position: absolute;
    top: 50vh;
    left: 0;
    right: 0;
    display: block;
    text-align: center;
    font-family: 'Roboto Condensed', sans-serif;
    font-style: italic;
    font-size: 2.5rem;
    color: #ffffff;
    line-height: 3rem;
  }
  .zitat-leistungen-blau {
    position: absolute;
    top: 50vh;
    left: 0;
    right: 0;
    display: block;
    text-align: center;
    font-family: 'Roboto Condensed', sans-serif;
    font-style: italic;
    font-size: 2.5rem;
    color: #154d7f;
    line-height: 3rem;
  }

  .zitat-blau {
    left: 0;
    right: 0;
    display: block;
    text-align: center;
    font-family: 'Roboto Condensed', sans-serif;
    font-style: italic;
    font-size: 2.5rem;
    color: #154d7f;
    line-height: 3rem;
  }

  .zitat_header {
    width: auto;
    padding: 1.5rem 1rem 1.5rem 1rem;
    font-family: 'Roboto Condensed', sans-serif;
    font-style: italic;
    font-size: 2.5rem;
    color: #154d7f;
    display: block;
  }

  .zitatbox {
    width: auto;
    height: auto;
    background-color: rgba(255, 255, 255, 0.75);
    position: absolute;
    bottom: 10rem;
    left: 20vw;
    z-index: 999;
    display: inline-block;
  }

  .boxtext {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.5rem;
    line-height: 2rem;
    color: #ffffff;
    display: inline-block;
    padding: 3rem;
  }

  .boxtext_kanzlei {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.5rem;
    line-height: 2rem;
    color: #ffffff;
    display: inline-block;
    padding: 0rem;
  }

  /*navigation*/

  .navigation {
    background-color: rgba(255, 255, 255, 0.85);
    width: 100vw;
    height: 65px;
    position: fixed;
    top: 0;
    z-index: 9999;
  }

  .menubar {
    height: 65px;
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
  }

  li {
    list-style: none;
    padding-right: 28px;
    padding-left: 28px;
  }

  #slash {
    border-left: solid 2px;
    border-color: #ae2956;
  }

  li a {
    text-decoration: none;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.5rem;
    color: #154d7f;
  }

  li :hover {
    color: #ae2956;
  }

  .slash {
    width: 2px;
    height: 30px;
    background-color: #ae2956;
    display: block;
  }

  /*footer*/

  footer {
    position: fixed;
    bottom: 0;
    z-index: 998;
    background-color: rgba(255, 255, 255, 0.75);
    width: 100%;
    height: 65px;
    max-width: 100vw;
  }

  .footer-menubar {
    width: 100%;
    height: 65px;
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
  }

  .footer-leistungen {
    position: relative;
    margin-top: 2rem;
    bottom: 0px;
    z-index: 998;
    background-color: rgba(255, 255, 255, 0.75);
    width: 100%;
    height: 65px;
  }

  .footer-kanzlei {
    position: absolute;
    margin-top: 2rem;
    top: 130rem;
    z-index: 998;
    background-color: rgba(255, 255, 255, 0.75);
    width: 100%;
    height: 65px;
  }

  .footer-familienrecht {
    position: fixed;
    margin-top: 2rem;
    z-index: 998;
    background-color: rgba(255, 255, 255, 0.75);
    width: 100%;
    height: 65px;
  }

  /*Bilder*/

  .header_leistungen {
    background-image: url('../images/header/header_leistungen.jpg');
    max-width: 100vw;
    height: 60vh;
    background-position: top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: contain;
    display: block;
    position: relative;
  }

  .header_kanzlei {
    background-image: url('../images/header/header_kanzlei.jpg');
    max-width: 100vw;
    height: 60vh;
    background-position: top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: contain;
    display: block;
    position: relative;
  }

  .header_praxis-tipps {
    background-image: url('../images/header/header_kanzlei.jpg');
    max-width: 100vw;
    height: 60vh;
    background-position: top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: contain;
    display: block;
    position: relative;
  }

  .header_kontakt {
    background-image: url('../images/header/header_kontakt.jpg');
    max-width: 100vw;
    height: 60vh;
    background-position: top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: contain;
    display: block;
    position: relative;
  }

  .family-pic {
    width: 100vw;
    position: fixed;
  }

  /* Anwalt Widget */

  .widget {
    position: relative;
  }

  .widget-content {
    position: absolute;
    top: 150px;
    right: 10px;
  }

  /*Überschriften*/
  h1 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 4rem;
    color: #154d7f;
  }

  h2 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 3rem;
    color: #ffffff;
  }

  h3 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.5rem;
    color: #696969;
  }

  h4 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 2rem;
    color: #154d7f;
    padding: 1rem;
    text-decoration: none;
    text-align: center;
  }

  h5 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 3rem;
    color: #154d7f;
  }

  #infotext {
    margin: 2rem 0 2rem;
  }

  p {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.2rem;
    line-height: 1.6rem;
  }

  a {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.5rem;
    line-height: 2.3rem;
    color: #ffffff;
  }

  a:hover {
    color: #ae2956;
  }

  .kanzlei {
    margin-left: 20vw;
    margin-top: 5rem;
  }

  .motherbox {
    position: absolute;
    width: 85%;
    height: 500px;
    margin-left: 10rem;
    margin-top: 5rem;
  }

  .headline {
    padding-left: 25rem;
    height: 15%;
  }

  .des-box {
    background-color: #154d7f;
    margin-left: 10rem;
    width: 80%;
    height: 85%;
    border-radius: 30px;
  }

  .description {
    color: #ffffff;
    padding: 2rem;
    margin-left: 12rem;
    width: 80%;
  }

  .anwalt-box {
    position: absolute;
    bottom: 0;
    top: 0;
    height: 500px;
  }

  .anwalt-bild {
    height: 450px;
    margin-top: 50px;
  }

  .motherbox_2 {
    position: absolute;
    width: 85%;
    height: 500px;
    margin-left: 10rem;
    margin-top: 50rem;
    margin-bottom: 10rem;
  }

  /* Footer Text Links */

  .footer-links {
    font-size: 1.2rem;
    padding: 0;
    margin: 0;
    color: #ae2956;
  }

  /*Grid*/

  .flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 3rem;
  }

  .flex-item {
    width: 25%;
    position: relative;
    margin: 2rem;
  }

  .textbox {
    width: 100%;
    height: 20%;
    position: absolute;
    top: 40%;
    background-color: rgba(21, 77, 127, 0.75);
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .grid-text {
    cursor: pointer;
    color: #fff;
  }

  .flex-item:hover p {
    transform: scale(1.3);
    transition: ease-in-out 0.2s;
  }
  .flex-item:hover .textbox {
    background-color: #ae2955ad;
    transition: ease-in-out 0.2s;
    height: 100%;
    top: 0;
  }

  /*
.textbox:hover{
  width: 100%; 
  height: 100%;
  position: absolute;
  top:0;
  background-color: rgba(21, 77, 127, 0.75);
  transition: all 0.2s ease-in-out;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.textbox a:hover{
  margin-top: auto;
  margin-bottom: auto;
  text-decoration: none;
  color: #FFFFFF;
  transform: scale(1.1);
  transition: ease-in-out 0.4s;
}
*/

  .textbox a {
    margin-top: auto;
    margin-bottom: auto;
    text-decoration: none;
    color: #ffffff;
  }

  .rechte {
    width: 100%;
    height: auto;
    display: block;
  }

  .headlinebox {
    position: absolute;
    bottom: 15vh;
    margin-left: 20rem;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.75);
    padding: 1rem;
    display: inline-block;
  }

  .contentbox {
    background-color: rgba(21, 77, 127, 0.85);
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 0rem;
    margin-top: 8rem;
    padding: 4rem 10vw 8rem 10vw;
  }

  .content {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.5rem;
    line-height: 2.5rem;
    color: #ffffff;
    margin-top: 2rem;
  }

  .content li {
    list-style: disc;
  }

  /*Button*/

  button {
    border: none;
    border-color: #154d7f;
    border-radius: 8px;
    background-color: #ffffff;
    color: #154d7f;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.5rem;
    padding: 1rem;
    margin-top: 2rem;
    cursor: pointer;
    margin-right: 1rem;
  }

  button:hover {
    border: none;
    border-color: #ae2956;
    background-color: #ae2956;
    color: #ffffff;
    transition: all 0.4s;
    transform: scale(1.05);
  }

  .back {
    color: #ffffff;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.5rem;
    margin-left: 2rem;
    text-decoration: none;
  }

  .back:hover {
    color: #ae2956;
  }

  .pfeil {
    position: absolute;
    bottom: 15vh;
    left: 6vw;
    width: 100px;
    z-index: 9999;
  }

  /*Praxis-box*/

  .mainflex {
    display: flex;
    justify-content: center;
    flex-direction: row;
  }

  .flex-container_1 {
    width: 400px;
    height: 400px;
    margin-top: 10rem;
    display: flex;
  }

  .flex-container_2 {
    width: 1000px;
    height: 400px;
    margin-top: 10rem;
    display: flex;
    flex-direction: column;
  }

  .flex-item-praxis_1 {
    width: 100%;
    height: 30%;
    background-color: #ffffff;
  }

  .flex-item-praxis_2 {
    width: 100%;
    height: 100%;
    background-color: #154d7f;
  }

  .praxis-img {
    display: inline-block;
    width: 100%;
  }

  .praxis-headline {
    margin-left: 3rem;
  }

  .praxis-content {
    padding-bottom: 15rem;
  }

  .formular-text {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    padding-left: 0rem;
  }

  input,
  textarea {
    border: 2px solid;
    border-radius: 2px;
    width: 35vw;
    padding: 1rem;
    margin: 0 0 0.3rem;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    font-size: 1rem;
  }

  input:hover {
    color: black;
    text-decoration: none;
  }

  label {
    display: block;
  }

  .toggle {
    display: none;
  }

  .imprint {
    padding: 10vw;
  }
  .wilkom {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.5rem;
    line-height: 2.3rem;
    color: #154d7f;
  }

  .wilkom:hover {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.5rem;
    line-height: 2.3rem;
    color: #ae2956;
  }

  .page_up {
    height: 100vh;
    width: 100vw;
    display: block;
    max-width: 100vw;
  }

  .bgimg-1,
  .bgimg-2,
  .bgimg-3,
  .bgimg-4 {
    position: relative;
    opacity: 1;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }
  .bgimg-1 {
    background-image: url('../images/hintergrundbild_1.jpg');
    min-height: 100vh;
  }

  .bgimg-2 {
    background-image: url('../images/kanzlei_bg.jpg');
    min-height: 100vh;
  }

  .bgimg-3 {
    background-image: url('../images/leistungen_bg.jpg');
    min-height: 100vh;
  }

  .bgimg-4 {
    background-image: url('../images/header_kanzlei.jpg');
    min-height: 100vh;
  }

  .caption {
    position: absolute;
    left: 0;
    top: 30%;
    width: 100%;
    text-align: center;
    color: #000;
  }

  .caption span.border {
    background-color: rgba(255, 255, 255, 0.8);
    color: #ae2956;
    padding: 18px;
    font-size: 25px;
    display: inline-block;
  }

  .caption span.border a {
    color: #ae2956;
    padding: 18px;
    font-size: 25px;
    display: inline-block;
    text-decoration: none;
    letter-spacing: 5;
  }

  h3 {
    text-transform: uppercase;
    color: #111;
  }

  .logo {
    width: 30vw;
  }
  .landscape_mobil {
    display: none;
  }

  .pfeil {
    width: 80px;
    margin-bottom: 5px;
  }

  .mob {
    display: none;
  }

  .nav-logo {
    height: 80px;
  }

  .mob {
    display: none;
  }
  .desk {
    display: block;
  }
}

/* Turn off parallax scrolling for tablets and phones */
@media only screen and (max-device-width: 1024px) {
  .bgimg-1,
  .bgimg-2,
  .bgimg-3,
  .bgimg-4 {
    background-attachment: scroll;
  }
}

.senden {
  background-color: #154d7f;
  color: #ffffff;
  width: 200px;
  border-radius: 5px;
  font-size: 1.2rem;
  margin-top: 20px;
}
.senden:hover {
  background-color: #ae2956;
  color: #fff;
  border-color: #ae2956;
}

.button {
  padding-left: 0;
}

a {
  cursor: pointer;
}

/*############# Kanzlei Grid #############*/
@media (min-width: 1500px) {
  .kanzlei-grid {
    display: grid;
    max-width: 100vw;
    margin: 0 20vw;
    padding: 5rem 0;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 2rem;
    grid-auto-columns: 25%;
  }

  .kanzlei-grid img {
    grid-column: 1/2;
    max-height: 450px;
    align-self: flex-end;
  }
  .kanzlei-grid div {
    grid-column: 2/5;
  }

  .kanzlei-grid div p {
    margin-top: 1rem;
  }
}

.navbar-toggler:focus {
  outline: none;
}

/*Kontakt*/

.flex-container-message {
  margin-bottom: 4rem;
}

input,
textarea {
  border: 2px solid;
  border-radius: 2px;
  border-color: #154d7f;
  width: 100%;
  padding: 1rem;
  margin: 0 0 0.6rem;
  font-family: 'Roboto', sans-serif;
  text-decoration: none;
  font-size: 1rem;
  display: inline-block;
}

input:hover {
  color: black;
  text-decoration: none;
}
input:focus,
textarea:focus {
  outline-color: #ae2956;
}

#datenschutz {
  width: auto;
}

label {
  display: block;
}

.kontakt-content {
  display: flex;
  padding: 0 20%;
  width: 100%;
  flex-wrap: wrap;
}

@media (min-width: 1000px) {
  .flex-container-adresse {
    width: 100%;
  }

  .flex-container-message {
    width: 100%;
  }
}

@media (min-width: 1500px) {
  .flex-container-adresse {
    width: 40%;
  }

  .flex-container-message {
    width: 60%;
  }
}
