
.height100px {
    height:100px !important;
}

body{
    background-color: var(--background-1) !important;
}

.searchable-container {
  position: relative;
  display: inline-block;
}

.searchable-input {
  position: absolute;
  top: -1.8em; /* oder anpassen, je nachdem wo das Feld erscheinen soll */
  left: 0;
  width: 100%;
  opacity: 0.8;
  display: none;
  z-index: 9999; /* Hoch genug, damit es wirklich oben liegt */
  box-sizing: border-box;
}

select.searchable {
  min-width: 200px; 
}



.logo-container{
    display: inline-block;
    height: 70px;
    width: 75px;
    background: var(--logo);
    background-size: cover;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.italic{
    font-style:italic;
}

.encryption-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: rgba(238, 77, 46,0.5); /* Blau, anpassbar */
    color: white;
    border: solid 1px rgba(200,200,200,1);
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

/* Hover- und Active-Effekt */
.encryption-button:hover {
    background-color: rgba(238, 77, 46,0.8);
}

.encryption-button:active {
    transform: scale(0.9);
}

/* Nur auf Mobilgeräten anzeigen */
@media (min-width: 768px) {
    .encryption-button {
        display: none;
    }
}


.inline-checkbox{
    vertical-align:middle;
    display: inline-block;
    margin: 0px 5px;
}

.grayedout{
    opacity: 0.7;
    background-color: rgba(100,100,100,0.5);
}

.childborder {
  border-style: solid;
  border-width: 1px;
  border-radius: 2px;
  background-color: rgba(255,255,255,0.2);
  margin: 5px;
  padding: 5px;
}

.logo-container > img {
    height:100%;
    width: auto;
}

.site-title{
    display: inline-block;
    margin: 0px 20px;
    vertical-align:middle;
}

.site-title > a,.site-title > a:hover,.site-title > a:active,.site-title > a:visited {
    color: var(--text-3);
}

.animationError {
    animation-name: error;
    animation-duration: 1.5s;
}

.animationSuccess {
    animation-name: success;
    animation-duration: 1.5s;
}

.none-option{
    color: red;
}

.sub-element-divider{
    display: inline-block;
    margin: 5px 0px;
    float: left;
}

.content-container {
    min-height: calc(100vh - 240px);
    padding: 25px 50px;
}

.table-cell{
    display: table-cell !important;
    vertical-align: middle;
    padding:2px 4px;
}

.qr-printbox > div {
    display: inline-block;
    margin: 20px;
}

.qr-printbox > div > div {
    text-align: center;
}
.centered{
    text-align:center;
}

.crosshover {
  position: relative; /* Macht das Element zum Positionierungs-Referenzpunkt */
}

.crosshover::after {
  content: '✖'; /* Unicode für das X-Symbol */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 124px; /* Größe des Symbols */
  color: rgba(1000, 0, 0, 0.5); /* Halbtransparentes Schwarz */
  opacity: 0; /* Unsichtbar, bis gehovered wird */
  transition: opacity 0.3s ease;
  pointer-events: none; /* Stellt sicher, dass das Symbol nicht klickbar ist */
}

.crosshover:hover::after {
  opacity: 1 !important; /* Symbol erscheint beim Hover */
}


.table-row{
    display: table-row !important;
    background: rgb(255,255,255);
    background: -moz-linear-gradient(0deg, rgba(255,255,255,0.05) 0%, rgba(100,100,100,0.2) 100%);
    background: -webkit-linear-gradient(0deg, rgba(255,255,255,0.05) 0%, rgba(100,100,100,0.2) 100%);
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.05) 20%, rgba(100,100,100,0.1) 80%, rgba(100,100,100,0.1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#646464",GradientType=1);
}

.table{
    /*border-spacing: 2px;*/
}

.toggle-password{
    user-select: none;
    margin-left: -34px;
    padding-right: 10px;
    font-size: 18px;
}
.verticaltext {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  position: relative; /* Für absolute Positionierung des Inhalts */
  width: auto; /* Breite passt sich dynamisch an */
  height: 150px; /* Feste Zellenhöhe */
  border: 1px solid black; /* Rahmen zur Sichtbarkeit */
}

.table-cell.column-border {
  border-right: 1px solid rgba(150,150,150,0.5);
  border-left: 1px solid rgba(150,150,150,0.5);/* Rechte Grenze der Zelle */
}

.verticaltext > div {
  position: absolute; /* Absolut innerhalb des Containers */
  top: 50%; /* Vertikale Mitte */
  left: 50%; /* Horizontale Mitte */
  transform: translate(-50%, -50%) rotate(90deg); /* Zentrieren und drehen */
  transform-origin: center; /* Rotationsursprung */
  white-space: nowrap; /* Kein Zeilenumbruch */
}



.pointlist-item {
    padding: 3px 5px;
}

.pointsum {
  text-align: center;
  border-radius: 2px;
  width: 25px;
  margin-left: -8px;
  margin-right: -8px;
}

.itemstudentratio {
  min-width: 43px;
  display: inline-block;
  margin: 0px;
  padding: 3px !important;
  text-align: center;
}

 /* The Modal (background) */
.messagebox-background, .modal-background {
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  
}

/*Border*/
.border-0{
    border: 1px dotted rgba(100,100,100,1);
    border-radius: 2px;
    padding: 3px;
}

.border-1{
    border: 1px solid rgba(100,100,100,1);
    border-radius: 2px;
    padding: 5px;
}

.border-2{
    border: 2px solid rgba(100,100,100,1);
    border-radius: 2px;
    padding: 5px;
}
  
.bold{
    font-weight: bold;
}

.updformrow-solution > div {
    min-width: 24px;
    max-width: 24px;
    width: 24px;
    background-color: rgba(255,255,255,0.5);
    overflow:hidden;
    display: inline-block;
    height:26px;
    padding-top:4px;
    font-weight:bold;
    text-align:center
}

.correct {
    background-color: rgba(100,200,100,0.5)  !important; 
}

.incorrect {
    background-color: rgba(200,150,100,0.5)   !important;
}

.updformrow-solution {
    display: inline-block;
    vertical-align:top;
    margin-top: 2px;
    margin-right: 2px;
}

/*Überschriften*/
.heading-0 {
    font-size: 12px;
    font-weight: 100;
}

.heading-1 {
    font-size: 16px;
    font-weight: 200;
}

.redcolor {
    color: rgba(255,50,0,1);
}

.bluecolor {
    color: rgba(0,50,255,1);
}

.greencolor {
    color: rgba(50,255,0,1);
}

.yellowcolor {
    color: rgba(255,255,50,1);
}

.heading-2 {
    font-size: 20px;
    font-weight: 300;
}

.heading-3 {
    font-size: 24px;
    font-weight: 400;
}

.heading-4 {
    font-size: 28px;
    font-weight: 500;
}

.heading-5 {
    font-size: 32px;
    font-weight: 600;
}

.heading-6 {
    font-size: 36px;
    font-weight: 700;
}

.heading-7 {
    font-size: 40px;
    font-weight: 800;
}

.heading-8 {
    font-size: 44px;
    font-weight: 900;
}



.redhover:hover{
    transition: 0.25s;
    background-color: rgba(128,30,10,0.5);
}

.redbg{
    background-color: rgba(128,30,10,0.2) !important;
}

.graybg{
    background-color: rgba(50,50,50,0.2) !important;
}

.red{
    color: rgba(128,30,10,1) !important;
}

.greenhover:hover{
    transition: 0.25s;
    background-color: rgba(10,128,60,0.5);
}

.greenbg{
    background-color: rgba(10,128,60,0.2) !important;
}

.green{
    color: rgba(10,128,60,1) !important;
}

.yellowbg{
    background-color: rgba(128,128,6,0.2) !important;
}

.nobg{
    background-color: rgba(255,255,255,0);
}

.locked {
  position: relative; /* Damit ::before absolut darauf bezogen werden kann */
  /* Falls gewünscht weitere Styles */
}

/* Pseudo-Element für das Schloss-Hintergrundbild */
.locked::before {
  content: '';
  position: absolute;
  inset: 0; /* top: 0; right: 0; bottom: 0; left: 0 */
  
  /* Schloss-SVG (schwarzes Schloss, beliebig skalierbar) */
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iYmxhY2siPjxwYXRoIGQ9Ik0xMiAyQzkuMjQgMiA3IDQuMjQgNyA3djNINmMtMS4xIDAtMiAuOS0yIDJ2OGMwIDEuMS45IDIgMiAyaDEyYzEuMSAwIDItLjkgMi0ydi04YzAtMS4xLS45LTItMi0yaC0xVjdjMC0yLjc2LTIuMjQtNS01LTV6bS0zIDdWN2MwLTEuNjYgMS4zNC0zIDMtM3MzIDEuMzQgMyAzdjJIOXoiLz48L3N2Zz4=");
  background-repeat: no-repeat;
  background-position: center center;
  
    /* Opazität per CSS-Variable steuerbar (Standard: 0.5) */
  opacity: 0.5;
  /* 
    "contain" bewirkt, dass das komplette Schloss sichtbar bleibt.
    - Ist das Element breiter als hoch, wird die Höhe gefüllt (und die Breite bleibt frei).
    - Ist das Element höher als breit, wird die Breite gefüllt. 
  */
  background-size: contain;

  /* Falls du eine (Teil-)Transparenz möchtest: */
  /* opacity: 0.6; */

  /* Inhalt des Elements bleibt klickbar */
  pointer-events: none;
  
  /* Schloss soll hinter dem Inhalt liegen, aber über dem Hintergrund */
  z-index: 0;
}





.opacity25{
    opacity: 0.25;
}

.opacity50{
    opacity: 0.5;
}

.opacity75{
    opacity: 0.75;
}

.opacity100{
    opacity: 1;
}

.noborder {
    border: none;
}


.sp-seat {
    border-width: 2px;
    display: inline-block;
    border-color: rgba(200,200,200,0.5);
    border-style: outset;
    width: 50%;
    height: 100px;
    vertical-align:top;
}

.sp-seat > form,
.sp-bank > form,
.sp-bank-add > form,
.sp-bank-del > form,
.sp-column > form,
.sp-column-del > form{
    width: 100%;
    height: 100%;
}

.sp-seat > form > input,
.sp-bank > form > input,
.sp-bank-add > form > input,
.sp-bank-del > form > input,
.sp-column > form > input,
.sp-column-del > form > input{
    width: 100%;
    height: 100%;
    border:none;
    opacity:0.5;
}

.rowinput-bonus {
  width: 40px;
}

.sp-bank {
    border-width: 2px;
    border-color: rgba(100,100,100,0.5);
    border-style: inset;
    width: 100%;
    padding: 6px;
    margin: 10px;
}

.sp-bank-add {
    border-width: 2px;
    border-color: rgba(100,100,100,0.5);
    border-style: inset;
    width: 100%;
    margin: 10px;
}

.sp-bank-del{
    border-width: 2px;
    display: block;
    border-color: rgba(200,200,200,0.5);
    border-style: outset;
}

.sp-column-del{
    border-width: 2px;
    border-color: rgba(100,100,100,0.5);
    border-style: inset;
    width: 100%;
    margin: 10px;
}

.sp-column {
    display: inline-block;
    vertical-align: top;
    margin:10px;
}


.draggable {
    width: 100%;
    height: 100%;
    background-color: #f2f2f2;
    border: 2px dashed #cccccc;
    text-align: center;
    margin-bottom: 10px;
    user-select:none;
}

.sp-off {
    min-height: 100px;
    margin: 20px;
    width: calc(100% - 80px);
}

.draggable > span {

}

.sp-offseat {
    width: 200px;
    height: 100px;
    display: inline-block;
    margin: 10px;
    padding: 10px;
}

.droppable {
    background-color: #d1ecf1;
    border: 3px solid #bee5eb;
    text-align: center;
    height: 100%;
    width: 100%;
    min-height: 80px;
}

.sp-column-add{
    margin-top: 56px;
    margin-bottom: 20px;
    border-style:outset;
    border-width: 2px;
    border-color: rgba(200,200,200,0.5);
}

/* Modal Content/Box */
.messagebox-content, .modal-matter {
  background-color: #fefefe;
  margin: 0% 15% auto 15%;
  padding: 20px;
  width: 70%;
  
  position: relative;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #999;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 6px;
  -webkit-box-shadow: 0 3px 9px rgba(0,0,0,.5);
  box-shadow: 0 3px 9px rgba(0,0,0,.5);
  outline: 0;
}

.messagebox-headline , .modal-headline {
    height: 50px;
    margin: 15% 15% 0% 15%;
}

.messagebox-message {
    background-color: var(--background-2);
    padding: 4px 8px;
    margin: 2px 0px;
}

/* The Close Button */
.messagebox-title , .modal-title {
  color: var(--text-2);
  float: left;
  font-size: 3rem;
  font-weight: bold;
  padding:8px;
  max-width: calc(100% - 40px);
}

/* The Close Button */
.messagebox-close , .modal-close{
  color: var(--text-2);
  float: right;
  font-size: 4rem;
  font-weight: bold;
  user-select: none;
  padding-right:4px;
}

.addform-label, .addform-input, updform-label, .updform-input, delform-label, .delform-input{
    display: table-cell;
}

.addform-input > input[type="submit"], .updform-input > input[type="submit"], .delform-input > input[type="submit"]  {
    min-width: 25px;
}

.addformrow, .updformrow {
    display: inline-block;
    vertical-align:top;
    margin: 2px 0px;
}

.addformrow-input, .updformrow-input {
    margin-right: 2px;
    background-color: rgba(200,200,200,0.5);


}

.addformrow-input > input[type="submit"], .updformrow-input > input[type="submit"] {
    margin-right: 2px;
}

.addformrow-input > input[type="submit"]{
    margin-right: 2px;
    /*float: left;*/
    margin-left: 2px;
    min-width: 24px;
}

.rowinput-solution {
    font-family: consolas;
}

.colspan2 {
    column-span: 2;
}

.updformrow-info, .unitrow-info {
    display: inline-block;
    vertical-align:top;
    margin-right: 2px;
    border-radius: 4px;
    padding: 5px;
    background-color: rgba(200,200,200,0.5);
    padding-left: 10px;
    padding-right: 10px;
}

.updformrow-info:last-child {
    margin-right: 0px;
}


.unit-info > div{
    display: inline-block;
    vertical-align: top;
}

.unit-info > div:first-child{
    min-width: 150px;
}

.unit-info > div:nth-child(2) > textarea{
    width: 400px;
    height: 100px;
}

.unit-info-solution{
    font-family: consolas;
}


.menu-container {
    background-color: var(--accent-2);
    border-top: solid 1px;
    border-bottom: solid 1px;
    border-color: var(--accent-1);
}

.button-xs {
    min-width: 24px;
    display:inline-block;
    font-size: 14px;
    text-align:center;
    min-width:24px;
    max-height: 26px;
    display: inline-block;
    border-width: 1px;
    border-color: var(--border-2);
    border-style: solid;
    padding: 2px;
    border-radius: 3px;
    background-color: var(--button-bg);
    cursor: pointer;
    transition: 0.5s;
    margin: 2px;
    color: var(--text-1);
}

.button-auto {
    display:inline-block;
    font-size: 14px;
    text-align:center;
    display: inline-block;
    border-width: 1px;
    border-color: var(--glass-border);
    border-style: solid;
    padding: 2px;
    border-radius: 3px;
    background-color: var(--glass-bg);
    cursor: pointer;
    transition: 0.5s;
    margin: 2px;
    height: auto;
    width: auto;
    color: var(--text-1);
}

.button-m {
    text-align:center;
    min-width:20px;
    display: inline-block;
    border-width: 1px;
    border-color: var(--border-2);
    border-style: solid;
    padding: 8px 20px;
    border-radius: 2px;
    background-color: var(--button-bg);
    cursor: pointer;
    transition: 0.5s;
    margin:4px;
    color: var(--text-1);
}

.centercontent{
    text-align:center;
}


.inline-form{
    display: inline-block;
    padding-right: 5px;
}

.button-xl {
    font-size: 11px;
    text-align:center;
    min-width:80%;
    max-height: 30px;
    display: inline-block;
    border-width: 1px;
    border-color: var(--border-2);
    border-style: solid;
    padding: 2px;

    border-radius: 3px;
    background-color: var(--button-bg);
    cursor: pointer;
    transition: 0.5s;
    margin:6px;
    color: var(--text-1);
}

.button-s {
    text-align:center;
    min-width:30px;
    display: inline-block;
    border-width: 1px;
    border-color: var(--border-2);
    border-style: solid;
    padding: 3px 6px;
    border-radius: 3px;
    background-color: var(--button-bg);
    cursor: pointer;
    transition: 0.5s;
    margin:3px;
    color: var(--text-1);
}

.button-s:hover, .button-xs:hover, .button-m:hover, .button-l:hover, .button-xl:hover {
    background-color: var(--button-hover) !important;
    transition: 0.5s;
    color: var(--text-2);
}

.login-container input[type="text"],.login-container input[type="password"]{
    text-align:left;
    min-width:20px;
    display: inline-block;
    border-width: 1px;
    border-color: var(--glass-border);
    border-style: solid;
    padding: 8px 20px;
    border-radius: 2px;
    background-color: var(--background-1);
    transition: 0.5s;
    margin:4px;
    color: var(--text-3) !important;
}

.addform-row, .updform-row, .delform-row{
    display: table-row;
}
.addform > form, .updform > form, .delform > form{
    display: table;
    border-spacing:5px;
}

.messagebox-close:hover,
.messagebox-close:focus,
.modal-close:hover,
.modal-close:focus{
  color: black;
  text-decoration: none;
  cursor:pointer;
} 

td{
    border-style: dotted;
    border-width: 1px;
    border-color: rgba(200,200,200,0.5);
}

.debug-container{
    text-align: center;
    overflow: auto;
    width: 100%;
    color: var(--text-3);
}

.debug-container > span {
    text-align: left;
    display: inline-block;
}

.title-container{
    width: 100%;
    padding: 50px 50px 25px 50px;
}

.menu-container{
    width: 100%;
    padding: 12px 50px;
}

a, a:hover, a:focus, a:visited {
    text-decoration: none;
    color: var(--link-1);
}

.menu-item > a{
    display: inline-block;
    background-color: var(--glass-bg);
    transition: 0.25s;
}

.menu-item .button-xs,.menu-item .button-m,.menu-item .button-l,.menu-item .button-xl, .menu-item .button-s,
.footer-container .button-xs,.footer-container .button-m,.footer-container .button-l,.footer-container .button-xl, .footer-container .button-s,
.footer-container input[type="submit"]{
    border-color: var(--glass-border) !important;
    color: var(--text-2) !important;
    background-color: var(--glass-bg);
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/*span {
    vertical-align: top;
}*/

.menu-item > a:hover{
    transition: 0.25s;
}

.menu-item {
    margin-right: 25px;
    float:left;
    margin-bottom: 4px;
    margin-top: 4px;
}

.menu-item:last-child{
    margin-right:0px;
}

.menu-item > form {
    line-height: 1;
    float: right;
    margin-left: 5px;
}

.hint-xs {
    text-align: center;
    border-width: 1px;
    border-color: var(--glass-border);
    border-style: solid;
    padding: 4px 10px;
    background-color: var(--glass-bg);
    cursor: pointer;
    margin: 4px;
    color: var(--link-2) !important;
    font-style: italic;
    margin-bottom: 20px;
    margin-top: -10px;
    user-select: none;
    padding: 2px -6px;
    border-radius: 2px;
    width: 160px;
    margin-left: calc(50% - 75px);
    transition: 0.5s;
}

.hint-xs:hover {
    background-color: var(--button-hover);
    transition: 0.5s;
}

.post-container{
    background-color: var(--background-2);
    margin: 10px 0px;
    padding: 10px;
    border: solid 2px;
    border-top-color: currentcolor;
    border-right-color: currentcolor;
    border-bottom-color: currentcolor;
    border-left-color: currentcolor;
    border-radius: 3px;
    border-color: var(--border-1);
}

.post-heading{
    font-size: 24px;
}

.post-title{
    
}

.post-content{
    overflow: auto;
}

.menu-item > form > input {
    display: inline-block;
}

.menu-item:last-child > form {
    float: unset;
}

.footer-container{
    width: 100%;
    padding: 25px 50px;
    text-align: center;
    background-color: var(--accent-2);
    border-top: solid 1px var(--accent-1);
}

.login-container{
    padding: 20px;
}

/*Fix Summernote*/
.modal-backdrop {
    z-index:0;
}

.height-50{
    height: 50% !important;
}

.favor {
    background-color: green; /* Grün für Favors */
    border-color: green;
}
.antifavor {
    background-color: red; /* Rot für Antifavors */
    border-color: red;
}
.favor-received {
    background-color: lightgreen; /* Hellgrün für erhaltene Favors */
    border-color: lightgreen;
}
.antifavor-received {
    background-color: orange; /* Orange für erhaltene Antifavors */
    border-color: orange;
}
.conflict {
    background-color: darkred; /* Dunkelrot für Konflikte in der gleichen sp-bank */
    border-color: darkred;
}
.hovered {
    background-color: blue; /* Oder eine andere Farbe deiner Wahl für den gehoverten Studenten */
    border-color: blue;
}

.student {
    font-size: 20px;
}

select {
    min-height:26px;
}


/* Desktop Styles - Menü-Button ausblenden */
.menu-toggle {
    display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {

    .site-title{
        font-size: 2rem !important;
        max-width: calc(100% - 205px);
    }
    
    .menu-container {
        width: 100%;
    }

    .menu-toggle {
        display: block;
        width: 100%;
        background-color: var(--glass-bg);
        border: solid 1px var(--glass-border);
        color: var(--link-3);
        margin: 4px !important;
        padding: 15px;
        text-align: center;
        border-bottom: 1px solid rgba(100, 100, 100, 0.1);
        cursor: pointer;
    }

    
    .menu-items {
        display: none;
    }

    .menu-items.active {
        display: block;
    }

    .menu-item {
        display: block;
        width: 100%;
        /*background-color: rgba(200, 200, 200, 0.8);*/
        padding: 0; /* Padding entfernt */
        text-align: center;
        margin: 0; /* Entfernt jeden Abstand zwischen den Items */
        border-radius: 3px;
    }

    .menu-item > a {
        display: block;
        width: 100%;
        color: #000;
        text-decoration: none;
        box-sizing: border-box; /* Sicherstellt, dass der Link das Elternelement komplett ausfüllt */
    }

    .menu-item:hover, .menu-toggle:hover {
        /*background-color: rgba(100, 100, 100, 0.5);*/
        transition: background-color 0.25s ease;
    }
}

