.trix-content .attachment-gallery > action-text-attachment,
.trix-content .attachment-gallery > .attachment {
  flex: 1 0 33%;
  padding: 0 0.5em;
  max-width: 33%;
}

.trix-content .attachment-gallery.attachment-gallery--2 > action-text-attachment,
.trix-content .attachment-gallery.attachment-gallery--2 > .attachment, .trix-content .attachment-gallery.attachment-gallery--4 > action-text-attachment,
.trix-content .attachment-gallery.attachment-gallery--4 > .attachment {
  flex-basis: 50%;
  max-width: 50%;
}

.trix-content action-text-attachment .attachment {
  padding: 0 !important;
  max-width: 100% !important;
}

/*
  custom trix stuff
*/

pre {
  background-color: #007378;
}

trix-toolbar {
  padding: 5px;
  background-color: white;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom: solid lightgray 2px;
}

trix-editor {
  background-color: white;
  min-height: 200px;
  padding: 12px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

textarea:focus, input:focus, trix-editor:focus {
  outline: none;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 */

@font-face {
  font-family: 'Roboto Slab';
  src: url("/assets/roboto_slab-9ac41ecb.ttf") format('truetype')
}
@font-face {
  font-family: 'Roboto';
  src: url("/assets/Roboto/Roboto-Regular-0107e2fd.ttf") format('truetype');
  font-style: normal;
  font-weight: 400;
}
@font-face {
  font-family: 'Roboto';
  src: url("/assets/Roboto/Roboto-Bold-8a0bc223.ttf") format('truetype');
  font-style: bold;
  font-weight: 700;
}

body {
  background-color: #fff;
  color: #333;
  margin: 0;
  padding-top: 10px;
}

body, p, ol, ul, td {
  font-family: Roboto;
  font-size: 14px;
  line-height: 22px;
}

pre {
  background-color: #eee;
  padding: 10px;
  font-size: 11px;
  height: auto;
  overflow: hidden;
}

a:hover {
  text-decoration: underline;
}

th {
  padding-bottom: 5px;
}

td {
  padding: 0 5px 7px;
}

div.field,
div.actions {
  margin-bottom: 10px;
  width: 98%;
}

input#notification_title {
  width: 98%;
}

#notice {
 color:#D3CD24;
  width: 100%;
  color:#ffffff;
  margin-top:10px;
  margin-bottom: 10px;
}

.notice {
  color:#D3CD24;
  width: 100%;
  margin-top:10px;
  margin-bottom: 10px;
  border-radius:5px;
  font-size:17px;
}

.alert {
  color: #EF6D0E;
  width: 100%;
  margin-top:10px;
  margin-bottom: 10px;
  border-radius:5px;
  font-size:17px;
}

.field_with_errors {
  padding: 2px;
  background-color: red;
  display: table;
}

#error_explanation {
  width: 450px;
  border: 2px solid red;
  padding: 7px 7px 0;
  margin-bottom: 20px;
  background-color: #f0f0f0;
}

#error_explanation h2 {
  text-align: left;
  font-weight: bold;
  padding: 5px 5px 5px 15px;
  font-size: 12px;
  margin: -7px -7px 0;
  background-color: #c00;
  color: #fff;
}

#error_explanation ul li {
  font-size: 12px;
  list-style: square;
}

label {
  display: block;
}

/*body {
  background-color: #fff;
  color: #333;
  margin: 33px;
}*/

body, p, ol, ul, td {
  font-family: verdana, arial, helvetica, sans-serif;
  font-size: 13px;
  line-height: 18px;
}

pre {
  background-color: #eee;
  padding: 10px;
  font-size: 11px;
}
a {
  color: var(--main-color);
  text-decoration: none;
}


th {
  padding-bottom: 5px;
}

td {
  padding: 0 5px 7px;
}

div.field,
div.actions {
  margin-bottom: 10px;
}

#notice {
  color: green;
}

.field_with_errors {
  padding: 2px;
  background-color: red;
  display: table;
}

#error_explanation {
  width: 450px;
  border: 2px solid red;
  padding: 7px 7px 0;
  margin-bottom: 20px;
  background-color: #f0f0f0;
}

#error_explanation h2 {
  text-align: left;
  font-weight: bold;
  padding: 5px 5px 5px 15px;
  font-size: 12px;
  margin: -7px -7px 0;
  background-color: #c00;
  color: #fff;
}

#error_explanation ul li {
  font-size: 12px;
  list-style: square;
}

label {
  display: block;
}

/********************************************/
/*         header                           */
/********************************************/

.headerwrapper {
  width:100%;
  height: auto;
  background: #ffffff;
  box-shadow: 0 8px 20px -6px grey;
  -moz-box-shadow: 0 8px 20px -20px black;
  -webkit-box-shadow: 0 8px 20px -20px black;
  -moz-box-shadow: 0 8px 20px -20px black;
  height: 70px;
}

img {
  max-width: 100%;
  width: auto;
  height: auto;
}

.header {
  width: 1200px;
  margin: 0 auto;
  padding:0px;
}

.header a {
  background-color: transparent;
}

.headerimage {
  margin-top:30px
}

.header img{
  border-radius: 0px;
  margin-bottom: 10px;
  width:330px;
  height:auto;
}

/********************************************/
/*         main content                     */
/********************************************/

#content {
  max-width: 1200px;
  width: 94%;
  padding: 0 3%;
  margin: 0 auto;
}

.main {
  flex: 100%;
  background-color: white;
  align-items: center;
}

/********************************************/
/*         content row                      */
/********************************************/

.row {
  width: 93%;
  background-color: white;
  border-radius: 10px;
  margin: 20px;
  padding: 20px;
}

.row h2 {
  font-family: Roboto Slab;
  font-weight: bold;
  font-size: 19px;
}

.inhalt h2 {
  font-family: Roboto Slab;
  font-weight: bold;
  font-size: 19px;
}

.content-box {
  background-color: #f1f1f1;
  border-radius: 10px;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.content-box.small {
  margin: auto;
  width:fit-content;
  min-width: 400px;
}

.content-box p, .content-box li {
  font-size: 16px;
  font-family: Roboto;
}

.content-box h3 {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  background-color: var(--main-color);
  padding: 15px;
  color: white;
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 22px;
  font-family: Roboto Slab;
}

.content-box h4 {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background-color: transparent;
  color: var(--main-color);
  font-weight: bold;
  margin: 0;
  font-size: 19px;
  font-family: Roboto Slab;
}

.content-padding {
  padding: 15px;
}

.small-link-left {
}

.small-link-right {
  float: right;
  margin-right: 10px;
}

span.right {
  float: right;
}

.content-box.content {
  padding: 15px;
}


/********************************************/
/*          Buttons                         */
/********************************************/
#buttons {
  display: flex;
  margin-top: 10px;
  margin-bottom: 10px;
}

.delete_file {
  display: flex;
  flex-direction: row;
}

.delete_file_button {
  margin-left: 5px;
  margin-top: 1px;
  opacity: 0.5;
}

.buttons {
  background-color: var(--main-color);
  width: 35px;
  height: 35px;
  padding: 10px 5px 8px 10px;
  text-align: center;
  border-radius: 5px;
  margin-right: 8px;
  float: left;
}

.buttons a {
  background-color: transparent;
  width: 35px;
  height: 35px;
  }

.buttons:hover {
  background-color: var(--accent-color);
}

span.function {
  background-color: var(--main-color)!important;
  padding: 0px;
  border-radius: 0;
  text-align: center;
  min-height: 60px;
}

.function a {
  background-color: var(--main-color)!important;
  padding: 0px;
  border-radius: 0;
  text-align: center;
  min-height: 60px;
}

.function a:hover {
  background-color: transparent;
}

.function1 {
  background-color: var(--main-color);
  padding: 10px 10px 3px 10px;
  border-radius: 5px;
  text-align: center;
}

.function1 a {
  color:#ffffff;
  text-decoration: none;
  font-family: Roboto;
  font-size:14px;
  font-weight: bold;
}

.function1 a:hover {
  background-color: transparent;
}

#buttons1 {
  display: flex;
}

.buttons1 {
  background-color: var(--main-color);
  width: 100px;
  height: 20px;
  padding: 10px;
  text-align: center;
  border-radius: 5px;
  margin-right: 8px;
  color:#ffffff;
  margin-bottom: 20px;
}

.buttons1 a {
  background-color: transparent;
  width: 35px;
  height: 35px;
  color:#ffffff;
  text-decoration: none;
  font-family: Roboto Slab;
  font-size:14px;
  font-weight: bold;
 }

.buttons1:hover {
  background-color: var(--accent-color);
}

.inhalt {
  background-color: #f1f1f1;
  padding: 15px;
  margin-top: 15px;
  margin-bottom: 15px;
  border-radius: 15px;
}

/********************************************/
/*         grid table for topics            */
/********************************************/

.topic-table {
  display: grid;
  grid-template-columns: 2fr 3fr 1fr 4fr 1fr;
  border-top: 1px solid #f1f1f1;
  border-right: 1px solid #f1f1f1;
  background-color: white;
  margin: 15px;
}

.topic-table > span {
  padding: 8px;
  border-left: 3px solid #f1f1f1;
  border-bottom: 3px solid #f1f1f1;
}

.topic-table > span.title {
  background-color: var(--main-color);
  color:white;
  padding-left: 10px;
  font-family: Roboto;
  font-size: 14px;
  font-weight: normal;
  padding: 8px;
}
.reihe p {
  padding:0;
}

.topic-table > span.function {
  background-color: var(--main-color);
  min-height: 60px;
}

.topic-table > span.function img {
  background-color: var(--main-color);
  color:white;
  padding: 2px;
  height: 40px;
  width: auto;
}

.benutzer {
  font-size: 20px;
  font-family: Roboto-Slap;
  font-weight: bold;
  color: var(--main-color);
}

/*********************************************/
/*         grid table for statistics         */
/*********************************************/

.statistic-table {
  display: grid;
  grid-template-columns: 2fr 3fr 1fr;
  border-top: 1px solid #f1f1f1;
  border-right: 1px solid #f1f1f1;
  background-color: white;
  margin: 15px;
}

.statistic-table > span {
  padding: 8px;
  border-left: 3px solid #f1f1f1;
  border-bottom: 3px solid #f1f1f1;
}

.statistic-table > span.title {
  background-color: var(--main-color);
  color:white;
  padding-left: 10px;
  font-family: Roboto;
  font-size: 14px;
  font-weight: normal;
  padding:8px;
}

.reihe p {
  padding:0;
}

.statistic-table > span.function {
  background-color:var(--main-color);
  min-height: 60px;
}

.statistic-table > span.function img {
  background-color: var(--main-color);
  color:white;
  padding: 2px;
  height: 40px;
  width: auto;
}

/********************************************/
/*         grid table for nachrichten       */
/********************************************/

.nachrichten-table {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr 1fr 1fr;
  border-top: 1px solid #f1f1f1;
  border-right: 1px solid #f1f1f1;
  background-color: white;
  margin: 15px;
}

.nachrichten-table > span {
  padding: 8px 4px;
  border-left: 3px solid #f1f1f1;
  border-bottom: 3px solid #f1f1f1;
}

.nachrichten-table > span.title {
  background-color: var(--main-color);
  color:white;
  padding-left: 10px;
  font-family: Roboto;
  font-size: 14px;
  font-weight: normal;
}

.nachrichten-table > span.function {
  background-color: var(--main-color);
}

.nachrichten-table > span.function img {
  background-color: var(--main-color);
  color:white;
  padding: 2px;
  height: 40px;
  width: auto;
}

/********************************************/
/*         formulars                        */
/********************************************/

form {
  padding: 0 0 0 10px;
}

.button {
  background-color: var(--main-color);
  color: white;
  border-radius: 5px;
  padding: 10px;
  border: none;
  margin-top: 20px;
  min-width: 150px;
  width: fit-content;
  height: auto;
  font-family: 'Roboto';
  font-size: 14px;
  font-weight: bold;
}

label{
  padding-bottom: 5px;
}

.field{
  margin-bottom: 15px;
}

.button-disabled {
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  border: solid 2px darkgrey;
  color: var(--main-color) !important;
  text-decoration: none;
  padding: 6px 12px;
}

a.button-disabled:hover {
  color: var(--main-color) !important;
  text-decoration: none;
  background: #4479BA;
  border: solid 1px #20538D;

  /* optional different shadow on hover
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.7);
  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 1px rgba(0, 0, 0, 0.4);
  -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 1px rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 1px rgba(0, 0, 0, 0.4);
  */
 }


.button_to input {
  width: auto;
  height: 40px;
  border-width: 0;
  background-color: var(--accent-color);
  padding: 10px 25px 10px 25px;
  border-radius: 5px;
  color: #ffffff;
  font-size: 16px;
  float: right;
  font-family: 'Roboto';
  font-weight: bold;
}

.button_to input:hover {
  background-color: var(--main-color);
  cursor: pointer;
  transition: all 0.4s;
}


/********************************************/
/*         content                          */
/********************************************/

.small-content-right{
  font-style: italic;
  color: grey;
  display: block;
  text-align: right;
  margin-bottom: 10px;
}

/********************************************/
/*         footer                           */
/********************************************/

#footerwrapper {
  width:  100%;
  height: auto;
  background-color: var(--main-color);
  overflow: hidden;
}

.footer {
  padding: 30px 30px 25px 30px;
  text-align: center;
  background: transparent;
}
.footer ul {
  margin: 0;
  padding: 0;
}

.footer ul li {
  color: #ffffff;
  list-style: none;
  padding-bottom: 7px;
}

.footer ul li a{
  color: #ffffff;
 }
.footer ul li a:hover{
  text-decoration: underline;;
}

hr {
  border-color: #f1f1f1;
  border-style: solid;
  border-width: 3px 0 0 0 !important;
}


/********************************************/
/*         Responsive                       */
/********************************************/
@media only screen and (max-width: 1200px){
  .header {
    width: 100%;
  }
 .content-box {
    width: 100%;
  }
  .headerimage img {
    width: 100%;
    height: auto;
  }
  /* #content {
    width: 100%;
    height: auto;
  }*/
  .row {
   width: 90%;
  }
}

@media only screen and (max-width: 850px) {
  .headerwrapper {
    height: 55px;
  }

  .header {
    width: 100%;
  }

  .header img {
    width: 290px;
    height: auto;
  }

  .headerimage img {
    width: 100%;
    height: auto;
    margin-top: 0;
  }

  .row {
    width: 80%;
  }

  .small-content-right {
    text-align: left;
  }

  .topic-table {
    display: grid;
    grid-template-rows: auto auto auto auto auto;
    grid-template-columns: 100%;
  }

  .topic-table > span.function img {
    width: 50px;
  }

  .topic-table > span.function {
    background-color: var(--main-color);
  }

  .nachrichten-table > span.function img {
    width: 50px;
  }

  .nachrichten-table > span.function {
    background-color: var(--main-color);
  }

  .leer {
    display:none;
  }

  .function {
    min-height: auto;
  }

  .content-padding img {
    width: 100%;
    height: auto;
  }
}

.preview h1,
.preview h2,
.preview h3,
.preview h4,
.preview h5,
.preview h6 {
    border: none;
    color: black;
    background: none;
    padding: initial;
    margin: 1em 0;
    font-family: Roboto Slab;
    font-size: initial;
  }
/**** Livias Änderungen ****/

.button_to [type="submit"] {
  width: 100px;
  background-color: var(--main-color);
  border: none;
  color: #fff;
  height: 40px;
  border-radius: 5px;
  font-size: 18px;
  margin-top: 15px;
  font-family: 'Roboto';
}

 .headerimage img {
  border-radius: 8px;
  width: 100%;
 }
