:root {
    /* Basisfarben */
    --color-bg: #f0f0f0;
    --color-text: #333333;
    --color-text-light: #666666;
    
    /* Technische Akzentfarben */
    --color-primary: #0066cc;
    --color-primary-hover: #004d99;
    --color-secondary: #009933;
    --color-accent: #ff6600;
    --color-error: #cc0000;
    
    /* Rahmen & Trennlinien */
    --color-border: #cccccc;
    --color-border-light: #e0e0e0;
    
    /* Code/Technische Elemente */
    --color-code-bg: #e6e6e6;
    --color-code-text: #222222;
    --color-highlight: #ffffcc;
}

* {
    box-sizing: border-box;
}

html, body {
    margin:  0px;
    padding: 0px;
    height: 100%;
    overflow: hidden;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#container {
    line-height: 1.6;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 210px 1fr;
    max-width: 110rem;
    margin: auto;
}

header {
    background-color: white;
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--color-border);
    padding: 15px 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 1000;
    height: 60px;
}

.head1 {
    color: var(--color-primary);
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 2.5rem;
    flex-basis: 50%;
}

.headInfo {
    color: var(--color-primary);
    font-size: 1.7rem;
    font-weight: bold;
    margin-left: 4rem;
}

.headUser {
    margin-right: 2.5rem;
}

header img {
    width: 30px;
    transform: translateY(7px);
}

nav {
    background-color: white;
    border-right: 1px solid var(--color-border);
    /* padding: 1rem 20px; */
    overflow-y: auto;
    height: calc(100vh - 60px);
    position: sticky;
    top: 6px;
    /* align-self: start; */
}

.navhead {
    padding: 20px 1rem 20px;
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: 20px;  
}

.navhead h2 {
    color: var(--color-primary);
    margin: 0;
    font-size: 1.3rem;
}

nav ul {
    display: block;
    text-align:left;
    list-style: none;
    padding-left: 0px;
    margin: 0 0;
    cursor: pointer;
}

nav ul hr {
    display: block;
    width: 90%;
}

nav ul li {
    display: block;
    text-align: left;
    list-style-type: none;
    margin-top: 0.2rem;
    margin-right: 0.5rem;
}

nav li a{
    color: black;
    display: inline-block;
    text-decoration: none;
    text-align: left;
    font-size: 1rem;
    padding: 0.1rem 0.7rem;
    width: 100%;
    transition: 50ms;    
}

nav li a:hover {
    background-color: var(--color-bg);
    color: var(--color-primary);
}

nav li a.active {
    background-color: var(--color-primary);
    color: white;
}

main {
    overflow-y: auto;
    padding: 20px;
    height: calc(100vh - 60px); /* Berücksichtigt Header + Footer */
    margin-bottom: 60px; /* Platz für Footer */
}

.panel {
    background-color: white;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.panel-header {
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.panel-header h2 {
    color: var(--color-primary);
    margin: 0;
}

.panelGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.panelGridEntry {
    border-left: 3px solid var(--color-primary);
    padding-left: 15px;  
}

.panelGridEntry h3 {
    margin-top: 0;
    color: var(--color-text-light);
}

.panelGridEntryValue {
    font-size: 2em;
    font-weight: bold;
    margin: 5px 0;    
}

.dataTable {
    background-color:aquamarine;
    border-radius: 8px;
}

.dataTable table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.subTable {
    padding-left: 3rem;
}

.subTable table {
    width: 98%;
}

.dataTable table th {
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 600;    
    text-align: left;
    padding: 0.3rem 1.2rem;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-spacing: 1px 2px;
}

.dataTable table td {
    padding: 0.3rem 1.2rem;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    color: #475569;
}

.dataTable table tr >td:last-of-type {
    border-right: none;
}

.dataTable table tr:last-child td {
    border-bottom: none;
}

.dataTable table tr:hover {
    background-color: #f8fafc;
}

.dataTable table tr:last-child:hover {
    background-color: white;
}

.dataTable table input[type=text] {
    border: none;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.dataTable table input[type=text]:focus {
    border: none;
    outline: none;
    border-bottom: 1px solid var(--color-primary-hover);
}



.iconImg {
    background-color: #009933;
    padding: 3px;
    transform: translateY(7px);
    width: 27px;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid white;
}

.iconCol1 {
    background-color: #d1fae5;
    color: #065f46;
    border-color: #d1fae5;
}

.iconCol2 {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #fef3c7;
}

.iconCol3 {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #fee2e2;
}

.iconImg:hover {
    color: white;
    border-color: black;
}

footer {
    background-color: white;
    grid-column: 1 / -1;
    border-top: 1px solid var(--color-border-light);
    padding: 15px 20px;
    color: var(--color-text-light);
    font-size: 0.9em;
    z-index: 1000;
    height: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    bottom: 0;
}

.foot1 {
    color: var(--color-secondary);    
}


.version {
    font-size: 0.8rem;
    margin-left: 1.3rem;
}

.hidden {
    display: none;
}

.textBold {
    font-weight: bold;
}


