/* 
    Created on : 21.08.2015, 10:23:27
    Author     : liebsche
	
	EDIT:	KOERNST 01.03.2017
*/

/*************************************************************
   Allgemeine Festlegungen unabhängig von der Auflösung 
*************************************************************/

header{
	max-width: var(--content-width);
	margin: 0 auto 0 auto;
}

#header,
#header_title,
#service_navi,
#service_navi ul,
#header_sitetitle h1,
#lang_sel {
	margin: 0 auto;
	display: flex;
}

#service_box{
	display: block;
}

#header {
	width: 100%;
	padding: 0;
	color: #000;
	line-height: 0;
}

#header a {
	border-bottom: none;
}
#header a:focus,
#header a:hover,
#header a:active {
	background-color: #fff;
}

#header_mainlogo img {
	height: 80px;
}
#header_ownlogo img {
	margin: 1px 0 0 0;
	max-height: 70px;
}


/*   Header-Element Site-Titel  */
#header_sitetitle {
	display: flex;
	/* Fallback für alte Browser */
	width: 445px;
	flex: 2 1 40%;
}

#header_sitetitle a {
	display: flex;
}


#header_sitetitle h1,
#header_sitetitle_umbruch h1 {
	display: flex;
	padding: 0 0.5em 0.8em 0.5em;
	padding: 0 0.5rem 0.5rem 0.5rem;
	margin: 0;
	font-family:var(--infotext);
	/*font-family:var(--barlow);*/
	/*font-family:var(--barlow-semi-condensed);*/
	font-size: 1.25rem;
	background: transparent;
	letter-spacing: 0.02rem;
	line-height: 1.375rem;
	/* Flex-Box - Einstellungen - Umschaltung der Blöcke der Service-Box auf horizontale Anordnung */
	-webkit-box-orient: vertical;
	-moz-box-orient: vertical;
	flex-direction: column;
	-webkit-justify-content: flex-start;
	-ms-flex-pack: start;
	justify-content: flex-start;
}

#header_sitetitle_umbruch h1 {
	padding: 0.1rem 0.5rem 0 0.5rem;
}
#header_sitetitle h1 div {
	height: 1.375rem;
}

/*   Header-Element Sevice-Bereich  - Hilfs-Menü  */
#service_box {
	flex: 0 1 25%;
	align-self: auto;
	/* Flex-Box - Einstellungen - Umschaltung der Blöcke der Service-Box auf horizontale Anordnung */
	flex-direction: column;
}

#service_navi {
	-ms-flex-pack: justify;
	justify-content: space-between;
	align-items: flex-start;
}

#service_navi_label{
	position: relative;
	font-size: 0.7em;
	line-height: 0.95em;
	color: #686a6c;
	padding: 0 0.2rem 0 0.2rem;
	margin: 0;
	text-align: right;
}

#service_navi_label:after{
	display: inline-block;
	width: 1rem;
	height: 1rem;
	padding: 0 0 0 0.25rem;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-size: 12px;
	line-height: 1;
	font-family: 'Genericons';
	font-weight: normal;
	font-style: normal;
	content: '\f502';
	position: relative;
	top: 0.35rem;
}

#service_navi_label:focus,
#service_navi_label:hover, 
#service_navi_label:active{
	color: var(--main-color);
}

#service_navi_min {
	display: none;
	max-height: 0;
}


#service_box2 {
	/*padding: 0 0 0 2.04081632%;*/
	flex: 0 1 23.5%;
	align-self: auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	box-sizing: border-box;
}

#service_navi_webinfo {
	grid-column: 1 / 3;
	grid-row: 1;
	display: inline-flex;
	justify-content: flex-end;
	z-index: 999;
	white-space: nowrap;
	padding: 0 0 0.1rem 0 ;
}

#service_navi_webinfo_titel {
	display: none;
	width: 25%;
}

#service_navi_webinfo_titel img {
	height: 90%;
	width: auto;
	opacity: 0.5;
}

#service_navi_webinfo_liste {
	display: inline-flex;
	justify-content: flex-end;
	margin: 0 0.1rem;
/*	background-color: #E7E9EA;*/
}

#service_navi_webinfo_liste a {
	font-size: 0.7rem;
	line-height: 1.25rem;
	padding: 0.1rem 0.25rem;
	color:var(--grey-2);
}

#service_navi_webinfo_liste a:hover {
	background-color: var(--main-color);
	color: white;
}

#service_navi_webinfo:hover #service_navi_webinfo_titel {
	display: none;
}

#service_navi_webinfo:hover #service_navi_webinfo_liste {
	display: inline-flex;
}

#service_navi_search {
	grid-column: 1 / 3;
	grid-row: 2;
	width: 100%;
	z-index: 999;
	white-space: nowrap;
}

#service_navi_search:hover {
	grid-column: 1 / 3;
	grid-row: 2;
	z-index: 1000;
}

#service_navi_search_icon {
	display: none;
}

/* #service_navi_search_form form { */
#search_form {
	display: inline-flex;
	justify-content: space-between;
	width: 100%;	
}

#service_navi_search_form .search_input {
	flex: 1;
	line-height: 1.4rem;
	background-color: #F0F0F0;
	padding-left: 0.5em;
	border: 1px solid rgba(255, 255, 255, 0.1);
	margin-left: 0.2rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	font-family:var(--barlow);
}

#service_navi_search_form .search_button {
	margin-left: 0.1rem;
	font-size:0;
	line-height: 1.4rem;
	opacity: 0.5;
	filter: alpha(opacity=50);
	border-top-right-radius: 0.3em;
	border-bottom-right-radius: 0.3em;
}

#service_navi_search:hover > #service_navi_search_icon {
	display: none;
}

#service_navi_search:hover > #service_navi_search_form {
	display: block;
}

#service_navi_readspeak {
	grid-column: 1;
	grid-row: 3;
	z-index: 999;
	padding-left: 0.25rem;
}

#service_navi_sprachen {
	grid-column: 2;
	grid-row: 3;
	z-index: 999;
	font-family:var(--barlow-semi-condensed);
	font-size:1rem;
	text-transform:uppercase;
	display: inline-flex;
	justify-content: flex-end;
	gap:0.5rem;
}

#service_navi_sprachen a {
	line-height:initial;
}

.lsel:focus,.lsel:hover,.lsel:active,
.lsel:focus b,.lsel:hover b,.lsel:active b{
	color:#fff;
	background-color:var(--main-color)!important;
}


#service_navi_min li:before,
#service_navi_min li:after {
	content: '';
}

#service_navi ul{
	-ms-flex-pack: justify;
	justify-content: space-between;
	margin:0 0 0 0.1rem;
	list-style-type:none !important;
}

#service_navi li{
	margin: 0;
	font-size:0.625rem;
	line-height:1rem;
	background-color: #fff;
}

#service_navi_min li{
	margin: 0;
	font-size:0.7em;
	font-size:0.625rem;
	line-height:0.95em;
	line-height:1rem;
	background-color: #E7E9EA;
	padding-bottom: 0.8rem;
}

#service_navi_min li a {
	color: black;
	padding: 0px 10px 0px 10px;
	margin: -15px 0px 0 0;
	display: block;
	padding: 0.2rem;
	font-size: 0.7rem;
}
#service_navi_min2 li a {
	color: black;
	padding: 0px 10px 0px 10px;
	display: block;
	padding: 0.2rem;
	font-size: 0.725rem;
}

#service_navi li:after{
	content: "|";
	padding: 0 2px;
}
#service_navi li:last-of-type:after{
	content: "";
}
#service_navi a, #service_navi_min a{
	color:#686a6c;
	padding: 1px 2px;
}
#service_navi a:focus,
#service_navi a:hover,
#service_navi a:active
{
	background-color: var(--main-color);
	color: #fff;
}

#service_navi_min a:focus,
#service_navi_min a:hover,
#service_navi_min a:active
{
	background-color: #E7E9EA;
	color: var(--main-color);
	font-weight: normal;
	text-decoration: none;
}

/*  Header-Element Sevice-Bereich  - Suchfeld */
#search_form{
	display: inline-flex;
	width: 95%;
}

#service_search {
	width: 100%;
	margin: 0.8rem 0 0 0;
	text-align: right;
}
#service_search .search_input {
	font-size:1em;
	font-size:0.75rem;
	line-height: 1.6em;
	line-height: 1.4rem;
	background-color: #F0F0F0;
	padding-left: 0.5em;
	border: 1px solid rgba(255, 255, 255, 0.1);
	margin-left: 0.2rem;
	width: 100%;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	font-family:var(--barlow);
}

#service_search .search_button {
	font-size:0;
	line-height: 0;
	margin: 0;
	opacity: 0.5;
	filter: alpha(opacity=50);
	border-top-right-radius: 0.3em;
	border-bottom-right-radius: 0.3em;
}

/*  Header-Element Sevice-Bereich - Sprachauswahl  */
#lang_sel {
	margin: 0.5rem 0 0 0;
	flex-direction: row-reverse;
}
#lang_sel a {
	margin: 0rem 0 0 0.2rem;
}

#lang_sel a img {
	border:1px solid transparent;
}
#lang_sel a ing:focus,
#lang_sel a img:hover,
#lang_sel a img:active {
	border-color: var(--main-color);
}

.lang_sel {

	margin: 0.5rem 0 0 0;
}

.lang_inactive {
	opacity: 0.5;
}
.lang_inactive:focus,
.lang_inactive:hover,
.lang_inactive:active{
	opacity: 0.9;
}

/*  Zusätzliche Strukturbezeichnung   */  
#strukturbezeichnung {
	min-width: 100%;
	border-radius: 0.2em;
	background-color: var(--main-color);
	margin: 5px 0 0 0;
	padding: 0 0 0 0.75rem;
}
#strukturbezeichnung a {
	display: block;
/*	vertical-align: middle;
	height: 1.4rem;
	line-height: 1.4rem;*/
}
#strukturbezeichnung h1{
	font-family:'InfoTextWeb-Regular','Lucida Grande','Lucida Sans Unicode','Lucida Sans',sans-serif;
	font-weight: 600;
	font-size:1em;
	font-size:1rem;
	line-height: 1.4em;
	line-height: 1.1rem;
	color: white;
	padding: 0.2rem 0;
}
#strukturbezeichnung h1:focus,
#strukturbezeichnung h1:hover,
#strukturbezeichnung h1:active{
	color: #CFD3D6;
}

/****************************************************/
/* Einstellungen für Bildschirmbreite kleiner 600px */
/****************************************************/

@media screen and (max-width: 599px) {

#header {
	justify-content: space-between;
}


#service_box2 {
	/*padding: 0 0 0 2.04081632%;*/
	flex: 0 1 24%;
	align-self: auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	box-sizing: border-box;
}

#service_navi_webinfo {
	grid-column: 1 / 2;
	grid-row: 1 / 2;
}
#service_navi_search {
	grid-column: 2 / 3;
	grid-row: 1 / 2;
}

#service_navi_readspeak {
	grid-column: 1 / 2;
	grid-row: 2 / 3;
}

#service_navi_sprachen {
	grid-column: 2 / 3;
	grid-row: 2 / 3;
}

#service_navi_webinfo:hover {
	grid-column: 1 / 3;
	grid-row: 1 / 3;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	background-color: white;
	z-index: 1999;
	white-space: nowrap;
	padding: 0 0 0.1rem 0 ;
}

#service_navi_webinfo_titel {
	display: flex;
	width: 100%;
	padding: 0 0.1rem;
}

#service_navi_webinfo_titel span {
	display: none;
	font-size: 0.7rem;
	line-height: 1rem;
	padding: 0.1rem 0.25rem;
	color:#686a6c;
}

#service_navi_webinfo_titel img {
	display: block;
	height: 75%;
	width: auto;
	opacity: 0.5;
}

#service_navi_webinfo_titel:after {
	display: none;
}

#service_navi_webinfo_liste {
	display: none;
	flex-direction: column;
	margin: 0 0.1rem;
	width: 100%;
}

#service_navi_webinfo_liste a {
	font-size: 0.7rem;
	line-height: 1.1rem;
	padding: 0.05rem 0.2rem;
	color:#686a6c;
}

#service_navi_webinfo_liste a:hover {
	background-color: var(--main-color);
	color: white;
}

#service_navi_webinfo:hover #service_navi_webinfo_titel {
	display: none;
}

#service_navi_webinfo:hover #service_navi_webinfo_liste {
	display: flex;
}

	
#header {
	/* Flex-Box - Einstellungen - Header-Umbruch für Einrichtungsname in eigener Zeile */
	flex-wrap: wrap;
 } 

#header_mainlogo {
	/* Flex-Element - Einstellungen - Logo-Platz auf volle Breite auffüllen */
	order: 0;
	flex: 0 1 70%;
	align-self: auto;
}

/* Logos in der Höhe verkleinern */
#header_mainlogo img {
	height: 65px;
}
#header_ownlogo img {
	margin: 1px 0 0 0;
	height: 51px;
}
/* Optional: Zusatz-Logo ausblenden  */
#header_ownlogo {
	display: none;
}

/* Site-Titel unter die anderen Elemente verlagern - Textelemente horizontal auflisten */
#header_sitetitle {
	/* Flex-Element - Einstellungen - Einrichtungsname in der Reihenfolge ans Ende für Umbruch */
	order: 2;
	flex: 0 1 100%;
	align-self: auto;
}
#header_sitetitle h1 {
	font-size: 1.1rem;
	line-height: 1.2rem;
	margin: 0.2rem 0 0 0.5rem;
	padding: 0;
	/* Flex-Box - Einstellungen - Site-Titel mit inneren horizontalen Textblöcken und bei Bedarf Umbruch */
	flex-direction: row;
	flex-wrap: wrap;
	-ms-flex-pack: start;
	justify-content: flex-start;
	order:2;
}

#header_sitetitle_umbruch h1 {
	font-size: 1.1rem;
	line-height: 1.2rem;
	margin: 0.1rem 0 0 0;
}

#header_sitetitle h1 div {
	padding: 0 0.25rem 0 0;
}

#service_box{
	order: 1;
	flex: 0 1 30%;
	align-self: auto;
	max-width: 30%;
}

/* Service-Textmenü ausblenden */
#service_navi{
	display: none;
	max-height: 0;
}

#service_search input.search_input{
	width: 6rem;
	border-radius: 0.2rem;
	-webkit-appearance: none;
}
	
#service_search input.search_input::-webkit-input-placeholder::before {
	color:#666;
	content:"Suchwort \A";
}

#service_search .search_button {
	width: 1rem;
}

#lang_sel {
	display: inline;
	float: right;
	padding: 0;
}

#lang_sel a {
	margin: 0;
	padding: 2px 0 0 0;
}

#lang_sel a:last-of-type {
	padding: 0;
}

#service_navi_min{
	display: none;
	position: relative;
	z-index: 1000;
	white-space: nowrap;
}

#service_navi_min:hover >ul{
	display: block;
	margin-top: 0.8rem;
}

#service_navi_search_icon {
	display: block;
	height: 75%;
	width: auto;
	opacity: 0.5;
	text-align: right;
}

#service_navi_search_form {
	display: none;
}

#service_navi_search:hover {
	grid-column: 1 / 3;
	grid-row: 1 / 2;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	background-color: white;
	z-index: 1999;
	white-space: nowrap;
	padding: 0 0 0.1rem 0 ;
}

#service_navi_search:hover #service_navi_search_form {
	display: block;
}
#service_navi_search:hover #service_navi_search_icon {
	display: none;
}


#nav_search_block {
	margin: 0 0 0 0.4rem;
	-webkit-box-ordinal-group: 2;
	-moz-box-ordinal-group: 2;
	order: 1;
}

#service_search input.search_input{
	width: 3rem !important;
}

#service_search .search_button {
	width: 22px;
	border-radius: 2px;
}

}


/**************************************************************/
/*   Einstellungen für maximal 750 Pixel Bildschirmbreite     */
/**************************************************************/

@media screen and (min-width: 500px)  and (max-width: 749px) {



#service_navi_webinfo:hover {
	grid-column: 1 / 3;
	grid-row: 1 / 4;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	background-color: white;
	z-index: 1999;
	white-space: nowrap;
	padding: 0 0 0.1rem 0 ;
}

#service_navi_webinfo_titel {
	display: flex;
	width: 100%;
	padding: 0 0.1rem;
}

#service_navi_webinfo_titel:after {
	display: inline-block;
	width: 1rem;
	height: 1rem;
	padding: 0 0 0 0.25rem;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-size: 0.7rem;
	line-height: 1rem;
	font-family: 'Genericons';
	font-weight: normal;
	font-style: normal;
	content: '\f502';
	position: relative;
	top: 0.35rem;
	color:#686a6c;
}

#service_navi_webinfo_titel img {
	display: none;
	height: 75%;
	width: auto;
	opacity: 0.5;
}

#service_navi_webinfo_titel span {
	font-size: 0.7rem;
	line-height: 1rem;
	padding: 0.1rem 0.25rem;
	color:#686a6c;
}

#service_navi_webinfo_liste {
	display: none;
	flex-direction: column;
	margin: 0 0.1rem;
	width: 100%;
}

#service_navi_webinfo_liste a {
	font-size: 0.7rem;
	line-height: 1.2rem;
	padding: 0.1rem 0.25rem;
	color:#686a6c;
}

#service_navi_webinfo_liste a:hover {
	background-color: var(--main-color);
	color: white;
}

#service_navi_webinfo:hover #service_navi_webinfo_titel {
	display: none;
}

#service_navi_webinfo:hover #service_navi_webinfo_liste {
	display: flex;
}


/* Logos in der Höhe verkleinern */
#header_mainlogo img {
	height: 67px;
}
#header_ownlogo img {
	margin: 1px 0 0 0;
	height: 53px;
}
/* Optional: Zusatz-Logo ausblenden  */
#header_ownlogo {
	display: none;
}
	
#header_sitetitle {
	-webkit-box-flex: 1;
	-moz-box-flex: 1;
	flex: 1 1 40%;
}
#header_sitetitle h1 {
	font-size: 1.1rem;
	line-height: 1.15rem;
	margin: 0.1rem 0 0 0.25rem;
	padding: 0 0.3rem 0.6rem 0.1rem;
}

#header_sitetitle_umbruch h1 {
	font-size: 1.1rem;
	line-height: 1.15rem;
	margin: 0.1rem 0 0 0;
}

#header_sitetitle h1 div {
	height: 1.15rem;
	padding: 0 0.25rem 0 0;
}
	
/* Service-Textmenü ausblenden */
#service_navi{
	display: none;
	max-height: 0;
}
		
#service_search input.search_input{
	width: 6rem;
	border-radius: 0.2rem;
	-webkit-appearance: none;
}

#service_search input.search_input::-webkit-input-placeholder::before {
	color:#666;
	content:"Suchwort \A";
}

#service_search .search_button {
	width: 1rem;
}

#lang_sel a {
	padding: 0;
	margin: 0rem 0 0 0.2rem;
}
	     
#lang_sel a:last-of-type {
	padding: 0;
}

#service_navi_min{
	display: none;
	position: relative;
	z-index: 1000;
	white-space: nowrap;
	min-height: 1rem;
}
	
#service_navi_min li{
	font-size: 0.7em;
	line-height: 1rem;
	background-color: #E7E9EA;
	margin: 0.9rem;
}
	
#service_navi_min:hover >ul,
#service_navi_min:hover >ul li {
	display: block;
}

}

/**************************************************************/
/*      Einstellungen für maximal 900 Pixel Bildschirmbreite  */
/**************************************************************/

@media screen and (min-width: 750px)  and (max-width: 1150px) {

/* Logos in der Höhe verkleinern */
#header_mainlogo img {
	height: 75px;
}
#header_ownlogo img {
	margin: 1px 0 0 0;
	max-height: 65px;
}
/* Optional: Zusatz-Logo ausblenden  */
#header_ownlogo {
	/*display: none;*/
}

#header_sitetitle {
	-webkit-box-flex: 2;
	-moz-box-flex: 2;
	flex: 2 1 20%;
}
	
#header_sitetitle h1 {
	font-size: 1.2rem;
	line-height: 1.27rem;
	margin: 0.1rem 0 0 0.25rem;
	padding: 0 0.4rem 1rem 0.2rem;
}
#header_sitetitle_umbruch h1 {
	font-size: 1.2rem;
	line-height: 1.27rem;
	margin: 0.1rem 0 0 0;
}
#header_sitetitle h1 div {
	height: 1.27rem;
	padding: 0 0.25rem 0 0;
}
	
#service_navi li:after{
	content: "|";
	padding: 0 2px;
}
#service_navi li:last-of-type:after{
	content: "";
}

#service_search {
	/*koernst-edit
	FROM:
	margin: 0.2rem 0 0 0;
	TO: */
	display: none;
	max-height: 0;
}

#service_search .search_button {
	width: 28px;
	height: 24px;
	border-radius: 2px;
}

#lang_sel {
	padding: 0;
/*	margin: 0.3rem 0.2rem 0.3rem 0.4rem;*/
}
#lang_sel a {	}   
#lang_sel a:last-of-type {
	padding: 0;
}   

}