*,td {
  font-family: Helvetica, Arial, sans-serif;
  font-size:11px;
  line-height:150%;
}
div.page {
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:60px;
  overflow:auto;
  padding:16px;
}
div.pagepop { /* Termine Popup */
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom: 0;
  overflow:auto;
  padding:16px;
}
div.navi {
  position:absolute;
  bottom:0;
  left:0;
  height:60px;
  width:100%;
  min-width:760px;
  overflow:auto;
  background-color:#000;
  padding:0;
}
div.navi span {
  display:block;
  margin:10px 0 0 60px;
}
div.navi a {
  display:block;
  float:left;
  margin-right:30px;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 0.1em;
  color: #ffffff;
}
div.navi a:active { color: #c00;
}
div.navi a:visited { color: #fff;
}
div.navi a:hover { color: #c00;
}
div.navi a.fblink {
  display:inline-block;
  margin:0;
  float:none;
  position: absolute;
  right: 60px;
  top: 1.2rem;
}
div.logo a { 
  color:#000;
  text-decoration: none;
  font-weight: bold;
  text-transform: lowercase;
}
div.logo a:active { color: #c00;
}
div.logo a:visited { color: #000;
}
div.logo a:hover { color: #c00;
}
div.phead {
  /* margin:30px 0 30px 320px;
  */
  margin:0 0 30px 33%;
}
div.cont a,
div.cleft a,
div.cleftlow a { 	
  color:#666;
  text-decoration:none;
  margin:1px;
  /* makes ff outline look better */
}
div.cont a:active,
div.cleft a:active,
div.cleftlow a:active { color: #c00;
}
div.cont a:visited,
div.cleft a:visited,
div.cleftlow a:visited { color: #666;
}
div.cont a:hover,
div.cleft a:hover,
div.cleftlow a:hover { color: #c00;
}
div.cleft {
  clear:both;
  float:left;
  /* width:256px;
  */
  width:27%;
  text-align:right;
  margin-bottom:1em;
  overflow:hidden;
}
div.cleftlow {
  clear:both;
  float:left;
  width:27%;
  text-align:right;
}
div.cright {
  /* margin:0 0 0 290px;
  */
  margin:0 10% 0 30%;
  border-left:1px solid #000;
  /* padding-left:29px;
  */
  padding-bottom:1.5em;
  padding-left:3%;
  text-align:justify;
}
div.crightlow {
  margin:0 10% 0 30%;
  border-left:1px solid #000;
  padding-bottom:0;
  padding-left:3%;
  text-align:justify;
}
div.cright174 {
  height:174px;
  margin:0 10% 0 30%;
  border-left:1px solid #000;
  padding-bottom:1.5em;
  padding-left:3%;
  text-align:justify;
}
div.cheaddiv {
  width:100%;
  overflow:visible;
  margin-bottom:16px;
}
/* 
div.cright img.chead,div.cright174 img.chead {
  margin:30px 0 30px 320px;
  display:block;
  margin:0;
} 
*/
div.cheaddiv img.chead {
  /* margin:30px 0 30px 320px;
  */
  display:block;
  margin:0;
}
ul {
  padding:0;
  margin:0;
  list-style-type:none;
}
ul li {
  margin:0 0 0.5em 0;
  padding:0 0 0 18px;
  background:url(gif/li.gif) 0% 0.34em no-repeat;
}

/* =============================================
   MOBILE LAYOUT
   ============================================= */

@media (max-width:767.8px) {
/* emulate grid for rows outside .cont */
  .page > .cleft {
    display:none;
  }
  .page > .cright {
    width:70%;
    left:30%;
    position:relative;
    border-left:solid black 1.25px !important;
  }
  .cont {
    display: grid;
    grid-template-columns: 30% 70%; /* Linke Spalte: 30%, rechte Spalte: 70% */
    gap: 0; /* Kein Abstand zwischen den Spalten */
    align-items: start; /* Ausrichtung oben (optional) */
    background: linear-gradient(to right, #fff 0%, #fff 30%, #000 30%, #000 calc(30% + 1px), #fff calc(30% + 1px), #fff 100% );
  }

  /* .cleftlow und .crightlow als Grid-Items behandeln */
  .cleft,.cleftlow {
    grid-column: 1; /* Immer in der ersten Spalte (30%) */
    width:auto !important; /* reset width */
    border-right:solid white 5px !important;
    margin-bottom:0 !important;;
  }
  .cleft {
    padding-bottom: 0.5em;
  }
  
  .cright,.crightlow,.cright174 {
    grid-column: 2; /* Immer in der zweiten Spalte (70%) */
    margin-left:0 !important; /* reset 30% margin */
    padding-left:5px !important;
    border-left:none !important;
  }
    
  *, td {
    font-size:13px;
  }
  div.cright174, div.cright {
    margin-right:unset;
  }
  .cont .cleft:first-child img {
    width:150%;
    height:auto;
    position:relative;
    left:-35%;
  }
  .cont .cright > img {
    width:100%;
    height:auto;
  }
  div.cright174 {
    height: auto;
  }
  .cheaddiv .chead {  
    max-width:100%;
  }
}
@media (max-width:575.5px) {
  div.cright, div.cright174 {
    /* unjustify */
    text-align: left;
  }
}

/* =============================================
   BURGER NAVIGATION - ALLGEMEINES
   ============================================= */

.menu-toggle-checkbox {
  display: none;
}

.menu-toggle-label {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  padding: 16px;
  background: white;
  z-index: 1000;
  width: 27px;
  height: 21px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle-label span {
  display: block;
  width: 27px;
  height: 3px;
  background-color: #000;
  transition: transform 0.2s, opacity 0.2s;
  margin:0 !important;
}

/* =============================================
   BURGER NAVIGATION - MOBILE
   ============================================= */

@media (max-width: 767.8px) {
  div.page, div.pagepop {
    bottom:0 !important;
  }

  /* Navi-Balken oben fixiert, schmal */
  div.navi {
    position: fixed;
    bottom: auto;
    top: 0;
    height: 50px;
    min-width: 0;
    width: 100%;
    overflow: visible;
    background-color: #fff;
    z-index: 999;
    background: none;
  }

  /* Burger einblenden */
  .menu-toggle-label {
    display: flex;
  }

  /* Nav-Links ausgeblendet */
  div.navi span.nav-links {
    display: none;
    position: fixed;
    top: 54px;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 8px 0 16px 0;
    margin: 0;
    z-index: 998;
    border-top: 2px solid #999;
  }

  /* Links untereinander, schwarz auf weiss */
  div.navi span.nav-links a {
    float: none;
    display: block;
    margin: 0;
    padding: 10px 20px;
    color: #000;
    border-bottom: 1px solid #aaa;
    font-size: 13px;
    line-height: 14px;
  }

  div.navi span.nav-links a:visited { 
    color: #000;
  }
  div.navi span.nav-links a:hover { 
    color: #c00;
  }

  /* Facebook-Link einreihen */
  div.navi a.fblink {
    position: static;
    display: block;
    float: none;
    margin: 0;
    padding: 10px 20px;
  }

  /* Checkbox-Hack: Nav einblenden */
  .menu-toggle-checkbox:checked + div.menu-toggle-container + span.nav-links {
    display: block;
  }

  /* X-Animation */
  .menu-toggle-checkbox:checked + div.menu-toggle-container .menu-toggle-label span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-toggle-checkbox:checked + div.menu-toggle-container .menu-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle-checkbox:checked + div.menu-toggle-container .menu-toggle-label span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/*##############################
  this should go to admin.css
###############################*/

table.vqpreview {
  display:table;
  margin: 0;
  padding:6px;
  border:1px solid #666;
  background-color:#ccc;
  /* filter:alpha(opacity=75);
  */
}
table.vqpreview tr {
  display:table-row;
}
table.vqpreview td {
  display:table-cell;
  color:#666;
  font-family:Arial,Helvetica,sans-serif;
  font-weight:normal;
  font-style:normal;
  font-size:1em;
  line-height:1.25em;
  /* filter:alpha(opacity=100);
  */
}
table.vqprevedit {
  border:0;
  color:#000;
  background-color:#fff;
  /* filter:alpha(opacity=75);
  */
}
table.vqprevedit td {
  color:#000;
  /* filter:alpha(opacity=100);
  */
}
table.vqpmenu {
  display:table;
  width:100%;
  margin:0;
  padding:0;
  border:1px solid #666;
  border-top:0;
  background-color:#f3f9ff;
}
table.vqpmenu tr {
  display:table-row;
}
table.vqpmenu td {
  display:table-cell;
  height:39px;
  vertical-align:middle;
  overflow:hidden;
}
table.vqpmenu form {
  margin:0;
  border:0;
}
table.vqpmenu input { border:#f3f9ff solid 1px;
  padding:0;
}
table.vqpmenu input:hover { border:#000 dotted 1px;
  padding:0;
}
table.vqpmenu input:focus { border:#09f solid 1px;
  padding:0;
}
div.vqedit textarea {
  margin:0;
  padding:0;
  width:100%;
  height:100%;
  min-width:400px;
  background-color:#fff;
  border:1px solid #666;
  color:#000;
}
div.vqedit textarea:focus {
  border-style:dotted;
}
