:root {
    --primary-color: #3498db;
    --secondary-color: #f5f5f5;
    --border-color: #ddd;
    --header-bg: #f8f9fa;
    --text-color: #333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Header */

.navbar {
    background-color: #f5f5f5;
    color: #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    margin-bottom: 20px;
}

.navbar-container {
    display: flex;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    padding: 10px;
    margin-right: 100px;
    display: flex;
    align-items: center;
}

.logo-titel{
    margin-left: 20px;
    font-weight: bold;
    font-size: 20px;
}

.logo-titel span{
    font-size: 18px;
    font-weight: normal;
}

.logo {
    width: 40px;
    height: auto;
}

.menu-container {
    display: flex;
    flex-grow: 1;
}

.menu-category {
    position: relative;
    margin-right: 15px;
}

.category-title {
    padding: 15px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    font-size: 18px;
    background-color: lightgray;
    border-radius: 25px;
    min-width: 125px;
}

.category-title:hover {
    background-color: #e6e6e6;
}

.menu-items {
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    background-color: #f5f5f5;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 180px;
    z-index: 100;
    display: none;
}

.menu-category:hover .menu-items {
    display: block;
}

.menu-item {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.menu-item:hover {
    background-color: #e6e6e6;
    cursor: pointer;
}

.menu-item.active {
    background-color: #6a89cc;
    color: white;
}

.menu-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.footer {
    padding: 10px 15px;
    margin-left: auto;
}

.footer a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.toggle-btn {
    display: none;
    background-color: #6a89cc;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    margin: 10px;
    cursor: pointer;
}

.content {
    flex-grow: 1;
    padding: 20px;
    background-color: #fff;
}

/* Responsive Styles */
@media (max-width: 935px) {
    .navbar-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
    }

    .logo-titel span{
        display: none;
    }
    
    .logo-container {
        width: 100%;
        justify-content: space-between;
        padding: 10px 15px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .toggle-btn {
        display: block;
        margin: 0;
    }
    
    .menu-container {
        flex-direction: column;
        width: 100%;
        display: none;
    }
    
    .menu-container.active {
        display: flex;
    }
    
    .menu-category {
        margin-right: 0;
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .category-title {
        padding: 15px;
    }
    
    .menu-items {
        position: static;
        display: none;
        box-shadow: none;
        padding-left: 15px;
    }
    
    .menu-category.open .menu-items {
        display: block;
    }
    
    .footer {
        width: 100%;
        text-align: center;
        padding: 15px;
        border-top: 1px solid #e0e0e0;
    }
}

@media (max-width: 1033px) {
    .logo-container{
        margin-right: 0px;
    }
}


/* body */

body {
    color: var(--text-color);
    line-height: 1.6;
    padding: 15px;
    background-color: #fff;
    font-size: 16px;
}

h2 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    color: #333;
    background-color: var(--secondary-color);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: inline-block;
    min-width: 210px;
    margin-bottom: 5px;
    font-size: 14px;
    padding-right: 5px;
}

.form-group label.required::after {
    content: " *";
    color: red;
}

.form-group label em {
    display: none;
}

.form-control {
    width: 100%;
    height: 2rem;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.form-control-text {
    width: 100%;
    height: 4rem;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.form-checkbox {
    width: 100%;
    height: 1.5rem;
    padding: 5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.col {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
    padding: 0 10px;
    margin-bottom: 15px;
}

.col-6 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 10px;
    margin-bottom: 15px;
}

.dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropdown-toggle {
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.dropdown-toggle::after {
    content: "▼";
    font-size: 10px;
    margin-left: 5px;
}

table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}

th, td {
    border: 1px solid var(--border-color);
    padding: 8px;
    text-align: left;
}

th {
    background-color: var(--header-bg);
    font-weight: normal;
}

.file-upload {
    border: 2px dashed var(--border-color);
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
    margin-top: 10px;
    border-radius: 4px;
}

.file-upload:hover{
    border-color: green;
}

.file-upload-icon {
    font-size: 24px;
    color: #aaa;
}

/* Sections */
.section {
    margin-bottom: 30px;
}

.section span{
    margin-top: 11px;
    margin-right: 5px;
}

/* Spezifische Anpassungen */
.date-field {
    color: #888;
}

.green-border {
    border-color: green;
}

iframe {
    width:100%;
    border:none;
}

iframe.iframe_hidden {
    display: none;
}

.checkbox-cell {
    height: 15%;
    text-align: center;
}

.checkbox-cell input {
    height: 100%;
    width: 100%;
    text-align: center;
}
.checkbox input{
    width: 20px;
    height: 20px;
    display: flex;
    margin: auto;
}

/* Responsive Media Queries */
@media (min-width: 676px) {
    .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    body {
        padding: 20px;
    }
    
    .form-group label {
        width: 180px;
    }

}

@media (max-width: 676px) {
    .col-6 {
        padding: 0 0;
    }

    .form-row {
        margin-right: 0;
        margin-left: 0;
    }
    
    .date-field {
        font-size: 14px;
    }
    
    h2 {
        font-size: 13px;
    }
    
    table {
        font-size: 14px;
    }

    .form-group label em {
        display: contents;
        font-size: 10px;
    }
}

/* Verbesserungen für Touch-Geräte */
@media (hover: none) {
    .form-control, .dropdown-toggle {
        padding: 12px;
    }

    .form-control-text, .dropdown-toggle {
        padding: 12px;
    }
    
    button, .file-upload {
        min-height: 44px;
    }
}

/* Druckanpassungen */
@media print {
    body {
        padding: 0;
        font-size: 12pt;
    }
    
    .section {
        page-break-inside: avoid;
    }
}