:root {
    --zoom: 100%;
    --XChange: 0;
    --YChange: 0;
    --coordHeight: 1000px;
    --coordWidth: 1600px;

    --multiboxPos: 0;
    --multiboxWidth: 0px;
    --multiboxHeight: 0px;
}

body {
    margin: 0;
    padding: 0;
}




.cardOptions{
    display: none;
    position:absolute;
    background: #f9f9f9;
    color: #f9f9f9;
    padding: 5px;
    z-index: 11;
    border-radius: 8px;

}
.cardOptions button{
    color: black;
    background: #f9f9f9;
    border:none;
}
.cardOptions button:hover{
    background: #e9e9e9;

}

.editFormPopup{
    display: none;
    position: fixed;
    max-width: 100vw;
    max-height: 100dvh;
    margin: auto;
    inset: 0;
    width: 280px;
    height: 150px;
    padding: 5px;
    z-index: 10;
    background: #F4FAF1;  /* old beige */
    border: 1px solid #000000;
    border-radius: 12px;
    border-left: 3px solid #2D6A1F;


    font-size: 11px;
}

.editFormPopup .editFormContainer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 10px;

}

.editFormPopup .editFormContainer button {
    border-radius: 8px;
    border-color: #f9f9f9;
    color: rgba(0, 0, 0, 0.85);
    transition: all 0.2s ease-in-out;

}

.editFormPopup .editFormContainer button:hover {
    background: rgba(255, 255, 255, 0.25);

}

.container {
    display: grid;
    grid-template-areas:
    "header header"
    "menu content"
    "footer footer";
    grid-template-columns: 1fr 5fr;
    background-color: white;


}
.container div {

}
/* Header */
.container div.header {
    grid-area: header;
    overflow: hidden;
    zoom: 100%;
    background: linear-gradient(135deg, #255925, #357a35, #4a9e4a);
    display: flex;
    align-items: center;
    height: 50px; /* Definierte Höhe für Kompaktheit */
    padding: 0 20px;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);


}

.container .header-title{
    grid-area: header;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.container .header .topbar {
    grid-area: header;
    display: flex;
    gap: 8px;
    margin-left: auto; /* Schiebt die Links ganz nach rechts */
}

.container .header .topbar a {
    grid-area: header;
    color: #f2f2f2;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 20px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 99px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;

}
/* change color when hovering*/
.container .header .topbar a:hover {
    grid-area: header;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Menu */
.container div.menu {
    grid-area: menu;
    border-style: none;
    background: linear-gradient(to bottom, #255925 0%, #357a35 25%, #4a9e4a 65%, #7B853A 75%, #947352 100%);

}

.container .menu .navbarTree{
    padding: 8px;
    border-radius: 20px;
    border-top-style: solid;
    gap: 10px;


}

.treeFormContainer{
    display: none;
    position: fixed;

    width: 350px;
    padding: 5px;
    z-index: 10;
    background: #F4FAF1;  /* old beige */
    border: 1px solid #000000;
    border-radius: 12px;
    border-left: 3px solid #2D6A1F;
    font-size: 18px;
}


.container .menu .navbarTree .treeFormContainer button{
    padding: 5px;
    border-radius: 8px;
    border-color: #000000;
    color: rgba(0, 0, 0, 0.85);
    transition: all 0.2s ease-in-out;
    font-size: 15px;
}

.container .menu .navbarTree .treeFormContainer button:hover{
    background: rgba(198, 190, 190, 0.25);
}
.container .menu .navbarTree button{
    border: none;
    color: #000000;
    transition: all 0.2s ease-in-out;
    width: 100%;
    text-align: left;
    padding: 7px 10px;
    border-radius: 8px;
    background: transparent;
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    cursor: pointer;

}
.container .menu .navbarTree button:hover{
    background: rgba(255, 255, 255, 0.25);
}

.divider {
    height: 1px;
    background: rgba(255,255,255,0.12);
    margin: 4px 0;
}

.container .menu .newPerson{
    padding: 8px;
    border-radius: 20px;
    gap: 10px;
}

.container .menu .newPerson button{
    border: none;
    color: #000000;
    transition: all 0.2s ease-in-out;
    width: 100%;
    text-align: left;
    padding: 7px 10px;
    border-radius: 8px;
    background: transparent;
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    cursor: pointer;
}
.container .menu .newPerson button:hover{
    background: rgba(255, 255, 255, 0.25);
}



.container .menu .navbarTree .treeForm {
    display: none;
    background: beige;
    border:  3px black;
    border-style: solid;
    border-radius: 8px;
    position: fixed;
    top: 100px;
    left: 600px;
    padding: 5px;
    z-index: 10;
}
.container .menu .navbarTree .treeForm .treeFormContainer{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 10px;
}



/*Content Abschnitt*/
.container div.content {
    grid-area: content;
    border-style: none;
    overflow: auto;
    position: relative;

    /*background: rgba(116, 191, 116, 0.25);*/

}

.container .content .formPopup{
    display: none;
    position: fixed;
    bottom: 50px;
    right: 60px;
    width: 280px;
    padding: 5px;
    z-index: 10;

    background: #F4FAF1;  /* old beige */
    border: 1px solid #000000;
    border-radius: 12px;
    border-left: 3px solid #2D6A1F;


    font-size: 11px;

}

.container .content .formPopup .formContainer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 10px;

}
.container .content .formPopup .formContainer button{
    padding: 5px;
    border-radius: 8px;
    border-color: #f9f9f9;
    color: rgba(0, 0, 0, 0.85);
    transition: all 0.2s ease-in-out;

}

.container .content .formPopup .formContainer button:hover{
    background: rgba(255, 255, 255, 0.25);

}

.container .content .coord {
    height: var(--coordHeight); /* das als variablen ersetzen */
    width: var(--coordWidth);
    background-image:
            linear-gradient(to right, #ccc 1px, transparent 1px),
            linear-gradient(to bottom, #ccc 1px, transparent 1px);
    background-size: 25px 25px;
    transform: translate(var(--XChange), var(--YChange)) scale(var(--zoom)) ;
    transform-origin: 0 0;



}

.container .content .multiBox{
    height: var(--multiboxHeight);
    width: var(--multiboxWidth);
    border-style: solid;
    border-width: 2px;
    border-color: blue;
    position: absolute;
    opacity: 0.25;
    background-color: lightblue;
    display: none;
    z-index: 11;
}

.container .content .coord svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: all;
    z-index: 2;
}
.container .content .coord svg circle {
    pointer-events: all;
}
.container .content .coord .card {
    grid-area: content;
    width: 187.5px;
    height: 87.5px;
    overflow: auto;

    background: #F4FAF1;  /* old beige */
    border: 1px solid #C8DFB8;
    border-radius: 12px;

    padding: 5px;
    position: absolute;
    cursor: move;
    font-size: 11px;
    z-index: 3;


    border-left: 3px solid #2D6A1F;

}
.container .content .coord .card{
    display: grid;
    grid-template-columns: 90px 10px 1fr;

}

.container .content .coord .card .label {
    text-align: left;
}

.container .content .coord .card .colon {
    text-align: center;
}

.container .content .coord .card .value {
    text-align: left;
}


    /*/////// footer ///////*/
.container div.footer {
    grid-area: footer;
    border-style: none;
    height: 100px;
    background: linear-gradient(to bottom, #947352, #704F38);

    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;

}

.container .footer .footer-left {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-left: auto;
}
.container .footer .footer-left span {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}
.container .footer .footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
}
.container .footer .footer-right a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    padding: 5px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    transition: all 0.15s;
}
.container .footer .footer-right a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.35);
}
.container .footer .dot {
    color: rgba(255,255,255,0.2);
    font-size: 14px;
}
.container .footer .li-icon {
    width: 14px; height: 14px;
    background: #0A66C2;
    border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 700; color: white;
    flex-shrink: 0;
}



