* {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-weight: normal;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    background-color: #f8f8f8;
}

body {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

hr {
    width: 80%;
    margin-top: 26px;
    margin-bottom: 18px;
}

/* ===== Loader Styles ===== */

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000d8; /* oder rgba(255,255,255,0.9) */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.25s ease;
}

#loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #ccc;
    border-top-color: #354d6e; /* Farbe anpassbar */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#loader p {
    margin-top: 15px;
    font-size: 1.2em;
    color: #b7b7b7;
}

/* ===== Header ===== */

header {
    display: flex;
    width: 100vw;
    position: sticky;
    flex-direction: row;
    flex-wrap: wrap;
    background-color: #3b5374;
    color: white;
    align-items: center;
}

header a {
    padding: 0 14px;
    margin: 0;
    height: 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    color: white;
}

header a:first-of-type p {
    font-weight: bold !important;
}

header a:hover {
    background-color: #00000046;
}

header a img {
    height: 90%;
    margin-right: 12px;
}

header a p {
    padding: 0;
    margin: 0;
}

/* =================== */

b {
    font-weight: bold;
}

a {
    color: #ecca50;
    font-weight: 600;
}

main a, .content a, a.dark {
    color: #2462b8;
}

h1 {
    font-size: 65px;
    font-weight: 600;
    margin: 0;
    margin-top: 20px;
    margin-bottom: 20px;
}

h2 {
    font-size: 45px;
    margin: 0;
    margin-top: 15px;
    margin-bottom: 15px;
}

h3 {
    font-size: 25px;
    margin: 0;
    margin-top: 10px;
    margin-bottom: 5px;
}

h4 {
    font-size: 18px;
    margin: 0;
    margin-top: 5px;
    margin-bottom: 5px;
}

.center {
    text-align: center;
}

.hint {
    font-size: 16px;
}

.error {
    padding: 10px 15px;
    border-radius: 10px;
    background-color: darkred;
    color: white;
}

.success {
    padding: 10px 15px;
    border-radius: 10px;
    background-color: darkgreen;
    color: white;
}

.content, main {
    padding: 30px 2vw;
    width: 100vw;
    overflow-x: scroll;
    font-size: 18px;
}

input {
    font-size: 17px;
    margin-top: 6px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    margin-top: 20px;
    position: relative;
    table-layout: fixed;
}

table.width-auto {
    width: auto;
}

th, td {
    background: #e3e3e3;
    color: black;
    border: 1px solid black;
    font-size: 16px;
    padding: 5px;
    position: relative;
}

thead th {
    font-weight: bold;
    background: #bdbdbd;
    text-decoration: underline;
}

th {
    font-weight: bold;
    background: #cccccc;
}

footer {
    width: 100vw;
    background-color: #3b5374;
    color: white;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
}

footer div {
    padding: 10px;
}

footer a {
    color: #ecca50;
    font-weight: 600;
}

a.input-small, input.input-small {
    padding: 4px 6px;
    text-decoration: none;
    color: #131B23;
    border: 2px solid #354d6e;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
    background-color: #ffffff;
    vertical-align: middle;
    font-weight: bold;
}

a.input-small:hover, input.input-small:hover {
    background-color: #354d6e;
    color: #E8F1F2;
    font-style: normal;
}

a.input-small.active, input.input-small.active {
    padding: 6px 9px;
    background-color: cadetblue;
    text-decoration: none;
    color: #E8F1F2;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
    vertical-align: middle;
}

a.input-small.active:hover, input.input-small.active:hover {
    background-color: rgb(64, 110, 111);
    font-style: normal;
}