 * {
  --padding-side: calc(20vw / 393 * 100);
   
  --wp--preset--font-size--small: calc(17vw / 393 * 100);
  --wp--preset--font-size--large: calc(17vw / 393 * 100);
  }
  
A {
  transition: 0;
  }  
  
IMG {
  vertical-align: baseline;
  }  
  
.editor-styles-wrapper {
  font-size: calc(17vw / 393 * 100);
  }  
  
.wp-site-blocks {
  position: relative;
  z-index: 0;
  }  
  
.wp-block-post-content {
  padding-bottom: calc(var(--padding-side)*2);
  }  
  
.wp-block-post-content P:not(.has-small-font-size) A:before {
  width: calc(25vw / 393 * 100);
  height: calc(22vw / 393 * 100);
  margin-right: calc(7vw / 393 * 100);
  margin-top: calc(0vw / 393 * 100);
  }
  
.wp-block-post-content P A[href^="tel:"] {
  font-style: normal;
  }  
  
.wp-block-post-content P A[href^="tel:"]:before {
  display: none;
  }    
  
.wp-block-post-content P A:has(strong),
.wp-block-button .wp-block-button__link {
  max-width: 60vw;
  }  
  
.wp-block-post-content P A:has(strong):before,
.wp-block-button .wp-block-button__link:before {
  width: calc(40vw / 393 * 100);
  height: calc(40vw / 393 * 100);
  }  
  
/* HEADER
------------------------------------------------------------------------- */ 

HEADER {
  padding-top: 0;
  }
  
HEADER.wp-block-group {
  padding: var(--padding-side);
  }  
  
HEADER .wp-block-image IMG {
  position: relative;
  z-index: 20;
  width: auto;
  height: 100px !important;
  transition: 0.2s;
  }

HEADER BUTTON {
  display: none !important;
  } 
  
HEADER .wp-block-navigation {
  gap: calc(15vw / 393 * 100);
  align-items: flex-start;
  padding-left: var(--padding-side);
  }     

HEADER NAV .medflex {
  margin-top: 15px;
  }  
  
HEADER NAV .medflex A:before {
  width: calc(130vw / 393 * 100);
  height: calc(50vw / 393 * 100);
  }  
  
HEADER NAV .notfall A .wp-block-navigation-item__label {
  width: auto;
  height: auto;
  padding: 10px 20px 9px 20px;
  } 
  
/* STICKY HEADER
------------------------------------------------------------------------- */     

HEADER .wp-block-image A:before {
  content: " ";
  position: absolute;
  z-index: 20;
  top: var(--padding-side);
  left: var(--padding-side);
  width: 500px;
  height: 60px;
  background: url('../img/logo-light.svg') no-repeat;
  background-size: contain;
  opacity: 0;
  transition: 0.2s;
  }  
  
BODY.scrolled HEADER {
  height: 80px;
  box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
  }
  
BODY.scrolled HEADER .wp-block-image IMG {
  opacity: 0;
  }
  
BODY.scrolled HEADER .wp-block-image A:before {
  opacity: 1;
  }  
  
.wp-block-post-content {
  padding-top: calc(150vw / 393 * 100);
  } 
  
.page-id-2 .wp-block-post-content {
  padding-top: calc(140vw / 393 * 100);
  }    
  
/* HEADINGS
------------------------------------------------------------------------- */   
  
H2.wp-block-heading {
  line-height: 1.15;
  font-size: calc(28vw / 393 * 100);
  margin-top: calc(40vw / 393 * 100);
  margin-bottom: calc(30vw / 393 * 100);
  }
  
H3.wp-block-heading {
  font-size: calc(22vw / 393 * 100);
  margin-top: calc(20vw / 393 * 100);
  }

/* BURGER
------------------------------------------------------------------------- */   

#burger {
  display: block;
  position: fixed;
  z-index: 11;
  top: 16px;
  right: 0;
  width: 40px;
  height: 40px;
  
  z-index: 1;  
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
  transition: position 0s;
  cursor: pointer;  
  }

#burger span {
  display: block;
  position: absolute;
  height: 2px;
  width: calc(20vw / 393 * 100);
  background: var(--blue);
  opacity: 1;
  top: 50%;
  
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .25s ease-in-out;
  -moz-transition: .25s ease-in-out;
  -o-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
  }

#burger span:nth-child(1) {
  margin-top: -3px; 
  }

#burger span:nth-child(2) {
  margin-top: 4px; 
  }
  
BODY.menu #burger span {
  margin-top: 0;
  }

BODY.menu #burger span:nth-child(1) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
  }

BODY.menu #burger span:nth-child(2) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  } 


/* MENÜ
------------------------------------------------------------------------- */  
  
.wp-block-navigation__responsive-container {
  z-index: 10;
  display: block;
  right: 0;
  bottom: 0;
  transform: translateX(100vw);
  transition: 0.2s;
  }
  
BODY.menu .wp-block-navigation__responsive-container {  
  transform: translateX(0);
  }
  
.wp-block-navigation__responsive-close {
  height: 100%;
  }

.wp-block-navigation__responsive-dialog {
  height: 100%;
  background: rgba(255,255,255,1);
  backdrop-filter: blur(15px);
  }
  
.wp-block-navigation__responsive-container-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  }
  
.wp-block-navigation__container {
  flex-direction: column;
  }  
  
HEADER NAV UL LI A {
  font-size: 20px;
  } 
  
/* POPUP
------------------------------------------------------------------------- */   
  
.popup {
  font-size: calc(15vw / 393 * 100);
  width: auto;
  margin: 0;
  top: -100vh;
  left: var(--padding-side);
  right: var(--padding-side);
  padding: 25px;
  }
  
.popup.active {
  top: calc(100px + var(--padding-side)*3);
  }  
  
.popup .title {
  font-size: calc(15vw / 393 * 100);
  padding-right: 50px;
  }  
  
.popup .close {
  background-size: 16px auto;
  width: 48px;
  height: 48px;
  }  
 
/* HOME
------------------------------------------------------------------------- */  
  
.page-id-2 H2.wp-block-heading:first-child {
  max-width: 65%;   
  }
  
.page-id-2 .wp-block-image + .wp-block-columns {
  gap: 0 !important;
  }  
  
/* BLOCK COLUMNS
------------------------------------------------------------------------- */    

.wp-block-columns {
  gap: calc(40vw / 393 * 100) !important;
  }
  
.wp-block-columns:has(.wp-block-column:empty) {
  gap: 0 !important;
  }  
  
/* BLOCK GROUP
------------------------------------------------------------------------- */   
  
.wp-block-post-content .wp-block-group {
  padding: 0;
  padding-top: var(--padding-side);
  }
  
/* BLOCK IMAGE
------------------------------------------------------------------------- */   

.wp-block-image.intro,
#map {
  margin-left: calc(var(--padding-side)*(-1)) !important;
  margin-right: calc(var(--padding-side)*(-1)) !important;
  width: 100vw;
  }
  
.wp-block-image.intro IMG {
  aspect-ratio: 3 / 2;
  max-width: 100vw;
  }  
  
#map {
  margin-top: var(--padding-side);
  height: 100vw;
  }  
  
/* BLOCK MEDIA TEXT 
------------------------------------------------------------------------- */    
  
.wp-block-media-text {
  margin-top: calc(var(--padding-side)*2) !important;
  gap: var(--padding-side) 0;
  }
  
.wp-block-media-text.has-media-on-the-right {
  grid-template-columns: auto auto !important;
  }  
  
.wp-block-table TD {
  padding: 0 calc(20vw / 393 * 100) 0 0;
  }  
  
/* FOOTER
------------------------------------------------------------------------- */   
  
FOOTER.wp-block-group {
  padding-top: var(--padding-side);
  padding-bottom: calc(var(--padding-side)*2);
  font-size: calc(14vw / 393 * 100);
  }
  
FOOTER.wp-block-group * {
  --wp--preset--font-size--small: calc(14vw / 393 * 100);
  --wp--preset--font-size--large: calc(14vw / 393 * 100);
  }  
  
FOOTER FIGURE.medflex IMG {
  width: 30vw;
  }  
  
FOOTER .wp-block-column:last-child * {
  font-size: calc(13vw / 393 * 100) !important;
  }  
  
FOOTER .wp-block-column:last-child BR {  
  display: none !important;
  }
  
