/* =========================================================
   Grundlayout Website – Contao
   ========================================================= */

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

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  font-size: 16px;
  line-height: 23px;
  font-family: sans-serif;
  font-weight: normal;
  color: #454545;
  background: #ffffff;
}


/* =========================================================
   Seitenlayout
   ========================================================= */

#wrapper {
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto;
  box-sizing: border-box;
}

#main .inside {
  margin-right: 2rem;
}


/* =========================================================
   Überschriften, Links
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6,
a {
  margin-top: 0;
  padding-top: 0;
  color: #1f3b75;
  font-weight: 500;
}

h1 {
  font-size: 1.8rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.3;
}

h2.subhead {
  font-size: 16px;
  padding: 0;
  margin: 0;
}

#wrapper h1 {
  margin-bottom: 20px;
}

#wrapper h2 {
  margin-bottom: 16px;
}


/* =========================================================
   Abstände / Hilfsklassen
   ========================================================= */

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 1rem !important; }
.mt-2 { margin-top: 2rem !important; }
.mt-3 { margin-top: 3rem !important; }
.mt-4 { margin-top: 4rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 1rem !important; }
.mb-2 { margin-bottom: 2rem !important; }
.mb-3 { margin-bottom: 3rem !important; }
.mb-4 { margin-bottom: 4rem !important; }


/* =========================================================
   Header
   ========================================================= */

#header {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  color: #ffffff;
  overflow: visible;
}

/* Neuer Header: Text links, Slider Mitte, Text rechts */

.custom-header {
  display: flex;
  width: 100%;
  height: 190px;
  margin: 0 0 0.5rem 0;
  background-color: #1f3b75;
  overflow: hidden;
}

.custom-header-left {
  flex: 0 0 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1f3b75;
  text-align: center;
}

.custom-header-link {
  display: block;
  width: 100%;
  padding: 0 24px;
  color: #ffffff;
  text-decoration: none;
}

.custom-header-link:link,
.custom-header-link:visited,
.custom-header-link:hover,
.custom-header-link:focus,
.custom-header-link:active {
  color: #ffffff;
  text-decoration: none;
}

.custom-header-link h2 {
  margin: 0 0 26px 0;
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1.25;
  font-weight: 500;
  text-decoration: none;
}

.custom-header-link div {
  color: #ffffff;
  line-height: 1.35;
  text-decoration: none;
}

.custom-header-slider {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.custom-header-right {
  flex: 0 0 19%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1f3b75;
  color: #ffffff;
  text-align: center;
  padding: 0 34px;
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.05;
}

/* Steuerbare Umbrüche im Header */

.desktop-break {
  display: inline;
}

/* Bilder / Slider im Header */

#header img,
#header .slider,
#header .ce_sliderStart,
#header .content-slider {
  width: 100%;
  height: 100%;
}

#header img {
  display: block;
  object-fit: cover;
  object-position: center center;
}


/* =========================================================
   Navigation
   ========================================================= */

.navbar {
  background: #1f3b75;
  color: #ffffff;
  padding: 0;
}

.nav-container {
  max-width: 1000px;
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links,
ul.nav-links {
  display: flex;
  gap: 0.8rem;
  margin: 0;
  padding: 0 0 0 14px;
  list-style: none;
}

.nav-links li {
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
}

.nav-links a:hover {
  border-bottom: 2px solid #ffffff;
}

/* Hamburger-Button */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
}


/* =========================================================
   Inhaltsmodule
   ========================================================= */

.britta figure img {
  padding-top: 4px;
}

.rechtsprechungen p {
  margin: 0 0 12px;
}

.rechtsprechungen .layout_latest.arc_1.block {
  margin-bottom: 2rem;
}


/* Medienbox */

.media-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 900px;
  margin: 2rem auto;
}

.media-image {
  width: 90px;
  height: 125px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 8px;
}

.media-text {
  flex: 1;
}

.media-text h2 {
  margin-bottom: 0.5rem;
}

.media-text p {
  line-height: 1.6;
}


/* =========================================================
   Google Landingpages
   ========================================================= */

.lp-google-aerztepfusch h1,
.lp-google-behandlungsfehler h1 {
  font-size: 2.5rem;
}

.lp-google-aerztepfusch h2,
.lp-google-behandlungsfehler h2 {
  font-size: 2rem;
}

.lp-google-behandlungsfehler h3 {
  font-size: 2rem;
  margin: 2rem 0 0;
}

.lp-google-behandlungsfehler h4 {
  margin: 0;
  line-height: 1.5;
}

.lp-google-behandlungsfehler figcaption {
  font-size: 13px;
}

.lp-google-aerztepfusch .kontakt-box {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70px;
  margin: 0;
  background-color: #1f3b75;
  color: #ffffff;
  text-align: center;
}

.lp-google-aerztepfusch .kontakt-box h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.75rem;
  text-transform: uppercase;
}


/* =========================================================
   Footer
   ========================================================= */

#footer {
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 2rem;
  border-top: 1px solid #1f3b75;
  background: #ffffff;
  box-sizing: border-box;
}

#footer .inside {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.5rem 1rem 0 0;
  text-align: left;
  color: #454545;
  font-size: 14px;
  line-height: 21px;
  box-sizing: border-box;
}

#footer a {
  color: #1f3b75;
  text-decoration: none;
}

#footer a:hover,
#footer a:focus {
  color: #162b57;
  text-decoration: underline;
}


/* =========================================================
   Landingpage Hintergrundbild
   ========================================================= */

body.landingpage,
.landingpage {
  background-image: url("/files/kanzlei/img/hintergrund.jpg");
  background-repeat: repeat;
  background-position: center center;
  background-size: auto;
  background-attachment: fixed;
}


/* =========================================================
   Landingpage: Wrapper abweichend
   ========================================================= */

body.landingpage #wrapper {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}


/* =========================================================
   Landingpage Aufbau
   ========================================================= */

.landing-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Weißer Kasten – Desktop */

.landing-box {
  width: 820px;
  max-width: 90vw;
  height: 480px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 400px 420px;
  align-items: stretch;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

/* Bild links */

.landing-box__image {
  width: 400px;
  height: 480px;
  overflow: hidden;
}

.landing-box__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

/* Text rechts */

.landing-box__content {
  height: 480px;
  padding: 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  box-sizing: border-box;
}

.landing-box__content h1 {
  margin: 0 0 12px;
  padding: 0;
  font-size: 20px;
  line-height: 1.3;
  color: #1f3b75;
}

.landing-box__content p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 21px;
  color: #1f3b75;
}

/* Button Landingpage */

.landing-button {
  display: inline-block;
  align-self: flex-start;
  margin: 20px 0;
  padding: 12px 24px;
  background-color: #1f3b75;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  border-radius: 0;
  transition: background-color 0.2s ease;
}

.landing-button:hover,
.landing-button:focus {
  background-color: #162b57;
}

/* Finale Farben Landingpage */

body.landingpage .landing-box__content h1,
body.landingpage .landing-box__content p,
.landingpage .landing-box__content h1,
.landingpage .landing-box__content p {
  color: #1f3b75;
}

body.landingpage #wrapper a.landing-button,
body.landingpage #wrapper a.landing-button:link,
body.landingpage #wrapper a.landing-button:visited,
body.landingpage #wrapper a.landing-button:hover,
body.landingpage #wrapper a.landing-button:focus,
body.landingpage #wrapper a.landing-button:active,
body.landingpage a.landing-button,
body.landingpage a.landing-button:link,
body.landingpage a.landing-button:visited,
body.landingpage a.landing-button:hover,
body.landingpage a.landing-button:focus,
body.landingpage a.landing-button:active,
.landingpage a.landing-button,
.landingpage a.landing-button:link,
.landingpage a.landing-button:visited,
.landingpage a.landing-button:hover,
.landingpage a.landing-button:focus,
.landingpage a.landing-button:active {
  color: #ffffff;
  text-decoration: none;
}

 .vitatext-2 {display: none}

/* =========================================================
   Responsive: Tablet bis 1024px
   ========================================================= */

@media (max-width: 1024px) {
  body.landingpage,
  .landingpage {
    background-attachment: scroll;
  }

  #wrapper {
    max-width: 1000px;
    margin: 2rem auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  body.landingpage #wrapper {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .landing-wrapper {
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
  }

  .landing-box {
    width: 760px;
    max-width: 92vw;
    height: auto;
    display: grid;
    grid-template-columns: 48% 52%;
    grid-template-rows: auto auto auto auto;
    background: #ffffff;
    overflow: hidden;
  }

  .landing-box__image {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 100%;
    height: auto;
    aspect-ratio: 400 / 480;
    overflow: hidden;
  }

  .landing-box__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
  }

  .landing-box__content {
    display: contents;
  }

  .landing-box__content h1 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 34px 36px 12px;
    font-size: 20px;
    line-height: 1.3;
    color: #1f3b75;
    box-sizing: border-box;
  }

  .landing-box__content p:first-of-type {
    grid-column: 2;
    grid-row: 2;
    margin: 0 !important;
    padding: 0 36px 34px;
    font-size: 14px;
    line-height: 1.55;
    color: #1f3b75;
    box-sizing: border-box;
  }

  .landing-button {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    margin: 26px 36px 20px;
    padding: 10px 22px;
    font-size: 14px;
  }

  .landing-box__content p:last-of-type {
    grid-column: 1 / -1;
    grid-row: 4;
    margin: 0;
    padding: 0 36px 36px;
    font-size: 14px;
    line-height: 1.6;
    color: #1f3b75;
    background: #ffffff;
    box-sizing: border-box;
  }
  
  
}


/* =========================================================
   Responsive: Header-Umbau bis 900px
   ========================================================= */

@media (max-width: 900px) {
  .custom-header {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .custom-header-left,
  .custom-header-slider,
  .custom-header-right {
    flex: 0 0 auto;
    width: 100%;
  }

  .custom-header-left {
    padding: 24px 0 20px 0;
  }

  .custom-header-link h2 {
    margin: 0 0 12px 0;
    font-size: 1.35rem;
  }

  .custom-header-slider {
    height: clamp(130px, 32vw, 190px);
  }

  .custom-header-slider img,
  .custom-header-slider .slider,
  .custom-header-slider .ce_sliderStart,
  .custom-header-slider .content-slider {
    width: 100%;
    height: 100%;
  }

  .custom-header-slider img {
    display: block;
    object-fit: cover;
    object-position: center center;
  }

  .custom-header-right {
    padding: 22px 24px;
    font-size: 1.25rem;
    line-height: 1.2;
  }
  
  .vitatext-1 {display: none}
    
  .vitatext-2 {display: block;margin:0}

  /* Auf Tablet und kleineren Monitoren laufen die linken Headerzeilen über die volle Breite */
  .custom-header-left .desktop-break {
    display: none;
  }

  /* Rechts wird der Claim mobil als durchlaufender Satz dargestellt */
  .custom-header-right .desktop-break {
    display: none;
  }
}


/* =========================================================
   Responsive: Kleineres Tablet bis 820px
   ========================================================= */

@media (max-width: 820px) {
  #wrapper {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  body.landingpage #wrapper {
    padding: 0;
  }

  .landing-wrapper {
    padding: 32px 18px;
  }

  .landing-box {
    width: 680px;
    max-width: 94vw;
    grid-template-columns: 46% 54%;
  }

  .landing-box__content h1 {
    padding: 28px 30px 10px;
  }

  .landing-box__content p:first-of-type {
    padding: 0 30px 28px;
  }

  .landing-button {
    margin: 24px 30px 18px;
  }

  .landing-box__content p:last-of-type {
    padding: 0 30px 30px;
  }
}


/* =========================================================
   Responsive: Navigation / Smartphone bis 768px
   ========================================================= */

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-container {
    flex-wrap: wrap;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .nav-links,
  ul.nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
    padding: 0 0 1rem 0;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }

  .nav-links a {
    display: block;
    padding: 1rem 0;
  }
}


/* =========================================================
   Responsive: Smartphone bis 767px
   ========================================================= */

@media (max-width: 767px) {
  #wrapper {
    margin: 1.5rem auto;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  #main .inside {
    margin-right: 0;
  }

  body.landingpage #wrapper {
    margin: 0;
    padding: 0;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  #footer {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
  }

  #footer .inside {
    padding-right: 1rem;
    padding-left: 1rem;
    font-size: 14px;
  }

  .landing-wrapper {
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 24px 14px;
  }

  .landing-box {
    width: 100%;
    max-width: 430px;
    height: auto;
    grid-template-columns: 42% 58%;
    grid-template-rows: auto auto auto auto;
  }

  .landing-box__image {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 100%;
    height: auto;
    aspect-ratio: 400 / 480;
  }

  .landing-box__content h1 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 22px 18px 8px;
    font-size: 20px;
    line-height: 1.25;
    color: #1f3b75;
  }

  .landing-box__content p:first-of-type {
    grid-column: 2;
    grid-row: 2;
    margin: 0 !important;
    padding: 0 18px 22px;
    font-size: 14px;
    line-height: 1.45;
    color: #1f3b75;
  }

  .landing-button {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    margin: 22px 22px 18px;
    padding: 10px 16px;
    font-size: 14px;
  }

  .landing-box__content p:last-of-type {
    grid-column: 1 / -1;
    grid-row: 4;
    margin: 0;
    padding: 0 22px 26px;
    font-size: 14px;
    line-height: 1.6;
    color: #1f3b75;
    background: #ffffff;
  }
}


/* =========================================================
   Responsive: Medienbox bis 600px
   ========================================================= */

@media (max-width: 600px) {
  .media-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .media-image {
    width: 90px;
    height: auto;
    max-height: 125px;
  }
}


/* =========================================================
   Responsive: Sehr kleine Smartphones bis 420px
   ========================================================= */

@media (max-width: 420px) {
  #wrapper {
    margin: 1.25rem auto;
    padding-right: 0.875rem;
    padding-left: 0.875rem;
  }

  body.landingpage #wrapper {
    margin: 0;
    padding: 0;
  }

  .custom-header-left {
    padding: 20px 0 18px 0;
  }

  .custom-header-link {
    padding: 0 18px;
  }

  .custom-header-link h2 {
    font-size: 1.25rem;
  }

  .custom-header-slider {
    height: 130px;
  }

  .custom-header-right {
    padding: 20px 18px;
    font-size: 1.15rem;
  }

  /* Auf sehr kleinen Smartphones darf links wieder umbrochen werden */
  .custom-header-left .desktop-break {
    display: block;
  }

  .landing-wrapper {
    padding: 20px 12px;
  }

  .landing-box {
    max-width: 100%;
    grid-template-columns: 44% 56%;
  }

  .landing-box__content h1 {
    padding: 18px 14px 8px;
    font-size: 18px;
    color: #1f3b75;
  }

  .landing-box__content p:first-of-type {
    padding: 0 14px 18px;
    font-size: 13px;
    line-height: 1.45;
    color: #1f3b75;
  }

  .landing-button {
    margin: 20px 18px 16px;
    padding: 9px 13px;
    font-size: 13px;
  }

  .landing-box__content p:last-of-type {
    padding: 0 18px 22px;
    font-size: 13px;
    line-height: 1.55;
    color: #1f3b75;
  }

  .lp-google-aerztepfusch .kontakt-box {
    min-height: 70px;
    text-align: center;
  }

  .lp-google-aerztepfusch .kontakt-box h3 {
    margin: 0;
    padding: 1rem;
    color: #ffffff;
    font-size: 1.3rem;
    text-transform: none;
  }

  .lp-google-aerztepfusch h1,
  .lp-google-behandlungsfehler h1 {
    font-size: 1.5rem;
  }

  .lp-google-aerztepfusch h2,
  .lp-google-behandlungsfehler h2 {
    font-size: 1.5rem;
  }
}