
* {
  box-sizing: border-box;
}


body {
  margin: 0;
  font-family: Arial;
  font-size: 17px;
  background-color: rgb(20, 71, 37);
  color:lightgray;
 }

#vidcontainer {
  position: relative;
  width: 80vw;
  height: 100vh;
  margin-left: auto;
  margin-right: auto;
}

#rvideo {
  position: fixed;
  top: 0;
  left: 10vw;
  width: 80vw;
  height: 100vh;
  background: black;
  z-index: -999;
}

#myVideo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

#scrollablecontent {
  position: relative;
  display: block;
  margin-top:100vh;
  background-color:rgba(255, 248, 220,0.5);
  z-index: 5;
}

#navcontainer {
  position: relative;
  display: block;
  z-index: 5;
}

.loginlabel {
  width: 10%;
}

.logininput {
  width: 20%;
}

.formlabel {
  width: 10%;
}

.forminput {
  width: 20%;
}

input.bs4cs {
  width: 100%;
  margin-bottom: 0.2em;
}

.csTableWithRotatedHead {
  width:fit-content;
}

 /* Bilder und Videos */
#grid {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 12px;
    }
.card {
      border: 1px solid #248a57;
      border-radius: 8px;
      padding: 10px;
      /*width: 320px;*/
      background: #fff;
    }

.meta {
      margin-top: 8px;
      font-size: 14px;
      word-break: break-word;
    }

/* contact Seite, das folgende sorgt für die Markierung der benötigten Felder */
input:required {
  border: 3px solid red;
}

/* Medien Admin */
    .actions {
      margin-top: 8px;
      display: flex;
      gap: 8px;
    }
    .actions button,
    .row button,
    .row a {
      cursor: pointer;
    }
    #permissionsModal {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.35);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
      box-sizing: border-box;
    }
    #permissionsModal[hidden] {
      display: none;
    }
    .modal-box {
      background: #fff;
      width: min(900px, 100%);
      max-height: 90vh;
      overflow: auto;
      border-radius: 10px;
      padding: 16px;
      box-sizing: border-box;
    }
    .perm-columns {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      margin-top: 12px;
    }
    .perm-col {
      border: 1px solid #ddd;
      border-radius: 8px;
      padding: 12px;
      min-height: 240px;
    }
    .perm-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 10px;
    }
    .perm-row {
      display: flex;
      align-items: flex-start;
      gap: 8px;
    }
    .modal-actions {
      display: flex;
      gap: 8px;
      justify-content: flex-end;
      margin-top: 16px;
    }
    #permStatus {
      margin-top: 10px;
      min-height: 20px;
    }

    footer .card-body{
      padding: 1px 10px;
    }

    footer .card-text{
      margin-bottom: 0;
    }

    footer .csh6{
      margin: 0;
    }

    footer .card{
      margin-bottom: 0;
    }

    @media (max-width: 768px) {

    .cs-footer-card:first-child,
    .cs-footer-card:last-child {
        display: none;
    }

     /* gesamte Row flacher machen */
    .row {
        padding-top: 6px;
        padding-bottom: 6px;
        min-height: unset;
    }

    .card {
      padding: 4px;
    }


    /* Footer-Cards allgemein kompakter */
    .cs-footer-card {
        padding: 6px 8px;
        margin: 0;
    }

    /* Schriftgröße reduzieren */
    .cs-footer-card,
    .cs-footer-card * {
        font-size: 12px;
        line-height: 1.2;
    }

    /* ggf. Überschriften separat */
    .cs-footer-card h1,
    .cs-footer-card h2,
    .cs-footer-card h3 {
        font-size: 14px;
        margin: 2px 0;
    }


    /* Copyright und links */
    
 /* gesamter Footer unten */
    .footer,
    .footer-bottom,
    .copyright {
        padding: 6px 8px;
        font-size: 12px;
        line-height: 1.2;
        text-align: center; /* optional für bessere Darstellung */
    }

    /* Links wie Impressum / Datenschutz */
    .footer a,
    .footer-bottom a,
    .copyright a {
        padding: 2px 4px;
        margin: 0 4px;
        font-size: 12px;
        display: inline-block; /* verhindert unnötige Höhe */
    }

    /* falls es Listen sind (ul/li) */
    .footer ul,
    .footer li {
        margin: 0;
        padding: 0;
    }

    /* einzelne Textelemente enger machen */
    .footer p,
    .footer-bottom p {
        margin: 2px 0;
    }


    .navbar-brand img {
        height: 30px;
    }

    h2 {
      font-size: 0.8rem;
    }
    h3 {
      font-size: 1.1rem;
    }
    
    main {
    	font-size: 0.7rem;
    }
    
    .training-title {
     	margin-top: 10px;
}