:root {
    --border-style: 1px solid #ccc;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.header-top {
	height: 50px;
	width: 105px;
}

.header-top2 {
	height: fit-content;
	width: 100%;
    padding: 5px 5px;
    margin: 0;
    border: 1px solid;
    border-radius: 4px;
    border-color: cadetblue;
    text-align: left;
    position: relative;
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    box-sizing: border-box;
}

.footer {
	text-align: center;
}

nav {
    background-color: #444;
    color: #fff;
    padding: 15px;
    text-align: center;
}

nav a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    font-size: 18px;
}

nav a:hover {
    text-decoration: underline;
}

main {
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

fieldset {
    border: var(--border-style);
    border-radius: 8px;
    padding: 20px;
    background-color: #f9f9f9;
}

legend {
    font-weight: bold;
    padding: 0 10px;
}

form label {
    font-weight: bold;
}

.form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.quarter-width {
    flex: 0.15;
}

.quarter2-width {
    flex: 0.33;
}

.half-width {
    flex: 0.5;
}

form input[type="text"],
form input[type="email"],
form input[type="date"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: calc(70%);
    margin-bottom: 10px;
}

form input[type="date"],
form input[type="datetime-local"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: auto;
    margin-bottom: 10px;
}

form input[type="checkbox"] {
    margin-right: 10px;
}

#hardware-selection-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#hardware-selection-fields div {
    display: flex;
    align-items: center;
}

form button {
    padding: 10px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

form button:hover {
    background-color: #555;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    font-size: 14px;
}

form input[type="text"].full-width,
form input[type="email"].full-width,
form input[type="date"].full-width {
    width: 100%;
}

.email-item {
    display: inline-block;
    padding: 5px 10px;
    margin: 5px;
    background-color: #e0e0e0;
    border-radius: 4px;
}

.email-item button {
    margin-left: 10px;
    background-color: transparent;
    color: #333;
    border: none;
    cursor: pointer;
    font-size: 12px;
}

email-item button:hover {
    color: #000;
}

.email-field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.email-field input[type="text"] {
    flex: 1;
}

.email-field select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: calc(20%);
    margin-bottom: 10px;
}

#selection-buttons {
    text-align: center;
    margin-bottom: 5px;
  /*  margin-left: calc(25%);
    margin-right: calc(25%);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #dbdbdb; */
}

#selection-buttons button {
    padding: 10px 20px;
    margin: 10px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#selection-buttons button:hover {
    background-color: #555;
}

#selection-buttons button.active {
    background-color: #007bff;
    color: #fff;
}

.sub-tabs {
    text-align: center;
    margin-bottom: 20px;
   /* margin-left: calc(30%);
    margin-right: calc(30%);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #ededed; */
}

.sub-tabs button {
    padding: 10px 20px;
    margin: 10px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.sub-tabs button:hover {
    background-color: #555;
}

.sub-tabs button.active {
    background-color: #007bff;
    color: #fff;
}

.submitted-data-list {
    list-style-type: none;
    padding: 0;
}

.submitted-data-list > li {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 10px;
}

.submitted-data-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.submitted-data-list ul li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.submitted-data-list ul li:last-child {
    border-bottom: none;
}

.notes {
    height: 100%;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    min-height: 50px;
    max-height: 100px;
    resize: vertical;
}

.single-buttons {
    padding: 5px 5px;
    margin: 0;
    border: none;
    text-align: center;
    position: fixed;
    top: 10px;
    right: 10px;
}

.single-button button {
    padding: 5px 5px;
    margin: 0;
    margin-bottom: 3px;
    background-color: #333;
    color: #fff;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    position: relative;
    top: 10px;
    right: 10px;
}

.single-button button:hover {
    background-color: #555;
}

/*.hinweistext-field {
    padding: 5px 5px;
    margin: 0;
    border: none;
    text-align: left;
    position: fixed;
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    box-sizing: border-box;
}*/

.hinweistext {
    width: 100%;
    padding: 5px 5px;
    margin: 0;
    border: 1px solid;
    border-radius: 4px;
    border-color: cadetblue;
    text-align: left;
    position: relative;
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    box-sizing: border-box;
}


@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    header {
        font-size: 20px;
        padding: 15px 0;
    }

    nav {
        padding: 10px;
    }

    nav a {
        display: block;
        margin: 10px 0;
        font-size: 16px;
    }

    main {
        padding: 10px;
        margin: 10px auto;
    }

    .form-row {
        flex-direction: column;
    }

    .form-group {
        width: 100%;
    }

    .quarter-width,
    .quarter2-width,
    .half-width {
        width: 100%;
    }

    form input[type="text"],
    form input[type="email"],
    form input[type="date"],
    form input[type="datetime-local"] {
        width: 100%;
    }

    #selection-buttons button,
    #move-sub-tabs button {
        width: 100%;
        margin: 10px 0;
    }

    /*.hinweistext-field,
    .hinweistext {
        position: static;
        width: 100%;
    }*/
}
