/* FONTS / ICONS
----------------------------------------------------------------------- */ 

@font-face {
  font-family: 'Univia Pro';
  src: url('../fonts/UniviaPro-Book.woff') format('woff');
  }
  
@font-face {
  font-family: 'Univia Pro';
  font-weight: 500;
  src: url('../fonts/UniviaPro-Medium.woff') format('woff');
  }  

@font-face {
  font-family: 'Univia Pro';
  font-weight: 700;
  src: url('../fonts/UniviaPro-Bold.woff') format('woff');
  }
  
/* GENERAL
----------------------------------------------------------------------- */ 

* {
  
  box-sizing: border-box;
  
  --padding-side: calc(150vw / 1920 * 100);
  
  --blue: #53829C;
  --grey: #B1B1B1;
  
  --wp--preset--spacing--small: calc(140vw / 1920 * 100 + var(--padding-side));
  --wp--preset--spacing--medium: calc(280vw / 1920 * 100 + var(--padding-side));
  --wp--preset--spacing--large: calc(420vw / 1920 * 100 + var(--padding-side)); 
  --wp--preset--spacing--x-large: calc(560vw / 1920 * 100 + var(--padding-side)); 
  
  --wp--preset--font-size--small: calc(21vw / 1920 * 100);
  }
  
.block-editor-iframe__html {
  background: #eee !important;
  }
  
:root :where(.editor-styles-wrapper)::after {
  display: none !important;
  }
  
.editor-styles-wrapper {
  font-family: 'Univia Pro';
  font-size: calc(26vw / 1920 * 100);
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased !important;
  }
  
.editor-styles-wrapper STRONG {
  font-weight: 500;
  }  
  
.editor-styles-wrapper P A {
  color: var(--dark);
  border: none;
  text-decoration: none;
  transition: color 0.2s;
  }  
  
.wp-block-post-content P A { 
  font-style: italic;
  color: var(--blue);
  }  
  
.wp-block-post-content P:not(.has-small-font-size) A:before {  
  content: " ";
  display: inline-block;
  width: calc(51vw / 1920 * 100);
  height: calc(42vw / 1920 * 100);
  background: url('../img/arrow.svg') no-repeat center center;
  background-size: contain;
  float: left;
  margin-right: calc(10vw / 1920 * 100);
  margin-top: calc(4vw / 1920 * -100);
  }
  
.wp-block-post-content P.has-small-font-size A:hover {
  color: #000;
  }
  
.editor-styles-wrapper P A:hover {
  color: var(--blue);
  }  
  
.wp-block {
  margin-top: 0;
  margin-bottom: 0;
  } 
  
.editor-visual-editor__post-title-wrapper {
  display: none !important;
  }  
  
.wp-block-post-content {
  padding: var(--padding-side);
  }
  
.wp-block-post-content > .alignwide {  
  max-width: 100% !important;
  padding-left: var(--padding-side);
  padding-right: var(--padding-side);
  }       
  
.wp-block-post-content P {  
  margin-top: 0;
  margin-bottom: 1.45em;
  }
  
/* BLOCK HEADINGS
------------------------------------------------------------------------- */

H2.wp-block-heading {
  color: var(--blue);
  font-weight: 400;
  font-size: calc(42vw / 1920 * 100);
  line-height: 1;
  letter-spacing: 0.01em;
  margin: calc(120vw / 1920 * 100) 0;
  text-transform: uppercase;
  }  
  
H3.wp-block-heading {
  color: var(--blue);
  font-weight: 400;
  font-size: calc(33vw / 1920 * 100);
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin-top: calc(50vw / 1920 * 100);
  margin-bottom: calc(100vw / 1920 * 100);
  }

/* BLOCK GROUP
----------------------------------------------------------------------- */   

.wp-block-post-content .wp-block-group {
  padding-top: calc(120vw / 1920 * 100);
  padding-bottom: calc(150vw / 1920 * 100);
  padding-left: calc(193vw / 1920 * 100);
  padding-right: calc(467vw / 1920 * 100);
  margin-bottom: 0 !important;
  }
  
.wp-block-post-content > .wp-block-group:first-child {  
  padding-top: 0;
  }
  
/* BLOCK COLUMNS
----------------------------------------------------------------------- */   

.wp-block-columns {
  margin: calc(120vw / 1920 * 100) !important;
  gap: calc(200vw / 1920 * 100) !important;
  }
  
.wp-block-columns:first-child {  
  margin-top: 0 !important;
  }  
  
.wp-block-columns:last-child {  
  margin-bottom: 0 !important;
  }
  
/* BLOCK BUTTON
----------------------------------------------------------------------- */  
  
.wp-block-button .wp-block-button__link {
  font-style: normal;
  display: block;
  background: none;
  text-align: left;
  font-size: var(--wp--preset--font-size--small);
  color: var(--blue);
  padding: 0;
  max-width: calc(270vw / 1920 * 100);  
  }
  
.wp-block-button .wp-block-button__link:before {  
  content: " ";
  display: block;
  width: calc(51vw / 1920 * 100);
  height: calc(42vw / 1920 * 100);
  background: url('../img/arrow.svg') no-repeat center center;
  background-size: contain;
  float: none;
  margin-right: calc(10vw / 1920 * 100);
  margin-top: 0;
  margin-bottom: calc(10vw / 1920 * 100);
  transition: 0.2s;  
  }
  
/* BLOCK IMAGE
----------------------------------------------------------------------- */   

.wp-block-image {
  margin: calc(150vw / 1920 * 100) auto;
  } 

.wp-block-image.arrow IMG { 
  width: calc(55vw / 1920 * 100);
  height: auto;
  }
  
.wp-block-image.intro IMG {
  aspect-ratio: 1620 / 750;
  object-fit: cover;
  object-position: center center;
  }  
  
/* BLOCK MEDIA TEXT
----------------------------------------------------------------------- */    
  
.wp-block-media-text {
  margin: 0 !important;
  gap: calc(50vw / 1920 * 100);
  }
  
.wp-block-media-text + .wp-block-media-text {
  margin-top: calc(150vw / 1920 * 100) !important;
  }  
  
.wp-block-media-text.has-media-on-the-right {
  grid-template-columns: auto 67.3% !important;
  }  
  
.wp-block-media-text > wp-block-media-text__media {
  width: 66.6%;
  }

.wp-block-media-text > .wp-block-media-text__content {
  padding: 0;
  }
  
.wp-block-media-text > .wp-block-media-text__content .wp-block-image {  
  margin-top: 0 !important;
  }
  
/* BLOCK TABLE
----------------------------------------------------------------------- */   

.wp-block-table {
  margin-top: 0 !important;
  margin-bottom: 1.5em !important;
  width: auto;
  }
  
.wp-block-table TABLE {
  width: auto;
  }  
  
.wp-block-table TD {
  border: none;
  padding: 0 calc(20vw / 1920 * 100) 0 0;
  vertical-align: top;
  width: auto !important;
  }   
  
/* BLOCK LIST
----------------------------------------------------------------------- */   
  
.wp-block-list {
  margin-top: 0 !important;
  margin-bottom: 1.5em !important;
  padding-left: 1em !important;
  }

.wp-block-list LI {
  list-style: none;
  position: relative;
  }
  
.wp-block-list LI::before {
  content: "•";
  position: absolute;
  left: -1.5em;   
  top: 0.3em; 
  font-size: 0.6em;
  }


/* LAZYBLOCK MAP
----------------------------------------------------------------------- */   

#map {
  aspect-ratio: 1168 / 700;
  background: #eee;
  margin-top: calc(-40vw / 1920 * 100);
  }
  
/* Optional: sanfter Marker Pulse */
    .pulse {
      animation: pulse 2s infinite;
      transform-origin: center;
    }

    @keyframes pulse {
      0% { transform: scale(1); opacity: 1; }
      70% { transform: scale(1.3); opacity: 0.6; }
      100% { transform: scale(1); opacity: 1; }
    }  
    
.is-root-container .wp-block-lazyblock-map:before {
  content: " ";
  position: absolute;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  opacity: 0;
  }    
  
/* HEADER
----------------------------------------------------------------------- */  
  
HEADER.wp-block-group {
  padding: calc(80vw / 1920 * 100) var(--padding-side);
  margin: 0 !important;
  }
  
HEADER.wp-block-group .wp-block-group {  
  margin: 0 !important;
  }
  
HEADER .wp-block-image IMG {
  height: calc(100vw / 1920 * 100);
  width: auto;
  }
  
HEADER .wp-block-navigation {
  gap: calc(50vw / 1920 * 100);
  }  
  
HEADER NAV A {
  font-size: calc(18vw / 1920 * 100);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  }  
  
HEADER NAV .current-menu-item A {
  font-weight: 500;
  }
  
HEADER NAV A:hover {
  color: var(--blue) !important;
  }
  
HEADER NAV A .wp-block-navigation-item__label {
  transition: 0.2s;
  }  
  
HEADER NAV .medflex A:before {
  content: " ";
  display: inline-block;
  background: url('../img/logo-medflex.svg') no-repeat center center;
  background-size: contain;
  width: calc(130vw / 1920 * 100);
  height: calc(50vw / 1920 * 100);
  }  
  
HEADER NAV .medflex A .wp-block-navigation-item__label {
  display: none;
  }
  
HEADER NAV .notfall A .wp-block-navigation-item__label {
  display: inline-block;
  background: #FF0000;
  color: #fff;
  width: calc(132vw / 1920 * 100);
  height: calc(51vw / 1920 * 100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  } 
  
HEADER NAV .notfall.current-menu-item A .wp-block-navigation-item__label,
HEADER NAV .notfall A:hover .wp-block-navigation-item__label,
HEADER NAV .notfall A:active .wp-block-navigation-item__label {   
  background: none;
  border: 2px solid #FF0000;
  color: #ff0000;
  }
    
/* FOOTER
----------------------------------------------------------------------- */  
  
FOOTER.wp-block-group {
  padding: calc(80vw / 1920 * 100) var(--padding-side);
  margin: 0 !important;
  color: #4D4D4D;
  font-size: calc(19vw / 1920 * 100);
  line-height: 1.38;
  }
  
FOOTER.wp-block-group * {  
  --wp--preset--font-size--small: calc(18vw / 1920 * 100);
  --wp--preset--font-size--large: calc(20vw / 1920 * 100);
  }
  
FOOTER.wp-block-group .wp-block-columns {  
  margin: 0 !important;
  }
  
FOOTER FIGURE.medflex IMG {
  width: calc(200vw / 1920 * 100);
  height: auto;
  }   
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
