/* libre-franklin-300 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Libre Franklin';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/libre-franklin-v13-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* libre-franklin-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Libre Franklin';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/libre-franklin-v13-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* libre-franklin-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Libre Franklin';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/libre-franklin-v13-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* General Styles */

* {
    box-sizing: border-box;
}

html, body {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: max(1vw, 16px) !important;
    color: #4d4d4d !important;
    margin: 0 !important;
}

body {
    display: flex !important;
    flex-direction: row !important;
}

.sidebar_image {
    background-color: #eff2f5 !important;
    height: 100vh !important;
    width: 20vw !important;
    background-image: url("../images/Grafik_2.png") !important;
    background-repeat: no-repeat !important;
    background-position: 50% 50% !important;
}

.wrapper {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.wrapper .logo {
    width: 28vw;
}

.wrapper .button.login_button {
    width: 30vw;
    margin-bottom: 5rem;
}

.button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.2rem;
    background-color: #ffb300;
    color: #fff;
    text-decoration: none;
    text-align: center;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.2rem;
    transition: background-color 0.3s ease-in-out;
    cursor: pointer;
    min-width: 10vw;
    font-size: inherit;
}

.button svg {
    height: 1em;
    fill: #fff;
}

.button:hover {
    background-color: #4d4d4d;
    color: white;
}

.button:hover svg {
    fill: white;
}

/* Login-Page */

.wrapper.login_page {
    position: relative;
}

.wrapper.login_page .logo {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 20vw;
}

.wrapper.login_page .welcome {
    text-align: center;
}

.wrapper.login_page .welcome h1 {
    font-size: 2.5rem;
    margin: 0 0 0.1em 0;
}

.wrapper.login_page .welcome p {
    margin: 0 0 1em 0;
}

#login_form {
    width: 30vw;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 5rem;
}

#login_form input {
    background-color: #eff2f5;
    color: black;
    border: none;
    border-radius: 0.2rem;
    padding: 0.5rem 1rem;
    font-size: inherit;
}

#login_form .form_line {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

#login_form a {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

#login_form a:hover {
    text-decoration: underline;
}

@media (max-width: 1000px) {
    body {
        flex-direction: column-reverse;
    }
    .sidebar_image {
        width: 100vw;
        height: 260vw;
    }
    .wrapper {
        min-height: 50vh;
    }
    .wrapper .logo {
        width: 75vw;
    }   
    .wrapper .button.login_button {
        width: 80vw;
    }

    .wrapper.login_page .logo {
        position: initial;
        width: 75vw;
        margin-bottom: 10rem;
    }

    #login_form {
        width: 80vw;
    }

    #login_form .form_line {
        flex-direction: column-reverse;
        align-items: stretch;
    }
}
/* Manuals footer — anchored to the bottom of the login panel,
   absolute-positioned so it never displaces the centered form. */
.login_manuals_footer {
    position: absolute;
    left: 50%;
    bottom: 1.75rem;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    pointer-events: none;
    z-index: 2;
}

.manual_chip {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid #e3e6ea;
    border-radius: 0.2rem;
    background-color: #ffffff;
    color: #4d4d4d;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.manual_chip:hover,
.manual_chip:focus-visible {
    border-color: #ffb300;
    color: #ffb300;
    transform: translateY(-1px);
    outline: none;
}

.manual_chip:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.2);
}

.manual_chip__icon {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
}

.manual_chip__label {
    line-height: 1;
}

@media (max-width: 1000px) {
    .login_manuals_footer {
        position: static;
        transform: none;
        left: auto;
        bottom: auto;
        margin-top: 2rem;
        padding-bottom: 1.5rem;
    }
}
