:root {
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    --yellow: #fdc300;
    --yellow-light: #fbe9ac;
    --grey-bg: #a7a7a7;
    --panel: rgba(255, 255, 255, 0.18);
    --field: #f1f1f1;
    --ink: #333333;
    --muted: #5f5f5f;
    --line: #666666;
    --danger: #8a1515;
    --danger-bg: #f8dede;
    --success: #185d36;
    --success-bg: #e5f4ea;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--grey-bg);
    color: var(--ink);
}

button, input, textarea { font: inherit; }

.shell {
    min-height: 100vh;
    display: grid;
    place-items: start center;
    padding: 34px 18px;
}

.card {
    position: relative;
    width: min(790px, 100%);
    padding: 24px 28px;
}

.classic-card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.classic-header {
    text-align: center;
}

.logo {
    display: block;
    width: min(450px, 92%);
    height: auto;
    margin: 0 auto 18px;
}

h1, h2, p { margin-top: 0; }

h1 {
    margin-bottom: 12px;
    font-size: 1.55rem;
    font-weight: 700;
}

h2 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.intro {
    margin: 0 auto 24px;
    font-weight: 700;
    line-height: 1.45;
}

.compact-intro { font-weight: 400; }
.centered-panel { text-align: center; }

.form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 24px;
    align-items: start;
    justify-content: center;
    margin-top: 12px;
}

.main-fields { min-width: 0; }

label, legend {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

textarea,
input[type="text"],
input[type="password"],
input[type="number"] {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--field);
    color: var(--ink);
    padding: 8px;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.24);
}

textarea {
    min-height: 128px;
    resize: vertical;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.4;
}

textarea:focus,
input:focus,
.drop-area:focus {
    outline: 3px solid rgba(253, 195, 0, 0.45);
    outline-offset: 2px;
}

.field-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 6px 0 16px;
    color: #4f4f4f;
    font-size: 0.76rem;
}

.upload-title { margin-bottom: 6px; }

.drop-area {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 8px 10px;
    border: 2px dashed #cfcfcf;
    border-radius: 5px;
    background: rgba(241, 241, 241, 0.35);
    cursor: pointer;
    transition: 0.15s ease;
}

.drop-area:hover,
.drop-area.highlight {
    border-color: var(--yellow);
    background: rgba(249, 249, 249, 0.8);
}

.drop-area strong,
.drop-area span { display: block; }
.drop-area span { margin-top: 3px; color: var(--muted); font-size: 0.84rem; }

.drop-icon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    fill: #4c4c4c;
}

.selected-file,
.attachment-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 7px;
    background: var(--yellow-light);
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.24);
}

.selected-file div,
.attachment-card div { min-width: 0; }
.selected-file strong,
.attachment-card strong { display: block; overflow-wrap: anywhere; }
.selected-file span,
.attachment-card span { display: block; margin-top: 3px; color: var(--muted); font-size: 0.82rem; }

.expiry-panel {
    padding: 4px 0 0;
}

fieldset { margin: 0; padding: 0; border: 0; }

.radio-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 9px 0;
    font-weight: 400;
}

.radio-row input {
    appearance: none;
    width: 13px;
    height: 13px;
    margin: 0;
    border: 1px solid #333;
    border-radius: 50%;
    background: transparent;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.22);
    cursor: pointer;
}

.radio-row input:checked {
    background: var(--yellow);
    border-color: var(--yellow);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #555;
    border-radius: 7px;
    background: var(--field);
    color: #000;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.28);
}

.button:hover { background: var(--yellow); }
.button:disabled { cursor: not-allowed; opacity: 0.55; }

.button-yellow {
    min-height: 64px;
    padding: 18px 24px;
    background: var(--yellow);
    font-weight: 700;
}
.button-yellow:hover { background: #ffe283; }

.create-button { margin-top: 18px; }

.link-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #334f62;
    text-decoration: underline;
    cursor: pointer;
}

.logout-form { text-align: right; margin-bottom: 6px; }

.notice,
.result {
    width: min(650px, 100%);
    margin: 18px auto;
    padding: 12px 14px;
    border: 1px solid #777;
    border-radius: 7px;
    line-height: 1.45;
}
.notice.info { background: #edf3f6; }
.notice.warning { background: #fff0b8; }
.notice.error { background: var(--danger-bg); color: var(--danger); border-color: #b85e5e; }
.notice.success { background: var(--success-bg); color: var(--success); border-color: #77a98a; }
.result { background: var(--yellow-light); }

.copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.expiry-text,
.small-warning,
.security-note {
    font-size: 0.82rem;
    color: #444;
}

.security-note {
    margin: 20px auto 0;
    text-align: center;
}

.progress-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 10px;
    padding: 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 8px solid #b5b5b5;
    border-top-color: var(--yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.reveal-panel,
.message-section,
.login-panel { margin-top: 22px; }

.message-section { text-align: center; }
.message-section label { text-align: left; }
.message-section textarea { min-height: 130px; }

.compact-panel {
    width: min(440px, 100%);
    margin-inline: auto;
}

.install-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.install-grid .full { grid-column: 1 / -1; }
.install-actions { margin-top: 20px; }
.install-list { line-height: 1.6; }

footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    color: #404040;
    font-size: 11px;
}
footer a { color: #404040; }

.hidden { display: none !important; }
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 720px) {
    .shell { padding: 16px 8px; }
    .card { padding: 20px 14px; }
    .form-grid, .install-grid { grid-template-columns: 1fr; }
    .install-grid .full { grid-column: auto; }
    .expiry-panel { padding-top: 8px; }
    .copy-row { grid-template-columns: 1fr; }
    .selected-file, .attachment-card { align-items: stretch; flex-direction: column; }
    .button { width: 100%; }
    .logo { width: min(450px, 96%); }
}

/* Feinschliff 2.1.1: kompaktere Eingabe- und Ergebnisbereiche */
.create-form textarea {
    min-height: 112px;
}

.create-form .drop-area {
    min-height: 54px;
}

.classic-expiry .radio-list {
    height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.classic-expiry .radio-row {
    min-height: 18px;
    margin: 0;
    line-height: 1.2;
}

.result {
    margin: 14px auto;
    padding: 10px 14px 12px;
}

.result-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 8px;
}

.result-header h2,
.result-header .expiry-text {
    margin: 0;
}

.result-header .expiry-text {
    flex: 0 0 auto;
    text-align: right;
}

.result .copy-row input,
.result .copy-row .button {
    min-height: 36px;
}

.result .copy-row input {
    padding-top: 6px;
    padding-bottom: 6px;
}

.reveal-message {
    margin: 0 auto 32px;
    font-weight: 700;
    line-height: 1.12;
    text-align: center;
}

@media (max-width: 720px) {
    .classic-expiry .radio-list {
        height: auto;
        gap: 7px;
    }

    .result-header {
        display: block;
    }

    .result-header .expiry-text {
        margin-top: 4px;
        text-align: left;
    }
}


/* Sicherheit und Kapazitätssteuerung ab 2.2.0 */
.honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.drop-area.disabled {
    cursor: not-allowed;
    opacity: 0.58;
    border-color: #b8b8b8;
    background: rgba(225, 225, 225, 0.55);
}

.drop-area.disabled:hover,
.drop-area.disabled.highlight {
    border-color: #b8b8b8;
    background: rgba(225, 225, 225, 0.55);
}
