/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body und HTML auf volle Höhe setzen */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

:root {
    --color_em_orange: #eb8642;
    --color_em_grey: #4d4d4b;
    --color_background: #333;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* Header Styles */
header {
    background: var(--color_background);
    color: #fff;
    padding: 5px 20px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    justify-content: space-between;
}

header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow-x: auto;
    margin-top: 5px;
}

header .logo {
    /* height: 48px; */
    max-width: 50vw;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    /* margin: 0; */
    /* height: 48px;
    max-height: 5vw; */
    align-items: center;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--color_em_orange);
}

/* Main Section Styles */
main {
    flex: 1; /* Nimmt den verfügbaren Platz zwischen Header und Footer ein */
    padding: 20px 0;
    overflow-x: hidden; /* Verhindert Scrollbars während der Animation */
    position: relative;
}

main section, .box {
    margin: 8px;
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    position: relative;
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform: translateX(-100%);
    z-index: 0;
}

section.active {
    transform: translateX(0);
    opacity: 1;
    z-index: 1;
}

section.exit {
    transform: translateX(100%);
    opacity: 0;
    z-index: 0;
}

/* Navigation für Sections */
.section-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.section-nav button {
    padding: 10px 20px;
    background: var(--color_em_orange);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.section-nav button:hover {
    background: #d9732f;
}

main section h1, main section h2 {
    color: var(--color_background);
    margin-bottom: 10px;
}

main section h1 img, main section h2 img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

main section p {
    color: #555;
}

/* Formular-Container */
.form-container {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px 2px rgba(0, 0, 0, 0.1);
}

/* Formular-Gruppen */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: inline-block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--color_em_grey);
}

.form-group input, .form-group select, .uiinput {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: var(--color_em_orange);
    outline: none;
    box-shadow: 0 0 5px rgba(235, 134, 66, 0.5);
}

/* Submit-Button */
.btn-submit {
    width: 100%;
    padding: 10px;
    background: var(--color_em_orange);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-submit:hover {
    background: #d9732f;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 10px 0;
    background: var(--color_background);
    color: #fff;
    border-top: 1px solid #ccc;
    margin-top: auto; /* Schiebt den Footer an das Ende */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}


footer p {
    font-size: 0.9rem;
}

.tablevertical th {
    text-align: left;
}

div.horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

a.tracking {
    text-decoration: inherit;
    color: inherit;
    padding-block: 8px 0px;
}
a.tracking div.tracking-container {
    display: flex;
    flex-wrap: wrap;
    /* border:var(--color_em_grey) 1px solid; */
    /* border-radius: 8px; */
    font-size: inherit;
    width:unset;
    padding:unset;
    margin:unset;
}

a.tracking table {
    text-align: center;
    width: 100%;
    padding: 8px;
    padding-bottom: 0;
}

a.tracking a {
    width: 100%;
    color: inherit;
    text-decoration: inherit;
}

a.tracking table img {
    vertical-align: middle;
}

a.tracking table img[disabled] {
    opacity: 50%;
}

progress {
    width:100%;
    /* height: 25px; */
    color:var(--color_em_orange);
    accent-color: currentColor;
}

progress::-webkit-progress-value, progress::-moz-progress-bar {
    background: var(--color_em_orange);
}

.flexcontainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.clickable {
    text-align: center;
    font-size: small;
    width: 192px;
    padding: 8px;
    margin: 16px;
    cursor: pointer;
    border-radius: 8px;
    text-decoration: inherit;
    color: inherit;
    user-select: none;
    box-shadow: var(--color_em_grey) 0px 0px 3px 0px;
    transition: box-shadow 0.3s ease;
    background: unset;
    border: none;
}
.clickable.extend {
    width:unset;
    min-width: 192px;
}
.clickable:disabled {
    opacity: 0.5;
}
.clickable:hover, .clickable[active] {
    box-shadow: var(--color_em_orange) 0px 0px 6px 0px;
}

.clickable img {
    height: 32px;
}

.clickable p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#loading {
    width: 96px;
    z-index: -10;
    position: fixed;
    top: 0;
    left: 50%;
    /* transform: translateX(-50%); */
    margin: 200px 0;
    transition: opacity 0.3s ease;
    opacity: 0;
}

#loading img {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }
    100% {
        transform: translateX(-50%) rotate(360deg);
    }
}


.backlight {
    position: relative;
    left: 50%;
    width: 0;
    height: 0;
    box-shadow: var(--color_em_orange) 0px 0px 40px 10px;
    /* opacity: 0.25; */
    z-index: -1;
}


@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .flexcontainer {
        justify-content: space-around;
    }
}

.faqitem {
    max-width: unset;
    width: 100%;
    cursor: pointer;
    padding: 4px 10px;
    margin: 10px auto;
}

.faqitem::before {
    content: "▲";
    color: var(--color_em_grey);
    display: block;
    position: relative;
    float: right;
    right: 10px;
    width: 0;
    height: 0;
}
.faqitem.fold::before {
    content: "▼";
}

.highlight {
    transition: box-shadow 0.3s ease;
}
.highlight:hover {
    box-shadow: var(--color_em_orange) 0px 1px 4px 0px;
}
.highlight.active {
    box-shadow: var(--color_em_orange) 0px 1px 6px 1px;
}

.answer {
    border-top: solid thin;
}

.faqtoggle {
    position: absolute;
    right: 30px;
    background-color: transparent;
    border: none;
    color: var(--color_em_grey);
}