/*------------------------------------------------------------------
  
  [Library]
   
  Project:     CAS Campus V5
  Version:     1.0
  Last change: 20/04/12
  Assigned to: Thomas Gehrig
  
  Primary use: CSS snippets, reusable classes, 
  
  
  Table of contents
  -----------------
  
  +Basic Snippets
  +Form Elements
  +layoutmanager
    +Gridlayout
    +Borderlayout
    +Boxlayout
    +Columnlayout
  +Position Help Classes
    
-------------------------------------------------------------------*/

strong,b {
  font-weight: bold;
}

em, i {
  font-style: italic;
}


.clearfix:after {  /* Firefox, IE8, Opera, Safari, ... */
  content: ".";  
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}
 
*+html .clearfix { /* IE7 */
  display: inline-block;
}

.disabled {
	/*display: none;*/
}

.float-left {
  float: left;
}

.float-right {
  float: right;
}

.clear-left {
	clear: left;
}

.clear-right {
	clear: right;
}

.clear-both {
	clear: both;
}

.noscript {
	color: red;
}

.hide-text {
  text-indent:-9999px;
}

.bold {
	font-weight: bold;
}

.hidden {
	visibility: hidden;
}

.none {
	display: none;
}



/* Links */

/*
.link-text,
.link-image {
  display: block;
}
*/

.link-external { /* external links */
  padding-right: 15px;
  background: url(../images/v5-icon-sprite.png) no-repeat right -1319px;
	display: inline;
}

a[href$=".pdf"] { /* pdfs */
  padding-right: 20px;
  background: url(../images/v5-icon-sprite.png) no-repeat right -1351px;
}

a[href^="mailto:"] { /* emails */
  padding-right: 20px;
  background: url(../images/v5-icon-sprite.png) no-repeat right -1387px;
}











.op30 {
  filter: alpha(opacity=30); /* IE 6 and 7 */
  -moz-opacity: 0.3; /* older versions of FX */
  opacity: 0.3;
}


textarea { /* hide Scrollbar IE < 8 */
  overflow:auto; 
}

input[type=text]:focus { /* remove outline for webkit browsers */
  outline: none;
}

a[href], input[type=submit], input[type=image], label[for], select, button, .link, .pointer, .select, .radio, .checkbox {
  cursor: pointer;
}

.hidden-selection-column {
	display: none;
}

input[type=text], .input, .text, .mceEditor, .tinymce {
	cursor: text;
}


/* Spacer */

.spacer-tiny {
  padding: 0.75em;
}

.spacer-normal {
  padding: 1em;
}

.spacer-large {
  padding: 1.25em;
}



/* +Layoutmanger
------------------------------------------------------------------ */



/* +Gridlayout
-------------------------------*/

/* TODO: Layoutmanager überarbeiten! Struktur, CSS, Klassenbezeichnung, etc. */


.gridlayout {
	position: relative;
	display: block;
	width: auto;
}

.gridlayoutcolumn1 {
	float: left;
	width: 100%;
	position: relative;
}

.gridlayoutcolumn2 {
	float: left;
	width: 50%;
	position: relative;
}

.gridlayoutcolumn3 {
	float: left;
	width: 33%;
	position: relative;
}

.gridlayoutcolumnvalue,
.gridlayoutcolumnlabel {
	/*float: left;*/
	position: relative;
	display: inline-block;
	vertical-align: middle;

}

.gridlayoutcolumnlabel {
	width: 15em;
	margin-right: 2%;
	text-align: right;
}

.gridlayoutcolumnvalue .text {
	/*width: 20em;*/
}

.gridlayoutcolumnvalue .select {
	min-width: 10em;
}



/* +Boxlayout
-------------------------------*/


.boxlayout {}

.boxlayout-vertical {
}

.boxlayout-horizontal {}



/* +Columnlayout
-------------------------------*/


.columnlayout {}

.layoutcolumn {
	float: left;
}

.col1 {
  width: 100%;
}

.col2 {
  width: 50%;
}



/* +Position layout
-------------------------------------------------------------------*/



.fixed-absolute {} /* identifier class */

.fixed-absolute-rendered {
  position: absolute;
}

.fixed-relative {} /* identifier class */ 

.fixed-relative-rendered {
  position: relative;
}

.max-height {} /* identifier class */

.max-height-rendered {
  bottom: 0;
}

.scrollable {} /* identifier class */

.scrollable-rendered {
  overflow: auto;
}

.last-linebox {} /* identifier class */

.last-linebox-rendered {
  right: 0;
}

.body-rendered {
  overflow-x: auto;
  overflow-y: hidden;
}

.flexible-column { /* identifier class */
  overflow: hidden;
}

.flexible-column-rendered {}

/**
* Responsivness
**/

@media only screen and (device-width: 980px),
       only screen and (max-width: 980px) {

	div.layoutcolumn {
    	width: 100%;
    	width: -moz-available;
    	width: -webkit-fill-available;
    	width: fill-available;
    }

    .columnlayout {
    	display: grid;
    }

    div.gridlayout div.gridlayoutcolumn2 {
    	width: auto;
    }

    div.gridlayout div.gridlayoutcolumn2 div.layoutelement-inner {
		width: 100%;
		width: -moz-available;
		width: -webkit-fill-available;
		width: fill-available;
    }

    div.gridlayout div.gridlayoutrow {
    	display: grid;
    }
}



