body {
    font-family: 'Sofia', cursive;
    padding: 20px;
    margin-left: 10px;
    margin-right: auto;
    color: #333;
    justify-content: left;
}

button {
    border-radius: 6px;
    border-width: 1px;
    cursor: pointer;
}

li {
    list-style: none;
}

.hidden {
  display: none;
}


button:hover {
    opacity: 0.9;
}

.task-titel-wrap{
    margin-top: 20px;
    display: flex;
    flex-direction: row;
}
.titel-text-field{
    width: 250px;
}

/* TIMER */
.timer-wrap {
    display: flex;
    flex-direction: column; /* Titel oben, Rest darunter */
    align-items: center;    /* alles zentriert */
    gap: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 12px;
    width: 800px;   /* feste Breite */
    max-width: 100%;
    margin-left: auto;  /* schiebt den Block nach rechts */
    margin-right: 0;
}

    /* Titel */
.timer-title {
    text-align: center;
    font-size: 24px;
    margin-top: -5px;
}

    /* Inhalt (Inputs, Anzeige, Buttons in einer Reihe) */
.timer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

    /* Eingabefelder */
.timer-content input[type="number"] {
    width: 60px;
    text-align: center;
}

    /* Anzeige */
#display-time {
    font-size: 30px;
    font-weight: bold;
    min-width: 120px;
    text-align: center;
}

    /* Buttons */
.timer-buttons {
    display: flex;
    gap: 10px;
}


/* Calendar */
.calendar-block {
    position: relative; 
    display: inline-block;
    margin-top: 20px;
}

.calendar-textfield{
    margin-bottom: 20px;
}

.calendar-button{
    padding: 5px 8px;
    border: none;
    border-radius: 7px;
    font-size: 18px;
    cursor: pointer;
}

.modal {
    display: none;
    position: absolute;
    top: 40px;    
    left: 0;         
    width: 360px;
    height: 320px;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close {
    color: #aaa;
    font-size: 16px;
    font-weight: bold;
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
}

/* --- Filter Menü --- */
.filter-container {
  position: relative;
  display: inline-block;
  margin-bottom: 50px;
}

#filter-button {
  border: 1px solid black;
  border-radius: 8px;
  background-color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  padding: 6px 12px;
}

#filter-menu {
  position: absolute;
  top: 40px;
  left: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  width: 150px;
  z-index: 10;
}

#filter-menu li {
  padding: 8px 12px;
  cursor: pointer;
}

#filter-menu li:hover {
  background-color: #ededff;
}

.hidden {
  display: none;
}


/*Task Container*/
.task {
    display: flex;
    flex-direction: column;
    background: #ededff;
    border: 2px solid #ccc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.task-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.task-title {
    flex: 1;
    font-size: 1.1rem;
    text-align: center;
}

.task-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.edit-task-button{
    align-items: left;
    padding: 5px 8px;
    border-color: black;
    border-width: 1px;
    border-radius: 7px;
    font-size: 18px;
    cursor: pointer;

}

.delete-task-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.delete-task-button {
    border-color: black;
    border-width: 1px;
    border-radius: 5px;
    font-size: x-large;
    cursor: pointer;
}

.edit-form{
    gap: 10px;
    margin-top: 10px;
    flex-direction: row;
    position: static;
    align-items: center;
}

/*Calendar in Task Block*/
.calendar-task {
    font-size: 14px;
    padding: 3px 5px;
    color: rgb(63, 63, 63);
    margin-bottom: 5px;
    border-color: black;
    border-width: 1px;
}

.close-task-calendar{
    color: #aaa;
    font-size: 16px;
    font-weight: bold;
    position:static;
    top: 5px;
    right: 5px;
    cursor: pointer;
}

.modal-task{
    display: none;      
    margin-top: 10px;    
    padding: 10px;
    border: 1px solid #ccc;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}


/*Subtasks Container*/

.subtasks-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 30%;
}

.subtasks-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    align-items: right; 
}

.subtasks-list li {
    margin: 5px 0;
    display: flex;
    align-items: right;
    gap: 10px;
}

.subtask-titel{
    display: flex;
    align-items: right;
    justify-content: space-between; /* заголовок слева, кнопки справа */
    gap: 12px;
}

.subtask {
    display: flex;
    align-items: right;
    gap: 10px;
    margin: 5px 0;
}

.edit-subtask-form {
    gap: 10px;
    margin-top: 10px;
    flex-direction: row;
    position: relative;
    align-items: center;
}

.subtasks_wrap {
    margin-top: 10px;
}

.add-new-subtask{
    display: flex;
    flex-direction: row;
}

.add-subtask-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.edit-subtask-button{
    height: 30px;
    width: auto;
    border-color: black;
    border-width: 1px;
    border-radius: 7px;
    font-size: large;
    cursor: pointer;
}

.delete-subtask-button{
    height: 30px;
    width: auto;
    border-color: black;
    border-width: 1px;
    border-radius: 7px;
    font-size: medium;
    cursor: pointer;
}

    
/*Subtask-Zustand*/
.zustand-button {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border-color: black;
  border-width: 1px;
  cursor: pointer;
}

.zustand-0 {
  background-color: #f44336;
}

.zustand-1 {
  background-color: #ff9800;
}

.zustand-2 {
  background-color: #4caf50;
}

/*Task-Zustand*/
.task-zustand-button {
  height: 40px;
  width: auto;
  font-size: 18px;
  border-radius: 7px;
  border-color: black;
  border-width: 1px;
  cursor: pointer;
}

.task-zustand-0 {
  background-color: #f44336;
}

.task-zustand-1 {
  background-color: #ff9800;
}

.task-zustand-2 {
  background-color: #4caf50;
}

.container3DViewer {
    width: 100%;
    height: 400px;
    background: #f0f0f0;
    position: relative;
}





