html {
    -webkit-text-size-adjust: 100%;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 2rem;
    color: #000;
    background-color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 300;
    line-height: 1.3;
    font-size: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    word-break: break-word;
}

@media (min-width: 70rem) {
    body {
        height: 100vh;
        box-sizing: border-box;
    }
}

.header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.header p {
    margin: 0;
}

h1 {
    color: #045462;
    font-size: 2rem;
    margin: 0;
}

form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    padding-bottom: 2rem;
    border-bottom: 5px solid #045462;
    margin-bottom: 2rem;
}

.table-container {
    overflow: auto;
    width: 100%;
}

table {
    text-align: left;
    border: 1px solid #ccc;
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    padding: 0.3rem 0.5rem;
    white-space: nowrap;
}

@media (min-width: 70rem) {
    th,
    td {
        white-space: initial;
    }
}

tr:nth-child(even) {
    background-color: #e5edef;
}

.form__field {
    display: flex;
    min-width: 16rem;
    width: calc(20% - 1.6rem);
    flex-direction: column;
    justify-content: flex-end;
}

input,
select {
    border: 1px solid #000;
    padding: 0.3em 0.7em;
    line-height: 1;
    font-size: 1rem;
    max-width: 100%;
    height: auto;
    border-radius: 0;
    outline: 0;
    height: 1.875rem;
    box-sizing: border-box;
    background-color: transparent;
}

input:active,
select:active,
input:focus,
select:focus {
    border: 1px solid #000;
    border-radius: 0;
    outline: 0;
}

input[type="file"] {
    border: none;
    padding: 0;
    height: auto;
}

a {
    text-decoration: none;
    color: #045462;
}

a:hover {
    opacity: 0.7;
}

button {
    position: relative;
    color: #fff;
    background: #045462;
    line-height: 1;
    padding: 0.8em 4.6rem 0.6em 1rem;
    margin-top: 0.6rem;
    font-size: 1rem;
    border: none;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s;
    overflow: hidden;
    width: 12rem;
    text-align: center;
    align-content: center;
    cursor: pointer;
    box-sizing: border-box;
    height: 2.375rem;
    margin-left: auto;
    
}

button:hover {
    background: #f8ec17;
    color: #045462;
    transition: all 0.3s;
    border: 0;
}

button:before {
    content: "" !important;
    position: absolute;
    top: 0;
    right: -5px;
    width: 60px;
    height: 105%;
    background: #256f7d;
    transform: skewX(-12deg);
    transition: all 0.3s;
    z-index: 1;
}

button:hover:before {
    background: #d4d522;
    transition: all 0.3s;
}

button:after {
    content: " ";
    font-size: 1.3rem;
    position: absolute;
    top: 0;
    padding-top: 0.1em;
    right: -5px;
    width: 60px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    z-index: 2;
    background: rgba(0, 0, 0, 0) url(icons/btn-arrow.svg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='10'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M20.27 8.25c-.24.31-.42.6-.42.89 0 .23.12.44.33.61.17.17.36.25.57.25.33 0 .63-.23.92-.6l2.89-3.49c.23-.29.44-.54.44-.9s-.21-.61-.44-.9L21.67.6c-.29-.37-.61-.6-.94-.6-.44 0-.88.5-.88.86 0 .3.18.58.42.89l1.92 2.34h-21c-.71 0-1.19.2-1.19.9 0 .75.48.92 1.19.92h21l-1.92 2.34z'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
}

button:hover:after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='10'%3E%3Cpath fill='%23045462' fill-rule='evenodd' d='M20.27 8.25c-.24.31-.42.6-.42.89 0 .23.12.44.33.61.17.17.36.25.57.25.33 0 .63-.23.92-.6l2.89-3.49c.23-.29.44-.54.44-.9s-.21-.61-.44-.9L21.67.6c-.29-.37-.61-.6-.94-.6-.44 0-.88.5-.88.86 0 .3.18.58.42.89l1.92 2.34h-21c-.71 0-1.19.2-1.19.9 0 .75.48.92 1.19.92h21l-1.92 2.34z'/%3E%3C/svg%3E");
}

/* Neuen Container für die Buttons anlegen */
.button-container {
    display: flex;
    align-items: center; /* Vertikale Zentrierung */
    justify-content: flex-start; /* Buttons links ausrichten */
    gap: 2rem; /* Abstand zwischen den Buttons */
    width: auto; /* Gesamte Breite nutzen */
    margin-left: auto;
}

/* Grundstil für Benachrichtigungen */
.notification {
    position: fixed;
    top: 20px; /* Abstand vom oberen Rand */
    right: 20px; /* Abstand vom rechten Rand */
    background-color: #333;
    color: #fff;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 1000; /* Sicherstellen, dass es über anderen Elementen liegt */
    transition: opacity 0.5s ease-out;
    opacity: 1;
}

/* Erfolgsmeldungen */
.notification.success {
    background-color: #4caf50;
}

/* Fehlermeldungen */
.notification.error {
    background-color: #f44336;
}
