/* DEVAO Transfer – nur Arial, keine externen Ressourcen */

:root {
    --ink:    #140a32;   /* DEVAO-Dunkelblau (aus dem Logo) */
    --muted:  #6b6880;
    --line:   #d9d7e2;
    --bg:     #ffffff;
    --field:  #f7f6fa;
    --error:  #b3261e;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100%;
}

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

.wrap {
    flex: 1;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    text-align: center;
}

.logo {
    width: 200px;
    max-width: 70%;
    height: auto;
    margin: 0 auto 40px;
    display: block;
}

h1 {
    font-size: 26px;
    font-weight: bold;
    margin: 0 0 8px;
    overflow-wrap: anywhere;
}

h2 {
    font-size: 20px;
    margin: 0 0 8px;
}

.sub {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 32px;
}

/* ---------------------------------------------------------------- Form */

form { text-align: left; }

.field { display: block; margin-bottom: 20px; }

.field-label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--ink);
}

input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    background: var(--field);
    border: 1px solid var(--line);
    border-radius: 6px;
}

input[type="text"]:focus {
    outline: 2px solid var(--ink);
    outline-offset: 1px;
    border-color: var(--ink);
}

/* Dropzone */
.dropzone {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    padding: 20px;
    text-align: center;
    background: var(--field);
    border: 2px dashed var(--line);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: var(--ink);
    background: #f1effa;
}

.dropzone.hasfile { border-style: solid; border-color: var(--ink); }

.dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.dz-text {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    pointer-events: none;
    overflow-wrap: anywhere;
}

.dropzone.hasfile .dz-text { color: var(--ink); }

/* Button */
.btn {
    display: inline-block;
    width: 100%;
    padding: 14px 20px;
    font: inherit;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: var(--ink);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.btn:hover:not(:disabled) { background: #241553; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.btn-small {
    width: auto;
    padding: 10px 16px;
    font-size: 14px;
    flex-shrink: 0;
}

.error {
    color: var(--error);
    font-size: 14px;
    margin: 0 0 16px;
}

/* ------------------------------------------------------------ Progress */

.filename {
    font-size: 14px;
    margin: 0 0 12px;
    overflow-wrap: anywhere;
}

.bar {
    width: 100%;
    height: 10px;
    background: var(--field);
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
}

.bar-fill {
    width: 0%;
    height: 100%;
    background: var(--ink);
    border-radius: 999px;
    transition: width .2s linear;
}

.bar-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
    margin: 8px 0 0;
}

/* ---------------------------------------------------------------- Done */

.done-check {
    width: 52px;
    height: 52px;
    line-height: 52px;
    margin: 0 auto 16px;
    font-size: 26px;
    color: #fff;
    background: var(--ink);
    border-radius: 50%;
}

.linkbox {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.linkbox input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    font: inherit;
    font-size: 13px;
    color: var(--ink);
    background: var(--field);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.copied {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 8px;
}

.again {
    color: var(--ink);
    font-size: 14px;
}

/* -------------------------------------------------------------- Footer */

.foot {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    padding: 24px;
}

@media (max-width: 420px) {
    .wrap { padding-top: 32px; }
    .logo { margin-bottom: 28px; }
}
