:root {
    --charcoal: #575656;
    --navy: #0f1436;
    --navy-text: #0c2340;
    --blue: #007bb6;
    --page-bg: #f4f7fb;
    --label: #16273a;
    --muted: #5c6b7a;
    --placeholder: #757575;
    --nav-text: #42526b;
    --border: #d8dee6;
    --card-border: #e3e8ee;
    --footer-link: #7e97b4;
    --required: #f5222d;
    --spacing: .25rem;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--page-bg);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--navy-text);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

a.btn-secondary {
    display: block;
    text-align: center;
}

.hidden {
    display: none;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- Header ---------- */
.header {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 40px;
}

.logo {
    display: flex;
    align-items: center;
    height: 52px;
}

.logo svg {
    display: block;
    height: 52px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--nav-text);
    cursor: pointer;
}

.nav-item svg {
    display: block;
}

/* Zusätzliche Header-Klassen für den eingeloggten Zustand */
.nav-user {
    color: var(--nav-text);
    font-size: 16px;
}

.nav-user b {
    color: var(--navy-text);
}

.btn-outline {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 16px;
    color: var(--nav-text);
    background: #fff;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--page-bg);
}

.btn-outline svg {
    width: 18px;
    height: 18px;
    display: block;
}

.hover\:text-navy:hover {
    color: var(--navy);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 13px 41px;
    font-size: 16px;
    padding-block: calc(var(--spacing) * 8);
}

.breadcrumb .crumb {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #575656;
}

.home:hover {
    text-decoration: underline;
}

.breadcrumb .crumb.current {
    color: var(--navy);
}

.breadcrumb svg {
    display: block;
}

/* ---------- Main ---------- */
.main {
    flex: 1 0 auto;
    display: flex;
    justify-content: center;
    padding: 0 40px 56px;
}

.card {
    background: #fff;
    width: 480px;
    max-width: 100%;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    box-shadow: 0px 10px 17px rgba(12, 35, 64, 0.08);
    padding: 41px;
}

.card-pw {
    width: 500px; /* Etwas breiter für Passwort ändern */
}

.card-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.card-logo svg {
    display: block;
    height: 52px;
    width: auto;
}

.kicker {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: bold;
    margin-bottom: 8px;
}

.card h1 {
    color: var(--navy-text);
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 8px;
}

.card .intro, .card .instruction {
    color: var(--muted);
    font-size: 14px;
    line-height: 21.7px;
    margin: 0 0 24px;
}

.card .intro .password-requirements-info {
    font-size: 0.7rem;
    line-height: 1.2;
}

.field {
    margin-bottom: 12px;
}

.row {
    display: flex;
    gap: 12px;
}

.row .field {
    flex: 1 0 0;
    min-width: 0;
}

label {
    display: block;
    color: var(--label);
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}

label .req {
    color: var(--required);
}

.control {
    position: relative;
}

input, select {
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    color: var(--navy-text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 13px 15px;
    outline: none;
}

input::placeholder {
    color: var(--placeholder);
}

input:focus, select:focus {
    border-color: var(--blue);
}

/* Readonly Inputs */
input[readonly] {
    background: #eef1f5;
    color: var(--muted);
    cursor: not-allowed;
}

select {
    color: var(--placeholder);
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.password-control input {
    padding-right: 46px;
}

.toggle-eye {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
}

.submit {
    width: 100%;
    background: var(--blue);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 7px;
    padding: 13px;
    cursor: pointer;
    margin-top: 24px;
}

.submit:hover:not(:disabled) {
    background: var(--navy);
}

.submit:disabled {
    background: #bfbfbf;
    cursor: not-allowed;
}

/* Alternative & Cancel Buttons */
.btn-secondary {
    width: 100%;
    background: #fff;
    color: var(--blue);
    font-family: inherit;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid var(--blue);
    border-radius: 7px;
    padding: 13px;
    cursor: pointer;
    margin-top: 12px;
}

.btn-secondary:hover {
    background: var(--page-bg);
}

.btn-cancel {
    flex: 1;
    background: #fafbfc;
    color: var(--blue);
    font-family: inherit;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid #bfbfbf;
    border-radius: 7px;
    padding: 13px;
    cursor: pointer;
}

.btn-cancel:hover {
    background: #f0f3f7;
}

.card-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.card-actions .submit {
    margin-top: 0;
    flex: 1.5;
}

.login-hint {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin-top: 13px;
}

.login-hint-right {
    text-align: right;
}

.login-hint a {
    color: var(--blue);
    font-weight: bold;
}

/* ---------- Language selector ---------- */
.language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.language-switcher-button {
    border: 0;
    background: transparent;
    padding: 0;
}

.language-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
    width: 150px;
    margin: 8px 0 0;
    padding: 4px;
    list-style: none;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08),
    0 3px 6px -4px rgba(0, 0, 0, 0.12),
    0 9px 28px 8px rgba(0, 0, 0, 0.05);
}

.language-menu.open {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.language-menu-item {
    width: 100%;
}

.language-menu-item-current {
    background: var(--page-bg);
}

.language-menu-link {
    display: flex;
    align-items: center;
    width: 100%;
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--nav-text);
    font-size: 14px;
}

.language-menu-link:hover {
    background: var(--page-bg);
}

/* ---------- Footer ---------- */
.footer {

}

.footer-top {
    background: var(--navy);
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
    /*margin: 0 40px 0 0;*/
    padding: 54px 40px 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 4fr 1fr 1fr;
}

.footer-logo svg {
    display: block;
    height: 52px;
    width: auto;
}

.footer-about {
    color: #fafafa;
    font-size: 16px;
    line-height: 21.6px;
    max-width: 300px;
    margin-top: 9px;
}

.footer-col h4 {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.footer-col a {
    display: block;
    color: var(--footer-link);
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-col a:last-child {
    margin-bottom: 0;
}

.subscribe .btn {
    display: inline-block;
    background: #fff;
    color: var(--navy-text);
    font-size: 14px;
    font-weight: bold;
    border-radius: 8px;
    padding: 16px 24px;
    width: 160px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 12px;
}

.subscribe .note {
    color: #5e789a;
    font-size: 12px;
}

.subscribe .note a {
    color: #6e9bd0;
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.socials {
    display: flex;
}

.social {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--charcoal);
    font-size: .875rem;
    cursor: pointer;
}

.social svg {
    display: block;
}

.copyright {
    color: #5e789a;
    font-size: 12.5px;
}

.has-error {
    border-color: #c00
}

.alert {
    border: 1px solid transparent;
    margin-bottom: 20px;
}

.alert-success {
    background-color: rgb(233, 244, 233);
    border-color: rgb(63, 156, 53);
    border-radius: 4px;
    color: rgb(54, 54, 54);
    font-size: 0.857143rem;
    padding: 10px;
    width: 100%;
}

.alert-warning {
    display: none;
}

.alert-error {
    background: rgb(251, 237, 239);
    border: 1px solid rgb(247, 193, 201);
    border-radius: 4px;
    font-size: 0.857143rem;
    padding: 10px;
    width: 100%;
}

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 48rem) {
    .md\:inline {
        display: inline;
    }
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

@media (min-width: 64rem) {
    .lg\:flex-row {
        flex-direction: row;
    }
}

@media (max-width: 720px) {
    .header {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }

    .footer {
        margin: 0;
        border-radius: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .socials {
        flex-wrap: wrap;
    }
}

.items-center {
    align-items: center;
}

.gap-10 {
    gap: calc(var(--spacing) * 10);
}

.w-full {
    width: 100%;
}

.py-4 {
    padding-block: calc(var(--spacing) * 4);
}

.py-12 {
    padding-block: calc(var(--spacing) * 12);
}

.px-6 {
    padding-inline: calc(var(--spacing) * 6);
}

.md\:gap-4 {
    gap: calc(var(--spacing) * 4);
}

.mt-auto {
    margin-top: auto;
}

.mx-auto {
    margin-inline: auto;
}

.lg\:justify-between {
    justify-content: space-between;
}

.lg\:items-start {
    align-items: flex-start;
}

.lg\:mr-10 {
    margin-right: calc(var(--spacing) * 10);
}

.lg\:px-10 {
    padding-inline: calc(var(--spacing) * 10);
}
