.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-justify { text-align: justify; }


.rm-hl-alignment-center { text-align: center; }
  .rm-hl-alignment-right { text-align: right; }
  .rm-hl-alignment-left { text-align: left; }


  div.rm-txtimg-responsive, div.rm-txtimg-responsive * { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;  }

  /* Clear floats after rm-txtimg and after rm-txtimg-imgrow */
  div.rm-txtimg, div.rm-txtimg div.rm-txtimg-imgrow, ul.rm-uploads li { overflow: hidden; }

  /* Set padding for tables */
  div.rm-txtimg .rm-txtimg-imgwrap table { border-collapse: collapse; border-spacing: 0; }
  div.rm-txtimg .rm-txtimg-imgwrap table tr td { padding: 0; vertical-align: top; }

  /* Settings for figure and figcaption (HTML5) */
  div.rm-txtimg .rm-txtimg-imgwrap figure, div.rm-txtimg figure.rm-txtimg-imgwrap { margin: 0; display: table; }

  /* Captions */
  figcaption.rm-txtimg-caption { display: table-caption; }
  .rm-txtimg-caption { text-align: left; caption-side: bottom; }
  div.rm-txtimg-caption-c .rm-txtimg-caption, .rm-txtimg-imgwrap .rm-txtimg-caption-c { text-align: center; }
  div.rm-txtimg-caption-r .rm-txtimg-caption, .rm-txtimg-imgwrap .rm-txtimg-caption-r { text-align: right; }
  div.rm-txtimg-caption-l .rm-txtimg-caption, .rm-txtimg-imgwrap .rm-txtimg-caption-l { text-align: left; }

  /* Float the columns */
  div.rm-txtimg div.rm-txtimg-imgcolumn { float: left; }

  /* Border just around the image */
  .imgborder {
    border: 1px solid #000;
    padding: 0px 0px;
  }

  div.rm-txtimg .rm-txtimg-imgwrap img { border: none; display: block; }

  /* Space below each image (also in-between rows) */
  div.rm-txtimg .rm-txtimg-imgwrap .rm-txtimg-img { margin-bottom: 10px; }
  div.rm-txtimg .rm-txtimg-imgwrap .rm-txtimg-imgrow-last .rm-txtimg-img { margin-bottom: 0; }

  /* colSpace around image columns, except for last column */
  div.rm-txtimg-imgcolumn, td.rm-txtimg-imgcolumn .rm-txtimg-img { margin-right: 10px; }
  div.rm-txtimg-imgcolumn.rm-txtimg-lastcol, td.rm-txtimg-imgcolumn.rm-txtimg-lastcol .rm-txtimg-img { margin-right: 0; }

  /* Add margin from image-block to text (in case of "Text & Images") */
  div.rm-txtimg-intext-left .rm-txtimg-imgwrap,
  div.rm-txtimg-intext-left-nowrap .rm-txtimg-imgwrap {
    margin-right: 10px;
  }
  div.rm-txtimg-intext-right .rm-txtimg-imgwrap,
  div.rm-txtimg-intext-right-nowrap .rm-txtimg-imgwrap {
    margin-left: 10px;
  }

  /* Positioning of images: */

  /* Center (above or below) */
  div.rm-txtimg-center .rm-txtimg-imgwrap, div.rm-txtimg-center figure.rm-txtimg-imgwrap { overflow: hidden; }
  div.rm-txtimg-center .rm-txtimg-center-outer { position: relative; float: right; right: 50%; }
  div.rm-txtimg-center .rm-txtimg-center-inner { position: relative; float: right; right: -50%; }

  /* Right (above or below) */
  div.rm-txtimg-right .rm-txtimg-imgwrap { float: right; }
  div.rm-txtimg-right div.rm-txtimg-text { clear: right; }

  /* Left (above or below) */
  div.rm-txtimg-left .rm-txtimg-imgwrap { float: left; }
  div.rm-txtimg-left div.rm-txtimg-text { clear: left; }

  /* Left (in text) */
  div.rm-txtimg-intext-left .rm-txtimg-imgwrap { float: left; }

  /* Right (in text) */
  div.rm-txtimg-intext-right .rm-txtimg-imgwrap { float: right; }

  /* Right (in text, no wrap around) */
  div.rm-txtimg-intext-right-nowrap .rm-txtimg-imgwrap { float: right; }

  /* Left (in text, no wrap around) */
  div.rm-txtimg-intext-left-nowrap .rm-txtimg-imgwrap { float: left; }

  div.rm-txtimg div.rm-txtimg-imgrow-last, div.rm-txtimg div.rm-txtimg-imgrow-none div.rm-txtimg-last { margin-bottom: 0; }

  /* Browser fixes: */

  /* Fix for unordered and ordered list with image "In text, left" */
  .rm-txtimg-intext-left ol, .rm-txtimg-intext-left ul { padding-left: 40px; overflow: auto; }

  /* File Links */
  ul.rm-uploads { padding: 0; }
  ul.rm-uploads li { list-style: none outside none; margin: 1em 0; }
  ul.rm-uploads img { float: left; padding-right: 1em; vertical-align: top; }
  ul.rm-uploads span { display: block; }
  ul.rm-uploads span.rm-uploads-fileName { text-decoration: underline; }

  /* Table background colors: */
/*
  table.contenttable-color-1 { background-color: {$styles.content.table.backgroundColor.1}; }
  table.contenttable-color-2 { background-color: {$styles.content.table.backgroundColor.2}; }
  table.contenttable-color-240 { background-color: {$styles.content.table.backgroundColor.240}; }
  table.contenttable-color-241 { background-color: {$styles.content.table.backgroundColor.241}; }
  table.contenttable-color-242 { background-color: {$styles.content.table.backgroundColor.242}; }
  table.contenttable-color-243 { background-color: {$styles.content.table.backgroundColor.243}; }
  table.contenttable-color-244 { background-color: {$styles.content.table.backgroundColor.244}; }
    */
/* 13.05.2015: Partnerbilder */

  .partnerbilder div.rm-txtimg-imgcolumn { margin-right: 0px; }
  .partnerbilder div.rm-txtimg-imgrow {width: 25%; min-width: 200px; padding: 0 40px;}
  .partnerbilder div.rm-txtimg-imgwrap { width: 100%;display: flex; flex-flow: row wrap; }
  .partnerbilder div.rm-txtimg-imgwrap[data-rm-cols='8'] div.rm-txtimg-imgcolumn {width: 12.5%;}
  .partnerbilder div.rm-txtimg-imgwrap[data-rm-cols='7'] div.rm-txtimg-imgcolumn {width: 14.28%;}
  .partnerbilder div.rm-txtimg-imgwrap[data-rm-cols='6'] div.rm-txtimg-imgcolumn {width: 16.66%;}
  .partnerbilder div.rm-txtimg-imgwrap[data-rm-cols='5'] div.rm-txtimg-imgcolumn {width: 12.5%;}
  .partnerbilder div.rm-txtimg-imgwrap[data-rm-cols='4'] div.rm-txtimg-imgcolumn {width: 25%;}
  .partnerbilder div.rm-txtimg-imgwrap[data-rm-cols='3'] div.rm-txtimg-imgcolumn {width: 33.33%;}
  .partnerbilder div.rm-txtimg-imgwrap[data-rm-cols='2'] div.rm-txtimg-imgcolumn {width: 50%;}
  .partnerbilder div.rm-txtimg-imgwrap[data-rm-cols='1'] div.rm-txtimg-imgcolumn {width: 100%;}


