/* Definitions for mobile and smaller devices */

/* Devices smaller than width of content area */
@media only screen and (max-width:907px) {
  div#document {
    width: 100%;
  }

  div#logostart {
    width:128px;
    height:123px;
    background-size: 93px 108px;
    margin-left:15px;
  }
  
  div#news {
    margin-right: 15px;
    margin-left: auto;
    margin-bottom: 0px;
    margin-top: -59px;
  }

  div#startcontentcol1, div#startcontentcol2, div#startcontentcol3, div#contentcol1, div#contentcol2 {
    display: block;
    width: 90%;
    margin-left: 28px;
  }

  div#startcontentcol1, div#startcontentcol2 {
  	border-bottom: solid 2px white;  
    margin-bottom: 20px;
  }
  
  div#startcontentcol1 div.ce-bodytext, div#startcontentcol2 div.ce-bodytext, div#startcontentcol3 div.ce-bodytext, div#contentcol1 .frame, div#contentcol2 .frame {  
    margin-left: 15px;
  	margin-right: 15px;
  }
  
}

/* Tablets and large/normal mobiles */
@media only screen and (max-width:635px) {
  div#logo {
  	width: 75px;
    height: 73px;
    top: 85px;
    background-size: 55px 65px;
  }
  
  div#header {
  	height:30px;  
  }

  div#image {
	background-color: lightgray;
    background-size: 100%;
    height: 176px;
  }
  
  div#image.imagestart {
  	background-color: white;  
  }
  
  div#mobilemenu {
    display: unset;
    top: -20px;
    position: relative;
    text-align: right;
  }
  
  div.mobilesearch {
    content: url(/fileadmin/img/search.png);
    height: 25px;
    background-color: #932c87;
    background-repeat: no-repeat;
    width: 25px;
    border-radius: 4px;  
    float: right;
    margin-left: 5px;
  }
  
  div#mobilesearchfield {
  	float: right;  
    margin-top: -4px;
  }
  
  div#mobilesearchfield input.tx-indexedsearch-searchbox-button {
    width: 50px;
  }
  
  div#mobilesearchfield input.tx-indexedsearch-searchbox-sword {
    width: 100%;
  }
  
  div.mobilemenu { 
    display: block;
    background: #932c87; 
    width: 25px; 
    height: 25px; 
    position: relative; 
    margin-right: 15px;
    float: right;
    border-radius: 4px; 
    margin-left: 5px;
  }

  input#mobilemenustate {
    display:none
  }
  
  .line { 
    position: absolute; 
    left:3px;
    height: 3px; 
    width: 19px; 
    background: #fff; border-radius: 2px;
    display: block; 
    transition: 0.5s; 
    transform-origin: center; 
  }

  .line:nth-child(1) { 
    top: 4px; 
  }
  .line:nth-child(2) { 
    top: 11px; 
  }
  .line:nth-child(3) { 
    top: 18px; 
  }

  div.mobilemenu.checked .line:nth-child(1){
    transform: translateY(7px) rotate(-45deg);
  }

  div.mobilemenu.checked .line:nth-child(2){
    opacity:0;
  }

  div.mobilemenu.checked .line:nth-child(3){
    transform: translateY(-7px) rotate(45deg);
  }
  
  div#topmenu {
    display: none;
    height: 0px;
    margin-top: 20px;
  }
  
  div#topmenu ul.menu {
  	background: white;
  }
  
  div#topmenu ul.menu>li {
    display: block;
    float: none;
    margin-bottom: 5px;
    margin-right: 0px;
    margin-left: auto;
    z-index: 20;
  }
  
  div#topmenu ul.menu>li:hover{
  	z-index: 50;
  }
  
  div #content {
    padding-top: 0px;
  }
  
  div#contentheader {
    display: flex;
  }
  
  div#searchaddress {
    display:none;
  }
  
  div#news {
    width: 55%;
  }
  
  div#newsheader {
    font-size: 1.2em;
  }
  
  div#footer {
    display: none;
  }
  
  .menuopacity {
    opacity: 0.2;
  }
  div.tx-powermail fieldset.powermail_fieldset_3 div.powermail_field {
    width: 100%;
  }
  
  div.tx-powermail fieldset.powermail_fieldset_3 div.powermail_field textarea.powermail_textarea {
    width: 45%;
  }
  
  
  div.tx-powermail div.powermail_field input.powermail_submit, div.tx-powermail div.powermail_field input.powermail_reset {
    margin: 10px 25px;
  }

  div.courselist {
    grid-template-columns: 35px repeat(2, auto ) ;
  }

  div.coursecol-select {
	grid-row-start: span 3;
  }
  
  .coursecol-span {
    grid-column: 1 / span 3;
  }
}

/* Small mobiles */
@media only screen and (max-width:400px) {
  div#logostart {
    display: none;
  }
  
  div#news {
    margin-right: auto;
    width: 80%;
  }
  div#news {
    min-height: 100px;
    height: 150px;
  }
  
  div#news p.moremobile {
    display:block;
  }
  
  div#news p.nomobile {
    display: none;
  }
  
  div#contentheader {
	background-color: lightgray;
    border: 0px solid lightgray;
  }
}

/* Rellay small devices */
@media only screen and (max-width:320px) {
  div#logo {
  	top: 55px;
  }
  
  div #content {
    margin-top: -35px;
  }
  
  div.tx-powermail label.powermail_label {
    float: none;
  }
  

}