@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --paper: #f7f6f1;
    --ink: #202630;
    --muted: #73777d;
    --line: #e2e0d8;
    --white: #fffefa;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Manrope, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

header {
    height: 78px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(5vw, 22px);
    background: #f7f6f1ee;
}

header > div {
    font-size: 12px;
    color: var(--muted);
}

header > div a {
    font-weight: 700;
    color: var(--ink);
    margin-left: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
}

.brand b {
    font-weight: 500;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .2em;
    margin-top: 4px;
}

.mark {
    width: 38px;
    height: 32px;
    background: var(--ink);
    color: var(--paper);
    display: grid;
    place-items: center;
    clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
}

main {
    max-width: 1120px;
    width: calc(100% - 48px);
    margin: auto;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: .2em;
    color: var(--muted);
    margin-top: 42px;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding: 24px 0 38px;
    border-bottom: 1px solid var(--line);
}

h1 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: .99;
    letter-spacing: -.065em;
    margin: 0 0 18px;
    font-weight: 800;
}

h1 em {
    font-style: normal;
    color: #777d83;
}

.hero p,
.loginpanel > p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--muted);
    margin: 0;
    max-width: 520px;
}

.hero aside {
    text-align: right;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.9;
    letter-spacing: .18em;
}

.hero aside strong {
    color: var(--ink);
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 26px;
}

.panel,
.loginpanel {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 28px;
}

.kicker {
    font-size: 10px;
    letter-spacing: .2em;
    font-weight: 800;
    color: var(--muted);
}

h2 {
    font-size: 25px;
    letter-spacing: -.045em;
    margin: 12px 0 8px;
}

.panel p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 20px;
}

input:not([type=file]) {
    width: 100%;
    height: 45px;
    border: 1px solid var(--line);
    background: var(--white);
    padding: 0 12px;
    font: 13px Manrope, Arial, sans-serif;
    margin: 8px 0 12px;
}

input:focus {
    outline: 2px solid #c9b38c;
    outline-offset: 1px;
}

input[type=file] {
    display: block;
    width: 100%;
    padding: 14px;
    border: 1px dashed #c9c7bf;
    background: #fbfaf6;
    margin-bottom: 16px;
    font: 12px Manrope, Arial, sans-serif;
}

label {
    font-size: 11px;
    font-weight: 700;
}

button {
    border: 0;
    background: var(--ink);
    color: white;
    min-height: 46px;
    padding: 0 18px;
    width: 100%;
    font: 700 12px Manrope, Arial, sans-serif;
    text-align: left;
    cursor: pointer;
}

button:hover {
    opacity: .88;
}

.outline {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
    margin-top: 12px;
}

.notice {
    padding: 13px 15px;
    font-size: 12px;
    margin-top: 18px;
}

.ok {
    background: #e8efe7;
    color: #31533a;
}

.err {
    background: #f6e6e2;
    color: #80382b;
}

.section {
    margin-top: 42px;
}

.sectionhead {
    margin-bottom: 16px;
}

.sectionhead h2 {
    font-size: 30px;
    margin: 10px 0 0;
}

.list {
    border-top: 1px solid var(--line);
}

.row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 10px;
    border-bottom: 1px solid var(--line);
    min-width: 0;
}

.row:hover {
    background: #fffefa99;
}

.symbol {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    background: #eceae2;
}

.fileinfo {
    flex: 1;
    min-width: 0;
}

.fileinfo b {
    font-size: 12px;
    display: block;
    overflow-wrap: anywhere;
}

.fileinfo small {
    font-size: 10px;
    color: var(--muted);
    display: block;
    margin-top: 5px;
    line-height: 1.5;
}

.download {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.x {
    width: 28px;
    min-height: 28px;
    padding: 0;
    text-align: center;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 18px;
}

.empty {
    padding: 25px;
    border: 1px dashed #d5d2c9;
    color: var(--muted);
    font-size: 12px;
}

footer {
    border-top: 1px solid var(--line);
    margin-top: 55px;
    padding: 22px 0 30px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .14em;
}

.login {
    max-width: 520px;
}

.login .eyebrow {
    margin-top: 58px;
}

.loginpanel {
    margin-top: 18px;
    padding: clamp(26px, 6vw, 48px);
}

.loginpanel h1 {
    font-size: clamp(42px, 9vw, 60px);
    margin: 18px 0;
}

.loginpanel form {
    margin-top: 26px;
}

.loginpanel label {
    display: block;
    margin-top: 16px;
}

/* Abstand nur für den Anmeldebutton */
.loginpanel form > button[type="submit"] {
    margin-top: 12px;
}

.private {
    display: block;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    margin-top: 26px;
    color: var(--muted);
    font-size: 10px;
}

.caption {
    text-align: center;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .18em;
    margin: 24px 0 40px;
}

/* Passwortfeld mit integriertem Augen-Symbol */
.password-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.loginpanel form .password-wrapper input[type="password"],
.loginpanel form .password-wrapper input[type="text"] {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 45px;
    margin: 8px 0 12px;
    padding: 0 48px 0 12px;
    border: 1px solid var(--line);
    background: var(--white);
    font: 13px Manrope, Arial, sans-serif;
}

.loginpanel form .password-wrapper .password-toggle {
    position: absolute;
    top: 22.5px;
    right: 5px;
    bottom: auto;
    left: auto;
    transform: translateY(-50%);
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    min-width: 36px;
    max-width: 36px;
    height: 36px;
    min-height: 36px;

    margin: 0;
    padding: 0;

    border: none;
    background: transparent;
    color: var(--muted);

    font: inherit;
    text-align: center;
    cursor: pointer;
    opacity: .85;
}

.loginpanel form .password-wrapper .password-toggle:hover {
    background: transparent;
    opacity: 1;
}

.loginpanel form .password-wrapper .password-toggle:focus-visible {
    outline: 2px solid #c9b38c;
    outline-offset: 1px;
}

.loginpanel form .password-wrapper .password-toggle svg {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@media (max-width: 700px) {
    header {
        height: 68px;
        padding: 0 16px;
    }

    .brand {
        font-size: 10px;
    }

    main {
        width: calc(100% - 34px);
    }

    .eyebrow {
        margin-top: 30px;
    }

    .hero {
        align-items: start;
    }

    .hero aside {
        display: none;
    }

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

    .panel {
        padding: 22px;
    }

    .row {
        gap: 8px;
        padding: 12px 5px;
    }

    .download {
        font-size: 10px;
    }

    .fileinfo small {
        font-size: 9px;
    }

    footer {
        flex-direction: column;
        gap: 10px;
    }

    .login .eyebrow {
        margin-top: 36px;
    }
}