@font-face {
  font-family: 'Source Sans';
  font-style: normal;
  font-weight: 200 900;
  src: url('/assets/fonts/sourcesans3-variablefont-wght.ttf') format('truetype');
}

@font-face {
  font-family: 'Source Sans';
  font-style: italic;
  font-weight: 200 900;
  src: url('/assets/fonts/sourcesans3-italic-variablefont-wght.ttf') format('truetype');
}

* {
  outline: 0!important;
  border: 0;
  /* padding: 0; nicht verwenden, da sonst aufzählungen in Textfeldern links heraushängen */
  margin: 0;
  box-sizing: border-box; /* Größen inkl. Padding */
  color: #000;
  font-family: 'Source Sans', sans-serif;
  font-size: 15px;
}

body {
  overflow-x: auto;
  overflow-y: scroll;
  background-color: #fff;
}

p {
  margin-bottom: 12px;
}

a {
  text-decoration: none;
  color: #3f7ab9;
}

a:hover {
  color: #5e8b52;
}

h1 {
  padding: 2px 16px 4px 6px;
  margin-bottom: 16px;
  color: #eee;
  background-color: #222;
  font-size: 20px;
  font-weight: 600;
  display: inline; 
}

h2 {
  padding: 2px 16px 4px 6px;
  margin-bottom: 8px;
  background-color: #eee;
  font-size: 17px;
  font-weight: 600;
  display: inline-block;
  clear: both;
}

a h2 {
  color: #fff;
  background-color: #3f7ab9;
}

a:hover h2 {
  background-color: #5e8b52;
}

small {
  font-size: 13px;
}

textarea {
  resize: none;
}

/* Grundlayout */

.oben {
  position: relative;
  left: calc(50% - 384px);
  top: 0;
  width: 768px;
  min-height: 132px;
}

.obenlinks {
  left: 0;
  top: 0;
  width: 600px;
  min-height: 132px;
  padding: 16px 0 0 16px;
  margin-right: 16px;
  background-color: #fff;
}

.ausklapper {
  display: none;
}

.obenrechts {
  position: absolute;
  left: 600px;
  top: 16px;
  width: 152px;
  height: 132px;
  padding: 16px 0 0 16px;
  background-color: #fff;
  background-image: url('/assets/system/logo.png');
  background-position: top;
  background-size: 90%;
  background-repeat: no-repeat;
}

.inhalt { /* eigentlicher Inhaltsbereich */
  position: relative;
  left: calc(50% - 384px);
  top: 32px;
  width: 768px;
  padding: 16px 0 0 16px;
  background-color: #ccc;
}

.unten {
  position: relative;
  left: calc(50% - 384px);
  top: 48px;
  width: 768px;
  height: 64px;
  padding-left: 16px;
}

/* Inhalte */

.kasten {
  padding: 8px 8px 0 8px;
  margin: 0 16px 16px 0;
  vertical-align:top;
  background-color: white;
  display: inline-block;
}

.kastennebenbeitrag { /* Infos in zweispaltigem Layout mit beitrag auf der linken Seite halten */
  max-width: 752px;
  display: inline-block;
}

.kasten1x1 {
  /* nicht implementiert*/
  width: 360px;
  height: 360px;
}

.kasten2x2, .kasteninput, .kastenbeitrag {
  width: 736px;
}

.kastenbild {
  width: 720px;
  margin-bottom: 8px;
  background-size: contain;
  background-position: left;
  background-repeat: no-repeat;
  border: 1px solid #ddd;
}

.kasten2x2 .kastenbild {
  height: 480px;
}

.kasteninput .kastenbild {
  height: 480px;
}

.kastenbeitrag {
  border: 1px solid #5e8b52;
}

.content {
  width: calc(100% - 16px);
}

/* Einzelelemente */

.menuel {
  padding: 3px 17px 5px 7px;
  margin: 0 16px 16px 0;
  color: #666;
  font-size: 17px;
  font-weight: 600;
  display: inline-block;  
}

.menueloben {
  color: #ddd;
  background-color: #3f7ab9;
}

a.menueloben {
  color: #fff;
}

a.menueloben:hover {
  background-color: #5e8b52;
}

.menuelunten {
  color: #999;
  background-color: #222;
}

a.menuelunten {
  color: #fff;
}

a.menuelunten:hover {
  background-color: #3f7ab9;
}

.logounten {
  height: 30px;
  padding-right: 16px;
  float:right;
}

.kasteninput ol {
  margin-top: 8px;
  list-style: none;
  counter-reset: counter;
}
.kasteninput ol li {
  margin-bottom: 8px;
  counter-increment: counter;
}

.kasteninput ol li::before {
  content: counter(counter) '. ';
  color: #3f7ab9;
  font-size: 36px;
  font-weight: 700;
  line-height: 19px;
}

.schatten {
/*  box-shadow: 0 2.8px 2.2px rgba(0, 0, 0, 0.034), 0 6.7px 5.3px rgba(0, 0, 0, 0.048), 0 12.5px 10px rgba(0, 0, 0, 0.06); */
}

.beitragblock {
  width: 720px;
  padding: 16px 16px 8px 16px;
  margin-bottom: 8px;
  background-color: #eee;
}

.beitraginput {
  width: 256px;
  height: 30px;
  padding: 4px;  
  border: 1px solid #aaa;
  display: inline-block;
}

img.beitraginput {
  padding: 0px;  
}

.beitraginput:focus {
  border-color: #5e8b52;
/*  box-shadow: 0 2.8px 2.2px rgba(0, 0, 0, 0.034); */
}

.beitraginputbreit {
  width: 512px;
}

.beitraginputhoch {
  height: 288px;
}

img.beitraginputhoch {
  height: 384px;
}

.beitraginputtext {
  width: 164px;
  margin-right: 10px;
  padding-bottom: 3px;
  vertical-align: bottom;
  border-bottom: 1px solid #aaa;
  font-weight: 600;
  display: inline-block;
}

.beitragbutton {
  min-width: 144px;
  height: 30px;
  padding: 0 8px 0;
  color: #222;
  background-color: #fff;
  border: 1px solid #222;
  text-align: left;
}

.beitragbutton:hover, #speichern.beitragbutton:hover {
  color: #3f7ab9;
  border-color: #3f7ab9;
}

#speichern.beitragbutton {
  border-color: #5e8b52;
}

/* Medienspezifisch */

@media only screen and (min-device-width: 1024px) { /* PC */
.gesamt {
  min-width: 798px;
}
}

@media only screen and (min-width: 1600px) { /* PC zwei Spalten */
.oben, .inhalt, .unten {
  left: calc(50% - 760px);
  width: 1520px;
}

.obenlinks {
  left: 768;
  width: 1352px;
}

.obenrechts {
  left: calc(50% + 592px);
}

.kasten2x2 {
  height: 736px;
}
}

@media only screen and (max-device-width: 1023px) { /* Mobilgeräte */
.oben, .inhalt {
  left: 0;
}
}

@media only screen and (max-device-width: 639px) { /* kleine Mobilgeräte */
* {
  font-size: 22.5px;
}

h1 {
  font-size: 30px;
}

h2,.menuel, .menuel a {
  font-size: 25.5px;
}

small {
  font-size: 19.5px;
}

.kasteninput ol li::before {
  font-size: 54px;
}

.ausklapper {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 72px;
  height: 72px;
  color: #fff;
  background-color: #3f7ab9;
  font-size: 60px;
  font-weight: 700;
  text-align: center;
  line-height: 70px;
  cursor: pointer;
  display: block;
}

#menu {
  position: absolute;
  left: 0px;
  top: 120px;
  width: 616px;
  padding-left: 16px;
  z-index: 100;
  background-color: #fff;
/*  box-shadow: 0 2.8px 2.2px rgba(0, 0, 0, 0.034), 0 6.7px 5.3px rgba(0, 0, 0, 0.048), 0 12.5px 10px rgba(0, 0, 0, 0.06); */
  display: none;
}
}