/******************* 01. Font Implementation *******************/
/*
@font-face {
  font-family: 'Open Sans';
  src: url('../../Fonts/OpenSans/OpenSans-Regular-webfont.eot');
  src: url('../../Fonts/OpenSans/OpenSans-Regular-webfont.eot?#iefix') format("embedded-opentype"),
  url('../../Fonts/OpenSans/OpenSans-Regular-webfont.woff') format('woff'),
  url('../../Fonts/OpenSans/OpenSans-Regular-webfont.ttf') format('truetype'),
  url('../../Fonts/OpenSans/OpenSans-Regular-webfont.svg##{$font-name-normal}') format('svg');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../../Fonts/OpenSans/OpenSans-Bold-webfont.eot');
  src: url('../../Fonts/OpenSans/OpenSans-Bold-webfont.eot?#iefix') format("embedded-opentype"),
  url('../../Fonts/OpenSans/OpenSans-Bold-webfont.woff') format('woff'),
  url('../../Fonts/OpenSans/OpenSans-Bold-webfont.ttf') format('truetype'),
  url('../../Fonts/OpenSans/OpenSans-Bold-webfont.svg##{$font-name-bold}') format("svg");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
*/
@font-face {
  font-family: 'Roboto Flex Regular';
  font-style: normal;
  font-weight: normal;
  src: local('Roboto Flex Regular'), url('../../Fonts/Roboto/RobotoFlex[GRAD,XOPQ,XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,YTUC,opsz,slnt,wdth,wght].woff') format('woff');
  //font-display: swap;
}
/******************* 02. Variable Declarations *******************/
:root {

  /*** Fonts,see also Font Implementation at to top of this file ***/
  //--font-family-normal: 'Roboto Flex', verdana, arial, helvetica, sans-serif;
  --font-family-normal: TU, Helvetica, Arial, sans-serif;
  --font-weight-normal: 400;
  --font-variation-settings: 'wdth' 120, 'wght' 400;

  --font-family-bold: arial, sans-serif; //'Roboto Flex Regular'; 
//'Roboto Flex Regular', verdana, arial, helvetica, sans-serif;
  --font-weight-bold: 700;
  --font-variation-settings-bold: 'wdth' 120, 'wght' 550;
  --font-variation-settings-extralight: 'wdth' 120, 'wght' 200;
  --font-variation-settings-light: 'wdth' 120, 'wght' 300;
  --font-variation-settings: 'wdth' 120, 'wght' 400;
  --font-variation-settings-medium: 'wdth' 120, 'wght' 500;
  --font-variation-settings-semibold: 'wdth' 120, 'wght' 600;
  --font-variation-settings-bold: 'wdth' 120, 'wght' 700;
  --font-variation-settings-extrabold: 'wdth' 120, 'wght' 800;

  --font-weight-extralight: 200;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /*** Colors begin ***/

  /* Gray Scale */
  --black: #000;
  --white: #fff;
  --white-opacity: rgba(255, 255, 255, 0.9);

  /* Message Colors */
  --error: #ba0202;
  --error-light: #fff2f2;
  --valid: #5abc55;
  --valid-light: #e8f6e7;
  --warning: #ffc800;
  --warning-light: #fffae8;
  --information: #0080ff;
  --information-light: #ecf5fe;

  /*** Colors end ***/

  /*** Basic Sizes ***/

  /* Basic horizontal spaces */
  --base-html-size: 14px;
  --body-font-size: 17px; //1rem; /* 16px*/

  --base-size: 1.5rem;
  --base-size-double: 3rem;
  --base-size-triple: 4.5rem;
  --base-size-half: 0.75rem;
  --base-size-quarter: 0.375rem;
  --base-size-eighth: 0.1875rem;

  /* Basic vertical spaces */
  --gutter: 1.5rem;
  --gutter-double: 3rem;
  --gutter-triple: 4.5rem;
  --gutter-half: 0.75rem;
  --gutter-quarter: 0.375rem;
  --gutter-eighth: 0.1875rem;

  /* Borders */
  --border-width: 2px;
  --border-radius: 2px;

  --transition: .3s ease-in-out;


  /******************* 03. Property Declarations, Individual Layout *******************/

  /* Max. Height of Logo in Header (--logo-height) on Website
  Rendered File height is defined in TypoScript Constants on Root Page. Adjust value if necessary
  Example: --logo-height: 150px;
  */
  --logo-height: calc(var(--base-size, 16px) * 3.4);

  /* Body */
  --font-color: var(--gray1);
  --font-color-light: var(--gray2);
  --body-bg-color: var(#eeeeee);

  /* Body links */
  --body-link-color: var(--color1);
  --body-link-hover-color: var(--color2);
  --body-link-invers-color: var(--gray4);
  --body-link-invers-hover-color: var(--white);
  --body-link-text-decoration: underline;
  --body-link-text-decoration-color: var(--gray4);
  --body-link-text-decoration-thickness: 1px;
  --body-link-underline-offset: 3px;

  /* Page Header */
  --header-bg-color: #eeeeee; //var(--white);
  --header-bg-overlay: var(--white-opacity);
  --header-color: var(--font-color);
  --header-link-color: var(--body-link-color);
  --header-link-hover-color: var(--body-link-hover-color);
  --header-service-height: var(--logo-height, calc(var(--base-size, 16px) * 3));
  --mobile-logo-height: calc(var(--base-size, 16px) * 3);
  --nav-header-height: calc(var(--base-size, 16px) * 2.5);
  --header-height: calc(var(--header-service-height) + var(--nav-header-height));
  --header-height-fixed: calc(var(--logo-height, 16px) * 0.6);

  --header-button-color: var(--white);
  --header-button-hover-color: var(--white);
  --header-button-bg: var(--body-link-color);
  --header-button-hover-bg: var(--body-link-hover-color);
  --header-button-border: var(--body-link-color);
  --header-button-hover-border: var(--body-link-hover-color);

  /* Page Footers */
  --footer-bg: #eeeeee; //var(--gray2);
  --footer-color: var(--white);
  --footer-link-color: var(--gray5);
  --footer-link-hover-color: var(--body-link-invers-hover-color);

  --footer2-bg: var(--gray1);
  --footer2-color: var(--white);
  --footer2-link-color: var(--body-link-invers-color);
  --footer2-link-hover-color: var(--body-link-invers-hover-color);

  /* Fonts sizes depending on display size */
  --base-html-size-small: var(--base-html-size);
  --base-html-size-medium: calc(var(--base-html-size) * 1.125);
  --base-html-size-large: calc(var(--base-html-size) * 1.1875);

  /* Font sizes - https://type-scale.com/ Perfect Fourth, 1.333 */
  --font-size1: 2.369rem; /* h1 */
  --line-height1: var(--base-size-double);
  --font-size2: 1.777rem; /* h2 */
  --line-height2: calc(var(--base-size) * 1.5);
  --font-size3: 1.333rem; /* h3 */
  --line-height3: calc(var(--base-size) * 1.25);
  --font-size4: 1.125rem; /* h4 */
  --font-size5: var(--body-font-size); /* h5 */
  --font-size-small: calc(var(--body-font-size) * 0.8);
  --line-height-small: calc(var(--body-font-size) * 0.8);

  /* Headers h1-h5 */
  --header-font-family: var(--font-family-normal);
  --header-font-weight: var(--font-weight-semibold);
  --header-font-color: var(--font-color-light);
  --header-font-variation-settings: var(--font-variation-settings-semibold);

  /* Buttons primary */
  --button-color: var(--white);
  --button-hover-color: var(--white);
  --button-bg: var(--body-link-color);
  --button-hover-bg: var(--body-link-hover-color);
  --button-border: var(--body-link-color);
  --button-hover-border: var(--body-link-hover-color);

  /* Buttons secondary */
  --button2-color: var(--body-link-color);
  --button2-hover-color: var(--white);
  --button2-bg: var(--white);
  --button2-hover-bg: var(--body-link-hover-color);
  --button2-border: var(--body-link-color);
  --button2-hover-border: var(--body-link-hover-color);

  /* Tables: border color and cell borders.*/
  --table-border-color: var(--gray3);
  --table-hover-color: var(--font-color);
  --table-hover-bg: var(--gray5);
  --table-header-bg: var(--gray5);
  --table-header-color: var(--font-color);
  --stripedblock-bg: var(--gray5);

  /* Default Border */
  --border-color: var(--gray3);

  /* Image Border Option for Editors*/
  --image-border-color: var(--border-color);
  --image-border-width: var(--border-width);

  /* Layout Option for Editors*/
  --layout-100-bg: var(--gray5);

  /* Toggle Content Header Frame Option */
  --toggle-bg: var(--gray5);

  /* Paddíng for all boxes with background */
  --padding-boxes: var(--base-size) var(--gutter);

  --box-shadow: rgba(0, 0, 0, 0.2);


  /***** Content Element: Hero Text over image options *****/
  --hero-text-light: var(--white);
  --hero-text-dark: var(--black);
  --hero-text-bg-light: rgba(255, 255, 255, 0.9);
  --hero-text-bg-dark: rgba(0, 0, 0, 0.9);
  --hero-text-shadow-dark: 1px 1px 1px var(--black);
  --hero-text-shadow-light: 1px 1px 1px var(--white);

  /***** Navigation smartmenu *****/

  /* Navigation background over whole browser width */
  --menu-bg-100vw: black; //var(--gray5, #eee);

  --menu-font-family: var(--font-family-bold);
  --menu-font-size: calc(var(--body-font-size)*1.1);

  /*Mobile Items separators*/
  --collapsible-separators-color: rgba(0, 0, 0, 0.05);
  /*Toggle button (sub menu indicators)*/
  --collapsible-toggle-bg: var(--white-opacity);
  --collapsible-submenu-bg: rgba(var(--gray4), 0.1);

  /* 1.level menu */
  --menu-link-color: #54ACF9; //var(--body-link-color);
  --menu-link-hover-color: #54ACF9; //var(--font-color);
  --menu-bg: black; //var(--gray5);
  --menu-hover-bg: var(--gray5);
  --menu-current-bg: black; //var(--gray5);
  --menu-arrow-color: var(--menu-link-color);

  /* 2.level menu */
  --submenu-link-color: grey5; //var(--body-link-color);
  --submenu-link-hover-color: #54ACF9; //var(--font-color);
  --submenu-current-color: #54ACF9; //var(--font-color);
  --submenu-current-hover-color: #54ACF9; //var(--font-color);
  --submenu-bg: black; //var(--gray5);
  --submenu-hover-bg: black; //var(--white);
  --submenu-current-bg: black; //var(--white);
  --submenu-arrow-color: var(--body-link-color);
  --desktop-submenu-border-color: var(--border-color);

  /* hamburger icon for mobile menu */
  --menu-icon-button: var(--body-link-color);

}
html {
  scroll-behavior: smooth;
}

div.anker {
  scroll-margin-top:calc(var(--header-height-fixed) - var(--base-html-size) * 2);
}
:root {
  --maxwidth: 1470px;
  --iuebg : #eeeeee;
  .width-max { max-width: var(--maxwidth); }

//  --body-bg-color: white; 
  --body-bg-color: var(#eeeeee);


/* Links/Menus */
  --color1: #00669a;
  --color2: #55acf9;
  --red : #f00;

  --iuebg : #eeeeee;
  --fg: #7d7d7d;
  --lg: #313131;
  --bg: #ddd;

  --fgm: #ffffff;
  --bgm: #333333;
  --fgho: #55ACF9;
  --bgho: #000000;

  --fgm2: #ffffff;
  --bgm2: #333333;
  --fgho2: #55acf9;

  /* Body */
  --font-color: var(--fg);
  --font-color-light: var(--lg);
  //--body-bg-color: var(--white);
  --body-bg-color: #eeeeee;

  --body-link-text-decoration: none;

  --footer-bg:#eeeeee; //white;



  .aroundbanner { 
	margin-left: auto;
      	margin-right: auto;
	display:flex;
  }      
  .banner { 
	max-width: var(--maxwidth);
	width:100%;
	margin-left: auto;
      	margin-right: auto;
  }
@media (max-width:  730px) {
  .aroundbanner { 
	//margin-left: auto;
      	margin-right: 0;
	display:flex;
	direction:rtl;
  }      
  .banner { 
	min-width: 730px;
	width:100%;
	//margin-left: auto;
      	margin-right: 0;
	overflow:clip;
  }
}

@media (max-width:  365px) {
.wrapper-logo {
    display: flex;
    width: 100%;

    img {
  	object-fit: cover;
    }
  }
}

.wrapper-logo a img {
	display:inline;
}


  --font-size1: var(--font-size2);

  /* Headers h1-h5 */
  --header-font-family: var(--font-family-bold);
  --header-font-weight: var(--font-weight-bold);
  --header-font-color: var(--font-color-light);
  --header-font-variation-settings: var(--font-variation-settings-bold);

  //--font-size1: 2.369rem; /* h1 */
  //--line-height1: var(--base-size-double);
  --font-size1: 1.3rem; /* h2 */
  --line-height1: calc(var(--base-size) * 1.0);
  --font-size2: 1.3rem; /* h2 */
  --line-height2: calc(var(--base-size) * 1.0);
  --font-size3: 1.2rem; /* h3 */
  --line-height3: calc(var(--base-size) * 1.0);
  --font-size4: 1.1rem; /* h4 */
  --font-size5: var(--body-font-size); /* h5 */
  --font-size6: var(--body-font-size); /* h6 */


  h1 { text-decoration : underline var(--color1); }
  h2 { text-decoration : underline var(--color1); }
  h4 { text-align : left; }


  .content-footer div.frame { 
	  background-color : var(--black); 
  	  font-size : calc(var(--body-font-size)*0.75);
	  line-height : calc(var(--body-font-size)*1.0);
  	  //--font-size-small: calc(var(--body-font-size) * 0.8);
	  .text-center { 
	  	margin-top : calc(var(--body-font-size)*(0.4)); 
	  	margin-bottom : 0; //calc(var(--body-font-size)*0.75); 
	  }
  }


  --six : 1;
  @media (min-width:  330px) { --six : 2; }
  @media (min-width:  550px) { --six : 3; }
  @media (min-width:  680px) { --six : 4; }
//  @media (min-width:  850px) { --six : 5; }
  @media (min-width: 1000px) { --six : 6; }

  --sixsmall : 1;
  @media (min-width:  330px) { --sixsmall : 2; }
  @media (min-width:  550px) { --sixsmall : 3; }
  @media (min-width:  700px) { --sixsmall : 4; }
//  @media (min-width:  1180px) { --sixsmall : 5; }
  @media (min-width:  1360px) { --sixsmall : 6; }

  text-wrap : wrap;
  .ce-bodytext { text-wrap : wrap; text-align: justify;}
  .align-justify { text-wrap : wrap; text-align: justify;}
  p { text-wrap : wrap; text-align: justify;}


  .frame-iueframe {
  	box-shadow:0px 0px 5px 3px #888888;
	border-top:5px solid #006699;
	border-bottom:0;
	//margin-bottom:0;
	//min-width:300px;
	img { max-width:100%; display: block;}
  }
  .content-main:has(.frame-iueframe) { margin-bottom:calc(-1 * var(--base-size)); }
  .iconswide { margin-top:calc(-1 * var(--base-size)); }

  .docolumns { display: grid; /* Activates CSS grid for the parent container */
  	/* Creates two columns, each taking up an equal fraction of the available space */
  	grid-template-columns: repeat(var(--six),1fr);
  }

  .grid {
    display:flex;
  }
 
@media (max-width:  1000px) {
  .grid {
    display:flow;
  }
} 

  --layout-100-bg: white;
  .text-center { 
	text-align:center;
  }

  .ce-outer { width : 100%; }
  .ce-inner { width : 100%; }

  .frame-type-menu_sitemap > ul,
  .frame-type-menu_sitemap_pages > ul, ul.cerv-vertical 
  {
            list-style-type: none;
            padding-left: 3ex;
            padding-right: 2ex;
	    padding-top : 1.5ex;
	    padding-bottom : 1.5ex;
            //background-color: var(--menu-bg);
      li a:hover { color:blue1;  }
	    li 
	    { 
	      border-top : none;
	      padding-bottom : 1.0ex;
	      overflow: hidden;
	      a 
	      {
		padding : 0;
		text-decoration : none;
		ooverflow: hidden;
		wwhite-space: nowrap;
		ttext-overflow: ellipsis;
	      }
	      ul 
	      {
                list-style-type: none;
                padding-left: 2ex;
		padding-top : 0.7ex;
	      }
	    }
        }

.iconswide { width:100%; }

.iconswide {
.buttoncontainer { width:100%; text-align:center;
	//border:2px solid red;
	//margin-top:20px;
	margin-bottom:20px;
	display: grid; /* Activates CSS grid for the parent container */
  /* Creates two columns, each taking up an equal fraction of the available space */
  grid-template-columns: repeat(var(--six),1fr);
}
}

.iconssmall {
.buttoncontainer { width:100%; text-align:center;
	//border:2px solid red;
	//margin-top:20px;
	margin-bottom:20px;
	display: grid; /* Activates CSS grid for the parent container */
  /* Creates two columns, each taking up an equal fraction of the available space */
  grid-template-columns: repeat(var(--sixsmall),1fr);
}
}

.cervcontent-content {
	text-wrap:wrap;
	.spacer {
		line-height:0px;
	}
	table {
		border:0px;
		width:auto;
	}
	td {
		border:0px;
		border-bottom:0px;
		padding:0.5rem;
	}
}


.buttonimg {
	margin:10px;
	width:140px;
	height:100%;
        font-size:14px;
	line-height:19px;
	text-align:center;
        height:auto;
        float:left;
	//border:2px solid red;
	text-align:center;
	//border : solid 1px;
}
.buttonimg img { margin:auto; }
.buttonimg div { width:140px; text-align:center; margin:auto;
}
.showhim { height:100px; }

.showme{
   display: none;
}

.showhim:hover .showme{
   display : block;
 }
.showhim:hover .ok{
   display : none;
 }

.showme,.ok { position:absolute; }

.showme img {
//    -webkit-filter: blur(2px); /* Safari 6.0 - 9.0 */
//    filter: blur(2px);
}
.clear { clear:both }

//cerv
div.ce-gallery {
	width:auto;
}
.ce-gallery img {
    height: auto;
    width: auto;
    max-width: 100%;
    display: block;
}

.ce-gallery {
  figure.image img {
    height: auto;
    width: auto;
    max-width: 100%;
    display: block;
  }
  .image-caption { 
    color : var(--font-color);
    font-size : 0.9rem;
    line-height : 1.2rem;

  }
}

/* Erwirkt das Überschreiben der fehlerhaften 1px-Berechnung */
//.flatpickr-calendar {
//    width: 307px !important; /* Standardbreite von Flatpickr */
//}

//.nix {
        //.cerv-gallery { float:left; }
        .ce-intext.ce-nowrap > .ce-bodytext {
            width: auto;
        }
        /* Make width attribute take precedence over any styles */
    .ce-column
    {
        img { width:innherit; height:inherit; max-width:none; max-height:none; }
	//.ce-row { display:flex; flex-wrap: wrap; }
	//.ce-column { float:left; display: inline-block; }
    }
    .ce-inner { position: relative; float: right; right: -50%; }
//}

.cervprojects * { border:0; }
.cervprojects .projecthead { border-bottom:var(--border-width) solid var(--table-border-color); }
