.fcwsg-wrapper {
    max-width: 560px;
}

/* ── Felder ──────────────────────────────────────────────────────────────────*/

.fcwsg-field {
    margin-bottom: 20px;
}

.fcwsg-field > label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.fcwsg-field input[type="text"],
.fcwsg-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: #D9D9D9;
    color: #000;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    margin: 0;
}

.fcwsg-field input[type="text"]::placeholder,
.fcwsg-field textarea::placeholder {
    color: #555;
    opacity: 1;
}

.fcwsg-field textarea {
    min-height: 110px;
    resize: vertical;
}

/* ── Datei-Drop-Zone ─────────────────────────────────────────────────────────*/

.fcwsg-file-drop {
    position: relative;
    border: 2px dashed #aaa;
    padding: 22px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.fcwsg-file-drop.is-over,
.fcwsg-file-drop:focus-within {
    border-color: var(--color-content-secondary, #c00);
    background: rgba(0, 0, 0, 0.03);
}

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

.fcwsg-file-label {
    font-size: 0.9rem;
    color: #555;
    pointer-events: none;
}

/* ── Vorschau ────────────────────────────────────────────────────────────────*/

#fcwsg-preview-wrap {
    margin-top: 10px;
}

#fcwsg-preview {
    max-width: 100%;
    max-height: 280px;
    display: block;
    object-fit: contain;
}

/* ── Fehler ──────────────────────────────────────────────────────────────────*/

#fcwsg-error {
    color: #c00;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────*/

.fcwsg-wrapper .fcw-btn {
    margin: 0;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.2s;
}

.fcwsg-wrapper .fcwsg-btn--secondary {
    background: #444;
}

.fcwsg-wrapper .fcwsg-btn--secondary:hover {
    background: #000;
}

.fcwsg-wrapper .fcwsg-btn--outline {
    background: transparent;
    color: var(--color-content-secondary, #c00) !important;
    border: 2px solid currentColor;
}

.fcwsg-wrapper .fcwsg-btn--outline:hover {
    background: transparent;
    color: #000 !important;
}

/* ── Aktionen (Download / Share) ─────────────────────────────────────────────*/

.fcwsg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0 10px;
}

/* ── Ergebnisbild ────────────────────────────────────────────────────────────*/

#fcwsg-result-img {
    max-width: 100%;
    display: block;
}

#fcwsg-reset-btn {
    margin-top: 16px;
}

/* ── Ladeindikator ───────────────────────────────────────────────────────────*/

#fcwsg-loading {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 0;
    font-size: 1rem;
}

#fcwsg-loading[hidden] {
    display: none;
}

.fcwsg-spinner {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 3px solid #ddd;
    border-top-color: var(--color-content-secondary, #c00);
    border-radius: 50%;
    animation: fcwsg-spin 0.75s linear infinite;
}

@keyframes fcwsg-spin {
    to { transform: rotate(360deg); }
}
