:root {
    --dark-blue: #253241;
    --light-gray: #999999;
    --dark-gray: #555555;
    --dark-red: #A72A28;
    --green: #046307;
    --green-trans: #04630780;
    --yellow: #F4C430;
    --orange: #E67E22;

    /* Hintergrundfarben */
    --background-main: #1F2937;
    --background-secondary: #171f2a;

    /* Button Farben */
    --button-background: rgb(13, 144, 161);
    --button-hover: rgb(16, 164, 184);
    --button-active: rgb(16, 164, 184);
    --button-border: #4B5563;

    /* Eingabefelder und Auswahlfelder */
    --input-background: #2D3748;
    --input-hover-active: rgb(16, 164, 184);
    --input-border: #4B5563;

    /* Textfarben */
    --text-light: #FFFFFF;
    --text-dark: #E2E8F0;

    /* Benachrichtigungen */
    --notification-success-bg: #2F855A;
    --notification-success-text: #FFFFFF;
    --notification-warning-bg: #D97706;
    --notification-warning-text: #FFFFFF;
    --notification-error-bg: #9B2C2C;
    --notification-error-text: #FFFFFF;
    --notification-info-bg: #3182CE;
    --notification-info-text: #FFFFFF;

    /* Reanimation */
    --rea-bg: #e09200;
    --rea-hover: #ffa600;

    --col_status1: #64aa32;
    --col_status2: #148c14;
    --col_status3: #14558c;
    --col_status4: #8c2814;
    --col_status6: #646464;
    --col_status7: #1e148c;
    --col_status8: #5a148c;
    --col_status9: #828214;
    --col_status10: #253241;
    --col_statusA: #253241;

    --content-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* ===== Scrollbar CSS ===== */
  /* Firefox */
  * {
    scrollbar-width: auto;
    scrollbar-color: #0d90a1 #253241;
  }

  /* Chrome, Edge, and Safari */
  *::-webkit-scrollbar {
    width: 10px;
  }

  *::-webkit-scrollbar-track {
    background: #253241;
  }

  *::-webkit-scrollbar-thumb {
    background-color: #0d90a1;
    border-radius: 10px;
    border: 3px none #ffffff;
  }

body, html {
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--dark-gray);
    font-family: sans-serif;
    box-sizing: border-box;
}

#app-container {
    position: relative;
    width: 80vw;
    height: 60vw;
    display: grid;
    grid-template-columns: 1fr 15%;
    grid-template-rows: 5% 1fr 5%;
    background-color: var(--background-main);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.487);
    border-radius: 1% / 2%;
    border: solid 0.25em var(--border-color);
    overflow: hidden;
}

#titleband {
    position: relative;
    grid-row: 1/2;
    grid-column: 1/3;
    background-color: var(--dark-gray);
    color: var(--text-light);
    display: flex;
    align-items: center;
    padding-left: 2%;
    font-size: 1.5em;
}

#menuband {
    grid-row: 2/3;
    grid-column: 2/3;
    background-color: var(--dark-gray);
    display: flex;
    flex-direction: column;
    padding: 3%;
    padding-top: 5%;
    padding-bottom: 10%;
    padding-left: 0;
    gap: 1%;
    box-sizing: border-box;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.487);
}

.page {
    grid-row: 2/3;
    grid-column: 1/2;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 1%;
    gap: .5vw;
    display: none;
    box-sizing: border-box;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.487);
    color: var(--light-gray);
}

.subpage {
    grid-row: 1/12;
    grid-column: 1/13;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    width: 100%;
    height: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: .5vh;
    gap: .5vh;
    display: none;
    box-sizing: border-box;
    border: solid 0.05em var(--dark-gray);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.487);
}

.datamanagement_page {
    height: 100%;
    width: 100%;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: .5vh;
    gap: .5vh;
    display: none;
    box-sizing: border-box;
    border: solid 0.05em var(--dark-gray);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.487);
}

.sna_additionalinfoandquest {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow-y: scroll;
    overflow: hidden;
    font-size: 1em;
    color: white;
    padding: 5px;
    text-align: right;
    border: solid 0.05em var(--input-border);
}

#call_patientlist {
    grid-row: 2/5;
    grid-column: 7/13;
    width: 100%;
    height: 100%;
    padding: 1%;
    overflow: auto;
    border: solid 0.05em var(--border-color);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.487);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.page_question {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: var(--light-gray);
    text-align: center;
}

.modul {
    display: flex;
    flex-direction: column;
    border: solid 0.25em teal;
    border-radius: 5px;
    padding: 2%;
}

.modul_title {
    font-size: 1em;
    grid-row: 1/2;
    grid-column: 1/6;
    color: var(--light-gray);
}

.modul_question {
    font-size: 0.8em;
    margin: 0;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    color: teal;
    font-weight: bold;
}

.modul_label {
    display: flex;
    font-size: 0.85em;
    margin: 0.05em;
    color: var(--light-gray);
    align-items: center;
}

#impressum {
    grid-row: 5/12;
    grid-column: 9/13;
    width: 100%;
    height: 100%;
    padding: 1%;
    overflow: hidden;
    border: solid 0.05em teal;
    border-radius: 1% / 2%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.487);
    box-sizing: border-box;
}

#openCalls_list {
    grid-row: 1/12;
    grid-column: 1/13;
    
}

.itemcontainer {
    width: 100%;
    height: 100%;
    padding: 1%;
    overflow: auto;
    border: solid 0.05em var(--border-color);
    border-radius: 1vh;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.487);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.call {
    position: relative;
    width: 100%;
    height: 3em;
    display: flex;
    align-items: center;
    background-color: white;
    font-size: 1.5em;
    color: teal;
    border: solid 0.05em teal;
    border-radius: 1% / 2%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.487);
    box-sizing: border-box;
    padding: 2%;
    margin-bottom: 0.05em;
    cursor: pointer;
}
.call:hover {
    background-color: rgb(224, 224, 224);
}

.callDiv_expire {
    position: absolute;
    right: 1%;
    font-size: 0.75em;
    text-align: right;
}

.closeCallButton {
    position: absolute;
    right: 17.5%;
    top: 50%;
    transform: translateY(-50%);
    height: 80%;
    width: 15%;
    font-size: 0.75em;
    text-align: center;
    background-color: var(--yellow);
    color: black;
    border: none;
    cursor: pointer;
}

.deleteCallButton {
    position: absolute;
    right: 17.5%;
    bottom: 5%;
    height: 40%;
    width: 15%;
    font-size: 0.75em;
    text-align: center;
    background-color: var(--dark-red);
    color: white;
    border: none;
    cursor: pointer;
}

.CalltoArchiveButton {
    position: absolute;
    right: 17.5%;
    top: 5%;
    height: 40%;
    width: 15%;
    font-size: 0.75em;
    text-align: center;
    background-color: var(--yellow);
    color: black;
    border: none;
    cursor: pointer;
}

.unit {
    position: relative;
    width: 100%;
    min-height: 4em;
    max-height: 4em;
    display: flex;
    align-items: center;
    background-color: white;
    font-size: 1em;
    font-weight: normal;
    color: teal;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.487);
    box-sizing: border-box;
    padding-left: 2%;
    margin-bottom: 5px;
    overflow: hidden;
    pointer-events: auto; /* Stellt sicher, dass Klicks korrekt erkannt werden */
    padding: 10px; /* Klickbereich vergrößern */
    cursor: pointer; /* Zeigt, dass es klickbar ist */
}
.unit:hover {
    background-color: rgb(224, 224, 224);
}
.unitEinheitentableau {
    font-size: 1.25em;
}
.unitStatus {
    position: absolute;
    right: 2%;
    top: 10%;
    height: 50%;
    font-size: 1em;
    font-weight: bold;
    text-align: right;
}

.unitOrgaOrt {
    position: absolute;
    left: 2%;
    top: 10%;
    height: 40%;
    font-size: 1em;
    font-weight: lighter;
    text-align: right;
}

.unitFunkkennung {
    position: absolute;
    left: 2%;
    bottom: 5%;
    font-size: .8em;
    font-weight: bold;
    text-align: left;
}

.item {
    position: relative;
    width: 100%;
    min-height: 6.5em;
    display: flex;
    align-items: center;
    background-color: white;
    font-size: 1.25em;
    color: teal;
    border-radius: 1% / 2%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.487);
    box-sizing: border-box;
    padding-left: 2%;
    margin-bottom: 5px;
    overflow: hidden;
    pointer-events: auto;
    padding: 10px;
    cursor: none;
}


#notification {
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 30%;
    height: 10%;
    padding: 1%;
    overflow: hidden;
    border: solid 0.05em teal;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 0 7.5px rgba(0, 0, 0, 0.487);
    box-sizing: border-box;
    background-color: greenyellow;
    color: black;
    z-index: 100;
}

button {
    border: none;
    border-radius: 1% / 2%;
    background-color: var(--button-background);
    font-size: 1.25em;
    color: var(--text-light);
    border: solid var(--button-border) 0.05em;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.487);
    cursor: pointer;
    position: relative;
}

button:hover {
    background-color: var(--button-hover);
}
button:disabled {
    background-color:  rgb(9, 99, 110);
    cursor: not-allowed;
}


.shortcut {
    display: block;
    position: absolute;
    left: 2px;
    color: white;
    top:1px;
    height: 100%;
    font-size: .75em;
}

/* Button Colours */

.btn_gray {
    background-color: #666666;
    color: var(--text-light);
}
.btn_gray:hover {
    background-color: #444444;
}

.rea {
    background-color: var(--rea-bg);
    color: var(--text-light);
}
.rea:hover {
    background-color: var(--rea-hover);
}

.btn_menu {
    font-size: 1.5em;
    font-weight: bold;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    min-height: 7.5%;
    text-align: right;
}

.btn_schnellwahl {
    font-size: 1em;
}

select, input, .input {
    width: 100%;
    height: 100%;
    border: solid 0.05em var(--input-border);
    background-color: var(--input-background);
    color: var(--text-light);
    border-radius: 1% / 2%;
    align-self: center;
    font-size: 1.5em;
    text-align: left;
    box-sizing: border-box;
    padding-left: 1%;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    transition: border-color 0.3s ease, box-shadow 0.3s ease;

    cursor: pointer;
}

input:focus {
    outline: none;
    border: 2px solid var(--orange);
    box-shadow: 0 0 5px var(--orange); /* Optional: Leuchtender Effekt */
    border-radius: 1% / 2%;
}

select:hover, input:hover, textarea:hover, option:hover {
    background-color: var(--input-hover-active);
}

textarea {
    width: 100%;
    height: 100%;
    border-radius: 1% / 2%;
    align-self: center;
    font-family: sans-serif;
    font-size: 1em;
    border: solid 0.05em var(--input-border);
    background-color: var(--input-background);
    color: var(--text-light);
    box-sizing: border-box;
    padding-left: 1%;
}

textarea:focus {
    outline: none;
    border: 2px solid var(--orange);
    box-shadow: 0 0 5px var(--orange);
    background-color: var(--input-hover-active);
    border-radius: 1% / 2%;
}

.context-menu {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 150px;
    max-height: 300px; /* Maximale Höhe mit Scrollbar */
    overflow-y: auto;  /* Scrollbar bei Bedarf */
    overflow-x: hidden;
    user-select: none;
}

.context-menu .menu-item {
    padding: 10px;
    cursor: pointer;
    user-select: none;
}

.context-menu .menu-item:hover {
    background-color: #f0f0f0;
}


#modal_background {
    grid-row: 2/3;
    grid-column: 1/3;
    display: none;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.300);
    z-index: 50;
    position: relative;
}

.modal {
    position: absolute;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    width: 95%;
    height: 95%;
    overflow: hidden;
    padding: 1%;
    gap: .5vw;
    display: grid;
    box-sizing: border-box;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.487);
    color: var(--light-gray);
    background-color: var(--background-main);
    border-radius: 5px;
}

/* Toolbox */

#toolbox {
    position: relative;
    grid-row: 3/4;
    grid-column: 1/3;
    background-color: var(--dark-gray);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    font-size: 1.5em;
}

.toolbox_btn {
    height: 95%;
    width: 20%;
    font-size: 1em;
}

.toolboxContainer{
    position: absolute;
    height: 90%;
    width: 20%;
    bottom: 5%;
    background-color: var(--dark-gray);
    z-index: 50;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.487);
    border: solid 0.025em var(--dark-gray);
    box-sizing: border-box;
    border-radius: 0;
}

#buchstabierhilfe {
    display: none;
    grid-template-rows: 10% 40% 40% 1fr;
    grid-template-columns: 1fr;
    gap: .2em;
    left: 0;
}

#statistics {
    display: none;
    grid-template-rows: 10% 40% 40% 1fr;
    grid-template-columns: 1fr;
    gap: .2em;
    left: 20%;
}

#newsticker {
    display: none;
    left: 40%;
    bottom: 5%;
}

#newsticker>.item {
    min-height: 4em;
}

#statusticker {
    display: none;
    left: 60%;
    bottom: 5%;
}

#statusticker>.item {
    min-height: 4em;
}